Added Docker stuff.
This commit is contained in:
commit
4e27767ac1
696
COPYING.gpl-3.0.htm
Normal file
696
COPYING.gpl-3.0.htm
Normal file
|
@ -0,0 +1,696 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<title>GNU General Public License v3.0 - GNU Project - Free Software Foundation (FSF)</title>
|
||||||
|
<link rel="alternate" type="application/rdf+xml"
|
||||||
|
href="http://www.gnu.org/licenses/gpl-3.0.rdf" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3 style="text-align: center;">GNU GENERAL PUBLIC LICENSE</h3>
|
||||||
|
<p style="text-align: center;">Version 3, 29 June 2007</p>
|
||||||
|
|
||||||
|
<p>Copyright © 2007 Free Software Foundation, Inc.
|
||||||
|
<<a href="http://fsf.org/">http://fsf.org/</a>></p><p>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.</p>
|
||||||
|
|
||||||
|
<h3><a name="preamble"></a>Preamble</h3>
|
||||||
|
|
||||||
|
<p>The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.</p>
|
||||||
|
|
||||||
|
<h3><a name="terms"></a>TERMS AND CONDITIONS</h3>
|
||||||
|
|
||||||
|
<h4><a name="section0"></a>0. Definitions.</h4>
|
||||||
|
|
||||||
|
<p>“This License” refers to version 3 of the GNU General Public License.</p>
|
||||||
|
|
||||||
|
<p>“Copyright” also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.</p>
|
||||||
|
|
||||||
|
<p>“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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>A “covered work” means either the unmodified Program or a work based
|
||||||
|
on the Program.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section1"></a>1. Source Code.</h4>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.</p>
|
||||||
|
|
||||||
|
<p>The Corresponding Source for a work in source code form is that
|
||||||
|
same work.</p>
|
||||||
|
|
||||||
|
<h4><a name="section2"></a>2. Basic Permissions.</h4>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.</p>
|
||||||
|
|
||||||
|
<h4><a name="section3"></a>3. Protecting Users' Legal Rights From Anti-Circumvention Law.</h4>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section4"></a>4. Conveying Verbatim Copies.</h4>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section5"></a>5. Conveying Modified Source Versions.</h4>
|
||||||
|
|
||||||
|
<p>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:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.</li>
|
||||||
|
|
||||||
|
<li>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”.</li>
|
||||||
|
|
||||||
|
<li>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.</li>
|
||||||
|
|
||||||
|
<li>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.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section6"></a>6. Conveying Non-Source Forms.</h4>
|
||||||
|
|
||||||
|
<p>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:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>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.</li>
|
||||||
|
|
||||||
|
<li>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.</li>
|
||||||
|
|
||||||
|
<li>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.</li>
|
||||||
|
|
||||||
|
<li>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.</li>
|
||||||
|
|
||||||
|
<li>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.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>“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.</p>
|
||||||
|
|
||||||
|
<p>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).</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section7"></a>7. Additional Terms.</h4>
|
||||||
|
|
||||||
|
<p>“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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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:</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or</li>
|
||||||
|
|
||||||
|
<li>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</li>
|
||||||
|
|
||||||
|
<li>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</li>
|
||||||
|
|
||||||
|
<li>d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or</li>
|
||||||
|
|
||||||
|
<li>e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or</li>
|
||||||
|
|
||||||
|
<li>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.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section8"></a>8. Termination.</h4>
|
||||||
|
|
||||||
|
<p>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).</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section9"></a>9. Acceptance Not Required for Having Copies.</h4>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section10"></a>10. Automatic Licensing of Downstream Recipients.</h4>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section11"></a>11. Patents.</h4>
|
||||||
|
|
||||||
|
<p>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”.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section12"></a>12. No Surrender of Others' Freedom.</h4>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section13"></a>13. Use with the GNU Affero General Public License.</h4>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section14"></a>14. Revised Versions of this License.</h4>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section15"></a>15. Disclaimer of Warranty.</h4>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section16"></a>16. Limitation of Liability.</h4>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<h4><a name="section17"></a>17. Interpretation of Sections 15 and 16.</h4>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>END OF TERMS AND CONDITIONS</p>
|
||||||
|
|
||||||
|
<h3><a name="howto"></a>How to Apply These Terms to Your New Programs</h3>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
|
||||||
|
<pre> <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/>.
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Also add information on how to contact you by electronic and paper mail.</p>
|
||||||
|
|
||||||
|
<p>If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:</p>
|
||||||
|
|
||||||
|
<pre> <program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>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”.</p>
|
||||||
|
|
||||||
|
<p>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
|
||||||
|
<<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>>.</p>
|
||||||
|
|
||||||
|
<p>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
|
||||||
|
<<a href="http://www.gnu.org/philosophy/why-not-lgpl.html">http://www.gnu.org/philosophy/why-not-lgpl.html</a>>.</p>
|
||||||
|
|
||||||
|
</body></html>
|
674
COPYING.gpl-3.0.txt
Normal file
674
COPYING.gpl-3.0.txt
Normal file
|
@ -0,0 +1,674 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
7
Dockerfile
Normal file
7
Dockerfile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
FROM php:7.2-apache
|
||||||
|
|
||||||
|
# Use the default production configuration
|
||||||
|
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||||
|
|
||||||
|
COPY . /var/www/html
|
||||||
|
|
33
Namestitev.txt
Normal file
33
Namestitev.txt
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
NAVODILA ZA NAMESTITEV:
|
||||||
|
|
||||||
|
1) vso kodo prekopiraj na strežnik v ustrezen direktorij, ki je dosegljiv na spletu
|
||||||
|
|
||||||
|
2) ustvari bazo
|
||||||
|
- ustvari novo bazo z imenom dialectsdb
|
||||||
|
- ustvari uporabnika, ki ima ustrezne privilegije (vse) nad to bazo
|
||||||
|
- uvozi tabele iz dialectsdb.sql (brez vnesenih podatkov)
|
||||||
|
|
||||||
|
3) uredi naslednje nastavitve
|
||||||
|
- v datoteki iknb/api/DBconnect.php nastavi up. ime in geslo za dostop do baze
|
||||||
|
$databaseUsername = 'ime';
|
||||||
|
$databasePassword = 'geslo';
|
||||||
|
|
||||||
|
- v datoteki iknb/api/config.php nastavi direktorij, v katerem se nahaja aplikacija
|
||||||
|
define('APP_PATH', '/iknb');
|
||||||
|
|
||||||
|
- v datoteki iknb/app.module.js nastavi pot do direktorija, če je aplikacija v direktoriju, sicer naj bo to prazen niz:
|
||||||
|
APP_PATH: '/iknb'
|
||||||
|
|
||||||
|
- v datoteki iknb/admin/admin.module.js nastavi pot do direktorija, če je aplikacija v direktoriju, sicer naj bo to prazen niz:
|
||||||
|
APP_PATH: '/iknb'
|
||||||
|
|
||||||
|
- v datoteki iknb/api/.htaccess dodaj pravilo, če je aplikacija v direktoriju iknb (oz. ustrezno drugo pravilo):
|
||||||
|
RewriteBase /iknb/
|
||||||
|
|
||||||
|
- za cel direktorij iknb\resources\audio (in vse datoteke) spremeni pravice na pisanje in izvajanje:
|
||||||
|
chmod -R 777 audio
|
||||||
|
|
||||||
|
|
||||||
|
4) v bazi je že vpisan administrator urednik, geslo pa je TaStaraHisaKmecka
|
||||||
|
|
||||||
|
5) administracija aplikacije je dosegljiva na spletu na /admin
|
29
README.md
Normal file
29
README.md
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
#O spletni aplikaciji
|
||||||
|
|
||||||
|
##Avtor
|
||||||
|
Avtor spletne aplikacije je Ivan Lovrić, študent Fakultete za računalništvo in informatiko Univerze v Ljubljani. Aplikacijo je izdelal v okviru diplomske naloge v letu 2018 pod mentorstvom viš. pred. dr. Alenke Kavčič (UL FRI) in somentorstvom prof. dr. Vere Smole (UL FF).
|
||||||
|
Izdelano spletno aplikacijo je z dodatnimi funkcionalnostmi nadgradil Nermin Jukan, študent Fakultete za računalništvo in informatiko Univerze v Ljubljani.
|
||||||
|
|
||||||
|
##Aplikacija
|
||||||
|
Interaktivna karta slovenskih narečnih besedil / Interactive map of Slovenian dialectal texts
|
||||||
|
Copyright © 2018 Ivan Lovrić (ivan@lovric.si)
|
||||||
|
|
||||||
|
Ta program spada med prosto programje; lahko ga razširjate in/ali spreminjate pod pogoji Splošnega dovoljenja GNU (GNU General Public License), različice 3, kot ga je objavila ustanova Free Software Foundation.
|
||||||
|
Ta program se razširja v upanju, da bo uporaben, vendar BREZ VSAKRŠNEGA JAMSTVA; tudi brez posredne zagotovitve CENOVNE VREDNOSTI ali PRIMERNOSTI ZA DOLOČEN NAMEN. Za podrobnosti glejte besedilo GNU General Public License.
|
||||||
|
Skupaj s tem programom bi morali prejeti izvod Splošnega dovoljenja GNU (GNU General Public License). Podrobnosti licence so dostopne tudi na spletni strani http://www.gnu.org/licenses.
|
||||||
|
|
||||||
|
Izvorna koda aplikacije je dosegljiva v repozitoriju Bitbucket: https://bitbucket.org/ul-fri-lgm/iknb.
|
||||||
|
|
||||||
|
##Vsebina (posnetki, transkripcije, poknjižitve in analize)
|
||||||
|
Vsebino za Interaktivno karto slovenskih narečnih besedil (IKNB) za temo Stare kmečke hiše so zbrali in pripravili študenti Oddelka za slovenistiko Filozofske fakultete Univerze v Ljubljani. Zvočne posnetke, transkripcije in poknjižitve besedil so prispevali študentje izbirnega predmeta Slovenska narečja pod vodstvom prof. dr. Vere Smole in asist. dr. Mojce Kumin Horvat, analize pa študentje izbirnega predmeta Poglavja iz zgodovine slovenskega glasoslovja in seminarja pri predmetu Slovenska dialektologija pod vodstvom prof. dr. Vere Smole.
|
||||||
|
Vsem študentom, preteklim in bodočim, in njihovim informatorjem se zahvaljujemo za sodelovanje in njihov prispevek.
|
||||||
|
|
||||||
|
##Karta slovenskih narečij
|
||||||
|
Interaktivna karta slovenskih narečnih besedil (IKNB) temelji na Karti slovenskih narečij. Karto sta priredila Tine Logar in Jakob Rigler (1983) na osnovi Dialektološke karte slovenskega jezika Frana Ramovša (1931), novejših raziskav in gradiva Inštituta za slovenski jezik ZRC SAZU, jo dopolnili Vera Smole in Jožica Škofic (2011) in nato še sodelavci Dialektološke sekcije ISJFR ZRC SAZU (2016).
|
||||||
|
|
||||||
|
© Inštitut za slovenski jezik Frana Ramovša ZRC SAZU, Geografski inštitut Antona Melika ZRC SAZU ter Inštitut za antropološke in prostorske študije ZRC SAZU, 2016
|
||||||
|
|
||||||
|
##Pisava ZRCola
|
||||||
|
Besedilo je bilo pripravljeno z vnašalnim sistemom ZRCola (http://zrcola.zrc-sazu.si), ki ga je na Znanstvenoraziskovalnem centru SAZU v Ljubljani (http://www.zrc-sazu.si) razvil Peter Weiss.
|
||||||
|
|
||||||
|
Zadnja sprememba: julij 2018, Nermin Jukan
|
45
admin/admin.config.js
Normal file
45
admin/admin.config.js
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsAdmin')
|
||||||
|
.config(function($routeProvider) {
|
||||||
|
$routeProvider
|
||||||
|
.when("/", {
|
||||||
|
template: "<admin></admin>" // list items
|
||||||
|
})
|
||||||
|
.when("/edit/:id", {
|
||||||
|
template: "<edit></edit>" // edit item
|
||||||
|
})
|
||||||
|
.when("/new/:id", {
|
||||||
|
template: "<new></new>" // edit item
|
||||||
|
})
|
||||||
|
.when('/login', {
|
||||||
|
template: '<auth></auth>'
|
||||||
|
})
|
||||||
|
.when('/users', {
|
||||||
|
template: '<users></users>'
|
||||||
|
})
|
||||||
|
.when('/user', {
|
||||||
|
template: '<user></user>'
|
||||||
|
})
|
||||||
|
.when('/password', {
|
||||||
|
template: '<password></password>'
|
||||||
|
})
|
||||||
|
.otherwise('/login');
|
||||||
|
})
|
||||||
|
|
||||||
|
.run(['$rootScope', '$location', '$cookieStore', '$http',
|
||||||
|
function ($rootScope, $location, $cookieStore, $http) {
|
||||||
|
// keep user logged in after page refresh
|
||||||
|
$rootScope.globals = $cookieStore.get('globals') || {};
|
||||||
|
if ($rootScope.globals.currentUser) {
|
||||||
|
$http.defaults.headers.common['Authorization'] = 'Basic ' + $rootScope.globals.currentUser.authdata; // jshint ignore:line
|
||||||
|
}
|
||||||
|
|
||||||
|
$rootScope.$on('$locationChangeStart', function (event, next, current) {
|
||||||
|
// redirect to login page if not logged in
|
||||||
|
if ($location.path() !== '/login' && !$rootScope.globals.currentUser) {
|
||||||
|
$location.path('/login');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}]);
|
14
admin/admin.module.js
Normal file
14
admin/admin.module.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsAdmin', [
|
||||||
|
'ui.bootstrap',
|
||||||
|
'ngRoute',
|
||||||
|
|
||||||
|
'ngCookies'
|
||||||
|
])
|
||||||
|
.constant('Config', {
|
||||||
|
// If app not in server root, add relative path, otherwise leave empty string. Define also in api/config.php and app.module.js!
|
||||||
|
APP_PATH: ''
|
||||||
|
});
|
||||||
|
|
58
admin/components/admin/admin.component.js
Normal file
58
admin/components/admin/admin.component.js
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
/*
|
||||||
|
* Edited by: Nermin Jukan, 63150367
|
||||||
|
* Date: 21. 05. 2018
|
||||||
|
* Modifications: Edited the delete function so that it shows the Name property and no the ID.
|
||||||
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsAdmin')
|
||||||
|
.component('admin', {
|
||||||
|
templateUrl: 'components/admin/admin.template.html',
|
||||||
|
controller: ['$http', '$location', 'dialectSelect', function AdminController($http, $location, dialectSelect) {
|
||||||
|
|
||||||
|
var vm = this;
|
||||||
|
vm.go = go;
|
||||||
|
vm.selectItems = dialectSelect;
|
||||||
|
vm.createNew = createNew;
|
||||||
|
getDialects();
|
||||||
|
|
||||||
|
|
||||||
|
function getDialects(){
|
||||||
|
$http.get('../api/dialects').then(function (result) {
|
||||||
|
vm.dialects = result.data;
|
||||||
|
}, function (error) {
|
||||||
|
console.log('Error getting dialects');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
vm.delete = function (id, name) {
|
||||||
|
|
||||||
|
if (confirm("Ali ste prepričani, da želite izbrisati vnos " + name + "?")) {
|
||||||
|
$http.delete('../api/dialects/'+id).then(function(result){
|
||||||
|
//console.log(result.data);
|
||||||
|
getDialects();
|
||||||
|
}, function(error){
|
||||||
|
console.log('Error deleting entry:', error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
function createNew() {
|
||||||
|
|
||||||
|
$http.post('../api/dialects').then(function (response) {
|
||||||
|
go('/new/' + response.data.id);
|
||||||
|
}, function (error) {
|
||||||
|
alert('Prišlo je do napake pri dodajanju novega vnosa:', error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function go(path) {
|
||||||
|
$location.path(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
}]
|
||||||
|
});
|
51
admin/components/admin/admin.template.html
Normal file
51
admin/components/admin/admin.template.html
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
<!---
|
||||||
|
* Edited by: Nermin Jukan, 63150367
|
||||||
|
* Date: 21. 05. 2018
|
||||||
|
* Modifications: Added a new attribute that is passed on to the delete function 'dialect.location_name' on line 43.
|
||||||
|
|
||||||
|
--->
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="toolbar" style="left:0px;">
|
||||||
|
<button type="button" ng-click="$ctrl.go('/login')" class="btn btn-warning">Odjava</button>
|
||||||
|
<!--<img src="/resources/icons/logout.png" height="32" style="cursor:pointer;" ng-click="$ctrl.go('/login')" title="Odjava">-->
|
||||||
|
<img src="../resources/icons/users.png" height="32" style="cursor:pointer;" ng-click="$ctrl.go('/users')" title="Uporabniki">
|
||||||
|
<img src="../resources/icons/lock.png" height="32" style="cursor:pointer;" ng-click="$ctrl.go('/password')" title="Menjava gesla">
|
||||||
|
</div>
|
||||||
|
<h1>Urejevalnik narečnih besedil</h1>
|
||||||
|
<div class="toolbar">
|
||||||
|
<button type="button" ng-click="$ctrl.createNew()" class="btn btn-primary save">Dodaj nov vnos</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<table class="table table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr bgcolor='#CCCCCC'>
|
||||||
|
<th>#</th>
|
||||||
|
<th>Kratica</th>
|
||||||
|
<th>Kraj</th>
|
||||||
|
<th>Narečje</th>
|
||||||
|
<th>Urejanje</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr ng-repeat="dialect in $ctrl.dialects | orderBy: 'location_name'">
|
||||||
|
<td>{{ $index + 1 }}</td>
|
||||||
|
<td>{{dialect.location_label}}</td>
|
||||||
|
<td>{{dialect.location_name}}</td>
|
||||||
|
<td ng-repeat="x in $ctrl.selectItems" ng-if="x.key === dialect.dialect_key">
|
||||||
|
{{x.name}}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<a href="#!/edit/{{dialect.id}}">Uredi</a> | <a href="" ng-click="$ctrl.delete(dialect.id, dialect.location_name)">Izbriši</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
25
admin/components/auth/auth.component.js
Normal file
25
admin/components/auth/auth.component.js
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsAdmin')
|
||||||
|
.component('auth', {
|
||||||
|
templateUrl: 'components/auth/auth.template.html',
|
||||||
|
controller: ['$scope', '$rootScope', '$location', 'AuthenticationService',
|
||||||
|
function ($scope, $rootScope, $location, AuthenticationService) {
|
||||||
|
// reset login status
|
||||||
|
AuthenticationService.ClearCredentials();
|
||||||
|
|
||||||
|
$scope.login = function () {
|
||||||
|
$scope.dataLoading = true;
|
||||||
|
AuthenticationService.Login($scope.username, $scope.password, function(response) {
|
||||||
|
if(response.success) {
|
||||||
|
AuthenticationService.SetCredentials($scope.username, $scope.password);
|
||||||
|
$location.path('/');
|
||||||
|
} else {
|
||||||
|
$scope.error = response.message;
|
||||||
|
$scope.dataLoading = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}]
|
||||||
|
});
|
130
admin/components/auth/auth.services.js
Normal file
130
admin/components/auth/auth.services.js
Normal file
|
@ -0,0 +1,130 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular.module('sloDialectsAdmin')
|
||||||
|
|
||||||
|
.factory('AuthenticationService',
|
||||||
|
['Base64', '$http', '$cookieStore', '$rootScope', '$timeout',
|
||||||
|
function (Base64, $http, $cookieStore, $rootScope, $timeout) {
|
||||||
|
var service = {};
|
||||||
|
|
||||||
|
service.Login = function (username, password, callback) {
|
||||||
|
|
||||||
|
$http.post('../api/authenticate', { username: username, password: password }).then(function (response) {
|
||||||
|
callback(response.data);
|
||||||
|
});
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
service.GetCredentials = function () {
|
||||||
|
return $rootScope.globals.currentUser;
|
||||||
|
};
|
||||||
|
|
||||||
|
service.SetCredentials = function (username, password) {
|
||||||
|
var authdata = Base64.encode(username + ':' + password);
|
||||||
|
|
||||||
|
$rootScope.globals = {
|
||||||
|
currentUser: {
|
||||||
|
username: username,
|
||||||
|
authdata: authdata,
|
||||||
|
admin: null
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$http.defaults.headers.common['Authorization'] = 'Basic ' + authdata; // jshint ignore:line
|
||||||
|
$cookieStore.put('globals', $rootScope.globals);
|
||||||
|
};
|
||||||
|
|
||||||
|
service.ClearCredentials = function () {
|
||||||
|
$rootScope.globals = {};
|
||||||
|
$cookieStore.remove('globals');
|
||||||
|
$http.defaults.headers.common.Authorization = 'Basic ';
|
||||||
|
};
|
||||||
|
|
||||||
|
return service;
|
||||||
|
}])
|
||||||
|
|
||||||
|
.factory('Base64', function () {
|
||||||
|
/* jshint ignore:start */
|
||||||
|
|
||||||
|
var keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
||||||
|
|
||||||
|
return {
|
||||||
|
encode: function (input) {
|
||||||
|
var output = "";
|
||||||
|
var chr1, chr2, chr3 = "";
|
||||||
|
var enc1, enc2, enc3, enc4 = "";
|
||||||
|
var i = 0;
|
||||||
|
|
||||||
|
do {
|
||||||
|
chr1 = input.charCodeAt(i++);
|
||||||
|
chr2 = input.charCodeAt(i++);
|
||||||
|
chr3 = input.charCodeAt(i++);
|
||||||
|
|
||||||
|
enc1 = chr1 >> 2;
|
||||||
|
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
|
||||||
|
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
|
||||||
|
enc4 = chr3 & 63;
|
||||||
|
|
||||||
|
if (isNaN(chr2)) {
|
||||||
|
enc3 = enc4 = 64;
|
||||||
|
} else if (isNaN(chr3)) {
|
||||||
|
enc4 = 64;
|
||||||
|
}
|
||||||
|
|
||||||
|
output = output +
|
||||||
|
keyStr.charAt(enc1) +
|
||||||
|
keyStr.charAt(enc2) +
|
||||||
|
keyStr.charAt(enc3) +
|
||||||
|
keyStr.charAt(enc4);
|
||||||
|
chr1 = chr2 = chr3 = "";
|
||||||
|
enc1 = enc2 = enc3 = enc4 = "";
|
||||||
|
} while (i < input.length);
|
||||||
|
|
||||||
|
return output;
|
||||||
|
},
|
||||||
|
|
||||||
|
decode: function (input) {
|
||||||
|
var output = "";
|
||||||
|
var chr1, chr2, chr3 = "";
|
||||||
|
var enc1, enc2, enc3, enc4 = "";
|
||||||
|
var i = 0;
|
||||||
|
|
||||||
|
// remove all characters that are not A-Z, a-z, 0-9, +, /, or =
|
||||||
|
var base64test = /[^A-Za-z0-9\+\/\=]/g;
|
||||||
|
if (base64test.exec(input)) {
|
||||||
|
window.alert("There were invalid base64 characters in the input text.\n" +
|
||||||
|
"Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\n" +
|
||||||
|
"Expect errors in decoding.");
|
||||||
|
}
|
||||||
|
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
|
||||||
|
|
||||||
|
do {
|
||||||
|
enc1 = keyStr.indexOf(input.charAt(i++));
|
||||||
|
enc2 = keyStr.indexOf(input.charAt(i++));
|
||||||
|
enc3 = keyStr.indexOf(input.charAt(i++));
|
||||||
|
enc4 = keyStr.indexOf(input.charAt(i++));
|
||||||
|
|
||||||
|
chr1 = (enc1 << 2) | (enc2 >> 4);
|
||||||
|
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
|
||||||
|
chr3 = ((enc3 & 3) << 6) | enc4;
|
||||||
|
|
||||||
|
output = output + String.fromCharCode(chr1);
|
||||||
|
|
||||||
|
if (enc3 != 64) {
|
||||||
|
output = output + String.fromCharCode(chr2);
|
||||||
|
}
|
||||||
|
if (enc4 != 64) {
|
||||||
|
output = output + String.fromCharCode(chr3);
|
||||||
|
}
|
||||||
|
|
||||||
|
chr1 = chr2 = chr3 = "";
|
||||||
|
enc1 = enc2 = enc3 = enc4 = "";
|
||||||
|
|
||||||
|
} while (i < input.length);
|
||||||
|
|
||||||
|
return output;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/* jshint ignore:end */
|
||||||
|
});
|
23
admin/components/auth/auth.template.html
Normal file
23
admin/components/auth/auth.template.html
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<div class="auth_container">
|
||||||
|
<h1>Urejevalnik narečnih besedil</h1>
|
||||||
|
<h2>Prijava</h2>
|
||||||
|
<div ng-show="error" class="alert alert-danger">{{error}}</div>
|
||||||
|
<form name="form" ng-submit="login()" role="form">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="username">Uporabniško ime</label>
|
||||||
|
<i class="fa fa-key"></i>
|
||||||
|
<input type="text" name="username" id="username" class="form-control" ng-model="username" required />
|
||||||
|
<span ng-show="form.username.$dirty && form.username.$error.required" class="help-block">Uporabniško ime je obvezno.</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="password">Geslo</label>
|
||||||
|
<i class="fa fa-lock"></i>
|
||||||
|
<input type="password" name="password" id="password" class="form-control" ng-model="password" required />
|
||||||
|
<span ng-show="form.password.$dirty && form.password.$error.required" class="help-block">Geslo je obvezno.</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-actions">
|
||||||
|
<button type="submit" ng-disabled="form.$invalid || dataLoading" class="btn btn-danger">Prijava</button>
|
||||||
|
<img ng-if="dataLoading" src="data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA=="/>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
207
admin/components/edit/edit.component.js
Normal file
207
admin/components/edit/edit.component.js
Normal file
|
@ -0,0 +1,207 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsAdmin')
|
||||||
|
.component('edit', {
|
||||||
|
templateUrl: 'components/edit/edit.template.html',
|
||||||
|
controller: ['$http', '$routeParams', 'dialectSelect', '$location', '$scope', '$timeout', 'Config', function EditController($http, $routeParams, dialectSelect, $location, $scope, $timeout, Config) {
|
||||||
|
|
||||||
|
var vm = this;
|
||||||
|
vm.id = parseInt($routeParams.id);
|
||||||
|
vm.selectItems = dialectSelect;
|
||||||
|
vm.uploadFile = uploadFile;
|
||||||
|
vm.createNewAnalysisItem = createNewAnalysisItem;
|
||||||
|
vm.deleteAnalysisItem = deleteAnalysisItem;
|
||||||
|
vm.save = save;
|
||||||
|
vm.go = go;
|
||||||
|
vm.deleteAudio = deleteAudio;
|
||||||
|
var audioPath;
|
||||||
|
vm.analysisPlaceholders = [
|
||||||
|
'Naglas', 'Dolgi samoglasniki', 'Kratki naglašeni samoglasniki', 'Nenaglašeni samoglasniki', 'Soglasniki', 'Oblikoslovni pojavi', 'Leksika'
|
||||||
|
];
|
||||||
|
|
||||||
|
if(vm.id && vm.id > 0){
|
||||||
|
getAllDialectData(vm.id);
|
||||||
|
}
|
||||||
|
|
||||||
|
function uploadFile(event){
|
||||||
|
//document.getElementById('audio').classList.remove('hidden');
|
||||||
|
|
||||||
|
//console.log(document.getElementById('selected'));
|
||||||
|
document.getElementById('selected').classList.remove('hidden');
|
||||||
|
document.getElementById('selected').innerText = document.getElementById('audio').value;
|
||||||
|
var file = event.target.files[0];
|
||||||
|
vm.fileFormData = new FormData();
|
||||||
|
vm.fileFormData.append('file',file);
|
||||||
|
file = null;
|
||||||
|
/*
|
||||||
|
vm.dialectData.audioFile = file;
|
||||||
|
vm.dialectData.audio = file.name;
|
||||||
|
var files = document.getElementById('audio').files[0];
|
||||||
|
|
||||||
|
*/
|
||||||
|
};
|
||||||
|
|
||||||
|
function getAllDialectData(id){
|
||||||
|
getDialectData(id);
|
||||||
|
getAnalysisData(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getDialectData(id){
|
||||||
|
$http.get('../api/dialects/'+id).then(function (result) {
|
||||||
|
vm.dialectData = result.data;
|
||||||
|
audioPath = Config.APP_PATH + vm.dialectData.audio;
|
||||||
|
if(vm.dialectData.audio){
|
||||||
|
var audio = document.createElement('AUDIO')
|
||||||
|
audio.id = 'audioID';
|
||||||
|
audio.controls = true;
|
||||||
|
audio.currentTime = 0;
|
||||||
|
document.getElementById('putAudio').appendChild(audio);
|
||||||
|
document.getElementById('audioID').src = audioPath;
|
||||||
|
}
|
||||||
|
}, function (error) {
|
||||||
|
console.log('Error getting dialects');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function getAnalysisData(id){
|
||||||
|
$http.get('../api/dialects/'+id+'/analysis/').then(function (result) {
|
||||||
|
vm.analysisData = prepareAnalysisData(result.data);
|
||||||
|
}, function (error) {
|
||||||
|
console.log('Error getting analysis');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function prepareAnalysisData(analysis) {
|
||||||
|
var _analysisData = [];
|
||||||
|
analysis.forEach(function (a) {
|
||||||
|
_analysisData[a.section] = _analysisData[a.section] || [];
|
||||||
|
_analysisData[a.section].push({
|
||||||
|
id: a.id,
|
||||||
|
section: a.section,
|
||||||
|
maintext: a.maintext,
|
||||||
|
examples: a.examples
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return _analysisData;
|
||||||
|
}
|
||||||
|
|
||||||
|
function createNewAnalysisItem(dialect_id, section_id){
|
||||||
|
return $http.post('../api/dialects/'+dialect_id+'/analysis', {"section_id": section_id}).then(function(result){
|
||||||
|
// add also to view model
|
||||||
|
vm.analysisData = vm.analysisData || [];
|
||||||
|
vm.analysisData[section_id] = vm.analysisData[section_id] || [];
|
||||||
|
vm.analysisData[section_id].push({
|
||||||
|
id: result.data.id,
|
||||||
|
section: section_id,
|
||||||
|
maintext: '',
|
||||||
|
examples: ''
|
||||||
|
});
|
||||||
|
console.log('Successfuly created new analysis item.', result);
|
||||||
|
}, function(error){
|
||||||
|
console.log('Error creating new analysis item.', error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function deleteAnalysisItem(dialect_id, analysis_id){
|
||||||
|
if(confirm('Ali ste prepričani, da želite izbrisati ta vnos? ' + dialect_id + ' ' + analysis_id)){
|
||||||
|
$http.delete('../api/dialects/'+dialect_id+'/analysis/'+analysis_id).then(function(response){
|
||||||
|
// remove from view model
|
||||||
|
for(var i in vm.analysisData){
|
||||||
|
vm.analysisData[i] = _.filter(vm.analysisData[i], function(e){
|
||||||
|
return e.id != analysis_id;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
console.log('Deleted analysis item with id', analysis_id + '. Response: ', response);
|
||||||
|
}, function(err){
|
||||||
|
console.log('Error deleting item ', analysis_id+':', err);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function deleteAudio(delete_id, audio) {
|
||||||
|
if(confirm('Ali ste prepričani, da želite izbrisati ta posnetek? ' + audio)){
|
||||||
|
if(delete_id && delete_id > 0){
|
||||||
|
document.getElementById('putAudio').removeChild(document.getElementById('putAudio').firstChild);
|
||||||
|
//console.log(delete_id);
|
||||||
|
var promise1 = $http.delete('../api/dialects/' + delete_id + '/audio', {
|
||||||
|
|
||||||
|
}).then(function(response){
|
||||||
|
getAllDialectData(delete_id);
|
||||||
|
//location.reload();
|
||||||
|
console.log('Datoteka je izbrisana.');
|
||||||
|
}, function(error){
|
||||||
|
alert('Prišlo je do napake pri brisanju.');
|
||||||
|
console.log('Error', error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function save(dialect_id, goBack){
|
||||||
|
if(dialect_id && dialect_id > 0){
|
||||||
|
var promise1 = $http.put('../api/dialects/'+dialect_id, {
|
||||||
|
analysisData: vm.analysisData,
|
||||||
|
dialectData: vm.dialectData
|
||||||
|
}).then(function(response){
|
||||||
|
//alert('Narečje je bilo uspešno shranjeno.');
|
||||||
|
}, function(error){
|
||||||
|
alert('Prišlo je do napake pri shranjevanju.');
|
||||||
|
console.log('Error', error);
|
||||||
|
});
|
||||||
|
|
||||||
|
if(vm.fileFormData){
|
||||||
|
if(document.getElementById('putAudio').firstChild){
|
||||||
|
document.getElementById('putAudio').removeChild(document.getElementById('putAudio').firstChild);
|
||||||
|
}
|
||||||
|
var promise2 = $http({
|
||||||
|
method: 'POST',
|
||||||
|
url: '../api/dialects/'+vm.id+'/files',
|
||||||
|
data: vm.fileFormData,
|
||||||
|
headers: {'Content-Type': undefined, 'Process-Data': false},
|
||||||
|
}).then(function(response){
|
||||||
|
//console.log(response);
|
||||||
|
if(!goBack){
|
||||||
|
location.reload();
|
||||||
|
//console.log(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('File uploaded.');
|
||||||
|
}, function(error){
|
||||||
|
console.log('Error uploading file:', error);
|
||||||
|
});
|
||||||
|
|
||||||
|
if(goBack){
|
||||||
|
Promise.all([promise1, promise2]).then(function() {
|
||||||
|
go('/');
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
alert('Spremembe so bile shranjene.')
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if(goBack){
|
||||||
|
Promise.all([promise1]).then(function() {
|
||||||
|
go('/');
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
alert('Spremembe so bile shranjene.')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
console.log('Dialect missing, cannot save.');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function go(path){
|
||||||
|
$location.path(path);
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
}, 0);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}]
|
||||||
|
});
|
176
admin/components/edit/edit.template.html
Normal file
176
admin/components/edit/edit.template.html
Normal file
|
@ -0,0 +1,176 @@
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="toolbar" style="left:16px;">
|
||||||
|
<button type="button" ng-click="$ctrl.go('/login')" class="btn btn-warning">Odjava</button>
|
||||||
|
</div>
|
||||||
|
<h1>Urejevalnik narečnih besedil</h1>
|
||||||
|
<div class="toolbar">
|
||||||
|
<button type="button" ng-click="$ctrl.save($ctrl.id, false)" class="btn btn-success save">Shrani</button>
|
||||||
|
<button type="button" ng-click="$ctrl.save($ctrl.id, true)" class="btn btn-default save">Shrani in zapri</button>
|
||||||
|
<button type="button" ng-click="$ctrl.go('/')" class="btn btn-danger">Prekliči</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
|
<form class="form-material" ng-submit="$ctrl.save();">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">Osnovni podatki</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-12">Oznaka</label>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<input type="text" name="location_label" ng-model="$ctrl.dialectData.location_label" placeholder="F" class="form-control form-control-line">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="example-email" class="col-md-12">Lokacija</label>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<input type="text" name="location_name" ng-model="$ctrl.dialectData.location_name" placeholder="Filovci" class="form-control form-control-line">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-12">Narečje oz. podnarečje</label>
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<select name="dialect_key" ng-model="$ctrl.dialectData.dialect_key" class="form-control form-control-line">
|
||||||
|
<option value="">--- Izberite ---</option>
|
||||||
|
<option ng-repeat="i in $ctrl.selectItems" value="{{i.key}}">{{ i.name }}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="example-email" class="col-md-12">Zemljepisna širina in dolžina</label>
|
||||||
|
<div class="form-row align-items-center">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" name="location_latitude" ng-model="$ctrl.dialectData.location_latitude" placeholder="46.662270" class="form-control form-control-line">
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" name="location_longitude" ng-model="$ctrl.dialectData.location_longitude" placeholder="16.299627" class="form-control form-control-line">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="example-metainfo" class="col-md-12">Metapodatki</label>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<pre><textarea name="metadata" ng-model="$ctrl.dialectData.metadata" placeholder="Posnel Janez Novak dne 1.1.2018, ..." class="form-control form-control-line" rows="2"></textarea></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="example-email" class="col-md-12">Zvočni zapis (priporočeno: mp3)</label>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<p ng-if="$ctrl.dialectData.audio">Naložena datoteka: {{$ctrl.dialectData.audio}}</p>
|
||||||
|
<button class="btn btn-warning" ng-if="$ctrl.dialectData.audio" type="button" ng-click="$ctrl.deleteAudio($ctrl.id, $ctrl.dialectData.audio)">Izbriši naloženo datoteko</button><br>
|
||||||
|
<p ng-if="!$ctrl.dialectData.audio">Ni naložene datoteke.</p>
|
||||||
|
<br><div id="putAudio"></div><br>
|
||||||
|
|
||||||
|
<input type="file" id="audio" style="visibility:hidden" custom-on-change="$ctrl.uploadFile">
|
||||||
|
<input ng-if="!$ctrl.dialectData.audio" type="button" value="Izberite datoteko" onclick="document.getElementById('audio').click();" class="btn btn-info"><br>
|
||||||
|
<p class="hidden" id="selected"></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- panel-body -->
|
||||||
|
</div><!-- panel -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">Besedilo</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-12">Transkripcija</label>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<textarea name="transcription" ng-model="$ctrl.dialectData.transcription" placeholder="Fˈčȧːs sọ biˈlẹː ˈiže pˈrec iˈnåčiše..." class="form-control form-control-line" rows="6"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-12">Poknjižitev</label>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<textarea name="literal_slovene" ng-model="$ctrl.dialectData.standard_slovene" placeholder="Včasih so bile hiše precej inačiše ‛drugačne’..." class="form-control form-control-line" rows="6"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- panel-body -->
|
||||||
|
</div><!-- panel -->
|
||||||
|
</div><!-- col -->
|
||||||
|
</div><!-- row -->
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="panel panel-default" id="analiza">
|
||||||
|
<div class="panel-heading">Analiza</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<table class="table table-bordered">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Sekcija</th>
|
||||||
|
<th>Opis</th>
|
||||||
|
<th>Primeri</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody ng-repeat="i in [1,2,3,4,5,6,7]">
|
||||||
|
<tr class="tr-head">
|
||||||
|
<td>{{ i }}</td>
|
||||||
|
<td colspan="2">
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<input type="text" name="section{{i}}" placeholder="{{$ctrl.analysisPlaceholders[i-1]}}" ng-model="$ctrl.dialectData['analysis'+i]" class="form-control form-control-line">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr ng-repeat="a in $ctrl.analysisData[i]" class="analysis-items">
|
||||||
|
<td>{{i}}.{{$index+1}} <!--<a style="background:red; color:white;" href="" ng-click="$ctrl.deleteAnalysisItem(i, $index+1)">DELETE</a>-->
|
||||||
|
<button type="button" class="close" ng-click="$ctrl.deleteAnalysisItem($ctrl.id, a.id)" aria-label="Close"><span style="color:red;" title="Izbriši">×</span></button>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<textarea name="maintext[i][$index]" ng-model="$ctrl.analysisData[i][$index].maintext" class="form-control form-control-line" rows="5"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<textarea name="example[i][$index]" ng-model="$ctrl.analysisData[i][$index].examples" class="form-control form-control-line" rows="5"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="analysis-items">
|
||||||
|
<td></td>
|
||||||
|
<td colspan="2">
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<button type="button" class="btn btn-default" ng-click="$ctrl.createNewAnalysisItem($ctrl.id, i)">+ dodaj vnos</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div><!-- panel-body -->
|
||||||
|
</div><!-- panel -->
|
||||||
|
</div><!-- col -->
|
||||||
|
</div><!-- row -->
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div><!-- container -->
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="toolbar-bottom">
|
||||||
|
<button type="button" ng-click="$ctrl.save($ctrl.id, false)" class="btn btn-success save">Shrani</button>
|
||||||
|
<button type="button" ng-click="$ctrl.save($ctrl.id, true)" class="btn btn-default save">Shrani in zapri</button>
|
||||||
|
<button type="button" ng-click="$ctrl.go('/')" class="btn btn-danger">Prekliči</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
220
admin/components/new/new.component.js
Normal file
220
admin/components/new/new.component.js
Normal file
|
@ -0,0 +1,220 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsAdmin')
|
||||||
|
.component('new', {
|
||||||
|
templateUrl: 'components/new/new.template.html',
|
||||||
|
controller: ['$http', '$routeParams', 'dialectSelect', '$location', '$scope', '$timeout', 'Config', function NewController($http, $routeParams, dialectSelect, $location, $scope, $timeout, Config) {
|
||||||
|
|
||||||
|
var vm = this;
|
||||||
|
vm.id = parseInt($routeParams.id);
|
||||||
|
vm.selectItems = dialectSelect;
|
||||||
|
vm.uploadFile = uploadFile;
|
||||||
|
vm.createNewAnalysisItem = createNewAnalysisItem;
|
||||||
|
vm.deleteAnalysisItem = deleteAnalysisItem;
|
||||||
|
vm.save = save;
|
||||||
|
vm.go = go;
|
||||||
|
vm.cancel = cancel;
|
||||||
|
vm.deleteAudio = deleteAudio;
|
||||||
|
var audioPath;
|
||||||
|
vm.analysisPlaceholders = [
|
||||||
|
'Naglas', 'Dolgi samoglasniki', 'Kratki naglašeni samoglasniki', 'Nenaglašeni samoglasniki', 'Soglasniki', 'Oblikoslovni pojavi', 'Leksika'
|
||||||
|
];
|
||||||
|
|
||||||
|
if(vm.id && vm.id > 0){
|
||||||
|
getAllDialectData(vm.id);
|
||||||
|
}
|
||||||
|
|
||||||
|
function uploadFile(event){
|
||||||
|
//document.getElementById('audio').classList.remove('hidden');
|
||||||
|
|
||||||
|
//console.log(document.getElementById('selected'));
|
||||||
|
document.getElementById('selected').classList.remove('hidden');
|
||||||
|
document.getElementById('selected').innerText = document.getElementById('audio').value;
|
||||||
|
var file = event.target.files[0];
|
||||||
|
vm.fileFormData = new FormData();
|
||||||
|
vm.fileFormData.append('file',file);
|
||||||
|
file = null;
|
||||||
|
/*
|
||||||
|
vm.dialectData.audioFile = file;
|
||||||
|
vm.dialectData.audio = file.name;
|
||||||
|
var files = document.getElementById('audio').files[0];
|
||||||
|
|
||||||
|
*/
|
||||||
|
};
|
||||||
|
|
||||||
|
function getAllDialectData(id){
|
||||||
|
getDialectData(id);
|
||||||
|
getAnalysisData(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getDialectData(id){
|
||||||
|
$http.get('../api/dialects/'+id).then(function (result) {
|
||||||
|
vm.dialectData = result.data;
|
||||||
|
audioPath = Config.APP_PATH + vm.dialectData.audio;
|
||||||
|
if(vm.dialectData.audio){
|
||||||
|
var audio = document.createElement('AUDIO')
|
||||||
|
audio.id = 'audioID';
|
||||||
|
audio.controls = true;
|
||||||
|
audio.currentTime = 0;
|
||||||
|
document.getElementById('putAudio').appendChild(audio);
|
||||||
|
document.getElementById('audioID').src = audioPath;
|
||||||
|
}
|
||||||
|
}, function (error) {
|
||||||
|
console.log('Error getting dialects');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function getAnalysisData(id){
|
||||||
|
$http.get('../api/dialects/'+id+'/analysis/').then(function (result) {
|
||||||
|
vm.analysisData = prepareAnalysisData(result.data);
|
||||||
|
}, function (error) {
|
||||||
|
console.log('Error getting analysis');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function prepareAnalysisData(analysis) {
|
||||||
|
var _analysisData = [];
|
||||||
|
analysis.forEach(function (a) {
|
||||||
|
_analysisData[a.section] = _analysisData[a.section] || [];
|
||||||
|
_analysisData[a.section].push({
|
||||||
|
id: a.id,
|
||||||
|
section: a.section,
|
||||||
|
maintext: a.maintext,
|
||||||
|
examples: a.examples
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return _analysisData;
|
||||||
|
}
|
||||||
|
|
||||||
|
function createNewAnalysisItem(dialect_id, section_id){
|
||||||
|
return $http.post('../api/dialects/'+dialect_id+'/analysis', {"section_id": section_id}).then(function(result){
|
||||||
|
// add also to view model
|
||||||
|
vm.analysisData = vm.analysisData || [];
|
||||||
|
vm.analysisData[section_id] = vm.analysisData[section_id] || [];
|
||||||
|
vm.analysisData[section_id].push({
|
||||||
|
id: result.data.id,
|
||||||
|
section: section_id,
|
||||||
|
maintext: '',
|
||||||
|
examples: ''
|
||||||
|
});
|
||||||
|
console.log('Successfuly created new analysis item.', result);
|
||||||
|
}, function(error){
|
||||||
|
console.log('Error creating new analysis item.', error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function deleteAnalysisItem(dialect_id, analysis_id){
|
||||||
|
if(confirm('Ali ste prepričani, da želite izbrisati ta vnos? ' + dialect_id + ' ' + analysis_id)){
|
||||||
|
$http.delete('../api/dialects/'+dialect_id+'/analysis/'+analysis_id).then(function(response){
|
||||||
|
// remove from view model
|
||||||
|
for(var i in vm.analysisData){
|
||||||
|
vm.analysisData[i] = _.filter(vm.analysisData[i], function(e){
|
||||||
|
return e.id != analysis_id;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
console.log('Deleted analysis item with id', analysis_id + '. Response: ', response);
|
||||||
|
}, function(err){
|
||||||
|
console.log('Error deleting item ', analysis_id+':', err);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function deleteAudio(delete_id, audio) {
|
||||||
|
if(confirm('Ali ste prepričani, da želite izbrisati ta posnetek? ' + audio)){
|
||||||
|
if(delete_id && delete_id > 0){
|
||||||
|
document.getElementById('putAudio').removeChild(document.getElementById('putAudio').firstChild);
|
||||||
|
//console.log(delete_id);
|
||||||
|
var promise1 = $http.delete('../api/dialects/' + delete_id + '/audio', {
|
||||||
|
|
||||||
|
}).then(function(response){
|
||||||
|
getAllDialectData(delete_id);
|
||||||
|
//location.reload();
|
||||||
|
console.log('Datoteka je izbrisana.');
|
||||||
|
}, function(error){
|
||||||
|
alert('Prišlo je do napake pri brisanju.');
|
||||||
|
console.log('Error', error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function save(dialect_id, goBack){
|
||||||
|
if(dialect_id && dialect_id > 0){
|
||||||
|
var promise1 = $http.put('../api/dialects/'+dialect_id, {
|
||||||
|
analysisData: vm.analysisData,
|
||||||
|
dialectData: vm.dialectData
|
||||||
|
}).then(function(response){
|
||||||
|
//alert('Narečje je bilo uspešno shranjeno.');
|
||||||
|
}, function(error){
|
||||||
|
alert('Prišlo je do napake pri shranjevanju.');
|
||||||
|
console.log('Error', error);
|
||||||
|
});
|
||||||
|
|
||||||
|
if(vm.fileFormData){
|
||||||
|
if(document.getElementById('putAudio').firstChild){
|
||||||
|
document.getElementById('putAudio').removeChild(document.getElementById('putAudio').firstChild);
|
||||||
|
}
|
||||||
|
var promise2 = $http({
|
||||||
|
method: 'POST',
|
||||||
|
url: '../api/dialects/'+vm.id+'/files',
|
||||||
|
data: vm.fileFormData,
|
||||||
|
headers: {'Content-Type': undefined, 'Process-Data': false},
|
||||||
|
}).then(function(response){
|
||||||
|
//console.log(response);
|
||||||
|
if(!goBack){
|
||||||
|
location.reload();
|
||||||
|
//console.log(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('File uploaded.');
|
||||||
|
}, function(error){
|
||||||
|
console.log('Error uploading file:', error);
|
||||||
|
});
|
||||||
|
|
||||||
|
if(goBack){
|
||||||
|
Promise.all([promise1, promise2]).then(function() {
|
||||||
|
go('/');
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
Promise.all([promise1, promise2]).then(function() {
|
||||||
|
go('edit/'+vm.id);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if(goBack){
|
||||||
|
Promise.all([promise1]).then(function() {
|
||||||
|
go('/');
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
go('edit/'+vm.id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
console.log('Dialect missing, cannot save.');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function go(path){
|
||||||
|
$location.path(path);
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
}, 0);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function cancel(path){
|
||||||
|
if(confirm("Nov vnos se ne bo shranil, ali želite nadaljevati?")) {
|
||||||
|
$http.delete('../api/dialects/'+vm.id).then(function(result){
|
||||||
|
go(path);
|
||||||
|
}, function(error){
|
||||||
|
console.log('Error deleting entry:', error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}]
|
||||||
|
});
|
176
admin/components/new/new.template.html
Normal file
176
admin/components/new/new.template.html
Normal file
|
@ -0,0 +1,176 @@
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="toolbar" style="left:16px;">
|
||||||
|
<button type="button" ng-click="$ctrl.go('/login')" class="btn btn-warning">Odjava</button>
|
||||||
|
</div>
|
||||||
|
<h1>Urejevalnik narečnih besedil</h1>
|
||||||
|
<div class="toolbar">
|
||||||
|
<button type="button" ng-click="$ctrl.save($ctrl.id, false)" class="btn btn-success save">Shrani</button>
|
||||||
|
<button type="button" ng-click="$ctrl.save($ctrl.id, true)" class="btn btn-default save">Shrani in zapri</button>
|
||||||
|
<button type="button" ng-click="$ctrl.cancel('/')" class="btn btn-danger">Prekliči</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
|
<form class="form-material" ng-submit="$ctrl.save();">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">Osnovni podatki</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-12">Oznaka</label>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<input type="text" id="oznaka" name="location_label" ng-model="$ctrl.dialectData.location_label" placeholder="F" class="form-control form-control-line">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="example-email" class="col-md-12">Lokacija</label>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<input type="text" id="lokacija" name="location_name" ng-model="$ctrl.dialectData.location_name" placeholder="Filovci" class="form-control form-control-line">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-12">Narečje oz. podnarečje</label>
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<select id="narecje" name="dialect_key" ng-model="$ctrl.dialectData.dialect_key" class="form-control form-control-line">
|
||||||
|
<option value="">--- Izberite ---</option>
|
||||||
|
<option ng-repeat="i in $ctrl.selectItems" value="{{i.key}}">{{ i.name }}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="example-email" class="col-md-12">Zemljepisna širina in dolžina</label>
|
||||||
|
<div class="form-row align-items-center">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" name="location_latitude" ng-model="$ctrl.dialectData.location_latitude" placeholder="46.662270" class="form-control form-control-line">
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" name="location_longitude" ng-model="$ctrl.dialectData.location_longitude" placeholder="16.299627" class="form-control form-control-line">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="example-metainfo" class="col-md-12">Metapodatki</label>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<pre><textarea name="metadata" ng-model="$ctrl.dialectData.metadata" placeholder="Posnel Janez Novak dne 1.1.2018, ..." class="form-control form-control-line" rows="2"></textarea></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="example-email" class="col-md-12">Zvočni zapis (priporočeno: mp3)</label>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<p ng-if="$ctrl.dialectData.audio">Naložena datoteka: {{$ctrl.dialectData.audio}}</p>
|
||||||
|
<button class="btn btn-warning" ng-if="$ctrl.dialectData.audio" type="button" ng-click="$ctrl.deleteAudio($ctrl.id, $ctrl.dialectData.audio)">Izbriši naloženo datoteko</button><br>
|
||||||
|
<p ng-if="!$ctrl.dialectData.audio">Ni naložene datoteke.</p>
|
||||||
|
<br><div id="putAudio"></div><br>
|
||||||
|
|
||||||
|
<input type="file" id="audio" style="visibility:hidden" custom-on-change="$ctrl.uploadFile">
|
||||||
|
<input ng-if="!$ctrl.dialectData.audio" type="button" value="Izberite datoteko" onclick="document.getElementById('audio').click();" class="btn btn-info"><br>
|
||||||
|
<p class="hidden" id="selected"></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- panel-body -->
|
||||||
|
</div><!-- panel -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">Besedilo</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-12">Transkripcija</label>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<textarea name="transcription" ng-model="$ctrl.dialectData.transcription" placeholder="Fˈčȧːs sọ biˈlẹː ˈiže pˈrec iˈnåčiše..." class="form-control form-control-line" rows="6"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-12">Poknjižitev</label>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<textarea name="literal_slovene" ng-model="$ctrl.dialectData.standard_slovene" placeholder="Včasih so bile hiše precej inačiše ‛drugačne’..." class="form-control form-control-line" rows="6"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- panel-body -->
|
||||||
|
</div><!-- panel -->
|
||||||
|
</div><!-- col -->
|
||||||
|
</div><!-- row -->
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="panel panel-default" id="analiza">
|
||||||
|
<div class="panel-heading">Analiza</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<table class="table table-bordered">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Sekcija</th>
|
||||||
|
<th>Opis</th>
|
||||||
|
<th>Primeri</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody ng-repeat="i in [1,2,3,4,5,6,7]">
|
||||||
|
<tr class="tr-head">
|
||||||
|
<td>{{ i }}</td>
|
||||||
|
<td colspan="2">
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<input type="text" name="section{{i}}" placeholder="{{$ctrl.analysisPlaceholders[i-1]}}" ng-model="$ctrl.dialectData['analysis'+i]" class="form-control form-control-line">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr ng-repeat="a in $ctrl.analysisData[i]" class="analysis-items">
|
||||||
|
<td>{{i}}.{{$index+1}} <!--<a style="background:red; color:white;" href="" ng-click="$ctrl.deleteAnalysisItem(i, $index+1)">DELETE</a>-->
|
||||||
|
<button type="button" class="close" ng-click="$ctrl.deleteAnalysisItem($ctrl.id, a.id)" aria-label="Close"><span style="color:red;" title="Izbriši">×</span></button>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<textarea name="maintext[i][$index]" ng-model="$ctrl.analysisData[i][$index].maintext" class="form-control form-control-line" rows="5"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<textarea name="example[i][$index]" ng-model="$ctrl.analysisData[i][$index].examples" class="form-control form-control-line" rows="5"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="analysis-items">
|
||||||
|
<td></td>
|
||||||
|
<td colspan="2">
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<button type="button" class="btn btn-default" ng-click="$ctrl.createNewAnalysisItem($ctrl.id, i)">+ dodaj vnos</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div><!-- panel-body -->
|
||||||
|
</div><!-- panel -->
|
||||||
|
</div><!-- col -->
|
||||||
|
</div><!-- row -->
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div><!-- container -->
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="toolbar-bottom">
|
||||||
|
<button type="button" ng-click="$ctrl.save($ctrl.id, false)" class="btn btn-success save">Shrani</button>
|
||||||
|
<button type="button" ng-click="$ctrl.save($ctrl.id, true)" class="btn btn-default save">Shrani in zapri</button>
|
||||||
|
<button type="button" ng-click="$ctrl.go('/')" class="btn btn-danger">Prekliči</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
39
admin/components/password/password.component.js
Normal file
39
admin/components/password/password.component.js
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsAdmin')
|
||||||
|
.component('password', {
|
||||||
|
templateUrl: 'components/password/password.template.html',
|
||||||
|
controller: ['$http', '$location', '$timeout', function PasswordController($http, $location, $timeout) {
|
||||||
|
|
||||||
|
var vm = this;
|
||||||
|
vm.go = go;
|
||||||
|
|
||||||
|
vm.username = "";
|
||||||
|
|
||||||
|
vm.changePassword = function(){
|
||||||
|
|
||||||
|
vm.error = "";
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
$http.put('../api/changePassword', {old_password: vm.old_password, new_password: vm.new_password, new_password_repeat: vm.new_password_repeat}).then(function (result) {
|
||||||
|
if(result.data.success){
|
||||||
|
vm.success = result.data.message;
|
||||||
|
$timeout(function(){
|
||||||
|
go('/login');
|
||||||
|
}, 3000);
|
||||||
|
} else {
|
||||||
|
vm.error = result.data.message;
|
||||||
|
}
|
||||||
|
}, function (error, x) {
|
||||||
|
vm.error = "Prišlo je do napake pri zahtevi za menjavo gesla.";
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function go(path) {
|
||||||
|
$location.path(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
}]
|
||||||
|
});
|
44
admin/components/password/password.template.html
Normal file
44
admin/components/password/password.template.html
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="toolbar" style="left:0px;">
|
||||||
|
<button type="button" ng-click="$ctrl.go('/')" class="btn btn-default">Nazaj</button>
|
||||||
|
<button type="button" ng-click="$ctrl.go('/login')" class="btn btn-warning">Odjava</button>
|
||||||
|
</div>
|
||||||
|
<h1>Sprememba gesla</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="auth_container">
|
||||||
|
<div ng-show="$ctrl.error" class="alert alert-danger">{{$ctrl.error}}</div>
|
||||||
|
<div ng-show="$ctrl.success" class="alert alert-success" role="alert">{{$ctrl.success}}</div>
|
||||||
|
<form ng-hide="$ctrl.success" name="form" ng-submit="$ctrl.changePassword()" role="form">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="old_password">Staro geslo</label>
|
||||||
|
<i class="fa fa-key"></i>
|
||||||
|
<input type="password" name="old_password" id="old_password" class="form-control" ng-model="$ctrl.old_password" required />
|
||||||
|
<span ng-show="form.old_password.$dirty && form.old_password.$error.required" class="help-block">Staro geslo je zahtevano</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="new_password">Novo geslo</label>
|
||||||
|
<i class="fa fa-lock"></i>
|
||||||
|
<input type="password" name="new_password" id="new_password" class="form-control" ng-model="$ctrl.new_password" required />
|
||||||
|
<span ng-show="form.new_password.$dirty && form.new_password.$error.required" class="help-block">Novo geslo je zahtevano</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="new_password_repeat">Ponovite novo geslo</label>
|
||||||
|
<i class="fa fa-lock"></i>
|
||||||
|
<input type="password" name="new_password_repeat" id="new_password_repeat" class="form-control" ng-model="$ctrl.new_password_repeat" required />
|
||||||
|
<span ng-show="form.new_password_repeat.$dirty && form.new_password_repeat.$error.required" class="help-block">Novo geslo je zahtevano</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-actions">
|
||||||
|
<button type="submit" ng-disabled="form.$invalid || dataLoading" class="btn btn-danger">Shrani</button>
|
||||||
|
<img ng-if="dataLoading" src="data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA=="/>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
42
admin/components/user/user.component.js
Normal file
42
admin/components/user/user.component.js
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsAdmin')
|
||||||
|
.component('user', {
|
||||||
|
templateUrl: 'components/user/user.template.html',
|
||||||
|
controller: ['$http', '$location', '$timeout', function UsersController($http, $location, $timeout) {
|
||||||
|
|
||||||
|
var vm = this;
|
||||||
|
vm.go = go;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
vm.addUser = function(){
|
||||||
|
|
||||||
|
vm.success = "";
|
||||||
|
vm.error = "";
|
||||||
|
var is_admin = vm.is_admin ? 1 : 0;
|
||||||
|
$http.post('../api/users', {name: vm.name, username: vm.username, password: vm.password, password_repeat: vm.password_repeat, is_admin: is_admin}).then(function (result) {
|
||||||
|
var data = result.data;
|
||||||
|
if(data.success){
|
||||||
|
vm.success = data.message;
|
||||||
|
|
||||||
|
$timeout(function(){
|
||||||
|
go('/users');
|
||||||
|
}, 3000);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
vm.error = data.message;
|
||||||
|
}
|
||||||
|
}, function (error) {
|
||||||
|
console.log('Error creating user', error);
|
||||||
|
vm.error = error;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function go(path) {
|
||||||
|
$location.path(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
}]
|
||||||
|
});
|
51
admin/components/user/user.template.html
Normal file
51
admin/components/user/user.template.html
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="toolbar" style="left:0px;">
|
||||||
|
<button type="button" ng-click="$ctrl.go('/users')" class="btn btn-default">Nazaj</button>
|
||||||
|
<button type="button" ng-click="$ctrl.go('/login')" class="btn btn-warning">Odjava</button>
|
||||||
|
</div>
|
||||||
|
<h1>Nov uporabnik</h1>
|
||||||
|
<div class="toolbar">
|
||||||
|
<button type="button" ng-click="$ctrl.addUser()" class="btn btn-success save">Dodaj uporabnika</button>
|
||||||
|
<img ng-if="dataLoading" src="data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAkKAAAALAAAAAAQABAAAAMyCLrc/jDKSatlQtScKdceCAjDII7HcQ4EMTCpyrCuUBjCYRgHVtqlAiB1YhiCnlsRkAAAOwAAAAAAAAAAAA=="/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="auth_container">
|
||||||
|
<div ng-show="$ctrl.error" class="alert alert-danger">{{$ctrl.error}}</div>
|
||||||
|
<div ng-show="$ctrl.success" class="alert alert-success" role="alert">{{$ctrl.success}}</div>
|
||||||
|
|
||||||
|
<form ng-hide="$ctrl.success" name="form" ng-submit="$ctrl.createNewUser()" role="form">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="username">Ime in priimek</label>
|
||||||
|
<input type="text" name="name" id="name" class="form-control" ng-model="$ctrl.name" required />
|
||||||
|
<span ng-show="form.name.$dirty && form.name.$error.required" class="help-block">Polno ime je zahtevano</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="username">Uporabniško ime</label>
|
||||||
|
<input type="text" name="username" id="username" class="form-control" ng-model="$ctrl.username" required />
|
||||||
|
<span ng-show="form.username.$dirty && form.username.$error.required" class="help-block">Uporabniško ime je zahtevano</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="password">Geslo</label>
|
||||||
|
<input type="password" name="password" id="password" class="form-control" ng-model="$ctrl.password" required />
|
||||||
|
<span ng-show="form.password.$dirty && form.password.$error.required" class="help-block">Geslo je zahtevano</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="password_repeat">Ponovite geslo</label>
|
||||||
|
<input type="password" name="password_repeat" id="password_repeat" class="form-control" ng-model="$ctrl.password_repeat" required />
|
||||||
|
<span ng-show="form.password_repeat.$dirty && form.password_repeat.$error.required" class="help-block">Geslo je zahtevano</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="is_admin" style="display:inline-block;">Skrbnik</label>
|
||||||
|
<input type="checkbox" name="is_admin" id="is_admin" class="form-control" style="display: inline-block; width: 34px; margin-left: 10px; bottom: -10px; position: relative;" ng-model="$ctrl.is_admin" required />
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
65
admin/components/users/users.component.js
Normal file
65
admin/components/users/users.component.js
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
/*
|
||||||
|
* Edited by: Nermin Jukan, 63150367
|
||||||
|
* Date: 21. 05. 2018
|
||||||
|
* Modifications: Added a delete users function on lines 31-40.
|
||||||
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsAdmin')
|
||||||
|
.component('users', {
|
||||||
|
templateUrl: 'components/users/users.template.html',
|
||||||
|
controller: ['$http', '$location', 'AuthenticationService',
|
||||||
|
function UsersController($http, $location, AuthenticationService) {
|
||||||
|
|
||||||
|
var vm = this;
|
||||||
|
vm.go = go;
|
||||||
|
|
||||||
|
vm.user = AuthenticationService.GetCredentials();
|
||||||
|
vm.user.admin = isAdmin(vm.user.username);
|
||||||
|
|
||||||
|
|
||||||
|
//vm.users = [];
|
||||||
|
|
||||||
|
getUsers();
|
||||||
|
|
||||||
|
function isAdmin(username) {
|
||||||
|
//console.log(username);
|
||||||
|
$http.post('../api/admin/', {username: username}).then(function (result) {
|
||||||
|
//console.log(result.data);
|
||||||
|
vm.user.admin = result.data.is_admin;
|
||||||
|
//console.log(vm.user.admin);
|
||||||
|
}, function (error) {
|
||||||
|
console.log('Error retrieving admin rights', error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
function getUsers() {
|
||||||
|
$http.get('../api/users').then(function (result) {
|
||||||
|
vm.users = result.data;
|
||||||
|
}, function (error) {
|
||||||
|
console.log('Error getting users', error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
vm.delete = function (id, name) {
|
||||||
|
if (confirm("Ali ste prepričani, da želite izbrisati uporabnika " + name + "?")) {
|
||||||
|
$http.delete('../api/users/'+id).then(function(result){
|
||||||
|
console.log(result.data);
|
||||||
|
getUsers();
|
||||||
|
}, function(error){
|
||||||
|
console.log('Error deleting entry:', error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
function go(path) {
|
||||||
|
$location.path(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}]
|
||||||
|
});
|
45
admin/components/users/users.template.html
Normal file
45
admin/components/users/users.template.html
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
<!---
|
||||||
|
* Edited by: Nermin Jukan, 63150367
|
||||||
|
* Date: 16. 05. 2018
|
||||||
|
* Modifications: Added a new table header in line 33, inserted a delete-'izbrisi' link, that deletes a user.
|
||||||
|
|
||||||
|
--->
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="toolbar" style="left:0px;">
|
||||||
|
<button type="button" ng-click="$ctrl.go('/')" class="btn btn-default">Nazaj</button>
|
||||||
|
<button type="button" ng-click="$ctrl.go('/login')" class="btn btn-warning">Odjava</button>
|
||||||
|
</div>
|
||||||
|
<h1>Uporabniški računi</h1>
|
||||||
|
<div class="toolbar">
|
||||||
|
<button type="button" ng-if="$ctrl.user.admin == 1" ng-click="$ctrl.go('/user')" class="btn btn-primary save">Dodaj uporabnika</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<table class="table table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr bgcolor='#CCCCCC'>
|
||||||
|
<th>#</th>
|
||||||
|
<th>Ime in priimek</th>
|
||||||
|
<th>Uporabniško ime</th>
|
||||||
|
<th title="Lahko dodaja in briše uporabnike">Skrbnik</th>
|
||||||
|
<th ng-if="$ctrl.user.admin == 1">Upravljanje</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr ng-repeat="user in $ctrl.users">
|
||||||
|
<td>{{ $index + 1 }}</td>
|
||||||
|
<td>{{user.name}}</td>
|
||||||
|
<td>{{user.username}}</td>
|
||||||
|
<td>{{(user.is_admin == 1) ? 'da' : 'ne'}}</td>
|
||||||
|
<td ng-if="$ctrl.user.admin == 1"><a href="" ng-if="user.username !== $ctrl.user.username && $ctrl.user.admin == 1" ng-click="$ctrl.delete(user.id, user.name)">Izbriši</a></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
16
admin/directives/customOnChange.directive.js
Normal file
16
admin/directives/customOnChange.directive.js
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsAdmin')
|
||||||
|
.directive('customOnChange', function () {
|
||||||
|
return {
|
||||||
|
restrict: 'A',
|
||||||
|
link: function (scope, element, attrs) {
|
||||||
|
var onChangeHandler = scope.$eval(attrs.customOnChange);
|
||||||
|
element.on('change', onChangeHandler);
|
||||||
|
element.on('$destroy', function () {
|
||||||
|
element.off();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
50
admin/index.html
Normal file
50
admin/index.html
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
<?php require_once('authenticate.php'); ?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html ng-app="sloDialectsAdmin">
|
||||||
|
<head>
|
||||||
|
<title>Urejanje - Interaktivna karta slovenskih narečnih besedil</title>
|
||||||
|
<meta name="viewport" content="initial-scale=1.0">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="author" content="Ivan Lovrić - ivan@lovric.si">
|
||||||
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
||||||
|
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||||||
|
|
||||||
|
<!-- styles -->
|
||||||
|
<link rel="stylesheet" type="text/css" href="../style/bootstrap.min.css">
|
||||||
|
<link rel="stylesheet" type="text/css" href="../style/admin.css">
|
||||||
|
|
||||||
|
<!-- vendor -->
|
||||||
|
<script src="../vendor/lodash.min.js"></script>
|
||||||
|
<script src="../vendor/angular.min.js"></script>
|
||||||
|
<script src="../vendor/angular-route.min.js"></script>
|
||||||
|
<script src="../vendor/angular-cookies.min.js"></script>
|
||||||
|
<script src="../vendor/ui-bootstrap-2.5.0.min.js"></script>
|
||||||
|
<script src="../vendor/ui-bootstrap-tpls-2.5.0.min.js"></script>
|
||||||
|
|
||||||
|
<!-- main -->
|
||||||
|
<script src="admin.module.js"></script>
|
||||||
|
<script src="admin.config.js"></script>
|
||||||
|
|
||||||
|
<!-- components -->
|
||||||
|
<script src="components/admin/admin.component.js"></script>
|
||||||
|
<script src="components/edit/edit.component.js"></script>
|
||||||
|
<script src="components/new/new.component.js"></script>
|
||||||
|
<script src="components/users/users.component.js"></script>
|
||||||
|
<script src="components/user/user.component.js"></script>
|
||||||
|
<script src="components/password/password.component.js"></script>
|
||||||
|
<script src="components/auth/auth.component.js"></script>
|
||||||
|
<script src="components/auth/auth.services.js"></script>
|
||||||
|
|
||||||
|
<!-- services -->
|
||||||
|
<script src="services/dialectselect.service.js"></script>
|
||||||
|
|
||||||
|
<!-- directives -->
|
||||||
|
<script src="directives/customOnChange.directive.js"></script>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<ng-view></ng-view>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
58
admin/services/dialectselect.service.js
Normal file
58
admin/services/dialectselect.service.js
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsAdmin')
|
||||||
|
.factory('dialectSelect', [function() {
|
||||||
|
return [
|
||||||
|
{key: "_banjsko_podnarecje", name: "Banjško podnarečje"},
|
||||||
|
{key: "_basko_podnarecje", name: "Baško podnarečje"},
|
||||||
|
{key: "brisko_narecje", name: "Briško narečje"},
|
||||||
|
{key: "cerkljansko_narecje", name: "Cerkljansko narečje"},
|
||||||
|
{key: "cisko_narecje", name: "Čiško narečje"},
|
||||||
|
{key: "crnovrsko_narecje", name: "Črnovrško narečje"},
|
||||||
|
{key: "dolenjsko_narecje", name: "Dolenjsko narečje"},
|
||||||
|
{key: "gorenjsko_narecje", name: "Gorenjsko narečje"},
|
||||||
|
{key: "halosko_narecje", name: "Haloško narečje"},
|
||||||
|
{key: "horjulsko_narecje", name: "Horjulsko narečje"},
|
||||||
|
{key: "istrsko_narecje", name: "Istrsko narečje"},
|
||||||
|
{key: "juznobelokranjsko_narecje", name: "Južnobelokranjsko narečje"},
|
||||||
|
{key: "juznopohorsko_narecje", name: "Južnopohorsko narečje"},
|
||||||
|
{key: "kostelsko_narecje", name: "Kostelsko narečje"},
|
||||||
|
{key: "_kozjasko_podnarecje", name: "Kozjansko podnarečje"},
|
||||||
|
{key: "kozjansko-bizeljsko_narecje", name: "Kozjansko-bizeljsko narečje"},
|
||||||
|
{key: "_kranjskogorsko_podnarecje", name: "Kranjskogorsko podnarečje"},
|
||||||
|
{key: "krasko_narecje", name: "Kraško narečje"},
|
||||||
|
{key: "_lasko_podnarecje", name: "Laško podnarečje"},
|
||||||
|
{key: "mesani_kocevski_govori", name: "Mešani kočevski govori"},
|
||||||
|
{key: "mezisko_narecje", name: "Mežiško narečje"},
|
||||||
|
{key: "nadisko_narecje", name: "Nadiško narečje"},
|
||||||
|
{key: "notranjsko_narecje", name: "Notranjsko narečje"},
|
||||||
|
{key: "obirsko_narecje", name: "Obirsko narečje"},
|
||||||
|
{key: "obsosko_narecje", name: "Obsoško narečje"},
|
||||||
|
{key: "podjunsko_narecje", name: "Podjunsko narečje"},
|
||||||
|
{key: "poljansko_narecje", name: "Poljansko narečje"},
|
||||||
|
{key: "posavsko_narecje", name: "Posavsko narečje"},
|
||||||
|
{key: "prekmursko_narecje", name: "Prekmursko narečje"},
|
||||||
|
{key: "prlesko_narecje", name: "Prleško narečje"},
|
||||||
|
{key: "rezijansko_narecje", name: "Rezijansko narečje"},
|
||||||
|
{key: "_rizansko_podnarecje", name: "Rižansko podnarečje"},
|
||||||
|
{key: "rozansko_narecje", name: "Rožansko narečje"},
|
||||||
|
{key: "selsko_narecje", name: "Selško narečje"},
|
||||||
|
{key: "severnobelokranjsko_narecje", name: "Severnobelokranjsko narečje"},
|
||||||
|
{key: "severnopohorsko-remsnisko_narecje", name: "Severnopohorsko-remšniško narečje"},
|
||||||
|
{key: "_sevnisko-krsko_podnarecje", name: "Sevniško-krško podnarečje"},
|
||||||
|
{key: "slovenskogorisko_narecje", name: "Slovenskogoriško narečje"},
|
||||||
|
{key: "_solcavsko_podnarecje", name: "Solčavsko podnarečje"},
|
||||||
|
{key: "srednjesavinjsko_narecje", name: "Srednjesavinjsko narečje"},
|
||||||
|
{key: "srednjestajersko_narecje", name: "Srednještajersko narečje"},
|
||||||
|
{key: "_savrinsko_podnarecje", name: "Šavrinsko podnarečje"},
|
||||||
|
{key: "skofjelosko_narecje", name: "Škofjeloško narečje"},
|
||||||
|
{key: "tersko_narecje", name: "Tersko narečje"},
|
||||||
|
{key: "tolminsko_narecje", name: "Tolminsko narečje"},
|
||||||
|
{key: "_vzhodnodolenjsko_podnarecje", name: "Vzhodnodolenjsko podnarečje"},
|
||||||
|
{key: "_vzhodnogorenjsko_podnarecje", name: "Vzhodnogorenjsko podnarečje"},
|
||||||
|
{key: "_zagorsko_trboveljsko_podnarecje", name: "Zagorsko trboveljsko podnarečje"},
|
||||||
|
{key: "zgornjesavinjsko_narecje", name: "Zgornjesavinjsko narečje"},
|
||||||
|
{key: "ziljsko_narecje", name: "Ziljsko narečje"}
|
||||||
|
];
|
||||||
|
}]);
|
9
api/.htaccess
Normal file
9
api/.htaccess
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteBase /
|
||||||
|
|
||||||
|
RewriteCond %{HTTP:Authorization} ^(.*)
|
||||||
|
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
|
||||||
|
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule ^(.*)$ api/index.php/$1 [L]
|
50
api/DBconnect.php
Normal file
50
api/DBconnect.php
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by PhpStorm.
|
||||||
|
* User: Nermin
|
||||||
|
* Date: 28. 05. 2018
|
||||||
|
* Time: 12:12
|
||||||
|
*/
|
||||||
|
|
||||||
|
class DBconnect {
|
||||||
|
|
||||||
|
private static $host = getenv('DB_HOST') ?: "localhost";
|
||||||
|
private static $user = getenv('DB_USER') ?: "nermin";
|
||||||
|
private static $password = getenv('DB_PASS') ?: "";
|
||||||
|
private static $schema = getenv('DB_SCHEMA') ?: "dialectsdb";
|
||||||
|
private static $instance = null;
|
||||||
|
|
||||||
|
private function __construct() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private function __clone() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a PDO instance -- a connection to the database.
|
||||||
|
* The singleton instance assures that there is only one connection active
|
||||||
|
* at once (within the scope of one HTTP request)
|
||||||
|
*
|
||||||
|
* @return PDO instance
|
||||||
|
*/
|
||||||
|
public static function getInstance() {
|
||||||
|
if (!self::$instance) {
|
||||||
|
$config = "mysql:host=" . self::$host
|
||||||
|
. ";dbname=" . self::$schema;
|
||||||
|
$options = array(
|
||||||
|
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||||
|
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
|
||||||
|
PDO::ATTR_PERSISTENT => true,
|
||||||
|
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'
|
||||||
|
);
|
||||||
|
|
||||||
|
self::$instance = new PDO($config, self::$user, self::$password, $options);
|
||||||
|
}
|
||||||
|
|
||||||
|
return self::$instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
3
api/config.php
Normal file
3
api/config.php
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
// If app not in root define path, such as "/iknb". If in root, leave empty string. Define also in app.module.js and admin/admin.module.js!
|
||||||
|
define('APP_PATH', '');
|
201
api/index.php
Normal file
201
api/index.php
Normal file
|
@ -0,0 +1,201 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* Edited by: Nermin Jukan, 63150367
|
||||||
|
* Date: 21. 05. 2018
|
||||||
|
* Modifications: Added a delete user conditional on lines 122-127.
|
||||||
|
*/
|
||||||
|
|
||||||
|
header('Content-Type: application/json');
|
||||||
|
header('Allow: HEAD, OPTIONS, GET, POST, PUT, DELETE');
|
||||||
|
header('Access-Control-Allow-Methods: HEAD, OPTIONS, GET, POST, PUT, DELETE');
|
||||||
|
include_once("model.php");
|
||||||
|
|
||||||
|
if (isset($_SERVER['ORIG_PATH_INFO'])){
|
||||||
|
$_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if( !isset($_SERVER['PATH_INFO']) ){
|
||||||
|
$info = array(
|
||||||
|
"name" => "interaktivna-karta-slovenskih-narecnih-besedil",
|
||||||
|
"version" => "0.10.0",
|
||||||
|
/*"endpoints" => array(
|
||||||
|
array(
|
||||||
|
"action" => "GET Dialects",
|
||||||
|
"route" => "/dialects",
|
||||||
|
"example" => $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['SERVER_NAME']. "/api/dialects"
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
"action" => "GET Dialect by Id",
|
||||||
|
"route" => "/dialects/{:id}",
|
||||||
|
"example" => $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['SERVER_NAME']."/api/dialects/1"
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
"action" => "All the rest",
|
||||||
|
"route" => "TODO",
|
||||||
|
"example" => "SOON"
|
||||||
|
)
|
||||||
|
)*/
|
||||||
|
);
|
||||||
|
die( json_encode($info) );
|
||||||
|
}
|
||||||
|
|
||||||
|
$verb = $_SERVER['REQUEST_METHOD'];
|
||||||
|
$url_elements = explode('/', $_SERVER['PATH_INFO']);
|
||||||
|
|
||||||
|
$resource = isset($url_elements[1]) ? $url_elements[1] : false;
|
||||||
|
$resource_id = isset($url_elements[2]) ? intval($url_elements[2]) : false;
|
||||||
|
$resource2 = isset($url_elements[3]) ? $url_elements[3] : false;
|
||||||
|
$resource2_id = isset($url_elements[4]) ? intval($url_elements[4]) : false;
|
||||||
|
|
||||||
|
|
||||||
|
// authentication api calls
|
||||||
|
if($resource == 'authenticate'){
|
||||||
|
$post_data = json_decode( file_get_contents("php://input") );
|
||||||
|
if( isset($post_data->username) && isset($post_data->password) ){
|
||||||
|
$result = checkCredentials($post_data->username, $post_data->password);
|
||||||
|
if($result === true){
|
||||||
|
die( json_encode( array( 'success' => true, 'message' => 'Prijava je bila uspešna.' ) ) );
|
||||||
|
} else {
|
||||||
|
die( json_encode( array( 'success' => false, 'message' => $result ) ) );
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
die( json_encode( array( 'success' => false, 'message' => 'Vnesti morate uporabniško ime in geslo.' ) ) );
|
||||||
|
}
|
||||||
|
} else if($resource != 'dialects' && $resource != 'changePassword' && $resource != 'users' && $resource != 'admin'){
|
||||||
|
die( json_encode( array( 'success' => false, 'message' => 'Resource does not exist - no res.') ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
if($verb === 'GET'){
|
||||||
|
$return = array("error" => "Resource does not exist - not admin."); // default
|
||||||
|
|
||||||
|
if($resource == 'dialects'){
|
||||||
|
// get dialects list
|
||||||
|
if(!$resource_id){
|
||||||
|
$return = getDialects();
|
||||||
|
}
|
||||||
|
// get dialect by id
|
||||||
|
if($resource_id > 0 && !$resource2){
|
||||||
|
$return = getDialect($resource_id);
|
||||||
|
}
|
||||||
|
// get analysis list by dialect id
|
||||||
|
if($resource_id > 0 && $resource2 === 'analysis'){
|
||||||
|
$return = getAnalysis($resource_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
echo json_encode($return);
|
||||||
|
die(); // GET is publicly allowed. POST, PUT, DELETE below is only for admins, so we stop here
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$isAdmin = false;
|
||||||
|
$username = false;
|
||||||
|
$headers = apache_request_headers();
|
||||||
|
if(isset($headers['Authorization'])){
|
||||||
|
$matches = array();
|
||||||
|
preg_match('/Basic (.*)/', $headers['Authorization'], $matches);
|
||||||
|
if(isset($matches[1])){
|
||||||
|
$token = $matches[1];
|
||||||
|
$credentials = explode(":", base64_decode($token));
|
||||||
|
$username = $credentials[0];
|
||||||
|
$password = $credentials[1];
|
||||||
|
if(checkCredentials($username, $password) === true){
|
||||||
|
$isAdmin = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// from here on only admins allowed
|
||||||
|
if($isAdmin !== true){
|
||||||
|
die( json_encode( array( 'success' => false, 'message' => 'Authorised users only.' ) ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
if($resource == 'users'){
|
||||||
|
if($verb === 'GET'){
|
||||||
|
$return = getUsers();
|
||||||
|
die( json_encode($return) );
|
||||||
|
} elseif($verb === 'POST'){
|
||||||
|
$post_data = json_decode( file_get_contents("php://input") );
|
||||||
|
$return = addUser($post_data);
|
||||||
|
die( json_encode($return) );
|
||||||
|
}
|
||||||
|
elseif($verb === 'DELETE'){
|
||||||
|
if($resource_id > 0){
|
||||||
|
$return = deleteUser($resource_id);
|
||||||
|
die( json_encode($return) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if($resource == 'admin'){
|
||||||
|
if($verb === 'POST'){
|
||||||
|
$post_data = json_decode( file_get_contents("php://input") );
|
||||||
|
$return = getAdmin($post_data->username);
|
||||||
|
die( json_encode($return) );
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// password change
|
||||||
|
if($resource == 'changePassword'){
|
||||||
|
$post_data = json_decode( file_get_contents("php://input") );
|
||||||
|
if( checkCredentials($username, $post_data->old_password) !== true ){
|
||||||
|
die( json_encode( array( 'success' => false, 'message' => 'Staro geslo ni pravilno.' ) ) );
|
||||||
|
}
|
||||||
|
if($post_data->new_password !== $post_data->new_password_repeat){
|
||||||
|
die( json_encode( array( 'success' => false, 'message' => 'Novi gesli se ne ujemata' ) ) );
|
||||||
|
}
|
||||||
|
if(strlen($post_data->new_password) < 8){
|
||||||
|
die( json_encode( array( 'success' => false, 'message' => 'Novo geslo mora vsebovati vsaj 8 znakov.' ) ) );
|
||||||
|
}
|
||||||
|
if( changePassword($username, $post_data->new_password ) ){
|
||||||
|
die( json_encode( array( 'success' => true, 'message' => 'Geslo je bilo uspešno spremenjeno.' ) ) );
|
||||||
|
} else {
|
||||||
|
die( json_encode( array( 'success' => false, 'message' => 'Sprememba gesla ni bila uspešna.' ) ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if($verb === 'POST'){
|
||||||
|
$post_data = json_decode( file_get_contents("php://input") );
|
||||||
|
if($resource_id > 0 && $resource2 === 'analysis'){ // create empty analysis item
|
||||||
|
if(isset($post_data->section_id) && $post_data->section_id > 0){ // create item
|
||||||
|
$section_id = intval($post_data->section_id);
|
||||||
|
$return = createAnalysisItem($resource_id, $section_id);
|
||||||
|
} else {
|
||||||
|
$return = array("error" => "Create operation requires section id.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($resource_id > 0 && $resource2 === 'files'){
|
||||||
|
$return = saveAudio($resource_id, $_FILES['file']);
|
||||||
|
}
|
||||||
|
if(!$resource_id){ // create new dialect
|
||||||
|
$return = createDialect();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if($verb === 'PUT'){
|
||||||
|
if($resource_id > 0){ // update existing dialect
|
||||||
|
$put_data = json_decode( file_get_contents("php://input") );
|
||||||
|
$return = updateDialect($resource_id, $put_data);
|
||||||
|
} else {
|
||||||
|
$return = array("error" => "Update operation requires dialect ID.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if($verb === 'DELETE'){
|
||||||
|
// delete analysis item
|
||||||
|
if($resource_id > 0 && $resource2 === 'analysis' && $resource2_id > 0){
|
||||||
|
$return = deleteAnalysisItem($resource2_id);
|
||||||
|
}
|
||||||
|
if($resource2 === 'audio' && $resource_id > 0){
|
||||||
|
$return = deleteAudio($resource_id);
|
||||||
|
}
|
||||||
|
if($resource_id > 0 && !$resource2){
|
||||||
|
deleteAudio($resource_id);
|
||||||
|
$return = deleteDialect($resource_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
//die( json_encode( array('test' => $return ) ) );
|
||||||
|
echo json_encode($return);
|
741
api/model.php
Normal file
741
api/model.php
Normal file
|
@ -0,0 +1,741 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* Edited by: Nermin Jukan, 63150367
|
||||||
|
* Date: 21. 05. 2018
|
||||||
|
* Modifications: Added a delete user function on lines 83-92.
|
||||||
|
*/
|
||||||
|
|
||||||
|
include_once("config.php");
|
||||||
|
require_once "DBconnect.php";
|
||||||
|
|
||||||
|
function errlog($message){
|
||||||
|
error_log($message."\n", 3, "error.log");
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function getDialects(){
|
||||||
|
$query = ("SELECT `id`, `dialect_key`, `location_name`, `location_label`, `audio`, `location_latitude`, `location_longitude`, `metadata` FROM `dialect_entries`");
|
||||||
|
$result = mysqli_query($mysqli, $query);
|
||||||
|
$dialects = [];
|
||||||
|
while($res = mysqli_fetch_object($result)) {
|
||||||
|
$dialects[] = $res;
|
||||||
|
}
|
||||||
|
return $dialects;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function getDialects(){
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("SELECT `id`, `dialect_key`, `location_name`, `location_label`, `audio`, `location_latitude`, `location_longitude`, `metadata` FROM `dialect_entries`");
|
||||||
|
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function getDialect($mysqli, $id){
|
||||||
|
$id = mysqli_real_escape_string($mysqli, $id);
|
||||||
|
$query = "SELECT * FROM `dialect_entries` WHERE `id` = '$id'";
|
||||||
|
$result = mysqli_query($mysqli, $query);
|
||||||
|
$dialect = mysqli_fetch_object($result);
|
||||||
|
return $dialect;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function getDialect($id){
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("SELECT * FROM `dialect_entries` WHERE `id` = :id");
|
||||||
|
|
||||||
|
$stmt->bindParam(":id", $id);
|
||||||
|
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
$data = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
return $data;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function getAnalysis($mysqli, $id){
|
||||||
|
$id = mysqli_real_escape_string($mysqli, $id);
|
||||||
|
$query = "SELECT * FROM `analysis_items` WHERE `dialect_entry_id` = '$id'";
|
||||||
|
$result = mysqli_query($mysqli, $query);
|
||||||
|
$analysis = [];
|
||||||
|
while($res = mysqli_fetch_object($result)) {
|
||||||
|
$analysis[] = $res;
|
||||||
|
}
|
||||||
|
return $analysis;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function getAnalysis($id){
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("SELECT `id`, `dialect_entry_id`, `section`, `maintext`, `examples` FROM `analysis_items` WHERE `dialect_entry_id` = :id");
|
||||||
|
|
||||||
|
$stmt->bindParam(":id", $id);
|
||||||
|
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function createAnalysisItem($mysqli, $dialect_id, $section_id){
|
||||||
|
$stmt = mysqli_prepare($mysqli, "INSERT INTO `analysis_items` (`id`, `dialect_entry_id`, `section`, `maintext`, `examples`) VALUES (null, ?, ?, '', '')");
|
||||||
|
mysqli_stmt_bind_param($stmt, 'ii', $dialect_id_b, $section_id_b);
|
||||||
|
$dialect_id_b = mysqli_real_escape_string($mysqli, $dialect_id);
|
||||||
|
$section_id_b = mysqli_real_escape_string($mysqli, $section_id);
|
||||||
|
$result = mysqli_stmt_execute($stmt);
|
||||||
|
if($result){
|
||||||
|
$insert_id = mysqli_insert_id($mysqli);
|
||||||
|
//errlog('Created new analysis item with id: ' . $insert_id);
|
||||||
|
return array('success' => true, 'id' => $insert_id);
|
||||||
|
} else {
|
||||||
|
errlog('Failed creating analysis item! Err: ' . mysqli_error($mysqli) );
|
||||||
|
return array('success' => false);
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function createAnalysisItem($dialect_id, $section_id){
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("INSERT INTO `analysis_items` (`id`, `dialect_entry_id`, `section`, `maintext`, `examples`) VALUES (:id, :dial_id, :section, :main_text, :examples)");
|
||||||
|
|
||||||
|
$stmt->bindParam(":id", $id);
|
||||||
|
$stmt->bindParam(":dial_id", $dialect_id);
|
||||||
|
$stmt->bindParam(":section", $section_id);
|
||||||
|
$stmt->bindParam(":main_text", $main_text);
|
||||||
|
$stmt->bindParam(":examples", $examples);
|
||||||
|
|
||||||
|
$id = null;
|
||||||
|
$main_text = '';
|
||||||
|
$examples = '';
|
||||||
|
|
||||||
|
$result = $stmt->execute();
|
||||||
|
|
||||||
|
if($result){
|
||||||
|
$insert_id = $db->lastInsertId();
|
||||||
|
return array('success' => true, 'id' => $insert_id);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
errlog('Failed creating analysis item! Err: ' . $db->errorInfo());
|
||||||
|
return array('success' => false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function deleteAnalysisItem($mysqli, $analysis_id){
|
||||||
|
$stmt = mysqli_prepare($mysqli, "DELETE FROM `analysis_items` WHERE id = ?");
|
||||||
|
mysqli_stmt_bind_param($stmt, 'i', $id);
|
||||||
|
$id = mysqli_real_escape_string($mysqli, $analysis_id);
|
||||||
|
$result = mysqli_stmt_execute($stmt);
|
||||||
|
if($result){
|
||||||
|
return array('success' => true, 'id' => $id);
|
||||||
|
} else {
|
||||||
|
return array('success' => false);
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function deleteAnalysisItem($analysis_id){
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("DELETE FROM `analysis_items` WHERE `id` = :id");
|
||||||
|
|
||||||
|
$stmt->bindParam(":id", $analysis_id);
|
||||||
|
|
||||||
|
$result = $stmt->execute();
|
||||||
|
|
||||||
|
if($result){
|
||||||
|
return array('success' => true, 'id' => $analysis_id);
|
||||||
|
} else {
|
||||||
|
return array('success' => false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function deleteDialect($mysqli, $dialect_id){
|
||||||
|
$dialect_id = mysqli_real_escape_string($mysqli, $dialect_id);
|
||||||
|
$query = "DELETE FROM dialect_entries WHERE id = $dialect_id";
|
||||||
|
$result = mysqli_query($mysqli, $query);
|
||||||
|
if($result){
|
||||||
|
return array('success' => true, 'id' => $dialect_id);
|
||||||
|
} else {
|
||||||
|
return array('success' => false);
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function deleteDialect($dialect_id){
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("DELETE FROM dialect_entries WHERE `id` = :id");
|
||||||
|
|
||||||
|
$stmt->bindParam(":id", $dialect_id);
|
||||||
|
|
||||||
|
$result = $stmt->execute();
|
||||||
|
|
||||||
|
if($result){
|
||||||
|
return array('success' => true, 'id' => $dialect_id);
|
||||||
|
} else {
|
||||||
|
return array('success' => false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function deleteUser($mysqli, $user_id){
|
||||||
|
$user_id = mysqli_real_escape_string($mysqli, $user_id);
|
||||||
|
$query = "DELETE FROM `users` WHERE `id` = '$user_id'";
|
||||||
|
$result = mysqli_query($mysqli, $query);
|
||||||
|
if($result){
|
||||||
|
return array('success' => true, 'id' => $user_id);
|
||||||
|
} else {
|
||||||
|
return array('success' => false);
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function deleteUser($user_id){
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("DELETE FROM `users` WHERE `id` = :id");
|
||||||
|
|
||||||
|
$stmt->bindParam(":id", $user_id);
|
||||||
|
|
||||||
|
$result = $stmt->execute();
|
||||||
|
|
||||||
|
if($result){
|
||||||
|
return array('success' => true, 'id' => $user_id);
|
||||||
|
} else {
|
||||||
|
return array('success' => false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function updateDialect($mysqli, $resource_id, $put_data){
|
||||||
|
// save dialect with prepared statements
|
||||||
|
if(!is_null($resource_id) && $resource_id > 0 && isset($put_data) && isset($put_data->dialectData)){
|
||||||
|
$query_dialect = "UPDATE dialect_entries SET dialect_key = ?, location_name = ?, location_label = ?, audio = ?, location_latitude = ?, location_longitude = ?, metadata = ?, transcription = ?, standard_slovene = ?, analysis1 = ?, analysis2 = ?, analysis3 = ?, analysis4 = ?, analysis5 = ?, analysis6 = ?, analysis7 = ?, modified = ?, modified_by = ? WHERE id = ?;";
|
||||||
|
$stmt_dialect = mysqli_prepare($mysqli, $query_dialect);
|
||||||
|
mysqli_stmt_bind_param($stmt_dialect, 'sssssssssssssssssii', $dialect_key, $location_name, $location_label, $audio, $location_latitude, $location_longitude, $metadata, $transcription, $standard_slovene, $analysis1, $analysis2, $analysis3, $analysis4, $analysis5, $analysis6, $analysis7, $modified, $modified_by, $id);
|
||||||
|
|
||||||
|
$dialect_key = $put_data->dialectData->dialect_key ?: '';
|
||||||
|
$location_name = $put_data->dialectData->location_name ?: '';
|
||||||
|
$location_label = $put_data->dialectData->location_label ?: '';
|
||||||
|
$audio = $put_data->dialectData->audio ?: '';
|
||||||
|
$location_latitude = $put_data->dialectData->location_latitude ?: '0';
|
||||||
|
$location_longitude = $put_data->dialectData->location_longitude ?: '0';
|
||||||
|
$metadata = $put_data->dialectData->metadata ?: '/';
|
||||||
|
$transcription = $put_data->dialectData->transcription ?: '';
|
||||||
|
$standard_slovene = $put_data->dialectData->standard_slovene ?: '';
|
||||||
|
$analysis1 = $put_data->dialectData->analysis1 ?: '';
|
||||||
|
$analysis2 = $put_data->dialectData->analysis2 ?: '';
|
||||||
|
$analysis3 = $put_data->dialectData->analysis3 ?: '';
|
||||||
|
$analysis4 = $put_data->dialectData->analysis4 ?: '';
|
||||||
|
$analysis5 = $put_data->dialectData->analysis5 ?: '';
|
||||||
|
$analysis6 = $put_data->dialectData->analysis6 ?: '';
|
||||||
|
$analysis7 = $put_data->dialectData->analysis7 ?: '';
|
||||||
|
$modified = date('Y-m-d H:i:s');
|
||||||
|
$modified_by = 1;
|
||||||
|
$id = $resource_id;
|
||||||
|
$result = mysqli_stmt_execute($stmt_dialect);
|
||||||
|
|
||||||
|
if( mysqli_error($mysqli) ){
|
||||||
|
errlog( mysqli_error($mysqli) );
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
return array('success' => false, 'message' => 'Missing ID or PUT data');
|
||||||
|
}
|
||||||
|
|
||||||
|
$query_analysis = "UPDATE analysis_items SET dialect_entry_id = ?, section = ?, maintext = ?, examples = ? WHERE id = ?";
|
||||||
|
$stmt_analysis = mysqli_prepare($mysqli, $query_analysis);
|
||||||
|
mysqli_stmt_bind_param($stmt_analysis, 'iissi', $dialect_entry_id, $section, $maintext, $examples, $analysis_id);
|
||||||
|
|
||||||
|
if( mysqli_error($mysqli) ){
|
||||||
|
errlog( mysqli_error($mysqli) );
|
||||||
|
}
|
||||||
|
|
||||||
|
// fill analysis data
|
||||||
|
$result_analysis = [];
|
||||||
|
$SECTION_COUNT = 7;
|
||||||
|
for($i=1; $i <= $SECTION_COUNT; $i++){
|
||||||
|
if(isset($put_data->analysisData[$i])){
|
||||||
|
$ITEM_COUNT = count($put_data->analysisData[$i]);
|
||||||
|
for($j = 0; $j < $ITEM_COUNT; $j++){
|
||||||
|
$dialect_entry_id = $resource_id;
|
||||||
|
$section = $i;
|
||||||
|
$maintext = $put_data->analysisData[$i][$j]->maintext;
|
||||||
|
$examples = $put_data->analysisData[$i][$j]->examples;
|
||||||
|
$analysis_id = $put_data->analysisData[$i][$j]->id;
|
||||||
|
//errlog("Vse OK: $i,$j:" . json_encode($put_data->analysisData[$i][$j]));
|
||||||
|
$result_analysis[] = mysqli_stmt_execute($stmt_analysis);
|
||||||
|
if( mysqli_error($mysqli) ){
|
||||||
|
errlog( mysqli_error($mysqli) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if( mysqli_error($mysqli) ){
|
||||||
|
return array('success' => false, 'message' => mysqli_error($mysqli));
|
||||||
|
}
|
||||||
|
return array('success' => $result);
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function updateDialect($resource_id, $put_data){
|
||||||
|
// save dialect with prepared statements
|
||||||
|
if(!is_null($resource_id) && $resource_id > 0 && isset($put_data) && isset($put_data->dialectData)){
|
||||||
|
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("UPDATE dialect_entries SET dialect_key = :d_key, location_name = :lo_name, location_label = :lo_label,
|
||||||
|
audio = :audio, location_latitude = :lo_lat, location_longitude = :lo_lon, metadata = :meta,
|
||||||
|
transcription = :trans, standard_slovene = :std_slo, analysis1 = :any1, analysis2 = :any2, analysis3 = :any3,
|
||||||
|
analysis4 = :any4, analysis5 = :any5, analysis6 = :any6, analysis7 = :any7, modified = :mod, modified_by = :mod_by
|
||||||
|
WHERE id = :id");
|
||||||
|
|
||||||
|
$stmt->bindParam(":d_key", $dialect_key);
|
||||||
|
$stmt->bindParam(":lo_name", $location_name);
|
||||||
|
$stmt->bindParam(":lo_label", $location_label);
|
||||||
|
$stmt->bindParam(":audio", $audio);
|
||||||
|
$stmt->bindParam(":lo_lat", $location_latitude);
|
||||||
|
$stmt->bindParam(":lo_lon", $location_longitude);
|
||||||
|
$stmt->bindParam(":meta", $metadata);
|
||||||
|
$stmt->bindParam(":trans", $transcription);
|
||||||
|
$stmt->bindParam(":std_slo", $standard_slovene);
|
||||||
|
$stmt->bindParam(":any1", $analysis1);
|
||||||
|
$stmt->bindParam(":any2", $analysis2);
|
||||||
|
$stmt->bindParam(":any3", $analysis3);
|
||||||
|
$stmt->bindParam(":any4", $analysis4);
|
||||||
|
$stmt->bindParam(":any5", $analysis5);
|
||||||
|
$stmt->bindParam(":any6", $analysis6);
|
||||||
|
$stmt->bindParam(":any7", $analysis7);
|
||||||
|
$stmt->bindParam(":mod", $modified);
|
||||||
|
$stmt->bindParam(":mod_by", $modified_by);
|
||||||
|
$stmt->bindParam(":id", $id);
|
||||||
|
|
||||||
|
$dialect_key = $put_data->dialectData->dialect_key ?: '';
|
||||||
|
$location_name = $put_data->dialectData->location_name ?: '';
|
||||||
|
$location_label = $put_data->dialectData->location_label ?: '';
|
||||||
|
$audio = $put_data->dialectData->audio ?: '';
|
||||||
|
$location_latitude = $put_data->dialectData->location_latitude ?: '0';
|
||||||
|
$location_longitude = $put_data->dialectData->location_longitude ?: '0';
|
||||||
|
$metadata = $put_data->dialectData->metadata ?: '';
|
||||||
|
$transcription = $put_data->dialectData->transcription ?: '';
|
||||||
|
$standard_slovene = $put_data->dialectData->standard_slovene ?: '';
|
||||||
|
$analysis1 = $put_data->dialectData->analysis1 ?: '';
|
||||||
|
$analysis2 = $put_data->dialectData->analysis2 ?: '';
|
||||||
|
$analysis3 = $put_data->dialectData->analysis3 ?: '';
|
||||||
|
$analysis4 = $put_data->dialectData->analysis4 ?: '';
|
||||||
|
$analysis5 = $put_data->dialectData->analysis5 ?: '';
|
||||||
|
$analysis6 = $put_data->dialectData->analysis6 ?: '';
|
||||||
|
$analysis7 = $put_data->dialectData->analysis7 ?: '';
|
||||||
|
$modified = date('Y-m-d H:i:s');
|
||||||
|
$modified_by = 1;
|
||||||
|
$id = $resource_id;
|
||||||
|
|
||||||
|
$result = $stmt->execute();
|
||||||
|
|
||||||
|
if( !$result ){
|
||||||
|
errlog( $db->errorInfo() );
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
return array('success' => false, 'message' => 'Missing ID or PUT data');
|
||||||
|
}
|
||||||
|
|
||||||
|
$stmt_analysis = $db->prepare("UPDATE analysis_items SET dialect_entry_id = :entry_id, section = :section, maintext = :maintext, examples = :examples WHERE id = :id");
|
||||||
|
|
||||||
|
$stmt_analysis->bindParam(":entry_id", $dialect_entry_id);
|
||||||
|
$stmt_analysis->bindParam(":section", $section);
|
||||||
|
$stmt_analysis->bindParam(":maintext", $maintext);
|
||||||
|
$stmt_analysis->bindParam(":examples", $examples);
|
||||||
|
$stmt_analysis->bindParam(":id", $analysis_id);
|
||||||
|
|
||||||
|
if( !$stmt_analysis ){
|
||||||
|
errlog( $db->errorInfo() );
|
||||||
|
}
|
||||||
|
|
||||||
|
// fill analysis data
|
||||||
|
$result_analysis = [];
|
||||||
|
$SECTION_COUNT = 7;
|
||||||
|
for($i=1; $i <= $SECTION_COUNT; $i++){
|
||||||
|
if(isset($put_data->analysisData[$i])){
|
||||||
|
$ITEM_COUNT = count($put_data->analysisData[$i]);
|
||||||
|
for($j = 0; $j < $ITEM_COUNT; $j++){
|
||||||
|
$dialect_entry_id = $resource_id;
|
||||||
|
$section = $i;
|
||||||
|
$maintext = $put_data->analysisData[$i][$j]->maintext;
|
||||||
|
$examples = $put_data->analysisData[$i][$j]->examples;
|
||||||
|
$analysis_id = $put_data->analysisData[$i][$j]->id;
|
||||||
|
//errlog("Vse OK: $i,$j:" . json_encode($put_data->analysisData[$i][$j]));
|
||||||
|
$result_analysis[] = $stmt_analysis->execute();
|
||||||
|
if( !$result_analysis ){
|
||||||
|
errlog( $db->errorInfo() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if( !$result_analysis ){
|
||||||
|
return array('success' => false, 'message' => $db->errorInfo());
|
||||||
|
}
|
||||||
|
return array('success' => $result);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function createDialect($mysqli){ // create empty entry
|
||||||
|
$query = "INSERT INTO dialect_entries (metadata,transcription,standard_slovene,analysis1,analysis2,analysis3,analysis4,analysis5,analysis6,analysis7,created_by) VALUES ('','','','','','','','','', '', '1')";
|
||||||
|
if (mysqli_query($mysqli, $query)) {
|
||||||
|
$insert_id = mysqli_insert_id($mysqli);
|
||||||
|
return array('success' => true, 'message' => 'New record created successfully', 'id' => $insert_id);
|
||||||
|
} else {
|
||||||
|
return array('success' => false, 'message' => mysqli_error($mysqli));
|
||||||
|
}
|
||||||
|
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function createDialect(){ // create empty entry
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("INSERT INTO dialect_entries (metadata,transcription,standard_slovene,analysis1,analysis2,analysis3,analysis4,analysis5,analysis6,analysis7,created_by) VALUES (:meta, :transcript, :std_slo, :analy1, :analy2, :analy3, :analy4, :analy5, :analy6, :analy7, :created_by)");
|
||||||
|
|
||||||
|
$stmt->bindParam(":meta", $meta);
|
||||||
|
$stmt->bindParam(":transcript", $transcript);
|
||||||
|
$stmt->bindParam(":std_slo", $std_slo);
|
||||||
|
$stmt->bindParam(":analy1", $analy1);
|
||||||
|
$stmt->bindParam(":analy2", $analy2);
|
||||||
|
$stmt->bindParam(":analy3", $analy3);
|
||||||
|
$stmt->bindParam(":analy4", $analy4);
|
||||||
|
$stmt->bindParam(":analy5", $analy5);
|
||||||
|
$stmt->bindParam(":analy6", $analy6);
|
||||||
|
$stmt->bindParam(":analy7", $analy7);
|
||||||
|
$stmt->bindParam(":created_by", $created_by);
|
||||||
|
|
||||||
|
$meta = '';
|
||||||
|
$transcript = '';
|
||||||
|
$std_slo = '';
|
||||||
|
$analy1 = '';
|
||||||
|
$analy2 = '';
|
||||||
|
$analy3 = '';
|
||||||
|
$analy4 = '';
|
||||||
|
$analy5 = '';
|
||||||
|
$analy6 = '';
|
||||||
|
$analy7 = '';
|
||||||
|
$created_by = '1';
|
||||||
|
|
||||||
|
$result = $stmt->execute();
|
||||||
|
|
||||||
|
if($result){
|
||||||
|
$insert_id = $db->lastInsertId();
|
||||||
|
return array('success' => true, 'id' => $insert_id);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
errlog('Failed creating dialect item! Err: ' . $db->errorInfo());
|
||||||
|
return array('success' => false);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function saveAudio($mysqli, $resource_id, $file){
|
||||||
|
$upload_dir = '/resources/audio/';
|
||||||
|
$extension = pathinfo($file['name'], PATHINFO_EXTENSION);
|
||||||
|
$file_name = $resource_id.'.'.$extension;
|
||||||
|
$relative_path = $upload_dir . $file_name;
|
||||||
|
$absolute_path = $_SERVER['DOCUMENT_ROOT'] . APP_PATH . $relative_path;
|
||||||
|
|
||||||
|
if (move_uploaded_file($file['tmp_name'], $absolute_path)) {
|
||||||
|
$query = "UPDATE dialect_entries SET audio = ? WHERE id = ?";
|
||||||
|
$stmt_audio = mysqli_prepare($mysqli, $query);
|
||||||
|
mysqli_stmt_bind_param($stmt_audio, 'si', $audio_path, $id);
|
||||||
|
|
||||||
|
$audio_path = $relative_path;
|
||||||
|
$id = $resource_id;
|
||||||
|
|
||||||
|
$result = mysqli_stmt_execute($stmt_audio);
|
||||||
|
if($result){
|
||||||
|
return array('success' => true, 'message' => 'File uploaded and saved in database');
|
||||||
|
} else {
|
||||||
|
return array('success' => false, 'message' => 'Error saving audio in database');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return array('success' => false, 'message' => 'Possible file upload attack!', 'info' => $file['error'], 'files' => $_FILES );
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function saveAudio($resource_id, $file){
|
||||||
|
|
||||||
|
$rand = rand(1, 1000);
|
||||||
|
|
||||||
|
$upload_dir = '/resources/audio/';
|
||||||
|
$extension = pathinfo($file['name'], PATHINFO_EXTENSION);
|
||||||
|
$real_file_name = pathinfo($file['name'], PATHINFO_FILENAME);
|
||||||
|
$file_name = $resource_id . '_' . $real_file_name . '.' . $extension;
|
||||||
|
$relative_path = $upload_dir . $file_name;
|
||||||
|
$absolute_path = $_SERVER['DOCUMENT_ROOT'] . APP_PATH . $relative_path;
|
||||||
|
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
/*$stmt1 = $db->prepare("SELECT `audio` FROM `dialect_entries` WHERE `id` = :id");
|
||||||
|
$stmt1->bindParam(":id", $resource_id);
|
||||||
|
$stmt1->execute();
|
||||||
|
$data = $stmt1->fetch(PDO::FETCH_NUM);
|
||||||
|
|
||||||
|
if($data){
|
||||||
|
if(file_exists($_SERVER['DOCUMENT_ROOT'] . APP_PATH . $data[0])){
|
||||||
|
$exists = file_exists($_SERVER['DOCUMENT_ROOT'] . APP_PATH . $data[0]);//, $_SERVER['DOCUMENT_ROOT'] . APP_PATH . $data[0] . 'OLD');
|
||||||
|
$rename = move_uploaded_file($_SERVER['DOCUMENT_ROOT'] . APP_PATH . $data[0], $_SERVER['DOCUMENT_ROOT'] . APP_PATH . $data[0] . 'OLD');
|
||||||
|
$unlink = unlink($_SERVER['DOCUMENT_ROOT'] . APP_PATH . $data[0]);
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
if (move_uploaded_file($file['tmp_name'], $absolute_path)) {
|
||||||
|
|
||||||
|
$stmt2 = $db->prepare("UPDATE dialect_entries SET audio = :audio WHERE id = :id");
|
||||||
|
$stmt2->bindParam(":audio", $audio_path);
|
||||||
|
$stmt2->bindParam(":id", $id);
|
||||||
|
|
||||||
|
$audio_path = $relative_path;
|
||||||
|
$id = $resource_id;
|
||||||
|
|
||||||
|
$result = $stmt2->execute();
|
||||||
|
|
||||||
|
if($result){
|
||||||
|
return array('success' => true, 'message' => 'Saved.');//, 'UNLINK' => $unlink);
|
||||||
|
} else {
|
||||||
|
return array('success' => false, 'message' => 'Error saving audio in database');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return array('success' => false, 'message' => 'Possible file upload attack!', 'info' => $file['error'], 'files' => $_FILES );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function deleteAudio($resource_id){
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("SELECT `audio` FROM `dialect_entries` WHERE `id` = :id");
|
||||||
|
|
||||||
|
$stmt->bindParam(":id", $resource_id);
|
||||||
|
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
$data = $stmt->fetch();
|
||||||
|
|
||||||
|
if(isset($data['audio']) && $data['audio'] !== ''){
|
||||||
|
$absolute_path = $_SERVER['DOCUMENT_ROOT'] . APP_PATH . $data['audio'];
|
||||||
|
if(file_exists($absolute_path)){
|
||||||
|
$return = unlink($absolute_path);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
return array('success' => true, 'message' => 'File does not exit, continue upload.');
|
||||||
|
}
|
||||||
|
if($return){
|
||||||
|
$stmt2 = $db->prepare("UPDATE dialect_entries SET audio = :audio WHERE id = :id");
|
||||||
|
|
||||||
|
$stmt2->bindParam(":id", $resource_id);
|
||||||
|
$stmt2->bindParam(":audio", $audio);
|
||||||
|
|
||||||
|
$audio = '';
|
||||||
|
|
||||||
|
$result2= $stmt2->execute();
|
||||||
|
|
||||||
|
if($result2){
|
||||||
|
return array('success' => true, 'id' => $resource_id, 'data' => $data[0]);
|
||||||
|
} else {
|
||||||
|
$db = null;
|
||||||
|
return array('success' => false, 'message' => 'DIR update failure');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return array('success' => false, 'message' => 'Unlink failure.', 'link' => $absolute_path);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return array('success' => false, 'message' => 'Fetching DIR from DB failure or no DIR.');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function checkCredentials($mysqli, $username, $password){
|
||||||
|
$username = mysqli_real_escape_string($mysqli, $username);
|
||||||
|
$query = "SELECT `password` FROM `users` WHERE `username` = '$username'";
|
||||||
|
$result = mysqli_query($mysqli, $query);
|
||||||
|
$user = mysqli_fetch_object($result);
|
||||||
|
if($user){
|
||||||
|
$password_hash = $user->password;
|
||||||
|
if(password_verify($password, $password_hash)){
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return "Staro geslo ni pravilno.";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return "Uporabnik ne obstaja.";
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function checkCredentials($username, $password){
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("SELECT COUNT(`password`) AS password FROM `users` WHERE `username` = :username");
|
||||||
|
|
||||||
|
$stmt->bindParam(":username", $username);
|
||||||
|
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
$num = $stmt->fetch(PDO::FETCH_NUM);
|
||||||
|
|
||||||
|
if($num[0] == 1){
|
||||||
|
$checkPass = $db->prepare("SELECT password FROM `users` WHERE `username` = :username");
|
||||||
|
$checkPass->bindParam(":username", $username);
|
||||||
|
$checkPass->execute();
|
||||||
|
$result = $checkPass->fetch(PDO::FETCH_NUM);
|
||||||
|
$password_hash = $result[0];
|
||||||
|
|
||||||
|
if(password_verify($password, $password_hash)){
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return "Geslo ni pravilno.";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return "Uporbnik ne obstaja.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function getAdmin($username){
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("SELECT `is_admin` FROM `users` WHERE `username` = :username");
|
||||||
|
|
||||||
|
$stmt->bindParam(":username", $username);
|
||||||
|
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
$isAdmin = $stmt->fetch();
|
||||||
|
|
||||||
|
return $isAdmin;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function changePassword( $mysqli, $username, $new_password ){
|
||||||
|
$username = mysqli_real_escape_string($mysqli, $username);
|
||||||
|
$new_password = password_hash( $new_password, PASSWORD_DEFAULT );
|
||||||
|
$query = "UPDATE `users` SET `password` = '$new_password' WHERE `username` = '$username'";
|
||||||
|
$result = mysqli_query($mysqli, $query);
|
||||||
|
if($result === true){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function changePassword($username, $new_password){
|
||||||
|
$new_password = password_hash( $new_password, PASSWORD_DEFAULT );
|
||||||
|
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("UPDATE `users` SET `password` = :newpassword WHERE `username` = :username");
|
||||||
|
|
||||||
|
$stmt->bindParam("newpassword", $new_password);
|
||||||
|
$stmt->bindParam("username", $username);
|
||||||
|
|
||||||
|
$result = $stmt->execute();
|
||||||
|
|
||||||
|
if($result){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function getUsers($mysqli){
|
||||||
|
$query = "SELECT `id`, `name`, `username`, `is_admin` FROM `users`";
|
||||||
|
$result = mysqli_query($mysqli, $query);
|
||||||
|
$users = [];
|
||||||
|
while($res = mysqli_fetch_object($result)) {
|
||||||
|
$users[] = $res;
|
||||||
|
}
|
||||||
|
return $users;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function getUsers(){
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("SELECT `id`, `name`, `username`, `is_admin` FROM `users`");
|
||||||
|
|
||||||
|
$stmt->execute();
|
||||||
|
|
||||||
|
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*function addUser($mysqli, $post_data){
|
||||||
|
$name = mysqli_real_escape_string($mysqli, $post_data->name);
|
||||||
|
$username = mysqli_real_escape_string($mysqli, $post_data->username);
|
||||||
|
$is_admin = mysqli_real_escape_string($mysqli, $post_data->is_admin);
|
||||||
|
$password = $post_data->password;
|
||||||
|
$password_repeat = $post_data->password_repeat;
|
||||||
|
|
||||||
|
//return array('success' => false, 'message' => $post_data);
|
||||||
|
|
||||||
|
if($password != $password_repeat){
|
||||||
|
return array('success' => false, 'message' => "Gesli se ne ujemata.");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if( strlen($name) < 3){
|
||||||
|
return array('success' => false, 'message' => "Ime $name mora vsebovati vsaj 3 znake.");
|
||||||
|
}
|
||||||
|
if( strlen($username) < 3){
|
||||||
|
return array('success' => false, 'message' => "Uporabniško ime mora vsebovati vsaj 3 znake.");
|
||||||
|
}
|
||||||
|
if( strlen($password) < 8){
|
||||||
|
return array('success' => false, 'message' => "Geslo mora vsebovati vsaj 8 znakov.");
|
||||||
|
}
|
||||||
|
|
||||||
|
$password = password_hash($password, PASSWORD_DEFAULT);
|
||||||
|
|
||||||
|
$query = "INSERT INTO `users` (`name`, `username`, `password`, `is_admin`) VALUES ('$name', '$username', '$password','$is_admin')";
|
||||||
|
if (mysqli_query($mysqli, $query)) {
|
||||||
|
$insert_id = mysqli_insert_id($mysqli);
|
||||||
|
return array('success' => true, 'message' => "Uporabnik $username je bil uspešno ustvarjen.", 'id' => $insert_id);
|
||||||
|
} else {
|
||||||
|
return array('success' => false, 'message' => mysqli_error($mysqli));
|
||||||
|
}
|
||||||
|
|
||||||
|
}*/
|
||||||
|
|
||||||
|
function addUser($post_data){
|
||||||
|
$name = $post_data->name;
|
||||||
|
$username = $post_data->username;
|
||||||
|
$is_admin = $post_data->is_admin;
|
||||||
|
$password = $post_data->password;
|
||||||
|
$password_repeat = $post_data->password_repeat;
|
||||||
|
|
||||||
|
if($password != $password_repeat){
|
||||||
|
return array('success' => false, 'message' => "Gesli se ne ujemata.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if( strlen($name) < 3){
|
||||||
|
return array('success' => false, 'message' => "Ime $name mora vsebovati vsaj 3 znake.");
|
||||||
|
}
|
||||||
|
if( strlen($username) < 3){
|
||||||
|
return array('success' => false, 'message' => "Uporabniško ime mora vsebovati vsaj 3 znake.");
|
||||||
|
}
|
||||||
|
if( strlen($password) < 8){
|
||||||
|
return array('success' => false, 'message' => "Geslo mora vsebovati vsaj 8 znakov.");
|
||||||
|
}
|
||||||
|
|
||||||
|
$password = password_hash($password, PASSWORD_DEFAULT);
|
||||||
|
|
||||||
|
$db = DBconnect::getInstance();
|
||||||
|
|
||||||
|
$stmt = $db->prepare("INSERT INTO `users` (`name`, `username`, `password`, `is_admin`) VALUES (:name, :username, :password, :isadmin)");
|
||||||
|
|
||||||
|
$stmt->bindParam("name", $name);
|
||||||
|
$stmt->bindParam("username", $username);
|
||||||
|
$stmt->bindParam("password", $password);
|
||||||
|
$stmt->bindParam("isadmin", $is_admin);
|
||||||
|
|
||||||
|
|
||||||
|
$result = $stmt->execute();
|
||||||
|
if ($result) {
|
||||||
|
$insert_id = $db->lastInsertId();
|
||||||
|
return array('success' => true, 'message' => "Uporabnik $username je bil uspešno ustvarjen.", 'id' => $insert_id);
|
||||||
|
} else {
|
||||||
|
return array('success' => false, 'message' => $db->errorInfo());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
12
app.module.js
Normal file
12
app.module.js
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
// define the 'sloDialectsApp' module
|
||||||
|
angular
|
||||||
|
.module('sloDialectsApp', [
|
||||||
|
'ui.bootstrap',
|
||||||
|
'ui-leaflet'
|
||||||
|
])
|
||||||
|
.constant('Config', {
|
||||||
|
// If app not in server root, add relative path, otherwise leave empty string. Define also in api/config.php and admin/admin.module.js!
|
||||||
|
APP_PATH: ''
|
||||||
|
});
|
26
components/about/about.component.js
Normal file
26
components/about/about.component.js
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsApp')
|
||||||
|
.component('aboutComponent', {
|
||||||
|
templateUrl: 'components/about/about.template.html',
|
||||||
|
bindings: {
|
||||||
|
resolve: '<',
|
||||||
|
close: '&',
|
||||||
|
dismiss: '&',
|
||||||
|
modalInstance: '<'
|
||||||
|
},
|
||||||
|
controller: [function aboutController() {
|
||||||
|
var vm = this;
|
||||||
|
|
||||||
|
vm.$onInit = function () {
|
||||||
|
// injected result
|
||||||
|
vm.modalInstance.result.then(function(){
|
||||||
|
|
||||||
|
}, function(){
|
||||||
|
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
}]
|
||||||
|
});
|
38
components/about/about.template.html
Normal file
38
components/about/about.template.html
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" ng-click="$ctrl.close();"><span aria-hidden="true">×</span></button>
|
||||||
|
<h4 class="modal-title" id="myModalLabel">O spletni aplikaciji</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
|
||||||
|
<h3>Avtor</h3>
|
||||||
|
<p>Avtor spletne aplikacije je Ivan Lovrić, študent Fakultete za računalništvo in informatiko Univerze v Ljubljani. Aplikacijo je izdelal v okviru diplomske naloge v letu 2018 pod mentorstvom viš. pred. dr. Alenke Kavčič (UL FRI) in somentorstvom prof. dr. Vere Smole (UL FF).</p>
|
||||||
|
<p>Izdelano spletno aplikacijo je z dodatnimi funkcionalnostmi nadgradil Nermin Jukan, študent Fakultete za računalništvo in informatiko Univerze v Ljubljani, v okviru predmeta Računalništvo v praksi I pod mentorstvom viš. pred. dr. Alenke Kavčič (junij 2018).</p>
|
||||||
|
|
||||||
|
<h3>Aplikacija</h3>
|
||||||
|
<p><strong>Interaktivna karta slovenskih narečnih besedil / Interactive map of Slovenian dialectal texts</strong>
|
||||||
|
<br>Copyright © 2018 Ivan Lovrić (ivan@lovric.si)</p>
|
||||||
|
|
||||||
|
<p>Ta program spada med prosto programje; lahko ga razširjate in/ali spreminjate pod pogoji Splošnega dovoljenja GNU (GNU General Public License), različice 3, kot ga je objavila ustanova Free Software Foundation.</p>
|
||||||
|
<p>Ta program se razširja v upanju, da bo uporaben, vendar BREZ VSAKRŠNEGA JAMSTVA; tudi brez posredne zagotovitve CENOVNE VREDNOSTI ali PRIMERNOSTI ZA DOLOČEN NAMEN. Za podrobnosti glejte besedilo GNU General Public License.</p>
|
||||||
|
<p>Skupaj s tem programom bi morali prejeti izvod Splošnega dovoljenja GNU (GNU General Public License). Podrobnosti licence so dostopne tudi na spletni strani <a href="http://www.gnu.org/licenses" target="_blank">http://www.gnu.org/licenses</a>.</p>
|
||||||
|
|
||||||
|
<p>Izvorna koda aplikacije je dosegljiva v repozitoriju Bitbucket: <a href="https://bitbucket.org/ul-fri-lgm/iknb" target="_blank">https://bitbucket.org/ul-fri-lgm/iknb</a>.</p>
|
||||||
|
|
||||||
|
<h3>Vsebina (posnetki, transkripcije, poknjižitve in analize)</h3>
|
||||||
|
<p>Vsebino za Interaktivno karto slovenskih narečnih besedil (IKNB) za temo Stare kmečke hiše so zbrali in pripravili študenti Oddelka za slovenistiko Filozofske fakultete Univerze v Ljubljani. Zvočne posnetke, transkripcije in poknjižitve besedil so prispevali študentje izbirnega predmeta Slovenska narečja pod vodstvom prof. dr. Vere Smole in asist. dr. Mojce Kumin Horvat, analize pa študentje izbirnega predmeta Poglavja iz zgodovine slovenskega glasoslovja in seminarja pri predmetu Slovenska dialektologija pod vodstvom prof. dr. Vere Smole.</p>
|
||||||
|
<p>Vsem študentom, preteklim in bodočim, in njihovim informatorjem se zahvaljujemo za sodelovanje in njihov prispevek.</p>
|
||||||
|
|
||||||
|
<h3>Karta slovenskih narečij</h3>
|
||||||
|
<p>Interaktivna karta slovenskih narečnih besedil (IKNB) temelji na Karti slovenskih narečij. Karto sta priredila Tine Logar in Jakob Rigler (1983) na osnovi Dialektološke karte slovenskega jezika Frana Ramovša (1931), novejših raziskav in gradiva Inštituta za slovenski jezik ZRC SAZU, jo dopolnili Vera Smole in Jožica Škofic (2011) in nato še sodelavci Dialektološke sekcije ISJFR ZRC SAZU (2016).</p>
|
||||||
|
|
||||||
|
<p>© Inštitut za slovenski jezik Frana Ramovša ZRC SAZU, Geografski inštitut Antona Melika ZRC SAZU ter Inštitut za antropološke in prostorske študije ZRC SAZU, 2016 </p>
|
||||||
|
|
||||||
|
<h3>Pisava ZRCola</h3>
|
||||||
|
<p>Besedilo je bilo pripravljeno z vnašalnim sistemom ZRCola (<a href="http://zrcola.zrc-sazu.si" target="_blank">http://zrcola.zrc-sazu.si</a>), ki ga je na Znanstvenoraziskovalnem centru SAZU v Ljubljani (<a href="http://www.zrc-sazu.si" target="_blank">http://www.zrc-sazu.si</a>) razvil Peter Weiss.</p>
|
||||||
|
|
||||||
|
<small>Zadnja sprememba: julij 2018, Nermin Jukan</small>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-default" data-dismiss="modal" ng-click="$ctrl.close();">Zapri</button>
|
||||||
|
</div>
|
111
components/dialect/dialect.component.js
Normal file
111
components/dialect/dialect.component.js
Normal file
|
@ -0,0 +1,111 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsApp')
|
||||||
|
.component('dialectComponent', {
|
||||||
|
templateUrl: 'components/dialect/dialect.template.html',
|
||||||
|
bindings: {
|
||||||
|
resolve: '<',
|
||||||
|
close: '&',
|
||||||
|
dismiss: '&',
|
||||||
|
modalInstance: '<'
|
||||||
|
},
|
||||||
|
controller: ['$scope', '$rootScope', 'Config', function dialectController($scope, $rootScope, Config) {
|
||||||
|
var vm = this;
|
||||||
|
|
||||||
|
vm.$onInit = function () {
|
||||||
|
// injected resolve
|
||||||
|
vm.dialectData = vm.resolve.dialectData;
|
||||||
|
vm.dialectData.audio = Config.APP_PATH + vm.dialectData.audio;
|
||||||
|
vm.analysisData = prepareAnalysisData(vm.resolve.analysisData);
|
||||||
|
|
||||||
|
// prepare print view
|
||||||
|
$rootScope.printData = $rootScope.printData || {};
|
||||||
|
$rootScope.printData.dialectData = vm.dialectData;
|
||||||
|
$rootScope.printData.analysisData = vm.analysisData;
|
||||||
|
|
||||||
|
// injected modal result
|
||||||
|
vm.modalInstance.result.then(function(){
|
||||||
|
if(vm.wavesurfer){
|
||||||
|
vm.wavesurfer.destroy(); // close button clicked (success)
|
||||||
|
}
|
||||||
|
}, function(){
|
||||||
|
if(vm.wavesurfer){
|
||||||
|
vm.wavesurfer.destroy(); // ESC key or backdrop click (fail)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
function prepareAnalysisData(analysis){
|
||||||
|
var _analysisData = [];
|
||||||
|
analysis.forEach(function(a){
|
||||||
|
_analysisData[a.section] = _analysisData[a.section] || [];
|
||||||
|
_analysisData[a.section].push({
|
||||||
|
maintext: a.maintext,
|
||||||
|
examples: a.examples
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return _analysisData;
|
||||||
|
}
|
||||||
|
|
||||||
|
vm.ok = function(){
|
||||||
|
vm.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
// wafesurfer //
|
||||||
|
var activeUrl = null;
|
||||||
|
|
||||||
|
vm.paused = true;
|
||||||
|
|
||||||
|
$scope.$on('wavesurferInit', function (e, wavesurfer) {
|
||||||
|
|
||||||
|
vm.wavesurfer = vm.wavesurfer || wavesurfer;
|
||||||
|
|
||||||
|
/*
|
||||||
|
wavesurfer.on('loading', function (percents) {
|
||||||
|
document.getElementById('progress').value = percents;
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
|
|
||||||
|
wavesurfer.on('ready', function (percents) {
|
||||||
|
document.getElementById('progress').style.display = 'none';
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
|
*/
|
||||||
|
|
||||||
|
vm.wavesurfer.on('play', function () {
|
||||||
|
vm.paused = false;
|
||||||
|
});
|
||||||
|
|
||||||
|
vm.wavesurfer.on('pause', function () {
|
||||||
|
vm.paused = true;
|
||||||
|
});
|
||||||
|
|
||||||
|
vm.wavesurfer.on('finish', function () {
|
||||||
|
vm.paused = true;
|
||||||
|
vm.wavesurfer.seekTo(0);
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
vm.play = function (url) {
|
||||||
|
if (!vm.wavesurfer) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
activeUrl = url;
|
||||||
|
|
||||||
|
vm.wavesurfer.once('ready', function () {
|
||||||
|
vm.wavesurfer.play();
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
|
|
||||||
|
vm.wavesurfer.load(activeUrl);
|
||||||
|
};
|
||||||
|
|
||||||
|
vm.isPlaying = function (url) {
|
||||||
|
return url == activeUrl;
|
||||||
|
};
|
||||||
|
|
||||||
|
}]
|
||||||
|
});
|
49
components/dialect/dialect.template.html
Normal file
49
components/dialect/dialect.template.html
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
<div class="modal-header">
|
||||||
|
|
||||||
|
<button type="button" class="close" ng-click="$ctrl.ok();" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
|
<button type="button" class="btn btn-primary" onclick="window.print();" style="float:right; margin-right:25px;">Natisni</button>
|
||||||
|
<h4 class="modal-title">{{ $ctrl.dialectData.location_name }} ({{ $ctrl.dialectData.location_label }}) - {{ $ctrl.dialectData.dialect_key | nameDialect }}, {{ $ctrl.dialectData.dialect_key | nameDialectGroup }}</h4>
|
||||||
|
<pre class="location-metadata">{{ $ctrl.dialectData.metadata }}</pre>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div id="play-pause" ng-click="$ctrl.wavesurfer.playPause()"></div>
|
||||||
|
<ng-wavesurfer url="{{$ctrl.dialectData.audio}}" wave-color="#337ab7" progress-color="#23527c" height="128" scroll-parent="true" style="height:128px;">
|
||||||
|
<!--<progress id="progress" class="progress progress-striped" value="0" max="100" style="width:100%;"></progress>-->
|
||||||
|
</ng-wavesurfer>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12 col-md-6">
|
||||||
|
<h4>Transkripcija</h4>
|
||||||
|
<div id="transkripcija">{{ $ctrl.dialectData.transcription }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-12 col-md-6">
|
||||||
|
<h4>Poknjižitev</h4>
|
||||||
|
<div id="poknjizitev">{{ $ctrl.dialectData.standard_slovene }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-12" ng-if="$ctrl.dialectData['analysis1']">
|
||||||
|
<h4>Analiza</h4>
|
||||||
|
|
||||||
|
<table class="table table-bordered" id="analiza">
|
||||||
|
<tbody ng-repeat="i in [1,2,3,4,5,6,7]">
|
||||||
|
<tr class="tr-head">
|
||||||
|
<td>{{i}}</td>
|
||||||
|
<td colspan="2">{{ $ctrl.dialectData["analysis"+i] }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr ng-repeat="a in $ctrl.analysisData[i]" class="analysis-items">
|
||||||
|
<td>{{i}}.{{$index+1}}</td>
|
||||||
|
<td>{{a.maintext}}</td>
|
||||||
|
<td>{{a.examples}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-primary" onclick="window.print();">Natisni</button>
|
||||||
|
<button type="button" class="btn btn-default" ng-click="$ctrl.ok();">Zapri</button>
|
||||||
|
</div>
|
40
components/legend/legend.component.js
Normal file
40
components/legend/legend.component.js
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsApp')
|
||||||
|
.component('dialectLegend', {
|
||||||
|
templateUrl: 'components/legend/legend.template.html',
|
||||||
|
controller: ['geojsonService', '$scope', '$rootScope', 'dialects', function LegendController(geojsonService, $scope, $rootScope, dialects) {
|
||||||
|
|
||||||
|
var vm = this;
|
||||||
|
vm.dialectGroups = dialects;
|
||||||
|
vm.mouseEnter = mouseEnter;
|
||||||
|
vm.mouseLeave = mouseLeave;
|
||||||
|
|
||||||
|
function mouseEnter(id, type){
|
||||||
|
var hoverWeight = 5;
|
||||||
|
if(id.indexOf('narecna_skupina') > -1){
|
||||||
|
$rootScope.layersArr[id].bringToFront();
|
||||||
|
}
|
||||||
|
$rootScope.layersArr[id].setStyle({
|
||||||
|
weight: hoverWeight,
|
||||||
|
color: "#b23636"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function mouseLeave(elem, type){
|
||||||
|
var id = elem.id;
|
||||||
|
var resetWeight = 1;
|
||||||
|
if(id.indexOf('narecna_skupina') > -1){
|
||||||
|
$rootScope.layersArr[id].bringToBack();
|
||||||
|
resetWeight = 3;
|
||||||
|
}
|
||||||
|
$rootScope.layersArr[id].setStyle({
|
||||||
|
weight: resetWeight,
|
||||||
|
color: "#000000"
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}]
|
||||||
|
});
|
18
components/legend/legend.template.html
Normal file
18
components/legend/legend.template.html
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<div id="legenda" class="hidden-mobile">
|
||||||
|
|
||||||
|
<div ng-repeat="(id, dialectGroup) in $ctrl.dialectGroups" id="{{id}}">
|
||||||
|
<strong ng-mouseover="$ctrl.mouseEnter(id, 'group')" ng-mouseleave="$ctrl.mouseLeave(this)" class="pointer">{{ dialectGroup.name }}</strong>
|
||||||
|
<div class="legenda-box"></div>
|
||||||
|
<div class="legenda-dialects">
|
||||||
|
<div ng-repeat="(id, dialect) in dialectGroup.dialects" class="legenda-dialect" >
|
||||||
|
<span ng-mouseover="$ctrl.mouseEnter(id, 'dialect')" ng-mouseleave="$ctrl.mouseLeave(this)" class="pointer">{{ dialect.name }}</span>
|
||||||
|
<div class="legenda-subdialects">
|
||||||
|
<div ng-repeat="(id, subdialect) in dialect.subdialects" class="legenda-subdialect">
|
||||||
|
<i ng-mouseover="$ctrl.mouseEnter(id, 'subdialect')" ng-mouseleave="$ctrl.mouseLeave(this)" class="pointer">{{ subdialect.name }}</i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
220
components/main/main.component.js
Normal file
220
components/main/main.component.js
Normal file
|
@ -0,0 +1,220 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsApp')
|
||||||
|
.component('app', {
|
||||||
|
templateUrl: 'components/main/main.template.html',
|
||||||
|
controller: ['$filter', 'geojsonService', '$q', '$scope', '$rootScope', '$timeout', '$uibModal', '$http', 'leafletData', function MainController($filter, geojsonService, $q, $scope, $rootScope, $timeout, $uibModal, $http, leafletData) {
|
||||||
|
|
||||||
|
var vm = this;
|
||||||
|
var colorDialect = $filter('colorDialect');
|
||||||
|
var patternDialect = $filter('patternDialect');
|
||||||
|
var nameDialect = $filter('nameDialect');
|
||||||
|
var nameDialectGroup = $filter('nameDialectGroup');
|
||||||
|
|
||||||
|
var leafletMap;
|
||||||
|
|
||||||
|
leafletData.getMap('karta').then(function(_map) {
|
||||||
|
vm.info = "Karta slovenskih narečnih besedil se nalaga ...";
|
||||||
|
leafletMap = _map;
|
||||||
|
});
|
||||||
|
|
||||||
|
vm.center = {
|
||||||
|
lat: 46.05,
|
||||||
|
lng: 14.53,
|
||||||
|
zoom: 9
|
||||||
|
};
|
||||||
|
|
||||||
|
vm.maxBounds = {
|
||||||
|
northEast: {
|
||||||
|
lat: 47.2,
|
||||||
|
lng: 17
|
||||||
|
},
|
||||||
|
southWest: {
|
||||||
|
lat: 45,
|
||||||
|
lng: 13
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function style(feature) {
|
||||||
|
var id = feature.properties.id;
|
||||||
|
var pattern = patternDialect(id);
|
||||||
|
var fillPattern = false;
|
||||||
|
if( pattern.type == 'stripes' ){
|
||||||
|
fillPattern = new L.StripePattern( pattern.config )
|
||||||
|
fillPattern.addTo(leafletMap);
|
||||||
|
} else if( pattern.type == 'circles' ){
|
||||||
|
var shape = new L.PatternCircle( pattern.config );
|
||||||
|
fillPattern = new L.Pattern({width:20, height:20});
|
||||||
|
fillPattern.addShape(shape);
|
||||||
|
fillPattern.addTo(leafletMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
var dashArray = 'none';
|
||||||
|
var weight = 1;
|
||||||
|
if(id.indexOf('podnarecje') > -1){
|
||||||
|
dashArray = '5';
|
||||||
|
}
|
||||||
|
if(id.indexOf('narecna_skupina') > -1){
|
||||||
|
weight = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
fillColor: colorDialect(id),
|
||||||
|
fillPattern: fillPattern,
|
||||||
|
weight: weight,
|
||||||
|
opacity: 1,
|
||||||
|
color: '#000000',
|
||||||
|
dashArray: dashArray,
|
||||||
|
fillOpacity: 0.8
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
geojsonService.getAllSorted().then(function (response) {
|
||||||
|
vm.geojson = {
|
||||||
|
data: response.data,
|
||||||
|
style: style,
|
||||||
|
resetStyleOnMouseout: true,
|
||||||
|
onEachFeature: onEachFeature,
|
||||||
|
resetStyleOnMouseout: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$rootScope.layersArr = [];
|
||||||
|
|
||||||
|
function onEachFeature(feature, layer) {
|
||||||
|
|
||||||
|
$rootScope.layersArr[feature.properties.id] = layer;
|
||||||
|
|
||||||
|
layer.on({
|
||||||
|
mouseover: highlightFeature,
|
||||||
|
mouseout: resetHighlight
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function highlightFeature(e) {
|
||||||
|
var id = e.target.feature.properties.id;
|
||||||
|
vm.info = id;
|
||||||
|
|
||||||
|
if( id.indexOf('narecna_skupina') === -1){ // do not highlight dialect groups
|
||||||
|
var layer = e.target;
|
||||||
|
layer.setStyle({
|
||||||
|
weight: 5,
|
||||||
|
color: "#b23636"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function resetHighlight(e) {
|
||||||
|
var layer = e.target;
|
||||||
|
var resetWeight = 1;
|
||||||
|
if(layer.feature.properties.id.indexOf('narecna_skupina') > -1){
|
||||||
|
resetWeight = 3;
|
||||||
|
}
|
||||||
|
layer.setStyle({
|
||||||
|
weight: resetWeight,
|
||||||
|
color: "#000000"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
vm.features = [];
|
||||||
|
|
||||||
|
vm.info = "Premaknite miško na željeno območje za prikaz imena narečja";
|
||||||
|
|
||||||
|
getMarkers();
|
||||||
|
|
||||||
|
function getMarkers() {
|
||||||
|
$http.get('api/dialects').then(function (response) {
|
||||||
|
//console.log(response.data)
|
||||||
|
vm.markers = {};
|
||||||
|
var i;
|
||||||
|
for(i=0; i < response.data.length; i++){
|
||||||
|
vm.markers[ response.data[i]['location_label'] ] = {
|
||||||
|
lat: parseFloat(response.data[i]['location_latitude']),
|
||||||
|
lng: parseFloat(response.data[i]['location_longitude']),
|
||||||
|
icon: getIconConfig( response.data[i] ),
|
||||||
|
title: response.data[i]['location_name']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.$on('leafletDirectiveMarker.karta.mouseover', function(event, args){
|
||||||
|
var id = args.model.icon.dialectKey;
|
||||||
|
vm.info = args.model.title + " - " + nameDialect(id) + ", " + nameDialectGroup(id);
|
||||||
|
});
|
||||||
|
|
||||||
|
$scope.$on('leafletDirectiveMarker.karta.mouseout', function(event, args){
|
||||||
|
resetInfoBox();
|
||||||
|
});
|
||||||
|
|
||||||
|
$scope.$on('leafletDirectiveMarker.karta.click', function(event, args){
|
||||||
|
var id = args.model.icon.dialectId;
|
||||||
|
openDialectModal(id);
|
||||||
|
});
|
||||||
|
|
||||||
|
$scope.$on("leafletDirectiveGeoJson.karta.mouseover", function(event, args) {
|
||||||
|
var id = args.model.properties.id
|
||||||
|
vm.info = id;
|
||||||
|
});
|
||||||
|
|
||||||
|
$scope.$on("leafletDirectiveGeoJson.karta.mouseout", function(event, args) {
|
||||||
|
resetInfoBox();
|
||||||
|
});
|
||||||
|
|
||||||
|
function resetInfoBox(){
|
||||||
|
vm.info = "Premaknite miško na željeno območje za prikaz imena narečja";
|
||||||
|
}
|
||||||
|
|
||||||
|
function getIconConfig(data){
|
||||||
|
|
||||||
|
var label = data['location_label'];
|
||||||
|
var dialect_key = data['dialect_key'];
|
||||||
|
var id = data['id'];
|
||||||
|
|
||||||
|
return {
|
||||||
|
type: 'div',
|
||||||
|
iconAnchor: [18, 55],
|
||||||
|
iconSize: [0, 0],
|
||||||
|
html: '<svg x="0px" y="0px" viewBox="0 0 365 560" style="width:36px; cursor:pointer;"><g><path fill="'+colorDialect(dialect_key)+'" stroke="#000000" stroke-width="20" d="M182.9,551.7c0,0.1,0.2,0.3,0.2,0.3S358.3,283,358.3,194.6c0-130.1-88.8-186.7-175.4-186.9 C96.3,7.9,7.5,64.5,7.5,194.6c0,88.4,175.3,357.4,175.3,357.4S182.9,551.7,182.9,551.7z"/></g></svg>\
|
||||||
|
<div style="font-size:1.5em; color:#000000; position: absolute; top: 10px; text-align: center; width:36px;">'+label+'</div>',
|
||||||
|
dialectKey: dialect_key,
|
||||||
|
dialectId: id
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
vm.openAboutModal = function () {
|
||||||
|
var modalInstance = $uibModal.open({
|
||||||
|
component: 'aboutComponent',
|
||||||
|
size: 'wide'
|
||||||
|
});
|
||||||
|
// handle modal dismiss
|
||||||
|
modalInstance.result.then(function () { }, function () { });
|
||||||
|
}
|
||||||
|
|
||||||
|
function openDialectModal (dialect_id) {
|
||||||
|
var modalInstance = $uibModal.open({
|
||||||
|
component: 'dialectComponent',
|
||||||
|
size: 'wide',
|
||||||
|
resolve: {
|
||||||
|
// will be injected into controller
|
||||||
|
dialectData: function () {
|
||||||
|
return $http.get('api/dialects/' + dialect_id).then(function (response) {
|
||||||
|
return response.data;
|
||||||
|
}, function (err) {
|
||||||
|
console.log('Error getting dialect', dialect_id, '-', err);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
analysisData: function () {
|
||||||
|
return $http.get('api/dialects/' + dialect_id + '/analysis/').then(function (response) {
|
||||||
|
return response.data;
|
||||||
|
}, function (err) {
|
||||||
|
console.log('Error getting analysis for dialect', dialect_id, '-', err);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}]
|
||||||
|
});
|
26
components/main/main.template.html
Normal file
26
components/main/main.template.html
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<!---
|
||||||
|
* Edited by: Nermin Jukan, 63150367
|
||||||
|
* Date: 17. 05. 2018
|
||||||
|
* Modifications: Added a new heading 'h2' tag with text 'Stara kmečka hiša'.
|
||||||
|
|
||||||
|
--->
|
||||||
|
|
||||||
|
<leaflet id="karta" width="100%" height="100%" center="$ctrl.center" geojson="$ctrl.geojson" markers="$ctrl.markers" maxbounds="$ctrl.maxBounds"></leaflet>
|
||||||
|
|
||||||
|
<div id="main">
|
||||||
|
|
||||||
|
<div id="title" class="hidden-mobile">
|
||||||
|
<h1>Interaktivna karta slovenskih narečnih besedil<br>Stara kmečka hiša</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="o-projektu" ng-click="$ctrl.openAboutModal()">O spletni aplikaciji</div>
|
||||||
|
|
||||||
|
<dialect-legend></dialect-legend>
|
||||||
|
|
||||||
|
<div id="info-box-wrap">
|
||||||
|
<div id="info-box">{{ $ctrl.info | nameDialect }}<span ng-if="$ctrl.info | nameDialectGroup">, {{ $ctrl.info | nameDialectGroup }}</span></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<print></print>
|
30
components/print/print.component.js
Normal file
30
components/print/print.component.js
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsApp')
|
||||||
|
.component('print', {
|
||||||
|
templateUrl: 'components/print/print.template.html',
|
||||||
|
controller: ['$scope', '$rootScope', function printController($scope, $rootScope) {
|
||||||
|
|
||||||
|
var vm = this;
|
||||||
|
|
||||||
|
$scope.$watch(
|
||||||
|
function() { return ($rootScope.printData && $rootScope.printData.dialectData) ? $rootScope.printData.dialectData : '' },
|
||||||
|
function(dialectData) {
|
||||||
|
if(dialectData){
|
||||||
|
vm.dialectData = dialectData;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
$scope.$watch(
|
||||||
|
function() { return ($rootScope.printData && $rootScope.printData.analysisData) ? $rootScope.printData.analysisData : '' },
|
||||||
|
function(analysisData) {
|
||||||
|
if(analysisData){
|
||||||
|
vm.analysisData = analysisData;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
}]
|
||||||
|
});
|
44
components/print/print.template.html
Normal file
44
components/print/print.template.html
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<div class="container printable">
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<h4 class="print-title">
|
||||||
|
Interaktivna karta slovenskih narečnih besedil, Stara kmečka hiša:<br>
|
||||||
|
{{ $ctrl.dialectData.location_name }} ({{ $ctrl.dialectData.location_label }}) - {{ $ctrl.dialectData.dialect_key | nameDialect }}, {{ $ctrl.dialectData.dialect_key | nameDialectGroup }}</h4>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<h4>Komentar</h4>
|
||||||
|
<div id="print_meta"><pre>{{ $ctrl.dialectData.metadata }}</pre></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<h4>Transkripcija</h4>
|
||||||
|
<div id="print_transkripcija">{{ $ctrl.dialectData.transcription }}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<h4>Poknjižitev</h4>
|
||||||
|
<div id="print_poknjizitev">{{ $ctrl.dialectData.standard_slovene }}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<h4>Analiza</h4>
|
||||||
|
<table class="table table-bordered" id="print_analiza">
|
||||||
|
<tbody ng-repeat="i in [1,2,3,4,5,6,7]">
|
||||||
|
<tr class="tr-head">
|
||||||
|
<td>{{i}}</td>
|
||||||
|
<td colspan="2">{{ $ctrl.dialectData["analysis"+i] }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr ng-repeat="a in $ctrl.analysisData[i]" class="analysis-items">
|
||||||
|
<td>{{i}}.{{$index+1}}</td>
|
||||||
|
<td>{{a.maintext}}</td>
|
||||||
|
<td>{{a.examples}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
143
dialectsdb.sql
Normal file
143
dialectsdb.sql
Normal file
|
@ -0,0 +1,143 @@
|
||||||
|
-- phpMyAdmin SQL Dump
|
||||||
|
-- version 4.5.4.1deb2ubuntu2
|
||||||
|
-- http://www.phpmyadmin.net
|
||||||
|
--
|
||||||
|
-- Host: localhost
|
||||||
|
-- Generation Time: Apr 04, 2018 at 01:22 PM
|
||||||
|
-- Server version: 5.7.20-0ubuntu0.16.04.1
|
||||||
|
-- PHP Version: 7.0.22-0ubuntu0.16.04.1
|
||||||
|
|
||||||
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||||
|
SET time_zone = "+00:00";
|
||||||
|
|
||||||
|
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||||
|
/*!40101 SET NAMES utf8mb4 */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Database: `dialectsdb`
|
||||||
|
--
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `analysis_items`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE `analysis_items` (
|
||||||
|
`id` int(11) NOT NULL,
|
||||||
|
`dialect_entry_id` int(11) NOT NULL,
|
||||||
|
`section` int(11) NOT NULL,
|
||||||
|
`maintext` text NOT NULL,
|
||||||
|
`examples` text NOT NULL
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `dialect_entries`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE `dialect_entries` (
|
||||||
|
`id` int(11) NOT NULL,
|
||||||
|
`dialect_key` varchar(50) DEFAULT NULL,
|
||||||
|
`location_name` varchar(50) DEFAULT NULL,
|
||||||
|
`location_label` varchar(10) DEFAULT NULL,
|
||||||
|
`audio` varchar(255) DEFAULT NULL,
|
||||||
|
`location_latitude` decimal(10,6) DEFAULT NULL,
|
||||||
|
`location_longitude` decimal(10,6) DEFAULT NULL,
|
||||||
|
`metadata` text NOT NULL,
|
||||||
|
`transcription` text NOT NULL,
|
||||||
|
`standard_slovene` text NOT NULL,
|
||||||
|
`analysis1` text NOT NULL,
|
||||||
|
`analysis2` text NOT NULL,
|
||||||
|
`analysis3` text NOT NULL,
|
||||||
|
`analysis4` text NOT NULL,
|
||||||
|
`analysis5` text NOT NULL,
|
||||||
|
`analysis6` text NOT NULL,
|
||||||
|
`analysis7` text NOT NULL,
|
||||||
|
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
`modified` timestamp NULL DEFAULT NULL,
|
||||||
|
`created_by` int(11) NOT NULL,
|
||||||
|
`modified_by` int(11) DEFAULT NULL
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `users`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE `users` (
|
||||||
|
`id` int(11) NOT NULL,
|
||||||
|
`username` varchar(100) NOT NULL,
|
||||||
|
`password` varchar(255) NOT NULL,
|
||||||
|
`name` varchar(100) NOT NULL,
|
||||||
|
`is_admin` tinyint(4) NOT NULL DEFAULT '1'
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `users`
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `users` (`id`, `username`, `password`, `name`, `is_admin`) VALUES
|
||||||
|
(1, 'urednik', '$2y$10$ZFS092RmBFTChyHYxMxcfu83VC4t4s0kU73mFQPjMW8Yk0S.nQBR6', 'Glavni Urednik', 1);
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Indexes for dumped tables
|
||||||
|
--
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Indexes for table `analysis_items`
|
||||||
|
--
|
||||||
|
ALTER TABLE `analysis_items`
|
||||||
|
ADD PRIMARY KEY (`id`),
|
||||||
|
ADD KEY `SECONDARY` (`dialect_entry_id`) USING BTREE;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Indexes for table `dialect_entries`
|
||||||
|
--
|
||||||
|
ALTER TABLE `dialect_entries`
|
||||||
|
ADD PRIMARY KEY (`id`);
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Indexes for table `users`
|
||||||
|
--
|
||||||
|
ALTER TABLE `users`
|
||||||
|
ADD PRIMARY KEY (`id`),
|
||||||
|
ADD UNIQUE KEY `username` (`username`);
|
||||||
|
|
||||||
|
--
|
||||||
|
-- AUTO_INCREMENT for dumped tables
|
||||||
|
--
|
||||||
|
|
||||||
|
--
|
||||||
|
-- AUTO_INCREMENT for table `analysis_items`
|
||||||
|
--
|
||||||
|
ALTER TABLE `analysis_items`
|
||||||
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
|
||||||
|
--
|
||||||
|
-- AUTO_INCREMENT for table `dialect_entries`
|
||||||
|
--
|
||||||
|
ALTER TABLE `dialect_entries`
|
||||||
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
|
||||||
|
--
|
||||||
|
-- AUTO_INCREMENT for table `users`
|
||||||
|
--
|
||||||
|
ALTER TABLE `users`
|
||||||
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||||||
|
--
|
||||||
|
-- Constraints for dumped tables
|
||||||
|
--
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Constraints for table `analysis_items`
|
||||||
|
--
|
||||||
|
ALTER TABLE `analysis_items`
|
||||||
|
ADD CONSTRAINT `analysis_items_ibfk_1` FOREIGN KEY (`dialect_entry_id`) REFERENCES `dialect_entries` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
23
directives/wavesurfer.directive.js
Normal file
23
directives/wavesurfer.directive.js
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsApp')
|
||||||
|
|
||||||
|
.directive('ngWavesurfer', function () {
|
||||||
|
return {
|
||||||
|
restrict: 'E',
|
||||||
|
|
||||||
|
link: function ($scope, $element, $attrs) {
|
||||||
|
$element.css('display', 'block');
|
||||||
|
|
||||||
|
var options = angular.extend({ container: $element[0] }, $attrs);
|
||||||
|
var wavesurfer = WaveSurfer.create(options);
|
||||||
|
|
||||||
|
if ($attrs.url) {
|
||||||
|
wavesurfer.load($attrs.url, $attrs.data || null);
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.$emit('wavesurferInit', wavesurfer);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
build: .
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "5000:80"
|
||||||
|
volumes:
|
||||||
|
- <pot do zvočnih datotek>:/var/lib/www/iknb/resources/audio
|
||||||
|
environment:
|
||||||
|
DB_HOST: db
|
||||||
|
DB_USER: nermin
|
||||||
|
DB_PASS: testpass
|
||||||
|
DB_SCHEMA: dialectsdb
|
||||||
|
db:
|
||||||
|
image: "mariadb:10.5-focal"
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: roottestpass
|
||||||
|
MYSQL_DATABASE: dialectsdb
|
||||||
|
MYSQL_USER: nermin
|
||||||
|
MYSQL_PASSWORD: testpass
|
||||||
|
volumes:
|
||||||
|
- <pot do baze>:/var/lib/mysql
|
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
150
filters/colordialect.filter.js
Normal file
150
filters/colordialect.filter.js
Normal file
|
@ -0,0 +1,150 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsApp')
|
||||||
|
.filter('colorDialect', function() {
|
||||||
|
/*var dialects = {
|
||||||
|
"halosko_narecje":"#CEBA00",
|
||||||
|
"prlesko_narecje":"#635C00",
|
||||||
|
"prekmursko_narecje":"#E5E289",
|
||||||
|
"slovenskogorisko_narecje":"#999464",
|
||||||
|
"stajerska_narecna_skupina":"#22A50C",
|
||||||
|
"_sevnisko-krsko_podnarecje":"#5FC474",
|
||||||
|
"_zagorsko_trboveljsko_podnarecje":"#00771F",
|
||||||
|
"_lasko_podnarecje":"#89EFC3",
|
||||||
|
"posavsko_narecje":"#00FC2A",
|
||||||
|
"kozjansko-bizeljsko_narecje":"#0EA077",
|
||||||
|
"srednjesavinjsko_narecje":"#85EA24",
|
||||||
|
"_solcavsko_podnarecje":"#9CC66F",
|
||||||
|
"zgornjesavinjsko_narecje":"#00DD93",
|
||||||
|
"srednjestajersko_narecje":"#00F71D",
|
||||||
|
"juznopohorsko_narecje":"#639338",
|
||||||
|
"_kozjasko_podnarecje":"#23490A",
|
||||||
|
"dolenjska_narecna_skupina":"#B50B30",
|
||||||
|
"_vzhodnodolenjsko_podnarecje":"#6B3C43",
|
||||||
|
"dolenjsko_narecje":"#ED7777",
|
||||||
|
"kostelsko_narecje":"#ED0A67",
|
||||||
|
"mesani_kocevski_govori":"#EF3300",
|
||||||
|
"juznobelokranjsko_narecje":"#A30000",
|
||||||
|
"severnobelokranjsko_narecje":"#FF2A00",
|
||||||
|
"primorska_narecna_skupina":"#ED6000",
|
||||||
|
"cisko_narecje":"#594215",
|
||||||
|
"notranjsko_narecje":"#75674B",
|
||||||
|
"_savrinsko_podnarecje":"#E8BB00",
|
||||||
|
"_rizansko_podnarecje":"#AD6105",
|
||||||
|
"istrsko_narecje":"#8C815E",
|
||||||
|
"krasko_narecje":"#99880B",
|
||||||
|
"obsosko_narecje":"#915206",
|
||||||
|
"rezijansko_narecje":"#7C760A",
|
||||||
|
"tersko_narecje":"#683B05",
|
||||||
|
"nadisko_narecje":"#EDD6BC",
|
||||||
|
"brisko_narecje":"#EDDEA2",
|
||||||
|
"_banjsko_podnarecje":"#4C664C",
|
||||||
|
"rovtarska_narecna_skupina":"#0855FF",
|
||||||
|
"tolminsko_narecje":"#0BFFFF",
|
||||||
|
"_basko_podnarecje":"#060691",
|
||||||
|
"skofjelosko_narecje":"#706DF2",
|
||||||
|
"horjulsko_narecje":"#2E66B7",
|
||||||
|
"crnovrsko_narecje":"#0600FF",
|
||||||
|
"cerkljansko_narecje":"#0B1D77",
|
||||||
|
"poljansko_narecje":"#585593",
|
||||||
|
"gorenjska_narecna_skupina":"#9700F9",
|
||||||
|
"gorenjsko_narecje":"#520899",
|
||||||
|
"selsko_narecje":"#7F00EF",
|
||||||
|
"_vzhodnogorenjsko_podnarecje":"#B79CE2",
|
||||||
|
"koroska_narecna_skupina":"#E223BE",
|
||||||
|
"ziljsko_narecje":"#870B87",
|
||||||
|
"_kranjskogorsko_podnarecje":"#720C7A",
|
||||||
|
"rozansko_narecje":"#DC91E2",
|
||||||
|
"podjunsko_narecje":"#A80088",
|
||||||
|
"obirsko_narecje":"#ED85E1",
|
||||||
|
"mezisko_narecje":"#5B1659",
|
||||||
|
"severnopohorsko-remsnisko_narecje":"#C683C3",
|
||||||
|
"panonska_narecna_skupina":"#EFEF03"
|
||||||
|
}*/
|
||||||
|
|
||||||
|
var dialects = {
|
||||||
|
"panonska_narecna_skupina":"transparent",
|
||||||
|
"halosko_narecje":"#ffff7b",
|
||||||
|
"prlesko_narecje":"#ffff7b",
|
||||||
|
"prekmursko_narecje":"#ffff7b",
|
||||||
|
"slovenskogorisko_narecje":"#ffff7b",
|
||||||
|
|
||||||
|
"stajerska_narecna_skupina":"transparent",
|
||||||
|
"_sevnisko-krsko_podnarecje":"#c77e5a",
|
||||||
|
"_zagorsko_trboveljsko_podnarecje":"#c77e5a",
|
||||||
|
"_lasko_podnarecje":"#c77e5a",
|
||||||
|
"posavsko_narecje":"#ff9900",
|
||||||
|
"kozjansko-bizeljsko_narecje":"#78c785",
|
||||||
|
"srednjesavinjsko_narecje":"#97c77f",
|
||||||
|
"_solcavsko_podnarecje":"#aac79b",
|
||||||
|
"zgornjesavinjsko_narecje":"#aac79b",
|
||||||
|
"srednjestajersko_narecje":"#7ec75a",
|
||||||
|
"juznopohorsko_narecje":"#b0ef91",
|
||||||
|
"_kozjasko_podnarecje":"#b0ef91",
|
||||||
|
|
||||||
|
/*
|
||||||
|
"dolenjska_narecna_skupina":"transparent",
|
||||||
|
"_vzhodnodolenjsko_podnarecje":"#c77e5a",
|
||||||
|
"dolenjsko_narecje":"#c77e5a",
|
||||||
|
"kostelsko_narecje":"#dbbfa7",
|
||||||
|
"mesani_kocevski_govori":"#edddc2",
|
||||||
|
"juznobelokranjsko_narecje":"#c77e5a",
|
||||||
|
"severnobelokranjsko_narecje":"#c77e5a",
|
||||||
|
*/
|
||||||
|
|
||||||
|
"dolenjska_narecna_skupina":"transparent",
|
||||||
|
"_vzhodnodolenjsko_podnarecje":"#ff9900",
|
||||||
|
"dolenjsko_narecje":"#ff9900",
|
||||||
|
"kostelsko_narecje":"#ff9900",
|
||||||
|
"mesani_kocevski_govori":"#ff9900",
|
||||||
|
"juznobelokranjsko_narecje":"#ff9900",
|
||||||
|
"severnobelokranjsko_narecje":"#ff9900",
|
||||||
|
|
||||||
|
"primorska_narecna_skupina":"transparent",
|
||||||
|
"cisko_narecje":"#ff9900",
|
||||||
|
"cisko_narecje_2":"#ff9900",
|
||||||
|
"notranjsko_narecje":"#ff9900",
|
||||||
|
"_savrinsko_podnarecje":"#ff9900",
|
||||||
|
"_rizansko_podnarecje":"#ff9900",
|
||||||
|
"istrsko_narecje":"#ff9900",
|
||||||
|
"krasko_narecje":"#fd9059",
|
||||||
|
"obsosko_narecje":"#e9ac9f",
|
||||||
|
"rezijansko_narecje":"#f0a086",
|
||||||
|
"tersko_narecje":"#f0a086",
|
||||||
|
"nadisko_narecje":"#ffc6ac",
|
||||||
|
"brisko_narecje":"#ffc6ac",
|
||||||
|
"_banjsko_podnarecje":"#fd9059",
|
||||||
|
|
||||||
|
"rovtarska_narecna_skupina":"transparent",
|
||||||
|
"tolminsko_narecje":"#a4cdff",
|
||||||
|
"_basko_podnarecje":"#a4cdff",
|
||||||
|
"skofjelosko_narecje":"#8d93f8",
|
||||||
|
"horjulsko_narecje":"#7e89c5",
|
||||||
|
"crnovrsko_narecje":"#7dabcc",
|
||||||
|
"cerkljansko_narecje":"#549cfa",
|
||||||
|
"poljansko_narecje":"#72affb",
|
||||||
|
|
||||||
|
"gorenjska_narecna_skupina":"transparent",
|
||||||
|
"gorenjsko_narecje":"#d2a0fc",
|
||||||
|
"selsko_narecje":"#8d93f8",
|
||||||
|
"_vzhodnogorenjsko_podnarecje":"#d2a0fc",
|
||||||
|
|
||||||
|
"koroska_narecna_skupina":"transparent",
|
||||||
|
"ziljsko_narecje":"#ffa4e5",
|
||||||
|
"_kranjskogorsko_podnarecje":"#ffa4e5",
|
||||||
|
"rozansko_narecje":"#ff83e2",
|
||||||
|
"podjunsko_narecje":"#f9bae4",
|
||||||
|
"obirsko_narecje":"#ff83e2",
|
||||||
|
"mezisko_narecje":"#fea3e9",
|
||||||
|
"severnopohorsko-remsnisko_narecje":"#fea3e9",
|
||||||
|
|
||||||
|
// special case:
|
||||||
|
"mesani_kocevski_govori_narecje":"#aeaeae"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return function(input) {
|
||||||
|
return dialects[input] ? dialects[input] : input;
|
||||||
|
};
|
||||||
|
});
|
69
filters/namedialect.filter.js
Normal file
69
filters/namedialect.filter.js
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsApp')
|
||||||
|
.filter('nameDialect', function() {
|
||||||
|
var dialects = {
|
||||||
|
"halosko_narecje":"Haloško narečje",
|
||||||
|
"prlesko_narecje":"Prleško narečje",
|
||||||
|
"prekmursko_narecje":"Prekmursko narečje",
|
||||||
|
"slovenskogorisko_narecje":"Slovenskogoriško narečje",
|
||||||
|
"stajerska_narecna_skupina":"Štajerska narečna skupina",
|
||||||
|
"_sevnisko-krsko_podnarecje":"Posavsko narečje: sevniško-krško podnarečje",
|
||||||
|
"_zagorsko_trboveljsko_podnarecje":"Posavsko narečje: zagorsko trboveljsko podnarečje",
|
||||||
|
"_lasko_podnarecje":"Posavsko narečje: laško podnarečje",
|
||||||
|
"posavsko_narecje":"Posavsko narečje",
|
||||||
|
"kozjansko-bizeljsko_narecje":"Kozjansko-bizeljsko narečje",
|
||||||
|
"srednjesavinjsko_narecje":"Srednjesavinjsko narečje",
|
||||||
|
"_solcavsko_podnarecje":"Zgornjesavinjsko narečje: solčavsko podnarečje",
|
||||||
|
"zgornjesavinjsko_narecje":"Zgornjesavinjsko narečje",
|
||||||
|
"srednjestajersko_narecje":"Srednještajersko narečje",
|
||||||
|
"juznopohorsko_narecje":"Južnopohorsko narečje",
|
||||||
|
"_kozjasko_podnarecje":"Južnopohorsko narečje: kozjansko podnarečje",
|
||||||
|
"dolenjska_narecna_skupina":"Dolenjska narečna skupina",
|
||||||
|
"_vzhodnodolenjsko_podnarecje":"Dolenjsko narečje: vzhodnodolenjsko podnarečje",
|
||||||
|
"dolenjsko_narecje":"Dolenjsko narečje",
|
||||||
|
"kostelsko_narecje":"Kostelsko narečje",
|
||||||
|
"mesani_kocevski_govori":"Mešani kočevski govori",
|
||||||
|
"juznobelokranjsko_narecje":"Južnobelokranjsko narečje",
|
||||||
|
"severnobelokranjsko_narecje":"Severnobelokranjsko narečje",
|
||||||
|
"primorska_narecna_skupina":"Primorska narečna skupina",
|
||||||
|
"cisko_narecje":"Čiško narečje",
|
||||||
|
"cisko_narecje_2":"Čiško narečje",
|
||||||
|
"notranjsko_narecje":"Notranjsko narečje",
|
||||||
|
"_savrinsko_podnarecje":"Istrsko narečje: šavrinsko podnarečje",
|
||||||
|
"_rizansko_podnarecje":"Istrsko narečje: rižansko podnarečje",
|
||||||
|
"istrsko_narecje":"Istrsko narečje",
|
||||||
|
"krasko_narecje":"Kraško narečje",
|
||||||
|
"obsosko_narecje":"Obsoško narečje",
|
||||||
|
"rezijansko_narecje":"Rezijansko narečje",
|
||||||
|
"tersko_narecje":"Tersko narečje",
|
||||||
|
"nadisko_narecje":"Nadiško narečje",
|
||||||
|
"brisko_narecje":"Briško narečje",
|
||||||
|
"_banjsko_podnarecje":"Kraško narečje: banjško podnarečje",
|
||||||
|
"rovtarska_narecna_skupina":"Rovtarska narečna skupina",
|
||||||
|
"tolminsko_narecje":"Tolminsko narečje",
|
||||||
|
"_basko_podnarecje":"Tolminsko narečje: baško podnarečje",
|
||||||
|
"skofjelosko_narecje":"Škofjeloško narečje",
|
||||||
|
"horjulsko_narecje":"Horjulsko narečje",
|
||||||
|
"crnovrsko_narecje":"Črnovrško narečje",
|
||||||
|
"cerkljansko_narecje":"Cerkljansko narečje",
|
||||||
|
"poljansko_narecje":"Poljansko narečje",
|
||||||
|
"gorenjska_narecna_skupina":"Gorenjska narečna skupina",
|
||||||
|
"gorenjsko_narecje":"Gorenjsko narečje",
|
||||||
|
"selsko_narecje":"Selško narečje",
|
||||||
|
"_vzhodnogorenjsko_podnarecje":"Gorenjsko narečje: vzhodnogorenjsko podnarečje",
|
||||||
|
"koroska_narecna_skupina":"Koroška narečna skupina",
|
||||||
|
"ziljsko_narecje":"Ziljsko narečje",
|
||||||
|
"_kranjskogorsko_podnarecje":"Ziljsko narečje: kranjskogorsko podnarečje",
|
||||||
|
"rozansko_narecje":"Rožansko narečje",
|
||||||
|
"podjunsko_narecje":"Podjunsko narečje",
|
||||||
|
"obirsko_narecje":"Obirsko narečje",
|
||||||
|
"mezisko_narecje":"Mežiško narečje",
|
||||||
|
"severnopohorsko-remsnisko_narecje":"Severnopohorsko-remšniško narečje",
|
||||||
|
"panonska_narecna_skupina":"Panonska narečna skupina"
|
||||||
|
}
|
||||||
|
return function(input) {
|
||||||
|
return dialects[input] ? dialects[input] : input;
|
||||||
|
};
|
||||||
|
});
|
86
filters/namedialectgroup.filter.js
Normal file
86
filters/namedialectgroup.filter.js
Normal file
|
@ -0,0 +1,86 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsApp')
|
||||||
|
.filter('nameDialectGroup', function() {
|
||||||
|
|
||||||
|
return function(input) {
|
||||||
|
|
||||||
|
switch(input){
|
||||||
|
case "panonska_narecna_skupina":
|
||||||
|
case "halosko_narecje":
|
||||||
|
case "prlesko_narecje":
|
||||||
|
case "prekmursko_narecje":
|
||||||
|
case "slovenskogorisko_narecje":
|
||||||
|
return "panonska narečna skupina";
|
||||||
|
|
||||||
|
case "stajerska_narecna_skupina":
|
||||||
|
case "_sevnisko-krsko_podnarecje":
|
||||||
|
case "_zagorsko_trboveljsko_podnarecje":
|
||||||
|
case "_lasko_podnarecje":
|
||||||
|
case "posavsko_narecje":
|
||||||
|
case "kozjansko-bizeljsko_narecje":
|
||||||
|
case "srednjesavinjsko_narecje":
|
||||||
|
case "_solcavsko_podnarecje":
|
||||||
|
case "zgornjesavinjsko_narecje":
|
||||||
|
case "srednjestajersko_narecje":
|
||||||
|
case "juznopohorsko_narecje":
|
||||||
|
case "_kozjasko_podnarecje":
|
||||||
|
return "štajerska narečna skupina";
|
||||||
|
|
||||||
|
case "dolenjska_narecna_skupina":
|
||||||
|
case "_vzhodnodolenjsko_podnarecje":
|
||||||
|
case "dolenjsko_narecje":
|
||||||
|
case "kostelsko_narecje":
|
||||||
|
case "mesani_kocevski_govori":
|
||||||
|
case "juznobelokranjsko_narecje":
|
||||||
|
case "severnobelokranjsko_narecje":
|
||||||
|
return "dolenjska narečna skupina";
|
||||||
|
|
||||||
|
case "primorska_narecna_skupina":
|
||||||
|
case "cisko_narecje":
|
||||||
|
case "notranjsko_narecje":
|
||||||
|
case "_savrinsko_podnarecje":
|
||||||
|
case "_rizansko_podnarecje":
|
||||||
|
case "istrsko_narecje":
|
||||||
|
case "krasko_narecje":
|
||||||
|
case "obsosko_narecje":
|
||||||
|
case "rezijansko_narecje":
|
||||||
|
case "tersko_narecje":
|
||||||
|
case "nadisko_narecje":
|
||||||
|
case "brisko_narecje":
|
||||||
|
case "_banjsko_podnarecje":
|
||||||
|
return "primorska narečna skupina";
|
||||||
|
|
||||||
|
case "rovtarska_narecna_skupina":
|
||||||
|
case "tolminsko_narecje":
|
||||||
|
case "_basko_podnarecje":
|
||||||
|
case "skofjelosko_narecje":
|
||||||
|
case "horjulsko_narecje":
|
||||||
|
case "crnovrsko_narecje":
|
||||||
|
case "cerkljansko_narecje":
|
||||||
|
case "poljansko_narecje":
|
||||||
|
return "rovtarska narečna skupina";
|
||||||
|
|
||||||
|
case "gorenjska_narecna_skupina":
|
||||||
|
case "gorenjsko_narecje":
|
||||||
|
case "selsko_narecje":
|
||||||
|
case "_vzhodnogorenjsko_podnarecje":
|
||||||
|
return "gorenjska narečna skupina";
|
||||||
|
|
||||||
|
case "koroska_narecna_skupina":
|
||||||
|
case "ziljsko_narecje":
|
||||||
|
case "_kranjskogorsko_podnarecje":
|
||||||
|
case "rozansko_narecje":
|
||||||
|
case "podjunsko_narecje":
|
||||||
|
case "obirsko_narecje":
|
||||||
|
case "mezisko_narecje":
|
||||||
|
case "severnopohorsko-remsnisko_narecje":
|
||||||
|
return "koroška narečna skupina";
|
||||||
|
|
||||||
|
default:
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
});
|
307
filters/patterndialect.filter.js
Normal file
307
filters/patterndialect.filter.js
Normal file
|
@ -0,0 +1,307 @@
|
||||||
|
/*
|
||||||
|
* Edited by: Nermin Jukan, 63150367
|
||||||
|
* Date: 16. 05. 2018
|
||||||
|
* Modifications: Added a new filter for "cisko_narecje_2" on lines 78-85.
|
||||||
|
*
|
||||||
|
* */
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsApp')
|
||||||
|
.filter('patternDialect', function() {
|
||||||
|
|
||||||
|
var stripePatterns = {
|
||||||
|
"severnopohorsko-remsnisko_narecje": {
|
||||||
|
weight: 8,
|
||||||
|
spaceWeight: 4,
|
||||||
|
height: 12,
|
||||||
|
color: '#fea3e9',
|
||||||
|
spaceColor: '#b0ef91',
|
||||||
|
angle: 45,
|
||||||
|
spaceOpacity: 1
|
||||||
|
},
|
||||||
|
"mezisko_narecje": {
|
||||||
|
weight: 8,
|
||||||
|
spaceWeight: 4,
|
||||||
|
height: 12,
|
||||||
|
color: '#fea3e9',
|
||||||
|
spaceColor: '#b0ef91',
|
||||||
|
angle: -45,
|
||||||
|
spaceOpacity: 1
|
||||||
|
},
|
||||||
|
"obirsko_narecje": {
|
||||||
|
weight: 8,
|
||||||
|
spaceWeight: 4,
|
||||||
|
height: 12,
|
||||||
|
color: '#ff83e2',
|
||||||
|
spaceColor: '#d2a0fc',
|
||||||
|
angle: 90,
|
||||||
|
spaceOpacity: 1
|
||||||
|
},
|
||||||
|
"rezijansko_narecje": {
|
||||||
|
weight: 7,
|
||||||
|
spaceWeight: 5,
|
||||||
|
height: 12,
|
||||||
|
color: '#f0a086',
|
||||||
|
spaceColor: '#ffa4e5',
|
||||||
|
angle: 90,
|
||||||
|
spaceOpacity: 1
|
||||||
|
},
|
||||||
|
"brisko_narecje": {
|
||||||
|
weight: 6,
|
||||||
|
spaceWeight: 6,
|
||||||
|
height: 12,
|
||||||
|
color: '#fd9059',
|
||||||
|
spaceColor: '#ffc6ac',
|
||||||
|
angle: 90,
|
||||||
|
spaceOpacity: 1
|
||||||
|
},
|
||||||
|
"notranjsko_narecje": {
|
||||||
|
weight: 6,
|
||||||
|
spaceWeight: 6,
|
||||||
|
height: 12,
|
||||||
|
color: '#ff9900',
|
||||||
|
spaceColor: '#c77e5a',
|
||||||
|
angle: -45,
|
||||||
|
spaceOpacity: 1
|
||||||
|
},
|
||||||
|
"cisko_narecje": {
|
||||||
|
weight: 4,
|
||||||
|
spaceWeight: 8,
|
||||||
|
height: 12,
|
||||||
|
color: '#0000aa',
|
||||||
|
spaceColor: '#ff9900',
|
||||||
|
angle: 0,
|
||||||
|
spaceOpacity: 1
|
||||||
|
},
|
||||||
|
"cisko_narecje_2": {
|
||||||
|
weight: 4,
|
||||||
|
spaceWeight: 10,
|
||||||
|
height: 12,
|
||||||
|
color: '#aeaeae',
|
||||||
|
angle: 45,
|
||||||
|
spaceOpacity: 0.2
|
||||||
|
},
|
||||||
|
"selsko_narecje": {
|
||||||
|
weight: 5,
|
||||||
|
spaceWeight: 7,
|
||||||
|
height: 12,
|
||||||
|
color: '#d2a0fc',
|
||||||
|
spaceColor: '#8d93f8',
|
||||||
|
angle: 0,
|
||||||
|
spaceOpacity: 1
|
||||||
|
},
|
||||||
|
"severnobelokranjsko_narecje": {
|
||||||
|
|
||||||
|
weight: 8,
|
||||||
|
spaceWeight: 4,
|
||||||
|
height: 12,
|
||||||
|
color: '#ff9900',
|
||||||
|
spaceColor: '#aeaeae',
|
||||||
|
angle: 90,
|
||||||
|
spaceOpacity: 1
|
||||||
|
/*
|
||||||
|
weight: 5,
|
||||||
|
spaceWeight: 7,
|
||||||
|
height: 12,
|
||||||
|
color: '#c77e5a',
|
||||||
|
spaceColor: '#aeaeae',
|
||||||
|
angle: 0,
|
||||||
|
spaceOpacity: 1
|
||||||
|
*/
|
||||||
|
},
|
||||||
|
"juznobelokranjsko_narecje": {
|
||||||
|
/*
|
||||||
|
weight: 4,
|
||||||
|
spaceWeight: 4,
|
||||||
|
height: 8,
|
||||||
|
color: '#c77e5a',
|
||||||
|
spaceColor: '#aeaeae',
|
||||||
|
angle: 90,
|
||||||
|
spaceOpacity: 1
|
||||||
|
*/
|
||||||
|
weight: 5,
|
||||||
|
spaceWeight: 7,
|
||||||
|
height: 12,
|
||||||
|
color: '#ff9900',
|
||||||
|
spaceColor: '#aeaeae',
|
||||||
|
angle: 0,
|
||||||
|
spaceOpacity: 1
|
||||||
|
},
|
||||||
|
"slovenskogorisko_narecje": {
|
||||||
|
weight: 6,
|
||||||
|
spaceWeight: 6,
|
||||||
|
height: 12,
|
||||||
|
color: '#ffff7b',
|
||||||
|
spaceColor: '#b0ef91',
|
||||||
|
angle: 0,
|
||||||
|
spaceOpacity: 1
|
||||||
|
},
|
||||||
|
"prlesko_narecje": {
|
||||||
|
weight: 6,
|
||||||
|
spaceWeight: 6,
|
||||||
|
height: 12,
|
||||||
|
color: '#ffff7b',
|
||||||
|
spaceColor: '#efef5a',
|
||||||
|
angle: -45,
|
||||||
|
spaceOpacity: 1
|
||||||
|
},
|
||||||
|
"halosko_narecje": {
|
||||||
|
weight: 8,
|
||||||
|
spaceWeight: 4,
|
||||||
|
height: 12,
|
||||||
|
color: '#ffff7b',
|
||||||
|
spaceColor: '#7ec75a',
|
||||||
|
angle: 90,
|
||||||
|
spaceOpacity: 1
|
||||||
|
},
|
||||||
|
"kostelsko_narecje": {
|
||||||
|
weight: 8,
|
||||||
|
spaceWeight: 4,
|
||||||
|
height: 12,
|
||||||
|
color: '#ff9900',
|
||||||
|
spaceColor: '#aeaeae',
|
||||||
|
angle: -45,
|
||||||
|
spaceOpacity: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var circlePatterns = {
|
||||||
|
"_vzhodnogorenjsko_podnarecje": {
|
||||||
|
fill: true,
|
||||||
|
fillOpacity: 1,
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
radius: 4,
|
||||||
|
stroke: false,
|
||||||
|
color: '#7ec75a'
|
||||||
|
},
|
||||||
|
"_vzhodnodolenjsko_podnarecje": {
|
||||||
|
fill: true,
|
||||||
|
fillOpacity: 1,
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
radius: 4,
|
||||||
|
stroke: false,
|
||||||
|
color: '#7ec75a'
|
||||||
|
},
|
||||||
|
"mesani_kocevski_govori": {
|
||||||
|
fill: true,
|
||||||
|
fillOpacity: 1,
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
radius: 5,
|
||||||
|
stroke: false,
|
||||||
|
color: '#ff9900'
|
||||||
|
},
|
||||||
|
"_solcavsko_podnarecje": {
|
||||||
|
fill: true,
|
||||||
|
fillOpacity: 1,
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
radius: 4,
|
||||||
|
stroke: false,
|
||||||
|
color: '#ffcfee'
|
||||||
|
},
|
||||||
|
"_kozjasko_podnarecje": {
|
||||||
|
fill: true,
|
||||||
|
fillOpacity: 1,
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
radius: 6,
|
||||||
|
stroke: false,
|
||||||
|
color: '#7ec75a'
|
||||||
|
},
|
||||||
|
"_zagorsko_trboveljsko_podnarecje": {
|
||||||
|
fill: true,
|
||||||
|
fillOpacity: 1,
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
radius: 5,
|
||||||
|
stroke: false,
|
||||||
|
color: '#7ec75a'
|
||||||
|
},
|
||||||
|
"_lasko_podnarecje": {
|
||||||
|
fill: true,
|
||||||
|
fillOpacity: 1,
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
radius: 9,
|
||||||
|
stroke: false,
|
||||||
|
color: '#7ec75a'
|
||||||
|
},
|
||||||
|
"_sevnisko-krsko_podnarecje": {
|
||||||
|
fill: true,
|
||||||
|
fillOpacity: 1,
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
radius: 7,
|
||||||
|
stroke: false,
|
||||||
|
color: '#7ec75a'
|
||||||
|
},
|
||||||
|
"_kranjskogorsko_podnarecje": {
|
||||||
|
fill: true,
|
||||||
|
fillOpacity: 1,
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
radius: 7,
|
||||||
|
stroke: false,
|
||||||
|
color: '#d2a0fc'
|
||||||
|
},
|
||||||
|
"_banjsko_podnarecje": {
|
||||||
|
fill: true,
|
||||||
|
fillOpacity: 1,
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
radius: 3,
|
||||||
|
stroke: false,
|
||||||
|
color: '#a4cdff'
|
||||||
|
},
|
||||||
|
"_rizansko_podnarecje": {
|
||||||
|
fill: true,
|
||||||
|
fillOpacity: 1,
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
radius: 3,
|
||||||
|
stroke: false,
|
||||||
|
color: '#ffc6ac'
|
||||||
|
},
|
||||||
|
"_savrinsko_podnarecje": {
|
||||||
|
fill: true,
|
||||||
|
fillOpacity: 1,
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
radius: 6,
|
||||||
|
stroke: false,
|
||||||
|
color: '#ffc6ac'
|
||||||
|
},
|
||||||
|
"_basko_podnarecje": {
|
||||||
|
fill: true,
|
||||||
|
fillOpacity: 1,
|
||||||
|
x: 10,
|
||||||
|
y: 10,
|
||||||
|
radius: 3,
|
||||||
|
stroke: false,
|
||||||
|
color: '#d2a0fc'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return function(input) {
|
||||||
|
if( stripePatterns[input] ){
|
||||||
|
return {
|
||||||
|
type:'stripes',
|
||||||
|
config: stripePatterns[input]
|
||||||
|
}
|
||||||
|
} else if( circlePatterns[input] ){
|
||||||
|
return {
|
||||||
|
type:'circles',
|
||||||
|
config: circlePatterns[input]
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
71
index.html
Normal file
71
index.html
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html ng-app="sloDialectsApp">
|
||||||
|
<head>
|
||||||
|
<title>Interaktivna karta slovenskih narečnih besedil</title>
|
||||||
|
<meta name="viewport" content="initial-scale=1.0">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="author" content="Ivan Lovrić - ivan@lovric.si">
|
||||||
|
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
|
||||||
|
<link rel="icon" href="./favicon.ico" type="image/x-icon">
|
||||||
|
|
||||||
|
<!-- styles -->
|
||||||
|
<link rel="stylesheet" type="text/css" href="style/bootstrap.min.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="style/map-icons.min.css">
|
||||||
|
|
||||||
|
<!-- vendor -->
|
||||||
|
<script src="vendor/lodash.min.js"></script>
|
||||||
|
<script src="vendor/angular.min.js"></script>
|
||||||
|
<!--<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBTYNjLsZo07f9YvNTFi0S1t8oanTuS-9U"></script>
|
||||||
|
<script src="vendor/ng-map.min.js"></script>-->
|
||||||
|
<script src="vendor/ui-bootstrap-2.5.0.min.js"></script>
|
||||||
|
<script src="vendor/ui-bootstrap-tpls-2.5.0.min.js"></script>
|
||||||
|
<!--<script src="vendor/map-icons.min.js"></script>-->
|
||||||
|
<script src="vendor/wavesurfer.min.js"></script>
|
||||||
|
|
||||||
|
<!--<script src="vendor/angular-simple-logger.min.js"></script>
|
||||||
|
<script src="vendor/leaflet.js"></script>
|
||||||
|
<script src="vendor/ui-leaflet.js"></script>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<script src="http://angular-ui.github.io/ui-leaflet/bower_components/leaflet/dist/leaflet.js"></script>
|
||||||
|
<script src="http://angular-ui.github.io/ui-leaflet/bower_components/angular-simple-logger/dist/angular-simple-logger.js"></script>
|
||||||
|
<script src="http://angular-ui.github.io/ui-leaflet/dist/ui-leaflet.min.js"></script>
|
||||||
|
<link href="http://angular-ui.github.io/ui-leaflet/bower_components/leaflet/dist/leaflet.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<script src="vendor/leaflet.pattern.js"></script>
|
||||||
|
<!--<script src="vendor/leaflet.extra-markers.min.js"></script>
|
||||||
|
<link href="style/leaflet.extra-markers.min.css" rel="stylesheet" />-->
|
||||||
|
|
||||||
|
<!-- main -->
|
||||||
|
<script src="app.module.js"></script>
|
||||||
|
|
||||||
|
<!-- services -->
|
||||||
|
<script src="services/geojson.service.js"></script>
|
||||||
|
<script src="services/dialects.service.js"></script>
|
||||||
|
|
||||||
|
<!-- directives -->
|
||||||
|
<script src="directives/wavesurfer.directive.js"></script>
|
||||||
|
|
||||||
|
<!-- filters -->
|
||||||
|
<script src="filters/namedialect.filter.js"></script>
|
||||||
|
<script src="filters/namedialectgroup.filter.js"></script>
|
||||||
|
<script src="filters/colordialect.filter.js"></script>
|
||||||
|
<script src="filters/patterndialect.filter.js"></script>
|
||||||
|
|
||||||
|
<!-- components -->
|
||||||
|
<script src="components/main/main.component.js"></script>
|
||||||
|
<script src="components/about/about.component.js"></script>
|
||||||
|
<script src="components/dialect/dialect.component.js"></script>
|
||||||
|
<script src="components/legend/legend.component.js"></script>
|
||||||
|
<script src="components/print/print.component.js"></script>
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="style/main.css">
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<app></app>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
39
license.txt
Normal file
39
license.txt
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
Interaktivna karta slovenskih narečnih besedil / Interactive map of Slovenian
|
||||||
|
dialectal texts
|
||||||
|
Copyright (C) 2018 Ivan Lovrić (ivan@lovric.si)
|
||||||
|
|
||||||
|
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/>.
|
||||||
|
|
||||||
|
For complete license see files COPYING.gpl-3.0.txt or COPYING.gpl-3.0.htm.
|
||||||
|
|
||||||
|
Source code is available in Bitbucket: https://bitbucket.org/ul-fri-lgm/iknb
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
Interactive map of Slovenian dialectal texts (IKNB) uses font ZRCola.
|
||||||
|
See About page for details.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
Interactive map of Slovenian dialectal texts (IKNB) is based on a map of
|
||||||
|
Slovenian dialects (Karta slovenskih narečij) which is copyrighted by the
|
||||||
|
Institute for Slovenian language Fran Ramovš ZRC SAZU, the Geographical
|
||||||
|
Institute Anton Melik ZRC SAZU and the Institute of Anthropological and Spatial
|
||||||
|
Studies ZRC SAZU, 2016.
|
||||||
|
See About page for details.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
The content on Old farmhouse (Stara kmečka hiša) was provided by the Faculty
|
||||||
|
of Arts, University of Ljubljana.
|
||||||
|
See About page for details.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
10
readme.txt
Normal file
10
readme.txt
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
Projekt IKNB (Interaktivna karta slovenskih narečnih besedil / Interactive map of Slovenian dialectal texts)
|
||||||
|
|
||||||
|
Interaktivna spletna aplikacija za slovenska narečna besedila, diploma Ivan Lovrić, UL FRI, 2018
|
||||||
|
nadgradnja aplikacije Nermin Jukan, UL FRI, 2018
|
||||||
|
|
||||||
|
Direktorij projekta vsebuje:
|
||||||
|
- to datoteko readme.txt
|
||||||
|
- kodo aplikacije v direktoriju iknb
|
||||||
|
- začetno podatkovno bazo v datoteki dialectsdb.sql
|
||||||
|
- navodila za namestitev aplikacije Namestitev.txt
|
BIN
resources/fonts/ZRColaBI.otf
Normal file
BIN
resources/fonts/ZRColaBI.otf
Normal file
Binary file not shown.
BIN
resources/fonts/ZRColaBd.otf
Normal file
BIN
resources/fonts/ZRColaBd.otf
Normal file
Binary file not shown.
BIN
resources/fonts/ZRColaIt.otf
Normal file
BIN
resources/fonts/ZRColaIt.otf
Normal file
Binary file not shown.
BIN
resources/fonts/ZRColaRe.otf
Normal file
BIN
resources/fonts/ZRColaRe.otf
Normal file
Binary file not shown.
BIN
resources/fonts/zrcolabd.woff
Normal file
BIN
resources/fonts/zrcolabd.woff
Normal file
Binary file not shown.
BIN
resources/fonts/zrcolabd.woff2
Normal file
BIN
resources/fonts/zrcolabd.woff2
Normal file
Binary file not shown.
BIN
resources/fonts/zrcolabi.woff
Normal file
BIN
resources/fonts/zrcolabi.woff
Normal file
Binary file not shown.
BIN
resources/fonts/zrcolabi.woff2
Normal file
BIN
resources/fonts/zrcolabi.woff2
Normal file
Binary file not shown.
BIN
resources/fonts/zrcolait.woff
Normal file
BIN
resources/fonts/zrcolait.woff
Normal file
Binary file not shown.
BIN
resources/fonts/zrcolait.woff2
Normal file
BIN
resources/fonts/zrcolait.woff2
Normal file
Binary file not shown.
BIN
resources/fonts/zrcolare.woff
Normal file
BIN
resources/fonts/zrcolare.woff
Normal file
Binary file not shown.
BIN
resources/fonts/zrcolare.woff2
Normal file
BIN
resources/fonts/zrcolare.woff2
Normal file
Binary file not shown.
1
resources/geojson/sloDialectsGeojson.json
Normal file
1
resources/geojson/sloDialectsGeojson.json
Normal file
File diff suppressed because one or more lines are too long
58
resources/geojson/sloDialectsGeojsonRemastered.json
Normal file
58
resources/geojson/sloDialectsGeojsonRemastered.json
Normal file
File diff suppressed because one or more lines are too long
59
resources/geojson/sloDialectsGeojsonSimplified.json
Normal file
59
resources/geojson/sloDialectsGeojsonSimplified.json
Normal file
File diff suppressed because one or more lines are too long
59
resources/geojson/sloDialectsGeojsonSimplified2.json
Normal file
59
resources/geojson/sloDialectsGeojsonSimplified2.json
Normal file
File diff suppressed because one or more lines are too long
59
resources/geojson/sloDialectsGeojsonSimplified3.json
Normal file
59
resources/geojson/sloDialectsGeojsonSimplified3.json
Normal file
File diff suppressed because one or more lines are too long
BIN
resources/icons/lock.png
Normal file
BIN
resources/icons/lock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
BIN
resources/icons/logout.png
Normal file
BIN
resources/icons/logout.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.0 KiB |
9
resources/icons/marker.svg
Normal file
9
resources/icons/marker.svg
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
viewBox="0 0 365 560" enable-background="new 0 0 365 560" xml:space="preserve">
|
||||||
|
<g>
|
||||||
|
<path fill="#00AEEF" d="M182.9,551.7c0,0.1,0.2,0.3,0.2,0.3S358.3,283,358.3,194.6c0-130.1-88.8-186.7-175.4-186.9
|
||||||
|
C96.3,7.9,7.5,64.5,7.5,194.6c0,88.4,175.3,357.4,175.3,357.4S182.9,551.7,182.9,551.7z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 565 B |
BIN
resources/icons/users.png
Normal file
BIN
resources/icons/users.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
133
services/dialects.service.js
Normal file
133
services/dialects.service.js
Normal file
|
@ -0,0 +1,133 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular
|
||||||
|
.module('sloDialectsApp')
|
||||||
|
.factory('dialects', [function() {
|
||||||
|
|
||||||
|
var dialectGroups = {
|
||||||
|
"gorenjska_narecna_skupina": {
|
||||||
|
name: "Gorenjska narečna skupina",
|
||||||
|
dialects: {
|
||||||
|
"gorenjsko_narecje": {
|
||||||
|
name: "Gorenjsko narečje",
|
||||||
|
subdialects: {
|
||||||
|
"_vzhodnogorenjsko_podnarecje": { name: "Vzhodnogorenjsko podnarečje" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"selsko_narecje": { name: "Selško narečje" },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dolenjska_narecna_skupina": {
|
||||||
|
name: "Dolenjska narečna skupina",
|
||||||
|
dialects: {
|
||||||
|
"dolenjsko_narecje": {
|
||||||
|
name: "Dolenjsko narečje",
|
||||||
|
subdialects: {
|
||||||
|
"_vzhodnodolenjsko_podnarecje": { name: "Vzhodnodolenjsko podnarečje" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"severnobelokranjsko_narecje": { name: "Severnobelokranjsko narečje" },
|
||||||
|
"juznobelokranjsko_narecje": { name: "Južnobelokranjsko narečje" },
|
||||||
|
"kostelsko_narecje": { name: "Kostelsko narečje" },
|
||||||
|
"mesani_kocevski_govori": { name: "Mešani kočevski govori" },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"stajerska_narecna_skupina":{
|
||||||
|
name: "Štajerska narečna skupina",
|
||||||
|
dialects: {
|
||||||
|
"srednjesavinjsko_narecje": { name: "Srednjesavinsko narečje" },
|
||||||
|
"zgornjesavinjsko_narecje": {
|
||||||
|
name: "Zgornjesavinjsko narečje",
|
||||||
|
subdialects: {
|
||||||
|
"_solcavsko_podnarecje": { name: "Solčavsko podnarečje" },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"srednjestajersko_narecje": { name: "Srednještajersko narečje" },
|
||||||
|
"juznopohorsko_narecje": {
|
||||||
|
name: "Južnopohorsko narečje",
|
||||||
|
subdialects: {
|
||||||
|
"_kozjasko_podnarecje": { name: "Kozjaško podnarečje" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"kozjansko-bizeljsko_narecje": { name: "Kozjansko-bizeljsko narečje" },
|
||||||
|
"posavsko_narecje": {
|
||||||
|
name: "Posavsko narečje",
|
||||||
|
subdialects: {
|
||||||
|
"_zagorsko_trboveljsko_podnarecje": { name: "Zagorsko trboveljsko podnarečje" },
|
||||||
|
"_lasko_podnarecje": { name: "Laško podnarečje" },
|
||||||
|
"_sevnisko-krsko_podnarecje": { name: "Sevniško-krško podnarečje" },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"panonska_narecna_skupina": {
|
||||||
|
name: "Panonska narečna skupina",
|
||||||
|
dialects: {
|
||||||
|
"prekmursko_narecje": { name: "Prekmursko narečje" },
|
||||||
|
"slovenskogorisko_narecje": { name: "Slovenskogoriško narečje" },
|
||||||
|
"prlesko_narecje": { name: "Prleško narečje" },
|
||||||
|
"halosko_narecje": { name: "Haloško narečje" },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"koroska_narecna_skupina": {
|
||||||
|
name: "Koroška narečna skupina",
|
||||||
|
dialects: {
|
||||||
|
"severnopohorsko-remsnisko_narecje": { name: "Severnopohorsko-remšniško narečje" },
|
||||||
|
"mezisko_narecje": { name: "Mežiško narečje" },
|
||||||
|
"podjunsko_narecje": { name: "Podjunsko narečje" },
|
||||||
|
"obirsko_narecje": { name: "Obirsko narečje" },
|
||||||
|
"rozansko_narecje": { name: "Rožansko narečje" },
|
||||||
|
"ziljsko_narecje":{
|
||||||
|
name: "Ziljsko narečje",
|
||||||
|
subdialects: {
|
||||||
|
"_kranjskogorsko_podnarecje": { name: "Kranjskogorsko podnarečje" },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"primorska_narecna_skupina": {
|
||||||
|
name: "Primorska narečna skupina",
|
||||||
|
dialects: {
|
||||||
|
"rezijansko_narecje": { name: "Rezijansko narečje" },
|
||||||
|
"obsosko_narecje": { name: "Obsoško narečje" },
|
||||||
|
"tersko_narecje": { name: "Tersko narečje" },
|
||||||
|
"nadisko_narecje": { name: "Nadiško narečje" },
|
||||||
|
"brisko_narecje": { name: "Briško narečje" },
|
||||||
|
"krasko_narecje": {
|
||||||
|
name: "Kraško narečje",
|
||||||
|
subdialects: {
|
||||||
|
"_banjsko_podnarecje": { name: "Banjško podnarečje" },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"istrsko_narecje": {
|
||||||
|
name: "Istrsko narečje",
|
||||||
|
subdialects: {
|
||||||
|
"_rizansko_podnarecje": { name: "Rižansko podnarečje" },
|
||||||
|
"_savrinsko_podnarecje": { name: "Šavrinsko podnarečje" },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notranjsko_narecje": { name: "Notranjsko narečje" },
|
||||||
|
"cisko_narecje": { name: "Čiško narečje" },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rovtarska_narecna_skupina":{
|
||||||
|
name: "Rovtarska narečna skupina",
|
||||||
|
dialects: {
|
||||||
|
"tolminsko_narecje": {
|
||||||
|
name: "Tolminsko narečje",
|
||||||
|
subdialects: {
|
||||||
|
"_basko_podnarecje": { name: "Baško podnarečje" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"cerkljansko_narecje": { name: "Cerkljansko narečje" },
|
||||||
|
"poljansko_narecje": { name: "Poljansko narečje" },
|
||||||
|
"skofjelosko_narecje": { name: "Škofjeloško narečje" },
|
||||||
|
"crnovrsko_narecje": { name: "Črnovrško narečje" },
|
||||||
|
"horjulsko_narecje": { name: "Horjulsko narečje" },
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return dialectGroups;
|
||||||
|
|
||||||
|
}]);
|
65
services/geojson.service.js
Normal file
65
services/geojson.service.js
Normal file
File diff suppressed because one or more lines are too long
73
style/admin.css
Normal file
73
style/admin.css
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
@font-face {
|
||||||
|
font-family: zrcola;
|
||||||
|
src: url('fonts/zrcolare.woff2') format('woff2'),
|
||||||
|
url('fonts/zrcolare.woff') format('woff');
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: zrcolabd;
|
||||||
|
src: url('fonts/zrcolabd.woff2') format('woff2'),
|
||||||
|
url('fonts/zrcolabd.woff') format('woff');
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: zrcolabi;
|
||||||
|
src: url('fonts/zrcolabi.woff2') format('woff2'),
|
||||||
|
url('fonts/zrcolabi.woff') format('woff');
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: zrcolait;
|
||||||
|
src: url('fonts/zrcolait.woff2') format('woff2'),
|
||||||
|
url('fonts/zrcolait.woff') format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
|
body, html {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea{
|
||||||
|
resize: vertical;
|
||||||
|
}
|
||||||
|
textarea[name="transcription"], textarea[name="literal_slovene"], #analiza textarea {
|
||||||
|
font-family: zrcola;
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr.tr-head{
|
||||||
|
background-color: #efefef;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel{
|
||||||
|
min-height: 500px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1{
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
.toolbar{
|
||||||
|
position: absolute;
|
||||||
|
top: 25px;
|
||||||
|
right: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-bottom{
|
||||||
|
margin-bottom: 30px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
label{
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.auth_container{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.auth_container>form{
|
||||||
|
width: 200px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
6
style/bootstrap-theme.min.css
vendored
Normal file
6
style/bootstrap-theme.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
6
style/bootstrap.min.css
vendored
Normal file
6
style/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
style/fonts/ZRColaBI.otf
Normal file
BIN
style/fonts/ZRColaBI.otf
Normal file
Binary file not shown.
BIN
style/fonts/ZRColaBd.otf
Normal file
BIN
style/fonts/ZRColaBd.otf
Normal file
Binary file not shown.
BIN
style/fonts/ZRColaIt.otf
Normal file
BIN
style/fonts/ZRColaIt.otf
Normal file
Binary file not shown.
BIN
style/fonts/ZRColaRe.otf
Normal file
BIN
style/fonts/ZRColaRe.otf
Normal file
Binary file not shown.
BIN
style/fonts/zrcolabd.woff
Normal file
BIN
style/fonts/zrcolabd.woff
Normal file
Binary file not shown.
BIN
style/fonts/zrcolabd.woff2
Normal file
BIN
style/fonts/zrcolabd.woff2
Normal file
Binary file not shown.
BIN
style/fonts/zrcolabi.woff
Normal file
BIN
style/fonts/zrcolabi.woff
Normal file
Binary file not shown.
BIN
style/fonts/zrcolabi.woff2
Normal file
BIN
style/fonts/zrcolabi.woff2
Normal file
Binary file not shown.
BIN
style/fonts/zrcolait.woff
Normal file
BIN
style/fonts/zrcolait.woff
Normal file
Binary file not shown.
BIN
style/fonts/zrcolait.woff2
Normal file
BIN
style/fonts/zrcolait.woff2
Normal file
Binary file not shown.
BIN
style/fonts/zrcolare.woff
Normal file
BIN
style/fonts/zrcolare.woff
Normal file
Binary file not shown.
BIN
style/fonts/zrcolare.woff2
Normal file
BIN
style/fonts/zrcolare.woff2
Normal file
Binary file not shown.
636
style/leaflet.css
Normal file
636
style/leaflet.css
Normal file
|
@ -0,0 +1,636 @@
|
||||||
|
/* required styles */
|
||||||
|
|
||||||
|
.leaflet-pane,
|
||||||
|
.leaflet-tile,
|
||||||
|
.leaflet-marker-icon,
|
||||||
|
.leaflet-marker-shadow,
|
||||||
|
.leaflet-tile-container,
|
||||||
|
.leaflet-pane > svg,
|
||||||
|
.leaflet-pane > canvas,
|
||||||
|
.leaflet-zoom-box,
|
||||||
|
.leaflet-image-layer,
|
||||||
|
.leaflet-layer {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
.leaflet-container {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.leaflet-tile,
|
||||||
|
.leaflet-marker-icon,
|
||||||
|
.leaflet-marker-shadow {
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
-webkit-user-drag: none;
|
||||||
|
}
|
||||||
|
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
|
||||||
|
.leaflet-safari .leaflet-tile {
|
||||||
|
image-rendering: -webkit-optimize-contrast;
|
||||||
|
}
|
||||||
|
/* hack that prevents hw layers "stretching" when loading new tiles */
|
||||||
|
.leaflet-safari .leaflet-tile-container {
|
||||||
|
width: 1600px;
|
||||||
|
height: 1600px;
|
||||||
|
-webkit-transform-origin: 0 0;
|
||||||
|
}
|
||||||
|
.leaflet-marker-icon,
|
||||||
|
.leaflet-marker-shadow {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
|
||||||
|
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
|
||||||
|
.leaflet-container .leaflet-overlay-pane svg,
|
||||||
|
.leaflet-container .leaflet-marker-pane img,
|
||||||
|
.leaflet-container .leaflet-shadow-pane img,
|
||||||
|
.leaflet-container .leaflet-tile-pane img,
|
||||||
|
.leaflet-container img.leaflet-image-layer {
|
||||||
|
max-width: none !important;
|
||||||
|
max-height: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-container.leaflet-touch-zoom {
|
||||||
|
-ms-touch-action: pan-x pan-y;
|
||||||
|
touch-action: pan-x pan-y;
|
||||||
|
}
|
||||||
|
.leaflet-container.leaflet-touch-drag {
|
||||||
|
-ms-touch-action: pinch-zoom;
|
||||||
|
/* Fallback for FF which doesn't support pinch-zoom */
|
||||||
|
touch-action: none;
|
||||||
|
touch-action: pinch-zoom;
|
||||||
|
}
|
||||||
|
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
|
||||||
|
-ms-touch-action: none;
|
||||||
|
touch-action: none;
|
||||||
|
}
|
||||||
|
.leaflet-container {
|
||||||
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
}
|
||||||
|
.leaflet-container a {
|
||||||
|
-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
|
||||||
|
}
|
||||||
|
.leaflet-tile {
|
||||||
|
filter: inherit;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
.leaflet-tile-loaded {
|
||||||
|
visibility: inherit;
|
||||||
|
}
|
||||||
|
.leaflet-zoom-box {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
z-index: 800;
|
||||||
|
}
|
||||||
|
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
|
||||||
|
.leaflet-overlay-pane svg {
|
||||||
|
-moz-user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-pane { z-index: 400; }
|
||||||
|
|
||||||
|
.leaflet-tile-pane { z-index: 200; }
|
||||||
|
.leaflet-overlay-pane { z-index: 400; }
|
||||||
|
.leaflet-shadow-pane { z-index: 500; }
|
||||||
|
.leaflet-marker-pane { z-index: 600; }
|
||||||
|
.leaflet-tooltip-pane { z-index: 650; }
|
||||||
|
.leaflet-popup-pane { z-index: 700; }
|
||||||
|
|
||||||
|
.leaflet-map-pane canvas { z-index: 100; }
|
||||||
|
.leaflet-map-pane svg { z-index: 200; }
|
||||||
|
|
||||||
|
.leaflet-vml-shape {
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
}
|
||||||
|
.lvml {
|
||||||
|
behavior: url(#default#VML);
|
||||||
|
display: inline-block;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* control positioning */
|
||||||
|
|
||||||
|
.leaflet-control {
|
||||||
|
position: relative;
|
||||||
|
z-index: 800;
|
||||||
|
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
||||||
|
pointer-events: auto;
|
||||||
|
}
|
||||||
|
.leaflet-top,
|
||||||
|
.leaflet-bottom {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 1000;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.leaflet-top {
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
.leaflet-right {
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
.leaflet-bottom {
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
.leaflet-left {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
.leaflet-control {
|
||||||
|
float: left;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.leaflet-right .leaflet-control {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.leaflet-top .leaflet-control {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
.leaflet-bottom .leaflet-control {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.leaflet-left .leaflet-control {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
.leaflet-right .leaflet-control {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* zoom and fade animations */
|
||||||
|
|
||||||
|
.leaflet-fade-anim .leaflet-tile {
|
||||||
|
will-change: opacity;
|
||||||
|
}
|
||||||
|
.leaflet-fade-anim .leaflet-popup {
|
||||||
|
opacity: 0;
|
||||||
|
-webkit-transition: opacity 0.2s linear;
|
||||||
|
-moz-transition: opacity 0.2s linear;
|
||||||
|
-o-transition: opacity 0.2s linear;
|
||||||
|
transition: opacity 0.2s linear;
|
||||||
|
}
|
||||||
|
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
.leaflet-zoom-animated {
|
||||||
|
-webkit-transform-origin: 0 0;
|
||||||
|
-ms-transform-origin: 0 0;
|
||||||
|
transform-origin: 0 0;
|
||||||
|
}
|
||||||
|
.leaflet-zoom-anim .leaflet-zoom-animated {
|
||||||
|
will-change: transform;
|
||||||
|
}
|
||||||
|
.leaflet-zoom-anim .leaflet-zoom-animated {
|
||||||
|
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||||
|
-moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||||
|
-o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||||
|
transition: transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||||
|
}
|
||||||
|
.leaflet-zoom-anim .leaflet-tile,
|
||||||
|
.leaflet-pan-anim .leaflet-tile {
|
||||||
|
-webkit-transition: none;
|
||||||
|
-moz-transition: none;
|
||||||
|
-o-transition: none;
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-zoom-anim .leaflet-zoom-hide {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* cursors */
|
||||||
|
|
||||||
|
.leaflet-interactive {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.leaflet-grab {
|
||||||
|
cursor: -webkit-grab;
|
||||||
|
cursor: -moz-grab;
|
||||||
|
}
|
||||||
|
.leaflet-crosshair,
|
||||||
|
.leaflet-crosshair .leaflet-interactive {
|
||||||
|
cursor: crosshair;
|
||||||
|
}
|
||||||
|
.leaflet-popup-pane,
|
||||||
|
.leaflet-control {
|
||||||
|
cursor: auto;
|
||||||
|
}
|
||||||
|
.leaflet-dragging .leaflet-grab,
|
||||||
|
.leaflet-dragging .leaflet-grab .leaflet-interactive,
|
||||||
|
.leaflet-dragging .leaflet-marker-draggable {
|
||||||
|
cursor: move;
|
||||||
|
cursor: -webkit-grabbing;
|
||||||
|
cursor: -moz-grabbing;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* marker & overlays interactivity */
|
||||||
|
.leaflet-marker-icon,
|
||||||
|
.leaflet-marker-shadow,
|
||||||
|
.leaflet-image-layer,
|
||||||
|
.leaflet-pane > svg path,
|
||||||
|
.leaflet-tile-container {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-marker-icon.leaflet-interactive,
|
||||||
|
.leaflet-image-layer.leaflet-interactive,
|
||||||
|
.leaflet-pane > svg path.leaflet-interactive {
|
||||||
|
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
||||||
|
pointer-events: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* visual tweaks */
|
||||||
|
|
||||||
|
.leaflet-container {
|
||||||
|
background: #ddd;
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
.leaflet-container a {
|
||||||
|
color: #0078A8;
|
||||||
|
}
|
||||||
|
.leaflet-container a.leaflet-active {
|
||||||
|
outline: 2px solid orange;
|
||||||
|
}
|
||||||
|
.leaflet-zoom-box {
|
||||||
|
border: 2px dotted #38f;
|
||||||
|
background: rgba(255,255,255,0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* general typography */
|
||||||
|
.leaflet-container {
|
||||||
|
font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* general toolbar styles */
|
||||||
|
|
||||||
|
.leaflet-bar {
|
||||||
|
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.leaflet-bar a,
|
||||||
|
.leaflet-bar a:hover {
|
||||||
|
background-color: #fff;
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
width: 26px;
|
||||||
|
height: 26px;
|
||||||
|
line-height: 26px;
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
.leaflet-bar a,
|
||||||
|
.leaflet-control-layers-toggle {
|
||||||
|
background-position: 50% 50%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.leaflet-bar a:hover {
|
||||||
|
background-color: #f4f4f4;
|
||||||
|
}
|
||||||
|
.leaflet-bar a:first-child {
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
border-top-right-radius: 4px;
|
||||||
|
}
|
||||||
|
.leaflet-bar a:last-child {
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
.leaflet-bar a.leaflet-disabled {
|
||||||
|
cursor: default;
|
||||||
|
background-color: #f4f4f4;
|
||||||
|
color: #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-touch .leaflet-bar a {
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
}
|
||||||
|
.leaflet-touch .leaflet-bar a:first-child {
|
||||||
|
border-top-left-radius: 2px;
|
||||||
|
border-top-right-radius: 2px;
|
||||||
|
}
|
||||||
|
.leaflet-touch .leaflet-bar a:last-child {
|
||||||
|
border-bottom-left-radius: 2px;
|
||||||
|
border-bottom-right-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* zoom control */
|
||||||
|
|
||||||
|
.leaflet-control-zoom-in,
|
||||||
|
.leaflet-control-zoom-out {
|
||||||
|
font: bold 18px 'Lucida Console', Monaco, monospace;
|
||||||
|
text-indent: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
|
||||||
|
font-size: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* layers control */
|
||||||
|
|
||||||
|
.leaflet-control-layers {
|
||||||
|
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
.leaflet-control-layers-toggle {
|
||||||
|
background-image: url(images/layers.png);
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
}
|
||||||
|
.leaflet-retina .leaflet-control-layers-toggle {
|
||||||
|
background-image: url(images/layers-2x.png);
|
||||||
|
background-size: 26px 26px;
|
||||||
|
}
|
||||||
|
.leaflet-touch .leaflet-control-layers-toggle {
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
}
|
||||||
|
.leaflet-control-layers .leaflet-control-layers-list,
|
||||||
|
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.leaflet-control-layers-expanded .leaflet-control-layers-list {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.leaflet-control-layers-expanded {
|
||||||
|
padding: 6px 10px 6px 6px;
|
||||||
|
color: #333;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
.leaflet-control-layers-scrollbar {
|
||||||
|
overflow-y: scroll;
|
||||||
|
overflow-x: hidden;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
.leaflet-control-layers-selector {
|
||||||
|
margin-top: 2px;
|
||||||
|
position: relative;
|
||||||
|
top: 1px;
|
||||||
|
}
|
||||||
|
.leaflet-control-layers label {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.leaflet-control-layers-separator {
|
||||||
|
height: 0;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
margin: 5px -10px 5px -6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Default icon URLs */
|
||||||
|
.leaflet-default-icon-path {
|
||||||
|
background-image: url(images/marker-icon.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* attribution and scale controls */
|
||||||
|
|
||||||
|
.leaflet-container .leaflet-control-attribution {
|
||||||
|
background: #fff;
|
||||||
|
background: rgba(255, 255, 255, 0.7);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.leaflet-control-attribution,
|
||||||
|
.leaflet-control-scale-line {
|
||||||
|
padding: 0 5px;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
.leaflet-control-attribution a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.leaflet-control-attribution a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
.leaflet-container .leaflet-control-attribution,
|
||||||
|
.leaflet-container .leaflet-control-scale {
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
.leaflet-left .leaflet-control-scale {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
.leaflet-bottom .leaflet-control-scale {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
.leaflet-control-scale-line {
|
||||||
|
border: 2px solid #777;
|
||||||
|
border-top: none;
|
||||||
|
line-height: 1.1;
|
||||||
|
padding: 2px 5px 1px;
|
||||||
|
font-size: 11px;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
background: #fff;
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
}
|
||||||
|
.leaflet-control-scale-line:not(:first-child) {
|
||||||
|
border-top: 2px solid #777;
|
||||||
|
border-bottom: none;
|
||||||
|
margin-top: -2px;
|
||||||
|
}
|
||||||
|
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
|
||||||
|
border-bottom: 2px solid #777;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-touch .leaflet-control-attribution,
|
||||||
|
.leaflet-touch .leaflet-control-layers,
|
||||||
|
.leaflet-touch .leaflet-bar {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
.leaflet-touch .leaflet-control-layers,
|
||||||
|
.leaflet-touch .leaflet-bar {
|
||||||
|
border: 2px solid rgba(0,0,0,0.2);
|
||||||
|
background-clip: padding-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* popup */
|
||||||
|
|
||||||
|
.leaflet-popup {
|
||||||
|
position: absolute;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.leaflet-popup-content-wrapper {
|
||||||
|
padding: 1px;
|
||||||
|
text-align: left;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
.leaflet-popup-content {
|
||||||
|
margin: 13px 19px;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
.leaflet-popup-content p {
|
||||||
|
margin: 18px 0;
|
||||||
|
}
|
||||||
|
.leaflet-popup-tip-container {
|
||||||
|
width: 40px;
|
||||||
|
height: 20px;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -20px;
|
||||||
|
overflow: hidden;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.leaflet-popup-tip {
|
||||||
|
width: 17px;
|
||||||
|
height: 17px;
|
||||||
|
padding: 1px;
|
||||||
|
|
||||||
|
margin: -10px auto 0;
|
||||||
|
|
||||||
|
-webkit-transform: rotate(45deg);
|
||||||
|
-moz-transform: rotate(45deg);
|
||||||
|
-ms-transform: rotate(45deg);
|
||||||
|
-o-transform: rotate(45deg);
|
||||||
|
transform: rotate(45deg);
|
||||||
|
}
|
||||||
|
.leaflet-popup-content-wrapper,
|
||||||
|
.leaflet-popup-tip {
|
||||||
|
background: white;
|
||||||
|
color: #333;
|
||||||
|
box-shadow: 0 3px 14px rgba(0,0,0,0.4);
|
||||||
|
}
|
||||||
|
.leaflet-container a.leaflet-popup-close-button {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
padding: 4px 4px 0 0;
|
||||||
|
border: none;
|
||||||
|
text-align: center;
|
||||||
|
width: 18px;
|
||||||
|
height: 14px;
|
||||||
|
font: 16px/14px Tahoma, Verdana, sans-serif;
|
||||||
|
color: #c3c3c3;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: bold;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
.leaflet-container a.leaflet-popup-close-button:hover {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.leaflet-popup-scrolled {
|
||||||
|
overflow: auto;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-oldie .leaflet-popup-content-wrapper {
|
||||||
|
zoom: 1;
|
||||||
|
}
|
||||||
|
.leaflet-oldie .leaflet-popup-tip {
|
||||||
|
width: 24px;
|
||||||
|
margin: 0 auto;
|
||||||
|
|
||||||
|
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
|
||||||
|
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
|
||||||
|
}
|
||||||
|
.leaflet-oldie .leaflet-popup-tip-container {
|
||||||
|
margin-top: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-oldie .leaflet-control-zoom,
|
||||||
|
.leaflet-oldie .leaflet-control-layers,
|
||||||
|
.leaflet-oldie .leaflet-popup-content-wrapper,
|
||||||
|
.leaflet-oldie .leaflet-popup-tip {
|
||||||
|
border: 1px solid #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* div icon */
|
||||||
|
|
||||||
|
.leaflet-div-icon {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Tooltip */
|
||||||
|
/* Base styles for the element that has a tooltip */
|
||||||
|
.leaflet-tooltip {
|
||||||
|
position: absolute;
|
||||||
|
padding: 6px;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #fff;
|
||||||
|
border-radius: 3px;
|
||||||
|
color: #222;
|
||||||
|
white-space: nowrap;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
pointer-events: none;
|
||||||
|
box-shadow: 0 1px 3px rgba(0,0,0,0.4);
|
||||||
|
}
|
||||||
|
.leaflet-tooltip.leaflet-clickable {
|
||||||
|
cursor: pointer;
|
||||||
|
pointer-events: auto;
|
||||||
|
}
|
||||||
|
.leaflet-tooltip-top:before,
|
||||||
|
.leaflet-tooltip-bottom:before,
|
||||||
|
.leaflet-tooltip-left:before,
|
||||||
|
.leaflet-tooltip-right:before {
|
||||||
|
position: absolute;
|
||||||
|
pointer-events: none;
|
||||||
|
border: 6px solid transparent;
|
||||||
|
background: transparent;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Directions */
|
||||||
|
|
||||||
|
.leaflet-tooltip-bottom {
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
.leaflet-tooltip-top {
|
||||||
|
margin-top: -6px;
|
||||||
|
}
|
||||||
|
.leaflet-tooltip-bottom:before,
|
||||||
|
.leaflet-tooltip-top:before {
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -6px;
|
||||||
|
}
|
||||||
|
.leaflet-tooltip-top:before {
|
||||||
|
bottom: 0;
|
||||||
|
margin-bottom: -12px;
|
||||||
|
border-top-color: #fff;
|
||||||
|
}
|
||||||
|
.leaflet-tooltip-bottom:before {
|
||||||
|
top: 0;
|
||||||
|
margin-top: -12px;
|
||||||
|
margin-left: -6px;
|
||||||
|
border-bottom-color: #fff;
|
||||||
|
}
|
||||||
|
.leaflet-tooltip-left {
|
||||||
|
margin-left: -6px;
|
||||||
|
}
|
||||||
|
.leaflet-tooltip-right {
|
||||||
|
margin-left: 6px;
|
||||||
|
}
|
||||||
|
.leaflet-tooltip-left:before,
|
||||||
|
.leaflet-tooltip-right:before {
|
||||||
|
top: 50%;
|
||||||
|
margin-top: -6px;
|
||||||
|
}
|
||||||
|
.leaflet-tooltip-left:before {
|
||||||
|
right: 0;
|
||||||
|
margin-right: -12px;
|
||||||
|
border-left-color: #fff;
|
||||||
|
}
|
||||||
|
.leaflet-tooltip-right:before {
|
||||||
|
left: 0;
|
||||||
|
margin-left: -12px;
|
||||||
|
border-right-color: #fff;
|
||||||
|
}
|
1
style/leaflet.extra-markers.min.css
vendored
Normal file
1
style/leaflet.extra-markers.min.css
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.extra-marker{background:url("../img/markers_default.png") no-repeat 0 0;width:35px;height:46px;position:absolute;left:0;top:0;display:block;text-align:center}.extra-marker-shadow{background:url("../img/markers_shadow.png") no-repeat 0 0;width:36px;height:16px}@media (min--moz-device-pixel-ratio:1.5),(-webkit-min-device-pixel-ratio:1.5),(min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.extra-marker{background-image:url("../img/markers_default@2x.png");background-size:540px 184px}.extra-marker-shadow{background-image:url("../img/markers_shadow@2x.png");background-size:35px 16px}}.extra-marker i{color:#fff;margin-top:10px;display:inline-block;font-size:14px}.extra-marker i.icon{margin-right:0;opacity:1}.extra-marker-circle-red{background-position:0 0}.extra-marker-circle-orange-dark{background-position:-36px 0}.extra-marker-circle-orange{background-position:-72px 0}.extra-marker-circle-yellow{background-position:-108px 0}.extra-marker-circle-blue-dark{background-position:-144px 0}.extra-marker-circle-blue{background-position:-180px 0}.extra-marker-circle-cyan{background-position:-216px 0}.extra-marker-circle-purple{background-position:-252px 0}.extra-marker-circle-violet{background-position:-288px 0}.extra-marker-circle-pink{background-position:-324px 0}.extra-marker-circle-green-dark{background-position:-360px 0}.extra-marker-circle-green{background-position:-396px 0}.extra-marker-circle-green-light{background-position:-432px 0}.extra-marker-circle-black{background-position:-468px 0}.extra-marker-circle-white{background-position:-504px 0}.extra-marker-square-red{background-position:0 -46px}.extra-marker-square-orange-dark{background-position:-36px -46px}.extra-marker-square-orange{background-position:-72px -46px}.extra-marker-square-yellow{background-position:-108px -46px}.extra-marker-square-blue-dark{background-position:-144px -46px}.extra-marker-square-blue{background-position:-180px -46px}.extra-marker-square-cyan{background-position:-216px -46px}.extra-marker-square-purple{background-position:-252px -46px}.extra-marker-square-violet{background-position:-288px -46px}.extra-marker-square-pink{background-position:-324px -46px}.extra-marker-square-green-dark{background-position:-360px -46px}.extra-marker-square-green{background-position:-396px -46px}.extra-marker-square-green-light{background-position:-432px -46px}.extra-marker-square-black{background-position:-468px -46px}.extra-marker-square-white{background-position:-504px -46px}.extra-marker-star-red{background-position:0 -92px}.extra-marker-star-orange-dark{background-position:-36px -92px}.extra-marker-star-orange{background-position:-72px -92px}.extra-marker-star-yellow{background-position:-108px -92px}.extra-marker-star-blue-dark{background-position:-144px -92px}.extra-marker-star-blue{background-position:-180px -92px}.extra-marker-star-cyan{background-position:-216px -92px}.extra-marker-star-purple{background-position:-252px -92px}.extra-marker-star-violet{background-position:-288px -92px}.extra-marker-star-pink{background-position:-324px -92px}.extra-marker-star-green-dark{background-position:-360px -92px}.extra-marker-star-green{background-position:-396px -92px}.extra-marker-star-green-light{background-position:-432px -92px}.extra-marker-star-black{background-position:-468px -92px}.extra-marker-star-white{background-position:-504px -92px}.extra-marker-penta-red{background-position:0 -138px}.extra-marker-penta-orange-dark{background-position:-36px -138px}.extra-marker-penta-orange{background-position:-72px -138px}.extra-marker-penta-yellow{background-position:-108px -138px}.extra-marker-penta-blue-dark{background-position:-144px -138px}.extra-marker-penta-blue{background-position:-180px -138px}.extra-marker-penta-cyan{background-position:-216px -138px}.extra-marker-penta-purple{background-position:-252px -138px}.extra-marker-penta-violet{background-position:-288px -138px}.extra-marker-penta-pink{background-position:-324px -138px}.extra-marker-penta-green-dark{background-position:-360px -138px}.extra-marker-penta-green{background-position:-396px -138px}.extra-marker-penta-green-light{background-position:-432px -138px}.extra-marker-penta-black{background-position:-468px -138px}.extra-marker-penta-white{background-position:-504px -138px}.extra-marker .fa-number:before{content:attr(number)}
|
249
style/main.css
Normal file
249
style/main.css
Normal file
|
@ -0,0 +1,249 @@
|
||||||
|
/*
|
||||||
|
* Edited by: Nermin Jukan, 63150367
|
||||||
|
* Date: 17. 05. 2018
|
||||||
|
* Modifications: Edited 'h1' tag's attributes; changed the padding to "2px 5px" and border radius to "2px".
|
||||||
|
*/
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: zrcola;
|
||||||
|
src: url('fonts/zrcolare.woff2') format('woff2'),
|
||||||
|
url('fonts/zrcolare.woff') format('woff');
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: zrcolabd;
|
||||||
|
src: url('fonts/zrcolabd.woff2') format('woff2'),
|
||||||
|
url('fonts/zrcolabd.woff') format('woff');
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: zrcolabi;
|
||||||
|
src: url('fonts/zrcolabi.woff2') format('woff2'),
|
||||||
|
url('fonts/zrcolabi.woff') format('woff');
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: zrcolait;
|
||||||
|
src: url('fonts/zrcolait.woff2') format('woff2'),
|
||||||
|
url('fonts/zrcolait.woff') format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
|
body, html {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#transkripcija, #analiza, #poknjizitev,
|
||||||
|
#print_transkripcija, #print_analiza, #print_poknjizitev {
|
||||||
|
font-family: zrcola;
|
||||||
|
font-size: 1.2em;
|
||||||
|
word-break: keep-all;
|
||||||
|
}
|
||||||
|
|
||||||
|
.location-metadata{
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#title{
|
||||||
|
position: absolute;
|
||||||
|
top: 15px;
|
||||||
|
text-align: center;
|
||||||
|
width: 50%;
|
||||||
|
margin-left: 25%;
|
||||||
|
}
|
||||||
|
h1{
|
||||||
|
margin: 0 auto;
|
||||||
|
background-color: rgba(255,255,255,0.8);
|
||||||
|
border-radius: 2px;
|
||||||
|
display: inline;
|
||||||
|
padding: 2px 5px;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
h1:hover{
|
||||||
|
background-color: #fff;
|
||||||
|
transition: all 0.2s linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
#o-projektu{
|
||||||
|
position:absolute;
|
||||||
|
top: 9px;
|
||||||
|
right: 15px;
|
||||||
|
background-color: rgba(255,255,255,1);
|
||||||
|
padding:5px 10px;
|
||||||
|
transition: all 0.2s linear;
|
||||||
|
border-radius: 2px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
#o-projektu:hover{
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#legenda{
|
||||||
|
position:absolute;
|
||||||
|
top: 80px;
|
||||||
|
bottom: 80px;
|
||||||
|
right: 10px;
|
||||||
|
overflow-y: auto;
|
||||||
|
|
||||||
|
border-radius: 2px;
|
||||||
|
transition: all 0.2s linear;
|
||||||
|
}
|
||||||
|
#legenda:hover{
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
#legenda>div{
|
||||||
|
padding: 5px 10px;
|
||||||
|
}
|
||||||
|
.legenda-box{
|
||||||
|
width: 25px;
|
||||||
|
height: 20px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
margin-left: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.legenda-box:hover{
|
||||||
|
border: 3px solid black;
|
||||||
|
}
|
||||||
|
#legenda span{
|
||||||
|
line-height: 25px;
|
||||||
|
}
|
||||||
|
.legenda-dialects{
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
.legenda-dialect::before{
|
||||||
|
content: '*';
|
||||||
|
}
|
||||||
|
.legenda-subdialects{
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
.legenda-subdialect::before{
|
||||||
|
content: '-';
|
||||||
|
}
|
||||||
|
.pointer{
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.pointer:hover{
|
||||||
|
color: #b23636;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gorenjska_narecna_skupina{ background-color:rgba(210,160,252,0.7) /* #d2a0fc #56089e; rgba(144,0,144,0.3);*/ }
|
||||||
|
#dolenjska_narecna_skupina{ background-color: rgba(255,153,0,0.7) /* rgba(199,126,90,0.7) /* #c77e5a /*#d10a4c; rgba(209,10,76,0.3);*/ }
|
||||||
|
#stajerska_narecna_skupina{ background-color: rgba(176,239,145,0.7) /*#b0ef91 /*#12d315; rgba(18,211,21,0.3);*/ }
|
||||||
|
#panonska_narecna_skupina{ background-color: rgba(255,255,123,0.7) /*#ffff7b /*#e9e342; rgba(233,227,66,0.3);*/ }
|
||||||
|
#koroska_narecna_skupina{ background-color: rgba(249,186,228,0.7) /*#f9bae4 /*#5b1659; rgba(255,127,255,0.3);*/ }
|
||||||
|
#primorska_narecna_skupina{ background-color: rgba(255,198,172,0.7) /*#ffc6ac /*#c58824; rgba(197,136,36,0.3);*/ }
|
||||||
|
#rovtarska_narecna_skupina{ background-color: rgba(164,205,255,0.7) /*#a4cdff /*#0855ff; rgba(8,85,255,0.3);*/ }
|
||||||
|
|
||||||
|
#info-box-wrap{
|
||||||
|
position: absolute;
|
||||||
|
bottom: 30px;
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
#info-box{
|
||||||
|
font-size: 1.5em;
|
||||||
|
position: relative;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border-radius: 2px;
|
||||||
|
margin: 0 auto;
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-icon-label .map-icon {
|
||||||
|
font-size: 24px;
|
||||||
|
color: #FFFFFF;
|
||||||
|
line-height: 48px;
|
||||||
|
text-align: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.modal-dialog.modal-wide {
|
||||||
|
width: 90%;
|
||||||
|
max-width: 1200px;
|
||||||
|
}
|
||||||
|
/*.modal-wide .modal-body {
|
||||||
|
overflow-y: auto;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
#play-pause{
|
||||||
|
float:left;
|
||||||
|
width:128px;
|
||||||
|
height:128px;
|
||||||
|
background-image:url(https://d30y9cdsu7xlg0.cloudfront.net/png/86425-200.png);
|
||||||
|
background-size:50%;
|
||||||
|
background-position:center;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
cursor:pointer;
|
||||||
|
}
|
||||||
|
#play-pause:hover{
|
||||||
|
background-color:#eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr.tr-head{
|
||||||
|
background-color: #efefef;
|
||||||
|
}
|
||||||
|
tr.analysis-items>td:nth-child(2), tr.analysis-items>td:nth-child(3){
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-div-icon{
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 1000px) {
|
||||||
|
.hidden-mobile{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* PRINT STYLES */
|
||||||
|
.printable {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
|
||||||
|
body{
|
||||||
|
margin-bottom: 55mm;
|
||||||
|
}
|
||||||
|
body * {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
.printable {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.printable, .printable * {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
.printable {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
margin: 0 5%;
|
||||||
|
}
|
||||||
|
.printable .row{
|
||||||
|
margin-bottom:50mm;
|
||||||
|
}
|
||||||
|
.printable .row>div {
|
||||||
|
width:100%;
|
||||||
|
margin-top:5mm;
|
||||||
|
}
|
||||||
|
|
||||||
|
.print-title{
|
||||||
|
font-size: 1.4em;
|
||||||
|
}
|
||||||
|
.print-footer {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
1
style/map-icons.min.css
vendored
Normal file
1
style/map-icons.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
9
vendor/angular-cookies.min.js
vendored
Normal file
9
vendor/angular-cookies.min.js
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/*
|
||||||
|
AngularJS v1.6.7
|
||||||
|
(c) 2010-2017 Google, Inc. http://angularjs.org
|
||||||
|
License: MIT
|
||||||
|
*/
|
||||||
|
(function(n,c){'use strict';function l(b,a,g){var d=g.baseHref(),k=b[0];return function(b,e,f){var g,h;f=f||{};h=f.expires;g=c.isDefined(f.path)?f.path:d;c.isUndefined(e)&&(h="Thu, 01 Jan 1970 00:00:00 GMT",e="");c.isString(h)&&(h=new Date(h));e=encodeURIComponent(b)+"="+encodeURIComponent(e);e=e+(g?";path="+g:"")+(f.domain?";domain="+f.domain:"");e+=h?";expires="+h.toUTCString():"";e+=f.secure?";secure":"";f=e.length+1;4096<f&&a.warn("Cookie '"+b+"' possibly not set or overflowed because it was too large ("+
|
||||||
|
f+" > 4096 bytes)!");k.cookie=e}}c.module("ngCookies",["ng"]).info({angularVersion:"1.6.7"}).provider("$cookies",[function(){var b=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(a,g){return{get:function(d){return a()[d]},getObject:function(d){return(d=this.get(d))?c.fromJson(d):d},getAll:function(){return a()},put:function(d,a,m){g(d,a,m?c.extend({},b,m):b)},putObject:function(d,b,a){this.put(d,c.toJson(b),a)},remove:function(a,k){g(a,void 0,k?c.extend({},b,k):b)}}}]}]);c.module("ngCookies").factory("$cookieStore",
|
||||||
|
["$cookies",function(b){return{get:function(a){return b.getObject(a)},put:function(a,c){b.putObject(a,c)},remove:function(a){b.remove(a)}}}]);l.$inject=["$document","$log","$browser"];c.module("ngCookies").provider("$$cookieWriter",function(){this.$get=l})})(window,window.angular);
|
||||||
|
//# sourceMappingURL=angular-cookies.min.js.map
|
8
vendor/angular-cookies.min.js.map
vendored
Normal file
8
vendor/angular-cookies.min.js.map
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"version":3,
|
||||||
|
"file":"angular-cookies.min.js",
|
||||||
|
"lineCount":8,
|
||||||
|
"mappings":"A;;;;;aAKC,SAAQ,CAACA,CAAD,CAASC,CAAT,CAAkB,CA+Q3BC,QAASA,EAAc,CAACC,CAAD,CAAYC,CAAZ,CAAkBC,CAAlB,CAA4B,CACjD,IAAIC,EAAaD,CAAAE,SAAA,EAAjB,CACIC,EAAcL,CAAA,CAAU,CAAV,CAmClB,OAAO,SAAQ,CAACM,CAAD,CAAOC,CAAP,CAAcC,CAAd,CAAuB,CAjCW,IAC3CC,CAD2C,CACrCC,CACVF,EAAA,CAgCoDA,CAhCpD,EAAqB,EACrBE,EAAA,CAAUF,CAAAE,QACVD,EAAA,CAAOX,CAAAa,UAAA,CAAkBH,CAAAC,KAAlB,CAAA,CAAkCD,CAAAC,KAAlC,CAAiDN,CACpDL,EAAAc,YAAA,CAAoBL,CAApB,CAAJ,GACEG,CACA,CADU,+BACV,CAAAH,CAAA,CAAQ,EAFV,CAIIT,EAAAe,SAAA,CAAiBH,CAAjB,CAAJ,GACEA,CADF,CACY,IAAII,IAAJ,CAASJ,CAAT,CADZ,CAIIK,EAAAA,CAAMC,kBAAA,CAqB6BV,CArB7B,CAANS,CAAiC,GAAjCA,CAAuCC,kBAAA,CAAmBT,CAAnB,CAE3CQ,EAAA,CADAA,CACA,EADON,CAAA,CAAO,QAAP,CAAkBA,CAAlB,CAAyB,EAChC,GAAOD,CAAAS,OAAA,CAAiB,UAAjB,CAA8BT,CAAAS,OAA9B,CAA+C,EAAtD,CACAF,EAAA,EAAOL,CAAA,CAAU,WAAV,CAAwBA,CAAAQ,YAAA,EAAxB,CAAgD,EACvDH,EAAA,EAAOP,CAAAW,OAAA,CAAiB,SAAjB,CAA6B,EAMhCC,EAAAA,CAAeL,CAAAM,OAAfD,CAA4B,CACb,KAAnB,CAAIA,CAAJ,EACEnB,CAAAqB,KAAA,CAAU,UAAV,CASqChB,CATrC,CACE,6DADF;AAEEc,CAFF,CAEiB,iBAFjB,CASFf,EAAAkB,OAAA,CAJOR,CAG6B,CArCW,CAlQnDjB,CAAA0B,OAAA,CAAe,WAAf,CAA4B,CAAC,IAAD,CAA5B,CAAAC,KAAA,CACO,CAAEC,eAAgB,OAAlB,CADP,CAAAC,SAAA,CAQY,UARZ,CAQwB,CAAaC,QAAyB,EAAG,CAkC7D,IAAIC,EAAW,IAAAA,SAAXA,CAA2B,EAiC/B,KAAAC,KAAA,CAAY,CAAC,gBAAD,CAAmB,gBAAnB,CAAqC,QAAQ,CAACC,CAAD,CAAiBC,CAAjB,CAAiC,CACxF,MAAO,CAWLC,IAAKA,QAAQ,CAACC,CAAD,CAAM,CACjB,MAAOH,EAAA,EAAA,CAAiBG,CAAjB,CADU,CAXd,CAyBLC,UAAWA,QAAQ,CAACD,CAAD,CAAM,CAEvB,MAAO,CADH3B,CACG,CADK,IAAA0B,IAAA,CAASC,CAAT,CACL,EAAQpC,CAAAsC,SAAA,CAAiB7B,CAAjB,CAAR,CAAkCA,CAFlB,CAzBpB,CAuCL8B,OAAQA,QAAQ,EAAG,CACjB,MAAON,EAAA,EADU,CAvCd,CAuDLO,IAAKA,QAAQ,CAACJ,CAAD,CAAM3B,CAAN,CAAaC,CAAb,CAAsB,CACjCwB,CAAA,CAAeE,CAAf,CAAoB3B,CAApB,CAAuCC,CAvFpC,CAAUV,CAAAyC,OAAA,CAAe,EAAf,CAAmBV,CAAnB,CAuF0BrB,CAvF1B,CAAV,CAAkDqB,CAuFrD,CADiC,CAvD9B,CAuELW,UAAWA,QAAQ,CAACN,CAAD,CAAM3B,CAAN,CAAaC,CAAb,CAAsB,CACvC,IAAA8B,IAAA,CAASJ,CAAT,CAAcpC,CAAA2C,OAAA,CAAelC,CAAf,CAAd,CAAqCC,CAArC,CADuC,CAvEpC,CAsFLkC,OAAQA,QAAQ,CAACR,CAAD,CAAM1B,CAAN,CAAe,CAC7BwB,CAAA,CAAeE,CAAf,CAAoBS,IAAAA,EAApB,CAA2CnC,CAtHxC,CAAUV,CAAAyC,OAAA,CAAe,EAAf,CAAmBV,CAAnB,CAsH8BrB,CAtH9B,CAAV,CAAkDqB,CAsHrD,CAD6B,CAtF1B,CADiF,CAA9E,CAnEiD,CAAzC,CARxB,CAyKA/B,EAAA0B,OAAA,CAAe,WAAf,CAAAoB,QAAA,CA+BS,cA/BT;AA+ByB,CAAC,UAAD,CAAa,QAAQ,CAACC,CAAD,CAAW,CAErD,MAAO,CAWLZ,IAAKA,QAAQ,CAACC,CAAD,CAAM,CACjB,MAAOW,EAAAV,UAAA,CAAmBD,CAAnB,CADU,CAXd,CAyBLI,IAAKA,QAAQ,CAACJ,CAAD,CAAM3B,CAAN,CAAa,CACxBsC,CAAAL,UAAA,CAAmBN,CAAnB,CAAwB3B,CAAxB,CADwB,CAzBrB,CAsCLmC,OAAQA,QAAQ,CAACR,CAAD,CAAM,CACpBW,CAAAH,OAAA,CAAgBR,CAAhB,CADoB,CAtCjB,CAF8C,CAAhC,CA/BzB,CAmIAnC,EAAA+C,QAAA,CAAyB,CAAC,WAAD,CAAc,MAAd,CAAsB,UAAtB,CAEzBhD,EAAA0B,OAAA,CAAe,WAAf,CAAAG,SAAA,CAAqC,gBAArC,CAAoEoB,QAA+B,EAAG,CACpG,IAAAjB,KAAA,CAAY/B,CADwF,CAAtG,CA3T2B,CAA1B,CAAD,CAgUGF,MAhUH,CAgUWA,MAAAC,QAhUX;",
|
||||||
|
"sources":["angular-cookies.js"],
|
||||||
|
"names":["window","angular","$$CookieWriter","$document","$log","$browser","cookiePath","baseHref","rawDocument","name","value","options","path","expires","isDefined","isUndefined","isString","Date","str","encodeURIComponent","domain","toUTCString","secure","cookieLength","length","warn","cookie","module","info","angularVersion","provider","$CookiesProvider","defaults","$get","$$cookieReader","$$cookieWriter","get","key","getObject","fromJson","getAll","put","extend","putObject","toJson","remove","undefined","factory","$cookies","$inject","$$CookieWriterProvider"]
|
||||||
|
}
|
17
vendor/angular-route.min.js
vendored
Normal file
17
vendor/angular-route.min.js
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
/*
|
||||||
|
AngularJS v1.6.7
|
||||||
|
(c) 2010-2017 Google, Inc. http://angularjs.org
|
||||||
|
License: MIT
|
||||||
|
*/
|
||||||
|
(function(J,d){'use strict';function A(d){k&&d.get("$route")}function B(t,u,g){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,f,b,c,m){function v(){l&&(g.cancel(l),l=null);n&&(n.$destroy(),n=null);p&&(l=g.leave(p),l.done(function(a){!1!==a&&(l=null)}),p=null)}function E(){var b=t.current&&t.current.locals;if(d.isDefined(b&&b.$template)){var b=a.$new(),c=t.current;p=m(b,function(b){g.enter(b,null,p||f).done(function(b){!1===b||!d.isDefined(w)||w&&!a.$eval(w)||u()});
|
||||||
|
v()});n=c.scope=b;n.$emit("$viewContentLoaded");n.$eval(k)}else v()}var n,p,l,w=b.autoscroll,k=b.onload||"";a.$on("$routeChangeSuccess",E);E()}}}function C(d,k,g){return{restrict:"ECA",priority:-400,link:function(a,f){var b=g.current,c=b.locals;f.html(c.$template);var m=d(f.contents());if(b.controller){c.$scope=a;var v=k(b.controller,c);b.controllerAs&&(a[b.controllerAs]=v);f.data("$ngControllerController",v);f.children().data("$ngControllerController",v)}a[b.resolveAs||"$resolve"]=c;m(a)}}}var x,
|
||||||
|
y,F,G,z=d.module("ngRoute",[]).info({angularVersion:"1.6.7"}).provider("$route",function(){function t(a,f){return d.extend(Object.create(a),f)}function u(a,d){var b=d.caseInsensitiveMatch,c={originalPath:a,regexp:a},g=c.keys=[];a=a.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,function(a,b,d,c){a="?"===c||"*?"===c?"?":null;c="*"===c||"*?"===c?"*":null;g.push({name:d,optional:!!a});b=b||"";return""+(a?"":b)+"(?:"+(a?b:"")+(c&&"(.+?)"||"([^/]+)")+(a||"")+")"+(a||"")}).replace(/([/$*])/g,
|
||||||
|
"\\$1");c.regexp=new RegExp("^"+a+"$",b?"i":"");return c}x=d.isArray;y=d.isObject;F=d.isDefined;G=d.noop;var g={};this.when=function(a,f){var b;b=void 0;if(x(f)){b=b||[];for(var c=0,m=f.length;c<m;c++)b[c]=f[c]}else if(y(f))for(c in b=b||{},f)if("$"!==c.charAt(0)||"$"!==c.charAt(1))b[c]=f[c];b=b||f;d.isUndefined(b.reloadOnSearch)&&(b.reloadOnSearch=!0);d.isUndefined(b.caseInsensitiveMatch)&&(b.caseInsensitiveMatch=this.caseInsensitiveMatch);g[a]=d.extend(b,a&&u(a,b));a&&(c="/"===a[a.length-1]?a.substr(0,
|
||||||
|
a.length-1):a+"/",g[c]=d.extend({redirectTo:a},u(c,b)));return this};this.caseInsensitiveMatch=!1;this.otherwise=function(a){"string"===typeof a&&(a={redirectTo:a});this.when(null,a);return this};k=!0;this.eagerInstantiationEnabled=function(a){return F(a)?(k=a,this):k};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce","$browser",function(a,f,b,c,m,k,u,n){function p(e){var h=q.current;(y=(s=C())&&h&&s.$$route===h.$$route&&d.equals(s.pathParams,h.pathParams)&&
|
||||||
|
!s.reloadOnSearch&&!D)||!h&&!s||a.$broadcast("$routeChangeStart",s,h).defaultPrevented&&e&&e.preventDefault()}function l(){var e=q.current,h=s;if(y)e.params=h.params,d.copy(e.params,b),a.$broadcast("$routeUpdate",e);else if(h||e){D=!1;q.current=h;var H=c.resolve(h);n.$$incOutstandingRequestCount();H.then(w).then(z).then(function(c){return c&&H.then(A).then(function(c){h===q.current&&(h&&(h.locals=c,d.copy(h.params,b)),a.$broadcast("$routeChangeSuccess",h,e))})}).catch(function(b){h===q.current&&a.$broadcast("$routeChangeError",
|
||||||
|
h,e,b)}).finally(function(){n.$$completeOutstandingRequest(G)})}}function w(e){var a={route:e,hasRedirection:!1};if(e)if(e.redirectTo)if(d.isString(e.redirectTo))a.path=x(e.redirectTo,e.params),a.search=e.params,a.hasRedirection=!0;else{var b=f.path(),g=f.search();e=e.redirectTo(e.pathParams,b,g);d.isDefined(e)&&(a.url=e,a.hasRedirection=!0)}else if(e.resolveRedirectTo)return c.resolve(m.invoke(e.resolveRedirectTo)).then(function(e){d.isDefined(e)&&(a.url=e,a.hasRedirection=!0);return a});return a}
|
||||||
|
function z(a){var b=!0;if(a.route!==q.current)b=!1;else if(a.hasRedirection){var d=f.url(),c=a.url;c?f.url(c).replace():c=f.path(a.path).search(a.search).replace().url();c!==d&&(b=!1)}return b}function A(a){if(a){var b=d.extend({},a.resolve);d.forEach(b,function(a,e){b[e]=d.isString(a)?m.get(a):m.invoke(a,null,null,e)});a=B(a);d.isDefined(a)&&(b.$template=a);return c.all(b)}}function B(a){var b,c;d.isDefined(b=a.template)?d.isFunction(b)&&(b=b(a.params)):d.isDefined(c=a.templateUrl)&&(d.isFunction(c)&&
|
||||||
|
(c=c(a.params)),d.isDefined(c)&&(a.loadedTemplateUrl=u.valueOf(c),b=k(c)));return b}function C(){var a,b;d.forEach(g,function(c,g){var r;if(r=!b){var k=f.path();r=c.keys;var m={};if(c.regexp)if(k=c.regexp.exec(k)){for(var l=1,n=k.length;l<n;++l){var p=r[l-1],q=k[l];p&&q&&(m[p.name]=q)}r=m}else r=null;else r=null;r=a=r}r&&(b=t(c,{params:d.extend({},f.search(),a),pathParams:a}),b.$$route=c)});return b||g[null]&&t(g[null],{params:{},pathParams:{}})}function x(a,b){var c=[];d.forEach((a||"").split(":"),
|
||||||
|
function(a,d){if(0===d)c.push(a);else{var e=a.match(/(\w+)(?:[?*])?(.*)/),f=e[1];c.push(b[f]);c.push(e[2]||"");delete b[f]}});return c.join("")}var D=!1,s,y,q={routes:g,reload:function(){D=!0;var b={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0;D=!1}};a.$evalAsync(function(){p(b);b.defaultPrevented||l()})},updateParams:function(a){if(this.current&&this.current.$$route)a=d.extend({},this.current.params,a),f.path(x(this.current.$$route.originalPath,a)),f.search(a);else throw I("norout");
|
||||||
|
}};a.$on("$locationChangeStart",p);a.$on("$locationChangeSuccess",l);return q}]}).run(A),I=d.$$minErr("ngRoute"),k;A.$inject=["$injector"];z.provider("$routeParams",function(){this.$get=function(){return{}}});z.directive("ngView",B);z.directive("ngView",C);B.$inject=["$route","$anchorScroll","$animate"];C.$inject=["$compile","$controller","$route"]})(window,window.angular);
|
||||||
|
//# sourceMappingURL=angular-route.min.js.map
|
8
vendor/angular-route.min.js.map
vendored
Normal file
8
vendor/angular-route.min.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
vendor/angular-simple-logger.min.js
vendored
Normal file
1
vendor/angular-simple-logger.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
336
vendor/angular.min.js
vendored
Normal file
336
vendor/angular.min.js
vendored
Normal file
|
@ -0,0 +1,336 @@
|
||||||
|
/*
|
||||||
|
AngularJS v1.6.7
|
||||||
|
(c) 2010-2017 Google, Inc. http://angularjs.org
|
||||||
|
License: MIT
|
||||||
|
*/
|
||||||
|
(function(u){'use strict';function oe(a){if(E(a))t(a.objectMaxDepth)&&(Mc.objectMaxDepth=Vb(a.objectMaxDepth)?a.objectMaxDepth:NaN);else return Mc}function Vb(a){return Y(a)&&0<a}function M(a,b){b=b||Error;return function(){var d=arguments[0],c;c="["+(a?a+":":"")+d+"] http://errors.angularjs.org/1.6.7/"+(a?a+"/":"")+d;for(d=1;d<arguments.length;d++){c=c+(1==d?"?":"&")+"p"+(d-1)+"=";var e=encodeURIComponent,f;f=arguments[d];f="function"==typeof f?f.toString().replace(/ \{[\s\S]*$/,""):"undefined"==
|
||||||
|
typeof f?"undefined":"string"!=typeof f?JSON.stringify(f):f;c+=e(f)}return new b(c)}}function xa(a){if(null==a||$a(a))return!1;if(I(a)||D(a)||A&&a instanceof A)return!0;var b="length"in Object(a)&&a.length;return Y(b)&&(0<=b&&(b-1 in a||a instanceof Array)||"function"===typeof a.item)}function p(a,b,d){var c,e;if(a)if(B(a))for(c in a)"prototype"!==c&&"length"!==c&&"name"!==c&&a.hasOwnProperty(c)&&b.call(d,a[c],c,a);else if(I(a)||xa(a)){var f="object"!==typeof a;c=0;for(e=a.length;c<e;c++)(f||c in
|
||||||
|
a)&&b.call(d,a[c],c,a)}else if(a.forEach&&a.forEach!==p)a.forEach(b,d,a);else if(Nc(a))for(c in a)b.call(d,a[c],c,a);else if("function"===typeof a.hasOwnProperty)for(c in a)a.hasOwnProperty(c)&&b.call(d,a[c],c,a);else for(c in a)ra.call(a,c)&&b.call(d,a[c],c,a);return a}function Oc(a,b,d){for(var c=Object.keys(a).sort(),e=0;e<c.length;e++)b.call(d,a[c[e]],c[e]);return c}function Wb(a){return function(b,d){a(d,b)}}function pe(){return++rb}function Xb(a,b,d){for(var c=a.$$hashKey,e=0,f=b.length;e<f;++e){var g=
|
||||||
|
b[e];if(E(g)||B(g))for(var k=Object.keys(g),h=0,l=k.length;h<l;h++){var m=k[h],n=g[m];d&&E(n)?ea(n)?a[m]=new Date(n.valueOf()):ab(n)?a[m]=new RegExp(n):n.nodeName?a[m]=n.cloneNode(!0):Yb(n)?a[m]=n.clone():(E(a[m])||(a[m]=I(n)?[]:{}),Xb(a[m],[n],!0)):a[m]=n}}c?a.$$hashKey=c:delete a.$$hashKey;return a}function Q(a){return Xb(a,ya.call(arguments,1),!1)}function qe(a){return Xb(a,ya.call(arguments,1),!0)}function Z(a){return parseInt(a,10)}function Zb(a,b){return Q(Object.create(a),b)}function C(){}
|
||||||
|
function bb(a){return a}function ka(a){return function(){return a}}function $b(a){return B(a.toString)&&a.toString!==ha}function w(a){return"undefined"===typeof a}function t(a){return"undefined"!==typeof a}function E(a){return null!==a&&"object"===typeof a}function Nc(a){return null!==a&&"object"===typeof a&&!Pc(a)}function D(a){return"string"===typeof a}function Y(a){return"number"===typeof a}function ea(a){return"[object Date]"===ha.call(a)}function ac(a){switch(ha.call(a)){case "[object Error]":return!0;
|
||||||
|
case "[object Exception]":return!0;case "[object DOMException]":return!0;default:return a instanceof Error}}function B(a){return"function"===typeof a}function ab(a){return"[object RegExp]"===ha.call(a)}function $a(a){return a&&a.window===a}function cb(a){return a&&a.$evalAsync&&a.$watch}function Na(a){return"boolean"===typeof a}function re(a){return a&&Y(a.length)&&se.test(ha.call(a))}function Yb(a){return!(!a||!(a.nodeName||a.prop&&a.attr&&a.find))}function te(a){var b={};a=a.split(",");var d;for(d=
|
||||||
|
0;d<a.length;d++)b[a[d]]=!0;return b}function za(a){return N(a.nodeName||a[0]&&a[0].nodeName)}function db(a,b){var d=a.indexOf(b);0<=d&&a.splice(d,1);return d}function pa(a,b,d){function c(a,b,c){c--;if(0>c)return"...";var d=b.$$hashKey,g;if(I(a)){g=0;for(var f=a.length;g<f;g++)b.push(e(a[g],c))}else if(Nc(a))for(g in a)b[g]=e(a[g],c);else if(a&&"function"===typeof a.hasOwnProperty)for(g in a)a.hasOwnProperty(g)&&(b[g]=e(a[g],c));else for(g in a)ra.call(a,g)&&(b[g]=e(a[g],c));d?b.$$hashKey=d:delete b.$$hashKey;
|
||||||
|
return b}function e(a,b){if(!E(a))return a;var d=g.indexOf(a);if(-1!==d)return k[d];if($a(a)||cb(a))throw qa("cpws");var d=!1,e=f(a);void 0===e&&(e=I(a)?[]:Object.create(Pc(a)),d=!0);g.push(a);k.push(e);return d?c(a,e,b):e}function f(a){switch(ha.call(a)){case "[object Int8Array]":case "[object Int16Array]":case "[object Int32Array]":case "[object Float32Array]":case "[object Float64Array]":case "[object Uint8Array]":case "[object Uint8ClampedArray]":case "[object Uint16Array]":case "[object Uint32Array]":return new a.constructor(e(a.buffer),
|
||||||
|
a.byteOffset,a.length);case "[object ArrayBuffer]":if(!a.slice){var b=new ArrayBuffer(a.byteLength);(new Uint8Array(b)).set(new Uint8Array(a));return b}return a.slice(0);case "[object Boolean]":case "[object Number]":case "[object String]":case "[object Date]":return new a.constructor(a.valueOf());case "[object RegExp]":return b=new RegExp(a.source,a.toString().match(/[^/]*$/)[0]),b.lastIndex=a.lastIndex,b;case "[object Blob]":return new a.constructor([a],{type:a.type})}if(B(a.cloneNode))return a.cloneNode(!0)}
|
||||||
|
var g=[],k=[];d=Vb(d)?d:NaN;if(b){if(re(b)||"[object ArrayBuffer]"===ha.call(b))throw qa("cpta");if(a===b)throw qa("cpi");I(b)?b.length=0:p(b,function(a,c){"$$hashKey"!==c&&delete b[c]});g.push(a);k.push(b);return c(a,b,d)}return e(a,d)}function bc(a,b){return a===b||a!==a&&b!==b}function sa(a,b){if(a===b)return!0;if(null===a||null===b)return!1;if(a!==a&&b!==b)return!0;var d=typeof a,c;if(d===typeof b&&"object"===d)if(I(a)){if(!I(b))return!1;if((d=a.length)===b.length){for(c=0;c<d;c++)if(!sa(a[c],
|
||||||
|
b[c]))return!1;return!0}}else{if(ea(a))return ea(b)?bc(a.getTime(),b.getTime()):!1;if(ab(a))return ab(b)?a.toString()===b.toString():!1;if(cb(a)||cb(b)||$a(a)||$a(b)||I(b)||ea(b)||ab(b))return!1;d=T();for(c in a)if("$"!==c.charAt(0)&&!B(a[c])){if(!sa(a[c],b[c]))return!1;d[c]=!0}for(c in b)if(!(c in d)&&"$"!==c.charAt(0)&&t(b[c])&&!B(b[c]))return!1;return!0}return!1}function eb(a,b,d){return a.concat(ya.call(b,d))}function Ra(a,b){var d=2<arguments.length?ya.call(arguments,2):[];return!B(b)||b instanceof
|
||||||
|
RegExp?b:d.length?function(){return arguments.length?b.apply(a,eb(d,arguments,0)):b.apply(a,d)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}}function Qc(a,b){var d=b;"string"===typeof a&&"$"===a.charAt(0)&&"$"===a.charAt(1)?d=void 0:$a(b)?d="$WINDOW":b&&u.document===b?d="$DOCUMENT":cb(b)&&(d="$SCOPE");return d}function fb(a,b){if(!w(a))return Y(b)||(b=b?2:null),JSON.stringify(a,Qc,b)}function Rc(a){return D(a)?JSON.parse(a):a}function Sc(a,b){a=a.replace(ue,"");var d=Date.parse("Jan 01, 1970 00:00:00 "+
|
||||||
|
a)/6E4;return U(d)?b:d}function cc(a,b,d){d=d?-1:1;var c=a.getTimezoneOffset();b=Sc(b,c);d*=b-c;a=new Date(a.getTime());a.setMinutes(a.getMinutes()+d);return a}function Aa(a){a=A(a).clone().empty();var b=A("<div>").append(a).html();try{return a[0].nodeType===Oa?N(b):b.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(a,b){return"<"+N(b)})}catch(d){return N(b)}}function Tc(a){try{return decodeURIComponent(a)}catch(b){}}function dc(a){var b={};p((a||"").split("&"),function(a){var c,e,f;a&&(e=a=a.replace(/\+/g,
|
||||||
|
"%20"),c=a.indexOf("="),-1!==c&&(e=a.substring(0,c),f=a.substring(c+1)),e=Tc(e),t(e)&&(f=t(f)?Tc(f):!0,ra.call(b,e)?I(b[e])?b[e].push(f):b[e]=[b[e],f]:b[e]=f))});return b}function ec(a){var b=[];p(a,function(a,c){I(a)?p(a,function(a){b.push(ia(c,!0)+(!0===a?"":"="+ia(a,!0)))}):b.push(ia(c,!0)+(!0===a?"":"="+ia(a,!0)))});return b.length?b.join("&"):""}function gb(a){return ia(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ia(a,b){return encodeURIComponent(a).replace(/%40/gi,
|
||||||
|
"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,b?"%20":"+")}function ve(a,b){var d,c,e=Ha.length;for(c=0;c<e;++c)if(d=Ha[c]+b,D(d=a.getAttribute(d)))return d;return null}function we(a,b){var d,c,e={};p(Ha,function(b){b+="app";!d&&a.hasAttribute&&a.hasAttribute(b)&&(d=a,c=a.getAttribute(b))});p(Ha,function(b){b+="app";var e;!d&&(e=a.querySelector("["+b.replace(":","\\:")+"]"))&&(d=e,c=e.getAttribute(b))});d&&(xe?(e.strictDi=null!==ve(d,"strict-di"),
|
||||||
|
b(d,c?[c]:[],e)):u.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function Uc(a,b,d){E(d)||(d={});d=Q({strictDi:!1},d);var c=function(){a=A(a);if(a.injector()){var c=a[0]===u.document?"document":Aa(a);throw qa("btstrpd",c.replace(/</,"<").replace(/>/,">"));}b=b||[];b.unshift(["$provide",function(b){b.value("$rootElement",a)}]);d.debugInfoEnabled&&b.push(["$compileProvider",function(a){a.debugInfoEnabled(!0)}]);
|
||||||
|
b.unshift("ng");c=hb(b,d.strictDi);c.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,c,d){a.$apply(function(){b.data("$injector",d);c(b)(a)})}]);return c},e=/^NG_ENABLE_DEBUG_INFO!/,f=/^NG_DEFER_BOOTSTRAP!/;u&&e.test(u.name)&&(d.debugInfoEnabled=!0,u.name=u.name.replace(e,""));if(u&&!f.test(u.name))return c();u.name=u.name.replace(f,"");$.resumeBootstrap=function(a){p(a,function(a){b.push(a)});return c()};B($.resumeDeferredBootstrap)&&$.resumeDeferredBootstrap()}function ye(){u.name=
|
||||||
|
"NG_ENABLE_DEBUG_INFO!"+u.name;u.location.reload()}function ze(a){a=$.element(a).injector();if(!a)throw qa("test");return a.get("$$testability")}function Vc(a,b){b=b||"_";return a.replace(Ae,function(a,c){return(c?b:"")+a.toLowerCase()})}function Be(){var a;if(!Wc){var b=sb();(la=w(b)?u.jQuery:b?u[b]:void 0)&&la.fn.on?(A=la,Q(la.fn,{scope:Sa.scope,isolateScope:Sa.isolateScope,controller:Sa.controller,injector:Sa.injector,inheritedData:Sa.inheritedData}),a=la.cleanData,la.cleanData=function(b){for(var c,
|
||||||
|
e=0,f;null!=(f=b[e]);e++)(c=la._data(f,"events"))&&c.$destroy&&la(f).triggerHandler("$destroy");a(b)}):A=V;$.element=A;Wc=!0}}function ib(a,b,d){if(!a)throw qa("areq",b||"?",d||"required");return a}function tb(a,b,d){d&&I(a)&&(a=a[a.length-1]);ib(B(a),b,"not a function, got "+(a&&"object"===typeof a?a.constructor.name||"Object":typeof a));return a}function Ia(a,b){if("hasOwnProperty"===a)throw qa("badname",b);}function Xc(a,b,d){if(!b)return a;b=b.split(".");for(var c,e=a,f=b.length,g=0;g<f;g++)c=
|
||||||
|
b[g],a&&(a=(e=a)[c]);return!d&&B(a)?Ra(e,a):a}function ub(a){for(var b=a[0],d=a[a.length-1],c,e=1;b!==d&&(b=b.nextSibling);e++)if(c||a[e]!==b)c||(c=A(ya.call(a,0,e))),c.push(b);return c||a}function T(){return Object.create(null)}function fc(a){if(null==a)return"";switch(typeof a){case "string":break;case "number":a=""+a;break;default:a=!$b(a)||I(a)||ea(a)?fb(a):a.toString()}return a}function Ce(a){function b(a,b,c){return a[b]||(a[b]=c())}var d=M("$injector"),c=M("ng");a=b(a,"angular",Object);a.$$minErr=
|
||||||
|
a.$$minErr||M;return b(a,"module",function(){var a={};return function(f,g,k){var h={};if("hasOwnProperty"===f)throw c("badname","module");g&&a.hasOwnProperty(f)&&(a[f]=null);return b(a,f,function(){function a(b,c,d,g){g||(g=e);return function(){g[d||"push"]([b,c,arguments]);return p}}function b(a,c,d){d||(d=e);return function(b,e){e&&B(e)&&(e.$$moduleName=f);d.push([a,c,arguments]);return p}}if(!g)throw d("nomod",f);var e=[],q=[],G=[],L=a("$injector","invoke","push",q),p={_invokeQueue:e,_configBlocks:q,
|
||||||
|
_runBlocks:G,info:function(a){if(t(a)){if(!E(a))throw c("aobj","value");h=a;return this}return h},requires:g,name:f,provider:b("$provide","provider"),factory:b("$provide","factory"),service:b("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),decorator:b("$provide","decorator",q),animation:b("$animateProvider","register"),filter:b("$filterProvider","register"),controller:b("$controllerProvider","register"),directive:b("$compileProvider","directive"),component:b("$compileProvider",
|
||||||
|
"component"),config:L,run:function(a){G.push(a);return this}};k&&L(k);return p})}})}function ja(a,b){if(I(a)){b=b||[];for(var d=0,c=a.length;d<c;d++)b[d]=a[d]}else if(E(a))for(d in b=b||{},a)if("$"!==d.charAt(0)||"$"!==d.charAt(1))b[d]=a[d];return b||a}function De(a,b){var d=[];Vb(b)&&(a=$.copy(a,null,b));return JSON.stringify(a,function(a,b){b=Qc(a,b);if(E(b)){if(0<=d.indexOf(b))return"...";d.push(b)}return b})}function Ee(a){Q(a,{errorHandlingConfig:oe,bootstrap:Uc,copy:pa,extend:Q,merge:qe,equals:sa,
|
||||||
|
element:A,forEach:p,injector:hb,noop:C,bind:Ra,toJson:fb,fromJson:Rc,identity:bb,isUndefined:w,isDefined:t,isString:D,isFunction:B,isObject:E,isNumber:Y,isElement:Yb,isArray:I,version:Fe,isDate:ea,lowercase:N,uppercase:vb,callbacks:{$$counter:0},getTestability:ze,reloadWithDebugInfo:ye,$$minErr:M,$$csp:Ja,$$encodeUriSegment:gb,$$encodeUriQuery:ia,$$stringify:fc});gc=Ce(u);gc("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:Ge});a.provider("$compile",Yc).directive({a:He,input:Zc,
|
||||||
|
textarea:Zc,form:Ie,script:Je,select:Ke,option:Le,ngBind:Me,ngBindHtml:Ne,ngBindTemplate:Oe,ngClass:Pe,ngClassEven:Qe,ngClassOdd:Re,ngCloak:Se,ngController:Te,ngForm:Ue,ngHide:Ve,ngIf:We,ngInclude:Xe,ngInit:Ye,ngNonBindable:Ze,ngPluralize:$e,ngRepeat:af,ngShow:bf,ngStyle:cf,ngSwitch:df,ngSwitchWhen:ef,ngSwitchDefault:ff,ngOptions:gf,ngTransclude:hf,ngModel:jf,ngList:kf,ngChange:lf,pattern:$c,ngPattern:$c,required:ad,ngRequired:ad,minlength:bd,ngMinlength:bd,maxlength:cd,ngMaxlength:cd,ngValue:mf,
|
||||||
|
ngModelOptions:nf}).directive({ngInclude:of}).directive(wb).directive(dd);a.provider({$anchorScroll:pf,$animate:qf,$animateCss:rf,$$animateJs:sf,$$animateQueue:tf,$$AnimateRunner:uf,$$animateAsyncRun:vf,$browser:wf,$cacheFactory:xf,$controller:yf,$document:zf,$$isDocumentHidden:Af,$exceptionHandler:Bf,$filter:ed,$$forceReflow:Cf,$interpolate:Df,$interval:Ef,$http:Ff,$httpParamSerializer:Gf,$httpParamSerializerJQLike:Hf,$httpBackend:If,$xhrFactory:Jf,$jsonpCallbacks:Kf,$location:Lf,$log:Mf,$parse:Nf,
|
||||||
|
$rootScope:Of,$q:Pf,$$q:Qf,$sce:Rf,$sceDelegate:Sf,$sniffer:Tf,$templateCache:Uf,$templateRequest:Vf,$$testability:Wf,$timeout:Xf,$window:Yf,$$rAF:Zf,$$jqLite:$f,$$Map:ag,$$cookieReader:bg})}]).info({angularVersion:"1.6.7"})}function xb(a,b){return b.toUpperCase()}function yb(a){return a.replace(cg,xb)}function hc(a){a=a.nodeType;return 1===a||!a||9===a}function fd(a,b){var d,c,e=b.createDocumentFragment(),f=[];if(ic.test(a)){d=e.appendChild(b.createElement("div"));c=(dg.exec(a)||["",""])[1].toLowerCase();
|
||||||
|
c=aa[c]||aa._default;d.innerHTML=c[1]+a.replace(eg,"<$1></$2>")+c[2];for(c=c[0];c--;)d=d.lastChild;f=eb(f,d.childNodes);d=e.firstChild;d.textContent=""}else f.push(b.createTextNode(a));e.textContent="";e.innerHTML="";p(f,function(a){e.appendChild(a)});return e}function V(a){if(a instanceof V)return a;var b;D(a)&&(a=R(a),b=!0);if(!(this instanceof V)){if(b&&"<"!==a.charAt(0))throw jc("nosel");return new V(a)}if(b){b=u.document;var d;a=(d=fg.exec(a))?[b.createElement(d[1])]:(d=fd(a,b))?d.childNodes:
|
||||||
|
[];kc(this,a)}else B(a)?gd(a):kc(this,a)}function lc(a){return a.cloneNode(!0)}function zb(a,b){!b&&hc(a)&&A.cleanData([a]);a.querySelectorAll&&A.cleanData(a.querySelectorAll("*"))}function hd(a,b,d,c){if(t(c))throw jc("offargs");var e=(c=Ab(a))&&c.events,f=c&&c.handle;if(f)if(b){var g=function(b){var c=e[b];t(d)&&db(c||[],d);t(d)&&c&&0<c.length||(a.removeEventListener(b,f),delete e[b])};p(b.split(" "),function(a){g(a);Bb[a]&&g(Bb[a])})}else for(b in e)"$destroy"!==b&&a.removeEventListener(b,f),delete e[b]}
|
||||||
|
function mc(a,b){var d=a.ng339,c=d&&jb[d];c&&(b?delete c.data[b]:(c.handle&&(c.events.$destroy&&c.handle({},"$destroy"),hd(a)),delete jb[d],a.ng339=void 0))}function Ab(a,b){var d=a.ng339,d=d&&jb[d];b&&!d&&(a.ng339=d=++gg,d=jb[d]={events:{},data:{},handle:void 0});return d}function nc(a,b,d){if(hc(a)){var c,e=t(d),f=!e&&b&&!E(b),g=!b;a=(a=Ab(a,!f))&&a.data;if(e)a[yb(b)]=d;else{if(g)return a;if(f)return a&&a[yb(b)];for(c in b)a[yb(c)]=b[c]}}}function Cb(a,b){return a.getAttribute?-1<(" "+(a.getAttribute("class")||
|
||||||
|
"")+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" "):!1}function Db(a,b){if(b&&a.setAttribute){var d=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),c=d;p(b.split(" "),function(a){a=R(a);c=c.replace(" "+a+" "," ")});c!==d&&a.setAttribute("class",R(c))}}function Eb(a,b){if(b&&a.setAttribute){var d=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),c=d;p(b.split(" "),function(a){a=R(a);-1===c.indexOf(" "+a+" ")&&(c+=a+" ")});c!==d&&a.setAttribute("class",R(c))}}function kc(a,
|
||||||
|
b){if(b)if(b.nodeType)a[a.length++]=b;else{var d=b.length;if("number"===typeof d&&b.window!==b){if(d)for(var c=0;c<d;c++)a[a.length++]=b[c]}else a[a.length++]=b}}function id(a,b){return Fb(a,"$"+(b||"ngController")+"Controller")}function Fb(a,b,d){9===a.nodeType&&(a=a.documentElement);for(b=I(b)?b:[b];a;){for(var c=0,e=b.length;c<e;c++)if(t(d=A.data(a,b[c])))return d;a=a.parentNode||11===a.nodeType&&a.host}}function jd(a){for(zb(a,!0);a.firstChild;)a.removeChild(a.firstChild)}function Gb(a,b){b||
|
||||||
|
zb(a);var d=a.parentNode;d&&d.removeChild(a)}function hg(a,b){b=b||u;if("complete"===b.document.readyState)b.setTimeout(a);else A(b).on("load",a)}function gd(a){function b(){u.document.removeEventListener("DOMContentLoaded",b);u.removeEventListener("load",b);a()}"complete"===u.document.readyState?u.setTimeout(a):(u.document.addEventListener("DOMContentLoaded",b),u.addEventListener("load",b))}function kd(a,b){var d=Hb[b.toLowerCase()];return d&&ld[za(a)]&&d}function ig(a,b){var d=function(c,d){c.isDefaultPrevented=
|
||||||
|
function(){return c.defaultPrevented};var f=b[d||c.type],g=f?f.length:0;if(g){if(w(c.immediatePropagationStopped)){var k=c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=!0;c.stopPropagation&&c.stopPropagation();k&&k.call(c)}}c.isImmediatePropagationStopped=function(){return!0===c.immediatePropagationStopped};var h=f.specialHandlerWrapper||jg;1<g&&(f=ja(f));for(var l=0;l<g;l++)c.isImmediatePropagationStopped()||h(a,c,f[l])}};d.elem=a;return d}function jg(a,
|
||||||
|
b,d){d.call(a,b)}function kg(a,b,d){var c=b.relatedTarget;c&&(c===a||lg.call(a,c))||d.call(a,b)}function $f(){this.$get=function(){return Q(V,{hasClass:function(a,b){a.attr&&(a=a[0]);return Cb(a,b)},addClass:function(a,b){a.attr&&(a=a[0]);return Eb(a,b)},removeClass:function(a,b){a.attr&&(a=a[0]);return Db(a,b)}})}}function Pa(a,b){var d=a&&a.$$hashKey;if(d)return"function"===typeof d&&(d=a.$$hashKey()),d;d=typeof a;return d="function"===d||"object"===d&&null!==a?a.$$hashKey=d+":"+(b||pe)():d+":"+
|
||||||
|
a}function md(){this._keys=[];this._values=[];this._lastKey=NaN;this._lastIndex=-1}function nd(a){a=Function.prototype.toString.call(a).replace(mg,"");return a.match(ng)||a.match(og)}function pg(a){return(a=nd(a))?"function("+(a[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function hb(a,b){function d(a){return function(b,c){if(E(b))p(b,Wb(a));else return a(b,c)}}function c(a,b){Ia(a,"service");if(B(b)||I(b))b=q.instantiate(b);if(!b.$get)throw Ba("pget",a);return n[a+"Provider"]=b}function e(a,b){return function(){var c=
|
||||||
|
z.invoke(b,this);if(w(c))throw Ba("undef",a);return c}}function f(a,b,d){return c(a,{$get:!1!==d?e(a,b):b})}function g(a){ib(w(a)||I(a),"modulesToLoad","not an array");var b=[],c;p(a,function(a){function d(a){var b,c;b=0;for(c=a.length;b<c;b++){var e=a[b],g=q.get(e[0]);g[e[1]].apply(g,e[2])}}if(!m.get(a)){m.set(a,!0);try{D(a)?(c=gc(a),z.modules[a]=c,b=b.concat(g(c.requires)).concat(c._runBlocks),d(c._invokeQueue),d(c._configBlocks)):B(a)?b.push(q.invoke(a)):I(a)?b.push(q.invoke(a)):tb(a,"module")}catch(e){throw I(a)&&
|
||||||
|
(a=a[a.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Ba("modulerr",a,e.stack||e.message||e);}}});return b}function k(a,c){function d(b,e){if(a.hasOwnProperty(b)){if(a[b]===h)throw Ba("cdep",b+" <- "+l.join(" <- "));return a[b]}try{return l.unshift(b),a[b]=h,a[b]=c(b,e),a[b]}catch(g){throw a[b]===h&&delete a[b],g;}finally{l.shift()}}function e(a,c,g){var f=[];a=hb.$$annotate(a,b,g);for(var h=0,k=a.length;h<k;h++){var l=a[h];if("string"!==typeof l)throw Ba("itkn",
|
||||||
|
l);f.push(c&&c.hasOwnProperty(l)?c[l]:d(l,g))}return f}return{invoke:function(a,b,c,d){"string"===typeof c&&(d=c,c=null);c=e(a,c,d);I(a)&&(a=a[a.length-1]);d=a;if(Ca||"function"!==typeof d)d=!1;else{var g=d.$$ngIsClass;Na(g)||(g=d.$$ngIsClass=/^(?:class\b|constructor\()/.test(Function.prototype.toString.call(d)));d=g}return d?(c.unshift(null),new (Function.prototype.bind.apply(a,c))):a.apply(b,c)},instantiate:function(a,b,c){var d=I(a)?a[a.length-1]:a;a=e(a,b,c);a.unshift(null);return new (Function.prototype.bind.apply(d,
|
||||||
|
a))},get:d,annotate:hb.$$annotate,has:function(b){return n.hasOwnProperty(b+"Provider")||a.hasOwnProperty(b)}}}b=!0===b;var h={},l=[],m=new Ib,n={$provide:{provider:d(c),factory:d(f),service:d(function(a,b){return f(a,["$injector",function(a){return a.instantiate(b)}])}),value:d(function(a,b){return f(a,ka(b),!1)}),constant:d(function(a,b){Ia(a,"constant");n[a]=b;G[a]=b}),decorator:function(a,b){var c=q.get(a+"Provider"),d=c.$get;c.$get=function(){var a=z.invoke(d,c);return z.invoke(b,null,{$delegate:a})}}}},
|
||||||
|
q=n.$injector=k(n,function(a,b){$.isString(b)&&l.push(b);throw Ba("unpr",l.join(" <- "));}),G={},L=k(G,function(a,b){var c=q.get(a+"Provider",b);return z.invoke(c.$get,c,void 0,a)}),z=L;n.$injectorProvider={$get:ka(L)};z.modules=q.modules=T();var v=g(a),z=L.get("$injector");z.strictDi=b;p(v,function(a){a&&z.invoke(a)});z.loadNewModules=function(a){p(g(a),function(a){a&&z.invoke(a)})};return z}function pf(){var a=!0;this.disableAutoScrolling=function(){a=!1};this.$get=["$window","$location","$rootScope",
|
||||||
|
function(b,d,c){function e(a){var b=null;Array.prototype.some.call(a,function(a){if("a"===za(a))return b=a,!0});return b}function f(a){if(a){a.scrollIntoView();var c;c=g.yOffset;B(c)?c=c():Yb(c)?(c=c[0],c="fixed"!==b.getComputedStyle(c).position?0:c.getBoundingClientRect().bottom):Y(c)||(c=0);c&&(a=a.getBoundingClientRect().top,b.scrollBy(0,a-c))}else b.scrollTo(0,0)}function g(a){a=D(a)?a:Y(a)?a.toString():d.hash();var b;a?(b=k.getElementById(a))?f(b):(b=e(k.getElementsByName(a)))?f(b):"top"===a&&
|
||||||
|
f(null):f(null)}var k=b.document;a&&c.$watch(function(){return d.hash()},function(a,b){a===b&&""===a||hg(function(){c.$evalAsync(g)})});return g}]}function kb(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;I(a)&&(a=a.join(" "));I(b)&&(b=b.join(" "));return a+" "+b}function qg(a){D(a)&&(a=a.split(" "));var b=T();p(a,function(a){a.length&&(b[a]=!0)});return b}function Ka(a){return E(a)?a:{}}function rg(a,b,d,c){function e(a){try{a.apply(null,ya.call(arguments,1))}finally{if(L--,0===L)for(;z.length;)try{z.pop()()}catch(b){d.error(b)}}}
|
||||||
|
function f(){y=null;k()}function g(){v=J();v=w(v)?null:v;sa(v,K)&&(v=K);s=K=v}function k(){var a=s;g();if(Ta!==h.url()||a!==v)Ta=h.url(),s=v,p(H,function(a){a(h.url(),v)})}var h=this,l=a.location,m=a.history,n=a.setTimeout,q=a.clearTimeout,G={};h.isMock=!1;var L=0,z=[];h.$$completeOutstandingRequest=e;h.$$incOutstandingRequestCount=function(){L++};h.notifyWhenNoOutstandingRequests=function(a){0===L?a():z.push(a)};var v,s,Ta=l.href,ma=b.find("base"),y=null,J=c.history?function(){try{return m.state}catch(a){}}:
|
||||||
|
C;g();h.url=function(b,d,e){w(e)&&(e=null);l!==a.location&&(l=a.location);m!==a.history&&(m=a.history);if(b){var f=s===e;if(Ta===b&&(!c.history||f))return h;var k=Ta&&La(Ta)===La(b);Ta=b;s=e;!c.history||k&&f?(k||(y=b),d?l.replace(b):k?(d=l,e=b.indexOf("#"),e=-1===e?"":b.substr(e),d.hash=e):l.href=b,l.href!==b&&(y=b)):(m[d?"replaceState":"pushState"](e,"",b),g());y&&(y=b);return h}return y||l.href.replace(/%27/g,"'")};h.state=function(){return v};var H=[],ta=!1,K=null;h.onUrlChange=function(b){if(!ta){if(c.history)A(a).on("popstate",
|
||||||
|
f);A(a).on("hashchange",f);ta=!0}H.push(b);return b};h.$$applicationDestroyed=function(){A(a).off("hashchange popstate",f)};h.$$checkUrlChange=k;h.baseHref=function(){var a=ma.attr("href");return a?a.replace(/^(https?:)?\/\/[^/]*/,""):""};h.defer=function(a,b){var c;L++;c=n(function(){delete G[c];e(a)},b||0);G[c]=!0;return c};h.defer.cancel=function(a){return G[a]?(delete G[a],q(a),e(C),!0):!1}}function wf(){this.$get=["$window","$log","$sniffer","$document",function(a,b,d,c){return new rg(a,c,b,
|
||||||
|
d)}]}function xf(){this.$get=function(){function a(a,c){function e(a){a!==n&&(q?q===a&&(q=a.n):q=a,f(a.n,a.p),f(a,n),n=a,n.n=null)}function f(a,b){a!==b&&(a&&(a.p=b),b&&(b.n=a))}if(a in b)throw M("$cacheFactory")("iid",a);var g=0,k=Q({},c,{id:a}),h=T(),l=c&&c.capacity||Number.MAX_VALUE,m=T(),n=null,q=null;return b[a]={put:function(a,b){if(!w(b)){if(l<Number.MAX_VALUE){var c=m[a]||(m[a]={key:a});e(c)}a in h||g++;h[a]=b;g>l&&this.remove(q.key);return b}},get:function(a){if(l<Number.MAX_VALUE){var b=
|
||||||
|
m[a];if(!b)return;e(b)}return h[a]},remove:function(a){if(l<Number.MAX_VALUE){var b=m[a];if(!b)return;b===n&&(n=b.p);b===q&&(q=b.n);f(b.n,b.p);delete m[a]}a in h&&(delete h[a],g--)},removeAll:function(){h=T();g=0;m=T();n=q=null},destroy:function(){m=k=h=null;delete b[a]},info:function(){return Q({},k,{size:g})}}}var b={};a.info=function(){var a={};p(b,function(b,e){a[e]=b.info()});return a};a.get=function(a){return b[a]};return a}}function Uf(){this.$get=["$cacheFactory",function(a){return a("templates")}]}
|
||||||
|
function Yc(a,b){function d(a,b,c){var d=/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/,e=T();p(a,function(a,g){if(a in n)e[g]=n[a];else{var f=a.match(d);if(!f)throw ba("iscp",b,g,a,c?"controller bindings definition":"isolate scope definition");e[g]={mode:f[1][0],collection:"*"===f[2],optional:"?"===f[3],attrName:f[4]||g};f[4]&&(n[a]=e[g])}});return e}function c(a){var b=a.charAt(0);if(!b||b!==N(b))throw ba("baddir",a);if(a!==a.trim())throw ba("baddir",a);}function e(a){var b=a.require||a.controller&&a.name;
|
||||||
|
!I(b)&&E(b)&&p(b,function(a,c){var d=a.match(l);a.substring(d[0].length)||(b[c]=d[0]+c)});return b}var f={},g=/^\s*directive:\s*([\w-]+)\s+(.*)$/,k=/(([\w-]+)(?::([^;]+))?;?)/,h=te("ngSrc,ngSrcset,src,srcset"),l=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,m=/^(on[a-z]+|formaction)$/,n=T();this.directive=function ma(b,d){ib(b,"name");Ia(b,"directive");D(b)?(c(b),ib(d,"directiveFactory"),f.hasOwnProperty(b)||(f[b]=[],a.factory(b+"Directive",["$injector","$exceptionHandler",function(a,c){var d=[];p(f[b],function(g,
|
||||||
|
f){try{var h=a.invoke(g);B(h)?h={compile:ka(h)}:!h.compile&&h.link&&(h.compile=ka(h.link));h.priority=h.priority||0;h.index=f;h.name=h.name||b;h.require=e(h);var k=h,l=h.restrict;if(l&&(!D(l)||!/[EACM]/.test(l)))throw ba("badrestrict",l,b);k.restrict=l||"EA";h.$$moduleName=g.$$moduleName;d.push(h)}catch(m){c(m)}});return d}])),f[b].push(d)):p(b,Wb(ma));return this};this.component=function y(a,b){function c(a){function e(b){return B(b)||I(b)?function(c,d){return a.invoke(b,this,{$element:c,$attrs:d})}:
|
||||||
|
b}var g=b.template||b.templateUrl?b.template:"",f={controller:d,controllerAs:sg(b.controller)||b.controllerAs||"$ctrl",template:e(g),templateUrl:e(b.templateUrl),transclude:b.transclude,scope:{},bindToController:b.bindings||{},restrict:"E",require:b.require};p(b,function(a,b){"$"===b.charAt(0)&&(f[b]=a)});return f}if(!D(a))return p(a,Wb(Ra(this,y))),this;var d=b.controller||function(){};p(b,function(a,b){"$"===b.charAt(0)&&(c[b]=a,B(d)&&(d[b]=a))});c.$inject=["$injector"];return this.directive(a,
|
||||||
|
c)};this.aHrefSanitizationWhitelist=function(a){return t(a)?(b.aHrefSanitizationWhitelist(a),this):b.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(a){return t(a)?(b.imgSrcSanitizationWhitelist(a),this):b.imgSrcSanitizationWhitelist()};var q=!0;this.debugInfoEnabled=function(a){return t(a)?(q=a,this):q};var G=!1;this.preAssignBindingsEnabled=function(a){return t(a)?(G=a,this):G};var L=!1;this.strictComponentBindingsEnabled=function(a){return t(a)?(L=a,this):L};var z=10;this.onChangesTtl=
|
||||||
|
function(a){return arguments.length?(z=a,this):z};var v=!0;this.commentDirectivesEnabled=function(a){return arguments.length?(v=a,this):v};var s=!0;this.cssClassDirectivesEnabled=function(a){return arguments.length?(s=a,this):s};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(a,b,c,e,n,F,S,x,O,r){function P(){try{if(!--Fa)throw ga=void 0,ba("infchng",z);S.$apply(function(){for(var a=[],b=0,
|
||||||
|
c=ga.length;b<c;++b)try{ga[b]()}catch(d){a.push(d)}ga=void 0;if(a.length)throw a;})}finally{Fa++}}function oc(a,b){if(b){var c=Object.keys(b),d,e,g;d=0;for(e=c.length;d<e;d++)g=c[d],this[g]=b[g]}else this.$attr={};this.$$element=a}function Ua(a,b,c){Ba.innerHTML="<span "+b+">";b=Ba.firstChild.attributes;var d=b[0];b.removeNamedItem(d.name);d.value=c;a.attributes.setNamedItem(d)}function na(a,b){try{a.addClass(b)}catch(c){}}function ca(a,b,c,d,e){a instanceof A||(a=A(a));var g=Va(a,b,a,c,d,e);ca.$$addScopeClass(a);
|
||||||
|
var f=null;return function(b,c,d){if(!a)throw ba("multilink");ib(b,"scope");e&&e.needsNewScope&&(b=b.$parent.$new());d=d||{};var h=d.parentBoundTranscludeFn,k=d.transcludeControllers;d=d.futureParentElement;h&&h.$$boundTransclude&&(h=h.$$boundTransclude);f||(f=(d=d&&d[0])?"foreignobject"!==za(d)&&ha.call(d).match(/SVG/)?"svg":"html":"html");d="html"!==f?A(ja(f,A("<div>").append(a).html())):c?Sa.clone.call(a):a;if(k)for(var l in k)d.data("$"+l+"Controller",k[l].instance);ca.$$addScopeInfo(d,b);c&&
|
||||||
|
c(d,b);g&&g(b,d,d,h);c||(a=g=null);return d}}function Va(a,b,c,d,e,g){function f(a,c,d,e){var g,k,l,m,q,n,H;if(s)for(H=Array(c.length),m=0;m<h.length;m+=3)g=h[m],H[g]=c[g];else H=c;m=0;for(q=h.length;m<q;)k=H[h[m++]],c=h[m++],g=h[m++],c?(c.scope?(l=a.$new(),ca.$$addScopeInfo(A(k),l)):l=a,n=c.transcludeOnThisElement?Ma(a,c.transclude,e):!c.templateOnThisElement&&e?e:!e&&b?Ma(a,b):null,c(g,l,k,d,n)):g&&g(a,k.childNodes,void 0,e)}for(var h=[],k=I(a)||a instanceof A,l,m,q,n,s,H=0;H<a.length;H++){l=new oc;
|
||||||
|
11===Ca&&Da(a,H,k);m=M(a[H],[],l,0===H?d:void 0,e);(g=m.length?Y(m,a[H],l,b,c,null,[],[],g):null)&&g.scope&&ca.$$addScopeClass(l.$$element);l=g&&g.terminal||!(q=a[H].childNodes)||!q.length?null:Va(q,g?(g.transcludeOnThisElement||!g.templateOnThisElement)&&g.transclude:b);if(g||l)h.push(H,g,l),n=!0,s=s||g;g=null}return n?f:null}function Da(a,b,c){var d=a[b],e=d.parentNode,g;if(d.nodeType===Oa)for(;;){g=e?d.nextSibling:a[b+1];if(!g||g.nodeType!==Oa)break;d.nodeValue+=g.nodeValue;g.parentNode&&g.parentNode.removeChild(g);
|
||||||
|
c&&g===a[b+1]&&a.splice(b+1,1)}}function Ma(a,b,c){function d(e,g,f,h,k){e||(e=a.$new(!1,k),e.$$transcluded=!0);return b(e,g,{parentBoundTranscludeFn:c,transcludeControllers:f,futureParentElement:h})}var e=d.$$slots=T(),g;for(g in b.$$slots)e[g]=b.$$slots[g]?Ma(a,b.$$slots[g],c):null;return d}function M(a,b,c,d,e){var g=c.$attr,f;switch(a.nodeType){case 1:f=za(a);U(b,Ea(f),"E",d,e);for(var h,l,m,q,n=a.attributes,s=0,H=n&&n.length;s<H;s++){var J=!1,G=!1;h=n[s];l=h.name;m=h.value;h=Ea(l);(q=Pa.test(h))&&
|
||||||
|
(l=l.replace(od,"").substr(8).replace(/_(.)/g,function(a,b){return b.toUpperCase()}));(h=h.match(Qa))&&$(h[1])&&(J=l,G=l.substr(0,l.length-5)+"end",l=l.substr(0,l.length-6));h=Ea(l.toLowerCase());g[h]=l;if(q||!c.hasOwnProperty(h))c[h]=m,kd(a,h)&&(c[h]=!0);xa(a,b,m,h,q);U(b,h,"A",d,e,J,G)}"input"===f&&"hidden"===a.getAttribute("type")&&a.setAttribute("autocomplete","off");if(!La)break;g=a.className;E(g)&&(g=g.animVal);if(D(g)&&""!==g)for(;a=k.exec(g);)h=Ea(a[2]),U(b,h,"C",d,e)&&(c[h]=R(a[3])),g=g.substr(a.index+
|
||||||
|
a[0].length);break;case Oa:oa(b,a.nodeValue);break;case 8:if(!Ka)break;pc(a,b,c,d,e)}b.sort(ka);return b}function pc(a,b,c,d,e){try{var f=g.exec(a.nodeValue);if(f){var h=Ea(f[1]);U(b,h,"M",d,e)&&(c[h]=R(f[2]))}}catch(k){}}function pd(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw ba("uterdir",b,c);1===a.nodeType&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<e)}else d.push(a);return A(d)}function V(a,b,c){return function(d,e,g,f,h){e=
|
||||||
|
pd(e[0],b,c);return a(d,e,g,f,h)}}function W(a,b,c,d,e,g){var f;return a?ca(b,c,d,e,g):function(){f||(f=ca(b,c,d,e,g),b=c=g=null);return f.apply(this,arguments)}}function Y(a,b,d,e,g,f,h,k,l){function m(a,b,c,d){if(a){c&&(a=V(a,c,d));a.require=x.require;a.directiveName=z;if(K===x||x.$$isolateScope)a=ua(a,{isolateScope:!0});h.push(a)}if(b){c&&(b=V(b,c,d));b.require=x.require;b.directiveName=z;if(K===x||x.$$isolateScope)b=ua(b,{isolateScope:!0});k.push(b)}}function q(a,e,g,f,l){function m(a,b,c,d){var e;
|
||||||
|
cb(a)||(d=c,c=b,b=a,a=void 0);ta&&(e=L);c||(c=ta?fa.parent():fa);if(d){var g=l.$$slots[d];if(g)return g(a,b,e,c,P);if(w(g))throw ba("noslot",d,Aa(fa));}else return l(a,b,e,c,P)}var n,x,F,y,S,L,O,fa;b===g?(f=d,fa=d.$$element):(fa=A(g),f=new oc(fa,d));S=e;K?y=e.$new(!0):s&&(S=e.$parent);l&&(O=m,O.$$boundTransclude=l,O.isSlotFilled=function(a){return!!l.$$slots[a]});J&&(L=da(fa,f,O,J,y,e,K));K&&(ca.$$addScopeInfo(fa,y,!0,!(v&&(v===K||v===K.$$originalDirective))),ca.$$addScopeClass(fa,!0),y.$$isolateBindings=
|
||||||
|
K.$$isolateBindings,x=qa(e,f,y,y.$$isolateBindings,K),x.removeWatches&&y.$on("$destroy",x.removeWatches));for(n in L){x=J[n];F=L[n];var z=x.$$bindings.bindToController;if(G){F.bindingInfo=z?qa(S,f,F.instance,z,x):{};var r=F();r!==F.instance&&(F.instance=r,fa.data("$"+x.name+"Controller",r),F.bindingInfo.removeWatches&&F.bindingInfo.removeWatches(),F.bindingInfo=qa(S,f,F.instance,z,x))}else F.instance=F(),fa.data("$"+x.name+"Controller",F.instance),F.bindingInfo=qa(S,f,F.instance,z,x)}p(J,function(a,
|
||||||
|
b){var c=a.require;a.bindToController&&!I(c)&&E(c)&&Q(L[b].instance,X(b,c,fa,L))});p(L,function(a){var b=a.instance;if(B(b.$onChanges))try{b.$onChanges(a.bindingInfo.initialChanges)}catch(d){c(d)}if(B(b.$onInit))try{b.$onInit()}catch(e){c(e)}B(b.$doCheck)&&(S.$watch(function(){b.$doCheck()}),b.$doCheck());B(b.$onDestroy)&&S.$on("$destroy",function(){b.$onDestroy()})});n=0;for(x=h.length;n<x;n++)F=h[n],wa(F,F.isolateScope?y:e,fa,f,F.require&&X(F.directiveName,F.require,fa,L),O);var P=e;K&&(K.template||
|
||||||
|
null===K.templateUrl)&&(P=y);a&&a(P,g.childNodes,void 0,l);for(n=k.length-1;0<=n;n--)F=k[n],wa(F,F.isolateScope?y:e,fa,f,F.require&&X(F.directiveName,F.require,fa,L),O);p(L,function(a){a=a.instance;B(a.$postLink)&&a.$postLink()})}l=l||{};for(var n=-Number.MAX_VALUE,s=l.newScopeDirective,J=l.controllerDirectives,K=l.newIsolateScopeDirective,v=l.templateDirective,y=l.nonTlbTranscludeDirective,S=!1,L=!1,ta=l.hasElementTranscludeDirective,F=d.$$element=A(b),x,z,O,r=e,P,t=!1,Jb=!1,u,Da=0,C=a.length;Da<
|
||||||
|
C;Da++){x=a[Da];var Ua=x.$$start,D=x.$$end;Ua&&(F=pd(b,Ua,D));O=void 0;if(n>x.priority)break;if(u=x.scope)x.templateUrl||(E(u)?(aa("new/isolated scope",K||s,x,F),K=x):aa("new/isolated scope",K,x,F)),s=s||x;z=x.name;if(!t&&(x.replace&&(x.templateUrl||x.template)||x.transclude&&!x.$$tlb)){for(u=Da+1;t=a[u++];)if(t.transclude&&!t.$$tlb||t.replace&&(t.templateUrl||t.template)){Jb=!0;break}t=!0}!x.templateUrl&&x.controller&&(J=J||T(),aa("'"+z+"' controller",J[z],x,F),J[z]=x);if(u=x.transclude)if(S=!0,
|
||||||
|
x.$$tlb||(aa("transclusion",y,x,F),y=x),"element"===u)ta=!0,n=x.priority,O=F,F=d.$$element=A(ca.$$createComment(z,d[z])),b=F[0],la(g,ya.call(O,0),b),O[0].$$parentNode=O[0].parentNode,r=W(Jb,O,e,n,f&&f.name,{nonTlbTranscludeDirective:y});else{var na=T();if(E(u)){O=[];var Va=T(),Ma=T();p(u,function(a,b){var c="?"===a.charAt(0);a=c?a.substring(1):a;Va[a]=b;na[b]=null;Ma[b]=c});p(F.contents(),function(a){var b=Va[Ea(za(a))];b?(Ma[b]=!0,na[b]=na[b]||[],na[b].push(a)):O.push(a)});p(Ma,function(a,b){if(!a)throw ba("reqslot",
|
||||||
|
b);});for(var N in na)na[N]&&(na[N]=W(Jb,na[N],e))}else O=A(lc(b)).contents();F.empty();r=W(Jb,O,e,void 0,void 0,{needsNewScope:x.$$isolateScope||x.$$newScope});r.$$slots=na}if(x.template)if(L=!0,aa("template",v,x,F),v=x,u=B(x.template)?x.template(F,d):x.template,u=Ia(u),x.replace){f=x;O=ic.test(u)?qd(ja(x.templateNamespace,R(u))):[];b=O[0];if(1!==O.length||1!==b.nodeType)throw ba("tplrt",z,"");la(g,F,b);C={$attr:{}};u=M(b,[],C);var pc=a.splice(Da+1,a.length-(Da+1));(K||s)&&Z(u,K,s);a=a.concat(u).concat(pc);
|
||||||
|
ea(d,C);C=a.length}else F.html(u);if(x.templateUrl)L=!0,aa("template",v,x,F),v=x,x.replace&&(f=x),q=ia(a.splice(Da,a.length-Da),F,d,g,S&&r,h,k,{controllerDirectives:J,newScopeDirective:s!==x&&s,newIsolateScopeDirective:K,templateDirective:v,nonTlbTranscludeDirective:y}),C=a.length;else if(x.compile)try{P=x.compile(F,d,r);var U=x.$$originalDirective||x;B(P)?m(null,Ra(U,P),Ua,D):P&&m(Ra(U,P.pre),Ra(U,P.post),Ua,D)}catch($){c($,Aa(F))}x.terminal&&(q.terminal=!0,n=Math.max(n,x.priority))}q.scope=s&&!0===
|
||||||
|
s.scope;q.transcludeOnThisElement=S;q.templateOnThisElement=L;q.transclude=r;l.hasElementTranscludeDirective=ta;return q}function X(a,b,c,d){var e;if(D(b)){var g=b.match(l);b=b.substring(g[0].length);var f=g[1]||g[3],g="?"===g[2];"^^"===f?c=c.parent():e=(e=d&&d[b])&&e.instance;if(!e){var h="$"+b+"Controller";e=f?c.inheritedData(h):c.data(h)}if(!e&&!g)throw ba("ctreq",b,a);}else if(I(b))for(e=[],f=0,g=b.length;f<g;f++)e[f]=X(a,b[f],c,d);else E(b)&&(e={},p(b,function(b,g){e[g]=X(a,b,c,d)}));return e||
|
||||||
|
null}function da(a,b,c,d,e,g,f){var h=T(),k;for(k in d){var l=d[k],m={$scope:l===f||l.$$isolateScope?e:g,$element:a,$attrs:b,$transclude:c},n=l.controller;"@"===n&&(n=b[l.name]);m=F(n,m,!0,l.controllerAs);h[l.name]=m;a.data("$"+l.name+"Controller",m.instance)}return h}function Z(a,b,c){for(var d=0,e=a.length;d<e;d++)a[d]=Zb(a[d],{$$isolateScope:b,$$newScope:c})}function U(b,c,e,g,h,k,l){if(c===h)return null;var m=null;if(f.hasOwnProperty(c)){h=a.get(c+"Directive");for(var n=0,q=h.length;n<q;n++)if(c=
|
||||||
|
h[n],(w(g)||g>c.priority)&&-1!==c.restrict.indexOf(e)){k&&(c=Zb(c,{$$start:k,$$end:l}));if(!c.$$bindings){var s=m=c,H=c.name,J={isolateScope:null,bindToController:null};E(s.scope)&&(!0===s.bindToController?(J.bindToController=d(s.scope,H,!0),J.isolateScope={}):J.isolateScope=d(s.scope,H,!1));E(s.bindToController)&&(J.bindToController=d(s.bindToController,H,!0));if(J.bindToController&&!s.controller)throw ba("noctrl",H);m=m.$$bindings=J;E(m.isolateScope)&&(c.$$isolateBindings=m.isolateScope)}b.push(c);
|
||||||
|
m=c}}return m}function $(b){if(f.hasOwnProperty(b))for(var c=a.get(b+"Directive"),d=0,e=c.length;d<e;d++)if(b=c[d],b.multiElement)return!0;return!1}function ea(a,b){var c=b.$attr,d=a.$attr;p(a,function(d,e){"$"!==e.charAt(0)&&(b[e]&&b[e]!==d&&(d=d.length?d+(("style"===e?";":" ")+b[e]):b[e]),a.$set(e,d,!0,c[e]))});p(b,function(b,e){a.hasOwnProperty(e)||"$"===e.charAt(0)||(a[e]=b,"class"!==e&&"style"!==e&&(d[e]=c[e]))})}function ia(a,b,d,g,f,h,k,l){var m=[],n,q,s=b[0],J=a.shift(),x=Zb(J,{templateUrl:null,
|
||||||
|
transclude:null,replace:null,$$originalDirective:J}),G=B(J.templateUrl)?J.templateUrl(b,d):J.templateUrl,F=J.templateNamespace;b.empty();e(G).then(function(c){var e,H;c=Ia(c);if(J.replace){c=ic.test(c)?qd(ja(F,R(c))):[];e=c[0];if(1!==c.length||1!==e.nodeType)throw ba("tplrt",J.name,G);c={$attr:{}};la(g,b,e);var K=M(e,[],c);E(J.scope)&&Z(K,!0);a=K.concat(a);ea(d,c)}else e=s,b.html(c);a.unshift(x);n=Y(a,e,d,f,b,J,h,k,l);p(g,function(a,c){a===e&&(g[c]=b[0])});for(q=Va(b[0].childNodes,f);m.length;){c=
|
||||||
|
m.shift();H=m.shift();var v=m.shift(),y=m.shift(),K=b[0];if(!c.$$destroyed){if(H!==s){var L=H.className;l.hasElementTranscludeDirective&&J.replace||(K=lc(e));la(v,A(H),K);na(A(K),L)}H=n.transcludeOnThisElement?Ma(c,n.transclude,y):y;n(q,c,K,g,H)}}m=null}).catch(function(a){ac(a)&&c(a)});return function(a,b,c,d,e){a=e;b.$$destroyed||(m?m.push(b,c,d,a):(n.transcludeOnThisElement&&(a=Ma(b,n.transclude,e)),n(q,b,c,d,a)))}}function ka(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<
|
||||||
|
b.name?-1:1:a.index-b.index}function aa(a,b,c,d){function e(a){return a?" (module: "+a+")":""}if(b)throw ba("multidir",b.name,e(b.$$moduleName),c.name,e(c.$$moduleName),a,Aa(d));}function oa(a,c){var d=b(c,!0);d&&a.push({priority:0,compile:function(a){a=a.parent();var b=!!a.length;b&&ca.$$addBindingClass(a);return function(a,c){var e=c.parent();b||ca.$$addBindingClass(e);ca.$$addBindingInfo(e,d.expressions);a.$watch(d,function(a){c[0].nodeValue=a})}}})}function ja(a,b){a=N(a||"html");switch(a){case "svg":case "math":var c=
|
||||||
|
u.document.createElement("div");c.innerHTML="<"+a+">"+b+"</"+a+">";return c.childNodes[0].childNodes;default:return b}}function va(a,b){if("srcdoc"===b)return x.HTML;var c=za(a);if("src"===b||"ngSrc"===b){if(-1===["img","video","audio","source","track"].indexOf(c))return x.RESOURCE_URL}else if("xlinkHref"===b||"form"===c&&"action"===b||"link"===c&&"href"===b)return x.RESOURCE_URL}function xa(a,c,d,e,g){var f=va(a,e),k=h[e]||g,l=b(d,!g,f,k);if(l){if("multiple"===e&&"select"===za(a))throw ba("selmulti",
|
||||||
|
Aa(a));if(m.test(e))throw ba("nodomevents");c.push({priority:100,compile:function(){return{pre:function(a,c,g){c=g.$$observers||(g.$$observers=T());var h=g[e];h!==d&&(l=h&&b(h,!0,f,k),d=h);l&&(g[e]=l(a),(c[e]||(c[e]=[])).$$inter=!0,(g.$$observers&&g.$$observers[e].$$scope||a).$watch(l,function(a,b){"class"===e&&a!==b?g.$updateClass(a,b):g.$set(e,a)}))}}}})}}function la(a,b,c){var d=b[0],e=b.length,g=d.parentNode,f,h;if(a)for(f=0,h=a.length;f<h;f++)if(a[f]===d){a[f++]=c;h=f+e-1;for(var k=a.length;f<
|
||||||
|
k;f++,h++)h<k?a[f]=a[h]:delete a[f];a.length-=e-1;a.context===d&&(a.context=c);break}g&&g.replaceChild(c,d);a=u.document.createDocumentFragment();for(f=0;f<e;f++)a.appendChild(b[f]);A.hasData(d)&&(A.data(c,A.data(d)),A(d).off("$destroy"));A.cleanData(a.querySelectorAll("*"));for(f=1;f<e;f++)delete b[f];b[0]=c;b.length=1}function ua(a,b){return Q(function(){return a.apply(null,arguments)},a,b)}function wa(a,b,d,e,g,f){try{a(b,d,e,g,f)}catch(h){c(h,Aa(d))}}function pa(a,b){if(L)throw ba("missingattr",
|
||||||
|
a,b);}function qa(a,c,d,e,g){function f(b,c,e){B(d.$onChanges)&&!bc(c,e)&&(ga||(a.$$postDigest(P),ga=[]),m||(m={},ga.push(h)),m[b]&&(e=m[b].previousValue),m[b]=new Kb(e,c))}function h(){d.$onChanges(m);m=void 0}var k=[],l={},m;p(e,function(e,h){var m=e.attrName,q=e.optional,s,H,x,G;switch(e.mode){case "@":q||ra.call(c,m)||(pa(m,g.name),d[h]=c[m]=void 0);q=c.$observe(m,function(a){if(D(a)||Na(a))f(h,a,d[h]),d[h]=a});c.$$observers[m].$$scope=a;s=c[m];D(s)?d[h]=b(s)(a):Na(s)&&(d[h]=s);l[h]=new Kb(qc,
|
||||||
|
d[h]);k.push(q);break;case "=":if(!ra.call(c,m)){if(q)break;pa(m,g.name);c[m]=void 0}if(q&&!c[m])break;H=n(c[m]);G=H.literal?sa:bc;x=H.assign||function(){s=d[h]=H(a);throw ba("nonassign",c[m],m,g.name);};s=d[h]=H(a);q=function(b){G(b,d[h])||(G(b,s)?x(a,b=d[h]):d[h]=b);return s=b};q.$stateful=!0;q=e.collection?a.$watchCollection(c[m],q):a.$watch(n(c[m],q),null,H.literal);k.push(q);break;case "<":if(!ra.call(c,m)){if(q)break;pa(m,g.name);c[m]=void 0}if(q&&!c[m])break;H=n(c[m]);var F=H.literal,v=d[h]=
|
||||||
|
H(a);l[h]=new Kb(qc,d[h]);q=a.$watch(H,function(a,b){if(b===a){if(b===v||F&&sa(b,v))return;b=v}f(h,a,b);d[h]=a},F);k.push(q);break;case "&":q||ra.call(c,m)||pa(m,g.name);H=c.hasOwnProperty(m)?n(c[m]):C;if(H===C&&q)break;d[h]=function(b){return H(a,b)}}});return{initialChanges:l,removeWatches:k.length&&function(){for(var a=0,b=k.length;a<b;++a)k[a]()}}}var Ja=/^\w/,Ba=u.document.createElement("div"),Ka=v,La=s,Fa=z,ga;oc.prototype={$normalize:Ea,$addClass:function(a){a&&0<a.length&&O.addClass(this.$$element,
|
||||||
|
a)},$removeClass:function(a){a&&0<a.length&&O.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=rd(a,b);c&&c.length&&O.addClass(this.$$element,c);(c=rd(b,a))&&c.length&&O.removeClass(this.$$element,c)},$set:function(a,b,d,e){var g=kd(this.$$element[0],a),f=sd[a],h=a;g?(this.$$element.prop(a,b),e=g):f&&(this[f]=b,h=f);this[a]=b;e?this.$attr[a]=e:(e=this.$attr[a])||(this.$attr[a]=e=Vc(a,"-"));g=za(this.$$element);if("a"===g&&("href"===a||"xlinkHref"===a)||"img"===g&&"src"===a)this[a]=
|
||||||
|
b=r(b,"src"===a);else if("img"===g&&"srcset"===a&&t(b)){for(var g="",f=R(b),k=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,k=/\s/.test(f)?k:/(,)/,f=f.split(k),k=Math.floor(f.length/2),l=0;l<k;l++)var m=2*l,g=g+r(R(f[m]),!0),g=g+(" "+R(f[m+1]));f=R(f[2*l]).split(/\s/);g+=r(R(f[0]),!0);2===f.length&&(g+=" "+R(f[1]));this[a]=b=g}!1!==d&&(null===b||w(b)?this.$$element.removeAttr(e):Ja.test(e)?this.$$element.attr(e,b):Ua(this.$$element[0],e,b));(a=this.$$observers)&&p(a[h],function(a){try{a(b)}catch(d){c(d)}})},
|
||||||
|
$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers=T()),e=d[a]||(d[a]=[]);e.push(b);S.$evalAsync(function(){e.$$inter||!c.hasOwnProperty(a)||w(c[a])||b(c[a])});return function(){db(e,b)}}};var Ga=b.startSymbol(),Ha=b.endSymbol(),Ia="{{"===Ga&&"}}"===Ha?bb:function(a){return a.replace(/\{\{/g,Ga).replace(/}}/g,Ha)},Pa=/^ngAttr[A-Z]/,Qa=/^(.+)Start$/;ca.$$addBindingInfo=q?function(a,b){var c=a.data("$binding")||[];I(b)?c=c.concat(b):c.push(b);a.data("$binding",c)}:C;ca.$$addBindingClass=
|
||||||
|
q?function(a){na(a,"ng-binding")}:C;ca.$$addScopeInfo=q?function(a,b,c,d){a.data(c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope",b)}:C;ca.$$addScopeClass=q?function(a,b){na(a,b?"ng-isolate-scope":"ng-scope")}:C;ca.$$createComment=function(a,b){var c="";q&&(c=" "+(a||"")+": ",b&&(c+=b+" "));return u.document.createComment(c)};return ca}]}function Kb(a,b){this.previousValue=a;this.currentValue=b}function Ea(a){return a.replace(od,"").replace(tg,function(a,d,c){return c?d.toUpperCase():d})}function rd(a,
|
||||||
|
b){var d="",c=a.split(/\s+/),e=b.split(/\s+/),f=0;a:for(;f<c.length;f++){for(var g=c[f],k=0;k<e.length;k++)if(g===e[k])continue a;d+=(0<d.length?" ":"")+g}return d}function qd(a){a=A(a);var b=a.length;if(1>=b)return a;for(;b--;){var d=a[b];(8===d.nodeType||d.nodeType===Oa&&""===d.nodeValue.trim())&&ug.call(a,b,1)}return a}function sg(a,b){if(b&&D(b))return b;if(D(a)){var d=td.exec(a);if(d)return d[3]}}function yf(){var a={},b=!1;this.has=function(b){return a.hasOwnProperty(b)};this.register=function(b,
|
||||||
|
c){Ia(b,"controller");E(b)?Q(a,b):a[b]=c};this.allowGlobals=function(){b=!0};this.$get=["$injector","$window",function(d,c){function e(a,b,c,d){if(!a||!E(a.$scope))throw M("$controller")("noscp",d,b);a.$scope[b]=c}return function(f,g,k,h){var l,m,n;k=!0===k;h&&D(h)&&(n=h);if(D(f)){h=f.match(td);if(!h)throw ud("ctrlfmt",f);m=h[1];n=n||h[3];f=a.hasOwnProperty(m)?a[m]:Xc(g.$scope,m,!0)||(b?Xc(c,m,!0):void 0);if(!f)throw ud("ctrlreg",m);tb(f,m,!0)}if(k)return k=(I(f)?f[f.length-1]:f).prototype,l=Object.create(k||
|
||||||
|
null),n&&e(g,n,l,m||f.name),Q(function(){var a=d.invoke(f,l,g,m);a!==l&&(E(a)||B(a))&&(l=a,n&&e(g,n,l,m||f.name));return l},{instance:l,identifier:n});l=d.instantiate(f,g,m);n&&e(g,n,l,m||f.name);return l}}]}function zf(){this.$get=["$window",function(a){return A(a.document)}]}function Af(){this.$get=["$document","$rootScope",function(a,b){function d(){e=c.hidden}var c=a[0],e=c&&c.hidden;a.on("visibilitychange",d);b.$on("$destroy",function(){a.off("visibilitychange",d)});return function(){return e}}]}
|
||||||
|
function Bf(){this.$get=["$log",function(a){return function(b,d){a.error.apply(a,arguments)}}]}function rc(a){return E(a)?ea(a)?a.toISOString():fb(a):a}function Gf(){this.$get=function(){return function(a){if(!a)return"";var b=[];Oc(a,function(a,c){null===a||w(a)||B(a)||(I(a)?p(a,function(a){b.push(ia(c)+"="+ia(rc(a)))}):b.push(ia(c)+"="+ia(rc(a))))});return b.join("&")}}}function Hf(){this.$get=function(){return function(a){function b(a,e,f){null===a||w(a)||(I(a)?p(a,function(a,c){b(a,e+"["+(E(a)?
|
||||||
|
c:"")+"]")}):E(a)&&!ea(a)?Oc(a,function(a,c){b(a,e+(f?"":"[")+c+(f?"":"]"))}):d.push(ia(e)+"="+ia(rc(a))))}if(!a)return"";var d=[];b(a,"",!0);return d.join("&")}}}function sc(a,b){if(D(a)){var d=a.replace(vg,"").trim();if(d){var c=b("Content-Type"),c=c&&0===c.indexOf(vd),e;(e=c)||(e=(e=d.match(wg))&&xg[e[0]].test(d));if(e)try{a=Rc(d)}catch(f){if(!c)return a;throw Lb("baddata",a,f);}}}return a}function wd(a){var b=T(),d;D(a)?p(a.split("\n"),function(a){d=a.indexOf(":");var e=N(R(a.substr(0,d)));a=
|
||||||
|
R(a.substr(d+1));e&&(b[e]=b[e]?b[e]+", "+a:a)}):E(a)&&p(a,function(a,d){var f=N(d),g=R(a);f&&(b[f]=b[f]?b[f]+", "+g:g)});return b}function xd(a){var b;return function(d){b||(b=wd(a));return d?(d=b[N(d)],void 0===d&&(d=null),d):b}}function yd(a,b,d,c){if(B(c))return c(a,b,d);p(c,function(c){a=c(a,b,d)});return a}function Ff(){var a=this.defaults={transformResponse:[sc],transformRequest:[function(a){return E(a)&&"[object File]"!==ha.call(a)&&"[object Blob]"!==ha.call(a)&&"[object FormData]"!==ha.call(a)?
|
||||||
|
fb(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ja(tc),put:ja(tc),patch:ja(tc)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},b=!1;this.useApplyAsync=function(a){return t(a)?(b=!!a,this):b};var d=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(c,e,f,g,k,h,l,m){function n(b){function d(a,b){for(var c=0,
|
||||||
|
e=b.length;c<e;){var g=b[c++],f=b[c++];a=a.then(g,f)}b.length=0;return a}function e(a,b){var c,d={};p(a,function(a,e){B(a)?(c=a(b),null!=c&&(d[e]=c)):d[e]=a});return d}function g(a){var b=Q({},a);b.data=yd(a.data,a.headers,a.status,f.transformResponse);a=a.status;return 200<=a&&300>a?b:h.reject(b)}if(!E(b))throw M("$http")("badreq",b);if(!D(m.valueOf(b.url)))throw M("$http")("badreq",b.url);var f=Q({method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse,paramSerializer:a.paramSerializer,
|
||||||
|
jsonpCallbackParam:a.jsonpCallbackParam},b);f.headers=function(b){var c=a.headers,d=Q({},b.headers),g,f,h,c=Q({},c.common,c[N(b.method)]);a:for(g in c){f=N(g);for(h in d)if(N(h)===f)continue a;d[g]=c[g]}return e(d,ja(b))}(b);f.method=vb(f.method);f.paramSerializer=D(f.paramSerializer)?l.get(f.paramSerializer):f.paramSerializer;c.$$incOutstandingRequestCount();var k=[],n=[];b=h.resolve(f);p(v,function(a){(a.request||a.requestError)&&k.unshift(a.request,a.requestError);(a.response||a.responseError)&&
|
||||||
|
n.push(a.response,a.responseError)});b=d(b,k);b=b.then(function(b){var c=b.headers,d=yd(b.data,xd(c),void 0,b.transformRequest);w(d)&&p(c,function(a,b){"content-type"===N(b)&&delete c[b]});w(b.withCredentials)&&!w(a.withCredentials)&&(b.withCredentials=a.withCredentials);return q(b,d).then(g,g)});b=d(b,n);return b=b.finally(function(){c.$$completeOutstandingRequest(C)})}function q(c,d){function g(a){if(a){var c={};p(a,function(a,d){c[d]=function(c){function d(){a(c)}b?k.$applyAsync(d):k.$$phase?d():
|
||||||
|
k.$apply(d)}});return c}}function l(a,c,d,e,g){function f(){q(c,a,d,e,g)}S&&(200<=a&&300>a?S.put(P,[a,c,wd(d),e,g]):S.remove(P));b?k.$applyAsync(f):(f(),k.$$phase||k.$apply())}function q(a,b,d,e,g){b=-1<=b?b:0;(200<=b&&300>b?K.resolve:K.reject)({data:a,status:b,headers:xd(d),config:c,statusText:e,xhrStatus:g})}function H(a){q(a.data,a.status,ja(a.headers()),a.statusText,a.xhrStatus)}function v(){var a=n.pendingRequests.indexOf(c);-1!==a&&n.pendingRequests.splice(a,1)}var K=h.defer(),F=K.promise,S,
|
||||||
|
x,O=c.headers,r="jsonp"===N(c.method),P=c.url;r?P=m.getTrustedResourceUrl(P):D(P)||(P=m.valueOf(P));P=G(P,c.paramSerializer(c.params));r&&(P=L(P,c.jsonpCallbackParam));n.pendingRequests.push(c);F.then(v,v);!c.cache&&!a.cache||!1===c.cache||"GET"!==c.method&&"JSONP"!==c.method||(S=E(c.cache)?c.cache:E(a.cache)?a.cache:z);S&&(x=S.get(P),t(x)?x&&B(x.then)?x.then(H,H):I(x)?q(x[1],x[0],ja(x[2]),x[3],x[4]):q(x,200,{},"OK","complete"):S.put(P,F));w(x)&&((x=zd(c.url)?f()[c.xsrfCookieName||a.xsrfCookieName]:
|
||||||
|
void 0)&&(O[c.xsrfHeaderName||a.xsrfHeaderName]=x),e(c.method,P,d,l,O,c.timeout,c.withCredentials,c.responseType,g(c.eventHandlers),g(c.uploadEventHandlers)));return F}function G(a,b){0<b.length&&(a+=(-1===a.indexOf("?")?"?":"&")+b);return a}function L(a,b){var c=a.split("?");if(2<c.length)throw Lb("badjsonp",a);c=dc(c[1]);p(c,function(c,d){if("JSON_CALLBACK"===c)throw Lb("badjsonp",a);if(d===b)throw Lb("badjsonp",b,a);});return a+=(-1===a.indexOf("?")?"?":"&")+b+"=JSON_CALLBACK"}var z=g("$http");
|
||||||
|
a.paramSerializer=D(a.paramSerializer)?l.get(a.paramSerializer):a.paramSerializer;var v=[];p(d,function(a){v.unshift(D(a)?l.get(a):l.invoke(a))});n.pendingRequests=[];(function(a){p(arguments,function(a){n[a]=function(b,c){return n(Q({},c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){p(arguments,function(a){n[a]=function(b,c,d){return n(Q({},d||{},{method:a,url:b,data:c}))}})})("post","put","patch");n.defaults=a;return n}]}function Jf(){this.$get=function(){return function(){return new u.XMLHttpRequest}}}
|
||||||
|
function If(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(a,b,d,c){return yg(a,c,a.defer,b,d[0])}]}function yg(a,b,d,c,e){function f(a,b,d){a=a.replace("JSON_CALLBACK",b);var f=e.createElement("script"),m=null;f.type="text/javascript";f.src=a;f.async=!0;m=function(a){f.removeEventListener("load",m);f.removeEventListener("error",m);e.body.removeChild(f);f=null;var g=-1,G="unknown";a&&("load"!==a.type||c.wasCalled(b)||(a={type:"error"}),G=a.type,g="error"===a.type?404:
|
||||||
|
200);d&&d(g,G)};f.addEventListener("load",m);f.addEventListener("error",m);e.body.appendChild(f);return m}return function(e,k,h,l,m,n,q,G,L,z){function v(){ma&&ma();y&&y.abort()}function s(a,b,c,e,g,f){t(H)&&d.cancel(H);ma=y=null;a(b,c,e,g,f)}k=k||a.url();if("jsonp"===N(e))var r=c.createCallback(k),ma=f(k,r,function(a,b){var d=200===a&&c.getResponse(r);s(l,a,d,"",b,"complete");c.removeCallback(r)});else{var y=b(e,k);y.open(e,k,!0);p(m,function(a,b){t(a)&&y.setRequestHeader(b,a)});y.onload=function(){var a=
|
||||||
|
y.statusText||"",b="response"in y?y.response:y.responseText,c=1223===y.status?204:y.status;0===c&&(c=b?200:"file"===ua(k).protocol?404:0);s(l,c,b,y.getAllResponseHeaders(),a,"complete")};y.onerror=function(){s(l,-1,null,null,"","error")};y.onabort=function(){s(l,-1,null,null,"","abort")};y.ontimeout=function(){s(l,-1,null,null,"","timeout")};p(L,function(a,b){y.addEventListener(b,a)});p(z,function(a,b){y.upload.addEventListener(b,a)});q&&(y.withCredentials=!0);if(G)try{y.responseType=G}catch(J){if("json"!==
|
||||||
|
G)throw J;}y.send(w(h)?null:h)}if(0<n)var H=d(v,n);else n&&B(n.then)&&n.then(v)}}function Df(){var a="{{",b="}}";this.startSymbol=function(b){return b?(a=b,this):a};this.endSymbol=function(a){return a?(b=a,this):b};this.$get=["$parse","$exceptionHandler","$sce",function(d,c,e){function f(a){return"\\\\\\"+a}function g(c){return c.replace(n,a).replace(q,b)}function k(a,b,c,d){var e=a.$watch(function(a){e();return d(a)},b,c);return e}function h(f,h,q,n){function s(a){try{var b=a;a=q?e.getTrusted(q,
|
||||||
|
b):e.valueOf(b);return n&&!t(a)?a:fc(a)}catch(d){c(Fa.interr(f,d))}}if(!f.length||-1===f.indexOf(a)){var p;h||(h=g(f),p=ka(h),p.exp=f,p.expressions=[],p.$$watchDelegate=k);return p}n=!!n;var r,y,J=0,H=[],ta=[];p=f.length;for(var K=[],F=[];J<p;)if(-1!==(r=f.indexOf(a,J))&&-1!==(y=f.indexOf(b,r+l)))J!==r&&K.push(g(f.substring(J,r))),J=f.substring(r+l,y),H.push(J),ta.push(d(J,s)),J=y+m,F.push(K.length),K.push("");else{J!==p&&K.push(g(f.substring(J)));break}q&&1<K.length&&Fa.throwNoconcat(f);if(!h||H.length){var S=
|
||||||
|
function(a){for(var b=0,c=H.length;b<c;b++){if(n&&w(a[b]))return;K[F[b]]=a[b]}return K.join("")};return Q(function(a){var b=0,d=H.length,e=Array(d);try{for(;b<d;b++)e[b]=ta[b](a);return S(e)}catch(g){c(Fa.interr(f,g))}},{exp:f,expressions:H,$$watchDelegate:function(a,b){var c;return a.$watchGroup(ta,function(d,e){var g=S(d);B(b)&&b.call(this,g,d!==e?c:g,a);c=g})}})}}var l=a.length,m=b.length,n=new RegExp(a.replace(/./g,f),"g"),q=new RegExp(b.replace(/./g,f),"g");h.startSymbol=function(){return a};
|
||||||
|
h.endSymbol=function(){return b};return h}]}function Ef(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(a,b,d,c,e){function f(f,h,l,m){function n(){q?f.apply(null,G):f(v)}var q=4<arguments.length,G=q?ya.call(arguments,4):[],p=b.setInterval,z=b.clearInterval,v=0,s=t(m)&&!m,r=(s?c:d).defer(),ma=r.promise;l=t(l)?l:0;ma.$$intervalId=p(function(){s?e.defer(n):a.$evalAsync(n);r.notify(v++);0<l&&v>=l&&(r.resolve(v),z(ma.$$intervalId),delete g[ma.$$intervalId]);s||a.$apply()},h);g[ma.$$intervalId]=
|
||||||
|
r;return ma}var g={};f.cancel=function(a){return a&&a.$$intervalId in g?(g[a.$$intervalId].promise.$$state.pur=!0,g[a.$$intervalId].reject("canceled"),b.clearInterval(a.$$intervalId),delete g[a.$$intervalId],!0):!1};return f}]}function uc(a){a=a.split("/");for(var b=a.length;b--;)a[b]=gb(a[b].replace(/%2F/g,"/"));return a.join("/")}function Ad(a,b){var d=ua(a);b.$$protocol=d.protocol;b.$$host=d.hostname;b.$$port=Z(d.port)||zg[d.protocol]||null}function Bd(a,b,d){if(Ag.test(a))throw lb("badpath",a);
|
||||||
|
var c="/"!==a.charAt(0);c&&(a="/"+a);a=ua(a);for(var c=(c&&"/"===a.pathname.charAt(0)?a.pathname.substring(1):a.pathname).split("/"),e=c.length;e--;)c[e]=decodeURIComponent(c[e]),d&&(c[e]=c[e].replace(/\//g,"%2F"));d=c.join("/");b.$$path=d;b.$$search=dc(a.search);b.$$hash=decodeURIComponent(a.hash);b.$$path&&"/"!==b.$$path.charAt(0)&&(b.$$path="/"+b.$$path)}function vc(a,b){return a.slice(0,b.length)===b}function va(a,b){if(vc(b,a))return b.substr(a.length)}function La(a){var b=a.indexOf("#");return-1===
|
||||||
|
b?a:a.substr(0,b)}function mb(a){return a.replace(/(#.+)|#$/,"$1")}function wc(a,b,d){this.$$html5=!0;d=d||"";Ad(a,this);this.$$parse=function(a){var d=va(b,a);if(!D(d))throw lb("ipthprfx",a,b);Bd(d,this,!0);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var a=ec(this.$$search),d=this.$$hash?"#"+gb(this.$$hash):"";this.$$url=uc(this.$$path)+(a?"?"+a:"")+d;this.$$absUrl=b+this.$$url.substr(1);this.$$urlUpdatedByLocation=!0};this.$$parseLinkUrl=function(c,e){if(e&&"#"===
|
||||||
|
e[0])return this.hash(e.slice(1)),!0;var f,g;t(f=va(a,c))?(g=f,g=d&&t(f=va(d,f))?b+(va("/",f)||f):a+g):t(f=va(b,c))?g=b+f:b===c+"/"&&(g=b);g&&this.$$parse(g);return!!g}}function xc(a,b,d){Ad(a,this);this.$$parse=function(c){var e=va(a,c)||va(b,c),f;w(e)||"#"!==e.charAt(0)?this.$$html5?f=e:(f="",w(e)&&(a=c,this.replace())):(f=va(d,e),w(f)&&(f=e));Bd(f,this,!1);c=this.$$path;var e=a,g=/^\/[A-Z]:(\/.*)/;vc(f,e)&&(f=f.replace(e,""));g.exec(f)||(c=(f=g.exec(c))?f[1]:c);this.$$path=c;this.$$compose()};
|
||||||
|
this.$$compose=function(){var b=ec(this.$$search),e=this.$$hash?"#"+gb(this.$$hash):"";this.$$url=uc(this.$$path)+(b?"?"+b:"")+e;this.$$absUrl=a+(this.$$url?d+this.$$url:"");this.$$urlUpdatedByLocation=!0};this.$$parseLinkUrl=function(b,d){return La(a)===La(b)?(this.$$parse(b),!0):!1}}function Cd(a,b,d){this.$$html5=!0;xc.apply(this,arguments);this.$$parseLinkUrl=function(c,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;a===La(c)?f=c:(g=va(b,c))?f=a+d+g:b===c+"/"&&(f=b);f&&this.$$parse(f);
|
||||||
|
return!!f};this.$$compose=function(){var b=ec(this.$$search),e=this.$$hash?"#"+gb(this.$$hash):"";this.$$url=uc(this.$$path)+(b?"?"+b:"")+e;this.$$absUrl=a+d+this.$$url;this.$$urlUpdatedByLocation=!0}}function Mb(a){return function(){return this[a]}}function Dd(a,b){return function(d){if(w(d))return this[a];this[a]=b(d);this.$$compose();return this}}function Lf(){var a="!",b={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(b){return t(b)?(a=b,this):a};this.html5Mode=function(a){if(Na(a))return b.enabled=
|
||||||
|
a,this;if(E(a)){Na(a.enabled)&&(b.enabled=a.enabled);Na(a.requireBase)&&(b.requireBase=a.requireBase);if(Na(a.rewriteLinks)||D(a.rewriteLinks))b.rewriteLinks=a.rewriteLinks;return this}return b};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(d,c,e,f,g){function k(a,b,d){var e=l.url(),g=l.$$state;try{c.url(a,b,d),l.$$state=c.state()}catch(f){throw l.url(e),l.$$state=g,f;}}function h(a,b){d.$broadcast("$locationChangeSuccess",l.absUrl(),a,l.$$state,b)}var l,m;m=c.baseHref();
|
||||||
|
var n=c.url(),q;if(b.enabled){if(!m&&b.requireBase)throw lb("nobase");q=n.substring(0,n.indexOf("/",n.indexOf("//")+2))+(m||"/");m=e.history?wc:Cd}else q=La(n),m=xc;var G=q.substr(0,La(q).lastIndexOf("/")+1);l=new m(q,G,"#"+a);l.$$parseLinkUrl(n,n);l.$$state=c.state();var p=/^\s*(javascript|mailto):/i;f.on("click",function(a){var e=b.rewriteLinks;if(e&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&2!==a.which&&2!==a.button){for(var h=A(a.target);"a"!==za(h[0]);)if(h[0]===f[0]||!(h=h.parent())[0])return;if(!D(e)||
|
||||||
|
!w(h.attr(e))){var e=h.prop("href"),k=h.attr("href")||h.attr("xlink:href");E(e)&&"[object SVGAnimatedString]"===e.toString()&&(e=ua(e.animVal).href);p.test(e)||!e||h.attr("target")||a.isDefaultPrevented()||!l.$$parseLinkUrl(e,k)||(a.preventDefault(),l.absUrl()!==c.url()&&(d.$apply(),g.angular["ff-684208-preventDefault"]=!0))}}});mb(l.absUrl())!==mb(n)&&c.url(l.absUrl(),!0);var r=!0;c.onUrlChange(function(a,b){vc(a,G)?(d.$evalAsync(function(){var c=l.absUrl(),e=l.$$state,g;a=mb(a);l.$$parse(a);l.$$state=
|
||||||
|
b;g=d.$broadcast("$locationChangeStart",a,c,b,e).defaultPrevented;l.absUrl()===a&&(g?(l.$$parse(c),l.$$state=e,k(c,!1,e)):(r=!1,h(c,e)))}),d.$$phase||d.$digest()):g.location.href=a});d.$watch(function(){if(r||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var a=mb(c.url()),b=mb(l.absUrl()),g=c.state(),f=l.$$replace,m=a!==b||l.$$html5&&e.history&&g!==l.$$state;if(r||m)r=!1,d.$evalAsync(function(){var b=l.absUrl(),c=d.$broadcast("$locationChangeStart",b,a,l.$$state,g).defaultPrevented;l.absUrl()===
|
||||||
|
b&&(c?(l.$$parse(a),l.$$state=g):(m&&k(b,f,g===l.$$state?null:l.$$state),h(a,g)))})}l.$$replace=!1});return l}]}function Mf(){var a=!0,b=this;this.debugEnabled=function(b){return t(b)?(a=b,this):a};this.$get=["$window",function(d){function c(a){ac(a)&&(a.stack&&f?a=a.message&&-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=d.console||{},e=b[a]||b.log||C;return function(){var a=[];p(arguments,
|
||||||
|
function(b){a.push(c(b))});return Function.prototype.apply.call(e,b,a)}}var f=Ca||/\bEdge\//.test(d.navigator&&d.navigator.userAgent);return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){a&&c.apply(b,arguments)}}()}}]}function Bg(a){return a+""}function Cg(a,b){return"undefined"!==typeof a?a:b}function Ed(a,b){return"undefined"===typeof a?b:"undefined"===typeof b?a:a+b}function Dg(a,b){switch(a.type){case r.MemberExpression:if(a.computed)return!1;
|
||||||
|
break;case r.UnaryExpression:return 1;case r.BinaryExpression:return"+"!==a.operator?1:!1;case r.CallExpression:return!1}return void 0===b?Fd:b}function W(a,b,d){var c,e,f=a.isPure=Dg(a,d);switch(a.type){case r.Program:c=!0;p(a.body,function(a){W(a.expression,b,f);c=c&&a.expression.constant});a.constant=c;break;case r.Literal:a.constant=!0;a.toWatch=[];break;case r.UnaryExpression:W(a.argument,b,f);a.constant=a.argument.constant;a.toWatch=a.argument.toWatch;break;case r.BinaryExpression:W(a.left,
|
||||||
|
b,f);W(a.right,b,f);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.left.toWatch.concat(a.right.toWatch);break;case r.LogicalExpression:W(a.left,b,f);W(a.right,b,f);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.constant?[]:[a];break;case r.ConditionalExpression:W(a.test,b,f);W(a.alternate,b,f);W(a.consequent,b,f);a.constant=a.test.constant&&a.alternate.constant&&a.consequent.constant;a.toWatch=a.constant?[]:[a];break;case r.Identifier:a.constant=!1;a.toWatch=[a];break;case r.MemberExpression:W(a.object,
|
||||||
|
b,f);a.computed&&W(a.property,b,f);a.constant=a.object.constant&&(!a.computed||a.property.constant);a.toWatch=a.constant?[]:[a];break;case r.CallExpression:c=d=a.filter?!b(a.callee.name).$stateful:!1;e=[];p(a.arguments,function(a){W(a,b,f);c=c&&a.constant;e.push.apply(e,a.toWatch)});a.constant=c;a.toWatch=d?e:[a];break;case r.AssignmentExpression:W(a.left,b,f);W(a.right,b,f);a.constant=a.left.constant&&a.right.constant;a.toWatch=[a];break;case r.ArrayExpression:c=!0;e=[];p(a.elements,function(a){W(a,
|
||||||
|
b,f);c=c&&a.constant;e.push.apply(e,a.toWatch)});a.constant=c;a.toWatch=e;break;case r.ObjectExpression:c=!0;e=[];p(a.properties,function(a){W(a.value,b,f);c=c&&a.value.constant;e.push.apply(e,a.value.toWatch);a.computed&&(W(a.key,b,!1),c=c&&a.key.constant,e.push.apply(e,a.key.toWatch))});a.constant=c;a.toWatch=e;break;case r.ThisExpression:a.constant=!1;a.toWatch=[];break;case r.LocalsExpression:a.constant=!1,a.toWatch=[]}}function Gd(a){if(1===a.length){a=a[0].expression;var b=a.toWatch;return 1!==
|
||||||
|
b.length?b:b[0]!==a?b:void 0}}function Hd(a){return a.type===r.Identifier||a.type===r.MemberExpression}function Id(a){if(1===a.body.length&&Hd(a.body[0].expression))return{type:r.AssignmentExpression,left:a.body[0].expression,right:{type:r.NGValueParameter},operator:"="}}function Jd(a){this.$filter=a}function Kd(a){this.$filter=a}function yc(a,b,d){this.ast=new r(a,d);this.astCompiler=d.csp?new Kd(b):new Jd(b)}function zc(a){return B(a.valueOf)?a.valueOf():Eg.call(a)}function Nf(){var a=T(),b={"true":!0,
|
||||||
|
"false":!1,"null":null,undefined:void 0},d,c;this.addLiteral=function(a,c){b[a]=c};this.setIdentifierFns=function(a,b){d=a;c=b;return this};this.$get=["$filter",function(e){function f(a,b,c){return null==a||null==b?a===b:"object"!==typeof a||(a=zc(a),"object"!==typeof a||c)?a===b||a!==a&&b!==b:!1}function g(a,b,c,d,e){var g=d.inputs,h;if(1===g.length){var k=f,g=g[0];return a.$watch(function(a){var b=g(a);f(b,k,g.isPure)||(h=d(a,void 0,void 0,[b]),k=b&&zc(b));return h},b,c,e)}for(var l=[],m=[],n=0,
|
||||||
|
p=g.length;n<p;n++)l[n]=f,m[n]=null;return a.$watch(function(a){for(var b=!1,c=0,e=g.length;c<e;c++){var k=g[c](a);if(b||(b=!f(k,l[c],g[c].isPure)))m[c]=k,l[c]=k&&zc(k)}b&&(h=d(a,void 0,void 0,m));return h},b,c,e)}function k(a,b,c,d,e){function f(a){return d(a)}function h(a,c,d){l=a;B(b)&&b(a,c,d);t(a)&&d.$$postDigest(function(){t(l)&&k()})}var k,l;return k=d.inputs?g(a,h,c,d,e):a.$watch(f,h,c)}function h(a,b,c,d){function e(a){var b=!0;p(a,function(a){t(a)||(b=!1)});return b}var g,f;return g=a.$watch(function(a){return d(a)},
|
||||||
|
function(a,c,d){f=a;B(b)&&b(a,c,d);e(a)&&d.$$postDigest(function(){e(f)&&g()})},c)}function l(a,b,c,d){var e=a.$watch(function(a){e();return d(a)},b,c);return e}function m(a,b){if(!b)return a;var c=a.$$watchDelegate,d=!1,e=c!==h&&c!==k?function(c,e,g,f){g=d&&f?f[0]:a(c,e,g,f);return b(g,c,e)}:function(c,d,e,g){e=a(c,d,e,g);c=b(e,c,d);return t(e)?c:e},d=!a.inputs;c&&c!==g?(e.$$watchDelegate=c,e.inputs=a.inputs):b.$stateful||(e.$$watchDelegate=g,e.inputs=a.inputs?a.inputs:[a]);e.inputs&&(e.inputs=e.inputs.map(function(a){return a.isPure===
|
||||||
|
Fd?function(b){return a(b)}:a}));return e}var n={csp:Ja().noUnsafeEval,literals:pa(b),isIdentifierStart:B(d)&&d,isIdentifierContinue:B(c)&&c};return function(b,c){var d,f,p;switch(typeof b){case "string":return p=b=b.trim(),d=a[p],d||(":"===b.charAt(0)&&":"===b.charAt(1)&&(f=!0,b=b.substring(2)),d=new Ac(n),d=(new yc(d,e,n)).parse(b),d.constant?d.$$watchDelegate=l:f?d.$$watchDelegate=d.literal?h:k:d.inputs&&(d.$$watchDelegate=g),a[p]=d),m(d,c);case "function":return m(b,c);default:return m(C,c)}}}]}
|
||||||
|
function Pf(){var a=!0;this.$get=["$rootScope","$exceptionHandler",function(b,d){return Ld(function(a){b.$evalAsync(a)},d,a)}];this.errorOnUnhandledRejections=function(b){return t(b)?(a=b,this):a}}function Qf(){var a=!0;this.$get=["$browser","$exceptionHandler",function(b,d){return Ld(function(a){b.defer(a)},d,a)}];this.errorOnUnhandledRejections=function(b){return t(b)?(a=b,this):a}}function Ld(a,b,d){function c(){return new e}function e(){var a=this.promise=new f;this.resolve=function(b){h(a,b)};
|
||||||
|
this.reject=function(b){m(a,b)};this.notify=function(b){q(a,b)}}function f(){this.$$state={status:0}}function g(){for(;!t&&u.length;){var a=u.shift();if(!a.pur){a.pur=!0;var c=a.value,c="Possibly unhandled rejection: "+("function"===typeof c?c.toString().replace(/ \{[\s\S]*$/,""):w(c)?"undefined":"string"!==typeof c?De(c,void 0):c);ac(a.value)?b(a.value,c):b(c)}}}function k(c){!d||c.pending||2!==c.status||c.pur||(0===t&&0===u.length&&a(g),u.push(c));!c.processScheduled&&c.pending&&(c.processScheduled=
|
||||||
|
!0,++t,a(function(){var e,f,k;k=c.pending;c.processScheduled=!1;c.pending=void 0;try{for(var l=0,n=k.length;l<n;++l){c.pur=!0;f=k[l][0];e=k[l][c.status];try{B(e)?h(f,e(c.value)):1===c.status?h(f,c.value):m(f,c.value)}catch(q){m(f,q),q&&!0===q.$$passToExceptionHandler&&b(q)}}}finally{--t,d&&0===t&&a(g)}}))}function h(a,b){a.$$state.status||(b===a?n(a,s("qcycle",b)):l(a,b))}function l(a,b){function c(b){f||(f=!0,l(a,b))}function d(b){f||(f=!0,n(a,b))}function e(b){q(a,b)}var g,f=!1;try{if(E(b)||B(b))g=
|
||||||
|
b.then;B(g)?(a.$$state.status=-1,g.call(b,c,d,e)):(a.$$state.value=b,a.$$state.status=1,k(a.$$state))}catch(h){d(h)}}function m(a,b){a.$$state.status||n(a,b)}function n(a,b){a.$$state.value=b;a.$$state.status=2;k(a.$$state)}function q(c,d){var e=c.$$state.pending;0>=c.$$state.status&&e&&e.length&&a(function(){for(var a,c,g=0,f=e.length;g<f;g++){c=e[g][0];a=e[g][3];try{q(c,B(a)?a(d):d)}catch(h){b(h)}}})}function G(a){var b=new f;m(b,a);return b}function r(a,b,c){var d=null;try{B(c)&&(d=c())}catch(e){return G(e)}return d&&
|
||||||
|
B(d.then)?d.then(function(){return b(a)},G):b(a)}function z(a,b,c,d){var e=new f;h(e,a);return e.then(b,c,d)}function v(a){if(!B(a))throw s("norslvr",a);var b=new f;a(function(a){h(b,a)},function(a){m(b,a)});return b}var s=M("$q",TypeError),t=0,u=[];Q(f.prototype,{then:function(a,b,c){if(w(a)&&w(b)&&w(c))return this;var d=new f;this.$$state.pending=this.$$state.pending||[];this.$$state.pending.push([d,a,b,c]);0<this.$$state.status&&k(this.$$state);return d},"catch":function(a){return this.then(null,
|
||||||
|
a)},"finally":function(a,b){return this.then(function(b){return r(b,y,a)},function(b){return r(b,G,a)},b)}});var y=z;v.prototype=f.prototype;v.defer=c;v.reject=G;v.when=z;v.resolve=y;v.all=function(a){var b=new f,c=0,d=I(a)?[]:{};p(a,function(a,e){c++;z(a).then(function(a){d[e]=a;--c||h(b,d)},function(a){m(b,a)})});0===c&&h(b,d);return b};v.race=function(a){var b=c();p(a,function(a){z(a).then(b.resolve,b.reject)});return b.promise};return v}function Zf(){this.$get=["$window","$timeout",function(a,
|
||||||
|
b){var d=a.requestAnimationFrame||a.webkitRequestAnimationFrame,c=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame,e=!!d,f=e?function(a){var b=d(a);return function(){c(b)}}:function(a){var c=b(a,16.66,!1);return function(){b.cancel(c)}};f.supported=e;return f}]}function Of(){function a(a){function b(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=++rb;this.$$ChildScope=
|
||||||
|
null}b.prototype=a;return b}var b=10,d=M("$rootScope"),c=null,e=null;this.digestTtl=function(a){arguments.length&&(b=a);return b};this.$get=["$exceptionHandler","$parse","$browser",function(f,g,k){function h(a){a.currentScope.$$destroyed=!0}function l(a){9===Ca&&(a.$$childHead&&l(a.$$childHead),a.$$nextSibling&&l(a.$$nextSibling));a.$parent=a.$$nextSibling=a.$$prevSibling=a.$$childHead=a.$$childTail=a.$root=a.$$watchers=null}function m(){this.$id=++rb;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=
|
||||||
|
this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function n(a){if(s.$$phase)throw d("inprog",s.$$phase);s.$$phase=a}function q(a,b){do a.$$watchersCount+=b;while(a=a.$parent)}function G(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function r(){}function z(){for(;y.length;)try{y.shift()()}catch(a){f(a)}e=
|
||||||
|
null}function v(){null===e&&(e=k.defer(function(){s.$apply(z)}))}m.prototype={constructor:m,$new:function(b,c){var d;c=c||this;b?(d=new m,d.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=a(this)),d=new this.$$ChildScope);d.$parent=c;d.$$prevSibling=c.$$childTail;c.$$childHead?(c.$$childTail.$$nextSibling=d,c.$$childTail=d):c.$$childHead=c.$$childTail=d;(b||c!==this)&&d.$on("$destroy",h);return d},$watch:function(a,b,d,e){var f=g(a);if(f.$$watchDelegate)return f.$$watchDelegate(this,b,d,
|
||||||
|
f,a);var h=this,k=h.$$watchers,l={fn:b,last:r,get:f,exp:e||a,eq:!!d};c=null;B(b)||(l.fn=C);k||(k=h.$$watchers=[],k.$$digestWatchIndex=-1);k.unshift(l);k.$$digestWatchIndex++;q(this,1);return function(){var a=db(k,l);0<=a&&(q(h,-1),a<k.$$digestWatchIndex&&k.$$digestWatchIndex--);c=null}},$watchGroup:function(a,b){function c(){h=!1;k?(k=!1,b(e,e,f)):b(e,d,f)}var d=Array(a.length),e=Array(a.length),g=[],f=this,h=!1,k=!0;if(!a.length){var l=!0;f.$evalAsync(function(){l&&b(e,e,f)});return function(){l=
|
||||||
|
!1}}if(1===a.length)return this.$watch(a[0],function(a,c,g){e[0]=a;d[0]=c;b(e,a===c?e:d,g)});p(a,function(a,b){var k=f.$watch(a,function(a,g){e[b]=a;d[b]=g;h||(h=!0,f.$evalAsync(c))});g.push(k)});return function(){for(;g.length;)g.shift()()}},$watchCollection:function(a,b){function c(a){e=a;var b,d,g,h;if(!w(e)){if(E(e))if(xa(e))for(f!==n&&(f=n,p=f.length=0,l++),a=e.length,p!==a&&(l++,f.length=p=a),b=0;b<a;b++)h=f[b],g=e[b],d=h!==h&&g!==g,d||h===g||(l++,f[b]=g);else{f!==q&&(f=q={},p=0,l++);a=0;for(b in e)ra.call(e,
|
||||||
|
b)&&(a++,g=e[b],h=f[b],b in f?(d=h!==h&&g!==g,d||h===g||(l++,f[b]=g)):(p++,f[b]=g,l++));if(p>a)for(b in l++,f)ra.call(e,b)||(p--,delete f[b])}else f!==e&&(f=e,l++);return l}}c.$stateful=!0;var d=this,e,f,h,k=1<b.length,l=0,m=g(a,c),n=[],q={},s=!0,p=0;return this.$watch(m,function(){s?(s=!1,b(e,e,d)):b(e,h,d);if(k)if(E(e))if(xa(e)){h=Array(e.length);for(var a=0;a<e.length;a++)h[a]=e[a]}else for(a in h={},e)ra.call(e,a)&&(h[a]=e[a]);else h=e})},$digest:function(){var a,g,h,l,m,q,p,G=b,y,v=[],w,A;n("$digest");
|
||||||
|
k.$$checkUrlChange();this===s&&null!==e&&(k.defer.cancel(e),z());c=null;do{p=!1;y=this;for(q=0;q<t.length;q++){try{A=t[q],l=A.fn,l(A.scope,A.locals)}catch(C){f(C)}c=null}t.length=0;a:do{if(q=y.$$watchers)for(q.$$digestWatchIndex=q.length;q.$$digestWatchIndex--;)try{if(a=q[q.$$digestWatchIndex])if(m=a.get,(g=m(y))!==(h=a.last)&&!(a.eq?sa(g,h):U(g)&&U(h)))p=!0,c=a,a.last=a.eq?pa(g,null):g,l=a.fn,l(g,h===r?g:h,y),5>G&&(w=4-G,v[w]||(v[w]=[]),v[w].push({msg:B(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):
|
||||||
|
a.exp,newVal:g,oldVal:h}));else if(a===c){p=!1;break a}}catch(E){f(E)}if(!(q=y.$$watchersCount&&y.$$childHead||y!==this&&y.$$nextSibling))for(;y!==this&&!(q=y.$$nextSibling);)y=y.$parent}while(y=q);if((p||t.length)&&!G--)throw s.$$phase=null,d("infdig",b,v);}while(p||t.length);for(s.$$phase=null;J<u.length;)try{u[J++]()}catch(D){f(D)}u.length=J=0;k.$$checkUrlChange()},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===s&&k.$$applicationDestroyed();
|
||||||
|
q(this,-this.$$watchersCount);for(var b in this.$$listenerCount)G(this,this.$$listenerCount[b],b);a&&a.$$childHead===this&&(a.$$childHead=this.$$nextSibling);a&&a.$$childTail===this&&(a.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=C;this.$on=this.$watch=this.$watchGroup=function(){return C};this.$$listeners=
|
||||||
|
{};this.$$nextSibling=null;l(this)}},$eval:function(a,b){return g(a)(this,b)},$evalAsync:function(a,b){s.$$phase||t.length||k.defer(function(){t.length&&s.$digest()});t.push({scope:this,fn:g(a),locals:b})},$$postDigest:function(a){u.push(a)},$apply:function(a){try{n("$apply");try{return this.$eval(a)}finally{s.$$phase=null}}catch(b){f(b)}finally{try{s.$digest()}catch(c){throw f(c),c;}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&y.push(b);a=g(a);v()},$on:function(a,b){var c=this.$$listeners[a];
|
||||||
|
c||(this.$$listeners[a]=c=[]);c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){var d=c.indexOf(b);-1!==d&&(delete c[d],G(e,1,a))}},$emit:function(a,b){var c=[],d,e=this,g=!1,h={name:a,targetScope:e,stopPropagation:function(){g=!0},preventDefault:function(){h.defaultPrevented=!0},defaultPrevented:!1},k=eb([h],arguments,1),l,m;do{d=e.$$listeners[a]||c;h.currentScope=e;l=0;for(m=d.length;l<m;l++)if(d[l])try{d[l].apply(null,
|
||||||
|
k)}catch(n){f(n)}else d.splice(l,1),l--,m--;if(g)break;e=e.$parent}while(e);h.currentScope=null;return h},$broadcast:function(a,b){var c=this,d=this,e={name:a,targetScope:this,preventDefault:function(){e.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[a])return e;for(var g=eb([e],arguments,1),h,k;c=d;){e.currentScope=c;d=c.$$listeners[a]||[];h=0;for(k=d.length;h<k;h++)if(d[h])try{d[h].apply(null,g)}catch(l){f(l)}else d.splice(h,1),h--,k--;if(!(d=c.$$listenerCount[a]&&c.$$childHead||
|
||||||
|
c!==this&&c.$$nextSibling))for(;c!==this&&!(d=c.$$nextSibling);)c=c.$parent}e.currentScope=null;return e}};var s=new m,t=s.$$asyncQueue=[],u=s.$$postDigestQueue=[],y=s.$$applyAsyncQueue=[],J=0;return s}]}function Ge(){var a=/^\s*(https?|s?ftp|mailto|tel|file):/,b=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(b){return t(b)?(a=b,this):a};this.imgSrcSanitizationWhitelist=function(a){return t(a)?(b=a,this):b};this.$get=function(){return function(d,c){var e=c?b:
|
||||||
|
a,f;f=ua(d&&d.trim()).href;return""===f||f.match(e)?d:"unsafe:"+f}}}function Fg(a){if("self"===a)return a;if(D(a)){if(-1<a.indexOf("***"))throw wa("iwcard",a);a=Md(a).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*");return new RegExp("^"+a+"$")}if(ab(a))return new RegExp("^"+a.source+"$");throw wa("imatcher");}function Nd(a){var b=[];t(a)&&p(a,function(a){b.push(Fg(a))});return b}function Sf(){this.SCE_CONTEXTS=oa;var a=["self"],b=[];this.resourceUrlWhitelist=function(b){arguments.length&&
|
||||||
|
(a=Nd(b));return a};this.resourceUrlBlacklist=function(a){arguments.length&&(b=Nd(a));return b};this.$get=["$injector",function(d){function c(a,b){return"self"===a?zd(b):!!a.exec(b.href)}function e(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};a&&(b.prototype=new a);b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};return b}var f=function(a){throw wa("unsafe");};d.has("$sanitize")&&
|
||||||
|
(f=d.get("$sanitize"));var g=e(),k={};k[oa.HTML]=e(g);k[oa.CSS]=e(g);k[oa.URL]=e(g);k[oa.JS]=e(g);k[oa.RESOURCE_URL]=e(k[oa.URL]);return{trustAs:function(a,b){var c=k.hasOwnProperty(a)?k[a]:null;if(!c)throw wa("icontext",a,b);if(null===b||w(b)||""===b)return b;if("string"!==typeof b)throw wa("itype",a);return new c(b)},getTrusted:function(d,e){if(null===e||w(e)||""===e)return e;var g=k.hasOwnProperty(d)?k[d]:null;if(g&&e instanceof g)return e.$$unwrapTrustedValue();if(d===oa.RESOURCE_URL){var g=ua(e.toString()),
|
||||||
|
n,q,p=!1;n=0;for(q=a.length;n<q;n++)if(c(a[n],g)){p=!0;break}if(p)for(n=0,q=b.length;n<q;n++)if(c(b[n],g)){p=!1;break}if(p)return e;throw wa("insecurl",e.toString());}if(d===oa.HTML)return f(e);throw wa("unsafe");},valueOf:function(a){return a instanceof g?a.$$unwrapTrustedValue():a}}}]}function Rf(){var a=!0;this.enabled=function(b){arguments.length&&(a=!!b);return a};this.$get=["$parse","$sceDelegate",function(b,d){if(a&&8>Ca)throw wa("iequirks");var c=ja(oa);c.isEnabled=function(){return a};c.trustAs=
|
||||||
|
d.trustAs;c.getTrusted=d.getTrusted;c.valueOf=d.valueOf;a||(c.trustAs=c.getTrusted=function(a,b){return b},c.valueOf=bb);c.parseAs=function(a,d){var e=b(d);return e.literal&&e.constant?e:b(d,function(b){return c.getTrusted(a,b)})};var e=c.parseAs,f=c.getTrusted,g=c.trustAs;p(oa,function(a,b){var d=N(b);c[("parse_as_"+d).replace(Bc,xb)]=function(b){return e(a,b)};c[("get_trusted_"+d).replace(Bc,xb)]=function(b){return f(a,b)};c[("trust_as_"+d).replace(Bc,xb)]=function(b){return g(a,b)}});return c}]}
|
||||||
|
function Tf(){this.$get=["$window","$document",function(a,b){var d={},c=!((!a.nw||!a.nw.process)&&a.chrome&&(a.chrome.app&&a.chrome.app.runtime||!a.chrome.app&&a.chrome.runtime&&a.chrome.runtime.id))&&a.history&&a.history.pushState,e=Z((/android (\d+)/.exec(N((a.navigator||{}).userAgent))||[])[1]),f=/Boxee/i.test((a.navigator||{}).userAgent),g=b[0]||{},k=g.body&&g.body.style,h=!1,l=!1;k&&(h=!!("transition"in k||"webkitTransition"in k),l=!!("animation"in k||"webkitAnimation"in k));return{history:!(!c||
|
||||||
|
4>e||f),hasEvent:function(a){if("input"===a&&Ca)return!1;if(w(d[a])){var b=g.createElement("div");d[a]="on"+a in b}return d[a]},csp:Ja(),transitions:h,animations:l,android:e}}]}function Vf(){var a;this.httpOptions=function(b){return b?(a=b,this):a};this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(b,d,c,e,f){function g(k,h){g.totalPendingRequests++;if(!D(k)||w(d.get(k)))k=f.getTrustedResourceUrl(k);var l=c.defaults&&c.defaults.transformResponse;I(l)?l=l.filter(function(a){return a!==
|
||||||
|
sc}):l===sc&&(l=null);return c.get(k,Q({cache:d,transformResponse:l},a)).finally(function(){g.totalPendingRequests--}).then(function(a){d.put(k,a.data);return a.data},function(a){h||(a=Gg("tpload",k,a.status,a.statusText),b(a));return e.reject(a)})}g.totalPendingRequests=0;return g}]}function Wf(){this.$get=["$rootScope","$browser","$location",function(a,b,d){return{findBindings:function(a,b,d){a=a.getElementsByClassName("ng-binding");var g=[];p(a,function(a){var c=$.element(a).data("$binding");c&&
|
||||||
|
p(c,function(c){d?(new RegExp("(^|\\s)"+Md(b)+"(\\s|\\||$)")).test(c)&&g.push(a):-1!==c.indexOf(b)&&g.push(a)})});return g},findModels:function(a,b,d){for(var g=["ng-","data-ng-","ng\\:"],k=0;k<g.length;++k){var h=a.querySelectorAll("["+g[k]+"model"+(d?"=":"*=")+'"'+b+'"]');if(h.length)return h}},getLocation:function(){return d.url()},setLocation:function(b){b!==d.url()&&(d.url(b),a.$digest())},whenStable:function(a){b.notifyWhenNoOutstandingRequests(a)}}}]}function Xf(){this.$get=["$rootScope","$browser",
|
||||||
|
"$q","$$q","$exceptionHandler",function(a,b,d,c,e){function f(f,h,l){B(f)||(l=h,h=f,f=C);var m=ya.call(arguments,3),n=t(l)&&!l,q=(n?c:d).defer(),p=q.promise,r;r=b.defer(function(){try{q.resolve(f.apply(null,m))}catch(b){q.reject(b),e(b)}finally{delete g[p.$$timeoutId]}n||a.$apply()},h);p.$$timeoutId=r;g[r]=q;return p}var g={};f.cancel=function(a){return a&&a.$$timeoutId in g?(g[a.$$timeoutId].promise.$$state.pur=!0,g[a.$$timeoutId].reject("canceled"),delete g[a.$$timeoutId],b.defer.cancel(a.$$timeoutId)):
|
||||||
|
!1};return f}]}function ua(a){Ca&&(X.setAttribute("href",a),a=X.href);X.setAttribute("href",a);return{href:X.href,protocol:X.protocol?X.protocol.replace(/:$/,""):"",host:X.host,search:X.search?X.search.replace(/^\?/,""):"",hash:X.hash?X.hash.replace(/^#/,""):"",hostname:X.hostname,port:X.port,pathname:"/"===X.pathname.charAt(0)?X.pathname:"/"+X.pathname}}function zd(a){a=D(a)?ua(a):a;return a.protocol===Od.protocol&&a.host===Od.host}function Yf(){this.$get=ka(u)}function Pd(a){function b(a){try{return decodeURIComponent(a)}catch(b){return a}}
|
||||||
|
var d=a[0]||{},c={},e="";return function(){var a,g,k,h,l;try{a=d.cookie||""}catch(m){a=""}if(a!==e)for(e=a,a=e.split("; "),c={},k=0;k<a.length;k++)g=a[k],h=g.indexOf("="),0<h&&(l=b(g.substring(0,h)),w(c[l])&&(c[l]=b(g.substring(h+1))));return c}}function bg(){this.$get=Pd}function ed(a){function b(d,c){if(E(d)){var e={};p(d,function(a,c){e[c]=b(c,a)});return e}return a.factory(d+"Filter",c)}this.register=b;this.$get=["$injector",function(a){return function(b){return a.get(b+"Filter")}}];b("currency",
|
||||||
|
Qd);b("date",Rd);b("filter",Hg);b("json",Ig);b("limitTo",Jg);b("lowercase",Kg);b("number",Sd);b("orderBy",Td);b("uppercase",Lg)}function Hg(){return function(a,b,d,c){if(!xa(a)){if(null==a)return a;throw M("filter")("notarray",a);}c=c||"$";var e;switch(Cc(b)){case "function":break;case "boolean":case "null":case "number":case "string":e=!0;case "object":b=Mg(b,d,c,e);break;default:return a}return Array.prototype.filter.call(a,b)}}function Mg(a,b,d,c){var e=E(a)&&d in a;!0===b?b=sa:B(b)||(b=function(a,
|
||||||
|
b){if(w(a))return!1;if(null===a||null===b)return a===b;if(E(b)||E(a)&&!$b(a))return!1;a=N(""+a);b=N(""+b);return-1!==a.indexOf(b)});return function(f){return e&&!E(f)?ga(f,a[d],b,d,!1):ga(f,a,b,d,c)}}function ga(a,b,d,c,e,f){var g=Cc(a),k=Cc(b);if("string"===k&&"!"===b.charAt(0))return!ga(a,b.substring(1),d,c,e);if(I(a))return a.some(function(a){return ga(a,b,d,c,e)});switch(g){case "object":var h;if(e){for(h in a)if(h.charAt&&"$"!==h.charAt(0)&&ga(a[h],b,d,c,!0))return!0;return f?!1:ga(a,b,d,c,!1)}if("object"===
|
||||||
|
k){for(h in b)if(f=b[h],!B(f)&&!w(f)&&(g=h===c,!ga(g?a:a[h],f,d,c,g,g)))return!1;return!0}return d(a,b);case "function":return!1;default:return d(a,b)}}function Cc(a){return null===a?"null":typeof a}function Qd(a){var b=a.NUMBER_FORMATS;return function(a,c,e){w(c)&&(c=b.CURRENCY_SYM);w(e)&&(e=b.PATTERNS[1].maxFrac);return null==a?a:Ud(a,b.PATTERNS[1],b.GROUP_SEP,b.DECIMAL_SEP,e).replace(/\u00A4/g,c)}}function Sd(a){var b=a.NUMBER_FORMATS;return function(a,c){return null==a?a:Ud(a,b.PATTERNS[0],b.GROUP_SEP,
|
||||||
|
b.DECIMAL_SEP,c)}}function Ng(a){var b=0,d,c,e,f,g;-1<(c=a.indexOf(Vd))&&(a=a.replace(Vd,""));0<(e=a.search(/e/i))?(0>c&&(c=e),c+=+a.slice(e+1),a=a.substring(0,e)):0>c&&(c=a.length);for(e=0;a.charAt(e)===Dc;e++);if(e===(g=a.length))d=[0],c=1;else{for(g--;a.charAt(g)===Dc;)g--;c-=e;d=[];for(f=0;e<=g;e++,f++)d[f]=+a.charAt(e)}c>Wd&&(d=d.splice(0,Wd-1),b=c-1,c=1);return{d:d,e:b,i:c}}function Og(a,b,d,c){var e=a.d,f=e.length-a.i;b=w(b)?Math.min(Math.max(d,f),c):+b;d=b+a.i;c=e[d];if(0<d){e.splice(Math.max(a.i,
|
||||||
|
d));for(var g=d;g<e.length;g++)e[g]=0}else for(f=Math.max(0,f),a.i=1,e.length=Math.max(1,d=b+1),e[0]=0,g=1;g<d;g++)e[g]=0;if(5<=c)if(0>d-1){for(c=0;c>d;c--)e.unshift(0),a.i++;e.unshift(1);a.i++}else e[d-1]++;for(;f<Math.max(0,b);f++)e.push(0);if(b=e.reduceRight(function(a,b,c,d){b+=a;d[c]=b%10;return Math.floor(b/10)},0))e.unshift(b),a.i++}function Ud(a,b,d,c,e){if(!D(a)&&!Y(a)||isNaN(a))return"";var f=!isFinite(a),g=!1,k=Math.abs(a)+"",h="";if(f)h="\u221e";else{g=Ng(k);Og(g,e,b.minFrac,b.maxFrac);
|
||||||
|
h=g.d;k=g.i;e=g.e;f=[];for(g=h.reduce(function(a,b){return a&&!b},!0);0>k;)h.unshift(0),k++;0<k?f=h.splice(k,h.length):(f=h,h=[0]);k=[];for(h.length>=b.lgSize&&k.unshift(h.splice(-b.lgSize,h.length).join(""));h.length>b.gSize;)k.unshift(h.splice(-b.gSize,h.length).join(""));h.length&&k.unshift(h.join(""));h=k.join(d);f.length&&(h+=c+f.join(""));e&&(h+="e+"+e)}return 0>a&&!g?b.negPre+h+b.negSuf:b.posPre+h+b.posSuf}function Nb(a,b,d,c){var e="";if(0>a||c&&0>=a)c?a=-a+1:(a=-a,e="-");for(a=""+a;a.length<
|
||||||
|
b;)a=Dc+a;d&&(a=a.substr(a.length-b));return e+a}function da(a,b,d,c,e){d=d||0;return function(f){f=f["get"+a]();if(0<d||f>-d)f+=d;0===f&&-12===d&&(f=12);return Nb(f,b,c,e)}}function nb(a,b,d){return function(c,e){var f=c["get"+a](),g=vb((d?"STANDALONE":"")+(b?"SHORT":"")+a);return e[g][f]}}function Xd(a){var b=(new Date(a,0,1)).getDay();return new Date(a,0,(4>=b?5:12)-b)}function Yd(a){return function(b){var d=Xd(b.getFullYear());b=+new Date(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))-
|
||||||
|
+d;b=1+Math.round(b/6048E5);return Nb(b,a)}}function Ec(a,b){return 0>=a.getFullYear()?b.ERAS[0]:b.ERAS[1]}function Rd(a){function b(a){var b;if(b=a.match(d)){a=new Date(0);var f=0,g=0,k=b[8]?a.setUTCFullYear:a.setFullYear,h=b[8]?a.setUTCHours:a.setHours;b[9]&&(f=Z(b[9]+b[10]),g=Z(b[9]+b[11]));k.call(a,Z(b[1]),Z(b[2])-1,Z(b[3]));f=Z(b[4]||0)-f;g=Z(b[5]||0)-g;k=Z(b[6]||0);b=Math.round(1E3*parseFloat("0."+(b[7]||0)));h.call(a,f,g,k,b)}return a}var d=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
|
||||||
|
return function(c,d,f){var g="",k=[],h,l;d=d||"mediumDate";d=a.DATETIME_FORMATS[d]||d;D(c)&&(c=Pg.test(c)?Z(c):b(c));Y(c)&&(c=new Date(c));if(!ea(c)||!isFinite(c.getTime()))return c;for(;d;)(l=Qg.exec(d))?(k=eb(k,l,1),d=k.pop()):(k.push(d),d=null);var m=c.getTimezoneOffset();f&&(m=Sc(f,m),c=cc(c,f,!0));p(k,function(b){h=Rg[b];g+=h?h(c,a.DATETIME_FORMATS,m):"''"===b?"'":b.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return g}}function Ig(){return function(a,b){w(b)&&(b=2);return fb(a,b)}}function Jg(){return function(a,
|
||||||
|
b,d){b=Infinity===Math.abs(Number(b))?Number(b):Z(b);if(U(b))return a;Y(a)&&(a=a.toString());if(!xa(a))return a;d=!d||isNaN(d)?0:Z(d);d=0>d?Math.max(0,a.length+d):d;return 0<=b?Fc(a,d,d+b):0===d?Fc(a,b,a.length):Fc(a,Math.max(0,d+b),d)}}function Fc(a,b,d){return D(a)?a.slice(b,d):ya.call(a,b,d)}function Td(a){function b(b){return b.map(function(b){var c=1,d=bb;if(B(b))d=b;else if(D(b)){if("+"===b.charAt(0)||"-"===b.charAt(0))c="-"===b.charAt(0)?-1:1,b=b.substring(1);if(""!==b&&(d=a(b),d.constant))var e=
|
||||||
|
d(),d=function(a){return a[e]}}return{get:d,descending:c}})}function d(a){switch(typeof a){case "number":case "boolean":case "string":return!0;default:return!1}}function c(a,b){var c=0,d=a.type,h=b.type;if(d===h){var h=a.value,l=b.value;"string"===d?(h=h.toLowerCase(),l=l.toLowerCase()):"object"===d&&(E(h)&&(h=a.index),E(l)&&(l=b.index));h!==l&&(c=h<l?-1:1)}else c=d<h?-1:1;return c}return function(a,f,g,k){if(null==a)return a;if(!xa(a))throw M("orderBy")("notarray",a);I(f)||(f=[f]);0===f.length&&
|
||||||
|
(f=["+"]);var h=b(f),l=g?-1:1,m=B(k)?k:c;a=Array.prototype.map.call(a,function(a,b){return{value:a,tieBreaker:{value:b,type:"number",index:b},predicateValues:h.map(function(c){var e=c.get(a);c=typeof e;if(null===e)c="string",e="null";else if("object"===c)a:{if(B(e.valueOf)&&(e=e.valueOf(),d(e)))break a;$b(e)&&(e=e.toString(),d(e))}return{value:e,type:c,index:b}})}});a.sort(function(a,b){for(var d=0,e=h.length;d<e;d++){var g=m(a.predicateValues[d],b.predicateValues[d]);if(g)return g*h[d].descending*
|
||||||
|
l}return(m(a.tieBreaker,b.tieBreaker)||c(a.tieBreaker,b.tieBreaker))*l});return a=a.map(function(a){return a.value})}}function Qa(a){B(a)&&(a={link:a});a.restrict=a.restrict||"AC";return ka(a)}function Ob(a,b,d,c,e){this.$$controls=[];this.$error={};this.$$success={};this.$pending=void 0;this.$name=e(b.name||b.ngForm||"")(d);this.$dirty=!1;this.$valid=this.$pristine=!0;this.$submitted=this.$invalid=!1;this.$$parentForm=Pb;this.$$element=a;this.$$animate=c;Zd(this)}function Zd(a){a.$$classCache={};
|
||||||
|
a.$$classCache[$d]=!(a.$$classCache[ob]=a.$$element.hasClass(ob))}function ae(a){function b(a,b,c){c&&!a.$$classCache[b]?(a.$$animate.addClass(a.$$element,b),a.$$classCache[b]=!0):!c&&a.$$classCache[b]&&(a.$$animate.removeClass(a.$$element,b),a.$$classCache[b]=!1)}function d(a,c,d){c=c?"-"+Vc(c,"-"):"";b(a,ob+c,!0===d);b(a,$d+c,!1===d)}var c=a.set,e=a.unset;a.clazz.prototype.$setValidity=function(a,g,k){w(g)?(this.$pending||(this.$pending={}),c(this.$pending,a,k)):(this.$pending&&e(this.$pending,
|
||||||
|
a,k),be(this.$pending)&&(this.$pending=void 0));Na(g)?g?(e(this.$error,a,k),c(this.$$success,a,k)):(c(this.$error,a,k),e(this.$$success,a,k)):(e(this.$error,a,k),e(this.$$success,a,k));this.$pending?(b(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,d(this,"",null)):(b(this,"ng-pending",!1),this.$valid=be(this.$error),this.$invalid=!this.$valid,d(this,"",this.$valid));g=this.$pending&&this.$pending[a]?void 0:this.$error[a]?!1:this.$$success[a]?!0:null;d(this,a,g);this.$$parentForm.$setValidity(a,
|
||||||
|
g,this)}}function be(a){if(a)for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}function Gc(a){a.$formatters.push(function(b){return a.$isEmpty(b)?b:b.toString()})}function Wa(a,b,d,c,e,f){var g=N(b[0].type);if(!e.android){var k=!1;b.on("compositionstart",function(){k=!0});b.on("compositionend",function(){k=!1;l()})}var h,l=function(a){h&&(f.defer.cancel(h),h=null);if(!k){var e=b.val();a=a&&a.type;"password"===g||d.ngTrim&&"false"===d.ngTrim||(e=R(e));(c.$viewValue!==e||""===e&&c.$$hasNativeValidators)&&
|
||||||
|
c.$setViewValue(e,a)}};if(e.hasEvent("input"))b.on("input",l);else{var m=function(a,b,c){h||(h=f.defer(function(){h=null;b&&b.value===c||l(a)}))};b.on("keydown",function(a){var b=a.keyCode;91===b||15<b&&19>b||37<=b&&40>=b||m(a,this,this.value)});if(e.hasEvent("paste"))b.on("paste cut",m)}b.on("change",l);if(ce[g]&&c.$$hasNativeValidators&&g===d.type)b.on("keydown wheel mousedown",function(a){if(!h){var b=this.validity,c=b.badInput,d=b.typeMismatch;h=f.defer(function(){h=null;b.badInput===c&&b.typeMismatch===
|
||||||
|
d||l(a)})}});c.$render=function(){var a=c.$isEmpty(c.$viewValue)?"":c.$viewValue;b.val()!==a&&b.val(a)}}function Qb(a,b){return function(d,c){var e,f;if(ea(d))return d;if(D(d)){'"'===d.charAt(0)&&'"'===d.charAt(d.length-1)&&(d=d.substring(1,d.length-1));if(Sg.test(d))return new Date(d);a.lastIndex=0;if(e=a.exec(d))return e.shift(),f=c?{yyyy:c.getFullYear(),MM:c.getMonth()+1,dd:c.getDate(),HH:c.getHours(),mm:c.getMinutes(),ss:c.getSeconds(),sss:c.getMilliseconds()/1E3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,
|
||||||
|
ss:0,sss:0},p(e,function(a,c){c<b.length&&(f[b[c]]=+a)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1E3*f.sss||0)}return NaN}}function pb(a,b,d,c){return function(e,f,g,k,h,l,m){function n(a){return a&&!(a.getTime&&a.getTime()!==a.getTime())}function q(a){return t(a)&&!ea(a)?d(a)||void 0:a}Hc(e,f,g,k);Wa(e,f,g,k,h,l);var p=k&&k.$options.getOption("timezone"),r;k.$$parserName=a;k.$parsers.push(function(a){if(k.$isEmpty(a))return null;if(b.test(a))return a=d(a,r),p&&(a=cc(a,p)),a});k.$formatters.push(function(a){if(a&&
|
||||||
|
!ea(a))throw qb("datefmt",a);if(n(a))return(r=a)&&p&&(r=cc(r,p,!0)),m("date")(a,c,p);r=null;return""});if(t(g.min)||g.ngMin){var z;k.$validators.min=function(a){return!n(a)||w(z)||d(a)>=z};g.$observe("min",function(a){z=q(a);k.$validate()})}if(t(g.max)||g.ngMax){var v;k.$validators.max=function(a){return!n(a)||w(v)||d(a)<=v};g.$observe("max",function(a){v=q(a);k.$validate()})}}}function Hc(a,b,d,c){(c.$$hasNativeValidators=E(b[0].validity))&&c.$parsers.push(function(a){var c=b.prop("validity")||{};
|
||||||
|
return c.badInput||c.typeMismatch?void 0:a})}function de(a){a.$$parserName="number";a.$parsers.push(function(b){if(a.$isEmpty(b))return null;if(Tg.test(b))return parseFloat(b)});a.$formatters.push(function(b){if(!a.$isEmpty(b)){if(!Y(b))throw qb("numfmt",b);b=b.toString()}return b})}function Xa(a){t(a)&&!Y(a)&&(a=parseFloat(a));return U(a)?void 0:a}function Ic(a){var b=a.toString(),d=b.indexOf(".");return-1===d?-1<a&&1>a&&(a=/e-(\d+)$/.exec(b))?Number(a[1]):0:b.length-d-1}function ee(a,b,d){a=Number(a);
|
||||||
|
var c=(a|0)!==a,e=(b|0)!==b,f=(d|0)!==d;if(c||e||f){var g=c?Ic(a):0,k=e?Ic(b):0,h=f?Ic(d):0,g=Math.max(g,k,h),g=Math.pow(10,g);a*=g;b*=g;d*=g;c&&(a=Math.round(a));e&&(b=Math.round(b));f&&(d=Math.round(d))}return 0===(a-b)%d}function fe(a,b,d,c,e){if(t(c)){a=a(c);if(!a.constant)throw qb("constexpr",d,c);return a(b)}return e}function Jc(a,b){function d(a,b){if(!a||!a.length)return[];if(!b||!b.length)return a;var c=[],d=0;a:for(;d<a.length;d++){for(var e=a[d],f=0;f<b.length;f++)if(e===b[f])continue a;
|
||||||
|
c.push(e)}return c}function c(a){var b=a;I(a)?b=a.map(c).join(" "):E(a)&&(b=Object.keys(a).filter(function(b){return a[b]}).join(" "));return b}function e(a){var b=a;if(I(a))b=a.map(e);else if(E(a)){var c=!1,b=Object.keys(a).filter(function(b){b=a[b];!c&&w(b)&&(c=!0);return b});c&&b.push(void 0)}return b}a="ngClass"+a;var f;return["$parse",function(g){return{restrict:"AC",link:function(k,h,l){function m(a,b){var c=[];p(a,function(a){if(0<b||s[a])s[a]=(s[a]||0)+b,s[a]===+(0<b)&&c.push(a)});return c.join(" ")}
|
||||||
|
function n(a){if(a===b){var c=w,c=m(c&&c.split(" "),1);l.$addClass(c)}else c=w,c=m(c&&c.split(" "),-1),l.$removeClass(c);u=a}function q(a){a=c(a);a!==w&&r(a)}function r(a){if(u===b){var c=w&&w.split(" "),e=a&&a.split(" "),g=d(c,e),c=d(e,c),g=m(g,-1),c=m(c,1);l.$addClass(c);l.$removeClass(g)}w=a}var t=l[a].trim(),z=":"===t.charAt(0)&&":"===t.charAt(1),t=g(t,z?e:c),v=z?q:r,s=h.data("$classCounts"),u=!0,w;s||(s=T(),h.data("$classCounts",s));"ngClass"!==a&&(f||(f=g("$index",function(a){return a&1})),
|
||||||
|
k.$watch(f,n));k.$watch(t,v,z)}}}]}function Rb(a,b,d,c,e,f,g,k,h){this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=void 0;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=void 0;this.$name=h(d.name||"",!1)(a);this.$$parentForm=Pb;this.$options=Sb;this.$$parsedNgModel=e(d.ngModel);
|
||||||
|
this.$$parsedNgModelAssign=this.$$parsedNgModel.assign;this.$$ngModelGet=this.$$parsedNgModel;this.$$ngModelSet=this.$$parsedNgModelAssign;this.$$pendingDebounce=null;this.$$parserValid=void 0;this.$$currentValidationRunId=0;Object.defineProperty(this,"$$scope",{value:a});this.$$attr=d;this.$$element=c;this.$$animate=f;this.$$timeout=g;this.$$parse=e;this.$$q=k;this.$$exceptionHandler=b;Zd(this);Ug(this)}function Ug(a){a.$$scope.$watch(function(b){b=a.$$ngModelGet(b);b===a.$modelValue||a.$modelValue!==
|
||||||
|
a.$modelValue&&b!==b||a.$$setModelValue(b);return b})}function Kc(a){this.$$options=a}function ge(a,b){p(b,function(b,c){t(a[c])||(a[c]=b)})}function Ga(a,b){a.prop("selected",b);a.attr("selected",b)}var Mc={objectMaxDepth:5},Vg=/^\/(.+)\/([a-z]*)$/,ra=Object.prototype.hasOwnProperty,N=function(a){return D(a)?a.toLowerCase():a},vb=function(a){return D(a)?a.toUpperCase():a},Ca,A,la,ya=[].slice,ug=[].splice,Wg=[].push,ha=Object.prototype.toString,Pc=Object.getPrototypeOf,qa=M("ng"),$=u.angular||(u.angular=
|
||||||
|
{}),gc,rb=0;Ca=u.document.documentMode;var U=Number.isNaN||function(a){return a!==a};C.$inject=[];bb.$inject=[];var I=Array.isArray,se=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,R=function(a){return D(a)?a.trim():a},Md=function(a){return a.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Ja=function(){if(!t(Ja.rules)){var a=u.document.querySelector("[ng-csp]")||u.document.querySelector("[data-ng-csp]");if(a){var b=a.getAttribute("ng-csp")||
|
||||||
|
a.getAttribute("data-ng-csp");Ja.rules={noUnsafeEval:!b||-1!==b.indexOf("no-unsafe-eval"),noInlineStyle:!b||-1!==b.indexOf("no-inline-style")}}else{a=Ja;try{new Function(""),b=!1}catch(d){b=!0}a.rules={noUnsafeEval:b,noInlineStyle:!1}}}return Ja.rules},sb=function(){if(t(sb.name_))return sb.name_;var a,b,d=Ha.length,c,e;for(b=0;b<d;++b)if(c=Ha[b],a=u.document.querySelector("["+c.replace(":","\\:")+"jq]")){e=a.getAttribute(c+"jq");break}return sb.name_=e},ue=/:/g,Ha=["ng-","data-ng-","ng:","x-ng-"],
|
||||||
|
xe=function(a){var b=a.currentScript;if(!b)return!0;if(!(b instanceof u.HTMLScriptElement||b instanceof u.SVGScriptElement))return!1;b=b.attributes;return[b.getNamedItem("src"),b.getNamedItem("href"),b.getNamedItem("xlink:href")].every(function(b){if(!b)return!0;if(!b.value)return!1;var c=a.createElement("a");c.href=b.value;if(a.location.origin===c.origin)return!0;switch(c.protocol){case "http:":case "https:":case "ftp:":case "blob:":case "file:":case "data:":return!0;default:return!1}})}(u.document),
|
||||||
|
Ae=/[A-Z]/g,Wc=!1,Oa=3,Fe={full:"1.6.7",major:1,minor:6,dot:7,codeName:"imperial-backstroke"};V.expando="ng339";var jb=V.cache={},gg=1;V._data=function(a){return this.cache[a[this.expando]]||{}};var cg=/-([a-z])/g,Xg=/^-ms-/,Bb={mouseleave:"mouseout",mouseenter:"mouseover"},jc=M("jqLite"),fg=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ic=/<|&#?\w+;/,dg=/<([\w:-]+)/,eg=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,aa={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,
|
||||||
|
"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};aa.optgroup=aa.option;aa.tbody=aa.tfoot=aa.colgroup=aa.caption=aa.thead;aa.th=aa.td;var lg=u.Node.prototype.contains||function(a){return!!(this.compareDocumentPosition(a)&16)},Sa=V.prototype={ready:gd,toString:function(){var a=[];p(this,function(b){a.push(""+b)});return"["+a.join(", ")+"]"},eq:function(a){return 0<=
|
||||||
|
a?A(this[a]):A(this[this.length+a])},length:0,push:Wg,sort:[].sort,splice:[].splice},Hb={};p("multiple selected checked disabled readOnly required open".split(" "),function(a){Hb[N(a)]=a});var ld={};p("input select option textarea button form details".split(" "),function(a){ld[a]=!0});var sd={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};p({data:nc,removeData:mc,hasData:function(a){for(var b in jb[a.ng339])return!0;return!1},cleanData:function(a){for(var b=
|
||||||
|
0,d=a.length;b<d;b++)mc(a[b])}},function(a,b){V[b]=a});p({data:nc,inheritedData:Fb,scope:function(a){return A.data(a,"$scope")||Fb(a.parentNode||a,["$isolateScope","$scope"])},isolateScope:function(a){return A.data(a,"$isolateScope")||A.data(a,"$isolateScopeNoTemplate")},controller:id,injector:function(a){return Fb(a,"$injector")},removeAttr:function(a,b){a.removeAttribute(b)},hasClass:Cb,css:function(a,b,d){b=yb(b.replace(Xg,"ms-"));if(t(d))a.style[b]=d;else return a.style[b]},attr:function(a,b,
|
||||||
|
d){var c=a.nodeType;if(c!==Oa&&2!==c&&8!==c&&a.getAttribute){var c=N(b),e=Hb[c];if(t(d))null===d||!1===d&&e?a.removeAttribute(b):a.setAttribute(b,e?c:d);else return a=a.getAttribute(b),e&&null!==a&&(a=c),null===a?void 0:a}},prop:function(a,b,d){if(t(d))a[b]=d;else return a[b]},text:function(){function a(a,d){if(w(d)){var c=a.nodeType;return 1===c||c===Oa?a.textContent:""}a.textContent=d}a.$dv="";return a}(),val:function(a,b){if(w(b)){if(a.multiple&&"select"===za(a)){var d=[];p(a.options,function(a){a.selected&&
|
||||||
|
d.push(a.value||a.text)});return d}return a.value}a.value=b},html:function(a,b){if(w(b))return a.innerHTML;zb(a,!0);a.innerHTML=b},empty:jd},function(a,b){V.prototype[b]=function(b,c){var e,f,g=this.length;if(a!==jd&&w(2===a.length&&a!==Cb&&a!==id?b:c)){if(E(b)){for(e=0;e<g;e++)if(a===nc)a(this[e],b);else for(f in b)a(this[e],f,b[f]);return this}e=a.$dv;g=w(e)?Math.min(g,1):g;for(f=0;f<g;f++){var k=a(this[f],b,c);e=e?e+k:k}return e}for(e=0;e<g;e++)a(this[e],b,c);return this}});p({removeData:mc,on:function(a,
|
||||||
|
b,d,c){if(t(c))throw jc("onargs");if(hc(a)){c=Ab(a,!0);var e=c.events,f=c.handle;f||(f=c.handle=ig(a,e));c=0<=b.indexOf(" ")?b.split(" "):[b];for(var g=c.length,k=function(b,c,g){var k=e[b];k||(k=e[b]=[],k.specialHandlerWrapper=c,"$destroy"===b||g||a.addEventListener(b,f));k.push(d)};g--;)b=c[g],Bb[b]?(k(Bb[b],kg),k(b,void 0,!0)):k(b)}},off:hd,one:function(a,b,d){a=A(a);a.on(b,function e(){a.off(b,d);a.off(b,e)});a.on(b,d)},replaceWith:function(a,b){var d,c=a.parentNode;zb(a);p(new V(b),function(b){d?
|
||||||
|
c.insertBefore(b,d.nextSibling):c.replaceChild(b,a);d=b})},children:function(a){var b=[];p(a.childNodes,function(a){1===a.nodeType&&b.push(a)});return b},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,b){var d=a.nodeType;if(1===d||11===d){b=new V(b);for(var d=0,c=b.length;d<c;d++)a.appendChild(b[d])}},prepend:function(a,b){if(1===a.nodeType){var d=a.firstChild;p(new V(b),function(b){a.insertBefore(b,d)})}},wrap:function(a,b){var d=A(b).eq(0).clone()[0],c=a.parentNode;
|
||||||
|
c&&c.replaceChild(d,a);d.appendChild(a)},remove:Gb,detach:function(a){Gb(a,!0)},after:function(a,b){var d=a,c=a.parentNode;if(c){b=new V(b);for(var e=0,f=b.length;e<f;e++){var g=b[e];c.insertBefore(g,d.nextSibling);d=g}}},addClass:Eb,removeClass:Db,toggleClass:function(a,b,d){b&&p(b.split(" "),function(b){var e=d;w(e)&&(e=!Cb(a,b));(e?Eb:Db)(a,b)})},parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},next:function(a){return a.nextElementSibling},find:function(a,b){return a.getElementsByTagName?
|
||||||
|
a.getElementsByTagName(b):[]},clone:lc,triggerHandler:function(a,b,d){var c,e,f=b.type||b,g=Ab(a);if(g=(g=g&&g.events)&&g[f])c={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:C,type:f,target:a},b.type&&(c=Q(c,b)),b=ja(g),e=d?[c].concat(d):[c],p(b,function(b){c.isImmediatePropagationStopped()||
|
||||||
|
b.apply(a,e)})}},function(a,b){V.prototype[b]=function(b,c,e){for(var f,g=0,k=this.length;g<k;g++)w(f)?(f=a(this[g],b,c,e),t(f)&&(f=A(f))):kc(f,a(this[g],b,c,e));return t(f)?f:this}});V.prototype.bind=V.prototype.on;V.prototype.unbind=V.prototype.off;var Yg=Object.create(null);md.prototype={_idx:function(a){if(a===this._lastKey)return this._lastIndex;this._lastKey=a;return this._lastIndex=this._keys.indexOf(a)},_transformKey:function(a){return U(a)?Yg:a},get:function(a){a=this._transformKey(a);a=
|
||||||
|
this._idx(a);if(-1!==a)return this._values[a]},set:function(a,b){a=this._transformKey(a);var d=this._idx(a);-1===d&&(d=this._lastIndex=this._keys.length);this._keys[d]=a;this._values[d]=b},delete:function(a){a=this._transformKey(a);a=this._idx(a);if(-1===a)return!1;this._keys.splice(a,1);this._values.splice(a,1);this._lastKey=NaN;this._lastIndex=-1;return!0}};var Ib=md,ag=[function(){this.$get=[function(){return Ib}]}],ng=/^([^(]+?)=>/,og=/^[^(]*\(\s*([^)]*)\)/m,Zg=/,/,$g=/^\s*(_?)(\S+?)\1\s*$/,mg=
|
||||||
|
/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Ba=M("$injector");hb.$$annotate=function(a,b,d){var c;if("function"===typeof a){if(!(c=a.$inject)){c=[];if(a.length){if(b)throw D(d)&&d||(d=a.name||pg(a)),Ba("strictdi",d);b=nd(a);p(b[1].split(Zg),function(a){a.replace($g,function(a,b,d){c.push(d)})})}a.$inject=c}}else I(a)?(b=a.length-1,tb(a[b],"fn"),c=a.slice(0,b)):tb(a,"fn",!0);return c};var he=M("$animate"),sf=function(){this.$get=C},tf=function(){var a=new Ib,b=[];this.$get=["$$AnimateRunner","$rootScope",function(d,
|
||||||
|
c){function e(a,b,c){var d=!1;b&&(b=D(b)?b.split(" "):I(b)?b:[],p(b,function(b){b&&(d=!0,a[b]=c)}));return d}function f(){p(b,function(b){var c=a.get(b);if(c){var d=qg(b.attr("class")),e="",f="";p(c,function(a,b){a!==!!d[b]&&(a?e+=(e.length?" ":"")+b:f+=(f.length?" ":"")+b)});p(b,function(a){e&&Eb(a,e);f&&Db(a,f)});a.delete(b)}});b.length=0}return{enabled:C,on:C,off:C,pin:C,push:function(g,k,h,l){l&&l();h=h||{};h.from&&g.css(h.from);h.to&&g.css(h.to);if(h.addClass||h.removeClass)if(k=h.addClass,l=
|
||||||
|
h.removeClass,h=a.get(g)||{},k=e(h,k,!0),l=e(h,l,!1),k||l)a.set(g,h),b.push(g),1===b.length&&c.$$postDigest(f);g=new d;g.complete();return g}}}]},qf=["$provide",function(a){var b=this,d=null,c=null;this.$$registeredAnimations=Object.create(null);this.register=function(c,d){if(c&&"."!==c.charAt(0))throw he("notcsel",c);var g=c+"-animation";b.$$registeredAnimations[c.substr(1)]=g;a.factory(g,d)};this.customFilter=function(a){1===arguments.length&&(c=B(a)?a:null);return c};this.classNameFilter=function(a){if(1===
|
||||||
|
arguments.length&&(d=a instanceof RegExp?a:null)&&/[(\s|\/)]ng-animate[(\s|\/)]/.test(d.toString()))throw d=null,he("nongcls","ng-animate");return d};this.$get=["$$animateQueue",function(a){function b(a,c,d){if(d){var e;a:{for(e=0;e<d.length;e++){var f=d[e];if(1===f.nodeType){e=f;break a}}e=void 0}!e||e.parentNode||e.previousElementSibling||(d=null)}d?d.after(a):c.prepend(a)}return{on:a.on,off:a.off,pin:a.pin,enabled:a.enabled,cancel:function(a){a.end&&a.end()},enter:function(c,d,h,l){d=d&&A(d);h=
|
||||||
|
h&&A(h);d=d||h.parent();b(c,d,h);return a.push(c,"enter",Ka(l))},move:function(c,d,h,l){d=d&&A(d);h=h&&A(h);d=d||h.parent();b(c,d,h);return a.push(c,"move",Ka(l))},leave:function(b,c){return a.push(b,"leave",Ka(c),function(){b.remove()})},addClass:function(b,c,d){d=Ka(d);d.addClass=kb(d.addclass,c);return a.push(b,"addClass",d)},removeClass:function(b,c,d){d=Ka(d);d.removeClass=kb(d.removeClass,c);return a.push(b,"removeClass",d)},setClass:function(b,c,d,f){f=Ka(f);f.addClass=kb(f.addClass,c);f.removeClass=
|
||||||
|
kb(f.removeClass,d);return a.push(b,"setClass",f)},animate:function(b,c,d,f,m){m=Ka(m);m.from=m.from?Q(m.from,c):c;m.to=m.to?Q(m.to,d):d;m.tempClasses=kb(m.tempClasses,f||"ng-inline-animate");return a.push(b,"animate",m)}}}]}],vf=function(){this.$get=["$$rAF",function(a){function b(b){d.push(b);1<d.length||a(function(){for(var a=0;a<d.length;a++)d[a]();d=[]})}var d=[];return function(){var a=!1;b(function(){a=!0});return function(d){a?d():b(d)}}}]},uf=function(){this.$get=["$q","$sniffer","$$animateAsyncRun",
|
||||||
|
"$$isDocumentHidden","$timeout",function(a,b,d,c,e){function f(a){this.setHost(a);var b=d();this._doneCallbacks=[];this._tick=function(a){c()?e(a,0,!1):b(a)};this._state=0}f.chain=function(a,b){function c(){if(d===a.length)b(!0);else a[d](function(a){!1===a?b(!1):(d++,c())})}var d=0;c()};f.all=function(a,b){function c(f){e=e&&f;++d===a.length&&b(e)}var d=0,e=!0;p(a,function(a){a.done(c)})};f.prototype={setHost:function(a){this.host=a||{}},done:function(a){2===this._state?a():this._doneCallbacks.push(a)},
|
||||||
|
progress:C,getPromise:function(){if(!this.promise){var b=this;this.promise=a(function(a,c){b.done(function(b){!1===b?c():a()})})}return this.promise},then:function(a,b){return this.getPromise().then(a,b)},"catch":function(a){return this.getPromise()["catch"](a)},"finally":function(a){return this.getPromise()["finally"](a)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&
|
||||||
|
this.host.cancel();this._resolve(!1)},complete:function(a){var b=this;0===b._state&&(b._state=1,b._tick(function(){b._resolve(a)}))},_resolve:function(a){2!==this._state&&(p(this._doneCallbacks,function(b){b(a)}),this._doneCallbacks.length=0,this._state=2)}};return f}]},rf=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(a,b,d){return function(b,e){function f(){a(function(){g.addClass&&(b.addClass(g.addClass),g.addClass=null);g.removeClass&&(b.removeClass(g.removeClass),g.removeClass=
|
||||||
|
null);g.to&&(b.css(g.to),g.to=null);k||h.complete();k=!0});return h}var g=e||{};g.$$prepared||(g=pa(g));g.cleanupStyles&&(g.from=g.to=null);g.from&&(b.css(g.from),g.from=null);var k,h=new d;return{start:f,end:f}}}]},ba=M("$compile"),qc=new function(){};Yc.$inject=["$provide","$$sanitizeUriProvider"];Kb.prototype.isFirstChange=function(){return this.previousValue===qc};var od=/^((?:x|data)[:\-_])/i,tg=/[:\-_]+(.)/g,ud=M("$controller"),td=/^(\S+)(\s+as\s+([\w$]+))?$/,Cf=function(){this.$get=["$document",
|
||||||
|
function(a){return function(b){b?!b.nodeType&&b instanceof A&&(b=b[0]):b=a[0].body;return b.offsetWidth+1}}]},vd="application/json",tc={"Content-Type":vd+";charset=utf-8"},wg=/^\[|^\{(?!\{)/,xg={"[":/]$/,"{":/}$/},vg=/^\)]\}',?\n/,Lb=M("$http"),Fa=$.$interpolateMinErr=M("$interpolate");Fa.throwNoconcat=function(a){throw Fa("noconcat",a);};Fa.interr=function(a,b){return Fa("interr",a,b.toString())};var Kf=function(){this.$get=function(){function a(a){var b=function(a){b.data=a;b.called=!0};b.id=a;
|
||||||
|
return b}var b=$.callbacks,d={};return{createCallback:function(c){c="_"+(b.$$counter++).toString(36);var e="angular.callbacks."+c,f=a(c);d[e]=b[c]=f;return e},wasCalled:function(a){return d[a].called},getResponse:function(a){return d[a].data},removeCallback:function(a){delete b[d[a].id];delete d[a]}}}},ah=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,zg={http:80,https:443,ftp:21},lb=M("$location"),Ag=/^\s*[\\/]{2,}/,bh={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Mb("$$absUrl"),url:function(a){if(w(a))return this.$$url;
|
||||||
|
var b=ah.exec(a);(b[1]||""===a)&&this.path(decodeURI(b[1]));(b[2]||b[1]||""===a)&&this.search(b[3]||"");this.hash(b[5]||"");return this},protocol:Mb("$$protocol"),host:Mb("$$host"),port:Mb("$$port"),path:Dd("$$path",function(a){a=null!==a?a.toString():"";return"/"===a.charAt(0)?a:"/"+a}),search:function(a,b){switch(arguments.length){case 0:return this.$$search;case 1:if(D(a)||Y(a))a=a.toString(),this.$$search=dc(a);else if(E(a))a=pa(a,{}),p(a,function(b,c){null==b&&delete a[c]}),this.$$search=a;else throw lb("isrcharg");
|
||||||
|
break;default:w(b)||null===b?delete this.$$search[a]:this.$$search[a]=b}this.$$compose();return this},hash:Dd("$$hash",function(a){return null!==a?a.toString():""}),replace:function(){this.$$replace=!0;return this}};p([Cd,xc,wc],function(a){a.prototype=Object.create(bh);a.prototype.state=function(b){if(!arguments.length)return this.$$state;if(a!==wc||!this.$$html5)throw lb("nostate");this.$$state=w(b)?null:b;this.$$urlUpdatedByLocation=!0;return this}});var Ya=M("$parse"),Eg={}.constructor.prototype.valueOf,
|
||||||
|
Tb=T();p("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(a){Tb[a]=!0});var ch={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Ac=function(a){this.options=a};Ac.prototype={constructor:Ac,lex:function(a){this.text=a;this.index=0;for(this.tokens=[];this.index<this.text.length;)if(a=this.text.charAt(this.index),'"'===a||"'"===a)this.readString(a);else if(this.isNumber(a)||"."===a&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();
|
||||||
|
else if(this.is(a,"(){}[].,;:?"))this.tokens.push({index:this.index,text:a}),this.index++;else if(this.isWhitespace(a))this.index++;else{var b=a+this.peek(),d=b+this.peek(2),c=Tb[b],e=Tb[d];Tb[a]||c||e?(a=e?d:c?b:a,this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(a,b){return-1!==b.indexOf(a)},peek:function(a){a=a||1;return this.index+a<this.text.length?this.text.charAt(this.index+
|
||||||
|
a):!1},isNumber:function(a){return"0"<=a&&"9">=a&&"string"===typeof a},isWhitespace:function(a){return" "===a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a},isIdentifierStart:function(a){return this.options.isIdentifierStart?this.options.isIdentifierStart(a,this.codePointAt(a)):this.isValidIdentifierStart(a)},isValidIdentifierStart:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isIdentifierContinue:function(a){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(a,
|
||||||
|
this.codePointAt(a)):this.isValidIdentifierContinue(a)},isValidIdentifierContinue:function(a,b){return this.isValidIdentifierStart(a,b)||this.isNumber(a)},codePointAt:function(a){return 1===a.length?a.charCodeAt(0):(a.charCodeAt(0)<<10)+a.charCodeAt(1)-56613888},peekMultichar:function(){var a=this.text.charAt(this.index),b=this.peek();if(!b)return a;var d=a.charCodeAt(0),c=b.charCodeAt(0);return 55296<=d&&56319>=d&&56320<=c&&57343>=c?a+b:a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},
|
||||||
|
throwError:function(a,b,d){d=d||this.index;b=t(b)?"s "+b+"-"+this.index+" ["+this.text.substring(b,d)+"]":" "+d;throw Ya("lexerr",a,b,this.text);},readNumber:function(){for(var a="",b=this.index;this.index<this.text.length;){var d=N(this.text.charAt(this.index));if("."===d||this.isNumber(d))a+=d;else{var c=this.peek();if("e"===d&&this.isExpOperator(c))a+=d;else if(this.isExpOperator(d)&&c&&this.isNumber(c)&&"e"===a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||c&&this.isNumber(c)||"e"!==
|
||||||
|
a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}this.tokens.push({index:b,text:a,constant:!0,value:Number(a)})},readIdent:function(){var a=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var b=this.peekMultichar();if(!this.isIdentifierContinue(b))break;this.index+=b.length}this.tokens.push({index:a,text:this.text.slice(a,this.index),identifier:!0})},readString:function(a){var b=this.index;this.index++;for(var d="",c=a,e=!1;this.index<
|
||||||
|
this.text.length;){var f=this.text.charAt(this.index),c=c+f;if(e)"u"===f?(e=this.text.substring(this.index+1,this.index+5),e.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+e+"]"),this.index+=4,d+=String.fromCharCode(parseInt(e,16))):d+=ch[f]||f,e=!1;else if("\\"===f)e=!0;else{if(f===a){this.index++;this.tokens.push({index:b,text:c,constant:!0,value:d});return}d+=f}this.index++}this.throwError("Unterminated quote",b)}};var r=function(a,b){this.lexer=a;this.options=b};r.Program=
|
||||||
|
"Program";r.ExpressionStatement="ExpressionStatement";r.AssignmentExpression="AssignmentExpression";r.ConditionalExpression="ConditionalExpression";r.LogicalExpression="LogicalExpression";r.BinaryExpression="BinaryExpression";r.UnaryExpression="UnaryExpression";r.CallExpression="CallExpression";r.MemberExpression="MemberExpression";r.Identifier="Identifier";r.Literal="Literal";r.ArrayExpression="ArrayExpression";r.Property="Property";r.ObjectExpression="ObjectExpression";r.ThisExpression="ThisExpression";
|
||||||
|
r.LocalsExpression="LocalsExpression";r.NGValueParameter="NGValueParameter";r.prototype={ast:function(a){this.text=a;this.tokens=this.lexer.lex(a);a=this.program();0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]);return a},program:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.expressionStatement()),!this.expect(";"))return{type:r.Program,body:a}},expressionStatement:function(){return{type:r.ExpressionStatement,expression:this.filterChain()}},
|
||||||
|
filterChain:function(){for(var a=this.expression();this.expect("|");)a=this.filter(a);return a},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary();if(this.expect("=")){if(!Hd(a))throw Ya("lval");a={type:r.AssignmentExpression,left:a,right:this.assignment(),operator:"="}}return a},ternary:function(){var a=this.logicalOR(),b,d;return this.expect("?")&&(b=this.expression(),this.consume(":"))?(d=this.expression(),{type:r.ConditionalExpression,test:a,alternate:b,
|
||||||
|
consequent:d}):a},logicalOR:function(){for(var a=this.logicalAND();this.expect("||");)a={type:r.LogicalExpression,operator:"||",left:a,right:this.logicalAND()};return a},logicalAND:function(){for(var a=this.equality();this.expect("&&");)a={type:r.LogicalExpression,operator:"&&",left:a,right:this.equality()};return a},equality:function(){for(var a=this.relational(),b;b=this.expect("==","!=","===","!==");)a={type:r.BinaryExpression,operator:b.text,left:a,right:this.relational()};return a},relational:function(){for(var a=
|
||||||
|
this.additive(),b;b=this.expect("<",">","<=",">=");)a={type:r.BinaryExpression,operator:b.text,left:a,right:this.additive()};return a},additive:function(){for(var a=this.multiplicative(),b;b=this.expect("+","-");)a={type:r.BinaryExpression,operator:b.text,left:a,right:this.multiplicative()};return a},multiplicative:function(){for(var a=this.unary(),b;b=this.expect("*","/","%");)a={type:r.BinaryExpression,operator:b.text,left:a,right:this.unary()};return a},unary:function(){var a;return(a=this.expect("+",
|
||||||
|
"-","!"))?{type:r.UnaryExpression,operator:a.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var a;this.expect("(")?(a=this.filterChain(),this.consume(")")):this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?a=pa(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?a={type:r.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?
|
||||||
|
a=this.identifier():this.peek().constant?a=this.constant():this.throwError("not a primary expression",this.peek());for(var b;b=this.expect("(","[",".");)"("===b.text?(a={type:r.CallExpression,callee:a,arguments:this.parseArguments()},this.consume(")")):"["===b.text?(a={type:r.MemberExpression,object:a,property:this.expression(),computed:!0},this.consume("]")):"."===b.text?a={type:r.MemberExpression,object:a,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return a},filter:function(a){a=
|
||||||
|
[a];for(var b={type:r.CallExpression,callee:this.identifier(),arguments:a,filter:!0};this.expect(":");)a.push(this.expression());return b},parseArguments:function(){var a=[];if(")"!==this.peekToken().text){do a.push(this.filterChain());while(this.expect(","))}return a},identifier:function(){var a=this.consume();a.identifier||this.throwError("is not a valid identifier",a);return{type:r.Identifier,name:a.text}},constant:function(){return{type:r.Literal,value:this.consume().value}},arrayDeclaration:function(){var a=
|
||||||
|
[];if("]"!==this.peekToken().text){do{if(this.peek("]"))break;a.push(this.expression())}while(this.expect(","))}this.consume("]");return{type:r.ArrayExpression,elements:a}},object:function(){var a=[],b;if("}"!==this.peekToken().text){do{if(this.peek("}"))break;b={type:r.Property,kind:"init"};this.peek().constant?(b.key=this.constant(),b.computed=!1,this.consume(":"),b.value=this.expression()):this.peek().identifier?(b.key=this.identifier(),b.computed=!1,this.peek(":")?(this.consume(":"),b.value=this.expression()):
|
||||||
|
b.value=b.key):this.peek("[")?(this.consume("["),b.key=this.expression(),this.consume("]"),b.computed=!0,this.consume(":"),b.value=this.expression()):this.throwError("invalid key",this.peek());a.push(b)}while(this.expect(","))}this.consume("}");return{type:r.ObjectExpression,properties:a}},throwError:function(a,b){throw Ya("syntax",b.text,a,b.index+1,this.text,this.text.substring(b.index));},consume:function(a){if(0===this.tokens.length)throw Ya("ueoe",this.text);var b=this.expect(a);b||this.throwError("is unexpected, expecting ["+
|
||||||
|
a+"]",this.peek());return b},peekToken:function(){if(0===this.tokens.length)throw Ya("ueoe",this.text);return this.tokens[0]},peek:function(a,b,d,c){return this.peekAhead(0,a,b,d,c)},peekAhead:function(a,b,d,c,e){if(this.tokens.length>a){a=this.tokens[a];var f=a.text;if(f===b||f===d||f===c||f===e||!(b||d||c||e))return a}return!1},expect:function(a,b,d,c){return(a=this.peek(a,b,d,c))?(this.tokens.shift(),a):!1},selfReferential:{"this":{type:r.ThisExpression},$locals:{type:r.LocalsExpression}}};var Fd=
|
||||||
|
2;Jd.prototype={compile:function(a){var b=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]};W(a,b.$filter);var d="",c;this.stage="assign";if(c=Id(a))this.state.computing="assign",d=this.nextId(),this.recurse(c,d),this.return_(d),d="fn.assign="+this.generateFunction("assign","s,v,l");c=Gd(a.body);b.stage="inputs";p(c,function(a,c){var d="fn"+c;b.state[d]={vars:[],body:[],own:{}};b.state.computing=d;var k=b.nextId();b.recurse(a,k);b.return_(k);
|
||||||
|
b.state.inputs.push({name:d,isPure:a.isPure});a.watchId=c});this.state.computing="fn";this.stage="main";this.recurse(a);a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+d+this.watchFns()+"return fn;";a=(new Function("$filter","getStringValue","ifDefined","plus",a))(this.$filter,Bg,Cg,Ed);this.state=this.stage=void 0;return a},USE:"use",STRICT:"strict",watchFns:function(){var a=[],b=this.state.inputs,d=this;p(b,function(b){a.push("var "+b.name+
|
||||||
|
"="+d.generateFunction(b.name,"s"));b.isPure&&a.push(b.name,".isPure="+JSON.stringify(b.isPure)+";")});b.length&&a.push("fn.inputs=["+b.map(function(a){return a.name}).join(",")+"];");return a.join("")},generateFunction:function(a,b){return"function("+b+"){"+this.varsPrefix(a)+this.body(a)+"};"},filterPrefix:function(){var a=[],b=this;p(this.state.filters,function(d,c){a.push(d+"=$filter("+b.escape(c)+")")});return a.length?"var "+a.join(",")+";":""},varsPrefix:function(a){return this.state[a].vars.length?
|
||||||
|
"var "+this.state[a].vars.join(",")+";":""},body:function(a){return this.state[a].body.join("")},recurse:function(a,b,d,c,e,f){var g,k,h=this,l,m,n;c=c||C;if(!f&&t(a.watchId))b=b||this.nextId(),this.if_("i",this.lazyAssign(b,this.computedMember("i",a.watchId)),this.lazyRecurse(a,b,d,c,e,!0));else switch(a.type){case r.Program:p(a.body,function(b,c){h.recurse(b.expression,void 0,void 0,function(a){k=a});c!==a.body.length-1?h.current().body.push(k,";"):h.return_(k)});break;case r.Literal:m=this.escape(a.value);
|
||||||
|
this.assign(b,m);c(b||m);break;case r.UnaryExpression:this.recurse(a.argument,void 0,void 0,function(a){k=a});m=a.operator+"("+this.ifDefined(k,0)+")";this.assign(b,m);c(m);break;case r.BinaryExpression:this.recurse(a.left,void 0,void 0,function(a){g=a});this.recurse(a.right,void 0,void 0,function(a){k=a});m="+"===a.operator?this.plus(g,k):"-"===a.operator?this.ifDefined(g,0)+a.operator+this.ifDefined(k,0):"("+g+")"+a.operator+"("+k+")";this.assign(b,m);c(m);break;case r.LogicalExpression:b=b||this.nextId();
|
||||||
|
h.recurse(a.left,b);h.if_("&&"===a.operator?b:h.not(b),h.lazyRecurse(a.right,b));c(b);break;case r.ConditionalExpression:b=b||this.nextId();h.recurse(a.test,b);h.if_(b,h.lazyRecurse(a.alternate,b),h.lazyRecurse(a.consequent,b));c(b);break;case r.Identifier:b=b||this.nextId();d&&(d.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",a.name)+"?l:s"),d.computed=!1,d.name=a.name);h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",a.name)),function(){h.if_("inputs"===
|
||||||
|
h.stage||"s",function(){e&&1!==e&&h.if_(h.isNull(h.nonComputedMember("s",a.name)),h.lazyAssign(h.nonComputedMember("s",a.name),"{}"));h.assign(b,h.nonComputedMember("s",a.name))})},b&&h.lazyAssign(b,h.nonComputedMember("l",a.name)));c(b);break;case r.MemberExpression:g=d&&(d.context=this.nextId())||this.nextId();b=b||this.nextId();h.recurse(a.object,g,void 0,function(){h.if_(h.notNull(g),function(){a.computed?(k=h.nextId(),h.recurse(a.property,k),h.getStringValue(k),e&&1!==e&&h.if_(h.not(h.computedMember(g,
|
||||||
|
k)),h.lazyAssign(h.computedMember(g,k),"{}")),m=h.computedMember(g,k),h.assign(b,m),d&&(d.computed=!0,d.name=k)):(e&&1!==e&&h.if_(h.isNull(h.nonComputedMember(g,a.property.name)),h.lazyAssign(h.nonComputedMember(g,a.property.name),"{}")),m=h.nonComputedMember(g,a.property.name),h.assign(b,m),d&&(d.computed=!1,d.name=a.property.name))},function(){h.assign(b,"undefined")});c(b)},!!e);break;case r.CallExpression:b=b||this.nextId();a.filter?(k=h.filter(a.callee.name),l=[],p(a.arguments,function(a){var b=
|
||||||
|
h.nextId();h.recurse(a,b);l.push(b)}),m=k+"("+l.join(",")+")",h.assign(b,m),c(b)):(k=h.nextId(),g={},l=[],h.recurse(a.callee,k,g,function(){h.if_(h.notNull(k),function(){p(a.arguments,function(b){h.recurse(b,a.constant?void 0:h.nextId(),void 0,function(a){l.push(a)})});m=g.name?h.member(g.context,g.name,g.computed)+"("+l.join(",")+")":k+"("+l.join(",")+")";h.assign(b,m)},function(){h.assign(b,"undefined")});c(b)}));break;case r.AssignmentExpression:k=this.nextId();g={};this.recurse(a.left,void 0,
|
||||||
|
g,function(){h.if_(h.notNull(g.context),function(){h.recurse(a.right,k);m=h.member(g.context,g.name,g.computed)+a.operator+k;h.assign(b,m);c(b||m)})},1);break;case r.ArrayExpression:l=[];p(a.elements,function(b){h.recurse(b,a.constant?void 0:h.nextId(),void 0,function(a){l.push(a)})});m="["+l.join(",")+"]";this.assign(b,m);c(b||m);break;case r.ObjectExpression:l=[];n=!1;p(a.properties,function(a){a.computed&&(n=!0)});n?(b=b||this.nextId(),this.assign(b,"{}"),p(a.properties,function(a){a.computed?
|
||||||
|
(g=h.nextId(),h.recurse(a.key,g)):g=a.key.type===r.Identifier?a.key.name:""+a.key.value;k=h.nextId();h.recurse(a.value,k);h.assign(h.member(b,g,a.computed),k)})):(p(a.properties,function(b){h.recurse(b.value,a.constant?void 0:h.nextId(),void 0,function(a){l.push(h.escape(b.key.type===r.Identifier?b.key.name:""+b.key.value)+":"+a)})}),m="{"+l.join(",")+"}",this.assign(b,m));c(b||m);break;case r.ThisExpression:this.assign(b,"s");c(b||"s");break;case r.LocalsExpression:this.assign(b,"l");c(b||"l");break;
|
||||||
|
case r.NGValueParameter:this.assign(b,"v"),c(b||"v")}},getHasOwnProperty:function(a,b){var d=a+"."+b,c=this.current().own;c.hasOwnProperty(d)||(c[d]=this.nextId(!1,a+"&&("+this.escape(b)+" in "+a+")"));return c[d]},assign:function(a,b){if(a)return this.current().body.push(a,"=",b,";"),a},filter:function(a){this.state.filters.hasOwnProperty(a)||(this.state.filters[a]=this.nextId(!0));return this.state.filters[a]},ifDefined:function(a,b){return"ifDefined("+a+","+this.escape(b)+")"},plus:function(a,
|
||||||
|
b){return"plus("+a+","+b+")"},return_:function(a){this.current().body.push("return ",a,";")},if_:function(a,b,d){if(!0===a)b();else{var c=this.current().body;c.push("if(",a,"){");b();c.push("}");d&&(c.push("else{"),d(),c.push("}"))}},not:function(a){return"!("+a+")"},isNull:function(a){return a+"==null"},notNull:function(a){return a+"!=null"},nonComputedMember:function(a,b){var d=/[^$_a-zA-Z0-9]/g;return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(b)?a+"."+b:a+'["'+b.replace(d,this.stringEscapeFn)+'"]'},computedMember:function(a,
|
||||||
|
b){return a+"["+b+"]"},member:function(a,b,d){return d?this.computedMember(a,b):this.nonComputedMember(a,b)},getStringValue:function(a){this.assign(a,"getStringValue("+a+")")},lazyRecurse:function(a,b,d,c,e,f){var g=this;return function(){g.recurse(a,b,d,c,e,f)}},lazyAssign:function(a,b){var d=this;return function(){d.assign(a,b)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)},escape:function(a){if(D(a))return"'"+a.replace(this.stringEscapeRegex,
|
||||||
|
this.stringEscapeFn)+"'";if(Y(a))return a.toString();if(!0===a)return"true";if(!1===a)return"false";if(null===a)return"null";if("undefined"===typeof a)return"undefined";throw Ya("esc");},nextId:function(a,b){var d="v"+this.state.nextId++;a||this.current().vars.push(d+(b?"="+b:""));return d},current:function(){return this.state[this.state.computing]}};Kd.prototype={compile:function(a){var b=this;W(a,b.$filter);var d,c;if(d=Id(a))c=this.recurse(d);d=Gd(a.body);var e;d&&(e=[],p(d,function(a,c){var d=
|
||||||
|
b.recurse(a);d.isPure=a.isPure;a.input=d;e.push(d);a.watchId=c}));var f=[];p(a.body,function(a){f.push(b.recurse(a.expression))});a=0===a.body.length?C:1===a.body.length?f[0]:function(a,b){var c;p(f,function(d){c=d(a,b)});return c};c&&(a.assign=function(a,b,d){return c(a,d,b)});e&&(a.inputs=e);return a},recurse:function(a,b,d){var c,e,f=this,g;if(a.input)return this.inputs(a.input,a.watchId);switch(a.type){case r.Literal:return this.value(a.value,b);case r.UnaryExpression:return e=this.recurse(a.argument),
|
||||||
|
this["unary"+a.operator](e,b);case r.BinaryExpression:return c=this.recurse(a.left),e=this.recurse(a.right),this["binary"+a.operator](c,e,b);case r.LogicalExpression:return c=this.recurse(a.left),e=this.recurse(a.right),this["binary"+a.operator](c,e,b);case r.ConditionalExpression:return this["ternary?:"](this.recurse(a.test),this.recurse(a.alternate),this.recurse(a.consequent),b);case r.Identifier:return f.identifier(a.name,b,d);case r.MemberExpression:return c=this.recurse(a.object,!1,!!d),a.computed||
|
||||||
|
(e=a.property.name),a.computed&&(e=this.recurse(a.property)),a.computed?this.computedMember(c,e,b,d):this.nonComputedMember(c,e,b,d);case r.CallExpression:return g=[],p(a.arguments,function(a){g.push(f.recurse(a))}),a.filter&&(e=this.$filter(a.callee.name)),a.filter||(e=this.recurse(a.callee,!0)),a.filter?function(a,c,d,f){for(var n=[],q=0;q<g.length;++q)n.push(g[q](a,c,d,f));a=e.apply(void 0,n,f);return b?{context:void 0,name:void 0,value:a}:a}:function(a,c,d,f){var n=e(a,c,d,f),q;if(null!=n.value){q=
|
||||||
|
[];for(var p=0;p<g.length;++p)q.push(g[p](a,c,d,f));q=n.value.apply(n.context,q)}return b?{value:q}:q};case r.AssignmentExpression:return c=this.recurse(a.left,!0,1),e=this.recurse(a.right),function(a,d,f,g){var n=c(a,d,f,g);a=e(a,d,f,g);n.context[n.name]=a;return b?{value:a}:a};case r.ArrayExpression:return g=[],p(a.elements,function(a){g.push(f.recurse(a))}),function(a,c,d,e){for(var f=[],q=0;q<g.length;++q)f.push(g[q](a,c,d,e));return b?{value:f}:f};case r.ObjectExpression:return g=[],p(a.properties,
|
||||||
|
function(a){a.computed?g.push({key:f.recurse(a.key),computed:!0,value:f.recurse(a.value)}):g.push({key:a.key.type===r.Identifier?a.key.name:""+a.key.value,computed:!1,value:f.recurse(a.value)})}),function(a,c,d,e){for(var f={},q=0;q<g.length;++q)g[q].computed?f[g[q].key(a,c,d,e)]=g[q].value(a,c,d,e):f[g[q].key]=g[q].value(a,c,d,e);return b?{value:f}:f};case r.ThisExpression:return function(a){return b?{value:a}:a};case r.LocalsExpression:return function(a,c){return b?{value:c}:c};case r.NGValueParameter:return function(a,
|
||||||
|
c,d){return b?{value:d}:d}}},"unary+":function(a,b){return function(d,c,e,f){d=a(d,c,e,f);d=t(d)?+d:0;return b?{value:d}:d}},"unary-":function(a,b){return function(d,c,e,f){d=a(d,c,e,f);d=t(d)?-d:-0;return b?{value:d}:d}},"unary!":function(a,b){return function(d,c,e,f){d=!a(d,c,e,f);return b?{value:d}:d}},"binary+":function(a,b,d){return function(c,e,f,g){var k=a(c,e,f,g);c=b(c,e,f,g);k=Ed(k,c);return d?{value:k}:k}},"binary-":function(a,b,d){return function(c,e,f,g){var k=a(c,e,f,g);c=b(c,e,f,g);
|
||||||
|
k=(t(k)?k:0)-(t(c)?c:0);return d?{value:k}:k}},"binary*":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)*b(c,e,f,g);return d?{value:c}:c}},"binary/":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)/b(c,e,f,g);return d?{value:c}:c}},"binary%":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)%b(c,e,f,g);return d?{value:c}:c}},"binary===":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)===b(c,e,f,g);return d?{value:c}:c}},"binary!==":function(a,b,d){return function(c,e,f,g){c=a(c,
|
||||||
|
e,f,g)!==b(c,e,f,g);return d?{value:c}:c}},"binary==":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)==b(c,e,f,g);return d?{value:c}:c}},"binary!=":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)!=b(c,e,f,g);return d?{value:c}:c}},"binary<":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)<b(c,e,f,g);return d?{value:c}:c}},"binary>":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)>b(c,e,f,g);return d?{value:c}:c}},"binary<=":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,
|
||||||
|
g)<=b(c,e,f,g);return d?{value:c}:c}},"binary>=":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)>=b(c,e,f,g);return d?{value:c}:c}},"binary&&":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)&&b(c,e,f,g);return d?{value:c}:c}},"binary||":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)||b(c,e,f,g);return d?{value:c}:c}},"ternary?:":function(a,b,d,c){return function(e,f,g,k){e=a(e,f,g,k)?b(e,f,g,k):d(e,f,g,k);return c?{value:e}:e}},value:function(a,b){return function(){return b?{context:void 0,
|
||||||
|
name:void 0,value:a}:a}},identifier:function(a,b,d){return function(c,e,f,g){c=e&&a in e?e:c;d&&1!==d&&c&&null==c[a]&&(c[a]={});e=c?c[a]:void 0;return b?{context:c,name:a,value:e}:e}},computedMember:function(a,b,d,c){return function(e,f,g,k){var h=a(e,f,g,k),l,m;null!=h&&(l=b(e,f,g,k),l+="",c&&1!==c&&h&&!h[l]&&(h[l]={}),m=h[l]);return d?{context:h,name:l,value:m}:m}},nonComputedMember:function(a,b,d,c){return function(e,f,g,k){e=a(e,f,g,k);c&&1!==c&&e&&null==e[b]&&(e[b]={});f=null!=e?e[b]:void 0;
|
||||||
|
return d?{context:e,name:b,value:f}:f}},inputs:function(a,b){return function(d,c,e,f){return f?f[b]:a(d,c,e)}}};yc.prototype={constructor:yc,parse:function(a){a=this.ast.ast(a);var b=this.astCompiler.compile(a);b.literal=0===a.body.length||1===a.body.length&&(a.body[0].expression.type===r.Literal||a.body[0].expression.type===r.ArrayExpression||a.body[0].expression.type===r.ObjectExpression);b.constant=a.constant;return b}};var wa=M("$sce"),oa={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",
|
||||||
|
JS:"js"},Bc=/_([a-z])/g,Gg=M("$compile"),X=u.document.createElement("a"),Od=ua(u.location.href);Pd.$inject=["$document"];ed.$inject=["$provide"];var Wd=22,Vd=".",Dc="0";Qd.$inject=["$locale"];Sd.$inject=["$locale"];var Rg={yyyy:da("FullYear",4,0,!1,!0),yy:da("FullYear",2,0,!0,!0),y:da("FullYear",1,0,!1,!0),MMMM:nb("Month"),MMM:nb("Month",!0),MM:da("Month",2,1),M:da("Month",1,1),LLLL:nb("Month",!1,!0),dd:da("Date",2),d:da("Date",1),HH:da("Hours",2),H:da("Hours",1),hh:da("Hours",2,-12),h:da("Hours",
|
||||||
|
1,-12),mm:da("Minutes",2),m:da("Minutes",1),ss:da("Seconds",2),s:da("Seconds",1),sss:da("Milliseconds",3),EEEE:nb("Day"),EEE:nb("Day",!0),a:function(a,b){return 12>a.getHours()?b.AMPMS[0]:b.AMPMS[1]},Z:function(a,b,d){a=-1*d;return a=(0<=a?"+":"")+(Nb(Math[0<a?"floor":"ceil"](a/60),2)+Nb(Math.abs(a%60),2))},ww:Yd(2),w:Yd(1),G:Ec,GG:Ec,GGG:Ec,GGGG:function(a,b){return 0>=a.getFullYear()?b.ERANAMES[0]:b.ERANAMES[1]}},Qg=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,
|
||||||
|
Pg=/^-?\d+$/;Rd.$inject=["$locale"];var Kg=ka(N),Lg=ka(vb);Td.$inject=["$parse"];var He=ka({restrict:"E",compile:function(a,b){if(!b.href&&!b.xlinkHref)return function(a,b){if("a"===b[0].nodeName.toLowerCase()){var e="[object SVGAnimatedString]"===ha.call(b.prop("href"))?"xlink:href":"href";b.on("click",function(a){b.attr(e)||a.preventDefault()})}}}}),wb={};p(Hb,function(a,b){function d(a,d,e){a.$watch(e[c],function(a){e.$set(b,!!a)})}if("multiple"!==a){var c=Ea("ng-"+b),e=d;"checked"===a&&(e=function(a,
|
||||||
|
b,e){e.ngModel!==e[c]&&d(a,b,e)});wb[c]=function(){return{restrict:"A",priority:100,link:e}}}});p(sd,function(a,b){wb[b]=function(){return{priority:100,link:function(a,c,e){if("ngPattern"===b&&"/"===e.ngPattern.charAt(0)&&(c=e.ngPattern.match(Vg))){e.$set("ngPattern",new RegExp(c[1],c[2]));return}a.$watch(e[b],function(a){e.$set(b,a)})}}}});p(["src","srcset","href"],function(a){var b=Ea("ng-"+a);wb[b]=function(){return{priority:99,link:function(d,c,e){var f=a,g=a;"href"===a&&"[object SVGAnimatedString]"===
|
||||||
|
ha.call(c.prop("href"))&&(g="xlinkHref",e.$attr[g]="xlink:href",f=null);e.$observe(b,function(b){b?(e.$set(g,b),Ca&&f&&c.prop(f,e[g])):"href"===a&&e.$set(g,null)})}}}});var Pb={$addControl:C,$$renameControl:function(a,b){a.$name=b},$removeControl:C,$setValidity:C,$setDirty:C,$setPristine:C,$setSubmitted:C};Ob.$inject=["$element","$attrs","$scope","$animate","$interpolate"];Ob.prototype={$rollbackViewValue:function(){p(this.$$controls,function(a){a.$rollbackViewValue()})},$commitViewValue:function(){p(this.$$controls,
|
||||||
|
function(a){a.$commitViewValue()})},$addControl:function(a){Ia(a.$name,"input");this.$$controls.push(a);a.$name&&(this[a.$name]=a);a.$$parentForm=this},$$renameControl:function(a,b){var d=a.$name;this[d]===a&&delete this[d];this[b]=a;a.$name=b},$removeControl:function(a){a.$name&&this[a.$name]===a&&delete this[a.$name];p(this.$pending,function(b,d){this.$setValidity(d,null,a)},this);p(this.$error,function(b,d){this.$setValidity(d,null,a)},this);p(this.$$success,function(b,d){this.$setValidity(d,null,
|
||||||
|
a)},this);db(this.$$controls,a);a.$$parentForm=Pb},$setDirty:function(){this.$$animate.removeClass(this.$$element,Za);this.$$animate.addClass(this.$$element,Ub);this.$dirty=!0;this.$pristine=!1;this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Za,Ub+" ng-submitted");this.$dirty=!1;this.$pristine=!0;this.$submitted=!1;p(this.$$controls,function(a){a.$setPristine()})},$setUntouched:function(){p(this.$$controls,function(a){a.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,
|
||||||
|
"ng-submitted");this.$submitted=!0;this.$$parentForm.$setSubmitted()}};ae({clazz:Ob,set:function(a,b,d){var c=a[b];c?-1===c.indexOf(d)&&c.push(d):a[b]=[d]},unset:function(a,b,d){var c=a[b];c&&(db(c,d),0===c.length&&delete a[b])}});var ie=function(a){return["$timeout","$parse",function(b,d){function c(a){return""===a?d('this[""]').assign:d(a).assign||C}return{name:"form",restrict:a?"EAC":"E",require:["form","^^?form"],controller:Ob,compile:function(d,f){d.addClass(Za).addClass(ob);var g=f.name?"name":
|
||||||
|
a&&f.ngForm?"ngForm":!1;return{pre:function(a,d,e,f){var n=f[0];if(!("action"in e)){var q=function(b){a.$apply(function(){n.$commitViewValue();n.$setSubmitted()});b.preventDefault()};d[0].addEventListener("submit",q);d.on("$destroy",function(){b(function(){d[0].removeEventListener("submit",q)},0,!1)})}(f[1]||n.$$parentForm).$addControl(n);var p=g?c(n.$name):C;g&&(p(a,n),e.$observe(g,function(b){n.$name!==b&&(p(a,void 0),n.$$parentForm.$$renameControl(n,b),p=c(n.$name),p(a,n))}));d.on("$destroy",function(){n.$$parentForm.$removeControl(n);
|
||||||
|
p(a,void 0);Q(n,Pb)})}}}}}]},Ie=ie(),Ue=ie(!0),Sg=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,dh=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,eh=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Tg=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,je=/^(\d{4,})-(\d{2})-(\d{2})$/,
|
||||||
|
ke=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Lc=/^(\d{4,})-W(\d\d)$/,le=/^(\d{4,})-(\d\d)$/,me=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ce=T();p(["date","datetime-local","month","time","week"],function(a){ce[a]=!0});var ne={text:function(a,b,d,c,e,f){Wa(a,b,d,c,e,f);Gc(c)},date:pb("date",je,Qb(je,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":pb("datetimelocal",ke,Qb(ke,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:pb("time",me,Qb(me,["HH","mm",
|
||||||
|
"ss","sss"]),"HH:mm:ss.sss"),week:pb("week",Lc,function(a,b){if(ea(a))return a;if(D(a)){Lc.lastIndex=0;var d=Lc.exec(a);if(d){var c=+d[1],e=+d[2],f=d=0,g=0,k=0,h=Xd(c),e=7*(e-1);b&&(d=b.getHours(),f=b.getMinutes(),g=b.getSeconds(),k=b.getMilliseconds());return new Date(c,0,h.getDate()+e,d,f,g,k)}}return NaN},"yyyy-Www"),month:pb("month",le,Qb(le,["yyyy","MM"]),"yyyy-MM"),number:function(a,b,d,c,e,f){Hc(a,b,d,c);de(c);Wa(a,b,d,c,e,f);var g,k;if(t(d.min)||d.ngMin)c.$validators.min=function(a){return c.$isEmpty(a)||
|
||||||
|
w(g)||a>=g},d.$observe("min",function(a){g=Xa(a);c.$validate()});if(t(d.max)||d.ngMax)c.$validators.max=function(a){return c.$isEmpty(a)||w(k)||a<=k},d.$observe("max",function(a){k=Xa(a);c.$validate()});if(t(d.step)||d.ngStep){var h;c.$validators.step=function(a,b){return c.$isEmpty(b)||w(h)||ee(b,g||0,h)};d.$observe("step",function(a){h=Xa(a);c.$validate()})}},url:function(a,b,d,c,e,f){Wa(a,b,d,c,e,f);Gc(c);c.$$parserName="url";c.$validators.url=function(a,b){var d=a||b;return c.$isEmpty(d)||dh.test(d)}},
|
||||||
|
email:function(a,b,d,c,e,f){Wa(a,b,d,c,e,f);Gc(c);c.$$parserName="email";c.$validators.email=function(a,b){var d=a||b;return c.$isEmpty(d)||eh.test(d)}},radio:function(a,b,d,c){var e=!d.ngTrim||"false"!==R(d.ngTrim);w(d.name)&&b.attr("name",++rb);b.on("click",function(a){var g;b[0].checked&&(g=d.value,e&&(g=R(g)),c.$setViewValue(g,a&&a.type))});c.$render=function(){var a=d.value;e&&(a=R(a));b[0].checked=a===c.$viewValue};d.$observe("value",c.$render)},range:function(a,b,d,c,e,f){function g(a,c){b.attr(a,
|
||||||
|
d[a]);d.$observe(a,c)}function k(a){n=Xa(a);U(c.$modelValue)||(m?(a=b.val(),n>a&&(a=n,b.val(a)),c.$setViewValue(a)):c.$validate())}function h(a){q=Xa(a);U(c.$modelValue)||(m?(a=b.val(),q<a&&(b.val(q),a=q<n?n:q),c.$setViewValue(a)):c.$validate())}function l(a){p=Xa(a);U(c.$modelValue)||(m&&c.$viewValue!==b.val()?c.$setViewValue(b.val()):c.$validate())}Hc(a,b,d,c);de(c);Wa(a,b,d,c,e,f);var m=c.$$hasNativeValidators&&"range"===b[0].type,n=m?0:void 0,q=m?100:void 0,p=m?1:void 0,r=b[0].validity;a=t(d.min);
|
||||||
|
e=t(d.max);f=t(d.step);var z=c.$render;c.$render=m&&t(r.rangeUnderflow)&&t(r.rangeOverflow)?function(){z();c.$setViewValue(b.val())}:z;a&&(c.$validators.min=m?function(){return!0}:function(a,b){return c.$isEmpty(b)||w(n)||b>=n},g("min",k));e&&(c.$validators.max=m?function(){return!0}:function(a,b){return c.$isEmpty(b)||w(q)||b<=q},g("max",h));f&&(c.$validators.step=m?function(){return!r.stepMismatch}:function(a,b){return c.$isEmpty(b)||w(p)||ee(b,n||0,p)},g("step",l))},checkbox:function(a,b,d,c,e,
|
||||||
|
f,g,k){var h=fe(k,a,"ngTrueValue",d.ngTrueValue,!0),l=fe(k,a,"ngFalseValue",d.ngFalseValue,!1);b.on("click",function(a){c.$setViewValue(b[0].checked,a&&a.type)});c.$render=function(){b[0].checked=c.$viewValue};c.$isEmpty=function(a){return!1===a};c.$formatters.push(function(a){return sa(a,h)});c.$parsers.push(function(a){return a?h:l})},hidden:C,button:C,submit:C,reset:C,file:C},Zc=["$browser","$sniffer","$filter","$parse",function(a,b,d,c){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,
|
||||||
|
f,g,k){k[0]&&(ne[N(g.type)]||ne.text)(e,f,g,k[0],b,a,d,c)}}}}],fh=/^(true|false|\d+)$/,mf=function(){function a(a,d,c){var e=t(c)?c:9===Ca?"":null;a.prop("value",e);d.$set("value",c)}return{restrict:"A",priority:100,compile:function(b,d){return fh.test(d.ngValue)?function(b,d,f){b=b.$eval(f.ngValue);a(d,f,b)}:function(b,d,f){b.$watch(f.ngValue,function(b){a(d,f,b)})}}}},Me=["$compile",function(a){return{restrict:"AC",compile:function(b){a.$$addBindingClass(b);return function(b,c,e){a.$$addBindingInfo(c,
|
||||||
|
e.ngBind);c=c[0];b.$watch(e.ngBind,function(a){c.textContent=fc(a)})}}}}],Oe=["$interpolate","$compile",function(a,b){return{compile:function(d){b.$$addBindingClass(d);return function(c,d,f){c=a(d.attr(f.$attr.ngBindTemplate));b.$$addBindingInfo(d,c.expressions);d=d[0];f.$observe("ngBindTemplate",function(a){d.textContent=w(a)?"":a})}}}}],Ne=["$sce","$parse","$compile",function(a,b,d){return{restrict:"A",compile:function(c,e){var f=b(e.ngBindHtml),g=b(e.ngBindHtml,function(b){return a.valueOf(b)});
|
||||||
|
d.$$addBindingClass(c);return function(b,c,e){d.$$addBindingInfo(c,e.ngBindHtml);b.$watch(g,function(){var d=f(b);c.html(a.getTrustedHtml(d)||"")})}}}}],lf=ka({restrict:"A",require:"ngModel",link:function(a,b,d,c){c.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),Pe=Jc("",!0),Re=Jc("Odd",0),Qe=Jc("Even",1),Se=Qa({compile:function(a,b){b.$set("ngCloak",void 0);a.removeClass("ng-cloak")}}),Te=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],dd={},gh={blur:!0,focus:!0};
|
||||||
|
p("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var b=Ea("ng-"+a);dd[b]=["$parse","$rootScope",function(d,c){return{restrict:"A",compile:function(e,f){var g=d(f[b]);return function(b,d){d.on(a,function(d){var e=function(){g(b,{$event:d})};gh[a]&&c.$$phase?b.$evalAsync(e):b.$apply(e)})}}}}]});var We=["$animate","$compile",function(a,b){return{multiElement:!0,transclude:"element",priority:600,
|
||||||
|
terminal:!0,restrict:"A",$$tlb:!0,link:function(d,c,e,f,g){var k,h,l;d.$watch(e.ngIf,function(d){d?h||g(function(d,f){h=f;d[d.length++]=b.$$createComment("end ngIf",e.ngIf);k={clone:d};a.enter(d,c.parent(),c)}):(l&&(l.remove(),l=null),h&&(h.$destroy(),h=null),k&&(l=ub(k.clone),a.leave(l).done(function(a){!1!==a&&(l=null)}),k=null))})}}}],Xe=["$templateRequest","$anchorScroll","$animate",function(a,b,d){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:$.noop,compile:function(c,
|
||||||
|
e){var f=e.ngInclude||e.src,g=e.onload||"",k=e.autoscroll;return function(c,e,m,n,q){var p=0,r,z,v,s=function(){z&&(z.remove(),z=null);r&&(r.$destroy(),r=null);v&&(d.leave(v).done(function(a){!1!==a&&(z=null)}),z=v,v=null)};c.$watch(f,function(f){var m=function(a){!1===a||!t(k)||k&&!c.$eval(k)||b()},y=++p;f?(a(f,!0).then(function(a){if(!c.$$destroyed&&y===p){var b=c.$new();n.template=a;a=q(b,function(a){s();d.enter(a,null,e).done(m)});r=b;v=a;r.$emit("$includeContentLoaded",f);c.$eval(g)}},function(){c.$$destroyed||
|
||||||
|
y!==p||(s(),c.$emit("$includeContentError",f))}),c.$emit("$includeContentRequested",f)):(s(),n.template=null)})}}}}],of=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(b,d,c,e){ha.call(d[0]).match(/SVG/)?(d.empty(),a(fd(e.template,u.document).childNodes)(b,function(a){d.append(a)},{futureParentElement:d})):(d.html(e.template),a(d.contents())(b))}}}],Ye=Qa({priority:450,compile:function(){return{pre:function(a,b,d){a.$eval(d.ngInit)}}}}),kf=function(){return{restrict:"A",
|
||||||
|
priority:100,require:"ngModel",link:function(a,b,d,c){var e=d.ngList||", ",f="false"!==d.ngTrim,g=f?R(e):e;c.$parsers.push(function(a){if(!w(a)){var b=[];a&&p(a.split(g),function(a){a&&b.push(f?R(a):a)});return b}});c.$formatters.push(function(a){if(I(a))return a.join(e)});c.$isEmpty=function(a){return!a||!a.length}}}},ob="ng-valid",$d="ng-invalid",Za="ng-pristine",Ub="ng-dirty",qb=M("ngModel");Rb.$inject="$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" ");
|
||||||
|
Rb.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var a=this.$$parse(this.$$attr.ngModel+"()"),b=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(b){var c=this.$$parsedNgModel(b);B(c)&&(c=a(b));return c};this.$$ngModelSet=function(a,c){B(this.$$parsedNgModel(a))?b(a,{$$$p:c}):this.$$parsedNgModelAssign(a,c)}}else if(!this.$$parsedNgModel.assign)throw qb("nonassign",this.$$attr.ngModel,Aa(this.$$element));},$render:C,$isEmpty:function(a){return w(a)||
|
||||||
|
""===a||null===a||a!==a},$$updateEmptyClasses:function(a){this.$isEmpty(a)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1;this.$pristine=!0;this.$$animate.removeClass(this.$$element,Ub);this.$$animate.addClass(this.$$element,Za)},$setDirty:function(){this.$dirty=!0;this.$pristine=!1;this.$$animate.removeClass(this.$$element,
|
||||||
|
Za);this.$$animate.addClass(this.$$element,Ub);this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1;this.$untouched=!0;this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0;this.$untouched=!1;this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce);this.$viewValue=this.$$lastCommittedViewValue;this.$render()},$validate:function(){if(!U(this.$modelValue)){var a=
|
||||||
|
this.$$lastCommittedViewValue,b=this.$$rawModelValue,d=this.$valid,c=this.$modelValue,e=this.$options.getOption("allowInvalid"),f=this;this.$$runValidators(b,a,function(a){e||d===a||(f.$modelValue=a?b:void 0,f.$modelValue!==c&&f.$$writeModelToScope())})}},$$runValidators:function(a,b,d){function c(){var c=!0;p(h.$validators,function(d,e){var g=Boolean(d(a,b));c=c&&g;f(e,g)});return c?!0:(p(h.$asyncValidators,function(a,b){f(b,null)}),!1)}function e(){var c=[],d=!0;p(h.$asyncValidators,function(e,
|
||||||
|
g){var h=e(a,b);if(!h||!B(h.then))throw qb("nopromise",h);f(g,void 0);c.push(h.then(function(){f(g,!0)},function(){d=!1;f(g,!1)}))});c.length?h.$$q.all(c).then(function(){g(d)},C):g(!0)}function f(a,b){k===h.$$currentValidationRunId&&h.$setValidity(a,b)}function g(a){k===h.$$currentValidationRunId&&d(a)}this.$$currentValidationRunId++;var k=this.$$currentValidationRunId,h=this;(function(){var a=h.$$parserName||"parse";if(w(h.$$parserValid))f(a,null);else return h.$$parserValid||(p(h.$validators,function(a,
|
||||||
|
b){f(b,null)}),p(h.$asyncValidators,function(a,b){f(b,null)})),f(a,h.$$parserValid),h.$$parserValid;return!0})()?c()?e():g(!1):g(!1)},$commitViewValue:function(){var a=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce);if(this.$$lastCommittedViewValue!==a||""===a&&this.$$hasNativeValidators)this.$$updateEmptyClasses(a),this.$$lastCommittedViewValue=a,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()},$$parseAndValidate:function(){var a=this.$$lastCommittedViewValue,b=this;if(this.$$parserValid=
|
||||||
|
w(a)?void 0:!0)for(var d=0;d<this.$parsers.length;d++)if(a=this.$parsers[d](a),w(a)){this.$$parserValid=!1;break}U(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var c=this.$modelValue,e=this.$options.getOption("allowInvalid");this.$$rawModelValue=a;e&&(this.$modelValue=a,b.$modelValue!==c&&b.$$writeModelToScope());this.$$runValidators(a,this.$$lastCommittedViewValue,function(d){e||(b.$modelValue=d?a:void 0,b.$modelValue!==c&&b.$$writeModelToScope())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,
|
||||||
|
this.$modelValue);p(this.$viewChangeListeners,function(a){try{a()}catch(b){this.$$exceptionHandler(b)}},this)},$setViewValue:function(a,b){this.$viewValue=a;this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(b)},$$debounceViewValueCommit:function(a){var b=this.$options.getOption("debounce");Y(b[a])?b=b[a]:Y(b["default"])&&(b=b["default"]);this.$$timeout.cancel(this.$$pendingDebounce);var d=this;0<b?this.$$pendingDebounce=this.$$timeout(function(){d.$commitViewValue()},b):this.$$scope.$root.$$phase?
|
||||||
|
this.$commitViewValue():this.$$scope.$apply(function(){d.$commitViewValue()})},$overrideModelOptions:function(a){this.$options=this.$options.createChild(a)},$processModelValue:function(){var a=this.$$format();this.$viewValue!==a&&(this.$$updateEmptyClasses(a),this.$viewValue=this.$$lastCommittedViewValue=a,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,C))},$$format:function(){for(var a=this.$formatters,b=a.length,d=this.$modelValue;b--;)d=a[b](d);return d},$$setModelValue:function(a){this.$modelValue=
|
||||||
|
this.$$rawModelValue=a;this.$$parserValid=void 0;this.$processModelValue()}};ae({clazz:Rb,set:function(a,b){a[b]=!0},unset:function(a,b){delete a[b]}});var jf=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Rb,priority:1,compile:function(b){b.addClass(Za).addClass("ng-untouched").addClass(ob);return{pre:function(a,b,e,f){var g=f[0];b=f[1]||g.$$parentForm;if(f=f[2])g.$options=f.$options;g.$$initGetterSetters();b.$addControl(g);e.$observe("name",
|
||||||
|
function(a){g.$name!==a&&g.$$parentForm.$$renameControl(g,a)});a.$on("$destroy",function(){g.$$parentForm.$removeControl(g)})},post:function(b,c,e,f){function g(){k.$setTouched()}var k=f[0];if(k.$options.getOption("updateOn"))c.on(k.$options.getOption("updateOn"),function(a){k.$$debounceViewValueCommit(a&&a.type)});c.on("blur",function(){k.$touched||(a.$$phase?b.$evalAsync(g):b.$apply(g))})}}}}}],Sb,hh=/(\s+|^)default(\s+|$)/;Kc.prototype={getOption:function(a){return this.$$options[a]},createChild:function(a){var b=
|
||||||
|
!1;a=Q({},a);p(a,function(d,c){"$inherit"===d?"*"===c?b=!0:(a[c]=this.$$options[c],"updateOn"===c&&(a.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===c&&(a.updateOnDefault=!1,a[c]=R(d.replace(hh,function(){a.updateOnDefault=!0;return" "})))},this);b&&(delete a["*"],ge(a,this.$$options));ge(a,Sb.$$options);return new Kc(a)}};Sb=new Kc({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var nf=function(){function a(a,d){this.$$attrs=a;this.$$scope=
|
||||||
|
d}a.$inject=["$attrs","$scope"];a.prototype={$onInit:function(){var a=this.parentCtrl?this.parentCtrl.$options:Sb,d=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=a.createChild(d)}};return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:a}},Ze=Qa({terminal:!0,priority:1E3}),ih=M("ngOptions"),jh=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,
|
||||||
|
gf=["$compile","$document","$parse",function(a,b,d){function c(a,b,c){function e(a,b,c,d,f){this.selectValue=a;this.viewValue=b;this.label=c;this.group=d;this.disabled=f}function f(a){var b;if(!p&&xa(a))b=a;else{b=[];for(var c in a)a.hasOwnProperty(c)&&"$"!==c.charAt(0)&&b.push(c)}return b}var n=a.match(jh);if(!n)throw ih("iexp",a,Aa(b));var q=n[5]||n[7],p=n[6];a=/ as /.test(n[0])&&n[1];var r=n[9];b=d(n[2]?n[1]:q);var t=a&&d(a)||b,v=r&&d(r),s=r?function(a,b){return v(c,b)}:function(a){return Pa(a)},
|
||||||
|
w=function(a,b){return s(a,B(a,b))},u=d(n[2]||n[1]),y=d(n[3]||""),J=d(n[4]||""),H=d(n[8]),A={},B=p?function(a,b){A[p]=b;A[q]=a;return A}:function(a){A[q]=a;return A};return{trackBy:r,getTrackByValue:w,getWatchables:d(H,function(a){var b=[];a=a||[];for(var d=f(a),e=d.length,g=0;g<e;g++){var k=a===d?g:d[g],l=a[k],k=B(l,k),l=s(l,k);b.push(l);if(n[2]||n[1])l=u(c,k),b.push(l);n[4]&&(k=J(c,k),b.push(k))}return b}),getOptions:function(){for(var a=[],b={},d=H(c)||[],g=f(d),k=g.length,n=0;n<k;n++){var q=d===
|
||||||
|
g?n:g[n],p=B(d[q],q),v=t(c,p),q=s(v,p),G=u(c,p),A=y(c,p),p=J(c,p),v=new e(q,v,G,A,p);a.push(v);b[q]=v}return{items:a,selectValueMap:b,getOptionFromViewValue:function(a){return b[w(a)]},getViewValueFromOption:function(a){return r?pa(a.viewValue):a.viewValue}}}}}var e=u.document.createElement("option"),f=u.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(a,b,c,d){d[0].registerOption=C},post:function(d,k,h,l){function m(a){var b=(a=s.getOptionFromViewValue(a))&&
|
||||||
|
a.element;b&&!b.selected&&(b.selected=!0);return a}function n(a,b){a.element=b;b.disabled=a.disabled;a.label!==b.label&&(b.label=a.label,b.textContent=a.label);b.value=a.selectValue}var q=l[0],r=l[1],w=h.multiple;l=0;for(var z=k.children(),v=z.length;l<v;l++)if(""===z[l].value){q.hasEmptyOption=!0;q.emptyOption=z.eq(l);break}k.empty();l=!!q.emptyOption;A(e.cloneNode(!1)).val("?");var s,u=c(h.ngOptions,k,d),B=b[0].createDocumentFragment();q.generateUnknownOptionValue=function(a){return"?"};w?(q.writeValue=
|
||||||
|
function(a){if(s){var b=a&&a.map(m)||[];s.items.forEach(function(a){a.element.selected&&-1===Array.prototype.indexOf.call(b,a)&&(a.element.selected=!1)})}},q.readValue=function(){var a=k.val()||[],b=[];p(a,function(a){(a=s.selectValueMap[a])&&!a.disabled&&b.push(s.getViewValueFromOption(a))});return b},u.trackBy&&d.$watchCollection(function(){if(I(r.$viewValue))return r.$viewValue.map(function(a){return u.getTrackByValue(a)})},function(){r.$render()})):(q.writeValue=function(a){if(s){var b=k[0].options[k[0].selectedIndex],
|
||||||
|
c=s.getOptionFromViewValue(a);b&&b.removeAttribute("selected");c?(k[0].value!==c.selectValue&&(q.removeUnknownOption(),k[0].value=c.selectValue,c.element.selected=!0),c.element.setAttribute("selected","selected")):q.selectUnknownOrEmptyOption(a)}},q.readValue=function(){var a=s.selectValueMap[k.val()];return a&&!a.disabled?(q.unselectEmptyOption(),q.removeUnknownOption(),s.getViewValueFromOption(a)):null},u.trackBy&&d.$watch(function(){return u.getTrackByValue(r.$viewValue)},function(){r.$render()}));
|
||||||
|
l&&(a(q.emptyOption)(d),k.prepend(q.emptyOption),8===q.emptyOption[0].nodeType?(q.hasEmptyOption=!1,q.registerOption=function(a,b){""===b.val()&&(q.hasEmptyOption=!0,q.emptyOption=b,q.emptyOption.removeClass("ng-scope"),r.$render(),b.on("$destroy",function(){var a=q.$isEmptyOptionSelected();q.hasEmptyOption=!1;q.emptyOption=void 0;a&&r.$render()}))}):q.emptyOption.removeClass("ng-scope"));d.$watchCollection(u.getWatchables,function(){var a=s&&q.readValue();if(s)for(var b=s.items.length-1;0<=b;b--){var c=
|
||||||
|
s.items[b];t(c.group)?Gb(c.element.parentNode):Gb(c.element)}s=u.getOptions();var d={};s.items.forEach(function(a){var b;if(t(a.group)){b=d[a.group];b||(b=f.cloneNode(!1),B.appendChild(b),b.label=null===a.group?"null":a.group,d[a.group]=b);var c=e.cloneNode(!1);b.appendChild(c);n(a,c)}else b=e.cloneNode(!1),B.appendChild(b),n(a,b)});k[0].appendChild(B);r.$render();r.$isEmpty(a)||(b=q.readValue(),(u.trackBy||w?sa(a,b):a===b)||(r.$setViewValue(b),r.$render()))})}}}}],$e=["$locale","$interpolate","$log",
|
||||||
|
function(a,b,d){var c=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(f,g,k){function h(a){g.text(a||"")}var l=k.count,m=k.$attr.when&&g.attr(k.$attr.when),n=k.offset||0,q=f.$eval(m)||{},r={},t=b.startSymbol(),z=b.endSymbol(),v=t+l+"-"+n+z,s=$.noop,u;p(k,function(a,b){var c=e.exec(b);c&&(c=(c[1]?"-":"")+N(c[2]),q[c]=g.attr(k.$attr[b]))});p(q,function(a,d){r[d]=b(a.replace(c,v))});f.$watch(l,function(b){var c=parseFloat(b),e=U(c);e||c in q||(c=a.pluralCat(c-n));c===u||e&&U(u)||(s(),e=r[c],w(e)?(null!=
|
||||||
|
b&&d.debug("ngPluralize: no rule defined for '"+c+"' in "+m),s=C,h()):s=f.$watch(e,h),u=c)})}}}],af=["$parse","$animate","$compile",function(a,b,d){var c=M("ngRepeat"),e=function(a,b,c,d,e,m,n){a[c]=d;e&&(a[e]=m);a.$index=b;a.$first=0===b;a.$last=b===n-1;a.$middle=!(a.$first||a.$last);a.$odd=!(a.$even=0===(b&1))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1E3,terminal:!0,$$tlb:!0,compile:function(f,g){var k=g.ngRepeat,h=d.$$createComment("end ngRepeat",k),l=k.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);
|
||||||
|
if(!l)throw c("iexp",k);var m=l[1],n=l[2],q=l[3],r=l[4],l=m.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/);if(!l)throw c("iidexp",m);var t=l[3]||l[1],z=l[2];if(q&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(q)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(q)))throw c("badident",q);var v,s,u,w,y={$id:Pa};r?v=a(r):(u=function(a,b){return Pa(b)},w=function(a){return a});return function(a,d,f,g,l){v&&(s=function(b,c,d){z&&(y[z]=b);y[t]=c;y.$index=
|
||||||
|
d;return v(a,y)});var m=T();a.$watchCollection(n,function(f){var g,n,r=d[0],v,y=T(),A,B,G,C,E,D,I;q&&(a[q]=f);if(xa(f))E=f,n=s||u;else for(I in n=s||w,E=[],f)ra.call(f,I)&&"$"!==I.charAt(0)&&E.push(I);A=E.length;I=Array(A);for(g=0;g<A;g++)if(B=f===E?g:E[g],G=f[B],C=n(B,G,g),m[C])D=m[C],delete m[C],y[C]=D,I[g]=D;else{if(y[C])throw p(I,function(a){a&&a.scope&&(m[a.id]=a)}),c("dupes",k,C,G);I[g]={id:C,scope:void 0,clone:void 0};y[C]=!0}for(v in m){D=m[v];C=ub(D.clone);b.leave(C);if(C[0].parentNode)for(g=
|
||||||
|
0,n=C.length;g<n;g++)C[g].$$NG_REMOVED=!0;D.scope.$destroy()}for(g=0;g<A;g++)if(B=f===E?g:E[g],G=f[B],D=I[g],D.scope){v=r;do v=v.nextSibling;while(v&&v.$$NG_REMOVED);D.clone[0]!==v&&b.move(ub(D.clone),null,r);r=D.clone[D.clone.length-1];e(D.scope,g,t,G,z,B,A)}else l(function(a,c){D.scope=c;var d=h.cloneNode(!1);a[a.length++]=d;b.enter(a,null,r);r=d;D.clone=a;y[D.id]=D;e(D.scope,g,t,G,z,B,A)});m=y})}}}}],bf=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,d,c){b.$watch(c.ngShow,
|
||||||
|
function(b){a[b?"removeClass":"addClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Ve=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,d,c){b.$watch(c.ngHide,function(b){a[b?"addClass":"removeClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],cf=Qa(function(a,b,d){a.$watch(d.ngStyle,function(a,d){d&&a!==d&&p(d,function(a,c){b.css(c,"")});a&&b.css(a)},!0)}),df=["$animate","$compile",function(a,b){return{require:"ngSwitch",controller:["$scope",function(){this.cases=
|
||||||
|
{}}],link:function(d,c,e,f){var g=[],k=[],h=[],l=[],m=function(a,b){return function(c){!1!==c&&a.splice(b,1)}};d.$watch(e.ngSwitch||e.on,function(c){for(var d,e;h.length;)a.cancel(h.pop());d=0;for(e=l.length;d<e;++d){var r=ub(k[d].clone);l[d].$destroy();(h[d]=a.leave(r)).done(m(h,d))}k.length=0;l.length=0;(g=f.cases["!"+c]||f.cases["?"])&&p(g,function(c){c.transclude(function(d,e){l.push(e);var f=c.element;d[d.length++]=b.$$createComment("end ngSwitchWhen");k.push({clone:d});a.enter(d,f.parent(),
|
||||||
|
f)})})})}}}],ef=Qa({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,d,c,e){a=d.ngSwitchWhen.split(d.ngSwitchWhenSeparator).sort().filter(function(a,b,c){return c[b-1]!==a});p(a,function(a){c.cases["!"+a]=c.cases["!"+a]||[];c.cases["!"+a].push({transclude:e,element:b})})}}),ff=Qa({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,d,c,e){c.cases["?"]=c.cases["?"]||[];c.cases["?"].push({transclude:e,element:b})}}),kh=M("ngTransclude"),
|
||||||
|
hf=["$compile",function(a){return{restrict:"EAC",terminal:!0,compile:function(b){var d=a(b.contents());b.empty();return function(a,b,f,g,k){function h(){d(a,function(a){b.append(a)})}if(!k)throw kh("orphan",Aa(b));f.ngTransclude===f.$attr.ngTransclude&&(f.ngTransclude="");f=f.ngTransclude||f.ngTranscludeSlot;k(function(a,c){var d;if(d=a.length)a:{d=0;for(var f=a.length;d<f;d++){var g=a[d];if(g.nodeType!==Oa||g.nodeValue.trim()){d=!0;break a}}d=void 0}d?b.append(a):(h(),c.$destroy())},null,f);f&&!k.isSlotFilled(f)&&
|
||||||
|
h()}}}}],Je=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(b,d){"text/ng-template"===d.type&&a.put(d.id,b[0].text)}}}],lh={$setViewValue:C,$render:C},mh=["$element","$scope",function(a,b){function d(){g||(g=!0,b.$$postDigest(function(){g=!1;e.ngModelCtrl.$render()}))}function c(a){k||(k=!0,b.$$postDigest(function(){b.$$destroyed||(k=!1,e.ngModelCtrl.$setViewValue(e.readValue()),a&&e.ngModelCtrl.$render())}))}var e=this,f=new Ib;e.selectValueMap={};e.ngModelCtrl=lh;
|
||||||
|
e.multiple=!1;e.unknownOption=A(u.document.createElement("option"));e.hasEmptyOption=!1;e.emptyOption=void 0;e.renderUnknownOption=function(b){b=e.generateUnknownOptionValue(b);e.unknownOption.val(b);a.prepend(e.unknownOption);Ga(e.unknownOption,!0);a.val(b)};e.updateUnknownOption=function(b){b=e.generateUnknownOptionValue(b);e.unknownOption.val(b);Ga(e.unknownOption,!0);a.val(b)};e.generateUnknownOptionValue=function(a){return"? "+Pa(a)+" ?"};e.removeUnknownOption=function(){e.unknownOption.parent()&&
|
||||||
|
e.unknownOption.remove()};e.selectEmptyOption=function(){e.emptyOption&&(a.val(""),Ga(e.emptyOption,!0))};e.unselectEmptyOption=function(){e.hasEmptyOption&&Ga(e.emptyOption,!1)};b.$on("$destroy",function(){e.renderUnknownOption=C});e.readValue=function(){var b=a.val(),b=b in e.selectValueMap?e.selectValueMap[b]:b;return e.hasOption(b)?b:null};e.writeValue=function(b){var c=a[0].options[a[0].selectedIndex];c&&Ga(A(c),!1);e.hasOption(b)?(e.removeUnknownOption(),c=Pa(b),a.val(c in e.selectValueMap?
|
||||||
|
c:b),Ga(A(a[0].options[a[0].selectedIndex]),!0)):e.selectUnknownOrEmptyOption(b)};e.addOption=function(a,b){if(8!==b[0].nodeType){Ia(a,'"option value"');""===a&&(e.hasEmptyOption=!0,e.emptyOption=b);var c=f.get(a)||0;f.set(a,c+1);d()}};e.removeOption=function(a){var b=f.get(a);b&&(1===b?(f.delete(a),""===a&&(e.hasEmptyOption=!1,e.emptyOption=void 0)):f.set(a,b-1))};e.hasOption=function(a){return!!f.get(a)};e.$hasEmptyOption=function(){return e.hasEmptyOption};e.$isUnknownOptionSelected=function(){return a[0].options[0]===
|
||||||
|
e.unknownOption[0]};e.$isEmptyOptionSelected=function(){return e.hasEmptyOption&&a[0].options[a[0].selectedIndex]===e.emptyOption[0]};e.selectUnknownOrEmptyOption=function(a){null==a&&e.emptyOption?(e.removeUnknownOption(),e.selectEmptyOption()):e.unknownOption.parent().length?e.updateUnknownOption(a):e.renderUnknownOption(a)};var g=!1,k=!1;e.registerOption=function(a,b,f,g,k){if(f.$attr.ngValue){var p,r=NaN;f.$observe("value",function(a){var d,f=b.prop("selected");t(r)&&(e.removeOption(p),delete e.selectValueMap[r],
|
||||||
|
d=!0);r=Pa(a);p=a;e.selectValueMap[r]=a;e.addOption(a,b);b.attr("value",r);d&&f&&c()})}else g?f.$observe("value",function(a){e.readValue();var d,f=b.prop("selected");t(p)&&(e.removeOption(p),d=!0);p=a;e.addOption(a,b);d&&f&&c()}):k?a.$watch(k,function(a,d){f.$set("value",a);var g=b.prop("selected");d!==a&&e.removeOption(d);e.addOption(a,b);d&&g&&c()}):e.addOption(f.value,b);f.$observe("disabled",function(a){if("true"===a||a&&b.prop("selected"))e.multiple?c(!0):(e.ngModelCtrl.$setViewValue(null),e.ngModelCtrl.$render())});
|
||||||
|
b.on("$destroy",function(){var a=e.readValue(),b=f.value;e.removeOption(b);d();(e.multiple&&a&&-1!==a.indexOf(b)||a===b)&&c(!0)})}}],Ke=function(){return{restrict:"E",require:["select","?ngModel"],controller:mh,priority:1,link:{pre:function(a,b,d,c){var e=c[0],f=c[1];if(f){if(e.ngModelCtrl=f,b.on("change",function(){e.removeUnknownOption();a.$apply(function(){f.$setViewValue(e.readValue())})}),d.multiple){e.multiple=!0;e.readValue=function(){var a=[];p(b.find("option"),function(b){b.selected&&!b.disabled&&
|
||||||
|
(b=b.value,a.push(b in e.selectValueMap?e.selectValueMap[b]:b))});return a};e.writeValue=function(a){p(b.find("option"),function(b){var c=!!a&&(-1!==Array.prototype.indexOf.call(a,b.value)||-1!==Array.prototype.indexOf.call(a,e.selectValueMap[b.value]));c!==b.selected&&Ga(A(b),c)})};var g,k=NaN;a.$watch(function(){k!==f.$viewValue||sa(g,f.$viewValue)||(g=ja(f.$viewValue),f.$render());k=f.$viewValue});f.$isEmpty=function(a){return!a||0===a.length}}}else e.registerOption=C},post:function(a,b,d,c){var e=
|
||||||
|
c[1];if(e){var f=c[0];e.$render=function(){f.writeValue(e.$viewValue)}}}}}},Le=["$interpolate",function(a){return{restrict:"E",priority:100,compile:function(b,d){var c,e;t(d.ngValue)||(t(d.value)?c=a(d.value,!0):(e=a(b.text(),!0))||d.$set("value",b.text()));return function(a,b,d){var h=b.parent();(h=h.data("$selectController")||h.parent().data("$selectController"))&&h.registerOption(a,b,d,c,e)}}}}],ad=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){c&&(d.required=!0,c.$validators.required=
|
||||||
|
function(a,b){return!d.required||!c.$isEmpty(b)},d.$observe("required",function(){c.$validate()}))}}},$c=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e,f=d.ngPattern||d.pattern;d.$observe("pattern",function(a){D(a)&&0<a.length&&(a=new RegExp("^"+a+"$"));if(a&&!a.test)throw M("ngPattern")("noregexp",f,a,Aa(b));e=a||void 0;c.$validate()});c.$validators.pattern=function(a,b){return c.$isEmpty(b)||w(e)||e.test(b)}}}}},cd=function(){return{restrict:"A",require:"?ngModel",
|
||||||
|
link:function(a,b,d,c){if(c){var e=-1;d.$observe("maxlength",function(a){a=Z(a);e=U(a)?-1:a;c.$validate()});c.$validators.maxlength=function(a,b){return 0>e||c.$isEmpty(b)||b.length<=e}}}}},bd=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e=0;d.$observe("minlength",function(a){e=Z(a)||0;c.$validate()});c.$validators.minlength=function(a,b){return c.$isEmpty(b)||b.length>=e}}}}};u.angular.bootstrap?u.console&&console.log("WARNING: Tried to load angular more than once."):
|
||||||
|
(Be(),Ee($),$.module("ngLocale",[],["$provide",function(a){function b(a){a+="";var b=a.indexOf(".");return-1==b?0:a.length-b-1}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
|
||||||
|
STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,
|
||||||
|
minFrac:2,minInt:1,negPre:"-\u00a4",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(a,c){var e=a|0,f=c;void 0===f&&(f=Math.min(b(a),3));Math.pow(10,f);return 1==e&&0==f?"one":"other"}})}]),A(function(){we(u.document,Uc)}))})(window);!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>');
|
||||||
|
//# sourceMappingURL=angular.min.js.map
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user