Full Code of Heydon/beadz-drum-machine for AI

master f66a56688484 cached
25 files
202.7 KB
64.8k tokens
294 symbols
1 requests
Download .txt
Showing preview only (212K chars total). Download the full file or copy to clipboard to get everything.
Repository: Heydon/beadz-drum-machine
Branch: master
Commit: f66a56688484
Files: 25
Total size: 202.7 KB

Directory structure:
gitextract_l_b0nu3e/

├── .gitignore
├── LICENSE
├── README.md
├── cachebust-sw.js
├── docs/
│   ├── css/
│   │   └── style.css
│   ├── index.html
│   ├── js/
│   │   └── app.js
│   ├── manifest.json
│   ├── sw-cache-polyfill.js
│   └── sw.js
├── gulpfile.js
├── package.json
├── server.js
└── src/
    ├── css/
    │   └── style.css
    ├── index.html
    ├── js/
    │   ├── app.js
    │   ├── components/
    │   │   ├── AddIcon.vue
    │   │   ├── Machine.vue
    │   │   ├── MuteIcon.vue
    │   │   ├── PlayIcon.vue
    │   │   ├── RemoveIcon.vue
    │   │   └── SettingsIcon.vue
    │   ├── sw-cache-polyfill.js
    │   └── sw.js
    └── manifest.json

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    {one line to give the program's name and a brief idea of what it does.}
    Copyright (C) {year}  {name of author}

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    {project}  Copyright (C) {year}  {fullname}
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.


================================================
FILE: README.md
================================================
# Beadz Drum Machine

**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/).

## Polymeters

**Beadz** lets you create dynamic polymetric drum patterns by adding and removing quarter-beats from individual tracks while the composition is playing.

![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)

The greater the disparity between the (quarter-beat) length of individual tracks, the more complex and longer the composition.

## Quantum playback

**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.

![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)

## Overrides

Some 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.

![Choosing which sounds override other sounds is available inside the track settings. Each other sound is represented by a checkbox.](images/overrides.png)

For 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'.

## Fluctuation

Real 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.

![The fluctuation control is available under the track's settings and is provided as a range input.](images/fluctuation.png)

**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.

(**Note:** Safari does not support this feature because Safari is a thrice-used prophylactic.)

## Accessibility

**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.


================================================
FILE: cachebust-sw.js
================================================
var random = require('randomstring');
var fs = require('fs');

var randomString = random.generate(10);

fs.appendFile('docs/sw.js', '// ' + randomString, (err) => {
  if (err) throw err;
  console.log('New service worker created!');
});


================================================
FILE: docs/css/style.css
================================================
html {
  font-size: calc(1em + 0.4vw);
  color: #222;
  font-family: Fredoka One, sans-serif;
  line-height: 1.5;
}

*, ::before, ::after {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  box-sizing: border-box;
  font-weight: normal;
}

body {
  background: #fefefe;
  overflow-x: hidden;
  padding-bottom: 1.5rem;
}

* {
  margin: 0;
  padding: 0;
}

* + * {
  margin-top: 1.5rem;
}

body, br, dt, dd, th, td, option, [hidden] + * {
  margin-top: 0;
}

li + li {
  margin-top: 0.5rem;
}

label + * {
  margin-top: 0;
}

.drum-machine * {
  margin-top: 0;
}

/* basic buttons */

button {
  background: #222;
  border: 0;
  border-radius: 50%;
}

button:disabled {
  opacity: 0.3;
}

a:focus,
button:focus,
.track-beats [type="checkbox"]:focus + label,
.checkbox-group [type="checkbox"]:focus + label::before,
[type="text"]:focus,
[type="number"]:focus {
  box-shadow: 0 0 0 0.25rem #f0f;
  outline: none;
}

button svg {
  width: 100%;
  height: 100%;
}

.track-main button {
  background: transparent;
}

[aria-label="mute"][aria-pressed="true"] .waves {
  display: none;
}

/* main layout */

.central-col {
  margin: 2.25rem auto;
  max-width: 45rem;
  padding: 0 1.5rem;
}

h1 {
  text-align: center;
  font-size: 1.75rem;
  margin-right: 1rem;
}

header {
  background: #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #fff;
  padding: 0.5rem 1rem;
}

header p {
  margin-top: 0;
}

/* range inputs */

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type=range]:focus {
  background: transparent;
}

input[type=range]::-ms-track {
  width: 100%;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-shadow: 0 0 0 0.2rem #fefefe;
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 0.25rem;
  background: #222 url(../images/grip.svg) no-repeat center;
  background-size: 0.66rem auto;
  cursor: pointer;
  margin-top: -0.75rem;
}

input[type=range]:focus::-webkit-slider-thumb {
  outline: none;
  box-shadow: 0 0 0 0.25rem #f0f;
}

input[type=range]::-moz-range-thumb {
  border: none;
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 0.25rem;
  background: #222 url(../images/grip.svg) no-repeat center;
  background-size: 0.66rem auto;
  cursor: pointer;
}

input[type=range]:focus::-moz-range-thumb {
  outline: none;
  box-shadow: 0 0 0 0.25rem #f0f;
}

input[type=range]::-ms-thumb {
  border: none;
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 0.25rem;
  background: #222 url(../images/grip.svg) no-repeat center;
  background-size: 0.66rem auto;
  cursor: pointer;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]:focus::-ms-thumb {
  outline: none;
  box-shadow: 0 0 0 0.25rem #f0f;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.33rem;
  cursor: pointer;
  background-color: #222;
  border-radius: 0.25rem;
  border: none;
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 0.33rem;
  cursor: pointer;
  background: #222;
  border-radius: 0.25rem;
  border: none;
}

input[type=range]:focus::-moz-range-track {
  outline: none;
}

input[type=range]::-ms-track {
  width: 100%;
  height: 0.33rem;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 0;
  color: transparent;
}

input[type=range]::-ms-fill-lower {
  background: #222;
  border: none;
  border-radius: 0;
}

input[type=range]::-ms-fill-upper {
  background: #222;
  border: none;
  border-radius: 0;
}

input[type=range]:focus::-ms-fill-upper {
  background: #222;
}

/* forms */

fieldset {
 border: 0;
}

[type="number"] {
  display: inline;
  width: 3rem;
  text-align: center;
  padding: 0.25rem;
  border: 0.25rem solid;
  border-radius: 0.25rem;
  line-height: 1;
}

/* utilities */

.vh, legend:not(.show), [type="checkbox"] {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

[hidden] {
  display: none;
}

.between {
  padding: 0 0.5rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
}

.checkbox-group label {
  margin-right: 1rem;
}

.checkbox-group label::before {
  content: '';
  display: inline-block;
  width: 1.33rem;
  height: 1.33rem;
  margin-right: 0.25rem;
  border: 0.25rem solid #222;
  border-radius: 0.25rem;
  vertical-align: -0.33rem;
  background-color: #fff;
}

.checkbox-group [type="checkbox"]:checked + label::before {
  background-image: url(../images/tick.svg);
  background-position: center;
  background-size: 100% auto;
}

/* main track */

.track {
  margin-top: 1.75rem;
}

.track-main, .track-beats {
  display: flex;
}

.track-main {
  justify-content: space-between;
}

.track-beats {
  width: calc(100% - 10.5rem);
  margin: 0 0.25rem 0 0.75rem;
  position: relative;
}

.track-label {
  position: absolute;
  left: 1rem;
  top: -1.66rem;
}

.track-label::before {
  content: '';
  display: inline-block;
  width: 0.25rem;
  height: 1.25rem;
  position: absolute;
  top: 1.33rem;
  left: 0.5rem;
  background: #222;
}

.track-main button {
  width: 2rem;
  height: 2rem;
  border: 0;
}

.track-beats label {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: #fff;
  border: 0.25rem solid #222;
  border-radius: 50%;
  position: relative;
  left: -0.5rem;
}

.track-beats :checked + label {
  background: #222;
  box-shadow: 0 0 0 0.2rem #222;
}

.track-addRemove, .track-muteSettings, .track-beats > div {
  display: flex;
  align-items: center;
}

.track-beats > div {
  background-image: url(../images/line.svg);
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 0.25rem;
}

.track-beats > div:last-child {
  position: relative;
}

.track-beats > div:last-child::after {
  content: '';
  display: inline-block;
  width: 0.25rem;
  height: 1rem;
  background: #222;
  border-radius: 0.125rem;
  position: absolute;
  right: 0;
  top: 0.5rem;
  bottom: 0.5rem;
}

/* track settings */

.track-settings {
  padding: 1.25em 0;
  border-bottom: 2px solid;
  overflow: hidden;
}

.setting {
  display: flex;
  align-items: center;
}

.setting + .setting {
  margin-top: 1rem;
}

.setting > * {
  flex: 1 0 auto;
}

.setting > :last-child {
  flex: 3;
  display: flex;
  align-items: center;
}

.setting > :first-child {
  flex: 1;
  line-height: 1.125;
  margin-right: 0.5rem;
}

.setting span[id] {
  display: none;
}

/* bpm and play row */

.bpm-and-play {
  display: flex;
  justify-content: space-between;
}

/* bpm */

.bpm {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 60%;
}

.bpm-slider {
  margin-right: 0.5rem;
  width: 50%;
}

.bpm label {
  font-size: 1.25rem;
  text-transform: uppercase;
}


/* play/stop */

.play-stop button {
  width: 3rem;
  height: 3rem;
}

.play-stop button[aria-pressed="false"] .pause-icon {
  display: none;
}

.play-stop button[aria-pressed="true"] .play-icon {
  display: none;
}

/* reset and link */

.link-section {
  text-align: center;
}

.reset {
  border-radius: 0.25rem;
  color: #fff;
  text-transform: uppercase;
  padding: 0.25rem 5rem;
  font-weight: normal;
  margin: 0.5rem;
  letter-spacing: 1px;
}

/* link input */

[type="text"] {
  padding: 0.25rem;
  width: 80%;
  border: 1px solid;
  font-family: monospace;
}

/* animations */

@keyframes pulse {
  0% {
    transform: none;
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

label[id] {
  will-change: transform;
}

.pulse-anim {
  animation: pulse 0.1s 1 ease-in;
}

.slide-enter-active, .slide-leave-active {
  transition: opacity 1s;
}

.slide-leave-active {
  transition: opacity 0.25s;
}

.slide-enter, .slide-leave-active {
  opacity: 0;
}

.open-settings {
  transition: transform 0.5s ease-out;
}

.open-settings[aria-expanded="true"] {
  transform: rotate(45deg);
}

/* stats and footer */

.stats {
  text-align: center;
  margin-top: 2.25rem;
}

footer {
  text-align: center;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 45rem;
}

footer::before {
  content: '——————';
  letter-spacing: -0.25rem;
}

/* smaller viewports */

@media (max-width: 750px) {

  .central-col {
    margin: 1em;
    padding: 0;
  }

}

/* portrait warning */

.portrait-warning {
  display: none;
}

.portrait-warning svg {
  margin: 0.5rem 0;
}

@media (orientation: portrait) {

  .portrait-warning {
    display: flex;
    background: #ddd;
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .portrait-warning svg {
    width: 30vw;
    height: auto;
  }

}

/* offline ready confirmation */

@keyframes fade {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#offline-confirm p {
  background: #222;
  color: #fff;
  padding: 0.5rem 1rem;;
  font-size: 1.25rem;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  animation: fade 6s ease-in;
}


================================================
FILE: docs/index.html
================================================
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="apple-mobile-web-app-title" content="Beadz">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <link rel="apple-touch-icon" href="images/icon-256x256.png">
    <link href="https://fonts.googleapis.com/css?family=Fredoka+One" rel="stylesheet" media="none" onload="if(media!='all')media='all'">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <title>Beadz: A Quantum, Polymetric Drum Machine</title>
    <link rel="manifest" href="manifest.json">
  </head>
  <body>
    <div id="app">
      <header role="banner">
        <h1>Beadz</h1>
        <p>A quantum polymetric drum machine</p>
      </header>
      <div class="central-col">
        <drum-machine></drum-machine>
        <footer role="contentinfo">
          <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>
        </footer>
      </div>
      <div id="offline-confirm" role="alert"></div>
      <div class="portrait-warning">
        <div>
          <h1>Beadz</h1>
          <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>
          <p>Rotate your screen into a landscape orientation.</p>
        </div>
      </div>
    </div>
    <script src="js/app.js"></script>
    <script>
      if ('serviceWorker' in navigator) {
        navigator.serviceWorker.register('sw.js', {
          scope: './'
        }).then(function(registration) {
          var newWorker = registration.installing;

          // statechange fires every time the ServiceWorker.state changes
          newWorker.onstatechange = function() {
            // show the message on activation
            if (newWorker.state == 'activated' && !navigator.serviceWorker.controller) {
              var liveRegion = document.getElementById('offline-confirm');
              liveRegion.innerHTML = '<p>Ready to use offline!</p>';
              window.setTimeout(function() {
                liveRegion.innerHTML = '';
              }, 6000);
            }
          };
        }).catch(function(err) {
          // registration failed :(
        });
      }
    </script>
  </body>
</html>


================================================
FILE: docs/js/app.js
================================================
!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)),
v=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+")")),
Vn(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(){
var 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}})}]);

================================================
FILE: docs/manifest.json
================================================
{
  "name": "Beadz: A quantum polymetric drum machine",
  "short_name": "Beadz",
  "icons": [{
    "src": "images/icon-128x128.png",
      "sizes": "128x128",
      "type": "image/png"
    }, {
      "src": "images/icon-144x144.png",
      "sizes": "144x144",
      "type": "image/png"
    }, {
      "src": "images/icon-152x152.png",
      "sizes": "152x152",
      "type": "image/png"
    }, {
      "src": "images/icon-192x192.png",
      "sizes": "192x192",
      "type": "image/png"
    }, {
      "src": "images/icon-256x256.png",
      "sizes": "256x256",
      "type": "image/png"
    }],
  "start_url": "index.html",
  "display": "standalone",
  "background_color": "#222",
  "theme_color": "#fff"
}


================================================
FILE: docs/sw-cache-polyfill.js
================================================
if (!Cache.prototype.add) {
  Cache.prototype.add = function add(request) {
    return this.addAll([request]);
  };
}

if (!Cache.prototype.addAll) {
  Cache.prototype.addAll = function addAll(requests) {
    var cache = this;

    function NetworkError(message) {
      this.name = 'NetworkError';
      this.code = 19;
      this.message = message;
    }
    NetworkError.prototype = Object.create(Error.prototype);

    return Promise.resolve().then(function() {
      if (arguments.length < 1) throw new TypeError();

      var sequence = [];

      requests = requests.map(function(request) {
        if (request instanceof Request) {
          return request;
        }
        else {
          return String(request);
        }
      });

      return Promise.all(
        requests.map(function(request) {
          if (typeof request === 'string') {
            request = new Request(request);
          }

          var scheme = new URL(request.url).protocol;

          if (scheme !== 'http:' && scheme !== 'https:') {
            throw new NetworkError("Invalid scheme");
          }

          return fetch(request.clone());
        })
      );
    }).then(function(responses) {
      return Promise.all(
        responses.map(function(response, i) {
          return cache.put(requests[i], response);
        })
      );
    }).then(function() {
      return undefined;
    });
  };
}

if (!CacheStorage.prototype.match) {
  CacheStorage.prototype.match = function match(request, opts) {
    var caches = this;

    return this.keys().then(function(cacheNames) {
      var match;

      return cacheNames.reduce(function(chain, cacheName) {
        return chain.then(function() {
          return match || caches.open(cacheName).then(function(cache) {
            return cache.match(request, opts);
          }).then(function(response) {
            match = response;
            return match;
          });
        });
      }, Promise.resolve());
    });
  };
}


================================================
FILE: docs/sw.js
================================================
importScripts('sw-cache-polyfill.js');

self.addEventListener('install', function(event) {
  event.waitUntil(
    caches.open('beadz').then(function(cache) {
      return cache.addAll([
        './',
        './css/style.css',
        './js/app.js',
        './sounds/crash.mp3',
        './sounds/hat.mp3',
        './sounds/kick.mp3',
        './sounds/ride.mp3',
        './sounds/snare_light.mp3',
        './sounds/snare.mp3',
        './images/grip.svg',
        './images/line.svg',
        './images/tick.svg',
        'https://fonts.googleapis.com/css?family=Fredoka+One'
      ]);
    })
  );
});

self.addEventListener('fetch', function(event) {
  event.respondWith(
    caches.match(event.request).then(function(response) {
      return response || fetch(event.request);
    })
  );
});
// 6zifrM6hrv

================================================
FILE: gulpfile.js
================================================
var elixir = require('laravel-elixir');

require('laravel-elixir-vue-2');

elixir(function(mix) {
    mix.webpack(
      './src/js/app.js',
      'docs/js/app.js'
    ).copy(
      'src/css/style.css',
      'docs/css/style.css'
    ).copy(
      'src/js/sw.js',
      'docs/sw.js'
    ).copy(
      'src/manifest.json',
      'docs/manifest.json'
    ).copy(
      'src/js/sw-cache-polyfill.js',
      'docs/sw-cache-polyfill.js'
    ).copy(
      'src/images',
      'docs/images'
    ).copy(
      'src/sounds',
      'docs/sounds'
    ).copy(
      'src/index.html',
      'docs/index.html'
    )
});


================================================
FILE: package.json
================================================
{
  "name": "vue-elixir-starter",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "watch": {
    "dev": "src/**/*.*"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "dev": "gulp && node cachebust-sw.js && node server.js",
    "production": "gulp --production && node cachebust-sw.js && node server.js",
    "watch": "npm-watch"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/Heydon/vue-elixir-starter.git"
  },
  "author": "Heydon Pickering <heydon@heydonworks.com> (http://www.heydonworks.com)",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/Heydon/vue-elixir-starter/issues"
  },
  "homepage": "https://github.com/Heydon/vue-elixir-starter#readme",
  "dependencies": {
    "axios": "^0.15.3",
    "express": "^4.14.0",
    "gulp": "^3.9.1",
    "laravel-elixir": "^6.0.0-15",
    "laravel-elixir-vue-2": "^0.3.0",
    "laravel-elixir-webpack-official": "^1.0.10",
    "npm-watch": "^0.1.7",
    "randomstring": "^1.1.5",
    "vue": "^2.1.8",
    "vue-axios": "^1.2.2",
    "vue-localstorage": "^0.1.3"
  }
}


================================================
FILE: server.js
================================================
const express = require('express');
const app = express();

app.use(express.static('docs'));

app.listen(3000, function() {
  app.get('/', (req, res) => {
    res.sendFile(__dirname + '/public/index.html');
  });
});


================================================
FILE: src/css/style.css
================================================
html {
  font-size: calc(1em + 0.4vw);
  color: #222;
  font-family: Fredoka One, sans-serif;
  line-height: 1.5;
}

*, ::before, ::after {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  box-sizing: border-box;
  font-weight: normal;
}

body {
  background: #fefefe;
  overflow-x: hidden;
  padding-bottom: 1.5rem;
}

* {
  margin: 0;
  padding: 0;
}

* + * {
  margin-top: 1.5rem;
}

body, br, dt, dd, th, td, option, [hidden] + * {
  margin-top: 0;
}

li + li {
  margin-top: 0.5rem;
}

label + * {
  margin-top: 0;
}

.drum-machine * {
  margin-top: 0;
}

/* basic buttons */

button {
  background: #222;
  border: 0;
  border-radius: 50%;
}

button:disabled {
  opacity: 0.3;
}

a:focus,
button:focus,
.track-beats [type="checkbox"]:focus + label,
.checkbox-group [type="checkbox"]:focus + label::before,
[type="text"]:focus,
[type="number"]:focus {
  box-shadow: 0 0 0 0.25rem #f0f;
  outline: none;
}

button svg {
  width: 100%;
  height: 100%;
}

.track-main button {
  background: transparent;
}

[aria-label="mute"][aria-pressed="true"] .waves {
  display: none;
}

/* main layout */

.central-col {
  margin: 2.25rem auto;
  max-width: 45rem;
  padding: 0 1.5rem;
}

h1 {
  text-align: center;
  font-size: 1.75rem;
  margin-right: 1rem;
}

header {
  background: #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #fff;
  padding: 0.5rem 1rem;
}

header p {
  margin-top: 0;
}

/* range inputs */

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type=range]:focus {
  background: transparent;
}

input[type=range]::-ms-track {
  width: 100%;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-shadow: 0 0 0 0.2rem #fefefe;
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 0.25rem;
  background: #222 url(../images/grip.svg) no-repeat center;
  background-size: 0.66rem auto;
  cursor: pointer;
  margin-top: -0.75rem;
}

input[type=range]:focus::-webkit-slider-thumb {
  outline: none;
  box-shadow: 0 0 0 0.25rem #f0f;
}

input[type=range]::-moz-range-thumb {
  border: none;
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 0.25rem;
  background: #222 url(../images/grip.svg) no-repeat center;
  background-size: 0.66rem auto;
  cursor: pointer;
}

input[type=range]:focus::-moz-range-thumb {
  outline: none;
  box-shadow: 0 0 0 0.25rem #f0f;
}

input[type=range]::-ms-thumb {
  border: none;
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 0.25rem;
  background: #222 url(../images/grip.svg) no-repeat center;
  background-size: 0.66rem auto;
  cursor: pointer;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]:focus::-ms-thumb {
  outline: none;
  box-shadow: 0 0 0 0.25rem #f0f;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.33rem;
  cursor: pointer;
  background-color: #222;
  border-radius: 0.25rem;
  border: none;
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 0.33rem;
  cursor: pointer;
  background: #222;
  border-radius: 0.25rem;
  border: none;
}

input[type=range]:focus::-moz-range-track {
  outline: none;
}

input[type=range]::-ms-track {
  width: 100%;
  height: 0.33rem;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 0;
  color: transparent;
}

input[type=range]::-ms-fill-lower {
  background: #222;
  border: none;
  border-radius: 0;
}

input[type=range]::-ms-fill-upper {
  background: #222;
  border: none;
  border-radius: 0;
}

input[type=range]:focus::-ms-fill-upper {
  background: #222;
}

/* forms */

fieldset {
 border: 0;
}

[type="number"] {
  display: inline;
  width: 3rem;
  text-align: center;
  padding: 0.25rem;
  border: 0.25rem solid;
  border-radius: 0.25rem;
  line-height: 1;
}

/* utilities */

.vh, legend:not(.show), [type="checkbox"] {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

[hidden] {
  display: none;
}

.between {
  padding: 0 0.5rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
}

.checkbox-group label {
  margin-right: 1rem;
}

.checkbox-group label::before {
  content: '';
  display: inline-block;
  width: 1.33rem;
  height: 1.33rem;
  margin-right: 0.25rem;
  border: 0.25rem solid #222;
  border-radius: 0.25rem;
  vertical-align: -0.33rem;
  background-color: #fff;
}

.checkbox-group [type="checkbox"]:checked + label::before {
  background-image: url(../images/tick.svg);
  background-position: center;
  background-size: 100% auto;
}

/* main track */

.track {
  margin-top: 1.75rem;
}

.track-main, .track-beats {
  display: flex;
}

.track-main {
  justify-content: space-between;
}

.track-beats {
  width: calc(100% - 10.5rem);
  margin: 0 0.25rem 0 0.75rem;
  position: relative;
}

.track-label {
  position: absolute;
  left: 1rem;
  top: -1.66rem;
}

.track-label::before {
  content: '';
  display: inline-block;
  width: 0.25rem;
  height: 1.25rem;
  position: absolute;
  top: 1.33rem;
  left: 0.5rem;
  background: #222;
}

.track-main button {
  width: 2rem;
  height: 2rem;
  border: 0;
}

.track-beats label {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: #fff;
  border: 0.25rem solid #222;
  border-radius: 50%;
  position: relative;
  left: -0.5rem;
}

.track-beats :checked + label {
  background: #222;
  box-shadow: 0 0 0 0.2rem #222;
}

.track-addRemove, .track-muteSettings, .track-beats > div {
  display: flex;
  align-items: center;
}

.track-beats > div {
  background-image: url(../images/line.svg);
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 0.25rem;
}

.track-beats > div:last-child {
  position: relative;
}

.track-beats > div:last-child::after {
  content: '';
  display: inline-block;
  width: 0.25rem;
  height: 1rem;
  background: #222;
  border-radius: 0.125rem;
  position: absolute;
  right: 0;
  top: 0.5rem;
  bottom: 0.5rem;
}

/* track settings */

.track-settings {
  padding: 1.25em 0;
  border-bottom: 2px solid;
  overflow: hidden;
}

.setting {
  display: flex;
  align-items: center;
}

.setting + .setting {
  margin-top: 1rem;
}

.setting > * {
  flex: 1 0 auto;
}

.setting > :last-child {
  flex: 3;
  display: flex;
  align-items: center;
}

.setting > :first-child {
  flex: 1;
  line-height: 1.125;
  margin-right: 0.5rem;
}

.setting span[id] {
  display: none;
}

/* bpm and play row */

.bpm-and-play {
  display: flex;
  justify-content: space-between;
}

/* bpm */

.bpm {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 60%;
}

.bpm-slider {
  margin-right: 0.5rem;
  width: 50%;
}

.bpm label {
  font-size: 1.25rem;
  text-transform: uppercase;
}


/* play/stop */

.play-stop button {
  width: 3rem;
  height: 3rem;
}

.play-stop button[aria-pressed="false"] .pause-icon {
  display: none;
}

.play-stop button[aria-pressed="true"] .play-icon {
  display: none;
}

/* reset and link */

.link-section {
  text-align: center;
}

.reset {
  border-radius: 0.25rem;
  color: #fff;
  text-transform: uppercase;
  padding: 0.25rem 5rem;
  font-weight: normal;
  margin: 0.5rem;
  letter-spacing: 1px;
}

/* link input */

[type="text"] {
  padding: 0.25rem;
  width: 80%;
  border: 1px solid;
  font-family: monospace;
}

/* animations */

@keyframes pulse {
  0% {
    transform: none;
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

label[id] {
  will-change: transform;
}

.pulse-anim {
  animation: pulse 0.1s 1 ease-in;
}

.slide-enter-active, .slide-leave-active {
  transition: opacity 1s;
}

.slide-leave-active {
  transition: opacity 0.25s;
}

.slide-enter, .slide-leave-active {
  opacity: 0;
}

.open-settings {
  transition: transform 0.5s ease-out;
}

.open-settings[aria-expanded="true"] {
  transform: rotate(45deg);
}

/* stats and footer */

.stats {
  text-align: center;
  margin-top: 2.25rem;
}

footer {
  text-align: center;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 45rem;
}

footer::before {
  content: '——————';
  letter-spacing: -0.25rem;
}

/* smaller viewports */

@media (max-width: 750px) {

  .central-col {
    margin: 1em;
    padding: 0;
  }

}

/* portrait warning */

.portrait-warning {
  display: none;
}

.portrait-warning svg {
  margin: 0.5rem 0;
}

@media (orientation: portrait) {

  .portrait-warning {
    display: flex;
    background: #ddd;
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .portrait-warning svg {
    width: 30vw;
    height: auto;
  }

}

/* offline ready confirmation */

@keyframes fade {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#offline-confirm p {
  background: #222;
  color: #fff;
  padding: 0.5rem 1rem;;
  font-size: 1.25rem;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  animation: fade 6s ease-in;
}


================================================
FILE: src/index.html
================================================
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="apple-mobile-web-app-title" content="Beadz">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <link rel="apple-touch-icon" href="images/icon-256x256.png">
    <link href="https://fonts.googleapis.com/css?family=Fredoka+One" rel="stylesheet" media="none" onload="if(media!='all')media='all'">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <title>Beadz: A Quantum, Polymetric Drum Machine</title>
    <link rel="manifest" href="manifest.json">
  </head>
  <body>
    <div id="app">
      <header role="banner">
        <h1>Beadz</h1>
        <p>A quantum polymetric drum machine</p>
      </header>
      <div class="central-col">
        <drum-machine></drum-machine>
        <footer role="contentinfo">
          <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>
        </footer>
      </div>
      <div id="offline-confirm" role="alert"></div>
      <div class="portrait-warning">
        <div>
          <h1>Beadz</h1>
          <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>
          <p>Rotate your screen into a landscape orientation.</p>
        </div>
      </div>
    </div>
    <script src="js/app.js"></script>
    <script>
      if ('serviceWorker' in navigator) {
        navigator.serviceWorker.register('sw.js', {
          scope: './'
        }).then(function(registration) {
          var newWorker = registration.installing;

          // statechange fires every time the ServiceWorker.state changes
          newWorker.onstatechange = function() {
            // show the message on activation
            if (newWorker.state == 'activated' && !navigator.serviceWorker.controller) {
              var liveRegion = document.getElementById('offline-confirm');
              liveRegion.innerHTML = '<p>Ready to use offline!</p>';
              window.setTimeout(function() {
                liveRegion.innerHTML = '';
              }, 6000);
            }
          };
        }).catch(function(err) {
          // registration failed :(
        });
      }
    </script>
  </body>
</html>


================================================
FILE: src/js/app.js
================================================
import Vue from 'vue';
import VueLocalStorage from 'vue-localstorage'
import Machine from './components/Machine.vue';

Vue.use(VueLocalStorage);

Vue.filter('slugify', function (text) {
  return text.toLowerCase()
     .replace(/\s+/g, '-')
     .replace(/[^\w\-]+/g, '')
     .replace(/\-\-+/g, '-')
     .replace(/^-+/, '')
     .replace(/-+$/, '');
});

new Vue({
  el: '#app',
  components: {
    'drum-machine': Machine
  }
});


================================================
FILE: src/js/components/AddIcon.vue
================================================
<template>
  <svg id="plus" viewBox="0 0 190 190">
    <g transform="translate(-84.978 -137.34)">
      <rect style="fill:#222" ry="3.375" height="138.56" width="29.632" y="163.08" x="165.18"/>
      <rect style="fill:#222" transform="rotate(90)" ry="3.375" height="138.56" width="29.632" y="-249.28" x="217.55"/>
    </g>
  </svg>
</template>


================================================
FILE: src/js/components/Machine.vue
================================================
<template>
  <main class="drum-machine">
    <form action>
      <h2 class="vh" id="dm-main-heading">Drum Machine Main Controls</h2>
      <div class="bpm-and-play" aria-labelledby="dm-main-heading">
        <div class="bpm">
          <div class="bpm-slider">
            <input type="range" id="bpm" min="0" max="240" v-model="meta.bpm" @blur="link">
          </div>
          <label for="bpm">
            {{meta.bpm}}
            <span aria-hidden="true">bpm</span>
            <span class="vh">beats per minute</span>
          </label>
        </div>
        <div class="play-stop">
          <button :aria-pressed="meta.isPlaying.toString()" @click.prevent="playOrStop" aria-label="play">
            <play-icon></play-icon>
          </button>
        </div>
      </div>
      <div class="tracks" aria-labelledby="dm-tracks-heading">
        <h2 class="vh" id="dm-tracks-heading">Drum Machine Tracks</h2>
        <fieldset role="group" :aria-labelledby="sound.name + '-track-legend' | slugify" v-for="sound in sounds" class="track">
          <legend :id="sound.name + '-track-legend' | slugify">{{sound.name}} track</legend>
          <div class="track-main">
            <div class="track-addRemove">
              <button aria-label="remove beat" @click.prevent="removeBeat(sound)">
                <remove-icon></remove-icon>
              </button>
              <button aria-label="add beat" @click.prevent="addBeat(sound)">
                <add-icon></add-icon>
              </button>
            </div>
            <div class="track-beats" role="group" :aria-labelledby="sound.name + '-track-label' | slugify">
              <span class="track-label" :id="sound.name + '-track-label' | slugify">
                <span class="vh">{{sound.length}} quarter beats for</span>
                {{sound.name}}
              </span>
              <div v-for="n in sound.length" :style="{ width: meta.beatsLength }">
                <input type="checkbox" :id="sound.name + '-beat-' + n | slugify" :value="n" v-model="sound.active">
                <label :for="sound.name + '-beat-' + n | slugify" :id="sound.name + '-beat-' + n + '-label' | slugify"><span class="vh">Quarter Beat {{n}}</span></label>
              </div>
            </div>
            <div class="track-muteSettings">
              <button @click.prevent="sound.muted = !sound.muted" :aria-pressed="sound.muted.toString()" aria-label="mute">
                <mute-icon></mute-icon>
              </button>
              <button class="open-settings" @click.prevent="sound.expanded = !sound.expanded" :aria-expanded="sound.expanded.toString()" aria-label="settings">
                <settings-icon></settings-icon>
              </button>
            </div>
          </div>
          <transition name="slide">
            <fieldset role="group" aria-labelledby="track-settings-label" v-if="sound.expanded" class="track-settings">
              <legend id="track-settings-label">Track settings</legend>
              <div class="setting">
                <label for="vol">Volume</label>
                <div>
                  <input type="range" id="vol" min="0" max="100" v-model="sound.volume" aria-describedby="vol-desc">
                  <span id="vol-desc">From 0 to 100</span>
                </div>
              </div>
              <div class="setting">
                <p aria-hidden="true">Probability</p>
                <div>
                  <label for="prob-chance" class="vh">Chance <span class="vh">(probability numerator)</span></label>
                  <input type="number" id="prob-chance" min="1" v-model="sound.probability.chance">
                  <span aria-hidden="true" class="between">in</span>
                  <label for="prob-in" class="vh">In <span class="vh">(probability denominator)</span></label>
                  <input type="number" id="prob-in" min="1" v-model="sound.probability.in">
                </div>
              </div>
              <div class="setting" v-if="meta.detuneSupport">
                <label for="fluc">Pitch fluctuation</label>
                <div>
                  <input type="range" id="fluc" min="0" max="100" v-model="sound.fluctuationLevel" aria-describedby="fluc-desc">
                  <span id="fluc-desc">From 0 to 100</span>
                </div>
              </div>
              <div class="setting">
                <p aria-hidden="true">Overridden sounds</p>
                <div class="checkbox-group">
                  <div v-for="otherSound in sounds" v-if="otherSound.name !== sound.name">
                    <input type="checkbox" :id="sound.name + '-overrides-' + otherSound.name | slugify" :value="otherSound.name" v-model="sound.overrides">
                    <label :for="sound.name + '-overrides-' + otherSound.name | slugify">
                      <span class="vh">override</span>
                      {{otherSound.name}}
                    </label>
                  </div>
                </div>
              </div>
            </fieldset>
          </transition>
        </fieldset>
        <aside class="stats">
          <h2 class="vh">Drum Machine State Information</h2>
          <p>
            Polymetric pattern length: {{meta.compoundLength / 4}} beats ({{meta.compoundLength}} &#x00bc;-beats)
            <button @click.prevent="reset" class="reset" :disabled="meta.isPlaying">Reset</button>
          </p>
          <div class="link-section">
            <div v-if="meta.linkUrl">
              <label for="linkField">Link to your drum pattern:</label>
              <input id="linkField" :value="meta.linkUrl" type="text" onfocus="this.select()" @focus="link" />
            </div>
          </div>
        </aside>
      </div>
    </form>
  </main>
</template>

<script>
import PlayIcon from './PlayIcon.vue';
import MuteIcon from './MuteIcon.vue';
import AddIcon from './AddIcon.vue';
import RemoveIcon from './RemoveIcon.vue';
import SettingsIcon from './SettingsIcon.vue';


var defaultState = {
  sounds: [
    {
      name: 'kick',
      url: 'sounds/kick.mp3',
      buffer: null,
      length: 8,
      current: 1,
      active: [1],
      probability: {
        chance: 1,
        in: 1
      },
      probable: true,
      fluctuationLevel: 0,
      overrides: [],
      volume: 100,
      muted: false,
      expanded: false
    },
    {
      name: 'snare',
      url: 'sounds/snare.mp3',
      buffer: null,
      length: 8,
      current: 1,
      active: [5],
      probability: {
        chance: 1,
        in: 1
      },
      probable: true,
      fluctuationLevel: 40,
      overrides: ['kick', 'snare light'],
      volume: 100,
      muted: false,
      expanded: false
    },
    {
      name: 'snare light',
      url: 'sounds/snare_light.mp3',
      buffer: null,
      length: 8,
      current: 1,
      active: [],
      probability: {
        chance: 1,
        in: 1
      },
      probable: true,
      fluctuationLevel: 60,
      overrides: ['kick'],
      volume: 100,
      muted: false,
      expanded: false
    },
    {
      name: 'hi hat',
      url: 'sounds/hat.mp3',
      buffer: null,
      length: 8,
      current: 1,
      active: [1, 3, 5, 7],
      probability: {
        chance: 1,
        in: 1
      },
      probable: true,
      fluctuationLevel: 60,
      overrides: [],
      volume: 80,
      muted: false,
      expanded: false
    },
    {
      name: 'ride',
      url: 'sounds/ride.mp3',
      buffer: null,
      length: 8,
      current: 1,
      active: [1, 5],
      probability: {
        chance: 1,
        in: 1
      },
      probable: true,
      fluctuationLevel: 40,
      overrides: ['hi hat'],
      volume: 100,
      muted: true,
      expanded: false
    },
    {
      name: 'crash',
      url: 'sounds/crash.mp3',
      buffer: null,
      length: 8,
      current: 1,
      active: [1],
      probability: {
        chance: 1,
        in: 4
      },
      probable: true,
      fluctuationLevel: 40,
      overrides: ['hi hat', 'ride'],
      volume: 90,
      muted: true,
      expanded: false
    }
  ],
  meta: {
    bpm: 120,
    beatsLength: 8,
    futureTickTime: 0.0,
    isPlaying: false,
    detuneSupport: true,
    linkUrl: null
  }
};

var soundProps = [
  'length',
  'active',
  'probable',
  'probability',
  'overrides',
  'volume',
  'fluctuationLevel',
  'muted'
];

var parseQuery = function(query) {
  if (query.startsWith('?')) {
      var parts = query.substring(1).split('&');
      var params = parts.reduce(function(agg, part) {
          var bits = part.split('=');
          var name = decodeURIComponent(bits[0]);
          var values = agg[name] || [];
          if (bits.length > 1) {
              values.push(decodeURIComponent(bits[1]));
          }
          agg[name] = values;
          return agg;
      }, {});
      return params;
  }
};

export default {
  data() {
    return {
      audioContext: null,
      sounds: null,
      meta: {
        bpm: 120,
        isPlaying: false
      }
    }
  },
  components: {
    PlayIcon,
    MuteIcon,
    AddIcon,
    RemoveIcon,
    SettingsIcon
  },
  methods: {
    audioContextCheck() {
      if (typeof AudioContext !== 'undefined') {
        return new AudioContext();
      } else if (typeof webkitAudioContext !== 'undefined') {
        return new webkitAudioContext();
      } else if (typeof mozAudioContext !== 'undefined') {
        return new mozAudioContext();
      } else {
        throw new Error('AudioContext not supported');
      }
    },
    soundLoader(path) {
      var soundObject = {};

      var getSound = new XMLHttpRequest();
      getSound.open('GET', path, true);
      getSound.responseType = 'arraybuffer';

      getSound.onload = () => {
        this.audioContext.decodeAudioData(getSound.response, (buffer) => {
          soundObject.soundToPlay = buffer;
        });
      }

      getSound.send();

      soundObject.play = (volumeVal, time, fluctuationLevel, animElem) => {
        var volume = this.audioContext.createGain();
        volume.gain.value = volumeVal;
        var playSound = this.audioContext.createBufferSource();
        playSound.buffer = soundObject.soundToPlay;

        // Feature detect detune method
        if (this.meta.detuneSupport) {
          // Naturalization by fluctuating pitch slightly
          var bend = Math.floor(Math.random() * fluctuationLevel) + -Math.abs(fluctuationLevel);
          playSound.detune.value = bend;
        }

        // Volume control
        playSound.connect(volume);
        volume.connect(this.audioContext.destination);

        playSound.start(time);

        window.requestAnimFrame(() => {
          this.pulse(animElem);
        });
      }

      return soundObject;
    },
    loadSounds() {
      this.sounds.forEach((sound) => {
        sound.buffer = this.soundLoader(sound.url);
      });
    },
    setState() {

      var storage = this.$localStorage.get('drum-machine-state');

      if (storage) {
        var savedData = JSON.parse(storage);
        this.sounds = savedData.sounds;
        this.meta = savedData.meta;
      } else {
        this.sounds = JSON.parse(JSON.stringify(defaultState.sounds));
        this.meta = JSON.parse(JSON.stringify(defaultState.meta));
      }

      var queryState = parseQuery(window.location.search);
      if (queryState) {
        var params = Object.keys(queryState);
        var state = {
            sounds: [],
            meta: {}
        };
        params.forEach(function(key) {
            if (key === 'bpm') {
                state.meta.bpm = JSON.parse(queryState.bpm[0]);
            } else {
                var sound = JSON.parse(queryState[key][0]);
                sound.name = key;
                state.sounds.push(sound);
            }
        });
        this.updateState(state);
      }

    },
    futureTick() {
      var noteLength = 60 / this.meta.bpm;
      this.meta.futureTickTime += 0.25 * noteLength;

      this.sounds.forEach((sound) => {
        sound.current++;
        if (sound.current > sound.length) {
          sound.current = 1;
        }
      });
    },
    scheduleNote() {
      this.sounds.forEach((sound) => {
        sound.probable = this.probability(sound.probability);
      });
      this.sounds.forEach((sound) => {
        this.playOrNot(sound, sound.active.includes(sound.current));
      });
    },
    playOrNot(sound, currentIsActive) {
      if (!currentIsActive) {
        return;
      }

      if (sound.muted) {
        return;
      }

      if (!sound.probable) {
        return;
      }

      var overridden = false;

      this.sounds.forEach((otherSound) => {
        if (otherSound.overrides.includes(sound.name)) {
          if (!otherSound.muted) {
            if (otherSound.probable) {
              if (otherSound.active.includes(otherSound.current)) {
                overridden = true;
              }
            }
          }
        }
      });

      if (overridden) {
        return;
      }

      var soundID = this.slugify(sound.name + '-beat-' + sound.current) + '-label';
      var animElem = document.getElementById(soundID);

      sound.buffer.play(
        sound.volume / 100,
        this.meta.futureTickTime,
        sound.fluctuationLevel,
        animElem
      );

    },
    scheduler() {
      while (this.meta.futureTickTime < this.audioContext.currentTime + 0.1) {
        this.scheduleNote();
        this.futureTick();
      }
      window.t = window.setTimeout(this.scheduler, 50.0);
    },
    probability(ratio) {
      var set = [];

      if (ratio.chance >= ratio.in) {
        return true;
      }

      var i = 0;
      do {
        i += 1;
        set.push(true);
      }
      while (i < ratio.chance);

      var n = 0;
      do {
        n += 1;
        set.push(false);
      }
      while (n < (ratio.in - ratio.chance));

      var playIt = set[Math.floor(Math.random()*set.length)];
      return playIt;
    },
    playOrStop() {
      this.play();
    },
    reset() {
        this.updateState(defaultState);
        if (history.pushState) {
          var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname;
          window.history.pushState({path:newurl},'',newurl);
        }
        this.meta.linkUrl = null;
    },
    updateState(newState) {
        if (newState.sounds) {
            var soundsByName = newState.sounds.reduce(function(agg, sound) {
                agg[sound.name] = sound;
                return agg;
            }, {});

            this.sounds.forEach(function (sound) {
                var newSound = soundsByName[sound.name];
                soundProps.forEach(function(prop) {
                    sound[prop] = JSON.parse(JSON.stringify(newSound[prop]));
                });
            });
        }

        if (newState.meta) {
            this.meta.bpm = newState.meta.bpm;
        }
    },
    link() {
        var parts = ['bpm=' + this.meta.bpm];
        this.sounds.forEach(function(sound) {
            var persisted = soundProps.reduce(function(agg, prop) {
                agg[p
Download .txt
gitextract_l_b0nu3e/

├── .gitignore
├── LICENSE
├── README.md
├── cachebust-sw.js
├── docs/
│   ├── css/
│   │   └── style.css
│   ├── index.html
│   ├── js/
│   │   └── app.js
│   ├── manifest.json
│   ├── sw-cache-polyfill.js
│   └── sw.js
├── gulpfile.js
├── package.json
├── server.js
└── src/
    ├── css/
    │   └── style.css
    ├── index.html
    ├── js/
    │   ├── app.js
    │   ├── components/
    │   │   ├── AddIcon.vue
    │   │   ├── Machine.vue
    │   │   ├── MuteIcon.vue
    │   │   ├── PlayIcon.vue
    │   │   ├── RemoveIcon.vue
    │   │   └── SettingsIcon.vue
    │   ├── sw-cache-polyfill.js
    │   └── sw.js
    └── manifest.json
Download .txt
SYMBOL INDEX (294 symbols across 3 files)

FILE: docs/js/app.js
  function t (line 1) | function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{...
  function r (line 1) | function r(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null...
  function i (line 1) | function i(e){var t=parseFloat(e,10);return t||0===t?t:e}
  function o (line 1) | function o(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.len...
  function a (line 1) | function a(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(...
  function s (line 1) | function s(e,t){return hi.call(e,t)}
  function u (line 1) | function u(e){return"string"==typeof e||"number"==typeof e}
  function l (line 1) | function l(e){var t=Object.create(null);return function(n){var r=t[n];re...
  function c (line 1) | function c(e,t){function n(n){var r=arguments.length;return r?r>1?e.appl...
  function d (line 1) | function d(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n...
  function f (line 1) | function f(e,t){for(var n in t)e[n]=t[n];return e}
  function p (line 1) | function p(e){return null!==e&&"object"==typeof e}
  function v (line 1) | function v(e){return wi.call(e)===xi}
  function h (line 1) | function h(e){for(var t={},n=0;n<e.length;n++)e[n]&&f(t,e[n]);return t}
  function m (line 1) | function m(){}
  function g (line 1) | function g(e){return e.reduce(function(e,t){return e.concat(t.staticKeys...
  function y (line 1) | function y(e,t){var n=p(e),r=p(t);return n&&r?JSON.stringify(e)===JSON.s...
  function _ (line 1) | function _(e,t){for(var n=0;n<e.length;n++)if(y(e[n],t))return n;return-1}
  function b (line 1) | function b(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}
  function w (line 1) | function w(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,wr...
  function x (line 1) | function x(e){if(!Ci.test(e)){var t=e.split(".");return function(e){for(...
  function k (line 1) | function k(e){return/native code/.test(e.toString())}
  function E (line 1) | function E(e){Bi.target&&Hi.push(Bi.target),Bi.target=e}
  function N (line 1) | function N(){Bi.target=Hi.pop()}
  function C (line 1) | function C(e,t){e.__proto__=t}
  function O (line 1) | 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 $ (line 1) | function $(e,t){if(p(e)){var n;return s(e,"__ob__")&&e.__ob__ instanceof...
  function A (line 1) | function A(e,n,r,i){var o=new Bi,a=Object.getOwnPropertyDescriptor(e,n);...
  function S (line 1) | function S(e,n,r){if(Array.isArray(e))return e.length=Math.max(e.length,...
  function D (line 1) | function D(e,n){var r=e.__ob__;return e._isVue||r&&r.vmCount?void("produ...
  function T (line 1) | function T(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__...
  function j (line 1) | function j(e,t){if(!t)return e;for(var n,r,i,o=Object.keys(t),a=0;a<o.le...
  function V (line 1) | function V(e,t){return t?e?e.concat(t):Array.isArray(t)?t:[t]:e}
  function P (line 1) | function P(e,t){var n=Object.create(e||null);return t?f(n,t):n}
  function L (line 1) | function L(e){for(var t in e.components){var n=t.toLowerCase();(vi(n)||N...
  function M (line 1) | function M(e){var n=e.props;if(n){var r,i,o,a={};if(Array.isArray(n))for...
  function R (line 1) | function R(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"functi...
  function I (line 1) | function I(e,n,r){function i(t){var i=Zi[t]||Yi;d[t]=i(e[t],n[t],r,t)}"p...
  function F (line 1) | function F(e,n,r,i){if("string"==typeof r){var o=e[n];if(s(o,r))return o...
  function U (line 1) | function U(e,n,r,i){var o=n[e],a=!s(r,e),u=r[e];if(q(Boolean,o.type)&&(a...
  function B (line 1) | function B(e,n,r){if(s(n,"default")){var i=n["default"];return p(i)&&"pr...
  function H (line 1) | function H(e,t,n,r,i){if(e.required&&i)return void Ii('Missing required ...
  function J (line 1) | function J(e,t){var n,r=z(t);return n="String"===r?typeof e==(r="string"...
  function z (line 1) | function z(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t...
  function q (line 1) | function q(e,t){if(!Array.isArray(t))return z(t)===z(e);for(var n=0,r=t....
  function K (line 1) | function K(){oo.length=0,ao={},"production"!==t.env.NODE_ENV&&(so={}),uo...
  function W (line 1) | function W(){for(lo=!0,oo.sort(function(e,t){return e.id-t.id}),co=0;co<...
  function Z (line 1) | function Z(e){var t=e.id;if(null==ao[t]){if(ao[t]=!0,lo){for(var n=oo.le...
  function G (line 1) | function G(e){ho.clear(),Y(e,ho)}
  function Y (line 1) | function Y(e,t){var n,r,i=Array.isArray(e);if((i||p(e))&&Object.isExtens...
  function Q (line 1) | function Q(e){e._watchers=[];var t=e.$options;t.props&&X(e,t.props),t.me...
  function X (line 1) | function X(e,n){var r=e.$options.propsData||{},i=e.$options._propKeys=Ob...
  function ee (line 1) | function ee(e){var n=e.$options.data;n=e._data="function"==typeof n?n.ca...
  function te (line 1) | function te(e,n){for(var r in n){"production"!==t.env.NODE_ENV&&r in e&&...
  function ne (line 1) | function ne(e,t){var n=new po(t,e,m,{lazy:!0});return function(){return ...
  function re (line 1) | function re(e,n){for(var r in n)e[r]=null==n[r]?m:c(n[r],e),"production"...
  function ie (line 1) | function ie(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var ...
  function oe (line 1) | function oe(e,t,n){var r;v(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=...
  function ae (line 1) | function ae(e){var n={};n.get=function(){return this._data},"production"...
  function se (line 1) | function se(e,t){b(t)||Object.defineProperty(e,t,{configurable:!0,enumer...
  function ue (line 1) | function ue(e){return new yo((void 0),(void 0),(void 0),String(e))}
  function le (line 1) | function le(e){var t=new yo(e.tag,e.data,e.children,e.text,e.elm,e.conte...
  function ce (line 1) | function ce(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=le(...
  function de (line 1) | function de(e,t,n,r){r+=t;var i=e.__injected||(e.__injected={});if(!i[r]...
  function fe (line 1) | 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)i...
  function pe (line 1) | function pe(e){return function(t){for(var n=arguments,r=1===arguments.le...
  function ve (line 1) | function ve(e){return function(t){var n=1===arguments.length;n?e.fn(t):e...
  function he (line 1) | function he(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return ...
  function me (line 1) | function me(e){return u(e)?[ue(e)]:Array.isArray(e)?ge(e):void 0}
  function ge (line 1) | function ge(e,t){var n,r,i,o=[];for(n=0;n<e.length;n++)r=e[n],null!=r&&"...
  function ye (line 1) | function ye(e){return e&&e.filter(function(e){return e&&e.componentOptio...
  function _e (line 1) | function _e(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e....
  function be (line 1) | function be(e,t,n){n?vo.$once(e,t):vo.$on(e,t)}
  function we (line 1) | function we(e,t){vo.$off(e,t)}
  function xe (line 1) | function xe(e,t,n){vo=e,fe(t,n||{},be,we,e)}
  function ke (line 1) | function ke(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;r...
  function Ee (line 1) | function Ee(e){var t=e.$options,n=t.parent;if(n&&!t["abstract"]){for(;n....
  function Ne (line 1) | function Ne(e){e.prototype._mount=function(e,n){var r=this;return r.$el=...
  function Ce (line 1) | function Ce(e,t){var n=e.$options[t];if(n)for(var r=0,i=n.length;r<i;r++...
  function Oe (line 1) | function Oe(e,n,r,i,o){if(e){var a=r.$options._base;if(p(e)&&(e=a.extend...
  function $e (line 1) | function $e(e,t,n,r,i){var o={},a=e.options.props;if(a)for(var s in a)o[...
  function Ae (line 1) | function Ae(e,t,n,r){var i=e.componentOptions,o={_isComponent:!0,parent:...
  function Se (line 1) | function Se(e,t,n,r){if(!e.child||e.child._isDestroyed){var i=e.child=Ae...
  function De (line 1) | function De(e,t){var n=t.componentOptions,r=t.child=e.child;r._updateFro...
  function Te (line 1) | function Te(e){e.child._isMounted||(e.child._isMounted=!0,Ce(e.child,"mo...
  function je (line 1) | function je(e){e.child._isDestroyed||(e.data.keepAlive?(e.child._inactiv...
  function Ve (line 1) | function Ve(e,n,r){if(!e.requested){e.requested=!0;var i=e.pendingCallba...
  function Pe (line 1) | function Pe(e,t){var n=t.options.props;if(n){var r={},i=e.attrs,o=e.prop...
  function Le (line 1) | function Le(e,t,n,r,i){if(t){if(s(t,n))return e[n]=t[n],i||delete t[n],!...
  function Me (line 1) | function Me(e){e.hook||(e.hook={});for(var t=0;t<xo.length;t++){var n=xo...
  function Re (line 1) | function Re(e,t){return function(n,r,i,o){e(n,r,i,o),t(n,r,i,o)}}
  function Ie (line 1) | function Ie(e,t,n,r,i,o){return(Array.isArray(n)||u(n))&&(i=r,r=n,n=void...
  function Fe (line 1) | function Fe(e,n,r,i,o){if(r&&r.__ob__)return"production"!==t.env.NODE_EN...
  function Ue (line 1) | function Ue(e,t){if(e.ns=t,"foreignObject"!==e.tag&&e.children)for(var n...
  function Be (line 1) | function Be(e){e.$vnode=null,e._vnode=null,e._staticTrees=null;var t=e.$...
  function He (line 1) | function He(e){function n(e,t,n){if(Array.isArray(e))for(var r=0;r<e.len...
  function Je (line 1) | function Je(e,t){var n={};if(!e)return n;for(var r,i,o=[],a=0,s=e.length...
  function ze (line 1) | function ze(e){e.prototype._init=function(e){var n=this;n._uid=No++,n._i...
  function qe (line 1) | function qe(e,t){var n=e.$options=Object.create(e.constructor.options);n...
  function Ke (line 1) | function Ke(e){var t=e.options;if(e["super"]){var n=e["super"].options,r...
  function We (line 1) | function We(e){"production"===t.env.NODE_ENV||this instanceof We||Ii("Vu...
  function Ze (line 1) | function Ze(e){e.use=function(e){if(!e.installed){var t=d(arguments,1);r...
  function Ge (line 1) | function Ge(e){e.mixin=function(e){this.options=I(this.options,e)}}
  function Ye (line 1) | function Ye(e){e.cid=0;var n=1;e.extend=function(e){e=e||{};var r=this,i...
  function Qe (line 1) | function Qe(e){Ni._assetTypes.forEach(function(n){e[n]=function(e,r){ret...
  function Xe (line 1) | function Xe(e,t){return"string"==typeof e?e.split(",").indexOf(t)>-1:e.t...
  function et (line 1) | function et(e){var n={};n.get=function(){return Ni},"production"!==t.env...
  function tt (line 1) | function tt(e){for(var t=e.data,n=e,r=e;r.child;)r=r.child._vnode,r.data...
  function nt (line 1) | function nt(e,t){return{staticClass:it(e.staticClass,t.staticClass),"cla...
  function rt (line 1) | function rt(e){var t=e["class"],n=e.staticClass;return n||t?it(n,ot(t)):""}
  function it (line 1) | function it(e,t){return e?t?e+" "+t:e:t||""}
  function ot (line 1) | function ot(e){var t="";if(!e)return t;if("string"==typeof e)return e;if...
  function at (line 1) | function at(e){return Uo(e)?"svg":"math"===e?"math":void 0}
  function st (line 1) | function st(e){if(!$i)return!0;if(Ho(e))return!1;if(e=e.toLowerCase(),nu...
  function ut (line 1) | function ut(e){if("string"==typeof e){var n=e;if(e=document.querySelecto...
  function lt (line 1) | function lt(e,t){var n=document.createElement(e);return"select"!==e?n:(t...
  function ct (line 1) | function ct(e,t){return document.createElementNS(Io[e],t)}
  function dt (line 1) | function dt(e){return document.createTextNode(e)}
  function ft (line 1) | function ft(e){return document.createComment(e)}
  function pt (line 1) | function pt(e,t,n){e.insertBefore(t,n)}
  function vt (line 1) | function vt(e,t){e.removeChild(t)}
  function ht (line 1) | function ht(e,t){e.appendChild(t)}
  function mt (line 1) | function mt(e){return e.parentNode}
  function gt (line 1) | function gt(e){return e.nextSibling}
  function yt (line 1) | function yt(e){return e.tagName}
  function _t (line 1) | function _t(e,t){e.textContent=t}
  function bt (line 1) | function bt(e,t,n){e.setAttribute(t,n)}
  function wt (line 1) | function wt(e,t){var n=e.data.ref;if(n){var r=e.context,i=e.child||e.elm...
  function xt (line 1) | function xt(e){return null==e}
  function kt (line 1) | function kt(e){return null!=e}
  function Et (line 1) | function Et(e,t){return e.key===t.key&&e.tag===t.tag&&e.isComment===t.is...
  function Nt (line 1) | function Nt(e,t,n){var r,i,o={};for(r=t;r<=n;++r)i=e[r].key,kt(i)&&(o[i]...
  function Ct (line 1) | function Ct(e){function n(e){return new yo(A.tagName(e).toLowerCase(),{}...
  function Ot (line 2) | function Ot(e,t){(e.data.directives||t.data.directives)&&$t(e,t)}
  function $t (line 2) | function $t(e,t){var n,r,i,o=e===Ko,a=t===Ko,s=At(e.data.directives,e.co...
  function At (line 2) | function At(e,t){var n=Object.create(null);if(!e)return n;var r,i;for(r=...
  function St (line 2) | function St(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{})...
  function Dt (line 2) | function Dt(e,t,n,r,i){var o=e.def&&e.def[t];o&&o(n.elm,e,n,r,i)}
  function Tt (line 2) | function Tt(e,t){if(e.data.attrs||t.data.attrs){var n,r,i,o=t.elm,a=e.da...
  function jt (line 2) | function jt(e,t,n){Vo(t)?Ro(n)?e.removeAttribute(t):e.setAttribute(t,t):...
  function Vt (line 2) | function Vt(e,t){var n=t.elm,r=t.data,i=e.data;if(r.staticClass||r["clas...
  function Pt (line 2) | function Pt(e,t,n,r){if(n){var i=t;t=function(n){Lt(e,t,r),1===arguments...
  function Lt (line 2) | function Lt(e,t,n){Ao.removeEventListener(e,t,n)}
  function Mt (line 2) | function Mt(e,t){if(e.data.on||t.data.on){var n=t.data.on||{},r=e.data.o...
  function Rt (line 2) | function Rt(e,t){if(e.data.domProps||t.data.domProps){var n,r,i=t.elm,o=...
  function It (line 2) | function It(e,t,n){return!(e.composing||"option"!==t.tag&&!Ft(e,n)&&!Ut(...
  function Ft (line 2) | function Ft(e,t){return document.activeElement!==e&&e.value!==t}
  function Ut (line 2) | function Ut(e,t){var n=e.elm.value,r=e.elm._vModifiers;return r&&r.numbe...
  function Bt (line 2) | function Bt(e){var t=Ht(e.style);return e.staticStyle?f(e.staticStyle,t):t}
  function Ht (line 2) | function Ht(e){return Array.isArray(e)?h(e):"string"==typeof e?na(e):e}
  function Jt (line 2) | function Jt(e,t){var n,r={};if(t)for(var i=e;i.child;)i=i.child._vnode,i...
  function zt (line 2) | function zt(e,t){var n=t.data,r=e.data;if(n.staticStyle||n.style||r.stat...
  function qt (line 2) | function qt(e,t){if(t&&t.trim())if(e.classList)t.indexOf(" ")>-1?t.split...
  function Kt (line 2) | function Kt(e,t){if(t&&t.trim())if(e.classList)t.indexOf(" ")>-1?t.split...
  function Wt (line 2) | function Wt(e){ma(function(){ma(e)})}
  function Zt (line 2) | function Zt(e,t){(e._transitionClasses||(e._transitionClasses=[])).push(...
  function Gt (line 2) | function Gt(e,t){e._transitionClasses&&a(e._transitionClasses,t),Kt(e,t)}
  function Yt (line 2) | function Yt(e,t,n){var r=Qt(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!...
  function Qt (line 2) | function Qt(e,t){var n,r=window.getComputedStyle(e),i=r[fa+"Delay"].spli...
  function Xt (line 2) | function Xt(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.a...
  function en (line 2) | function en(e){return 1e3*Number(e.slice(0,-1))}
  function tn (line 2) | function tn(e,t){var n=e.elm;n._leaveCb&&(n._leaveCb.cancelled=!0,n._lea...
  function nn (line 2) | function nn(e,t){function n(){g.cancelled||(e.data.show||((r.parentNode....
  function rn (line 2) | function rn(e){if(e){if("object"==typeof e){var t={};return e.css!==!1&&...
  function on (line 2) | function on(e){var t=!1;return function(){t||(t=!0,e())}}
  function an (line 2) | function an(e,t){t.data.show||tn(t)}
  function sn (line 2) | function sn(e,n,r){var i=n.value,o=e.multiple;if(o&&!Array.isArray(i))re...
  function un (line 2) | function un(e,t){for(var n=0,r=t.length;n<r;n++)if(y(ln(t[n]),e))return!...
  function ln (line 2) | function ln(e){return"_value"in e?e._value:e.value}
  function cn (line 2) | function cn(e){e.target.composing=!0}
  function dn (line 2) | function dn(e){e.target.composing=!1,fn(e.target,"input")}
  function fn (line 2) | function fn(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,...
  function pn (line 2) | function pn(e){return!e.child||e.data&&e.data.transition?e:pn(e.child._v...
  function vn (line 2) | function vn(e){var t=e&&e.componentOptions;return t&&t.Ctor.options["abs...
  function hn (line 2) | function hn(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];...
  function mn (line 2) | function mn(e,t){return/\d-keep-alive$/.test(t.tag)?e("keep-alive"):null}
  function gn (line 2) | function gn(e){for(;e=e.parent;)if(e.data.transition)return!0}
  function yn (line 2) | function yn(e,t){return t.key===e.key&&t.tag===e.tag}
  function _n (line 2) | function _n(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._ent...
  function bn (line 2) | function bn(e){e.data.newPos=e.elm.getBoundingClientRect()}
  function wn (line 2) | function wn(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-...
  function xn (line 2) | function xn(e,t){var n=document.createElement("div");return n.innerHTML=...
  function kn (line 2) | function kn(e){return Ta=Ta||document.createElement("div"),Ta.innerHTML=...
  function En (line 2) | function En(e,t){return t&&(e=e.replace(Os,"\n")),e.replace(Ns,"<").repl...
  function Nn (line 2) | function Nn(e,t){function n(t){d+=t,e=e.substring(t)}function r(){var t=...
  function Cn (line 2) | function Cn(e){function t(){(a||(a=[])).push(e.slice(v,i).trim()),v=i+1}...
  function On (line 2) | function On(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";...
  function $n (line 2) | function $n(e,t){var n=t?Ts(t):Ss;if(n.test(e)){for(var r,i,o=[],a=n.las...
  function An (line 2) | function An(e){}
  function Sn (line 2) | function Sn(e,t){return e?e.map(function(e){return e[t]}).filter(functio...
  function Dn (line 2) | function Dn(e,t,n){(e.props||(e.props=[])).push({name:t,value:n})}
  function Tn (line 2) | function Tn(e,t,n){(e.attrs||(e.attrs=[])).push({name:t,value:n})}
  function jn (line 2) | function jn(e,t,n,r,i,o){(e.directives||(e.directives=[])).push({name:t,...
  function Vn (line 2) | function Vn(e,t,n,r,i){r&&r.capture&&(delete r.capture,t="!"+t),r&&r.onc...
  function Pn (line 2) | function Pn(e,t,n){var r=Ln(e,":"+t)||Ln(e,"v-bind:"+t);if(null!=r)retur...
  function Ln (line 2) | function Ln(e,t){var n;if(null!=(n=e.attrsMap[t]))for(var r=e.attrsList,...
  function Mn (line 2) | function Mn(e){if(Ya=e,Ga=Ya.length,Xa=es=ts=0,e.indexOf("[")<0||e.lastI...
  function Rn (line 2) | function Rn(){return Ya.charCodeAt(++Xa)}
  function In (line 2) | function In(){return Xa>=Ga}
  function Fn (line 2) | function Fn(e){return 34===e||39===e}
  function Un (line 2) | function Un(e){var t=1;for(es=Xa;!In();)if(e=Rn(),Fn(e))Bn(e);else if(91...
  function Bn (line 2) | function Bn(e){for(var t=e;!In()&&(e=Rn(),e!==t););}
  function Hn (line 2) | function Hn(e,n){ns=n.warn||An,rs=n.getTagNamespace||ki,is=n.mustUseProp...
  function Jn (line 2) | function Jn(e){null!=Ln(e,"v-pre")&&(e.pre=!0)}
  function zn (line 2) | function zn(e){var t=e.attrsList.length;if(t)for(var n=e.attrs=new Array...
  function qn (line 2) | function qn(e){var n=Pn(e,"key");n&&("production"!==t.env.NODE_ENV&&"tem...
  function Kn (line 2) | function Kn(e){var t=Pn(e,"ref");t&&(e.ref=t,e.refInFor=rr(e))}
  function Wn (line 2) | function Wn(e){var n;if(n=Ln(e,"v-for")){var r=n.match(Vs);if(!r)return ...
  function Zn (line 2) | function Zn(e){var t=Ln(e,"v-if");if(t)e["if"]=t,Qn(e,{exp:t,block:e});e...
  function Gn (line 2) | function Gn(e,n){var r=Yn(n.children);r&&r["if"]?Qn(r,{exp:e.elseif,bloc...
  function Yn (line 2) | function Yn(e){for(var n=e.length;n--;){if(1===e[n].type)return e[n];"pr...
  function Qn (line 2) | function Qn(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push...
  function Xn (line 2) | function Xn(e){var t=Ln(e,"v-once");null!=t&&(e.once=!0)}
  function er (line 2) | function er(e){if("slot"===e.tag)e.slotName=Pn(e,"name"),"production"!==...
  function tr (line 2) | function tr(e){var t;(t=Pn(e,"is"))&&(e.component=t),null!=Ln(e,"inline-...
  function nr (line 2) | function nr(e){var n,r,i,o,a,s,u,l,c=e.attrsList;for(n=0,r=c.length;n<r;...
  function rr (line 2) | function rr(e){for(var t=e;t;){if(void 0!==t["for"])return!0;t=t.parent}...
  function ir (line 2) | function ir(e){var t=e.match(Is);if(t){var n={};return t.forEach(functio...
  function or (line 2) | function or(e){for(var n={},r=0,i=e.length;r<i;r++)"production"!==t.env....
  function ar (line 2) | function ar(e){return"style"===e.tag||"script"===e.tag&&(!e.attrsMap.typ...
  function sr (line 2) | function sr(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];Us.test(r.nam...
  function ur (line 2) | function ur(e,t){for(var n=e;n;)n["for"]&&n.alias===t&&ns("<"+e.tag+' v-...
  function lr (line 2) | function lr(e,t){e&&(cs=Hs(t.staticKeys||""),ds=t.isReservedTag||ki,dr(e...
  function cr (line 2) | function cr(e){return o("type,tag,attrsList,attrsMap,plain,parent,childr...
  function dr (line 2) | function dr(e){if(e["static"]=vr(e),1===e.type){if(!ds(e.tag)&&"slot"!==...
  function fr (line 2) | function fr(e,t){if(1===e.type){if((e["static"]||e.once)&&(e.staticInFor...
  function pr (line 2) | function pr(e,t){for(var n=1,r=e.length;n<r;n++)fr(e[n].block,t)}
  function vr (line 2) | function vr(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings|...
  function hr (line 2) | function hr(e){for(;e.parent;){if(e=e.parent,"template"!==e.tag)return!1...
  function mr (line 2) | function mr(e,t){var n=t?"nativeOn:{":"on:{";for(var r in e)n+='"'+r+'":...
  function gr (line 2) | function gr(e,t){if(t){if(Array.isArray(t))return"["+t.map(function(t){r...
  function yr (line 2) | function yr(e){return"if("+e.map(_r).join("&&")+")return;"}
  function _r (line 2) | function _r(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var...
  function br (line 2) | function br(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t....
  function wr (line 2) | function wr(e,t){var n=gs,r=gs=[],i=ys;ys=0,_s=t,fs=t.warn||An,ps=Sn(t.m...
  function xr (line 2) | function xr(e){if(e.staticRoot&&!e.staticProcessed)return kr(e);if(e.onc...
  function kr (line 2) | function kr(e){return e.staticProcessed=!0,gs.push("with(this){return "+...
  function Er (line 2) | function Er(e){if(e.onceProcessed=!0,e["if"]&&!e.ifProcessed)return Nr(e...
  function Nr (line 2) | function Nr(e){return e.ifProcessed=!0,Cr(e.ifConditions.slice())}
  function Cr (line 2) | function Cr(e){function t(e){return e.once?Er(e):xr(e)}if(!e.length)retu...
  function Or (line 2) | function Or(e){var t=e["for"],n=e.alias,r=e.iterator1?","+e.iterator1:""...
  function $r (line 2) | function $r(e){var t="{",n=Ar(e);n&&(t+=n+","),e.key&&(t+="key:"+e.key+"...
  function Ar (line 2) | function Ar(e){var t=e.directives;if(t){var n,r,i,o,a="directives:[",s=!...
  function Sr (line 2) | function Sr(e){var n=e.children[0];if("production"!==t.env.NODE_ENV&&(e....
  function Dr (line 2) | function Dr(e){return"scopedSlots:{"+Object.keys(e).map(function(t){retu...
  function Tr (line 2) | function Tr(e,t){return e+":function("+String(t.attrsMap.scope)+"){retur...
  function jr (line 2) | function jr(e,t){var n=e.children;if(n.length){var r=n[0];if(1===n.lengt...
  function Vr (line 2) | function Vr(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];if(Pr(r)||r["i...
  function Pr (line 2) | function Pr(e){return e["for"]||"template"===e.tag||"slot"===e.tag}
  function Lr (line 2) | function Lr(e){return 1===e.type&&!ms(e.tag)}
  function Mr (line 2) | function Mr(e){return 1===e.type?xr(e):Rr(e)}
  function Rr (line 2) | function Rr(e){return"_v("+(2===e.type?e.expression:Br(JSON.stringify(e....
  function Ir (line 2) | function Ir(e){var t=e.slotName||'"default"',n=jr(e),r="_t("+t+(n?","+n:...
  function Fr (line 2) | function Fr(e,t){var n=t.inlineTemplate?null:jr(t,!0);return"_c("+e+","+...
  function Ur (line 2) | function Ur(e){for(var t="",n=0;n<e.length;n++){var r=e[n];t+='"'+r.name...
  function Br (line 2) | function Br(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"...
  function Hr (line 2) | function Hr(e,t){var n=Hn(e.trim(),t);lr(n,t);var r=wr(n,t);return{ast:n...
  function Jr (line 2) | function Jr(e){var t=[];return e&&zr(e,t),t}
  function zr (line 2) | function zr(e,t){if(1===e.type){for(var n in e.attrsMap)if(js.test(n)){v...
  function qr (line 2) | function qr(e,t,n){Wr(e["for"]||"",t,n),Kr(e.alias,"v-for alias",t,n),Kr...
  function Kr (line 2) | function Kr(e,t,n,r){"string"!=typeof e||Gs.test(e)||r.push("- invalid "...
  function Wr (line 2) | function Wr(e,t,n){try{new Function("return "+e)}catch(r){var i=e.replac...
  function Zr (line 2) | function Zr(e,n){var r=n.warn||An,i=Ln(e,"class");if("production"!==t.en...
  function Gr (line 2) | function Gr(e){var t="";return e.staticClass&&(t+="staticClass:"+e.stati...
  function Yr (line 2) | function Yr(e,n){var r=n.warn||An,i=Ln(e,"style");if(i){if("production"!...
  function Qr (line 2) | function Qr(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.stati...
  function Xr (line 2) | function Xr(e,n,r){bs=r;var i=n.value,o=n.modifiers,a=e.tag,s=e.attrsMap...
  function ei (line 2) | function ei(e,n,r){"production"!==t.env.NODE_ENV&&null!=e.attrsMap.check...
  function ti (line 3) | function ti(e,n,r){"production"!==t.env.NODE_ENV&&null!=e.attrsMap.check...
  function ni (line 3) | function ni(e,n,r){"production"!==t.env.NODE_ENV&&("input"===e.tag&&e.at...
  function ri (line 3) | function ri(e,n,r){"production"!==t.env.NODE_ENV&&e.children.some(ii);va...
  function ii (line 3) | function ii(e){return 1===e.type&&"option"===e.tag&&null!=e.attrsMap.sel...
  function oi (line 3) | function oi(e,t){var n=Mn(e);return null===n.idx?e+"="+t:"var $$exp = "+...
  function ai (line 3) | function ai(e,t){t.value&&Dn(e,"textContent","_s("+t.value+")")}
  function si (line 3) | function si(e,t){t.value&&Dn(e,"innerHTML","_s("+t.value+")")}
  function ui (line 3) | function ui(e,t){return t=t?f(f({},ru),t):ru,Hr(e,t)}
  function li (line 3) | function li(e,n,r){var i=n&&n.warn||Ii;if("production"!==t.env.NODE_ENV)...
  function ci (line 3) | function ci(e){try{return new Function(e)}catch(t){return m}}
  function di (line 3) | function di(e){if(e.outerHTML)return e.outerHTML;var t=document.createEl...
  function e (line 3) | function e(){r=!1;var e=n.slice(0);n.length=0;for(var t=0;t<e.length;t++...
  function e (line 3) | function e(){this.set=Object.create(null)}
  method _Set (line 3) | get _Set(){return pi}
  method warn (line 3) | get warn(){return Ii}
  method formatComponentName (line 3) | get formatComponentName(){return Ri}
  function n (line 4) | function n(){throw new Error("setTimeout has not been defined")}
  function r (line 4) | function r(){throw new Error("clearTimeout has not been defined")}
  function i (line 4) | function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&s...
  function o (line 4) | function o(e){if(d===clearTimeout)return clearTimeout(e);if((d===r||!d)&...
  function a (line 4) | function a(){h&&p&&(h=!1,p.length?v=p.concat(v):m=-1,v.length&&s())}
  function s (line 4) | function s(){if(!h){var e=i(a);h=!0;for(var t=v.length;t;){for(p=v,v=[];...
  function u (line 4) | function u(e,t){this.fun=e,this.array=t}
  function l (line 4) | function l(){}

FILE: docs/sw-cache-polyfill.js
  function NetworkError (line 11) | function NetworkError(message) {

FILE: src/js/sw-cache-polyfill.js
  function NetworkError (line 11) | function NetworkError(message) {
Condensed preview — 25 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (216K chars).
[
  {
    "path": ".gitignore",
    "chars": 578,
    "preview": "# Logs\nlogs\n*.log\nnpm-debug.log*\n\n# Runtime data\npids\n*.pid\n*.seed\n\n# Directory for instrumented libs generated by jscov"
  },
  {
    "path": "LICENSE",
    "chars": 35141,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "README.md",
    "chars": 2838,
    "preview": "# Beadz Drum Machine\n\n**Beadz** is an experimental drum machine built using The Web Audio API and Vue.js. It uses servic"
  },
  {
    "path": "cachebust-sw.js",
    "chars": 237,
    "preview": "var random = require('randomstring');\nvar fs = require('fs');\n\nvar randomString = random.generate(10);\n\nfs.appendFile('d"
  },
  {
    "path": "docs/css/style.css",
    "chars": 9264,
    "preview": "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*, "
  },
  {
    "path": "docs/index.html",
    "chars": 3603,
    "preview": "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-wid"
  },
  {
    "path": "docs/js/app.js",
    "chars": 111969,
    "preview": "!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.e"
  },
  {
    "path": "docs/manifest.json",
    "chars": 709,
    "preview": "{\n  \"name\": \"Beadz: A quantum polymetric drum machine\",\n  \"short_name\": \"Beadz\",\n  \"icons\": [{\n    \"src\": \"images/icon-1"
  },
  {
    "path": "docs/sw-cache-polyfill.js",
    "chars": 1977,
    "preview": "if (!Cache.prototype.add) {\n  Cache.prototype.add = function add(request) {\n    return this.addAll([request]);\n  };\n}\n\ni"
  },
  {
    "path": "docs/sw.js",
    "chars": 812,
    "preview": "importScripts('sw-cache-polyfill.js');\n\nself.addEventListener('install', function(event) {\n  event.waitUntil(\n    caches"
  },
  {
    "path": "gulpfile.js",
    "chars": 605,
    "preview": "var elixir = require('laravel-elixir');\n\nrequire('laravel-elixir-vue-2');\n\nelixir(function(mix) {\n    mix.webpack(\n     "
  },
  {
    "path": "package.json",
    "chars": 1111,
    "preview": "{\n  \"name\": \"vue-elixir-starter\",\n  \"version\": \"1.0.0\",\n  \"description\": \"\",\n  \"main\": \"index.js\",\n  \"watch\": {\n    \"dev"
  },
  {
    "path": "server.js",
    "chars": 217,
    "preview": "const express = require('express');\nconst app = express();\n\napp.use(express.static('docs'));\n\napp.listen(3000, function("
  },
  {
    "path": "src/css/style.css",
    "chars": 9264,
    "preview": "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*, "
  },
  {
    "path": "src/index.html",
    "chars": 3603,
    "preview": "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n    <meta name=\"viewport\" content=\"width=device-wid"
  },
  {
    "path": "src/js/app.js",
    "chars": 433,
    "preview": "import Vue from 'vue';\nimport VueLocalStorage from 'vue-localstorage'\nimport Machine from './components/Machine.vue';\n\nV"
  },
  {
    "path": "src/js/components/AddIcon.vue",
    "chars": 344,
    "preview": "<template>\n  <svg id=\"plus\" viewBox=\"0 0 190 190\">\n    <g transform=\"translate(-84.978 -137.34)\">\n      <rect style=\"fil"
  },
  {
    "path": "src/js/components/Machine.vue",
    "chars": 18015,
    "preview": "<template>\n  <main class=\"drum-machine\">\n    <form action>\n      <h2 class=\"vh\" id=\"dm-main-heading\">Drum Machine Main C"
  },
  {
    "path": "src/js/components/MuteIcon.vue",
    "chars": 1331,
    "preview": "<template>\n  <svg viewBox=\"0 0 190 190\">\n    <g transform=\"translate(-84.978 -137.34)\">\n      <path style=\"stroke-linejo"
  },
  {
    "path": "src/js/components/PlayIcon.vue",
    "chars": 513,
    "preview": "<template>\n  <svg viewBox=\"0 0 100 100\">\n   <g transform=\"translate(0 -952.36)\">\n    <g class=\"pause-icon\" transform=\"tr"
  },
  {
    "path": "src/js/components/RemoveIcon.vue",
    "chars": 249,
    "preview": "<template>\n  <svg id=\"minus\" viewBox=\"0 0 190 190\">\n    <g transform=\"translate(-84.978 -137.34)\">\n      <rect style=\"fi"
  },
  {
    "path": "src/js/components/SettingsIcon.vue",
    "chars": 1234,
    "preview": "<template>\n  <svg id=\"cog\" viewBox=\"0 0 190 190\">\n    <g transform=\"translate(-84.978 -137.34)\">\n      <path style=\"stro"
  },
  {
    "path": "src/js/sw-cache-polyfill.js",
    "chars": 1977,
    "preview": "if (!Cache.prototype.add) {\n  Cache.prototype.add = function add(request) {\n    return this.addAll([request]);\n  };\n}\n\ni"
  },
  {
    "path": "src/js/sw.js",
    "chars": 799,
    "preview": "importScripts('sw-cache-polyfill.js');\n\nself.addEventListener('install', function(event) {\n  event.waitUntil(\n    caches"
  },
  {
    "path": "src/manifest.json",
    "chars": 709,
    "preview": "{\n  \"name\": \"Beadz: A quantum polymetric drum machine\",\n  \"short_name\": \"Beadz\",\n  \"icons\": [{\n    \"src\": \"images/icon-1"
  }
]

About this extraction

This page contains the full source code of the Heydon/beadz-drum-machine GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 25 files (202.7 KB), approximately 64.8k tokens, and a symbol index with 294 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!