[
  {
    "path": ".gitignore",
    "content": "# Logs\nlogs\n*.log\nnpm-debug.log*\n\n# Runtime data\npids\n*.pid\n*.seed\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n\n# nyc test coverage\n.nyc_output\n\n# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)\n.grunt\n\n# node-waf configuration\n.lock-wscript\n\n# Compiled binary addons (http://nodejs.org/api/addons.html)\nbuild/Release\n\n# Dependency directories\nnode_modules\njspm_packages\n\n# Optional npm cache directory\n.npm\n\n# Optional REPL history\n.node_repl_history\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    {one line to give the program's name and a brief idea of what it does.}\n    Copyright (C) {year}  {name of author}\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    {project}  Copyright (C) {year}  {fullname}\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<http://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<http://www.gnu.org/philosophy/why-not-lgpl.html>.\n"
  },
  {
    "path": "README.md",
    "content": "# Beadz Drum Machine\n\n**Beadz** is an experimental drum machine built using The Web Audio API and Vue.js. It uses service worker and a `manifest.json` so that it can be saved to your device's homescreen and used offline. Get the **Beadz** web app here: [heydon.github.io/beadz-drum-machine/](https://heydon.github.io/beadz-drum-machine/).\n\n## Polymeters\n\n**Beadz** lets you create dynamic polymetric drum patterns by adding and removing quarter-beats from individual tracks while the composition is playing.\n\n![The add beat and remove beat buttons encountered first for each track let you change the overall quantity of beats for that track](images/polymeters.png)\n\nThe greater the disparity between the (quarter-beat) length of individual tracks, the more complex and longer the composition.\n\n## Quantum playback\n\n**Beadz** also lets you adjust the probability that any individual track's sounds will be played. By calibrating which beats _can_ be played and the probability that they _will_ be played within a polymetric composition can give the illusion of a drummer improvising.\n\n![The probability setting is available by pressing the settings button at the end of each track. It is composed of two number inputs. The first, called chance, is the numerator and the second, labeled \"in\", is the denominator.](images/probability.png)\n\n## Overrides\n\nSome drums are not typically played at the same time as others within conventional drum beats. By allowing you to prioritize certain sounds over others, you can make sure collisions don't take place as polymetric track relationships permutate over time.\n\n![Choosing which sounds override other sounds is available inside the track settings. Each other sound is represented by a checkbox.](images/overrides.png)\n\nFor example, by default the 'snare' and 'snare light' tracks are set to override the 'kick' track. Where a kick beat is scheduled but no snare sounds are due at the same time, the kick sound is played. Also, since 'snare' and 'snare light' represent sounds coming from the same drum, 'snare' overrides 'snare light'.\n\n## Fluctuation\n\nReal drummers do not produce exactly the same sound each time they hit a drum. Minor differences in velocity and the precise placement of the hit result in subtly different sounds.\n\n![The fluctuation control is available under the track's settings and is provided as a range input.](images/fluctuation.png)\n\n**Beadz** emulates this variability by randomly altering the pitch of the triggered sound within close parameters. The level of fluctuation is adjustable for each track.\n\n(**Note:** Safari does not support this feature because Safari is a thrice-used prophylactic.)\n\n## Accessibility\n\n**Beadz** has been designed to be operable using a keyboard and/or screen reader. If you have any problems using **Beadz**, please create an issue.\n"
  },
  {
    "path": "cachebust-sw.js",
    "content": "var random = require('randomstring');\nvar fs = require('fs');\n\nvar randomString = random.generate(10);\n\nfs.appendFile('docs/sw.js', '// ' + randomString, (err) => {\n  if (err) throw err;\n  console.log('New service worker created!');\n});\n"
  },
  {
    "path": "docs/css/style.css",
    "content": "html {\n  font-size: calc(1em + 0.4vw);\n  color: #222;\n  font-family: Fredoka One, sans-serif;\n  line-height: 1.5;\n}\n\n*, ::before, ::after {\n  color: inherit;\n  font-family: inherit;\n  font-size: inherit;\n  box-sizing: border-box;\n  font-weight: normal;\n}\n\nbody {\n  background: #fefefe;\n  overflow-x: hidden;\n  padding-bottom: 1.5rem;\n}\n\n* {\n  margin: 0;\n  padding: 0;\n}\n\n* + * {\n  margin-top: 1.5rem;\n}\n\nbody, br, dt, dd, th, td, option, [hidden] + * {\n  margin-top: 0;\n}\n\nli + li {\n  margin-top: 0.5rem;\n}\n\nlabel + * {\n  margin-top: 0;\n}\n\n.drum-machine * {\n  margin-top: 0;\n}\n\n/* basic buttons */\n\nbutton {\n  background: #222;\n  border: 0;\n  border-radius: 50%;\n}\n\nbutton:disabled {\n  opacity: 0.3;\n}\n\na:focus,\nbutton:focus,\n.track-beats [type=\"checkbox\"]:focus + label,\n.checkbox-group [type=\"checkbox\"]:focus + label::before,\n[type=\"text\"]:focus,\n[type=\"number\"]:focus {\n  box-shadow: 0 0 0 0.25rem #f0f;\n  outline: none;\n}\n\nbutton svg {\n  width: 100%;\n  height: 100%;\n}\n\n.track-main button {\n  background: transparent;\n}\n\n[aria-label=\"mute\"][aria-pressed=\"true\"] .waves {\n  display: none;\n}\n\n/* main layout */\n\n.central-col {\n  margin: 2.25rem auto;\n  max-width: 45rem;\n  padding: 0 1.5rem;\n}\n\nh1 {\n  text-align: center;\n  font-size: 1.75rem;\n  margin-right: 1rem;\n}\n\nheader {\n  background: #222;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  flex-wrap: wrap;\n  color: #fff;\n  padding: 0.5rem 1rem;\n}\n\nheader p {\n  margin-top: 0;\n}\n\n/* range inputs */\n\ninput[type=range] {\n  -webkit-appearance: none;\n  width: 100%;\n  background: transparent;\n}\n\ninput[type=range]::-webkit-slider-thumb {\n  -webkit-appearance: none;\n}\n\ninput[type=range]:focus {\n  background: transparent;\n}\n\ninput[type=range]::-ms-track {\n  width: 100%;\n  cursor: pointer;\n  background: transparent;\n  border-color: transparent;\n  color: transparent;\n}\n\ninput[type=range]::-webkit-slider-thumb {\n  -webkit-appearance: none;\n  box-shadow: 0 0 0 0.2rem #fefefe;\n  height: 1.75rem;\n  width: 1.75rem;\n  border-radius: 0.25rem;\n  background: #222 url(../images/grip.svg) no-repeat center;\n  background-size: 0.66rem auto;\n  cursor: pointer;\n  margin-top: -0.75rem;\n}\n\ninput[type=range]:focus::-webkit-slider-thumb {\n  outline: none;\n  box-shadow: 0 0 0 0.25rem #f0f;\n}\n\ninput[type=range]::-moz-range-thumb {\n  border: none;\n  height: 1.75rem;\n  width: 1.75rem;\n  border-radius: 0.25rem;\n  background: #222 url(../images/grip.svg) no-repeat center;\n  background-size: 0.66rem auto;\n  cursor: pointer;\n}\n\ninput[type=range]:focus::-moz-range-thumb {\n  outline: none;\n  box-shadow: 0 0 0 0.25rem #f0f;\n}\n\ninput[type=range]::-ms-thumb {\n  border: none;\n  height: 1.75rem;\n  width: 1.75rem;\n  border-radius: 0.25rem;\n  background: #222 url(../images/grip.svg) no-repeat center;\n  background-size: 0.66rem auto;\n  cursor: pointer;\n}\n\ninput[type=range]:focus {\n  outline: none;\n}\n\ninput[type=range]:focus::-ms-thumb {\n  outline: none;\n  box-shadow: 0 0 0 0.25rem #f0f;\n}\n\ninput[type=range]::-webkit-slider-runnable-track {\n  width: 100%;\n  height: 0.33rem;\n  cursor: pointer;\n  background-color: #222;\n  border-radius: 0.25rem;\n  border: none;\n}\n\ninput[type=range]::-moz-range-track {\n  width: 100%;\n  height: 0.33rem;\n  cursor: pointer;\n  background: #222;\n  border-radius: 0.25rem;\n  border: none;\n}\n\ninput[type=range]:focus::-moz-range-track {\n  outline: none;\n}\n\ninput[type=range]::-ms-track {\n  width: 100%;\n  height: 0.33rem;\n  cursor: pointer;\n  background: transparent;\n  border-color: transparent;\n  border-width: 0;\n  color: transparent;\n}\n\ninput[type=range]::-ms-fill-lower {\n  background: #222;\n  border: none;\n  border-radius: 0;\n}\n\ninput[type=range]::-ms-fill-upper {\n  background: #222;\n  border: none;\n  border-radius: 0;\n}\n\ninput[type=range]:focus::-ms-fill-upper {\n  background: #222;\n}\n\n/* forms */\n\nfieldset {\n border: 0;\n}\n\n[type=\"number\"] {\n  display: inline;\n  width: 3rem;\n  text-align: center;\n  padding: 0.25rem;\n  border: 0.25rem solid;\n  border-radius: 0.25rem;\n  line-height: 1;\n}\n\n/* utilities */\n\n.vh, legend:not(.show), [type=\"checkbox\"] {\n  position: absolute !important;\n  height: 1px; width: 1px;\n  overflow: hidden;\n  clip: rect(1px, 1px, 1px, 1px);\n}\n\n[hidden] {\n  display: none;\n}\n\n.between {\n  padding: 0 0.5rem;\n}\n\n.checkbox-group {\n  display: flex;\n  flex-wrap: wrap;\n}\n\n.checkbox-group label {\n  margin-right: 1rem;\n}\n\n.checkbox-group label::before {\n  content: '';\n  display: inline-block;\n  width: 1.33rem;\n  height: 1.33rem;\n  margin-right: 0.25rem;\n  border: 0.25rem solid #222;\n  border-radius: 0.25rem;\n  vertical-align: -0.33rem;\n  background-color: #fff;\n}\n\n.checkbox-group [type=\"checkbox\"]:checked + label::before {\n  background-image: url(../images/tick.svg);\n  background-position: center;\n  background-size: 100% auto;\n}\n\n/* main track */\n\n.track {\n  margin-top: 1.75rem;\n}\n\n.track-main, .track-beats {\n  display: flex;\n}\n\n.track-main {\n  justify-content: space-between;\n}\n\n.track-beats {\n  width: calc(100% - 10.5rem);\n  margin: 0 0.25rem 0 0.75rem;\n  position: relative;\n}\n\n.track-label {\n  position: absolute;\n  left: 1rem;\n  top: -1.66rem;\n}\n\n.track-label::before {\n  content: '';\n  display: inline-block;\n  width: 0.25rem;\n  height: 1.25rem;\n  position: absolute;\n  top: 1.33rem;\n  left: 0.5rem;\n  background: #222;\n}\n\n.track-main button {\n  width: 2rem;\n  height: 2rem;\n  border: 0;\n}\n\n.track-beats label {\n  display: inline-block;\n  width: 1rem;\n  height: 1rem;\n  background: #fff;\n  border: 0.25rem solid #222;\n  border-radius: 50%;\n  position: relative;\n  left: -0.5rem;\n}\n\n.track-beats :checked + label {\n  background: #222;\n  box-shadow: 0 0 0 0.2rem #222;\n}\n\n.track-addRemove, .track-muteSettings, .track-beats > div {\n  display: flex;\n  align-items: center;\n}\n\n.track-beats > div {\n  background-image: url(../images/line.svg);\n  background-repeat: repeat-x;\n  background-position: center;\n  background-size: auto 0.25rem;\n}\n\n.track-beats > div:last-child {\n  position: relative;\n}\n\n.track-beats > div:last-child::after {\n  content: '';\n  display: inline-block;\n  width: 0.25rem;\n  height: 1rem;\n  background: #222;\n  border-radius: 0.125rem;\n  position: absolute;\n  right: 0;\n  top: 0.5rem;\n  bottom: 0.5rem;\n}\n\n/* track settings */\n\n.track-settings {\n  padding: 1.25em 0;\n  border-bottom: 2px solid;\n  overflow: hidden;\n}\n\n.setting {\n  display: flex;\n  align-items: center;\n}\n\n.setting + .setting {\n  margin-top: 1rem;\n}\n\n.setting > * {\n  flex: 1 0 auto;\n}\n\n.setting > :last-child {\n  flex: 3;\n  display: flex;\n  align-items: center;\n}\n\n.setting > :first-child {\n  flex: 1;\n  line-height: 1.125;\n  margin-right: 0.5rem;\n}\n\n.setting span[id] {\n  display: none;\n}\n\n/* bpm and play row */\n\n.bpm-and-play {\n  display: flex;\n  justify-content: space-between;\n}\n\n/* bpm */\n\n.bpm {\n  display: flex;\n  justify-content: flex-start;\n  align-items: center;\n  width: 60%;\n}\n\n.bpm-slider {\n  margin-right: 0.5rem;\n  width: 50%;\n}\n\n.bpm label {\n  font-size: 1.25rem;\n  text-transform: uppercase;\n}\n\n\n/* play/stop */\n\n.play-stop button {\n  width: 3rem;\n  height: 3rem;\n}\n\n.play-stop button[aria-pressed=\"false\"] .pause-icon {\n  display: none;\n}\n\n.play-stop button[aria-pressed=\"true\"] .play-icon {\n  display: none;\n}\n\n/* reset and link */\n\n.link-section {\n  text-align: center;\n}\n\n.reset {\n  border-radius: 0.25rem;\n  color: #fff;\n  text-transform: uppercase;\n  padding: 0.25rem 5rem;\n  font-weight: normal;\n  margin: 0.5rem;\n  letter-spacing: 1px;\n}\n\n/* link input */\n\n[type=\"text\"] {\n  padding: 0.25rem;\n  width: 80%;\n  border: 1px solid;\n  font-family: monospace;\n}\n\n/* animations */\n\n@keyframes pulse {\n  0% {\n    transform: none;\n  }\n  50% {\n    transform: scale(1.5);\n  }\n  100% {\n    transform: scale(1);\n  }\n}\n\nlabel[id] {\n  will-change: transform;\n}\n\n.pulse-anim {\n  animation: pulse 0.1s 1 ease-in;\n}\n\n.slide-enter-active, .slide-leave-active {\n  transition: opacity 1s;\n}\n\n.slide-leave-active {\n  transition: opacity 0.25s;\n}\n\n.slide-enter, .slide-leave-active {\n  opacity: 0;\n}\n\n.open-settings {\n  transition: transform 0.5s ease-out;\n}\n\n.open-settings[aria-expanded=\"true\"] {\n  transform: rotate(45deg);\n}\n\n/* stats and footer */\n\n.stats {\n  text-align: center;\n  margin-top: 2.25rem;\n}\n\nfooter {\n  text-align: center;\n  margin-top: 0;\n  margin-left: auto;\n  margin-right: auto;\n  max-width: 45rem;\n}\n\nfooter::before {\n  content: '——————';\n  letter-spacing: -0.25rem;\n}\n\n/* smaller viewports */\n\n@media (max-width: 750px) {\n\n  .central-col {\n    margin: 1em;\n    padding: 0;\n  }\n\n}\n\n/* portrait warning */\n\n.portrait-warning {\n  display: none;\n}\n\n.portrait-warning svg {\n  margin: 0.5rem 0;\n}\n\n@media (orientation: portrait) {\n\n  .portrait-warning {\n    display: flex;\n    background: #ddd;\n    padding: 1.5rem;\n    align-items: center;\n    justify-content: center;\n    text-align: center;\n    margin: 0;\n    position: fixed;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n  }\n\n  .portrait-warning svg {\n    width: 30vw;\n    height: auto;\n  }\n\n}\n\n/* offline ready confirmation */\n\n@keyframes fade {\n  0% {\n    opacity: 0;\n  }\n  30% {\n    opacity: 1;\n  }\n  70% {\n    opacity: 1;\n  }\n  100% {\n    opacity: 0;\n  }\n}\n\n#offline-confirm p {\n  background: #222;\n  color: #fff;\n  padding: 0.5rem 1rem;;\n  font-size: 1.25rem;\n  position: absolute;\n  bottom: 1rem;\n  right: 1rem;\n  animation: fade 6s ease-in;\n}\n"
  },
  {
    "path": "docs/index.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n\t  <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n    <meta name=\"apple-mobile-web-app-title\" content=\"Beadz\">\n    <meta name=\"apple-mobile-web-app-capable\" content=\"yes\">\n    <link rel=\"apple-touch-icon\" href=\"images/icon-256x256.png\">\n    <link href=\"https://fonts.googleapis.com/css?family=Fredoka+One\" rel=\"stylesheet\" media=\"none\" onload=\"if(media!='all')media='all'\">\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"css/style.css\">\n    <title>Beadz: A Quantum, Polymetric Drum Machine</title>\n    <link rel=\"manifest\" href=\"manifest.json\">\n  </head>\n  <body>\n    <div id=\"app\">\n      <header role=\"banner\">\n        <h1>Beadz</h1>\n        <p>A quantum polymetric drum machine</p>\n      </header>\n      <div class=\"central-col\">\n        <drum-machine></drum-machine>\n        <footer role=\"contentinfo\">\n          <p>By <a href=\"https://twitter.com/heydonworks\">@heydonworks</a> &middot; <a href=\"https://github.com/Heydon/beadz-drum-machine\">Manual and source code on Github</a>.</p>\n        </footer>\n      </div>\n      <div id=\"offline-confirm\" role=\"alert\"></div>\n      <div class=\"portrait-warning\">\n        <div>\n          <h1>Beadz</h1>\n          <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"625.64\" width=\"556.23\" viewBox=\"0 0 556.23 625.64\"><path d=\"M23.1 624.32C-12.78 609.26 5.14 563.7.35 533.9c-.2-112.6-.97-225.2.7-337.8 1.83-18.36 20.36-30.14 37.72-26.68l206.8.05c31.33 9.7 20.5 46.42 22.7 71.1.56 119.92 1.64 239.88-.2 359.8-6.7 33.08-46.34 23.63-70.87 25.02-58.02-.22-116.1.5-174.12-1.08zm118.77-19.4c35.58-17.44-18.95-58.86-26.48-20.6-2.48 14.5 12.95 26.86 26.47 20.6zm82.9-66.86c6.4-7.24 1.1-19.84 2.86-29.2-.34-93.5 1.6-187.03-.75-280.48 1.4-20.3-54.23-5.1-76.62-9.97-35.84.2-67.7.6-103.5 2.23-9.32 24.86-2.03 56.87-4.57 84.46-.12 76.8-.08 153.64-.1 230.46 7.1 9.35 20.32 3.1 30.4 4.9h149.48zM288.1 571c1.1-9.1-5-25.38 10.03-20.53 67.5-.6 135.22 1.54 202.56-1.68 8.7-25.74 2.4-56.28 4.2-83.98l-.3-95.2c-6-9.67-18.9-3.37-28.3-5.15H288.1v-41h244.46c25.47 7.83 24.22 37.3 23.28 58.76-.3 62.03 1.88 124.34-1.65 186.2-3.7 17.6-22.12 25.37-38.35 22.58l-227.76.5zm128.33-325.47c-11.8-12.74-57.2-58.25-28.2-67.87 35.04 9.3 12.8-40.83 7.82-56.4-28.2-63.1-100.66-100.04-168.4-89.3-39.8 5.23-74.58 28.16-100.87 57.64-19.36 18.12-25.77-20.88-5.3-35.1 63.16-56.08 156.92-73.75 230.8-26.13 52.94 32.53 86.32 91.6 90.37 153.25 17.08 2.15 48.42 1.38 18.6 31.28 0 0-26.97 37.36-44.84 32.63z\" fill=\"#222\"/></svg>\n          <p>Rotate your screen into a landscape orientation.</p>\n        </div>\n      </div>\n    </div>\n    <script src=\"js/app.js\"></script>\n    <script>\n      if ('serviceWorker' in navigator) {\n        navigator.serviceWorker.register('sw.js', {\n          scope: './'\n        }).then(function(registration) {\n          var newWorker = registration.installing;\n\n          // statechange fires every time the ServiceWorker.state changes\n          newWorker.onstatechange = function() {\n            // show the message on activation\n            if (newWorker.state == 'activated' && !navigator.serviceWorker.controller) {\n              var liveRegion = document.getElementById('offline-confirm');\n              liveRegion.innerHTML = '<p>Ready to use offline!</p>';\n              window.setTimeout(function() {\n                liveRegion.innerHTML = '';\n              }, 6000);\n            }\n          };\n        }).catch(function(err) {\n          // registration failed :(\n        });\n      }\n    </script>\n  </body>\n</html>\n"
  },
  {
    "path": "docs/js/app.js",
    "content": "!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,t,n){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var n=e&&e.__esModule?function(){return e[\"default\"]}:function(){return e};return t.d(n,\"a\",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=\"\",t(t.s=17)}([function(e,t,n){var r,i;r=n(3);var o=n(13);i=r=r||{},\"object\"!=typeof r[\"default\"]&&\"function\"!=typeof r[\"default\"]||(i=r=r[\"default\"]),\"function\"==typeof i&&(i=i.options),i.render=o.render,i.staticRenderFns=o.staticRenderFns,e.exports=r},function(e,t,n){!function(){var t=window.localStorage;try{var n=\"__vue-localstorage-test__\";t.setItem(n,n),t.removeItem(n)}catch(r){}var i,o,a,s={get:function(e){if(t.hasOwnProperty(e)){i=String;for(o in s._properties)if(o===e){i=s._properties[o].type;break}return s._process(i,t[e])}return null},set:function(e,n){for(o in s._properties)if(i=s._properties[o].type,o===e&&(i===Array||i===Object))return t[e]=JSON.stringify(n),n;return t[e]=n,n},remove:function(e){return t.removeItem(e)},_process:function(e,t){switch(e){case Boolean:return\"true\"===t;case Number:return parseInt(t,10);case Array:try{var n=JSON.parse(t);return Array.isArray(n)?n:[]}catch(r){return[]}case Object:try{return JSON.parse(t)}catch(r){return{}}default:return t}},_properties:{}},u={install:function(e){e.mixin({created:function(){if(void 0!==this.$options.localStorage)for(o in this.$options.localStorage)s._properties.hasOwnProperty(o)||(s._properties[o]={}),i=this.$options.localStorage[o].hasOwnProperty(\"type\")?this.$options.localStorage[o].type:String,s._properties[o].type=i,!t.hasOwnProperty(o)&&this.$options.localStorage[o].hasOwnProperty(\"default\")&&(a=this.$options.localStorage[o][\"default\"],t[o]=i===Array||i===Object?JSON.stringify(a):a);this.$localStorage=s}}),e.prototype.localStorage=s}};e.exports=u}()},function(e,t,n){\"use strict\";(function(t,n){function r(e){return null==e?\"\":\"object\"==typeof e?JSON.stringify(e,null,2):String(e)}function i(e){var t=parseFloat(e,10);return t||0===t?t:e}function o(e,t){for(var n=Object.create(null),r=e.split(\",\"),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}function a(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function s(e,t){return hi.call(e,t)}function u(e){return\"string\"==typeof e||\"number\"==typeof e}function l(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}function c(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function d(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function f(e,t){for(var n in t)e[n]=t[n];return e}function p(e){return null!==e&&\"object\"==typeof e}function v(e){return wi.call(e)===xi}function h(e){for(var t={},n=0;n<e.length;n++)e[n]&&f(t,e[n]);return t}function m(){}function g(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(\",\")}function y(e,t){var n=p(e),r=p(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r&&String(e)===String(t)}function _(e,t){for(var n=0;n<e.length;n++)if(y(e[n],t))return n;return-1}function b(e){var t=(e+\"\").charCodeAt(0);return 36===t||95===t}function w(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function x(e){if(!Ci.test(e)){var t=e.split(\".\");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}function k(e){return/native code/.test(e.toString())}function E(e){Bi.target&&Hi.push(Bi.target),Bi.target=e}function N(){Bi.target=Hi.pop()}function C(e,t){e.__proto__=t}function O(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];w(e,o,t[o])}}function $(e,t){if(p(e)){var n;return s(e,\"__ob__\")&&e.__ob__ instanceof Wi?n=e.__ob__:Ki.shouldConvert&&!Pi()&&(Array.isArray(e)||v(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Wi(e)),t&&n&&n.vmCount++,n}}function A(e,n,r,i){var o=new Bi,a=Object.getOwnPropertyDescriptor(e,n);if(!a||a.configurable!==!1){var s=a&&a.get,u=a&&a.set,l=$(r);Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):r;return Bi.target&&(o.depend(),l&&l.dep.depend(),Array.isArray(t)&&T(t)),t},set:function(n){var a=s?s.call(e):r;n===a||n!==n&&a!==a||(\"production\"!==t.env.NODE_ENV&&i&&i(),u?u.call(e,n):r=n,l=$(n),o.notify())}})}}function S(e,n,r){if(Array.isArray(e))return e.length=Math.max(e.length,n),e.splice(n,1,r),r;if(s(e,n))return void(e[n]=r);var i=e.__ob__;return e._isVue||i&&i.vmCount?void(\"production\"!==t.env.NODE_ENV&&Ii(\"Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option.\")):i?(A(i.value,n,r),i.dep.notify(),r):void(e[n]=r)}function D(e,n){var r=e.__ob__;return e._isVue||r&&r.vmCount?void(\"production\"!==t.env.NODE_ENV&&Ii(\"Avoid deleting properties on a Vue instance or its root $data - just set it to null.\")):void(s(e,n)&&(delete e[n],r&&r.dep.notify()))}function T(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&T(t)}function j(e,t){if(!t)return e;for(var n,r,i,o=Object.keys(t),a=0;a<o.length;a++)n=o[a],r=e[n],i=t[n],s(e,n)?v(r)&&v(i)&&j(r,i):S(e,n,i);return e}function V(e,t){return t?e?e.concat(t):Array.isArray(t)?t:[t]:e}function P(e,t){var n=Object.create(e||null);return t?f(n,t):n}function L(e){for(var t in e.components){var n=t.toLowerCase();(vi(n)||Ni.isReservedTag(n))&&Ii(\"Do not use built-in or reserved HTML elements as component id: \"+t)}}function M(e){var n=e.props;if(n){var r,i,o,a={};if(Array.isArray(n))for(r=n.length;r--;)i=n[r],\"string\"==typeof i?(o=gi(i),a[o]={type:null}):\"production\"!==t.env.NODE_ENV&&Ii(\"props must be strings when using array syntax.\");else if(v(n))for(var s in n)i=n[s],o=gi(s),a[o]=v(i)?i:{type:i};e.props=a}}function R(e){var t=e.directives;if(t)for(var n in t){var r=t[n];\"function\"==typeof r&&(t[n]={bind:r,update:r})}}function I(e,n,r){function i(t){var i=Zi[t]||Yi;d[t]=i(e[t],n[t],r,t)}\"production\"!==t.env.NODE_ENV&&L(n),M(n),R(n);var o=n[\"extends\"];if(o&&(e=\"function\"==typeof o?I(e,o.options,r):I(e,o,r)),n.mixins)for(var a=0,u=n.mixins.length;a<u;a++){var l=n.mixins[a];l.prototype instanceof We&&(l=l.options),e=I(e,l,r)}var c,d={};for(c in e)i(c);for(c in n)s(e,c)||i(c);return d}function F(e,n,r,i){if(\"string\"==typeof r){var o=e[n];if(s(o,r))return o[r];var a=gi(r);if(s(o,a))return o[a];var u=yi(a);if(s(o,u))return o[u];var l=o[r]||o[a]||o[u];return\"production\"!==t.env.NODE_ENV&&i&&!l&&Ii(\"Failed to resolve \"+n.slice(0,-1)+\": \"+r,e),l}}function U(e,n,r,i){var o=n[e],a=!s(r,e),u=r[e];if(q(Boolean,o.type)&&(a&&!s(o,\"default\")?u=!1:q(String,o.type)||\"\"!==u&&u!==bi(e)||(u=!0)),void 0===u){u=B(i,o,e);var l=Ki.shouldConvert;Ki.shouldConvert=!0,$(u),Ki.shouldConvert=l}return\"production\"!==t.env.NODE_ENV&&H(o,e,u,i,a),u}function B(e,n,r){if(s(n,\"default\")){var i=n[\"default\"];return p(i)&&\"production\"!==t.env.NODE_ENV&&Ii('Invalid default value for prop \"'+r+'\": Props with type Object/Array must use a factory function to return the default value.',e),e&&e.$options.propsData&&void 0===e.$options.propsData[r]&&void 0!==e[r]?e[r]:\"function\"==typeof i&&n.type!==Function?i.call(e):i}}function H(e,t,n,r,i){if(e.required&&i)return void Ii('Missing required prop: \"'+t+'\"',r);if(null!=n||e.required){var o=e.type,a=!o||o===!0,s=[];if(o){Array.isArray(o)||(o=[o]);for(var u=0;u<o.length&&!a;u++){var l=J(n,o[u]);s.push(l.expectedType||\"\"),a=l.valid}}if(!a)return void Ii('Invalid prop: type check failed for prop \"'+t+'\". Expected '+s.map(yi).join(\", \")+\", got \"+Object.prototype.toString.call(n).slice(8,-1)+\".\",r);var c=e.validator;c&&(c(n)||Ii('Invalid prop: custom validator check failed for prop \"'+t+'\".',r))}}function J(e,t){var n,r=z(t);return n=\"String\"===r?typeof e==(r=\"string\"):\"Number\"===r?typeof e==(r=\"number\"):\"Boolean\"===r?typeof e==(r=\"boolean\"):\"Function\"===r?typeof e==(r=\"function\"):\"Object\"===r?v(e):\"Array\"===r?Array.isArray(e):e instanceof t,{valid:n,expectedType:r}}function z(e){var t=e&&e.toString().match(/^\\s*function (\\w+)/);return t&&t[1]}function q(e,t){if(!Array.isArray(t))return z(t)===z(e);for(var n=0,r=t.length;n<r;n++)if(z(t[n])===z(e))return!0;return!1}function K(){oo.length=0,ao={},\"production\"!==t.env.NODE_ENV&&(so={}),uo=lo=!1}function W(){for(lo=!0,oo.sort(function(e,t){return e.id-t.id}),co=0;co<oo.length;co++){var e=oo[co],n=e.id;if(ao[n]=null,e.run(),\"production\"!==t.env.NODE_ENV&&null!=ao[n]&&(so[n]=(so[n]||0)+1,so[n]>Ni._maxUpdateCount)){Ii(\"You may have an infinite update loop \"+(e.user?'in watcher with expression \"'+e.expression+'\"':\"in a component render function.\"),e.vm);break}}Li&&Ni.devtools&&Li.emit(\"flush\"),K()}function Z(e){var t=e.id;if(null==ao[t]){if(ao[t]=!0,lo){for(var n=oo.length-1;n>=0&&oo[n].id>e.id;)n--;oo.splice(Math.max(n,co)+1,0,e)}else oo.push(e);uo||(uo=!0,Mi(W))}}function G(e){ho.clear(),Y(e,ho)}function Y(e,t){var n,r,i=Array.isArray(e);if((i||p(e))&&Object.isExtensible(e)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i)for(n=e.length;n--;)Y(e[n],t);else for(r=Object.keys(e),n=r.length;n--;)Y(e[r[n]],t)}}function Q(e){e._watchers=[];var t=e.$options;t.props&&X(e,t.props),t.methods&&re(e,t.methods),t.data?ee(e):$(e._data={},!0),t.computed&&te(e,t.computed),t.watch&&ie(e,t.watch)}function X(e,n){var r=e.$options.propsData||{},i=e.$options._propKeys=Object.keys(n),o=!e.$parent;Ki.shouldConvert=o;for(var a=function(o){var a=i[o];\"production\"!==t.env.NODE_ENV?(mo[a]&&Ii('\"'+a+'\" is a reserved attribute and cannot be used as component prop.',e),A(e,a,U(a,n,r,e),function(){e.$parent&&!Ki.isSettingProps&&Ii(\"Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \\\"\"+a+'\"',e)})):A(e,a,U(a,n,r,e))},s=0;s<i.length;s++)a(s);Ki.shouldConvert=!0}function ee(e){var n=e.$options.data;n=e._data=\"function\"==typeof n?n.call(e):n||{},v(n)||(n={},\"production\"!==t.env.NODE_ENV&&Ii(\"data functions should return an object:\\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function\",e));for(var r=Object.keys(n),i=e.$options.props,o=r.length;o--;)i&&s(i,r[o])?\"production\"!==t.env.NODE_ENV&&Ii('The data property \"'+r[o]+'\" is already declared as a prop. Use prop default value instead.',e):se(e,r[o]);$(n,!0)}function te(e,n){for(var r in n){\"production\"!==t.env.NODE_ENV&&r in e&&Ii('existing instance property \"'+r+'\" will be overwritten by a computed property with the same name.',e);var i=n[r];\"function\"==typeof i?(go.get=ne(i,e),go.set=m):(go.get=i.get?i.cache!==!1?ne(i.get,e):c(i.get,e):m,go.set=i.set?c(i.set,e):m),Object.defineProperty(e,r,go)}}function ne(e,t){var n=new po(t,e,m,{lazy:!0});return function(){return n.dirty&&n.evaluate(),Bi.target&&n.depend(),n.value}}function re(e,n){for(var r in n)e[r]=null==n[r]?m:c(n[r],e),\"production\"!==t.env.NODE_ENV&&null==n[r]&&Ii('method \"'+r+'\" has an undefined value in the component definition. Did you reference the function correctly?',e)}function ie(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)oe(e,n,r[i]);else oe(e,n,r)}}function oe(e,t,n){var r;v(n)&&(r=n,n=n.handler),\"string\"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function ae(e){var n={};n.get=function(){return this._data},\"production\"!==t.env.NODE_ENV&&(n.set=function(e){Ii(\"Avoid replacing instance root $data. Use nested data properties instead.\",this)}),Object.defineProperty(e.prototype,\"$data\",n),e.prototype.$set=S,e.prototype.$delete=D,e.prototype.$watch=function(e,t,n){var r=this;n=n||{},n.user=!0;var i=new po(r,e,t,n);return n.immediate&&t.call(r,i.value),function(){i.teardown()}}}function se(e,t){b(t)||Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(n){e._data[t]=n}})}function ue(e){return new yo((void 0),(void 0),(void 0),String(e))}function le(e){var t=new yo(e.tag,e.data,e.children,e.text,e.elm,e.context,e.componentOptions);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isCloned=!0,t}function ce(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=le(e[n]);return t}function de(e,t,n,r){r+=t;var i=e.__injected||(e.__injected={});if(!i[r]){i[r]=!0;var o=e[t];o?e[t]=function(){o.apply(this,arguments),n.apply(this,arguments)}:e[t]=n}}function fe(e,n,r,i,o){var a,s,u,l,c,d,f;for(a in e)if(s=e[a],u=n[a],s)if(u){if(s!==u)if(Array.isArray(u)){u.length=s.length;for(var p=0;p<u.length;p++)u[p]=s[p];e[a]=u}else u.fn=s,e[a]=u}else f=\"~\"===a.charAt(0),c=f?a.slice(1):a,d=\"!\"===c.charAt(0),c=d?c.slice(1):c,Array.isArray(s)?r(c,s.invoker=pe(s),f,d):(s.invoker||(l=s,s=e[a]={},s.fn=l,s.invoker=ve(s)),r(c,s.invoker,f,d));else\"production\"!==t.env.NODE_ENV&&Ii('Invalid handler for event \"'+a+'\": got '+String(s),o);for(a in n)e[a]||(f=\"~\"===a.charAt(0),c=f?a.slice(1):a,d=\"!\"===c.charAt(0),c=d?c.slice(1):c,i(c,n[a].invoker,d))}function pe(e){return function(t){for(var n=arguments,r=1===arguments.length,i=0;i<e.length;i++)r?e[i](t):e[i].apply(null,n)}}function ve(e){return function(t){var n=1===arguments.length;n?e.fn(t):e.fn.apply(null,arguments)}}function he(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function me(e){return u(e)?[ue(e)]:Array.isArray(e)?ge(e):void 0}function ge(e,t){var n,r,i,o=[];for(n=0;n<e.length;n++)r=e[n],null!=r&&\"boolean\"!=typeof r&&(i=o[o.length-1],Array.isArray(r)?o.push.apply(o,ge(r,(t||\"\")+\"_\"+n)):u(r)?i&&i.text?i.text+=String(r):\"\"!==r&&o.push(ue(r)):r.text&&i&&i.text?o[o.length-1]=ue(i.text+r.text):(r.tag&&null==r.key&&null!=t&&(r.key=\"__vlist\"+t+\"_\"+n+\"__\"),o.push(r)));return o}function ye(e){return e&&e.filter(function(e){return e&&e.componentOptions})[0]}function _e(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&xe(e,t)}function be(e,t,n){n?vo.$once(e,t):vo.$on(e,t)}function we(e,t){vo.$off(e,t)}function xe(e,t,n){vo=e,fe(t,n||{},be,we,e)}function ke(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;return(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0),r},e.prototype.$once=function(e,t){function n(){r.$off(e,n),t.apply(r,arguments)}var r=this;return n.fn=t,r.$on(e,n),r},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;var r=n._events[e];if(!r)return n;if(1===arguments.length)return n._events[e]=null,n;for(var i,o=r.length;o--;)if(i=r[o],i===t||i.fn===t){r.splice(o,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?d(n):n;for(var r=d(arguments,1),i=0,o=n.length;i<o;i++)n[i].apply(t,r)}return t}}function Ee(e){var t=e.$options,n=t.parent;if(n&&!t[\"abstract\"]){for(;n.$options[\"abstract\"]&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Ne(e){e.prototype._mount=function(e,n){var r=this;return r.$el=e,r.$options.render||(r.$options.render=_o,\"production\"!==t.env.NODE_ENV&&(r.$options.template&&\"#\"!==r.$options.template.charAt(0)?Ii(\"You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build.\",r):Ii(\"Failed to mount component: template or render function not defined.\",r))),Ce(r,\"beforeMount\"),r._watcher=new po(r,function(){r._update(r._render(),n)},m),n=!1,null==r.$vnode&&(r._isMounted=!0,Ce(r,\"mounted\")),r},e.prototype._update=function(e,t){var n=this;n._isMounted&&Ce(n,\"beforeUpdate\");var r=n.$el,i=n._vnode,o=bo;bo=n,n._vnode=e,i?n.$el=n.__patch__(i,e):n.$el=n.__patch__(n.$el,e,t,!1,n.$options._parentElm,n.$options._refElm),bo=o,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el),n._isMounted&&Ce(n,\"updated\")},e.prototype._updateFromParent=function(e,n,r,i){var o=this,a=!(!o.$options._renderChildren&&!i);if(o.$options._parentVnode=r,o.$vnode=r,o._vnode&&(o._vnode.parent=r),o.$options._renderChildren=i,e&&o.$options.props){Ki.shouldConvert=!1,\"production\"!==t.env.NODE_ENV&&(Ki.isSettingProps=!0);for(var s=o.$options._propKeys||[],u=0;u<s.length;u++){var l=s[u];o[l]=U(l,o.$options.props,e,o)}Ki.shouldConvert=!0,\"production\"!==t.env.NODE_ENV&&(Ki.isSettingProps=!1),o.$options.propsData=e}if(n){var c=o.$options._parentListeners;o.$options._parentListeners=n,xe(o,n,c)}a&&(o.$slots=Je(i,r.context),o.$forceUpdate())},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Ce(e,\"beforeDestroy\"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options[\"abstract\"]||a(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,Ce(e,\"destroyed\"),e.$off(),e.$el&&(e.$el.__vue__=null),e.__patch__(e._vnode,null)}}}function Ce(e,t){var n=e.$options[t];if(n)for(var r=0,i=n.length;r<i;r++)n[r].call(e);e._hasHookEvent&&e.$emit(\"hook:\"+t)}function Oe(e,n,r,i,o){if(e){var a=r.$options._base;if(p(e)&&(e=a.extend(e)),\"function\"!=typeof e)return void(\"production\"!==t.env.NODE_ENV&&Ii(\"Invalid Component definition: \"+String(e),r));if(!e.cid)if(e.resolved)e=e.resolved;else if(e=Ve(e,a,function(){r.$forceUpdate()}),!e)return;Ke(e),n=n||{};var s=Pe(n,e);if(e.options.functional)return $e(e,s,n,r,i);var u=n.on;n.on=n.nativeOn,e.options[\"abstract\"]&&(n={}),Me(n);var l=e.options.name||o,c=new yo(\"vue-component-\"+e.cid+(l?\"-\"+l:\"\"),n,(void 0),(void 0),(void 0),r,{Ctor:e,propsData:s,listeners:u,tag:o,children:i});return c}}function $e(e,t,n,r,i){var o={},a=e.options.props;if(a)for(var s in a)o[s]=U(s,a,t);var u=Object.create(r),l=function(e,t,n,r){return Ie(u,e,t,n,r,!0)},c=e.options.render.call(null,l,{props:o,data:n,parent:r,children:i,slots:function(){return Je(i,r)}});return c instanceof yo&&(c.functionalContext=r,n.slot&&((c.data||(c.data={})).slot=n.slot)),c}function Ae(e,t,n,r){var i=e.componentOptions,o={_isComponent:!0,parent:t,propsData:i.propsData,_componentTag:i.tag,_parentVnode:e,_parentListeners:i.listeners,_renderChildren:i.children,_parentElm:n||null,_refElm:r||null},a=e.data.inlineTemplate;return a&&(o.render=a.render,o.staticRenderFns=a.staticRenderFns),new i.Ctor(o)}function Se(e,t,n,r){if(!e.child||e.child._isDestroyed){var i=e.child=Ae(e,bo,n,r);i.$mount(t?e.elm:void 0,t)}else if(e.data.keepAlive){var o=e;De(o,o)}}function De(e,t){var n=t.componentOptions,r=t.child=e.child;r._updateFromParent(n.propsData,n.listeners,t,n.children)}function Te(e){e.child._isMounted||(e.child._isMounted=!0,Ce(e.child,\"mounted\")),e.data.keepAlive&&(e.child._inactive=!1,Ce(e.child,\"activated\"))}function je(e){e.child._isDestroyed||(e.data.keepAlive?(e.child._inactive=!0,Ce(e.child,\"deactivated\")):e.child.$destroy())}function Ve(e,n,r){if(!e.requested){e.requested=!0;var i=e.pendingCallbacks=[r],o=!0,a=function(t){if(p(t)&&(t=n.extend(t)),e.resolved=t,!o)for(var r=0,a=i.length;r<a;r++)i[r](t)},s=function(n){\"production\"!==t.env.NODE_ENV&&Ii(\"Failed to resolve async component: \"+String(e)+(n?\"\\nReason: \"+n:\"\"))},u=e(a,s);return u&&\"function\"==typeof u.then&&!e.resolved&&u.then(a,s),o=!1,e.resolved}e.pendingCallbacks.push(r)}function Pe(e,t){var n=t.options.props;if(n){var r={},i=e.attrs,o=e.props,a=e.domProps;if(i||o||a)for(var s in n){var u=bi(s);Le(r,o,s,u,!0)||Le(r,i,s,u)||Le(r,a,s,u)}return r}}function Le(e,t,n,r,i){if(t){if(s(t,n))return e[n]=t[n],i||delete t[n],!0;if(s(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function Me(e){e.hook||(e.hook={});for(var t=0;t<xo.length;t++){var n=xo[t],r=e.hook[n],i=wo[n];e.hook[n]=r?Re(i,r):i}}function Re(e,t){return function(n,r,i,o){e(n,r,i,o),t(n,r,i,o)}}function Ie(e,t,n,r,i,o){return(Array.isArray(n)||u(n))&&(i=r,r=n,n=void 0),o&&(i=Eo),Fe(e,t,n,r,i)}function Fe(e,n,r,i,o){if(r&&r.__ob__)return\"production\"!==t.env.NODE_ENV&&Ii(\"Avoid using observed data object as vnode data: \"+JSON.stringify(r)+\"\\nAlways create fresh vnode data objects in each render!\",e),_o();if(!n)return _o();Array.isArray(i)&&\"function\"==typeof i[0]&&(r=r||{},r.scopedSlots={\"default\":i[0]},i.length=0),o===Eo?i=me(i):o===ko&&(i=he(i));var a,s;if(\"string\"==typeof n){var u;s=Ni.getTagNamespace(n),a=Ni.isReservedTag(n)?new yo(Ni.parsePlatformTagName(n),r,i,(void 0),(void 0),e):(u=F(e.$options,\"components\",n))?Oe(u,r,e,i,n):new yo(n,r,i,(void 0),(void 0),e)}else a=Oe(n,r,e,i);return a?(s&&Ue(a,s),a):_o()}function Ue(e,t){if(e.ns=t,\"foreignObject\"!==e.tag&&e.children)for(var n=0,r=e.children.length;n<r;n++){var i=e.children[n];i.tag&&!i.ns&&Ue(i,t)}}function Be(e){e.$vnode=null,e._vnode=null,e._staticTrees=null;var t=e.$options._parentVnode,n=t&&t.context;e.$slots=Je(e.$options._renderChildren,n),e.$scopedSlots={},e._c=function(t,n,r,i){return Ie(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ie(e,t,n,r,i,!0)},e.$options.el&&e.$mount(e.$options.el)}function He(e){function n(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&\"string\"!=typeof e[r]&&o(e[r],t+\"_\"+r,n);else o(e,t,n)}function o(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}e.prototype.$nextTick=function(e){return Mi(e,this)},e.prototype._render=function(){var e=this,n=e.$options,r=n.render,i=n.staticRenderFns,o=n._parentVnode;if(e._isMounted)for(var a in e.$slots)e.$slots[a]=ce(e.$slots[a]);o&&o.data.scopedSlots&&(e.$scopedSlots=o.data.scopedSlots),i&&!e._staticTrees&&(e._staticTrees=[]),e.$vnode=o;var s;try{s=r.call(e._renderProxy,e.$createElement)}catch(u){if(!Ni.errorHandler)throw\"production\"!==t.env.NODE_ENV&&Ii(\"Error when rendering \"+Ri(e)+\":\"),u;Ni.errorHandler.call(null,u,e),s=e._vnode}return s instanceof yo||(\"production\"!==t.env.NODE_ENV&&Array.isArray(s)&&Ii(\"Multiple root nodes returned from render function. Render function should return a single root node.\",e),s=_o()),s.parent=o,s},e.prototype._s=r,e.prototype._v=ue,e.prototype._n=i,e.prototype._e=_o,e.prototype._q=y,e.prototype._i=_,e.prototype._m=function(e,t){var r=this._staticTrees[e];return r&&!t?Array.isArray(r)?ce(r):le(r):(r=this._staticTrees[e]=this.$options.staticRenderFns[e].call(this._renderProxy),n(r,\"__static__\"+e,!1),r)},e.prototype._o=function(e,t,r){return n(e,\"__once__\"+t+(r?\"_\"+r:\"\"),!0),e},e.prototype._f=function(e){return F(this.$options,\"filters\",e,!0)||Ei},e.prototype._l=function(e,t){var n,r,i,o,a;if(Array.isArray(e)||\"string\"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if(\"number\"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(p(e))for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=t(e[a],a,r);return n},e.prototype._t=function(e,n,r,i){var o=this.$scopedSlots[e];if(o)return r=r||{},i&&f(r,i),o(r)||n;var a=this.$slots[e];return a&&\"production\"!==t.env.NODE_ENV&&(a._rendered&&Ii('Duplicate presence of slot \"'+e+'\" found in the same render tree - this will likely cause render errors.',this),a._rendered=!0),a||n},e.prototype._b=function(e,n,r,i){if(r)if(p(r)){Array.isArray(r)&&(r=h(r));for(var o in r)if(\"class\"===o||\"style\"===o)e[o]=r[o];else{var a=i||Ni.mustUseProp(n,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={});a[o]=r[o]}}else\"production\"!==t.env.NODE_ENV&&Ii(\"v-bind without argument expects an Object or Array value\",this);return e},e.prototype._k=function(e,t,n){var r=Ni.keyCodes[t]||n;return Array.isArray(r)?r.indexOf(e)===-1:r!==e}}function Je(e,t){var n={};if(!e)return n;for(var r,i,o=[],a=0,s=e.length;a<s;a++)if(i=e[a],(i.context===t||i.functionalContext===t)&&i.data&&(r=i.data.slot)){var u=n[r]||(n[r]=[]);\"template\"===i.tag?u.push.apply(u,i.children):u.push(i)}else o.push(i);return o.length&&(1!==o.length||\" \"!==o[0].text&&!o[0].isComment)&&(n[\"default\"]=o),n}function ze(e){e.prototype._init=function(e){var n=this;n._uid=No++,n._isVue=!0,e&&e._isComponent?qe(n,e):n.$options=I(Ke(n.constructor),e||{},n),\"production\"!==t.env.NODE_ENV?Gi(n):n._renderProxy=n,n._self=n,Ee(n),_e(n),Ce(n,\"beforeCreate\"),Q(n),Ce(n,\"created\"),Be(n)}}function qe(e,t){var n=e.$options=Object.create(e.constructor.options);n.parent=t.parent,n.propsData=t.propsData,n._parentVnode=t._parentVnode,n._parentListeners=t._parentListeners,n._renderChildren=t._renderChildren,n._componentTag=t._componentTag,n._parentElm=t._parentElm,n._refElm=t._refElm,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Ke(e){var t=e.options;if(e[\"super\"]){var n=e[\"super\"].options,r=e.superOptions,i=e.extendOptions;n!==r&&(e.superOptions=n,i.render=t.render,i.staticRenderFns=t.staticRenderFns,i._scopeId=t._scopeId,t=e.options=I(n,i),t.name&&(t.components[t.name]=e))}return t}function We(e){\"production\"===t.env.NODE_ENV||this instanceof We||Ii(\"Vue is a constructor and should be called with the `new` keyword\"),this._init(e)}function Ze(e){e.use=function(e){if(!e.installed){var t=d(arguments,1);return t.unshift(this),\"function\"==typeof e.install?e.install.apply(e,t):e.apply(null,t),e.installed=!0,this}}}function Ge(e){e.mixin=function(e){this.options=I(this.options,e)}}function Ye(e){e.cid=0;var n=1;e.extend=function(e){e=e||{};var r=this,i=r.cid,o=e._Ctor||(e._Ctor={});if(o[i])return o[i];var a=e.name||r.options.name;\"production\"!==t.env.NODE_ENV&&(/^[a-zA-Z][\\w-]*$/.test(a)||Ii('Invalid component name: \"'+a+'\". Component names can only contain alphanumeric characters and the hyphen, and must start with a letter.'));var s=function(e){this._init(e)};return s.prototype=Object.create(r.prototype),s.prototype.constructor=s,s.cid=n++,s.options=I(r.options,e),s[\"super\"]=r,s.extend=r.extend,s.mixin=r.mixin,s.use=r.use,Ni._assetTypes.forEach(function(e){s[e]=r[e]}),a&&(s.options.components[a]=s),s.superOptions=r.options,s.extendOptions=e,o[i]=s,s}}function Qe(e){Ni._assetTypes.forEach(function(n){e[n]=function(e,r){return r?(\"production\"!==t.env.NODE_ENV&&\"component\"===n&&Ni.isReservedTag(e)&&Ii(\"Do not use built-in or reserved HTML elements as component id: \"+e),\"component\"===n&&v(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),\"directive\"===n&&\"function\"==typeof r&&(r={bind:r,update:r}),this.options[n+\"s\"][e]=r,r):this.options[n+\"s\"][e]}})}function Xe(e,t){return\"string\"==typeof e?e.split(\",\").indexOf(t)>-1:e.test(t)}function et(e){var n={};n.get=function(){return Ni},\"production\"!==t.env.NODE_ENV&&(n.set=function(){Ii(\"Do not replace the Vue.config object, set individual fields instead.\")}),Object.defineProperty(e,\"config\",n),e.util=Qi,e.set=S,e[\"delete\"]=D,e.nextTick=Mi,e.options=Object.create(null),Ni._assetTypes.forEach(function(t){e.options[t+\"s\"]=Object.create(null)}),e.options._base=e,f(e.options.components,$o),Ze(e),Ge(e),Ye(e),Qe(e)}function tt(e){for(var t=e.data,n=e,r=e;r.child;)r=r.child._vnode,r.data&&(t=nt(r.data,t));for(;n=n.parent;)n.data&&(t=nt(t,n.data));return rt(t)}function nt(e,t){return{staticClass:it(e.staticClass,t.staticClass),\"class\":e[\"class\"]?[e[\"class\"],t[\"class\"]]:t[\"class\"]}}function rt(e){var t=e[\"class\"],n=e.staticClass;return n||t?it(n,ot(t)):\"\"}function it(e,t){return e?t?e+\" \"+t:e:t||\"\"}function ot(e){var t=\"\";if(!e)return t;if(\"string\"==typeof e)return e;if(Array.isArray(e)){for(var n,r=0,i=e.length;r<i;r++)e[r]&&(n=ot(e[r]))&&(t+=n+\" \");return t.slice(0,-1)}if(p(e)){for(var o in e)e[o]&&(t+=o+\" \");return t.slice(0,-1)}return t}function at(e){return Uo(e)?\"svg\":\"math\"===e?\"math\":void 0}function st(e){if(!$i)return!0;if(Ho(e))return!1;if(e=e.toLowerCase(),null!=Jo[e])return Jo[e];var t=document.createElement(e);return e.indexOf(\"-\")>-1?Jo[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Jo[e]=/HTMLUnknownElement/.test(t.toString())}function ut(e){if(\"string\"==typeof e){var n=e;if(e=document.querySelector(e),!e)return\"production\"!==t.env.NODE_ENV&&Ii(\"Cannot find element: \"+n),document.createElement(\"div\")}return e}function lt(e,t){var n=document.createElement(e);return\"select\"!==e?n:(t.data&&t.data.attrs&&\"multiple\"in t.data.attrs&&n.setAttribute(\"multiple\",\"multiple\"),n)}function ct(e,t){return document.createElementNS(Io[e],t)}function dt(e){return document.createTextNode(e)}function ft(e){return document.createComment(e)}function pt(e,t,n){e.insertBefore(t,n)}function vt(e,t){e.removeChild(t)}function ht(e,t){e.appendChild(t)}function mt(e){return e.parentNode}function gt(e){return e.nextSibling}function yt(e){return e.tagName}function _t(e,t){e.textContent=t}function bt(e,t,n){e.setAttribute(t,n)}function wt(e,t){var n=e.data.ref;if(n){var r=e.context,i=e.child||e.elm,o=r.$refs;t?Array.isArray(o[n])?a(o[n],i):o[n]===i&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])&&o[n].indexOf(i)<0?o[n].push(i):o[n]=[i]:o[n]=i}}function xt(e){return null==e}function kt(e){return null!=e}function Et(e,t){return e.key===t.key&&e.tag===t.tag&&e.isComment===t.isComment&&!e.data==!t.data}function Nt(e,t,n){var r,i,o={};for(r=t;r<=n;++r)i=e[r].key,kt(i)&&(o[i]=r);return o}function Ct(e){function n(e){return new yo(A.tagName(e).toLowerCase(),{},[],(void 0),e)}function r(e,t){function n(){0===--n.listeners&&i(e)}return n.listeners=t,n}function i(e){var t=A.parentNode(e);t&&A.removeChild(t,e)}function a(e,n,r,i,o){if(e.isRootInsert=!o,!s(e,n,r,i)){var a=e.data,u=e.children,l=e.tag;kt(l)?(\"production\"!==t.env.NODE_ENV&&(a&&a.pre&&S++,S||e.ns||Ni.ignoredElements.length&&Ni.ignoredElements.indexOf(l)>-1||!Ni.isUnknownElement(l)||Ii(\"Unknown custom element: <\"+l+'> - did you register the component correctly? For recursive components, make sure to provide the \"name\" option.',e.context)),e.elm=e.ns?A.createElementNS(e.ns,l):A.createElement(l,e),h(e),d(e,u,n),kt(a)&&p(e,n),c(r,e.elm,i),\"production\"!==t.env.NODE_ENV&&a&&a.pre&&S--):e.isComment?(e.elm=A.createComment(e.text),c(r,e.elm,i)):(e.elm=A.createTextNode(e.text),c(r,e.elm,i))}}function s(e,t,n,r){var i=e.data;if(kt(i)){var o=kt(e.child)&&i.keepAlive;if(kt(i=i.hook)&&kt(i=i.init)&&i(e,!1,n,r),kt(e.child))return v(e,t),o&&l(e,t,n,r),!0}}function l(e,t,n,r){for(var i,o=e;o.child;)if(o=o.child._vnode,kt(i=o.data)&&kt(i=i.transition)){for(i=0;i<O.activate.length;++i)O.activate[i](Ko,o);t.push(o);break}c(n,e.elm,r)}function c(e,t,n){e&&(n?A.insertBefore(e,t,n):A.appendChild(e,t))}function d(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)a(t[r],n,e.elm,null,!0);else u(e.text)&&A.appendChild(e.elm,A.createTextNode(e.text))}function f(e){for(;e.child;)e=e.child._vnode;return kt(e.tag)}function p(e,t){for(var n=0;n<O.create.length;++n)O.create[n](Ko,e);N=e.data.hook,kt(N)&&(N.create&&N.create(Ko,e),N.insert&&t.push(e))}function v(e,t){e.data.pendingInsert&&t.push.apply(t,e.data.pendingInsert),e.elm=e.child.$el,f(e)?(p(e,t),h(e)):(wt(e),t.push(e))}function h(e){var t;kt(t=e.context)&&kt(t=t.$options._scopeId)&&A.setAttribute(e.elm,t,\"\"),kt(t=bo)&&t!==e.context&&kt(t=t.$options._scopeId)&&A.setAttribute(e.elm,t,\"\")}function m(e,t,n,r,i,o){for(;r<=i;++r)a(n[r],o,e,t)}function g(e){var t,n,r=e.data;if(kt(r))for(kt(t=r.hook)&&kt(t=t.destroy)&&t(e),t=0;t<O.destroy.length;++t)O.destroy[t](e);if(kt(t=e.children))for(n=0;n<e.children.length;++n)g(e.children[n])}function y(e,t,n,r){for(;n<=r;++n){var o=t[n];kt(o)&&(kt(o.tag)?(_(o),g(o)):i(o.elm))}}function _(e,t){if(t||kt(e.data)){var n=O.remove.length+1;for(t?t.listeners+=n:t=r(e.elm,n),kt(N=e.child)&&kt(N=N._vnode)&&kt(N.data)&&_(N,t),N=0;N<O.remove.length;++N)O.remove[N](e,t);kt(N=e.data.hook)&&kt(N=N.remove)?N(e,t):t()}else i(e.elm)}function b(e,n,r,i,o){for(var s,u,l,c,d=0,f=0,p=n.length-1,v=n[0],h=n[p],g=r.length-1,_=r[0],b=r[g],x=!o;d<=p&&f<=g;)xt(v)?v=n[++d]:xt(h)?h=n[--p]:Et(v,_)?(w(v,_,i),v=n[++d],_=r[++f]):Et(h,b)?(w(h,b,i),h=n[--p],b=r[--g]):Et(v,b)?(w(v,b,i),x&&A.insertBefore(e,v.elm,A.nextSibling(h.elm)),\nv=n[++d],b=r[--g]):Et(h,_)?(w(h,_,i),x&&A.insertBefore(e,h.elm,v.elm),h=n[--p],_=r[++f]):(xt(s)&&(s=Nt(n,d,p)),u=kt(_.key)?s[_.key]:null,xt(u)?(a(_,i,e,v.elm),_=r[++f]):(l=n[u],\"production\"===t.env.NODE_ENV||l||Ii(\"It seems there are duplicate keys that is causing an update error. Make sure each v-for item has a unique key.\"),Et(l,_)?(w(l,_,i),n[u]=void 0,x&&A.insertBefore(e,_.elm,v.elm),_=r[++f]):(a(_,i,e,v.elm),_=r[++f])));d>p?(c=xt(r[g+1])?null:r[g+1].elm,m(e,c,r,f,g,i)):f>g&&y(e,n,d,p)}function w(e,t,n,r){if(e!==t){if(t.isStatic&&e.isStatic&&t.key===e.key&&(t.isCloned||t.isOnce))return t.elm=e.elm,void(t.child=e.child);var i,o=t.data,a=kt(o);a&&kt(i=o.hook)&&kt(i=i.prepatch)&&i(e,t);var s=t.elm=e.elm,u=e.children,l=t.children;if(a&&f(t)){for(i=0;i<O.update.length;++i)O.update[i](e,t);kt(i=o.hook)&&kt(i=i.update)&&i(e,t)}xt(t.text)?kt(u)&&kt(l)?u!==l&&b(s,u,l,n,r):kt(l)?(kt(e.text)&&A.setTextContent(s,\"\"),m(s,null,l,0,l.length-1,n)):kt(u)?y(s,u,0,u.length-1):kt(e.text)&&A.setTextContent(s,\"\"):e.text!==t.text&&A.setTextContent(s,t.text),a&&kt(i=o.hook)&&kt(i=i.postpatch)&&i(e,t)}}function x(e,t,n){if(n&&e.parent)e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}function k(e,n,r){if(\"production\"!==t.env.NODE_ENV&&!E(e,n))return!1;n.elm=e;var i=n.tag,o=n.data,a=n.children;if(kt(o)&&(kt(N=o.hook)&&kt(N=N.init)&&N(n,!0),kt(N=n.child)))return v(n,r),!0;if(kt(i)){if(kt(a))if(e.hasChildNodes()){for(var s=!0,u=e.firstChild,l=0;l<a.length;l++){if(!u||!k(u,a[l],r)){s=!1;break}u=u.nextSibling}if(!s||u)return\"production\"===t.env.NODE_ENV||\"undefined\"==typeof console||D||(D=!0),!1}else d(n,a,r);if(kt(o))for(var c in o)if(!T(c)){p(n,r);break}}else e.data!==n.text&&(e.data=n.text);return!0}function E(e,t){return t.tag?0===t.tag.indexOf(\"vue-component\")||t.tag.toLowerCase()===(e.tagName&&e.tagName.toLowerCase()):e.nodeType===(t.isComment?8:3)}var N,C,O={},$=e.modules,A=e.nodeOps;for(N=0;N<Wo.length;++N)for(O[Wo[N]]=[],C=0;C<$.length;++C)void 0!==$[C][Wo[N]]&&O[Wo[N]].push($[C][Wo[N]]);var S=0,D=!1,T=o(\"attrs,style,class,staticClass,staticStyle,key\");return function(e,r,i,o,s,u){if(!r)return void(e&&g(e));var l,c,d=!1,p=[];if(e){var v=kt(e.nodeType);if(!v&&Et(e,r))w(e,r,p,o);else{if(v){if(1===e.nodeType&&e.hasAttribute(\"server-rendered\")&&(e.removeAttribute(\"server-rendered\"),i=!0),i){if(k(e,r,p))return x(r,p,!0),e;\"production\"!==t.env.NODE_ENV&&Ii(\"The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.\")}e=n(e)}if(l=e.elm,c=A.parentNode(l),a(r,p,c,A.nextSibling(l)),r.parent){for(var h=r.parent;h;)h.elm=r.elm,h=h.parent;if(f(r))for(var m=0;m<O.create.length;++m)O.create[m](Ko,r.parent)}null!==c?y(c,[e],0,0):kt(e.tag)&&g(e)}}else d=!0,a(r,p,s,u);return x(r,p,d),r.elm}}function Ot(e,t){(e.data.directives||t.data.directives)&&$t(e,t)}function $t(e,t){var n,r,i,o=e===Ko,a=t===Ko,s=At(e.data.directives,e.context),u=At(t.data.directives,t.context),l=[],c=[];for(n in u)r=s[n],i=u[n],r?(i.oldValue=r.value,Dt(i,\"update\",t,e),i.def&&i.def.componentUpdated&&c.push(i)):(Dt(i,\"bind\",t,e),i.def&&i.def.inserted&&l.push(i));if(l.length){var d=function(){for(var n=0;n<l.length;n++)Dt(l[n],\"inserted\",t,e)};o?de(t.data.hook||(t.data.hook={}),\"insert\",d,\"dir-insert\"):d()}if(c.length&&de(t.data.hook||(t.data.hook={}),\"postpatch\",function(){for(var n=0;n<c.length;n++)Dt(c[n],\"componentUpdated\",t,e)},\"dir-postpatch\"),!o)for(n in s)u[n]||Dt(s[n],\"unbind\",e,e,a)}function At(e,t){var n=Object.create(null);if(!e)return n;var r,i;for(r=0;r<e.length;r++)i=e[r],i.modifiers||(i.modifiers=Go),n[St(i)]=i,i.def=F(t.$options,\"directives\",i.name,!0);return n}function St(e){return e.rawName||e.name+\".\"+Object.keys(e.modifiers||{}).join(\".\")}function Dt(e,t,n,r,i){var o=e.def&&e.def[t];o&&o(n.elm,e,n,r,i)}function Tt(e,t){if(e.data.attrs||t.data.attrs){var n,r,i,o=t.elm,a=e.data.attrs||{},s=t.data.attrs||{};s.__ob__&&(s=t.data.attrs=f({},s));for(n in s)r=s[n],i=a[n],i!==r&&jt(o,n,r);Di&&s.value!==a.value&&jt(o,\"value\",s.value);for(n in a)null==s[n]&&(Lo(n)?o.removeAttributeNS(Po,Mo(n)):jo(n)||o.removeAttribute(n))}}function jt(e,t,n){Vo(t)?Ro(n)?e.removeAttribute(t):e.setAttribute(t,t):jo(t)?e.setAttribute(t,Ro(n)||\"false\"===n?\"false\":\"true\"):Lo(t)?Ro(n)?e.removeAttributeNS(Po,Mo(t)):e.setAttributeNS(Po,t,n):Ro(n)?e.removeAttribute(t):e.setAttribute(t,n)}function Vt(e,t){var n=t.elm,r=t.data,i=e.data;if(r.staticClass||r[\"class\"]||i&&(i.staticClass||i[\"class\"])){var o=tt(t),a=n._transitionClasses;a&&(o=it(o,ot(a))),o!==n._prevClass&&(n.setAttribute(\"class\",o),n._prevClass=o)}}function Pt(e,t,n,r){if(n){var i=t;t=function(n){Lt(e,t,r),1===arguments.length?i(n):i.apply(null,arguments)}}Ao.addEventListener(e,t,r)}function Lt(e,t,n){Ao.removeEventListener(e,t,n)}function Mt(e,t){if(e.data.on||t.data.on){var n=t.data.on||{},r=e.data.on||{};Ao=t.elm,fe(n,r,Pt,Lt,t.context)}}function Rt(e,t){if(e.data.domProps||t.data.domProps){var n,r,i=t.elm,o=e.data.domProps||{},a=t.data.domProps||{};a.__ob__&&(a=t.data.domProps=f({},a));for(n in o)null==a[n]&&(i[n]=\"\");for(n in a)if(r=a[n],(\"textContent\"!==n&&\"innerHTML\"!==n||(t.children&&(t.children.length=0),r!==o[n]))&&(\"checked\"!==n||Ft(i,r)))if(\"value\"===n){i._value=r;var s=null==r?\"\":String(r);It(i,t,s)&&(i.value=s)}else i[n]=r}}function It(e,t,n){return!(e.composing||\"option\"!==t.tag&&!Ft(e,n)&&!Ut(t,n))}function Ft(e,t){return document.activeElement!==e&&e.value!==t}function Ut(e,t){var n=e.elm.value,r=e.elm._vModifiers;return r&&r.number||\"number\"===e.elm.type?i(n)!==i(t):r&&r.trim?n.trim()!==t.trim():n!==t}function Bt(e){var t=Ht(e.style);return e.staticStyle?f(e.staticStyle,t):t}function Ht(e){return Array.isArray(e)?h(e):\"string\"==typeof e?na(e):e}function Jt(e,t){var n,r={};if(t)for(var i=e;i.child;)i=i.child._vnode,i.data&&(n=Bt(i.data))&&f(r,n);(n=Bt(e.data))&&f(r,n);for(var o=e;o=o.parent;)o.data&&(n=Bt(o.data))&&f(r,n);return r}function zt(e,t){var n=t.data,r=e.data;if(n.staticStyle||n.style||r.staticStyle||r.style){var i,o,a=t.elm,s=e.data.staticStyle,u=e.data.style||{},l=s||u,c=Ht(t.data.style)||{};t.data.style=c.__ob__?f({},c):c;var d=Jt(t,!0);for(o in l)null==d[o]&&oa(a,o,\"\");for(o in d)i=d[o],i!==l[o]&&oa(a,o,null==i?\"\":i)}}function qt(e,t){if(t&&t.trim())if(e.classList)t.indexOf(\" \")>-1?t.split(/\\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=\" \"+e.getAttribute(\"class\")+\" \";n.indexOf(\" \"+t+\" \")<0&&e.setAttribute(\"class\",(n+t).trim())}}function Kt(e,t){if(t&&t.trim())if(e.classList)t.indexOf(\" \")>-1?t.split(/\\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t);else{for(var n=\" \"+e.getAttribute(\"class\")+\" \",r=\" \"+t+\" \";n.indexOf(r)>=0;)n=n.replace(r,\" \");e.setAttribute(\"class\",n.trim())}}function Wt(e){ma(function(){ma(e)})}function Zt(e,t){(e._transitionClasses||(e._transitionClasses=[])).push(t),qt(e,t)}function Gt(e,t){e._transitionClasses&&a(e._transitionClasses,t),Kt(e,t)}function Yt(e,t,n){var r=Qt(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ca?pa:ha,u=0,l=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++u>=a&&l()};setTimeout(function(){u<a&&l()},o+1),e.addEventListener(s,c)}function Qt(e,t){var n,r=window.getComputedStyle(e),i=r[fa+\"Delay\"].split(\", \"),o=r[fa+\"Duration\"].split(\", \"),a=Xt(i,o),s=r[va+\"Delay\"].split(\", \"),u=r[va+\"Duration\"].split(\", \"),l=Xt(s,u),c=0,d=0;t===ca?a>0&&(n=ca,c=a,d=o.length):t===da?l>0&&(n=da,c=l,d=u.length):(c=Math.max(a,l),n=c>0?a>l?ca:da:null,d=n?n===ca?o.length:u.length:0);var f=n===ca&&ga.test(r[fa+\"Property\"]);return{type:n,timeout:c,propCount:d,hasTransform:f}}function Xt(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return en(t)+en(e[n])}))}function en(e){return 1e3*Number(e.slice(0,-1))}function tn(e,t){var n=e.elm;n._leaveCb&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=rn(e.data.transition);if(r&&!n._enterCb&&1===n.nodeType){for(var i=r.css,o=r.type,a=r.enterClass,s=r.enterToClass,u=r.enterActiveClass,l=r.appearClass,c=r.appearToClass,d=r.appearActiveClass,f=r.beforeEnter,p=r.enter,v=r.afterEnter,h=r.enterCancelled,m=r.beforeAppear,g=r.appear,y=r.afterAppear,_=r.appearCancelled,b=bo,w=bo.$vnode;w&&w.parent;)w=w.parent,b=w.context;var x=!b._isMounted||!e.isRootInsert;if(!x||g||\"\"===g){var k=x?l:a,E=x?d:u,N=x?c:s,C=x?m||f:f,O=x&&\"function\"==typeof g?g:p,$=x?y||v:v,A=x?_||h:h,S=i!==!1&&!Di,D=O&&(O._length||O.length)>1,T=n._enterCb=on(function(){S&&(Gt(n,N),Gt(n,E)),T.cancelled?(S&&Gt(n,k),A&&A(n)):$&&$(n),n._enterCb=null});e.data.show||de(e.data.hook||(e.data.hook={}),\"insert\",function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.context===e.context&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),O&&O(n,T)},\"transition-insert\"),C&&C(n),S&&(Zt(n,k),Zt(n,E),Wt(function(){Zt(n,N),Gt(n,k),T.cancelled||D||Yt(n,o,T)})),e.data.show&&(t&&t(),O&&O(n,T)),S||D||T()}}}function nn(e,t){function n(){g.cancelled||(e.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[e.key]=e),c&&c(r),h&&(Zt(r,s),Zt(r,l),Wt(function(){Zt(r,u),Gt(r,s),g.cancelled||m||Yt(r,a,g)})),d&&d(r,g),h||m||g())}var r=e.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var i=rn(e.data.transition);if(!i)return t();if(!r._leaveCb&&1===r.nodeType){var o=i.css,a=i.type,s=i.leaveClass,u=i.leaveToClass,l=i.leaveActiveClass,c=i.beforeLeave,d=i.leave,f=i.afterLeave,p=i.leaveCancelled,v=i.delayLeave,h=o!==!1&&!Di,m=d&&(d._length||d.length)>1,g=r._leaveCb=on(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[e.key]=null),h&&(Gt(r,u),Gt(r,l)),g.cancelled?(h&&Gt(r,s),p&&p(r)):(t(),f&&f(r)),r._leaveCb=null});v?v(n):n()}}function rn(e){if(e){if(\"object\"==typeof e){var t={};return e.css!==!1&&f(t,ya(e.name||\"v\")),f(t,e),t}return\"string\"==typeof e?ya(e):void 0}}function on(e){var t=!1;return function(){t||(t=!0,e())}}function an(e,t){t.data.show||tn(t)}function sn(e,n,r){var i=n.value,o=e.multiple;if(o&&!Array.isArray(i))return void(\"production\"!==t.env.NODE_ENV&&Ii('<select multiple v-model=\"'+n.expression+'\"> expects an Array value for its binding, but got '+Object.prototype.toString.call(i).slice(8,-1),r));for(var a,s,u=0,l=e.options.length;u<l;u++)if(s=e.options[u],o)a=_(i,ln(s))>-1,s.selected!==a&&(s.selected=a);else if(y(ln(s),i))return void(e.selectedIndex!==u&&(e.selectedIndex=u));o||(e.selectedIndex=-1)}function un(e,t){for(var n=0,r=t.length;n<r;n++)if(y(ln(t[n]),e))return!1;return!0}function ln(e){return\"_value\"in e?e._value:e.value}function cn(e){e.target.composing=!0}function dn(e){e.target.composing=!1,fn(e.target,\"input\")}function fn(e,t){var n=document.createEvent(\"HTMLEvents\");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function pn(e){return!e.child||e.data&&e.data.transition?e:pn(e.child._vnode)}function vn(e){var t=e&&e.componentOptions;return t&&t.Ctor.options[\"abstract\"]?vn(ye(t.children)):e}function hn(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[gi(o)]=i[o].fn;return t}function mn(e,t){return/\\d-keep-alive$/.test(t.tag)?e(\"keep-alive\"):null}function gn(e){for(;e=e.parent;)if(e.data.transition)return!0}function yn(e,t){return t.key===e.key&&t.tag===e.tag}function _n(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function bn(e){e.data.newPos=e.elm.getBoundingClientRect()}function wn(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform=\"translate(\"+r+\"px,\"+i+\"px)\",o.transitionDuration=\"0s\"}}function xn(e,t){var n=document.createElement(\"div\");return n.innerHTML='<div a=\"'+e+'\">',n.innerHTML.indexOf(t)>0}function kn(e){return Ta=Ta||document.createElement(\"div\"),Ta.innerHTML=e,Ta.textContent}function En(e,t){return t&&(e=e.replace(Os,\"\\n\")),e.replace(Ns,\"<\").replace(Cs,\">\").replace($s,\"&\").replace(As,'\"')}function Nn(e,t){function n(t){d+=t,e=e.substring(t)}function r(){var t=e.match(Ha);if(t){var r={tagName:t[1],attrs:[],start:d};n(t[0].length);for(var i,o;!(i=e.match(Ja))&&(o=e.match(Fa));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=d,r}}function i(e){var n=e.tagName,r=e.unarySlash;l&&(\"p\"===s&&La(n)&&o(\"\",s),Pa(n)&&s===n&&o(\"\",n));for(var i=c(n)||\"html\"===n&&\"head\"===s||!!r,a=e.attrs.length,d=new Array(a),f=0;f<a;f++){var p=e.attrs[f];Za&&p[0].indexOf('\"\"')===-1&&(\"\"===p[3]&&delete p[3],\"\"===p[4]&&delete p[4],\"\"===p[5]&&delete p[5]);var v=p[3]||p[4]||p[5]||\"\";d[f]={name:p[1],value:En(v,t.shouldDecodeNewlines)}}i||(u.push({tag:n,attrs:d}),s=n,r=\"\"),t.start&&t.start(n,d,i,e.start,e.end)}function o(e,n,r,i){var o;if(null==r&&(r=d),null==i&&(i=d),n){var a=n.toLowerCase();for(o=u.length-1;o>=0&&u[o].tag.toLowerCase()!==a;o--);}else o=0;if(o>=0){for(var l=u.length-1;l>=o;l--)t.end&&t.end(u[l].tag,r,i);u.length=o,s=o&&u[o-1].tag}else\"br\"===n.toLowerCase()?t.start&&t.start(n,[],!0,r,i):\"p\"===n.toLowerCase()&&(t.start&&t.start(n,[],!1,r,i),t.end&&t.end(n,r,i))}for(var a,s,u=[],l=t.expectHTML,c=t.isUnaryTag||ki,d=0;e;){if(a=e,s&&ks(s,t.sfc,u)){var f=s.toLowerCase(),p=Es[f]||(Es[f]=new RegExp(\"([\\\\s\\\\S]*?)(</\"+f+\"[^>]*>)\",\"i\")),v=0,h=e.replace(p,function(e,n,r){return v=r.length,\"script\"!==f&&\"style\"!==f&&\"noscript\"!==f&&(n=n.replace(/<!--([\\s\\S]*?)-->/g,\"$1\").replace(/<!\\[CDATA\\[([\\s\\S]*?)]]>/g,\"$1\")),t.chars&&t.chars(n),\"\"});d+=e.length-h.length,e=h,o(\"</\"+f+\">\",f,d-v,d)}else{var m=e.indexOf(\"<\");if(0===m){if(Ka.test(e)){var g=e.indexOf(\"-->\");if(g>=0){n(g+3);continue}}if(Wa.test(e)){var y=e.indexOf(\"]>\");if(y>=0){n(y+2);continue}}var _=e.match(qa);if(_){n(_[0].length);continue}var b=e.match(za);if(b){var w=d;n(b[0].length),o(b[0],b[1],w,d);continue}var x=r();if(x){i(x);continue}}var k=void 0,E=void 0,N=void 0;if(m>0){for(E=e.slice(m);!(za.test(E)||Ha.test(E)||Ka.test(E)||Wa.test(E)||(N=E.indexOf(\"<\",1),N<0));)m+=N,E=e.slice(m);k=e.substring(0,m),n(m)}m<0&&(k=e,e=\"\"),t.chars&&k&&t.chars(k)}if(e===a&&t.chars){t.chars(e);break}}o()}function Cn(e){function t(){(a||(a=[])).push(e.slice(v,i).trim()),v=i+1}var n,r,i,o,a,s=!1,u=!1,l=!1,c=!1,d=0,f=0,p=0,v=0;for(i=0;i<e.length;i++)if(r=n,n=e.charCodeAt(i),s)39===n&&92!==r&&(s=!1);else if(u)34===n&&92!==r&&(u=!1);else if(l)96===n&&92!==r&&(l=!1);else if(c)47===n&&92!==r&&(c=!1);else if(124!==n||124===e.charCodeAt(i+1)||124===e.charCodeAt(i-1)||d||f||p){switch(n){case 34:u=!0;break;case 39:s=!0;break;case 96:l=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:d++;break;case 125:d--}if(47===n){for(var h=i-1,m=void 0;h>=0&&(m=e.charAt(h),\" \"===m);h--);m&&/[\\w$]/.test(m)||(c=!0)}}else void 0===o?(v=i+1,o=e.slice(0,i).trim()):t();if(void 0===o?o=e.slice(0,i).trim():0!==v&&t(),a)for(i=0;i<a.length;i++)o=On(o,a[i]);return o}function On(e,t){var n=t.indexOf(\"(\");if(n<0)return'_f(\"'+t+'\")('+e+\")\";var r=t.slice(0,n),i=t.slice(n+1);return'_f(\"'+r+'\")('+e+\",\"+i}function $n(e,t){var n=t?Ts(t):Ss;if(n.test(e)){for(var r,i,o=[],a=n.lastIndex=0;r=n.exec(e);){i=r.index,i>a&&o.push(JSON.stringify(e.slice(a,i)));var s=Cn(r[1].trim());o.push(\"_s(\"+s+\")\"),a=i+r[0].length}return a<e.length&&o.push(JSON.stringify(e.slice(a))),o.join(\"+\")}}function An(e){}function Sn(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Dn(e,t,n){(e.props||(e.props=[])).push({name:t,value:n})}function Tn(e,t,n){(e.attrs||(e.attrs=[])).push({name:t,value:n})}function jn(e,t,n,r,i,o){(e.directives||(e.directives=[])).push({name:t,rawName:n,value:r,arg:i,modifiers:o})}function Vn(e,t,n,r,i){r&&r.capture&&(delete r.capture,t=\"!\"+t),r&&r.once&&(delete r.once,t=\"~\"+t);var o;r&&r[\"native\"]?(delete r[\"native\"],o=e.nativeEvents||(e.nativeEvents={})):o=e.events||(e.events={});var a={value:n,modifiers:r},s=o[t];Array.isArray(s)?i?s.unshift(a):s.push(a):s?o[t]=i?[a,s]:[s,a]:o[t]=a}function Pn(e,t,n){var r=Ln(e,\":\"+t)||Ln(e,\"v-bind:\"+t);if(null!=r)return Cn(r);if(n!==!1){var i=Ln(e,t);if(null!=i)return JSON.stringify(i)}}function Ln(e,t){var n;if(null!=(n=e.attrsMap[t]))for(var r=e.attrsList,i=0,o=r.length;i<o;i++)if(r[i].name===t){r.splice(i,1);break}return n}function Mn(e){if(Ya=e,Ga=Ya.length,Xa=es=ts=0,e.indexOf(\"[\")<0||e.lastIndexOf(\"]\")<Ga-1)return{exp:e,idx:null};for(;!In();)Qa=Rn(),Fn(Qa)?Bn(Qa):91===Qa&&Un(Qa);return{exp:e.substring(0,es),idx:e.substring(es+1,ts)}}function Rn(){return Ya.charCodeAt(++Xa)}function In(){return Xa>=Ga}function Fn(e){return 34===e||39===e}function Un(e){var t=1;for(es=Xa;!In();)if(e=Rn(),Fn(e))Bn(e);else if(91===e&&t++,93===e&&t--,0===t){ts=Xa;break}}function Bn(e){for(var t=e;!In()&&(e=Rn(),e!==t););}function Hn(e,n){ns=n.warn||An,rs=n.getTagNamespace||ki,is=n.mustUseProp||ki,os=n.isPreTag||ki,as=Sn(n.modules,\"preTransformNode\"),ss=Sn(n.modules,\"transformNode\"),us=Sn(n.modules,\"postTransformNode\"),ls=n.delimiters;var r,i,o=[],a=n.preserveWhitespace!==!1,s=!1,u=!1,l=!1;return Nn(e,{expectHTML:n.expectHTML,isUnaryTag:n.isUnaryTag,shouldDecodeNewlines:n.shouldDecodeNewlines,start:function(a,c,d){function f(n){\"production\"===t.env.NODE_ENV||l||(\"slot\"!==n.tag&&\"template\"!==n.tag||(l=!0,ns(\"Cannot use <\"+n.tag+\"> as component root element because it may contain multiple nodes:\\n\"+e)),n.attrsMap.hasOwnProperty(\"v-for\")&&(l=!0,ns(\"Cannot use v-for on stateful component root element because it renders multiple elements:\\n\"+e)))}var p=i&&i.ns||rs(a);Si&&\"svg\"===p&&(c=sr(c));var v={type:1,tag:a,attrsList:c,attrsMap:or(c),parent:i,children:[]};p&&(v.ns=p),ar(v)&&!Pi()&&(v.forbidden=!0,\"production\"!==t.env.NODE_ENV&&ns(\"Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <\"+a+\">, as they will not be parsed.\"));for(var h=0;h<as.length;h++)as[h](v,n);if(s||(Jn(v),v.pre&&(s=!0)),os(v.tag)&&(u=!0),s)zn(v);else{Wn(v),Zn(v),Xn(v),qn(v),v.plain=!v.key&&!c.length,Kn(v),er(v),tr(v);for(var m=0;m<ss.length;m++)ss[m](v,n);nr(v)}if(r?o.length||(r[\"if\"]&&(v.elseif||v[\"else\"])?(f(v),Qn(r,{exp:v.elseif,block:v})):\"production\"===t.env.NODE_ENV||l||(l=!0,ns(\"Component template should contain exactly one root element:\\n\\n\"+e+\"\\n\\nIf you are using v-if on multiple elements, use v-else-if to chain them instead.\"))):(r=v,f(r)),i&&!v.forbidden)if(v.elseif||v[\"else\"])Gn(v,i);else if(v.slotScope){i.plain=!1;var g=v.slotTarget||\"default\";(i.scopedSlots||(i.scopedSlots={}))[g]=v}else i.children.push(v),v.parent=i;d||(i=v,o.push(v));for(var y=0;y<us.length;y++)us[y](v,n)},end:function(){var e=o[o.length-1],t=e.children[e.children.length-1];t&&3===t.type&&\" \"===t.text&&e.children.pop(),o.length-=1,i=o[o.length-1],e.pre&&(s=!1),os(e.tag)&&(u=!1)},chars:function(n){if(!i)return void(\"production\"===t.env.NODE_ENV||l||n!==e||(l=!0,ns(\"Component template requires a root element, rather than just text:\\n\\n\"+e)));if(!Si||\"textarea\"!==i.tag||i.attrsMap.placeholder!==n){var r=i.children;if(n=u||n.trim()?Fs(n):a&&r.length?\" \":\"\"){var o;!s&&\" \"!==n&&(o=$n(n,ls))?r.push({type:2,expression:o,text:n}):\" \"===n&&\" \"===r[r.length-1].text||i.children.push({type:3,text:n})}}}}),r}function Jn(e){null!=Ln(e,\"v-pre\")&&(e.pre=!0)}function zn(e){var t=e.attrsList.length;if(t)for(var n=e.attrs=new Array(t),r=0;r<t;r++)n[r]={name:e.attrsList[r].name,value:JSON.stringify(e.attrsList[r].value)};else e.pre||(e.plain=!0)}function qn(e){var n=Pn(e,\"key\");n&&(\"production\"!==t.env.NODE_ENV&&\"template\"===e.tag&&ns(\"<template> cannot be keyed. Place the key on real elements instead.\"),e.key=n)}function Kn(e){var t=Pn(e,\"ref\");t&&(e.ref=t,e.refInFor=rr(e))}function Wn(e){var n;if(n=Ln(e,\"v-for\")){var r=n.match(Vs);if(!r)return void(\"production\"!==t.env.NODE_ENV&&ns(\"Invalid v-for expression: \"+n));e[\"for\"]=r[2].trim();var i=r[1].trim(),o=i.match(Ps);o?(e.alias=o[1].trim(),e.iterator1=o[2].trim(),o[3]&&(e.iterator2=o[3].trim())):e.alias=i}}function Zn(e){var t=Ln(e,\"v-if\");if(t)e[\"if\"]=t,Qn(e,{exp:t,block:e});else{null!=Ln(e,\"v-else\")&&(e[\"else\"]=!0);var n=Ln(e,\"v-else-if\");n&&(e.elseif=n)}}function Gn(e,n){var r=Yn(n.children);r&&r[\"if\"]?Qn(r,{exp:e.elseif,block:e}):\"production\"!==t.env.NODE_ENV&&ns(\"v-\"+(e.elseif?'else-if=\"'+e.elseif+'\"':\"else\")+\" used on element <\"+e.tag+\"> without corresponding v-if.\")}function Yn(e){for(var n=e.length;n--;){if(1===e[n].type)return e[n];\"production\"!==t.env.NODE_ENV&&\" \"!==e[n].text&&ns('text \"'+e[n].text.trim()+'\" between v-if and v-else(-if) will be ignored.'),e.pop()}}function Qn(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function Xn(e){var t=Ln(e,\"v-once\");null!=t&&(e.once=!0)}function er(e){if(\"slot\"===e.tag)e.slotName=Pn(e,\"name\"),\"production\"!==t.env.NODE_ENV&&e.key&&ns(\"`key` does not work on <slot> because slots are abstract outlets and can possibly expand into multiple elements. Use the key on a wrapping element instead.\");else{var n=Pn(e,\"slot\");n&&(e.slotTarget='\"\"'===n?'\"default\"':n),\"template\"===e.tag&&(e.slotScope=Ln(e,\"scope\"))}}function tr(e){var t;(t=Pn(e,\"is\"))&&(e.component=t),null!=Ln(e,\"inline-template\")&&(e.inlineTemplate=!0)}function nr(e){var n,r,i,o,a,s,u,l,c=e.attrsList;for(n=0,r=c.length;n<r;n++)if(i=o=c[n].name,a=c[n].value,js.test(i))if(e.hasBindings=!0,u=ir(i),u&&(i=i.replace(Is,\"\")),Ls.test(i))i=i.replace(Ls,\"\"),a=Cn(a),l=!1,u&&(u.prop&&(l=!0,i=gi(i),\"innerHtml\"===i&&(i=\"innerHTML\")),u.camel&&(i=gi(i))),l||is(e.tag,i)?Dn(e,i,a):Tn(e,i,a);else if(Ms.test(i))i=i.replace(Ms,\"\"),Vn(e,i,a,u);else{i=i.replace(js,\"\");var d=i.match(Rs);d&&(s=d[1])&&(i=i.slice(0,-(s.length+1))),jn(e,i,o,a,s,u),\"production\"!==t.env.NODE_ENV&&\"model\"===i&&ur(e,a)}else{if(\"production\"!==t.env.NODE_ENV){var f=$n(a,ls);f&&ns(i+'=\"'+a+'\": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div id=\"{{ val }}\">, use <div :id=\"val\">.')}Tn(e,i,JSON.stringify(a)),is(e.tag,i)&&(\"value\"===i?Dn(e,i,JSON.stringify(a)):Dn(e,i,\"true\"))}}function rr(e){for(var t=e;t;){if(void 0!==t[\"for\"])return!0;t=t.parent}return!1}function ir(e){var t=e.match(Is);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}function or(e){for(var n={},r=0,i=e.length;r<i;r++)\"production\"!==t.env.NODE_ENV&&n[e[r].name]&&!Si&&ns(\"duplicate attribute: \"+e[r].name),n[e[r].name]=e[r].value;return n}function ar(e){return\"style\"===e.tag||\"script\"===e.tag&&(!e.attrsMap.type||\"text/javascript\"===e.attrsMap.type)}function sr(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];Us.test(r.name)||(r.name=r.name.replace(Bs,\"\"),t.push(r))}return t}function ur(e,t){for(var n=e;n;)n[\"for\"]&&n.alias===t&&ns(\"<\"+e.tag+' v-model=\"'+t+'\">: You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.'),n=n.parent}function lr(e,t){e&&(cs=Hs(t.staticKeys||\"\"),ds=t.isReservedTag||ki,dr(e),fr(e,!1))}function cr(e){return o(\"type,tag,attrsList,attrsMap,plain,parent,children,attrs\"+(e?\",\"+e:\"\"))}function dr(e){if(e[\"static\"]=vr(e),1===e.type){if(!ds(e.tag)&&\"slot\"!==e.tag&&null==e.attrsMap[\"inline-template\"])return;for(var t=0,n=e.children.length;t<n;t++){var r=e.children[t];dr(r),r[\"static\"]||(e[\"static\"]=!1)}}}function fr(e,t){if(1===e.type){if((e[\"static\"]||e.once)&&(e.staticInFor=t),e[\"static\"]&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)fr(e.children[n],t||!!e[\"for\"]);e.ifConditions&&pr(e.ifConditions,t)}}function pr(e,t){for(var n=1,r=e.length;n<r;n++)fr(e[n].block,t)}function vr(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e[\"if\"]||e[\"for\"]||vi(e.tag)||!ds(e.tag)||hr(e)||!Object.keys(e).every(cs))))}function hr(e){for(;e.parent;){if(e=e.parent,\"template\"!==e.tag)return!1;if(e[\"for\"])return!0}return!1}function mr(e,t){var n=t?\"nativeOn:{\":\"on:{\";for(var r in e)n+='\"'+r+'\":'+gr(r,e[r])+\",\";return n.slice(0,-1)+\"}\"}function gr(e,t){if(t){if(Array.isArray(t))return\"[\"+t.map(function(t){return gr(e,t)}).join(\",\")+\"]\";if(t.modifiers){var n=\"\",r=[];for(var i in t.modifiers)Ks[i]?n+=Ks[i]:r.push(i);r.length&&(n=yr(r)+n);var o=zs.test(t.value)?t.value+\"($event)\":t.value;return\"function($event){\"+n+o+\"}\"}return Js.test(t.value)||zs.test(t.value)?t.value:\"function($event){\"+t.value+\"}\"}return\"function(){}\"}function yr(e){return\"if(\"+e.map(_r).join(\"&&\")+\")return;\"}function _r(e){var t=parseInt(e,10);if(t)return\"$event.keyCode!==\"+t;var n=qs[e];return\"_k($event.keyCode,\"+JSON.stringify(e)+(n?\",\"+JSON.stringify(n):\"\")+\")\"}function br(e,t){e.wrapData=function(n){return\"_b(\"+n+\",'\"+e.tag+\"',\"+t.value+(t.modifiers&&t.modifiers.prop?\",true\":\"\")+\")\"}}function wr(e,t){var n=gs,r=gs=[],i=ys;ys=0,_s=t,fs=t.warn||An,ps=Sn(t.modules,\"transformCode\"),vs=Sn(t.modules,\"genData\"),hs=t.directives||{},ms=t.isReservedTag||ki;var o=e?xr(e):'_c(\"div\")';return gs=n,ys=i,{render:\"with(this){return \"+o+\"}\",staticRenderFns:r}}function xr(e){if(e.staticRoot&&!e.staticProcessed)return kr(e);if(e.once&&!e.onceProcessed)return Er(e);if(e[\"for\"]&&!e.forProcessed)return Or(e);if(e[\"if\"]&&!e.ifProcessed)return Nr(e);if(\"template\"!==e.tag||e.slotTarget){if(\"slot\"===e.tag)return Ir(e);var t;if(e.component)t=Fr(e.component,e);else{var n=e.plain?void 0:$r(e),r=e.inlineTemplate?null:jr(e,!0);t=\"_c('\"+e.tag+\"'\"+(n?\",\"+n:\"\")+(r?\",\"+r:\"\")+\")\"}for(var i=0;i<ps.length;i++)t=ps[i](e,t);return t}return jr(e)||\"void 0\"}function kr(e){return e.staticProcessed=!0,gs.push(\"with(this){return \"+xr(e)+\"}\"),\"_m(\"+(gs.length-1)+(e.staticInFor?\",true\":\"\")+\")\"}function Er(e){if(e.onceProcessed=!0,e[\"if\"]&&!e.ifProcessed)return Nr(e);if(e.staticInFor){for(var n=\"\",r=e.parent;r;){if(r[\"for\"]){n=r.key;break}r=r.parent}return n?\"_o(\"+xr(e)+\",\"+ys++ +(n?\",\"+n:\"\")+\")\":(\"production\"!==t.env.NODE_ENV&&fs(\"v-once can only be used inside v-for that is keyed. \"),xr(e))}return kr(e)}function Nr(e){return e.ifProcessed=!0,Cr(e.ifConditions.slice())}function Cr(e){function t(e){return e.once?Er(e):xr(e)}if(!e.length)return\"_e()\";var n=e.shift();return n.exp?\"(\"+n.exp+\")?\"+t(n.block)+\":\"+Cr(e):\"\"+t(n.block)}function Or(e){var t=e[\"for\"],n=e.alias,r=e.iterator1?\",\"+e.iterator1:\"\",i=e.iterator2?\",\"+e.iterator2:\"\";return e.forProcessed=!0,\"_l((\"+t+\"),function(\"+n+r+i+\"){return \"+xr(e)+\"})\"}function $r(e){var t=\"{\",n=Ar(e);n&&(t+=n+\",\"),e.key&&(t+=\"key:\"+e.key+\",\"),e.ref&&(t+=\"ref:\"+e.ref+\",\"),e.refInFor&&(t+=\"refInFor:true,\"),e.pre&&(t+=\"pre:true,\"),e.component&&(t+='tag:\"'+e.tag+'\",');for(var r=0;r<vs.length;r++)t+=vs[r](e);if(e.attrs&&(t+=\"attrs:{\"+Ur(e.attrs)+\"},\"),e.props&&(t+=\"domProps:{\"+Ur(e.props)+\"},\"),e.events&&(t+=mr(e.events)+\",\"),e.nativeEvents&&(t+=mr(e.nativeEvents,!0)+\",\"),e.slotTarget&&(t+=\"slot:\"+e.slotTarget+\",\"),e.scopedSlots&&(t+=Dr(e.scopedSlots)+\",\"),e.inlineTemplate){var i=Sr(e);i&&(t+=i+\",\")}return t=t.replace(/,$/,\"\")+\"}\",e.wrapData&&(t=e.wrapData(t)),t}function Ar(e){var t=e.directives;if(t){var n,r,i,o,a=\"directives:[\",s=!1;for(n=0,r=t.length;n<r;n++){i=t[n],o=!0;var u=hs[i.name]||Ws[i.name];u&&(o=!!u(e,i,fs)),o&&(s=!0,a+='{name:\"'+i.name+'\",rawName:\"'+i.rawName+'\"'+(i.value?\",value:(\"+i.value+\"),expression:\"+JSON.stringify(i.value):\"\")+(i.arg?',arg:\"'+i.arg+'\"':\"\")+(i.modifiers?\",modifiers:\"+JSON.stringify(i.modifiers):\"\")+\"},\")}return s?a.slice(0,-1)+\"]\":void 0}}function Sr(e){var n=e.children[0];if(\"production\"!==t.env.NODE_ENV&&(e.children.length>1||1!==n.type)&&fs(\"Inline-template components must have exactly one child element.\"),1===n.type){var r=wr(n,_s);return\"inlineTemplate:{render:function(){\"+r.render+\"},staticRenderFns:[\"+r.staticRenderFns.map(function(e){return\"function(){\"+e+\"}\"}).join(\",\")+\"]}\"}}function Dr(e){return\"scopedSlots:{\"+Object.keys(e).map(function(t){return Tr(t,e[t])}).join(\",\")+\"}\"}function Tr(e,t){return e+\":function(\"+String(t.attrsMap.scope)+\"){return \"+(\"template\"===t.tag?jr(t)||\"void 0\":xr(t))+\"}\"}function jr(e,t){var n=e.children;if(n.length){var r=n[0];if(1===n.length&&r[\"for\"]&&\"template\"!==r.tag&&\"slot\"!==r.tag)return xr(r);var i=Vr(n);return\"[\"+n.map(Mr).join(\",\")+\"]\"+(t&&i?\",\"+i:\"\")}}function Vr(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];if(Pr(r)||r[\"if\"]&&r.ifConditions.some(function(e){return Pr(e.block)})){t=2;break}(Lr(r)||r[\"if\"]&&r.ifConditions.some(function(e){return Lr(e.block)}))&&(t=1)}return t}function Pr(e){return e[\"for\"]||\"template\"===e.tag||\"slot\"===e.tag}function Lr(e){return 1===e.type&&!ms(e.tag)}function Mr(e){return 1===e.type?xr(e):Rr(e)}function Rr(e){return\"_v(\"+(2===e.type?e.expression:Br(JSON.stringify(e.text)))+\")\"}function Ir(e){var t=e.slotName||'\"default\"',n=jr(e),r=\"_t(\"+t+(n?\",\"+n:\"\"),i=e.attrs&&\"{\"+e.attrs.map(function(e){return gi(e.name)+\":\"+e.value}).join(\",\")+\"}\",o=e.attrsMap[\"v-bind\"];return!i&&!o||n||(r+=\",null\"),i&&(r+=\",\"+i),o&&(r+=(i?\"\":\",null\")+\",\"+o),r+\")\"}function Fr(e,t){var n=t.inlineTemplate?null:jr(t,!0);return\"_c(\"+e+\",\"+$r(t)+(n?\",\"+n:\"\")+\")\"}function Ur(e){for(var t=\"\",n=0;n<e.length;n++){var r=e[n];t+='\"'+r.name+'\":'+Br(r.value)+\",\"}return t.slice(0,-1)}function Br(e){return e.replace(/\\u2028/g,\"\\\\u2028\").replace(/\\u2029/g,\"\\\\u2029\")}function Hr(e,t){var n=Hn(e.trim(),t);lr(n,t);var r=wr(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}}function Jr(e){var t=[];return e&&zr(e,t),t}function zr(e,t){if(1===e.type){for(var n in e.attrsMap)if(js.test(n)){var r=e.attrsMap[n];r&&(\"v-for\"===n?qr(e,'v-for=\"'+r+'\"',t):Wr(r,n+'=\"'+r+'\"',t))}if(e.children)for(var i=0;i<e.children.length;i++)zr(e.children[i],t)}else 2===e.type&&Wr(e.expression,e.text,t)}function qr(e,t,n){Wr(e[\"for\"]||\"\",t,n),Kr(e.alias,\"v-for alias\",t,n),Kr(e.iterator1,\"v-for iterator\",t,n),Kr(e.iterator2,\"v-for iterator\",t,n)}function Kr(e,t,n,r){\"string\"!=typeof e||Gs.test(e)||r.push(\"- invalid \"+t+' \"'+e+'\" in expression: '+n)}function Wr(e,t,n){try{new Function(\"return \"+e)}catch(r){var i=e.replace(Ys,\"\").match(Zs);i?n.push('- avoid using JavaScript keyword as property name: \"'+i[0]+'\" in expression '+t):n.push(\"- invalid expression: \"+t)}}function Zr(e,n){var r=n.warn||An,i=Ln(e,\"class\");if(\"production\"!==t.env.NODE_ENV&&i){var o=$n(i,n.delimiters);o&&r('class=\"'+i+'\": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div class=\"{{ val }}\">, use <div :class=\"val\">.')}i&&(e.staticClass=JSON.stringify(i));var a=Pn(e,\"class\",!1);a&&(e.classBinding=a)}function Gr(e){var t=\"\";return e.staticClass&&(t+=\"staticClass:\"+e.staticClass+\",\"),e.classBinding&&(t+=\"class:\"+e.classBinding+\",\"),t}function Yr(e,n){var r=n.warn||An,i=Ln(e,\"style\");if(i){if(\"production\"!==t.env.NODE_ENV){var o=$n(i,n.delimiters);o&&r('style=\"'+i+'\": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div style=\"{{ val }}\">, use <div :style=\"val\">.')}e.staticStyle=JSON.stringify(na(i))}var a=Pn(e,\"style\",!1);a&&(e.styleBinding=a)}function Qr(e){var t=\"\";return e.staticStyle&&(t+=\"staticStyle:\"+e.staticStyle+\",\"),e.styleBinding&&(t+=\"style:(\"+e.styleBinding+\"),\"),t}function Xr(e,n,r){bs=r;var i=n.value,o=n.modifiers,a=e.tag,s=e.attrsMap.type;if(\"production\"!==t.env.NODE_ENV){var u=e.attrsMap[\"v-bind:type\"]||e.attrsMap[\":type\"];\"input\"===a&&u&&bs('<input :type=\"'+u+'\" v-model=\"'+i+'\">:\\nv-model does not support dynamic input types. Use v-if branches instead.')}return\"select\"===a?ri(e,i,o):\"input\"===a&&\"checkbox\"===s?ei(e,i,o):\"input\"===a&&\"radio\"===s?ti(e,i,o):ni(e,i,o),!0}function ei(e,n,r){\"production\"!==t.env.NODE_ENV&&null!=e.attrsMap.checked&&bs(\"<\"+e.tag+' v-model=\"'+n+\"\\\" checked>:\\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.\");var i=r&&r.number,o=Pn(e,\"value\")||\"null\",a=Pn(e,\"true-value\")||\"true\",s=Pn(e,\"false-value\")||\"false\";Dn(e,\"checked\",\"Array.isArray(\"+n+\")?_i(\"+n+\",\"+o+\")>-1\"+(\"true\"===a?\":(\"+n+\")\":\":_q(\"+n+\",\"+a+\")\")),\nVn(e,\"change\",\"var $$a=\"+n+\",$$el=$event.target,$$c=$$el.checked?(\"+a+\"):(\"+s+\");if(Array.isArray($$a)){var $$v=\"+(i?\"_n(\"+o+\")\":o)+\",$$i=_i($$a,$$v);if($$c){$$i<0&&(\"+n+\"=$$a.concat($$v))}else{$$i>-1&&(\"+n+\"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{\"+n+\"=$$c}\",null,!0)}function ti(e,n,r){\"production\"!==t.env.NODE_ENV&&null!=e.attrsMap.checked&&bs(\"<\"+e.tag+' v-model=\"'+n+\"\\\" checked>:\\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.\");var i=r&&r.number,o=Pn(e,\"value\")||\"null\";o=i?\"_n(\"+o+\")\":o,Dn(e,\"checked\",\"_q(\"+n+\",\"+o+\")\"),Vn(e,\"change\",oi(n,o),null,!0)}function ni(e,n,r){\"production\"!==t.env.NODE_ENV&&(\"input\"===e.tag&&e.attrsMap.value&&bs(\"<\"+e.tag+' v-model=\"'+n+'\" value=\"'+e.attrsMap.value+\"\\\">:\\ninline value attributes will be ignored when using v-model. Declare initial values in the component's data option instead.\"),\"textarea\"===e.tag&&e.children.length&&bs('<textarea v-model=\"'+n+\"\\\">:\\ninline content inside <textarea> will be ignored when using v-model. Declare initial values in the component's data option instead.\"));var i=e.attrsMap.type,o=r||{},a=o.lazy,s=o.number,u=o.trim,l=a||Si&&\"range\"===i?\"change\":\"input\",c=!a&&\"range\"!==i,d=\"input\"===e.tag||\"textarea\"===e.tag,f=d?\"$event.target.value\"+(u?\".trim()\":\"\"):u?\"(typeof $event === 'string' ? $event.trim() : $event)\":\"$event\";f=s||\"number\"===i?\"_n(\"+f+\")\":f;var p=oi(n,f);d&&c&&(p=\"if($event.target.composing)return;\"+p),\"production\"!==t.env.NODE_ENV&&\"file\"===i&&bs(\"<\"+e.tag+' v-model=\"'+n+'\" type=\"file\">:\\nFile inputs are read only. Use a v-on:change listener instead.'),Dn(e,\"value\",d?\"_s(\"+n+\")\":\"(\"+n+\")\"),Vn(e,l,p,null,!0),(u||s||\"number\"===i)&&Vn(e,\"blur\",\"$forceUpdate()\")}function ri(e,n,r){\"production\"!==t.env.NODE_ENV&&e.children.some(ii);var i=r&&r.number,o='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return '+(i?\"_n(val)\":\"val\")+\"})\"+(null==e.attrsMap.multiple?\"[0]\":\"\"),a=oi(n,o);Vn(e,\"change\",a,null,!0)}function ii(e){return 1===e.type&&\"option\"===e.tag&&null!=e.attrsMap.selected&&(bs('<select v-model=\"'+e.parent.attrsMap[\"v-model\"]+\"\\\">:\\ninline selected attributes on <option> will be ignored when using v-model. Declare initial values in the component's data option instead.\"),!0)}function oi(e,t){var n=Mn(e);return null===n.idx?e+\"=\"+t:\"var $$exp = \"+n.exp+\", $$idx = \"+n.idx+\";if (!Array.isArray($$exp)){\"+e+\"=\"+t+\"}else{$$exp.splice($$idx, 1, \"+t+\")}\"}function ai(e,t){t.value&&Dn(e,\"textContent\",\"_s(\"+t.value+\")\")}function si(e,t){t.value&&Dn(e,\"innerHTML\",\"_s(\"+t.value+\")\")}function ui(e,t){return t=t?f(f({},ru),t):ru,Hr(e,t)}function li(e,n,r){var i=n&&n.warn||Ii;if(\"production\"!==t.env.NODE_ENV)try{new Function(\"return 1\")}catch(o){o.toString().match(/unsafe-eval|CSP/)&&i(\"It seems you are using the standalone build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. The template compiler cannot work in this environment. Consider relaxing the policy to allow unsafe-eval or pre-compiling your templates into render functions.\")}var a=n&&n.delimiters?String(n.delimiters)+e:e;if(nu[a])return nu[a];var s={},u=ui(e,n);s.render=ci(u.render);var l=u.staticRenderFns.length;s.staticRenderFns=new Array(l);for(var c=0;c<l;c++)s.staticRenderFns[c]=ci(u.staticRenderFns[c]);return\"production\"!==t.env.NODE_ENV&&(s.render===m||s.staticRenderFns.some(function(e){return e===m}))&&i(\"failed to compile template:\\n\\n\"+e+\"\\n\\n\"+Jr(u.ast).join(\"\\n\")+\"\\n\\n\",r),nu[a]=s}function ci(e){try{return new Function(e)}catch(t){return m}}function di(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement(\"div\");return t.appendChild(e.cloneNode(!0)),t.innerHTML}var fi,pi,vi=o(\"slot,component\",!0),hi=Object.prototype.hasOwnProperty,mi=/-(\\w)/g,gi=l(function(e){return e.replace(mi,function(e,t){return t?t.toUpperCase():\"\"})}),yi=l(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),_i=/([^-])([A-Z])/g,bi=l(function(e){return e.replace(_i,\"$1-$2\").replace(_i,\"$1-$2\").toLowerCase()}),wi=Object.prototype.toString,xi=\"[object Object]\",ki=function(){return!1},Ei=function(e){return e},Ni={optionMergeStrategies:Object.create(null),silent:!1,devtools:\"production\"!==t.env.NODE_ENV,errorHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:ki,isUnknownElement:ki,getTagNamespace:m,parsePlatformTagName:Ei,mustUseProp:ki,_assetTypes:[\"component\",\"directive\",\"filter\"],_lifecycleHooks:[\"beforeCreate\",\"created\",\"beforeMount\",\"mounted\",\"beforeUpdate\",\"updated\",\"beforeDestroy\",\"destroyed\",\"activated\",\"deactivated\"],_maxUpdateCount:100},Ci=/[^\\w.$]/,Oi=\"__proto__\"in{},$i=\"undefined\"!=typeof window,Ai=$i&&window.navigator.userAgent.toLowerCase(),Si=Ai&&/msie|trident/.test(Ai),Di=Ai&&Ai.indexOf(\"msie 9.0\")>0,Ti=Ai&&Ai.indexOf(\"edge/\")>0,ji=Ai&&Ai.indexOf(\"android\")>0,Vi=Ai&&/iphone|ipad|ipod|ios/.test(Ai),Pi=function(){return void 0===fi&&(fi=!$i&&\"undefined\"!=typeof n&&\"server\"===n.process.env.VUE_ENV),fi},Li=$i&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Mi=function(){function e(){r=!1;var e=n.slice(0);n.length=0;for(var t=0;t<e.length;t++)e[t]()}var t,n=[],r=!1;if(\"undefined\"!=typeof Promise&&k(Promise)){var i=Promise.resolve(),o=function(e){};t=function(){i.then(e)[\"catch\"](o),Vi&&setTimeout(m)}}else if(\"undefined\"==typeof MutationObserver||!k(MutationObserver)&&\"[object MutationObserverConstructor]\"!==MutationObserver.toString())t=function(){setTimeout(e,0)};else{var a=1,s=new MutationObserver(e),u=document.createTextNode(String(a));s.observe(u,{characterData:!0}),t=function(){a=(a+1)%2,u.data=String(a)}}return function(e,i){var o;if(n.push(function(){e&&e.call(i),o&&o(i)}),r||(r=!0,t()),!e&&\"undefined\"!=typeof Promise)return new Promise(function(e){o=e})}}();pi=\"undefined\"!=typeof Set&&k(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return this.set[e]===!0},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Ri,Ii=m;if(\"production\"!==t.env.NODE_ENV){var Fi=\"undefined\"!=typeof console;Ii=function(e,t){Fi&&!Ni.silent},Ri=function(e){if(e.$root===e)return\"root instance\";var t=e._isVue?e.$options.name||e.$options._componentTag:e.name;return(t?\"component <\"+t+\">\":\"anonymous component\")+(e._isVue&&e.$options.__file?\" at \"+e.$options.__file:\"\")}}var Ui=0,Bi=function(){this.id=Ui++,this.subs=[]};Bi.prototype.addSub=function(e){this.subs.push(e)},Bi.prototype.removeSub=function(e){a(this.subs,e)},Bi.prototype.depend=function(){Bi.target&&Bi.target.addDep(this)},Bi.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},Bi.target=null;var Hi=[],Ji=Array.prototype,zi=Object.create(Ji);[\"push\",\"pop\",\"shift\",\"unshift\",\"splice\",\"sort\",\"reverse\"].forEach(function(e){var t=Ji[e];w(zi,e,function(){for(var n=arguments,r=arguments.length,i=new Array(r);r--;)i[r]=n[r];var o,a=t.apply(this,i),s=this.__ob__;switch(e){case\"push\":o=i;break;case\"unshift\":o=i;break;case\"splice\":o=i.slice(2)}return o&&s.observeArray(o),s.dep.notify(),a})});var qi=Object.getOwnPropertyNames(zi),Ki={shouldConvert:!0,isSettingProps:!1},Wi=function(e){if(this.value=e,this.dep=new Bi,this.vmCount=0,w(e,\"__ob__\",this),Array.isArray(e)){var t=Oi?C:O;t(e,zi,qi),this.observeArray(e)}else this.walk(e)};Wi.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)A(e,t[n],e[t[n]])},Wi.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)$(e[t])};var Zi=Ni.optionMergeStrategies;\"production\"!==t.env.NODE_ENV&&(Zi.el=Zi.propsData=function(e,t,n,r){return n||Ii('option \"'+r+'\" can only be used during instance creation with the `new` keyword.'),Yi(e,t)}),Zi.data=function(e,n,r){return r?e||n?function(){var t=\"function\"==typeof n?n.call(r):n,i=\"function\"==typeof e?e.call(r):void 0;return t?j(t,i):i}:void 0:n?\"function\"!=typeof n?(\"production\"!==t.env.NODE_ENV&&Ii('The \"data\" option should be a function that returns a per-instance value in component definitions.',r),e):e?function(){return j(n.call(this),e.call(this))}:n:e},Ni._lifecycleHooks.forEach(function(e){Zi[e]=V}),Ni._assetTypes.forEach(function(e){Zi[e+\"s\"]=P}),Zi.watch=function(e,t){if(!t)return e;if(!e)return t;var n={};f(n,e);for(var r in t){var i=n[r],o=t[r];i&&!Array.isArray(i)&&(i=[i]),n[r]=i?i.concat(o):[o]}return n},Zi.props=Zi.methods=Zi.computed=function(e,t){if(!t)return e;if(!e)return t;var n=Object.create(null);return f(n,e),f(n,t),n};var Gi,Yi=function(e,t){return void 0===t?e:t},Qi=Object.freeze({defineReactive:A,_toString:r,toNumber:i,makeMap:o,isBuiltInTag:vi,remove:a,hasOwn:s,isPrimitive:u,cached:l,camelize:gi,capitalize:yi,hyphenate:bi,bind:c,toArray:d,extend:f,isObject:p,isPlainObject:v,toObject:h,noop:m,no:ki,identity:Ei,genStaticKeys:g,looseEqual:y,looseIndexOf:_,isReserved:b,def:w,parsePath:x,hasProto:Oi,inBrowser:$i,UA:Ai,isIE:Si,isIE9:Di,isEdge:Ti,isAndroid:ji,isIOS:Vi,isServerRendering:Pi,devtools:Li,nextTick:Mi,get _Set(){return pi},mergeOptions:I,resolveAsset:F,get warn(){return Ii},get formatComponentName(){return Ri},validateProp:U});if(\"production\"!==t.env.NODE_ENV){var Xi=o(\"Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require\"),eo=function(e,t){Ii('Property or method \"'+t+'\" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.',e)},to=\"undefined\"!=typeof Proxy&&Proxy.toString().match(/native code/);if(to){var no=o(\"stop,prevent,self,ctrl,shift,alt,meta\");Ni.keyCodes=new Proxy(Ni.keyCodes,{set:function(e,t,n){return no(t)?(Ii(\"Avoid overwriting built-in modifier in config.keyCodes: .\"+t),!1):(e[t]=n,!0)}})}var ro={has:function au(e,t){var au=t in e,n=Xi(t)||\"_\"===t.charAt(0);return au||n||eo(e,t),au||!n}},io={get:function(e,t){return\"string\"!=typeof t||t in e||eo(e,t),e[t]}};Gi=function(e){if(to){var t=e.$options,n=t.render&&t.render._withStripped?io:ro;e._renderProxy=new Proxy(e,n)}else e._renderProxy=e}}var oo=[],ao={},so={},uo=!1,lo=!1,co=0,fo=0,po=function(e,n,r,i){this.vm=e,e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++fo,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new pi,this.newDepIds=new pi,this.expression=\"production\"!==t.env.NODE_ENV?n.toString():\"\",\"function\"==typeof n?this.getter=n:(this.getter=x(n),this.getter||(this.getter=function(){},\"production\"!==t.env.NODE_ENV&&Ii('Failed watching path: \"'+n+'\" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',e))),this.value=this.lazy?void 0:this.get()};po.prototype.get=function(){E(this);var e=this.getter.call(this.vm,this.vm);return this.deep&&G(e),N(),this.cleanupDeps(),e},po.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},po.prototype.cleanupDeps=function(){for(var e=this,t=this.deps.length;t--;){var n=e.deps[t];e.newDepIds.has(n.id)||n.removeSub(e)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},po.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Z(this)},po.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||p(e)||this.deep){var n=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,n)}catch(r){if(!Ni.errorHandler)throw\"production\"!==t.env.NODE_ENV&&Ii('Error in watcher \"'+this.expression+'\"',this.vm),r;Ni.errorHandler.call(null,r,this.vm)}else this.cb.call(this.vm,e,n)}}},po.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},po.prototype.depend=function(){for(var e=this,t=this.deps.length;t--;)e.deps[t].depend()},po.prototype.teardown=function(){var e=this;if(this.active){this.vm._isBeingDestroyed||a(this.vm._watchers,this);for(var t=this.deps.length;t--;)e.deps[t].removeSub(e);this.active=!1}};var vo,ho=new pi,mo={key:1,ref:1,slot:1},go={enumerable:!0,configurable:!0,get:m,set:m},yo=function(e,t,n,r,i,o,a){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.functionalContext=void 0,this.key=t&&t.key,this.componentOptions=a,this.child=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1},_o=function(){var e=new yo;return e.text=\"\",e.isComment=!0,e},bo=null,wo={init:Se,prepatch:De,insert:Te,destroy:je},xo=Object.keys(wo),ko=1,Eo=2,No=0;ze(We),ae(We),ke(We),Ne(We),He(We);var Co=[String,RegExp],Oo={name:\"keep-alive\",\"abstract\":!0,props:{include:Co,exclude:Co},created:function(){this.cache=Object.create(null)},render:function(){var e=ye(this.$slots[\"default\"]);if(e&&e.componentOptions){var t=e.componentOptions,n=t.Ctor.options.name||t.tag;if(n&&(this.include&&!Xe(this.include,n)||this.exclude&&Xe(this.exclude,n)))return e;var r=null==e.key?t.Ctor.cid+(t.tag?\"::\"+t.tag:\"\"):e.key;this.cache[r]?e.child=this.cache[r].child:this.cache[r]=e,e.data.keepAlive=!0}return e},destroyed:function(){var e=this;for(var t in this.cache){var n=e.cache[t];Ce(n.child,\"deactivated\"),n.child.$destroy()}}},$o={KeepAlive:Oo};et(We),Object.defineProperty(We.prototype,\"$isServer\",{get:Pi}),We.version=\"2.1.8\";var Ao,So,Do=o(\"input,textarea,option,select\"),To=function(e,t){return\"value\"===t&&Do(e)||\"selected\"===t&&\"option\"===e||\"checked\"===t&&\"input\"===e||\"muted\"===t&&\"video\"===e},jo=o(\"contenteditable,draggable,spellcheck\"),Vo=o(\"allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible\"),Po=\"http://www.w3.org/1999/xlink\",Lo=function(e){return\":\"===e.charAt(5)&&\"xlink\"===e.slice(0,5)},Mo=function(e){return Lo(e)?e.slice(6,e.length):\"\"},Ro=function(e){return null==e||e===!1},Io={svg:\"http://www.w3.org/2000/svg\",math:\"http://www.w3.org/1998/Math/MathML\"},Fo=o(\"html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template\"),Uo=o(\"svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view\",!0),Bo=function(e){return\"pre\"===e},Ho=function(e){return Fo(e)||Uo(e)},Jo=Object.create(null),zo=Object.freeze({createElement:lt,createElementNS:ct,createTextNode:dt,createComment:ft,insertBefore:pt,removeChild:vt,appendChild:ht,parentNode:mt,nextSibling:gt,tagName:yt,setTextContent:_t,setAttribute:bt}),qo={create:function(e,t){wt(t)},update:function(e,t){e.data.ref!==t.data.ref&&(wt(e,!0),wt(t))},destroy:function(e){wt(e,!0)}},Ko=new yo(\"\",{},[]),Wo=[\"create\",\"activate\",\"update\",\"remove\",\"destroy\"],Zo={create:Ot,update:Ot,destroy:function(e){Ot(e,Ko)}},Go=Object.create(null),Yo=[qo,Zo],Qo={create:Tt,update:Tt},Xo={create:Vt,update:Vt},ea={create:Mt,update:Mt},ta={create:Rt,update:Rt},na=l(function(e){var t={},n=/;(?![^(]*\\))/g,r=/:(.+)/;return e.split(n).forEach(function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),ra=/^--/,ia=/\\s*!important$/,oa=function(e,t,n){ra.test(t)?e.style.setProperty(t,n):ia.test(n)?e.style.setProperty(t,n.replace(ia,\"\"),\"important\"):e.style[sa(t)]=n},aa=[\"Webkit\",\"Moz\",\"ms\"],sa=l(function(e){if(So=So||document.createElement(\"div\"),e=gi(e),\"filter\"!==e&&e in So.style)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<aa.length;n++){var r=aa[n]+t;if(r in So.style)return r}}),ua={create:zt,update:zt},la=$i&&!Di,ca=\"transition\",da=\"animation\",fa=\"transition\",pa=\"transitionend\",va=\"animation\",ha=\"animationend\";la&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(fa=\"WebkitTransition\",pa=\"webkitTransitionEnd\"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(va=\"WebkitAnimation\",ha=\"webkitAnimationEnd\"));var ma=$i&&window.requestAnimationFrame||setTimeout,ga=/\\b(transform|all)(,|$)/,ya=l(function(e){return{enterClass:e+\"-enter\",leaveClass:e+\"-leave\",appearClass:e+\"-enter\",enterToClass:e+\"-enter-to\",leaveToClass:e+\"-leave-to\",appearToClass:e+\"-enter-to\",enterActiveClass:e+\"-enter-active\",leaveActiveClass:e+\"-leave-active\",appearActiveClass:e+\"-enter-active\"}}),_a=$i?{create:an,activate:an,remove:function(e,t){e.data.show?t():nn(e,t)}}:{},ba=[Qo,Xo,ea,ta,ua,_a],wa=ba.concat(Yo),xa=Ct({nodeOps:zo,modules:wa}),ka=/^input|select|textarea|vue-component-[0-9]+(-[0-9a-zA-Z_-]*)?$/;Di&&document.addEventListener(\"selectionchange\",function(){var e=document.activeElement;e&&e.vmodel&&fn(e,\"input\")});var Ea={inserted:function(e,n,r){if(\"production\"!==t.env.NODE_ENV&&(ka.test(r.tag)||Ii(\"v-model is not supported on element type: <\"+r.tag+\">. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.\",r.context)),\"select\"===r.tag){var i=function(){sn(e,n,r.context)};i(),(Si||Ti)&&setTimeout(i,0)}else\"textarea\"!==r.tag&&\"text\"!==e.type||(e._vModifiers=n.modifiers,n.modifiers.lazy||(ji||(e.addEventListener(\"compositionstart\",cn),e.addEventListener(\"compositionend\",dn)),Di&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if(\"select\"===n.tag){sn(e,t,n.context);var r=e.multiple?t.value.some(function(t){return un(t,e.options)}):t.value!==t.oldValue&&un(t.value,e.options);r&&fn(e,\"change\")}}},Na={bind:function(e,t,n){var r=t.value;n=pn(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay=\"none\"===e.style.display?\"\":e.style.display;r&&i&&!Di?(n.data.show=!0,tn(n,function(){e.style.display=o})):e.style.display=r?o:\"none\"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(r!==i){n=pn(n);var o=n.data&&n.data.transition;o&&!Di?(n.data.show=!0,r?tn(n,function(){e.style.display=e.__vOriginalDisplay}):nn(n,function(){e.style.display=\"none\"})):e.style.display=r?e.__vOriginalDisplay:\"none\"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Ca={model:Ea,show:Na},Oa={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String},$a={name:\"transition\",props:Oa,\"abstract\":!0,render:function(e){var n=this,r=this.$slots[\"default\"];if(r&&(r=r.filter(function(e){return e.tag}),r.length)){\"production\"!==t.env.NODE_ENV&&r.length>1&&Ii(\"<transition> can only be used on a single element. Use <transition-group> for lists.\",this.$parent);var i=this.mode;\"production\"!==t.env.NODE_ENV&&i&&\"in-out\"!==i&&\"out-in\"!==i&&Ii(\"invalid <transition> mode: \"+i,this.$parent);var o=r[0];if(gn(this.$vnode))return o;var a=vn(o);if(!a)return o;if(this._leaving)return mn(e,o);var s=a.key=null==a.key||a.isStatic?\"__v\"+(a.tag+this._uid)+\"__\":a.key,u=(a.data||(a.data={})).transition=hn(this),l=this._vnode,c=vn(l);if(a.data.directives&&a.data.directives.some(function(e){return\"show\"===e.name})&&(a.data.show=!0),c&&c.data&&!yn(a,c)){var d=c&&(c.data.transition=f({},u));if(\"out-in\"===i)return this._leaving=!0,de(d,\"afterLeave\",function(){n._leaving=!1,n.$forceUpdate()},s),mn(e,o);if(\"in-out\"===i){var p,v=function(){p()};de(u,\"afterEnter\",v,s),de(u,\"enterCancelled\",v,s),de(d,\"delayLeave\",function(e){p=e},s)}}return o}}},Aa=f({tag:String,moveClass:String},Oa);delete Aa.mode;var Sa={props:Aa,render:function(e){for(var n=this.tag||this.$vnode.data.tag||\"span\",r=Object.create(null),i=this.prevChildren=this.children,o=this.$slots[\"default\"]||[],a=this.children=[],s=hn(this),u=0;u<o.length;u++){var l=o[u];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf(\"__vlist\"))a.push(l),r[l.key]=l,(l.data||(l.data={})).transition=s;else if(\"production\"!==t.env.NODE_ENV){var c=l.componentOptions,d=c?c.Ctor.options.name||c.tag:l.tag;Ii(\"<transition-group> children must be keyed: <\"+d+\">\")}}if(i){for(var f=[],p=[],v=0;v<i.length;v++){var h=i[v];h.data.transition=s,h.data.pos=h.elm.getBoundingClientRect(),r[h.key]?f.push(h):p.push(h)}this.kept=e(n,null,f),this.removed=p}return e(n,null,a)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||\"v\")+\"-move\";if(e.length&&this.hasMove(e[0].elm,t)){e.forEach(_n),e.forEach(bn),e.forEach(wn);document.body.offsetHeight;e.forEach(function(e){if(e.data.moved){var n=e.elm,r=n.style;Zt(n,t),r.transform=r.WebkitTransform=r.transitionDuration=\"\",n.addEventListener(pa,n._moveCb=function i(e){e&&!/transform$/.test(e.propertyName)||(n.removeEventListener(pa,i),n._moveCb=null,Gt(n,t))})}})}},methods:{hasMove:function(e,t){if(!la)return!1;if(null!=this._hasMove)return this._hasMove;Zt(e,t);var n=Qt(e);return Gt(e,t),this._hasMove=n.hasTransform}}},Da={Transition:$a,TransitionGroup:Sa};We.config.isUnknownElement=st,We.config.isReservedTag=Ho,We.config.getTagNamespace=at,We.config.mustUseProp=To,f(We.options.directives,Ca),f(We.options.components,Da),We.prototype.__patch__=$i?xa:m,We.prototype.$mount=function(e,t){return e=e&&$i?ut(e):void 0,this._mount(e,t)},\"production\"!==t.env.NODE_ENV&&$i&&\"undefined\"!=typeof console,setTimeout(function(){Ni.devtools&&(Li?Li.emit(\"init\",We):\"production\"!==t.env.NODE_ENV&&$i&&!Ti&&/Chrome\\/\\d+/.test(window.navigator.userAgent))},0);var Ta,ja=!!$i&&xn(\"\\n\",\"&#10;\"),Va=o(\"area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr\",!0),Pa=o(\"colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source\",!0),La=o(\"address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track\",!0),Ma=/([^\\s\"'<>\\/=]+)/,Ra=/(?:=)/,Ia=[/\"([^\"]*)\"+/.source,/'([^']*)'+/.source,/([^\\s\"'=<>`]+)/.source],Fa=new RegExp(\"^\\\\s*\"+Ma.source+\"(?:\\\\s*(\"+Ra.source+\")\\\\s*(?:\"+Ia.join(\"|\")+\"))?\"),Ua=\"[a-zA-Z_][\\\\w\\\\-\\\\.]*\",Ba=\"((?:\"+Ua+\"\\\\:)?\"+Ua+\")\",Ha=new RegExp(\"^<\"+Ba),Ja=/^\\s*(\\/?)>/,za=new RegExp(\"^<\\\\/\"+Ba+\"[^>]*>\"),qa=/^<!DOCTYPE [^>]+>/i,Ka=/^<!--/,Wa=/^<!\\[/,Za=!1;\"x\".replace(/x(.)?/g,function(e,t){Za=\"\"===t});var Ga,Ya,Qa,Xa,es,ts,ns,rs,is,os,as,ss,us,ls,cs,ds,fs,ps,vs,hs,ms,gs,ys,_s,bs,ws=o(\"script,style\",!0),xs=function(e){return\"lang\"===e.name&&\"html\"!==e.value},ks=function(e,t,n){return!!ws(e)||!(!t||1!==n.length)&&!(\"template\"===e&&!n[0].attrs.some(xs))},Es={},Ns=/&lt;/g,Cs=/&gt;/g,Os=/&#10;/g,$s=/&amp;/g,As=/&quot;/g,Ss=/\\{\\{((?:.|\\n)+?)\\}\\}/g,Ds=/[-.*+?^${}()|[\\]\\/\\\\]/g,Ts=l(function(e){var t=e[0].replace(Ds,\"\\\\$&\"),n=e[1].replace(Ds,\"\\\\$&\");return new RegExp(t+\"((?:.|\\\\n)+?)\"+n,\"g\")}),js=/^v-|^@|^:/,Vs=/(.*?)\\s+(?:in|of)\\s+(.*)/,Ps=/\\((\\{[^}]*\\}|[^,]*),([^,]*)(?:,([^,]*))?\\)/,Ls=/^:|^v-bind:/,Ms=/^@|^v-on:/,Rs=/:(.*)$/,Is=/\\.[^.]+/g,Fs=l(kn),Us=/^xmlns:NS\\d+/,Bs=/^NS\\d+:/,Hs=l(cr),Js=/^\\s*([\\w$_]+|\\([^)]*?\\))\\s*=>|^function\\s*\\(/,zs=/^\\s*[A-Za-z_$][\\w$]*(?:\\.[A-Za-z_$][\\w$]*|\\['.*?']|\\[\".*?\"]|\\[\\d+]|\\[[A-Za-z_$][\\w$]*])*\\s*$/,qs={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,\"delete\":[8,46]},Ks={stop:\"$event.stopPropagation();\",prevent:\"$event.preventDefault();\",self:\"if($event.target !== $event.currentTarget)return;\",ctrl:\"if(!$event.ctrlKey)return;\",shift:\"if(!$event.shiftKey)return;\",alt:\"if(!$event.altKey)return;\",meta:\"if(!$event.metaKey)return;\"},Ws={bind:br,cloak:m},Zs=new RegExp(\"\\\\b\"+\"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments\".split(\",\").join(\"\\\\b|\\\\b\")+\"\\\\b\"),Gs=/[A-Za-z_$][\\w$]*/,Ys=/'(?:[^'\\\\]|\\\\.)*'|\"(?:[^\"\\\\]|\\\\.)*\"|`(?:[^`\\\\]|\\\\.)*\\$\\{|\\}(?:[^`\\\\]|\\\\.)*`|`(?:[^`\\\\]|\\\\.)*`/g,Qs={staticKeys:[\"staticClass\"],transformNode:Zr,genData:Gr},Xs={staticKeys:[\"staticStyle\"],transformNode:Yr,genData:Qr},eu=[Qs,Xs],tu={model:Xr,text:ai,html:si},nu=Object.create(null),ru={expectHTML:!0,modules:eu,staticKeys:g(eu),directives:tu,isReservedTag:Ho,isUnaryTag:Va,mustUseProp:To,getTagNamespace:at,isPreTag:Bo},iu=l(function(e){var t=ut(e);return t&&t.innerHTML}),ou=We.prototype.$mount;We.prototype.$mount=function(e,n){if(e=e&&ut(e),e===document.body||e===document.documentElement)return\"production\"!==t.env.NODE_ENV&&Ii(\"Do not mount Vue to <html> or <body> - mount to normal elements instead.\"),this;var r=this.$options;if(!r.render){var i=r.template;if(i)if(\"string\"==typeof i)\"#\"===i.charAt(0)&&(i=iu(i),\"production\"===t.env.NODE_ENV||i||Ii(\"Template element not found or is empty: \"+r.template,this));else{if(!i.nodeType)return\"production\"!==t.env.NODE_ENV&&Ii(\"invalid template option:\"+i,this),this;i=i.innerHTML}else e&&(i=di(e));if(i){var o=li(i,{warn:Ii,shouldDecodeNewlines:ja,delimiters:r.delimiters},this),a=o.render,s=o.staticRenderFns;r.render=a,r.staticRenderFns=s}}return ou.call(this,e,n)},We.compile=li,e.exports=We}).call(t,n(4),n(16))},function(e,t,n){\"use strict\";var r=n(7),i=n.n(r),o=n(6),a=n.n(o),s=n(5),u=n.n(s),l=n(8),c=n.n(l),d=n(9),f=n.n(d),p={sounds:[{name:\"kick\",url:\"sounds/kick.mp3\",buffer:null,length:8,current:1,active:[1],probability:{chance:1,\"in\":1},probable:!0,fluctuationLevel:0,overrides:[],volume:100,muted:!1,expanded:!1},{name:\"snare\",url:\"sounds/snare.mp3\",buffer:null,length:8,current:1,active:[5],probability:{chance:1,\"in\":1},probable:!0,fluctuationLevel:40,overrides:[\"kick\",\"snare light\"],volume:100,muted:!1,expanded:!1},{name:\"snare light\",url:\"sounds/snare_light.mp3\",buffer:null,length:8,current:1,active:[],probability:{chance:1,\"in\":1},probable:!0,fluctuationLevel:60,overrides:[\"kick\"],volume:100,muted:!1,expanded:!1},{name:\"hi hat\",url:\"sounds/hat.mp3\",buffer:null,length:8,current:1,active:[1,3,5,7],probability:{chance:1,\"in\":1},probable:!0,fluctuationLevel:60,overrides:[],volume:80,muted:!1,expanded:!1},{name:\"ride\",url:\"sounds/ride.mp3\",buffer:null,length:8,current:1,active:[1,5],probability:{chance:1,\"in\":1},probable:!0,fluctuationLevel:40,overrides:[\"hi hat\"],volume:100,muted:!0,expanded:!1},{name:\"crash\",url:\"sounds/crash.mp3\",buffer:null,length:8,current:1,active:[1],probability:{chance:1,\"in\":4},probable:!0,fluctuationLevel:40,overrides:[\"hi hat\",\"ride\"],volume:90,muted:!0,expanded:!1}],meta:{bpm:120,beatsLength:8,futureTickTime:0,isPlaying:!1,detuneSupport:!0,linkUrl:null}},v=[\"length\",\"active\",\"probable\",\"probability\",\"overrides\",\"volume\",\"fluctuationLevel\",\"muted\"],h=function(e){if(e.startsWith(\"?\")){var t=e.substring(1).split(\"&\"),n=t.reduce(function(e,t){var n=t.split(\"=\"),r=decodeURIComponent(n[0]),i=e[r]||[];return n.length>1&&i.push(decodeURIComponent(n[1])),e[r]=i,e},{});return n}};t[\"default\"]={data:function(){return{audioContext:null,sounds:null,meta:{bpm:120,isPlaying:!1}}},components:{PlayIcon:i.a,MuteIcon:a.a,AddIcon:u.a,RemoveIcon:c.a,SettingsIcon:f.a},methods:{audioContextCheck:function(){if(\"undefined\"!=typeof AudioContext)return new AudioContext;if(\"undefined\"!=typeof webkitAudioContext)return new webkitAudioContext;if(\"undefined\"!=typeof mozAudioContext)return new mozAudioContext;throw new Error(\"AudioContext not supported\")},soundLoader:function(e){var t=this,n={},r=new XMLHttpRequest;return r.open(\"GET\",e,!0),r.responseType=\"arraybuffer\",r.onload=function(){t.audioContext.decodeAudioData(r.response,function(e){n.soundToPlay=e})},r.send(),n.play=function(e,r,i,o){var a=t.audioContext.createGain();a.gain.value=e;var s=t.audioContext.createBufferSource();if(s.buffer=n.soundToPlay,t.meta.detuneSupport){var u=Math.floor(Math.random()*i)+-Math.abs(i);s.detune.value=u}s.connect(a),a.connect(t.audioContext.destination),s.start(r),window.requestAnimFrame(function(){t.pulse(o)})},n},loadSounds:function(){var e=this;this.sounds.forEach(function(t){t.buffer=e.soundLoader(t.url)})},setState:function(){var e=this.$localStorage.get(\"drum-machine-state\");if(e){var t=JSON.parse(e);this.sounds=t.sounds,this.meta=t.meta}else this.sounds=JSON.parse(JSON.stringify(p.sounds)),this.meta=JSON.parse(JSON.stringify(p.meta));var n=h(window.location.search);if(n){var r=Object.keys(n),i={sounds:[],meta:{}};r.forEach(function(e){if(\"bpm\"===e)i.meta.bpm=JSON.parse(n.bpm[0]);else{var t=JSON.parse(n[e][0]);t.name=e,i.sounds.push(t)}}),this.updateState(i)}},futureTick:function(){var e=60/this.meta.bpm;this.meta.futureTickTime+=.25*e,this.sounds.forEach(function(e){e.current++,e.current>e.length&&(e.current=1)})},scheduleNote:function(){var e=this;this.sounds.forEach(function(t){t.probable=e.probability(t.probability)}),this.sounds.forEach(function(t){e.playOrNot(t,t.active.includes(t.current))})},playOrNot:function(e,t){if(t&&!e.muted&&e.probable){var n=!1;if(this.sounds.forEach(function(t){t.overrides.includes(e.name)&&(t.muted||t.probable&&t.active.includes(t.current)&&(n=!0))}),!n){var r=this.slugify(e.name+\"-beat-\"+e.current)+\"-label\",i=document.getElementById(r);e.buffer.play(e.volume/100,this.meta.futureTickTime,e.fluctuationLevel,i)}}},scheduler:function(){for(var e=this;this.meta.futureTickTime<this.audioContext.currentTime+.1;)e.scheduleNote(),e.futureTick();window.t=window.setTimeout(this.scheduler,50)},probability:function(e){var t=[];if(e.chance>=e[\"in\"])return!0;var n=0;do n+=1,t.push(!0);while(n<e.chance);var r=0;do r+=1,t.push(!1);while(r<e[\"in\"]-e.chance);var i=t[Math.floor(Math.random()*t.length)];return i},playOrStop:function(){this.play()},reset:function(){if(this.updateState(p),history.pushState){var e=window.location.protocol+\"//\"+window.location.host+window.location.pathname;window.history.pushState({path:e},\"\",e)}this.meta.linkUrl=null},updateState:function(e){if(e.sounds){var t=e.sounds.reduce(function(e,t){return e[t.name]=t,e},{});this.sounds.forEach(function(e){var n=t[e.name];v.forEach(function(t){e[t]=JSON.parse(JSON.stringify(n[t]))})})}e.meta&&(this.meta.bpm=e.meta.bpm)},link:function(){var e=[\"bpm=\"+this.meta.bpm];if(this.sounds.forEach(function(t){var n=v.reduce(function(e,n){return e[n]=t[n],e},{}),r=encodeURIComponent(t.name)+\"=\"+encodeURIComponent(JSON.stringify(n));e.push(r)}),history.pushState){var t=window.location.protocol+\"//\"+window.location.host+window.location.pathname+\"?\"+e.join(\"&\");window.history.pushState({path:t},\"\",t),this.meta.linkUrl=t}},addBeat:function(e){e.length<21&&(e.length+=1)},removeBeat:function(e){e.length>1&&(e.length-=1)},play:function(){this.meta.isPlaying=!this.meta.isPlaying,this.meta.isPlaying?(this.sounds.forEach(function(e){e.current=1}),this.meta.futureTickTime=this.audioContext.currentTime,this.scheduler()):(window.clearTimeout(window.t),this.saveData(),this.link())},lengthInfo:function(){var e=[];return this.sounds.forEach(function(t){e.push(t.length)}),{longest:Math.max.apply(Math,e),lengths:e}},slugify:function(e){return e.toLowerCase().replace(/\\s+/g,\"-\").replace(/[^\\w\\-]+/g,\"\").replace(/\\-\\-+/g,\"-\").replace(/^-+/,\"\").replace(/-+$/,\"\")},pulse:function(e){e.setAttribute(\"class\",\"pulse-anim\"),window.setTimeout(function(){e.setAttribute(\"class\",\"\")},100)},saveData:function(){\nvar e={};e.sounds=this.sounds,e.meta=this.meta,this.$localStorage.set(\"drum-machine-state\",JSON.stringify(e))}},watch:{sounds:{handler:function(){var e=this.lengthInfo();this.meta.beatsLength=100/e.longest+\"%\";var t=e.lengths.filter(function(e,t,n){return n.indexOf(e)===t});this.meta.compoundLength=t.reduce(function(e,t){return e*t})},deep:!0}},mounted:function(){this.audioContext=this.audioContextCheck(),this.setState();var e=this.audioContext.createBufferSource();e.detune||(this.meta.detuneSupport=!1),this.loadSounds(),window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}()}}},function(e,t){function n(){throw new Error(\"setTimeout has not been defined\")}function r(){throw new Error(\"clearTimeout has not been defined\")}function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(d===clearTimeout)return clearTimeout(e);if((d===r||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){h&&p&&(h=!1,p.length?v=p.concat(v):m=-1,v.length&&s())}function s(){if(!h){var e=i(a);h=!0;for(var t=v.length;t;){for(p=v,v=[];++m<t;)p&&p[m].run();m=-1,t=v.length}p=null,h=!1,o(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var c,d,f=e.exports={};!function(){try{c=\"function\"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{d=\"function\"==typeof clearTimeout?clearTimeout:r}catch(e){d=r}}();var p,v=[],h=!1,m=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];v.push(new u(e,t)),1!==v.length||h||i(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title=\"browser\",f.browser=!0,f.env={},f.argv=[],f.version=\"\",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.binding=function(e){throw new Error(\"process.binding is not supported\")},f.cwd=function(){return\"/\"},f.chdir=function(e){throw new Error(\"process.chdir is not supported\")},f.umask=function(){return 0}},function(e,t,n){var r,i,o=n(12);i=r=r||{},\"object\"!=typeof r[\"default\"]&&\"function\"!=typeof r[\"default\"]||(i=r=r[\"default\"]),\"function\"==typeof i&&(i=i.options),i.render=o.render,i.staticRenderFns=o.staticRenderFns,e.exports=r},function(e,t,n){var r,i,o=n(14);i=r=r||{},\"object\"!=typeof r[\"default\"]&&\"function\"!=typeof r[\"default\"]||(i=r=r[\"default\"]),\"function\"==typeof i&&(i=i.options),i.render=o.render,i.staticRenderFns=o.staticRenderFns,e.exports=r},function(e,t,n){var r,i,o=n(10);i=r=r||{},\"object\"!=typeof r[\"default\"]&&\"function\"!=typeof r[\"default\"]||(i=r=r[\"default\"]),\"function\"==typeof i&&(i=i.options),i.render=o.render,i.staticRenderFns=o.staticRenderFns,e.exports=r},function(e,t,n){var r,i,o=n(15);i=r=r||{},\"object\"!=typeof r[\"default\"]&&\"function\"!=typeof r[\"default\"]||(i=r=r[\"default\"]),\"function\"==typeof i&&(i=i.options),i.render=o.render,i.staticRenderFns=o.staticRenderFns,e.exports=r},function(e,t,n){var r,i,o=n(11);i=r=r||{},\"object\"!=typeof r[\"default\"]&&\"function\"!=typeof r[\"default\"]||(i=r=r[\"default\"]),\"function\"==typeof i&&(i=i.options),i.render=o.render,i.staticRenderFns=o.staticRenderFns,e.exports=r},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(\"svg\",{attrs:{viewBox:\"0 0 100 100\"}},[n(\"g\",{attrs:{transform:\"translate(0 -952.36)\"}},[n(\"g\",{staticClass:\"pause-icon\",attrs:{transform:\"translate(1.0714 .71367)\"}},[n(\"rect\",{staticStyle:{fill:\"#ffffff\"},attrs:{ry:\"2.7614\",height:\"45\",width:\"15\",y:\"979.15\",x:\"53.929\"}}),e._v(\" \"),n(\"rect\",{staticStyle:{fill:\"#ffffff\"},attrs:{ry:\"2.7614\",height:\"45\",width:\"15\",y:\"979.15\",x:\"28.929\"}})]),e._v(\" \"),n(\"path\",{staticClass:\"play-icon\",staticStyle:{\"stroke-linejoin\":\"round\",\"fill-rule\":\"evenodd\",stroke:\"#ffffff\",\"stroke-width\":\"5\",fill:\"#ffffff\"},attrs:{d:\"m38.5 982.36v40l35-20z\"}})])])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(\"svg\",{attrs:{id:\"cog\",viewBox:\"0 0 190 190\"}},[n(\"g\",{attrs:{transform:\"translate(-84.978 -137.34)\"}},[n(\"path\",{staticStyle:{\"stroke-linejoin\":\"round\",stroke:\"#222\",\"stroke-linecap\":\"round\",\"stroke-width\":\"3\",fill:\"#222\"},attrs:{d:\"m166.54 154.03a79.552 79.552 0 0 0 -24.398 8.3666l-.15877 19.304a64.205 64.205 0 0 0 -7.8137 6.906l-19.049-2.1106a79.552 79.552 0 0 0 -11.322 23.204l13.366 13.588a64.205 64.205 0 0 0 -.69232 10.691l-14.797 11.846a79.552 79.552 0 0 0 8.3742 24.396l18.522.15299a64.205 64.205 0 0 0 7.5745 8.7818l-2.0035 18.087a79.552 79.552 0 0 0 23.201 11.325l12.596-12.39a64.205 64.205 0 0 0 12.564 .80967l10.971 13.703a79.552 79.552 0 0 0 24.394 -8.3839l.14162-17.316a64.205 64.205 0 0 0 9.7809 -8.6643l17.099 1.8943a79.552 79.552 0 0 0 11.326 -23.198l-12.178-12.38a64.205 64.205 0 0 0 .62482 -12.807l13.665-10.939a79.552 79.552 0 0 0 -8.3649 -24.401l-18.1-.14936a64.205 64.205 0 0 0 -7.9977 -8.8125l2.0008-18.057a79.552 79.552 0 0 0 -23.207 -11.321l-13.371 13.153a64.205 64.205 0 0 0 -10.93 -.51173l-11.82-14.765zm9.555 37.603a40.912 40.912 0 0 1 10.985 .42848 40.912 40.912 0 0 1 33.231 47.318l-.0366.20788a40.912 40.912 0 0 1 -47.446 33.048 40.912 40.912 0 0 1 -33.109 -47.403 40.912 40.912 0 0 1 36.376 -33.599z\"}})])])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(\"svg\",{attrs:{id:\"plus\",viewBox:\"0 0 190 190\"}},[n(\"g\",{attrs:{transform:\"translate(-84.978 -137.34)\"}},[n(\"rect\",{staticStyle:{fill:\"#222\"},attrs:{ry:\"3.375\",height:\"138.56\",width:\"29.632\",y:\"163.08\",x:\"165.18\"}}),e._v(\" \"),n(\"rect\",{staticStyle:{fill:\"#222\"},attrs:{transform:\"rotate(90)\",ry:\"3.375\",height:\"138.56\",width:\"29.632\",y:\"-249.28\",x:\"217.55\"}})])])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(\"main\",{staticClass:\"drum-machine\"},[n(\"form\",{attrs:{action:\"\"}},[n(\"h2\",{staticClass:\"vh\",attrs:{id:\"dm-main-heading\"}},[e._v(\"Drum Machine Main Controls\")]),e._v(\" \"),n(\"div\",{staticClass:\"bpm-and-play\",attrs:{\"aria-labelledby\":\"dm-main-heading\"}},[n(\"div\",{staticClass:\"bpm\"},[n(\"div\",{staticClass:\"bpm-slider\"},[n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:e.meta.bpm,expression:\"meta.bpm\"}],attrs:{type:\"range\",id:\"bpm\",min:\"0\",max:\"240\"},domProps:{value:e._s(e.meta.bpm)},on:{blur:e.link,input:function(t){e.meta.bpm=t.target.value}}})]),e._v(\" \"),n(\"label\",{attrs:{\"for\":\"bpm\"}},[e._v(\"\\n          \"+e._s(e.meta.bpm)+\"\\n          \"),n(\"span\",{attrs:{\"aria-hidden\":\"true\"}},[e._v(\"bpm\")]),e._v(\" \"),n(\"span\",{staticClass:\"vh\"},[e._v(\"beats per minute\")])])]),e._v(\" \"),n(\"div\",{staticClass:\"play-stop\"},[n(\"button\",{attrs:{\"aria-pressed\":e.meta.isPlaying.toString(),\"aria-label\":\"play\"},on:{click:function(t){t.preventDefault(),e.playOrStop(t)}}},[n(\"play-icon\")],1)])]),e._v(\" \"),n(\"div\",{staticClass:\"tracks\",attrs:{\"aria-labelledby\":\"dm-tracks-heading\"}},[n(\"h2\",{staticClass:\"vh\",attrs:{id:\"dm-tracks-heading\"}},[e._v(\"Drum Machine Tracks\")]),e._v(\" \"),e._l(e.sounds,function(t){return n(\"fieldset\",{staticClass:\"track\",attrs:{role:\"group\",\"aria-labelledby\":e._f(\"slugify\")(t.name+\"-track-legend\")}},[n(\"legend\",{attrs:{id:e._f(\"slugify\")(t.name+\"-track-legend\")}},[e._v(e._s(t.name)+\" track\")]),e._v(\" \"),n(\"div\",{staticClass:\"track-main\"},[n(\"div\",{staticClass:\"track-addRemove\"},[n(\"button\",{attrs:{\"aria-label\":\"remove beat\"},on:{click:function(n){n.preventDefault(),e.removeBeat(t)}}},[n(\"remove-icon\")],1),e._v(\" \"),n(\"button\",{attrs:{\"aria-label\":\"add beat\"},on:{click:function(n){n.preventDefault(),e.addBeat(t)}}},[n(\"add-icon\")],1)]),e._v(\" \"),n(\"div\",{staticClass:\"track-beats\",attrs:{role:\"group\",\"aria-labelledby\":e._f(\"slugify\")(t.name+\"-track-label\")}},[n(\"span\",{staticClass:\"track-label\",attrs:{id:e._f(\"slugify\")(t.name+\"-track-label\")}},[n(\"span\",{staticClass:\"vh\"},[e._v(e._s(t.length)+\" quarter beats for\")]),e._v(\"\\n              \"+e._s(t.name)+\"\\n            \")]),e._v(\" \"),e._l(t.length,function(r){return n(\"div\",{style:{width:e.meta.beatsLength}},[n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.active,expression:\"sound.active\"}],attrs:{type:\"checkbox\",id:e._f(\"slugify\")(t.name+\"-beat-\"+r)},domProps:{value:r,checked:Array.isArray(t.active)?e._i(t.active,r)>-1:t.active},on:{change:function(n){var i=t.active,o=n.target,a=!!o.checked;if(Array.isArray(i)){var s=r,u=e._i(i,s);a?u<0&&(t.active=i.concat(s)):u>-1&&(t.active=i.slice(0,u).concat(i.slice(u+1)))}else t.active=a}}}),e._v(\" \"),n(\"label\",{attrs:{\"for\":e._f(\"slugify\")(t.name+\"-beat-\"+r),id:e._f(\"slugify\")(t.name+\"-beat-\"+r+\"-label\")}},[n(\"span\",{staticClass:\"vh\"},[e._v(\"Quarter Beat \"+e._s(r))])])])})],2),e._v(\" \"),n(\"div\",{staticClass:\"track-muteSettings\"},[n(\"button\",{attrs:{\"aria-pressed\":t.muted.toString(),\"aria-label\":\"mute\"},on:{click:function(e){e.preventDefault(),t.muted=!t.muted}}},[n(\"mute-icon\")],1),e._v(\" \"),n(\"button\",{staticClass:\"open-settings\",attrs:{\"aria-expanded\":t.expanded.toString(),\"aria-label\":\"settings\"},on:{click:function(e){e.preventDefault(),t.expanded=!t.expanded}}},[n(\"settings-icon\")],1)])]),e._v(\" \"),n(\"transition\",{attrs:{name:\"slide\"}},[t.expanded?n(\"fieldset\",{staticClass:\"track-settings\",attrs:{role:\"group\",\"aria-labelledby\":\"track-settings-label\"}},[n(\"legend\",{attrs:{id:\"track-settings-label\"}},[e._v(\"Track settings\")]),e._v(\" \"),n(\"div\",{staticClass:\"setting\"},[n(\"label\",{attrs:{\"for\":\"vol\"}},[e._v(\"Volume\")]),e._v(\" \"),n(\"div\",[n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.volume,expression:\"sound.volume\"}],attrs:{type:\"range\",id:\"vol\",min:\"0\",max:\"100\",\"aria-describedby\":\"vol-desc\"},domProps:{value:e._s(t.volume)},on:{input:function(e){t.volume=e.target.value}}}),e._v(\" \"),n(\"span\",{attrs:{id:\"vol-desc\"}},[e._v(\"From 0 to 100\")])])]),e._v(\" \"),n(\"div\",{staticClass:\"setting\"},[n(\"p\",{attrs:{\"aria-hidden\":\"true\"}},[e._v(\"Probability\")]),e._v(\" \"),n(\"div\",[n(\"label\",{staticClass:\"vh\",attrs:{\"for\":\"prob-chance\"}},[e._v(\"Chance \"),n(\"span\",{staticClass:\"vh\"},[e._v(\"(probability numerator)\")])]),e._v(\" \"),n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.probability.chance,expression:\"sound.probability.chance\"}],attrs:{type:\"number\",id:\"prob-chance\",min:\"1\"},domProps:{value:e._s(t.probability.chance)},on:{input:function(n){n.target.composing||(t.probability.chance=e._n(n.target.value))},blur:function(t){e.$forceUpdate()}}}),e._v(\" \"),n(\"span\",{staticClass:\"between\",attrs:{\"aria-hidden\":\"true\"}},[e._v(\"in\")]),e._v(\" \"),n(\"label\",{staticClass:\"vh\",attrs:{\"for\":\"prob-in\"}},[e._v(\"In \"),n(\"span\",{staticClass:\"vh\"},[e._v(\"(probability denominator)\")])]),e._v(\" \"),n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.probability[\"in\"],expression:\"sound.probability.in\"}],attrs:{type:\"number\",id:\"prob-in\",min:\"1\"},domProps:{value:e._s(t.probability[\"in\"])},on:{input:function(n){n.target.composing||(t.probability[\"in\"]=e._n(n.target.value))},blur:function(t){e.$forceUpdate()}}})])]),e._v(\" \"),e.meta.detuneSupport?n(\"div\",{staticClass:\"setting\"},[n(\"label\",{attrs:{\"for\":\"fluc\"}},[e._v(\"Pitch fluctuation\")]),e._v(\" \"),n(\"div\",[n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.fluctuationLevel,expression:\"sound.fluctuationLevel\"}],attrs:{type:\"range\",id:\"fluc\",min:\"0\",max:\"100\",\"aria-describedby\":\"fluc-desc\"},domProps:{value:e._s(t.fluctuationLevel)},on:{input:function(e){t.fluctuationLevel=e.target.value}}}),e._v(\" \"),n(\"span\",{attrs:{id:\"fluc-desc\"}},[e._v(\"From 0 to 100\")])])]):e._e(),e._v(\" \"),n(\"div\",{staticClass:\"setting\"},[n(\"p\",{attrs:{\"aria-hidden\":\"true\"}},[e._v(\"Overridden sounds\")]),e._v(\" \"),n(\"div\",{staticClass:\"checkbox-group\"},e._l(e.sounds,function(r){return r.name!==t.name?n(\"div\",[n(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:t.overrides,expression:\"sound.overrides\"}],attrs:{type:\"checkbox\",id:e._f(\"slugify\")(t.name+\"-overrides-\"+r.name)},domProps:{value:r.name,checked:Array.isArray(t.overrides)?e._i(t.overrides,r.name)>-1:t.overrides},on:{change:function(n){var i=t.overrides,o=n.target,a=!!o.checked;if(Array.isArray(i)){var s=r.name,u=e._i(i,s);a?u<0&&(t.overrides=i.concat(s)):u>-1&&(t.overrides=i.slice(0,u).concat(i.slice(u+1)))}else t.overrides=a}}}),e._v(\" \"),n(\"label\",{attrs:{\"for\":e._f(\"slugify\")(t.name+\"-overrides-\"+r.name)}},[n(\"span\",{staticClass:\"vh\"},[e._v(\"override\")]),e._v(\"\\n                    \"+e._s(r.name)+\"\\n                  \")])]):e._e()}))])]):e._e()])],1)}),e._v(\" \"),n(\"aside\",{staticClass:\"stats\"},[n(\"h2\",{staticClass:\"vh\"},[e._v(\"Drum Machine State Information\")]),e._v(\" \"),n(\"p\",[e._v(\"\\n          Polymetric pattern length: \"+e._s(e.meta.compoundLength/4)+\" beats (\"+e._s(e.meta.compoundLength)+\" ¼-beats)\\n          \"),n(\"button\",{staticClass:\"reset\",attrs:{disabled:e.meta.isPlaying},on:{click:function(t){t.preventDefault(),e.reset(t)}}},[e._v(\"Reset\")])]),e._v(\" \"),n(\"div\",{staticClass:\"link-section\"},[e.meta.linkUrl?n(\"div\",[n(\"label\",{attrs:{\"for\":\"linkField\"}},[e._v(\"Link to your drum pattern:\")]),e._v(\" \"),n(\"input\",{attrs:{id:\"linkField\",type:\"text\",onfocus:\"this.select()\"},domProps:{value:e.meta.linkUrl},on:{focus:e.link}})]):e._e()])])],2)])])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(\"svg\",{attrs:{viewBox:\"0 0 190 190\"}},[n(\"g\",{attrs:{transform:\"translate(-84.978 -137.34)\"}},[n(\"path\",{staticStyle:{\"stroke-linejoin\":\"round\",stroke:\"#222\",\"stroke-linecap\":\"round\",\"stroke-width\":\"3.235\",fill:\"#222\"},attrs:{d:\"m197.82 167.66-34.938 38.82h-55.641v51.76h55.643l34.936 38.818v-129.4z\"}}),e._v(\" \"),n(\"path\",{staticClass:\"waves\",staticStyle:{\"stroke-width\":\"5\",fill:\"#222\"},attrs:{d:\"m227.89 276.07c-1.5803-2.3842-2.9104-4.4327-2.9559-4.5521-.0455-.11941 1.1702-1.4238 2.7015-2.8987 7.6949-7.4115 12.416-15.947 14.675-26.532.66389-3.111.71101-3.7561.71101-9.7313 0-5.9915-.0459-6.6159-.72061-9.795-2.2204-10.463-6.9902-19.076-14.648-26.452-1.5217-1.4657-2.7668-2.7278-2.7668-2.8047 0-.11176 5.586-8.6047 5.9066-8.9804.33137-.38827 6.5908 5.5562 9.4585 8.9826 7.7102 9.2122 12.748 21.402 13.871 33.564 1.6809 18.2-5.0964 36.44-18.303 49.259-2.4897 2.4167-4.6395 4.2922-4.9079 4.2818-.0819-.003-1.4418-1.9565-3.0221-4.3407zm-12.564-18.748-3.047-4.5725 1.2877-1.512c2.2235-2.611 2.9324-3.6198 4.1444-5.8981 4.3759-8.2258 4.3759-17.742 0-25.968-1.212-2.2783-1.9299-3.2963-4.1501-5.8848l-1.2855-1.4987 3.084-4.5609 3.0839-4.5609.738.52551c1.107.78829 3.9832 4.0493 5.7561 6.5263 1.705 2.3822 4.2918 7.4509 5.1856 10.161 2.5464 7.7208 2.5464 16.832 0 24.553-.89375 2.7099-3.4806 7.7786-5.1856 10.161-1.7947 2.5075-4.6527 5.7406-5.7912 6.5513l-.77313.55053z\"}})])])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(\"svg\",{attrs:{id:\"minus\",viewBox:\"0 0 190 190\"}},[n(\"g\",{attrs:{transform:\"translate(-84.978 -137.34)\"}},[n(\"rect\",{staticStyle:{fill:\"#222\"},attrs:{transform:\"rotate(90)\",ry:\"3.375\",height:\"138.56\",width:\"29.632\",y:\"-249.28\",x:\"217.55\"}})])])},staticRenderFns:[]}},function(e,t){var n;n=function(){return this}();try{n=n||Function(\"return this\")()||(0,eval)(\"this\")}catch(r){\"object\"==typeof window&&(n=window)}e.exports=n},function(e,t,n){\"use strict\";var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(0),u=n.n(s);i.a.use(a.a),i.a.filter(\"slugify\",function(e){return e.toLowerCase().replace(/\\s+/g,\"-\").replace(/[^\\w\\-]+/g,\"\").replace(/\\-\\-+/g,\"-\").replace(/^-+/,\"\").replace(/-+$/,\"\")}),new i.a({el:\"#app\",components:{\"drum-machine\":u.a}})}]);"
  },
  {
    "path": "docs/manifest.json",
    "content": "{\n  \"name\": \"Beadz: A quantum polymetric drum machine\",\n  \"short_name\": \"Beadz\",\n  \"icons\": [{\n    \"src\": \"images/icon-128x128.png\",\n      \"sizes\": \"128x128\",\n      \"type\": \"image/png\"\n    }, {\n      \"src\": \"images/icon-144x144.png\",\n      \"sizes\": \"144x144\",\n      \"type\": \"image/png\"\n    }, {\n      \"src\": \"images/icon-152x152.png\",\n      \"sizes\": \"152x152\",\n      \"type\": \"image/png\"\n    }, {\n      \"src\": \"images/icon-192x192.png\",\n      \"sizes\": \"192x192\",\n      \"type\": \"image/png\"\n    }, {\n      \"src\": \"images/icon-256x256.png\",\n      \"sizes\": \"256x256\",\n      \"type\": \"image/png\"\n    }],\n  \"start_url\": \"index.html\",\n  \"display\": \"standalone\",\n  \"background_color\": \"#222\",\n  \"theme_color\": \"#fff\"\n}\n"
  },
  {
    "path": "docs/sw-cache-polyfill.js",
    "content": "if (!Cache.prototype.add) {\n  Cache.prototype.add = function add(request) {\n    return this.addAll([request]);\n  };\n}\n\nif (!Cache.prototype.addAll) {\n  Cache.prototype.addAll = function addAll(requests) {\n    var cache = this;\n\n    function NetworkError(message) {\n      this.name = 'NetworkError';\n      this.code = 19;\n      this.message = message;\n    }\n    NetworkError.prototype = Object.create(Error.prototype);\n\n    return Promise.resolve().then(function() {\n      if (arguments.length < 1) throw new TypeError();\n\n      var sequence = [];\n\n      requests = requests.map(function(request) {\n        if (request instanceof Request) {\n          return request;\n        }\n        else {\n          return String(request);\n        }\n      });\n\n      return Promise.all(\n        requests.map(function(request) {\n          if (typeof request === 'string') {\n            request = new Request(request);\n          }\n\n          var scheme = new URL(request.url).protocol;\n\n          if (scheme !== 'http:' && scheme !== 'https:') {\n            throw new NetworkError(\"Invalid scheme\");\n          }\n\n          return fetch(request.clone());\n        })\n      );\n    }).then(function(responses) {\n      return Promise.all(\n        responses.map(function(response, i) {\n          return cache.put(requests[i], response);\n        })\n      );\n    }).then(function() {\n      return undefined;\n    });\n  };\n}\n\nif (!CacheStorage.prototype.match) {\n  CacheStorage.prototype.match = function match(request, opts) {\n    var caches = this;\n\n    return this.keys().then(function(cacheNames) {\n      var match;\n\n      return cacheNames.reduce(function(chain, cacheName) {\n        return chain.then(function() {\n          return match || caches.open(cacheName).then(function(cache) {\n            return cache.match(request, opts);\n          }).then(function(response) {\n            match = response;\n            return match;\n          });\n        });\n      }, Promise.resolve());\n    });\n  };\n}\n"
  },
  {
    "path": "docs/sw.js",
    "content": "importScripts('sw-cache-polyfill.js');\n\nself.addEventListener('install', function(event) {\n  event.waitUntil(\n    caches.open('beadz').then(function(cache) {\n      return cache.addAll([\n        './',\n        './css/style.css',\n        './js/app.js',\n        './sounds/crash.mp3',\n        './sounds/hat.mp3',\n        './sounds/kick.mp3',\n        './sounds/ride.mp3',\n        './sounds/snare_light.mp3',\n        './sounds/snare.mp3',\n        './images/grip.svg',\n        './images/line.svg',\n        './images/tick.svg',\n        'https://fonts.googleapis.com/css?family=Fredoka+One'\n      ]);\n    })\n  );\n});\n\nself.addEventListener('fetch', function(event) {\n  event.respondWith(\n    caches.match(event.request).then(function(response) {\n      return response || fetch(event.request);\n    })\n  );\n});\n// 6zifrM6hrv"
  },
  {
    "path": "gulpfile.js",
    "content": "var elixir = require('laravel-elixir');\n\nrequire('laravel-elixir-vue-2');\n\nelixir(function(mix) {\n    mix.webpack(\n      './src/js/app.js',\n      'docs/js/app.js'\n    ).copy(\n      'src/css/style.css',\n      'docs/css/style.css'\n    ).copy(\n      'src/js/sw.js',\n      'docs/sw.js'\n    ).copy(\n      'src/manifest.json',\n      'docs/manifest.json'\n    ).copy(\n      'src/js/sw-cache-polyfill.js',\n      'docs/sw-cache-polyfill.js'\n    ).copy(\n      'src/images',\n      'docs/images'\n    ).copy(\n      'src/sounds',\n      'docs/sounds'\n    ).copy(\n      'src/index.html',\n      'docs/index.html'\n    )\n});\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"vue-elixir-starter\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"watch\": {\n    \"dev\": \"src/**/*.*\"\n  },\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\n    \"dev\": \"gulp && node cachebust-sw.js && node server.js\",\n    \"production\": \"gulp --production && node cachebust-sw.js && node server.js\",\n    \"watch\": \"npm-watch\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/Heydon/vue-elixir-starter.git\"\n  },\n  \"author\": \"Heydon Pickering <heydon@heydonworks.com> (http://www.heydonworks.com)\",\n  \"license\": \"ISC\",\n  \"bugs\": {\n    \"url\": \"https://github.com/Heydon/vue-elixir-starter/issues\"\n  },\n  \"homepage\": \"https://github.com/Heydon/vue-elixir-starter#readme\",\n  \"dependencies\": {\n    \"axios\": \"^0.15.3\",\n    \"express\": \"^4.14.0\",\n    \"gulp\": \"^3.9.1\",\n    \"laravel-elixir\": \"^6.0.0-15\",\n    \"laravel-elixir-vue-2\": \"^0.3.0\",\n    \"laravel-elixir-webpack-official\": \"^1.0.10\",\n    \"npm-watch\": \"^0.1.7\",\n    \"randomstring\": \"^1.1.5\",\n    \"vue\": \"^2.1.8\",\n    \"vue-axios\": \"^1.2.2\",\n    \"vue-localstorage\": \"^0.1.3\"\n  }\n}\n"
  },
  {
    "path": "server.js",
    "content": "const express = require('express');\nconst app = express();\n\napp.use(express.static('docs'));\n\napp.listen(3000, function() {\n  app.get('/', (req, res) => {\n    res.sendFile(__dirname + '/public/index.html');\n  });\n});\n"
  },
  {
    "path": "src/css/style.css",
    "content": "html {\n  font-size: calc(1em + 0.4vw);\n  color: #222;\n  font-family: Fredoka One, sans-serif;\n  line-height: 1.5;\n}\n\n*, ::before, ::after {\n  color: inherit;\n  font-family: inherit;\n  font-size: inherit;\n  box-sizing: border-box;\n  font-weight: normal;\n}\n\nbody {\n  background: #fefefe;\n  overflow-x: hidden;\n  padding-bottom: 1.5rem;\n}\n\n* {\n  margin: 0;\n  padding: 0;\n}\n\n* + * {\n  margin-top: 1.5rem;\n}\n\nbody, br, dt, dd, th, td, option, [hidden] + * {\n  margin-top: 0;\n}\n\nli + li {\n  margin-top: 0.5rem;\n}\n\nlabel + * {\n  margin-top: 0;\n}\n\n.drum-machine * {\n  margin-top: 0;\n}\n\n/* basic buttons */\n\nbutton {\n  background: #222;\n  border: 0;\n  border-radius: 50%;\n}\n\nbutton:disabled {\n  opacity: 0.3;\n}\n\na:focus,\nbutton:focus,\n.track-beats [type=\"checkbox\"]:focus + label,\n.checkbox-group [type=\"checkbox\"]:focus + label::before,\n[type=\"text\"]:focus,\n[type=\"number\"]:focus {\n  box-shadow: 0 0 0 0.25rem #f0f;\n  outline: none;\n}\n\nbutton svg {\n  width: 100%;\n  height: 100%;\n}\n\n.track-main button {\n  background: transparent;\n}\n\n[aria-label=\"mute\"][aria-pressed=\"true\"] .waves {\n  display: none;\n}\n\n/* main layout */\n\n.central-col {\n  margin: 2.25rem auto;\n  max-width: 45rem;\n  padding: 0 1.5rem;\n}\n\nh1 {\n  text-align: center;\n  font-size: 1.75rem;\n  margin-right: 1rem;\n}\n\nheader {\n  background: #222;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  flex-wrap: wrap;\n  color: #fff;\n  padding: 0.5rem 1rem;\n}\n\nheader p {\n  margin-top: 0;\n}\n\n/* range inputs */\n\ninput[type=range] {\n  -webkit-appearance: none;\n  width: 100%;\n  background: transparent;\n}\n\ninput[type=range]::-webkit-slider-thumb {\n  -webkit-appearance: none;\n}\n\ninput[type=range]:focus {\n  background: transparent;\n}\n\ninput[type=range]::-ms-track {\n  width: 100%;\n  cursor: pointer;\n  background: transparent;\n  border-color: transparent;\n  color: transparent;\n}\n\ninput[type=range]::-webkit-slider-thumb {\n  -webkit-appearance: none;\n  box-shadow: 0 0 0 0.2rem #fefefe;\n  height: 1.75rem;\n  width: 1.75rem;\n  border-radius: 0.25rem;\n  background: #222 url(../images/grip.svg) no-repeat center;\n  background-size: 0.66rem auto;\n  cursor: pointer;\n  margin-top: -0.75rem;\n}\n\ninput[type=range]:focus::-webkit-slider-thumb {\n  outline: none;\n  box-shadow: 0 0 0 0.25rem #f0f;\n}\n\ninput[type=range]::-moz-range-thumb {\n  border: none;\n  height: 1.75rem;\n  width: 1.75rem;\n  border-radius: 0.25rem;\n  background: #222 url(../images/grip.svg) no-repeat center;\n  background-size: 0.66rem auto;\n  cursor: pointer;\n}\n\ninput[type=range]:focus::-moz-range-thumb {\n  outline: none;\n  box-shadow: 0 0 0 0.25rem #f0f;\n}\n\ninput[type=range]::-ms-thumb {\n  border: none;\n  height: 1.75rem;\n  width: 1.75rem;\n  border-radius: 0.25rem;\n  background: #222 url(../images/grip.svg) no-repeat center;\n  background-size: 0.66rem auto;\n  cursor: pointer;\n}\n\ninput[type=range]:focus {\n  outline: none;\n}\n\ninput[type=range]:focus::-ms-thumb {\n  outline: none;\n  box-shadow: 0 0 0 0.25rem #f0f;\n}\n\ninput[type=range]::-webkit-slider-runnable-track {\n  width: 100%;\n  height: 0.33rem;\n  cursor: pointer;\n  background-color: #222;\n  border-radius: 0.25rem;\n  border: none;\n}\n\ninput[type=range]::-moz-range-track {\n  width: 100%;\n  height: 0.33rem;\n  cursor: pointer;\n  background: #222;\n  border-radius: 0.25rem;\n  border: none;\n}\n\ninput[type=range]:focus::-moz-range-track {\n  outline: none;\n}\n\ninput[type=range]::-ms-track {\n  width: 100%;\n  height: 0.33rem;\n  cursor: pointer;\n  background: transparent;\n  border-color: transparent;\n  border-width: 0;\n  color: transparent;\n}\n\ninput[type=range]::-ms-fill-lower {\n  background: #222;\n  border: none;\n  border-radius: 0;\n}\n\ninput[type=range]::-ms-fill-upper {\n  background: #222;\n  border: none;\n  border-radius: 0;\n}\n\ninput[type=range]:focus::-ms-fill-upper {\n  background: #222;\n}\n\n/* forms */\n\nfieldset {\n border: 0;\n}\n\n[type=\"number\"] {\n  display: inline;\n  width: 3rem;\n  text-align: center;\n  padding: 0.25rem;\n  border: 0.25rem solid;\n  border-radius: 0.25rem;\n  line-height: 1;\n}\n\n/* utilities */\n\n.vh, legend:not(.show), [type=\"checkbox\"] {\n  position: absolute !important;\n  height: 1px; width: 1px;\n  overflow: hidden;\n  clip: rect(1px, 1px, 1px, 1px);\n}\n\n[hidden] {\n  display: none;\n}\n\n.between {\n  padding: 0 0.5rem;\n}\n\n.checkbox-group {\n  display: flex;\n  flex-wrap: wrap;\n}\n\n.checkbox-group label {\n  margin-right: 1rem;\n}\n\n.checkbox-group label::before {\n  content: '';\n  display: inline-block;\n  width: 1.33rem;\n  height: 1.33rem;\n  margin-right: 0.25rem;\n  border: 0.25rem solid #222;\n  border-radius: 0.25rem;\n  vertical-align: -0.33rem;\n  background-color: #fff;\n}\n\n.checkbox-group [type=\"checkbox\"]:checked + label::before {\n  background-image: url(../images/tick.svg);\n  background-position: center;\n  background-size: 100% auto;\n}\n\n/* main track */\n\n.track {\n  margin-top: 1.75rem;\n}\n\n.track-main, .track-beats {\n  display: flex;\n}\n\n.track-main {\n  justify-content: space-between;\n}\n\n.track-beats {\n  width: calc(100% - 10.5rem);\n  margin: 0 0.25rem 0 0.75rem;\n  position: relative;\n}\n\n.track-label {\n  position: absolute;\n  left: 1rem;\n  top: -1.66rem;\n}\n\n.track-label::before {\n  content: '';\n  display: inline-block;\n  width: 0.25rem;\n  height: 1.25rem;\n  position: absolute;\n  top: 1.33rem;\n  left: 0.5rem;\n  background: #222;\n}\n\n.track-main button {\n  width: 2rem;\n  height: 2rem;\n  border: 0;\n}\n\n.track-beats label {\n  display: inline-block;\n  width: 1rem;\n  height: 1rem;\n  background: #fff;\n  border: 0.25rem solid #222;\n  border-radius: 50%;\n  position: relative;\n  left: -0.5rem;\n}\n\n.track-beats :checked + label {\n  background: #222;\n  box-shadow: 0 0 0 0.2rem #222;\n}\n\n.track-addRemove, .track-muteSettings, .track-beats > div {\n  display: flex;\n  align-items: center;\n}\n\n.track-beats > div {\n  background-image: url(../images/line.svg);\n  background-repeat: repeat-x;\n  background-position: center;\n  background-size: auto 0.25rem;\n}\n\n.track-beats > div:last-child {\n  position: relative;\n}\n\n.track-beats > div:last-child::after {\n  content: '';\n  display: inline-block;\n  width: 0.25rem;\n  height: 1rem;\n  background: #222;\n  border-radius: 0.125rem;\n  position: absolute;\n  right: 0;\n  top: 0.5rem;\n  bottom: 0.5rem;\n}\n\n/* track settings */\n\n.track-settings {\n  padding: 1.25em 0;\n  border-bottom: 2px solid;\n  overflow: hidden;\n}\n\n.setting {\n  display: flex;\n  align-items: center;\n}\n\n.setting + .setting {\n  margin-top: 1rem;\n}\n\n.setting > * {\n  flex: 1 0 auto;\n}\n\n.setting > :last-child {\n  flex: 3;\n  display: flex;\n  align-items: center;\n}\n\n.setting > :first-child {\n  flex: 1;\n  line-height: 1.125;\n  margin-right: 0.5rem;\n}\n\n.setting span[id] {\n  display: none;\n}\n\n/* bpm and play row */\n\n.bpm-and-play {\n  display: flex;\n  justify-content: space-between;\n}\n\n/* bpm */\n\n.bpm {\n  display: flex;\n  justify-content: flex-start;\n  align-items: center;\n  width: 60%;\n}\n\n.bpm-slider {\n  margin-right: 0.5rem;\n  width: 50%;\n}\n\n.bpm label {\n  font-size: 1.25rem;\n  text-transform: uppercase;\n}\n\n\n/* play/stop */\n\n.play-stop button {\n  width: 3rem;\n  height: 3rem;\n}\n\n.play-stop button[aria-pressed=\"false\"] .pause-icon {\n  display: none;\n}\n\n.play-stop button[aria-pressed=\"true\"] .play-icon {\n  display: none;\n}\n\n/* reset and link */\n\n.link-section {\n  text-align: center;\n}\n\n.reset {\n  border-radius: 0.25rem;\n  color: #fff;\n  text-transform: uppercase;\n  padding: 0.25rem 5rem;\n  font-weight: normal;\n  margin: 0.5rem;\n  letter-spacing: 1px;\n}\n\n/* link input */\n\n[type=\"text\"] {\n  padding: 0.25rem;\n  width: 80%;\n  border: 1px solid;\n  font-family: monospace;\n}\n\n/* animations */\n\n@keyframes pulse {\n  0% {\n    transform: none;\n  }\n  50% {\n    transform: scale(1.5);\n  }\n  100% {\n    transform: scale(1);\n  }\n}\n\nlabel[id] {\n  will-change: transform;\n}\n\n.pulse-anim {\n  animation: pulse 0.1s 1 ease-in;\n}\n\n.slide-enter-active, .slide-leave-active {\n  transition: opacity 1s;\n}\n\n.slide-leave-active {\n  transition: opacity 0.25s;\n}\n\n.slide-enter, .slide-leave-active {\n  opacity: 0;\n}\n\n.open-settings {\n  transition: transform 0.5s ease-out;\n}\n\n.open-settings[aria-expanded=\"true\"] {\n  transform: rotate(45deg);\n}\n\n/* stats and footer */\n\n.stats {\n  text-align: center;\n  margin-top: 2.25rem;\n}\n\nfooter {\n  text-align: center;\n  margin-top: 0;\n  margin-left: auto;\n  margin-right: auto;\n  max-width: 45rem;\n}\n\nfooter::before {\n  content: '——————';\n  letter-spacing: -0.25rem;\n}\n\n/* smaller viewports */\n\n@media (max-width: 750px) {\n\n  .central-col {\n    margin: 1em;\n    padding: 0;\n  }\n\n}\n\n/* portrait warning */\n\n.portrait-warning {\n  display: none;\n}\n\n.portrait-warning svg {\n  margin: 0.5rem 0;\n}\n\n@media (orientation: portrait) {\n\n  .portrait-warning {\n    display: flex;\n    background: #ddd;\n    padding: 1.5rem;\n    align-items: center;\n    justify-content: center;\n    text-align: center;\n    margin: 0;\n    position: fixed;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n  }\n\n  .portrait-warning svg {\n    width: 30vw;\n    height: auto;\n  }\n\n}\n\n/* offline ready confirmation */\n\n@keyframes fade {\n  0% {\n    opacity: 0;\n  }\n  30% {\n    opacity: 1;\n  }\n  70% {\n    opacity: 1;\n  }\n  100% {\n    opacity: 0;\n  }\n}\n\n#offline-confirm p {\n  background: #222;\n  color: #fff;\n  padding: 0.5rem 1rem;;\n  font-size: 1.25rem;\n  position: absolute;\n  bottom: 1rem;\n  right: 1rem;\n  animation: fade 6s ease-in;\n}\n"
  },
  {
    "path": "src/index.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n\t  <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n    <meta name=\"apple-mobile-web-app-title\" content=\"Beadz\">\n    <meta name=\"apple-mobile-web-app-capable\" content=\"yes\">\n    <link rel=\"apple-touch-icon\" href=\"images/icon-256x256.png\">\n    <link href=\"https://fonts.googleapis.com/css?family=Fredoka+One\" rel=\"stylesheet\" media=\"none\" onload=\"if(media!='all')media='all'\">\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"css/style.css\">\n    <title>Beadz: A Quantum, Polymetric Drum Machine</title>\n    <link rel=\"manifest\" href=\"manifest.json\">\n  </head>\n  <body>\n    <div id=\"app\">\n      <header role=\"banner\">\n        <h1>Beadz</h1>\n        <p>A quantum polymetric drum machine</p>\n      </header>\n      <div class=\"central-col\">\n        <drum-machine></drum-machine>\n        <footer role=\"contentinfo\">\n          <p>By <a href=\"https://twitter.com/heydonworks\">@heydonworks</a> &middot; <a href=\"https://github.com/Heydon/beadz-drum-machine\">Manual and source code on Github</a>.</p>\n        </footer>\n      </div>\n      <div id=\"offline-confirm\" role=\"alert\"></div>\n      <div class=\"portrait-warning\">\n        <div>\n          <h1>Beadz</h1>\n          <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"625.64\" width=\"556.23\" viewBox=\"0 0 556.23 625.64\"><path d=\"M23.1 624.32C-12.78 609.26 5.14 563.7.35 533.9c-.2-112.6-.97-225.2.7-337.8 1.83-18.36 20.36-30.14 37.72-26.68l206.8.05c31.33 9.7 20.5 46.42 22.7 71.1.56 119.92 1.64 239.88-.2 359.8-6.7 33.08-46.34 23.63-70.87 25.02-58.02-.22-116.1.5-174.12-1.08zm118.77-19.4c35.58-17.44-18.95-58.86-26.48-20.6-2.48 14.5 12.95 26.86 26.47 20.6zm82.9-66.86c6.4-7.24 1.1-19.84 2.86-29.2-.34-93.5 1.6-187.03-.75-280.48 1.4-20.3-54.23-5.1-76.62-9.97-35.84.2-67.7.6-103.5 2.23-9.32 24.86-2.03 56.87-4.57 84.46-.12 76.8-.08 153.64-.1 230.46 7.1 9.35 20.32 3.1 30.4 4.9h149.48zM288.1 571c1.1-9.1-5-25.38 10.03-20.53 67.5-.6 135.22 1.54 202.56-1.68 8.7-25.74 2.4-56.28 4.2-83.98l-.3-95.2c-6-9.67-18.9-3.37-28.3-5.15H288.1v-41h244.46c25.47 7.83 24.22 37.3 23.28 58.76-.3 62.03 1.88 124.34-1.65 186.2-3.7 17.6-22.12 25.37-38.35 22.58l-227.76.5zm128.33-325.47c-11.8-12.74-57.2-58.25-28.2-67.87 35.04 9.3 12.8-40.83 7.82-56.4-28.2-63.1-100.66-100.04-168.4-89.3-39.8 5.23-74.58 28.16-100.87 57.64-19.36 18.12-25.77-20.88-5.3-35.1 63.16-56.08 156.92-73.75 230.8-26.13 52.94 32.53 86.32 91.6 90.37 153.25 17.08 2.15 48.42 1.38 18.6 31.28 0 0-26.97 37.36-44.84 32.63z\" fill=\"#222\"/></svg>\n          <p>Rotate your screen into a landscape orientation.</p>\n        </div>\n      </div>\n    </div>\n    <script src=\"js/app.js\"></script>\n    <script>\n      if ('serviceWorker' in navigator) {\n        navigator.serviceWorker.register('sw.js', {\n          scope: './'\n        }).then(function(registration) {\n          var newWorker = registration.installing;\n\n          // statechange fires every time the ServiceWorker.state changes\n          newWorker.onstatechange = function() {\n            // show the message on activation\n            if (newWorker.state == 'activated' && !navigator.serviceWorker.controller) {\n              var liveRegion = document.getElementById('offline-confirm');\n              liveRegion.innerHTML = '<p>Ready to use offline!</p>';\n              window.setTimeout(function() {\n                liveRegion.innerHTML = '';\n              }, 6000);\n            }\n          };\n        }).catch(function(err) {\n          // registration failed :(\n        });\n      }\n    </script>\n  </body>\n</html>\n"
  },
  {
    "path": "src/js/app.js",
    "content": "import Vue from 'vue';\nimport VueLocalStorage from 'vue-localstorage'\nimport Machine from './components/Machine.vue';\n\nVue.use(VueLocalStorage);\n\nVue.filter('slugify', function (text) {\n  return text.toLowerCase()\n     .replace(/\\s+/g, '-')\n     .replace(/[^\\w\\-]+/g, '')\n     .replace(/\\-\\-+/g, '-')\n     .replace(/^-+/, '')\n     .replace(/-+$/, '');\n});\n\nnew Vue({\n  el: '#app',\n  components: {\n    'drum-machine': Machine\n  }\n});\n"
  },
  {
    "path": "src/js/components/AddIcon.vue",
    "content": "<template>\n  <svg id=\"plus\" viewBox=\"0 0 190 190\">\n    <g transform=\"translate(-84.978 -137.34)\">\n      <rect style=\"fill:#222\" ry=\"3.375\" height=\"138.56\" width=\"29.632\" y=\"163.08\" x=\"165.18\"/>\n      <rect style=\"fill:#222\" transform=\"rotate(90)\" ry=\"3.375\" height=\"138.56\" width=\"29.632\" y=\"-249.28\" x=\"217.55\"/>\n    </g>\n  </svg>\n</template>\n"
  },
  {
    "path": "src/js/components/Machine.vue",
    "content": "<template>\n  <main class=\"drum-machine\">\n    <form action>\n      <h2 class=\"vh\" id=\"dm-main-heading\">Drum Machine Main Controls</h2>\n      <div class=\"bpm-and-play\" aria-labelledby=\"dm-main-heading\">\n        <div class=\"bpm\">\n          <div class=\"bpm-slider\">\n            <input type=\"range\" id=\"bpm\" min=\"0\" max=\"240\" v-model=\"meta.bpm\" @blur=\"link\">\n          </div>\n          <label for=\"bpm\">\n            {{meta.bpm}}\n            <span aria-hidden=\"true\">bpm</span>\n            <span class=\"vh\">beats per minute</span>\n          </label>\n        </div>\n        <div class=\"play-stop\">\n          <button :aria-pressed=\"meta.isPlaying.toString()\" @click.prevent=\"playOrStop\" aria-label=\"play\">\n            <play-icon></play-icon>\n          </button>\n        </div>\n      </div>\n      <div class=\"tracks\" aria-labelledby=\"dm-tracks-heading\">\n        <h2 class=\"vh\" id=\"dm-tracks-heading\">Drum Machine Tracks</h2>\n        <fieldset role=\"group\" :aria-labelledby=\"sound.name + '-track-legend' | slugify\" v-for=\"sound in sounds\" class=\"track\">\n          <legend :id=\"sound.name + '-track-legend' | slugify\">{{sound.name}} track</legend>\n          <div class=\"track-main\">\n            <div class=\"track-addRemove\">\n              <button aria-label=\"remove beat\" @click.prevent=\"removeBeat(sound)\">\n                <remove-icon></remove-icon>\n              </button>\n              <button aria-label=\"add beat\" @click.prevent=\"addBeat(sound)\">\n                <add-icon></add-icon>\n              </button>\n            </div>\n            <div class=\"track-beats\" role=\"group\" :aria-labelledby=\"sound.name + '-track-label' | slugify\">\n              <span class=\"track-label\" :id=\"sound.name + '-track-label' | slugify\">\n                <span class=\"vh\">{{sound.length}} quarter beats for</span>\n                {{sound.name}}\n              </span>\n              <div v-for=\"n in sound.length\" :style=\"{ width: meta.beatsLength }\">\n                <input type=\"checkbox\" :id=\"sound.name + '-beat-' + n | slugify\" :value=\"n\" v-model=\"sound.active\">\n                <label :for=\"sound.name + '-beat-' + n | slugify\" :id=\"sound.name + '-beat-' + n + '-label' | slugify\"><span class=\"vh\">Quarter Beat {{n}}</span></label>\n              </div>\n            </div>\n            <div class=\"track-muteSettings\">\n              <button @click.prevent=\"sound.muted = !sound.muted\" :aria-pressed=\"sound.muted.toString()\" aria-label=\"mute\">\n                <mute-icon></mute-icon>\n              </button>\n              <button class=\"open-settings\" @click.prevent=\"sound.expanded = !sound.expanded\" :aria-expanded=\"sound.expanded.toString()\" aria-label=\"settings\">\n                <settings-icon></settings-icon>\n              </button>\n            </div>\n          </div>\n          <transition name=\"slide\">\n            <fieldset role=\"group\" aria-labelledby=\"track-settings-label\" v-if=\"sound.expanded\" class=\"track-settings\">\n              <legend id=\"track-settings-label\">Track settings</legend>\n              <div class=\"setting\">\n                <label for=\"vol\">Volume</label>\n                <div>\n                  <input type=\"range\" id=\"vol\" min=\"0\" max=\"100\" v-model=\"sound.volume\" aria-describedby=\"vol-desc\">\n                  <span id=\"vol-desc\">From 0 to 100</span>\n                </div>\n              </div>\n              <div class=\"setting\">\n                <p aria-hidden=\"true\">Probability</p>\n                <div>\n                  <label for=\"prob-chance\" class=\"vh\">Chance <span class=\"vh\">(probability numerator)</span></label>\n                  <input type=\"number\" id=\"prob-chance\" min=\"1\" v-model=\"sound.probability.chance\">\n                  <span aria-hidden=\"true\" class=\"between\">in</span>\n                  <label for=\"prob-in\" class=\"vh\">In <span class=\"vh\">(probability denominator)</span></label>\n                  <input type=\"number\" id=\"prob-in\" min=\"1\" v-model=\"sound.probability.in\">\n                </div>\n              </div>\n              <div class=\"setting\" v-if=\"meta.detuneSupport\">\n                <label for=\"fluc\">Pitch fluctuation</label>\n                <div>\n                  <input type=\"range\" id=\"fluc\" min=\"0\" max=\"100\" v-model=\"sound.fluctuationLevel\" aria-describedby=\"fluc-desc\">\n                  <span id=\"fluc-desc\">From 0 to 100</span>\n                </div>\n              </div>\n              <div class=\"setting\">\n                <p aria-hidden=\"true\">Overridden sounds</p>\n                <div class=\"checkbox-group\">\n                  <div v-for=\"otherSound in sounds\" v-if=\"otherSound.name !== sound.name\">\n                    <input type=\"checkbox\" :id=\"sound.name + '-overrides-' + otherSound.name | slugify\" :value=\"otherSound.name\" v-model=\"sound.overrides\">\n                    <label :for=\"sound.name + '-overrides-' + otherSound.name | slugify\">\n                      <span class=\"vh\">override</span>\n                      {{otherSound.name}}\n                    </label>\n                  </div>\n                </div>\n              </div>\n            </fieldset>\n          </transition>\n        </fieldset>\n        <aside class=\"stats\">\n          <h2 class=\"vh\">Drum Machine State Information</h2>\n          <p>\n            Polymetric pattern length: {{meta.compoundLength / 4}} beats ({{meta.compoundLength}} &#x00bc;-beats)\n            <button @click.prevent=\"reset\" class=\"reset\" :disabled=\"meta.isPlaying\">Reset</button>\n          </p>\n          <div class=\"link-section\">\n            <div v-if=\"meta.linkUrl\">\n              <label for=\"linkField\">Link to your drum pattern:</label>\n              <input id=\"linkField\" :value=\"meta.linkUrl\" type=\"text\" onfocus=\"this.select()\" @focus=\"link\" />\n            </div>\n          </div>\n        </aside>\n      </div>\n    </form>\n  </main>\n</template>\n\n<script>\nimport PlayIcon from './PlayIcon.vue';\nimport MuteIcon from './MuteIcon.vue';\nimport AddIcon from './AddIcon.vue';\nimport RemoveIcon from './RemoveIcon.vue';\nimport SettingsIcon from './SettingsIcon.vue';\n\n\nvar defaultState = {\n  sounds: [\n    {\n      name: 'kick',\n      url: 'sounds/kick.mp3',\n      buffer: null,\n      length: 8,\n      current: 1,\n      active: [1],\n      probability: {\n        chance: 1,\n        in: 1\n      },\n      probable: true,\n      fluctuationLevel: 0,\n      overrides: [],\n      volume: 100,\n      muted: false,\n      expanded: false\n    },\n    {\n      name: 'snare',\n      url: 'sounds/snare.mp3',\n      buffer: null,\n      length: 8,\n      current: 1,\n      active: [5],\n      probability: {\n        chance: 1,\n        in: 1\n      },\n      probable: true,\n      fluctuationLevel: 40,\n      overrides: ['kick', 'snare light'],\n      volume: 100,\n      muted: false,\n      expanded: false\n    },\n    {\n      name: 'snare light',\n      url: 'sounds/snare_light.mp3',\n      buffer: null,\n      length: 8,\n      current: 1,\n      active: [],\n      probability: {\n        chance: 1,\n        in: 1\n      },\n      probable: true,\n      fluctuationLevel: 60,\n      overrides: ['kick'],\n      volume: 100,\n      muted: false,\n      expanded: false\n    },\n    {\n      name: 'hi hat',\n      url: 'sounds/hat.mp3',\n      buffer: null,\n      length: 8,\n      current: 1,\n      active: [1, 3, 5, 7],\n      probability: {\n        chance: 1,\n        in: 1\n      },\n      probable: true,\n      fluctuationLevel: 60,\n      overrides: [],\n      volume: 80,\n      muted: false,\n      expanded: false\n    },\n    {\n      name: 'ride',\n      url: 'sounds/ride.mp3',\n      buffer: null,\n      length: 8,\n      current: 1,\n      active: [1, 5],\n      probability: {\n        chance: 1,\n        in: 1\n      },\n      probable: true,\n      fluctuationLevel: 40,\n      overrides: ['hi hat'],\n      volume: 100,\n      muted: true,\n      expanded: false\n    },\n    {\n      name: 'crash',\n      url: 'sounds/crash.mp3',\n      buffer: null,\n      length: 8,\n      current: 1,\n      active: [1],\n      probability: {\n        chance: 1,\n        in: 4\n      },\n      probable: true,\n      fluctuationLevel: 40,\n      overrides: ['hi hat', 'ride'],\n      volume: 90,\n      muted: true,\n      expanded: false\n    }\n  ],\n  meta: {\n    bpm: 120,\n    beatsLength: 8,\n    futureTickTime: 0.0,\n    isPlaying: false,\n    detuneSupport: true,\n    linkUrl: null\n  }\n};\n\nvar soundProps = [\n  'length',\n  'active',\n  'probable',\n  'probability',\n  'overrides',\n  'volume',\n  'fluctuationLevel',\n  'muted'\n];\n\nvar parseQuery = function(query) {\n  if (query.startsWith('?')) {\n      var parts = query.substring(1).split('&');\n      var params = parts.reduce(function(agg, part) {\n          var bits = part.split('=');\n          var name = decodeURIComponent(bits[0]);\n          var values = agg[name] || [];\n          if (bits.length > 1) {\n              values.push(decodeURIComponent(bits[1]));\n          }\n          agg[name] = values;\n          return agg;\n      }, {});\n      return params;\n  }\n};\n\nexport default {\n  data() {\n    return {\n      audioContext: null,\n      sounds: null,\n      meta: {\n        bpm: 120,\n        isPlaying: false\n      }\n    }\n  },\n  components: {\n    PlayIcon,\n    MuteIcon,\n    AddIcon,\n    RemoveIcon,\n    SettingsIcon\n  },\n  methods: {\n    audioContextCheck() {\n      if (typeof AudioContext !== 'undefined') {\n        return new AudioContext();\n      } else if (typeof webkitAudioContext !== 'undefined') {\n        return new webkitAudioContext();\n      } else if (typeof mozAudioContext !== 'undefined') {\n        return new mozAudioContext();\n      } else {\n        throw new Error('AudioContext not supported');\n      }\n    },\n    soundLoader(path) {\n      var soundObject = {};\n\n      var getSound = new XMLHttpRequest();\n      getSound.open('GET', path, true);\n      getSound.responseType = 'arraybuffer';\n\n      getSound.onload = () => {\n        this.audioContext.decodeAudioData(getSound.response, (buffer) => {\n          soundObject.soundToPlay = buffer;\n        });\n      }\n\n      getSound.send();\n\n      soundObject.play = (volumeVal, time, fluctuationLevel, animElem) => {\n        var volume = this.audioContext.createGain();\n        volume.gain.value = volumeVal;\n        var playSound = this.audioContext.createBufferSource();\n        playSound.buffer = soundObject.soundToPlay;\n\n        // Feature detect detune method\n        if (this.meta.detuneSupport) {\n          // Naturalization by fluctuating pitch slightly\n          var bend = Math.floor(Math.random() * fluctuationLevel) + -Math.abs(fluctuationLevel);\n          playSound.detune.value = bend;\n        }\n\n        // Volume control\n        playSound.connect(volume);\n        volume.connect(this.audioContext.destination);\n\n        playSound.start(time);\n\n        window.requestAnimFrame(() => {\n          this.pulse(animElem);\n        });\n      }\n\n      return soundObject;\n    },\n    loadSounds() {\n      this.sounds.forEach((sound) => {\n        sound.buffer = this.soundLoader(sound.url);\n      });\n    },\n    setState() {\n\n      var storage = this.$localStorage.get('drum-machine-state');\n\n      if (storage) {\n        var savedData = JSON.parse(storage);\n        this.sounds = savedData.sounds;\n        this.meta = savedData.meta;\n      } else {\n        this.sounds = JSON.parse(JSON.stringify(defaultState.sounds));\n        this.meta = JSON.parse(JSON.stringify(defaultState.meta));\n      }\n\n      var queryState = parseQuery(window.location.search);\n      if (queryState) {\n        var params = Object.keys(queryState);\n        var state = {\n            sounds: [],\n            meta: {}\n        };\n        params.forEach(function(key) {\n            if (key === 'bpm') {\n                state.meta.bpm = JSON.parse(queryState.bpm[0]);\n            } else {\n                var sound = JSON.parse(queryState[key][0]);\n                sound.name = key;\n                state.sounds.push(sound);\n            }\n        });\n        this.updateState(state);\n      }\n\n    },\n    futureTick() {\n      var noteLength = 60 / this.meta.bpm;\n      this.meta.futureTickTime += 0.25 * noteLength;\n\n      this.sounds.forEach((sound) => {\n        sound.current++;\n        if (sound.current > sound.length) {\n          sound.current = 1;\n        }\n      });\n    },\n    scheduleNote() {\n      this.sounds.forEach((sound) => {\n        sound.probable = this.probability(sound.probability);\n      });\n      this.sounds.forEach((sound) => {\n        this.playOrNot(sound, sound.active.includes(sound.current));\n      });\n    },\n    playOrNot(sound, currentIsActive) {\n      if (!currentIsActive) {\n        return;\n      }\n\n      if (sound.muted) {\n        return;\n      }\n\n      if (!sound.probable) {\n        return;\n      }\n\n      var overridden = false;\n\n      this.sounds.forEach((otherSound) => {\n        if (otherSound.overrides.includes(sound.name)) {\n          if (!otherSound.muted) {\n            if (otherSound.probable) {\n              if (otherSound.active.includes(otherSound.current)) {\n                overridden = true;\n              }\n            }\n          }\n        }\n      });\n\n      if (overridden) {\n        return;\n      }\n\n      var soundID = this.slugify(sound.name + '-beat-' + sound.current) + '-label';\n      var animElem = document.getElementById(soundID);\n\n      sound.buffer.play(\n        sound.volume / 100,\n        this.meta.futureTickTime,\n        sound.fluctuationLevel,\n        animElem\n      );\n\n    },\n    scheduler() {\n      while (this.meta.futureTickTime < this.audioContext.currentTime + 0.1) {\n        this.scheduleNote();\n        this.futureTick();\n      }\n      window.t = window.setTimeout(this.scheduler, 50.0);\n    },\n    probability(ratio) {\n      var set = [];\n\n      if (ratio.chance >= ratio.in) {\n        return true;\n      }\n\n      var i = 0;\n      do {\n        i += 1;\n        set.push(true);\n      }\n      while (i < ratio.chance);\n\n      var n = 0;\n      do {\n        n += 1;\n        set.push(false);\n      }\n      while (n < (ratio.in - ratio.chance));\n\n      var playIt = set[Math.floor(Math.random()*set.length)];\n      return playIt;\n    },\n    playOrStop() {\n      this.play();\n    },\n    reset() {\n        this.updateState(defaultState);\n        if (history.pushState) {\n          var newurl = window.location.protocol + \"//\" + window.location.host + window.location.pathname;\n          window.history.pushState({path:newurl},'',newurl);\n        }\n        this.meta.linkUrl = null;\n    },\n    updateState(newState) {\n        if (newState.sounds) {\n            var soundsByName = newState.sounds.reduce(function(agg, sound) {\n                agg[sound.name] = sound;\n                return agg;\n            }, {});\n\n            this.sounds.forEach(function (sound) {\n                var newSound = soundsByName[sound.name];\n                soundProps.forEach(function(prop) {\n                    sound[prop] = JSON.parse(JSON.stringify(newSound[prop]));\n                });\n            });\n        }\n\n        if (newState.meta) {\n            this.meta.bpm = newState.meta.bpm;\n        }\n    },\n    link() {\n        var parts = ['bpm=' + this.meta.bpm];\n        this.sounds.forEach(function(sound) {\n            var persisted = soundProps.reduce(function(agg, prop) {\n                agg[prop] = sound[prop];\n                return agg;\n            }, {});\n            var part = encodeURIComponent(sound.name) + '=' + encodeURIComponent(JSON.stringify(persisted));\n            parts.push(part);\n        });\n\n        if (history.pushState) {\n          var newUrl = window.location.protocol + \"//\" + window.location.host + window.location.pathname + '?' + parts.join('&');\n          window.history.pushState({path:newUrl}, '', newUrl);\n          this.meta.linkUrl = newUrl;\n        }\n    },\n    addBeat(sound) {\n      if (sound.length < 21) {\n        sound.length += 1;\n      }\n    },\n    removeBeat(sound) {\n      if (sound.length > 1) {\n        sound.length -= 1;\n      }\n    },\n    play() {\n      this.meta.isPlaying = !this.meta.isPlaying;\n      if (this.meta.isPlaying) {\n        this.sounds.forEach((sound) => {\n          sound.current = 1;\n        });\n\n        this.meta.futureTickTime = this.audioContext.currentTime;\n        this.scheduler();\n      } else {\n        window.clearTimeout(window.t);\n        this.saveData();\n        this.link();\n      }\n    },\n    lengthInfo() {\n      var lengths = [];\n      this.sounds.forEach((sound) => {\n        lengths.push(sound.length);\n      });\n      return {\n        longest: Math.max.apply(Math, lengths),\n        lengths: lengths\n      }\n    },\n    slugify(text) {\n      return text.toLowerCase()\n      .replace(/\\s+/g, '-')\n      .replace(/[^\\w\\-]+/g, '')\n      .replace(/\\-\\-+/g, '-')\n      .replace(/^-+/, '')\n      .replace(/-+$/, '');\n    },\n    pulse(elem) {\n      elem.setAttribute('class', 'pulse-anim');\n      window.setTimeout(() => {\n        elem.setAttribute('class', '');\n      }, 100);\n    },\n    saveData() {\n      var data = {};\n      data.sounds = this.sounds;\n      data.meta = this.meta;\n      this.$localStorage.set('drum-machine-state', JSON.stringify(data));\n    }\n  },\n  watch: {\n    sounds: {\n      handler() {\n        var lengthInfo = this.lengthInfo();\n        this.meta.beatsLength = 100 / lengthInfo.longest + '%';\n        var uniqueLengths = lengthInfo.lengths.filter((v, i, a) => a.indexOf(v) === i);\n        this.meta.compoundLength = uniqueLengths.reduce((a, b) => a * b);\n      },\n      deep: true\n    }\n  },\n  mounted() {\n    this.audioContext = this.audioContextCheck();\n    this.setState();\n    // Test for detune method support\n    var testBufferResource = this.audioContext.createBufferSource();\n    if (!testBufferResource.detune) {\n      this.meta.detuneSupport = false;\n    }\n    this.loadSounds();\n    window.requestAnimFrame = (() => {\n      return  window.requestAnimationFrame ||\n              window.webkitRequestAnimationFrame ||\n              window.mozRequestAnimationFrame ||\n              window.oRequestAnimationFrame ||\n              window.msRequestAnimationFrame ||\n              function (callback) {\n                window.setTimeout(callback, 1000 / 60);\n              };\n    })();\n  }\n}\n</script>\n"
  },
  {
    "path": "src/js/components/MuteIcon.vue",
    "content": "<template>\n  <svg viewBox=\"0 0 190 190\">\n    <g transform=\"translate(-84.978 -137.34)\">\n      <path style=\"stroke-linejoin:round;stroke:#222;stroke-linecap:round;stroke-width:3.235;fill:#222\" d=\"m197.82 167.66-34.938 38.82h-55.641v51.76h55.643l34.936 38.818v-129.4z\"/>\n      <path style=\"stroke-width:5;fill:#222\" d=\"m227.89 276.07c-1.5803-2.3842-2.9104-4.4327-2.9559-4.5521-.0455-.11941 1.1702-1.4238 2.7015-2.8987 7.6949-7.4115 12.416-15.947 14.675-26.532.66389-3.111.71101-3.7561.71101-9.7313 0-5.9915-.0459-6.6159-.72061-9.795-2.2204-10.463-6.9902-19.076-14.648-26.452-1.5217-1.4657-2.7668-2.7278-2.7668-2.8047 0-.11176 5.586-8.6047 5.9066-8.9804.33137-.38827 6.5908 5.5562 9.4585 8.9826 7.7102 9.2122 12.748 21.402 13.871 33.564 1.6809 18.2-5.0964 36.44-18.303 49.259-2.4897 2.4167-4.6395 4.2922-4.9079 4.2818-.0819-.003-1.4418-1.9565-3.0221-4.3407zm-12.564-18.748-3.047-4.5725 1.2877-1.512c2.2235-2.611 2.9324-3.6198 4.1444-5.8981 4.3759-8.2258 4.3759-17.742 0-25.968-1.212-2.2783-1.9299-3.2963-4.1501-5.8848l-1.2855-1.4987 3.084-4.5609 3.0839-4.5609.738.52551c1.107.78829 3.9832 4.0493 5.7561 6.5263 1.705 2.3822 4.2918 7.4509 5.1856 10.161 2.5464 7.7208 2.5464 16.832 0 24.553-.89375 2.7099-3.4806 7.7786-5.1856 10.161-1.7947 2.5075-4.6527 5.7406-5.7912 6.5513l-.77313.55053z\" class=\"waves\"/>\n    </g>\n  </svg>\n</template>\n"
  },
  {
    "path": "src/js/components/PlayIcon.vue",
    "content": "<template>\n  <svg viewBox=\"0 0 100 100\">\n   <g transform=\"translate(0 -952.36)\">\n    <g class=\"pause-icon\" transform=\"translate(1.0714 .71367)\">\n     <rect style=\"fill:#ffffff\" ry=\"2.7614\" height=\"45\" width=\"15\" y=\"979.15\" x=\"53.929\"/>\n     <rect style=\"fill:#ffffff\" ry=\"2.7614\" height=\"45\" width=\"15\" y=\"979.15\" x=\"28.929\"/>\n    </g>\n    <path class=\"play-icon\" style=\"stroke-linejoin:round;fill-rule:evenodd;stroke:#ffffff;stroke-width:5;fill:#ffffff\" d=\"m38.5 982.36v40l35-20z\"/>\n   </g>\n  </svg>\n</template>\n"
  },
  {
    "path": "src/js/components/RemoveIcon.vue",
    "content": "<template>\n  <svg id=\"minus\" viewBox=\"0 0 190 190\">\n    <g transform=\"translate(-84.978 -137.34)\">\n      <rect style=\"fill:#222\" transform=\"rotate(90)\" ry=\"3.375\" height=\"138.56\" width=\"29.632\" y=\"-249.28\" x=\"217.55\"/>\n    </g>\n  </svg>\n</template>\n"
  },
  {
    "path": "src/js/components/SettingsIcon.vue",
    "content": "<template>\n  <svg id=\"cog\" viewBox=\"0 0 190 190\">\n    <g transform=\"translate(-84.978 -137.34)\">\n      <path style=\"stroke-linejoin:round;stroke:#222;stroke-linecap:round;stroke-width:3;fill:#222\" d=\"m166.54 154.03a79.552 79.552 0 0 0 -24.398 8.3666l-.15877 19.304a64.205 64.205 0 0 0 -7.8137 6.906l-19.049-2.1106a79.552 79.552 0 0 0 -11.322 23.204l13.366 13.588a64.205 64.205 0 0 0 -.69232 10.691l-14.797 11.846a79.552 79.552 0 0 0 8.3742 24.396l18.522.15299a64.205 64.205 0 0 0 7.5745 8.7818l-2.0035 18.087a79.552 79.552 0 0 0 23.201 11.325l12.596-12.39a64.205 64.205 0 0 0 12.564 .80967l10.971 13.703a79.552 79.552 0 0 0 24.394 -8.3839l.14162-17.316a64.205 64.205 0 0 0 9.7809 -8.6643l17.099 1.8943a79.552 79.552 0 0 0 11.326 -23.198l-12.178-12.38a64.205 64.205 0 0 0 .62482 -12.807l13.665-10.939a79.552 79.552 0 0 0 -8.3649 -24.401l-18.1-.14936a64.205 64.205 0 0 0 -7.9977 -8.8125l2.0008-18.057a79.552 79.552 0 0 0 -23.207 -11.321l-13.371 13.153a64.205 64.205 0 0 0 -10.93 -.51173l-11.82-14.765zm9.555 37.603a40.912 40.912 0 0 1 10.985 .42848 40.912 40.912 0 0 1 33.231 47.318l-.0366.20788a40.912 40.912 0 0 1 -47.446 33.048 40.912 40.912 0 0 1 -33.109 -47.403 40.912 40.912 0 0 1 36.376 -33.599z\"/>\n    </g>\n  </svg>\n</template>\n"
  },
  {
    "path": "src/js/sw-cache-polyfill.js",
    "content": "if (!Cache.prototype.add) {\n  Cache.prototype.add = function add(request) {\n    return this.addAll([request]);\n  };\n}\n\nif (!Cache.prototype.addAll) {\n  Cache.prototype.addAll = function addAll(requests) {\n    var cache = this;\n\n    function NetworkError(message) {\n      this.name = 'NetworkError';\n      this.code = 19;\n      this.message = message;\n    }\n    NetworkError.prototype = Object.create(Error.prototype);\n\n    return Promise.resolve().then(function() {\n      if (arguments.length < 1) throw new TypeError();\n\n      var sequence = [];\n\n      requests = requests.map(function(request) {\n        if (request instanceof Request) {\n          return request;\n        }\n        else {\n          return String(request);\n        }\n      });\n\n      return Promise.all(\n        requests.map(function(request) {\n          if (typeof request === 'string') {\n            request = new Request(request);\n          }\n\n          var scheme = new URL(request.url).protocol;\n\n          if (scheme !== 'http:' && scheme !== 'https:') {\n            throw new NetworkError(\"Invalid scheme\");\n          }\n\n          return fetch(request.clone());\n        })\n      );\n    }).then(function(responses) {\n      return Promise.all(\n        responses.map(function(response, i) {\n          return cache.put(requests[i], response);\n        })\n      );\n    }).then(function() {\n      return undefined;\n    });\n  };\n}\n\nif (!CacheStorage.prototype.match) {\n  CacheStorage.prototype.match = function match(request, opts) {\n    var caches = this;\n\n    return this.keys().then(function(cacheNames) {\n      var match;\n\n      return cacheNames.reduce(function(chain, cacheName) {\n        return chain.then(function() {\n          return match || caches.open(cacheName).then(function(cache) {\n            return cache.match(request, opts);\n          }).then(function(response) {\n            match = response;\n            return match;\n          });\n        });\n      }, Promise.resolve());\n    });\n  };\n}\n"
  },
  {
    "path": "src/js/sw.js",
    "content": "importScripts('sw-cache-polyfill.js');\n\nself.addEventListener('install', function(event) {\n  event.waitUntil(\n    caches.open('beadz').then(function(cache) {\n      return cache.addAll([\n        './',\n        './css/style.css',\n        './js/app.js',\n        './sounds/crash.mp3',\n        './sounds/hat.mp3',\n        './sounds/kick.mp3',\n        './sounds/ride.mp3',\n        './sounds/snare_light.mp3',\n        './sounds/snare.mp3',\n        './images/grip.svg',\n        './images/line.svg',\n        './images/tick.svg',\n        'https://fonts.googleapis.com/css?family=Fredoka+One'\n      ]);\n    })\n  );\n});\n\nself.addEventListener('fetch', function(event) {\n  event.respondWith(\n    caches.match(event.request).then(function(response) {\n      return response || fetch(event.request);\n    })\n  );\n});\n"
  },
  {
    "path": "src/manifest.json",
    "content": "{\n  \"name\": \"Beadz: A quantum polymetric drum machine\",\n  \"short_name\": \"Beadz\",\n  \"icons\": [{\n    \"src\": \"images/icon-128x128.png\",\n      \"sizes\": \"128x128\",\n      \"type\": \"image/png\"\n    }, {\n      \"src\": \"images/icon-144x144.png\",\n      \"sizes\": \"144x144\",\n      \"type\": \"image/png\"\n    }, {\n      \"src\": \"images/icon-152x152.png\",\n      \"sizes\": \"152x152\",\n      \"type\": \"image/png\"\n    }, {\n      \"src\": \"images/icon-192x192.png\",\n      \"sizes\": \"192x192\",\n      \"type\": \"image/png\"\n    }, {\n      \"src\": \"images/icon-256x256.png\",\n      \"sizes\": \"256x256\",\n      \"type\": \"image/png\"\n    }],\n  \"start_url\": \"index.html\",\n  \"display\": \"standalone\",\n  \"background_color\": \"#222\",\n  \"theme_color\": \"#fff\"\n}\n"
  }
]