Spaces:
Configuration error
Configuration error
new test
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- modules/.DS_Store +0 -0
- modules/__pycache__/__init__.cpython-38.pyc +0 -0
- modules/__pycache__/tables.cpython-38.pyc +0 -0
- modules/mongo/.DS_Store +0 -0
- modules/mongo/LICENSE +675 -3
- modules/mongo/README.md +2 -2
- modules/mongo/build/lib/mongo_api/mongo_api.py +762 -3
- modules/mongo/build/lib/mongo_api/mongo_credentials.py +8 -3
- modules/mongo/dist/mongo_api-0.1.0-py2.py3-none-any.whl +0 -0
- modules/mongo/dist/mongo_api-0.1.2-py2.py3-none-any.whl +0 -0
- modules/mongo/mongo_api.egg-info/PKG-INFO +10 -3
- modules/mongo/mongo_api.egg-info/SOURCES.txt +10 -3
- modules/mongo/mongo_api.egg-info/dependency_links.txt +1 -3
- modules/mongo/mongo_api.egg-info/not-zip-safe +1 -3
- modules/mongo/mongo_api.egg-info/top_level.txt +1 -3
- modules/mongo/mongo_api/__pycache__/__init__.cpython-36.pyc +0 -0
- modules/mongo/mongo_api/__pycache__/__init__.cpython-37.pyc +0 -0
- modules/mongo/mongo_api/__pycache__/__init__.cpython-38.pyc +0 -0
- modules/mongo/mongo_api/__pycache__/mongo_api.cpython-36.pyc +0 -0
- modules/mongo/mongo_api/__pycache__/mongo_api.cpython-37.pyc +0 -0
- modules/mongo/mongo_api/__pycache__/mongo_api.cpython-38.pyc +0 -0
- modules/mongo/mongo_api/__pycache__/mongo_credentials.cpython-36.pyc +0 -0
- modules/mongo/mongo_api/__pycache__/mongo_credentials.cpython-37.pyc +0 -0
- modules/mongo/mongo_api/__pycache__/mongo_credentials.cpython-38.pyc +0 -0
- modules/mongo/mongo_api/mongo_api.py +762 -3
- modules/mongo/mongo_api/mongo_credentials.py +29 -3
- modules/mongo/requirements.txt +6 -3
- modules/mongo/setup.py +12 -3
- modules/quill/LICENSE +19 -3
- modules/quill/MANIFEST.in +1 -3
- modules/quill/README.md +2 -2
- modules/quill/preview.png +0 -0
- modules/quill/setup.py +21 -3
- modules/quill/streamlit_quill/__pycache__/quill.cpython-38.pyc +0 -0
- modules/quill/streamlit_quill/frontend/.env +6 -3
- modules/quill/streamlit_quill/frontend/.prettierrc +5 -3
- modules/quill/streamlit_quill/frontend/build/asset-manifest.json +23 -3
- modules/quill/streamlit_quill/frontend/build/bootstrap.min.css +0 -0
- modules/quill/streamlit_quill/frontend/build/index.html +1 -3
- modules/quill/streamlit_quill/frontend/build/precache-manifest.c41d16a9c1e698d05316f9c838e08045.js +266 -3
- modules/quill/streamlit_quill/frontend/build/service-worker.js +39 -3
- modules/quill/streamlit_quill/frontend/build/static/css/2.3e2d5b0e.chunk.css +9 -3
- modules/quill/streamlit_quill/frontend/build/static/css/2.3e2d5b0e.chunk.css.map +1 -3
- modules/quill/streamlit_quill/frontend/build/static/js/2.c8ea490a.chunk.js +0 -0
- modules/quill/streamlit_quill/frontend/build/static/js/2.c8ea490a.chunk.js.LICENSE.txt +89 -3
- modules/quill/streamlit_quill/frontend/build/static/js/2.c8ea490a.chunk.js.map +0 -0
- modules/quill/streamlit_quill/frontend/build/static/js/main.21a6f1da.chunk.js +2 -3
- modules/quill/streamlit_quill/frontend/build/static/js/main.21a6f1da.chunk.js.map +1 -3
- modules/quill/streamlit_quill/frontend/build/static/js/runtime-main.11ec9aca.js +2 -3
- modules/quill/streamlit_quill/frontend/build/static/js/runtime-main.11ec9aca.js.map +1 -3
modules/.DS_Store
CHANGED
Binary files a/modules/.DS_Store and b/modules/.DS_Store differ
|
|
modules/__pycache__/__init__.cpython-38.pyc
CHANGED
Binary files a/modules/__pycache__/__init__.cpython-38.pyc and b/modules/__pycache__/__init__.cpython-38.pyc differ
|
|
modules/__pycache__/tables.cpython-38.pyc
CHANGED
Binary files a/modules/__pycache__/tables.cpython-38.pyc and b/modules/__pycache__/tables.cpython-38.pyc differ
|
|
modules/mongo/.DS_Store
CHANGED
Binary files a/modules/mongo/.DS_Store and b/modules/mongo/.DS_Store differ
|
|
modules/mongo/LICENSE
CHANGED
@@ -1,3 +1,675 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
|
3 |
+
Version 3, 29 June 2007
|
4 |
+
|
5 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
6 |
+
Everyone is permitted to copy and distribute verbatim copies
|
7 |
+
of this license document, but changing it is not allowed.
|
8 |
+
|
9 |
+
Preamble
|
10 |
+
|
11 |
+
The GNU General Public License is a free, copyleft license for
|
12 |
+
software and other kinds of works.
|
13 |
+
|
14 |
+
The licenses for most software and other practical works are designed
|
15 |
+
to take away your freedom to share and change the works. By contrast,
|
16 |
+
the GNU General Public License is intended to guarantee your freedom to
|
17 |
+
share and change all versions of a program--to make sure it remains free
|
18 |
+
software for all its users. We, the Free Software Foundation, use the
|
19 |
+
GNU General Public License for most of our software; it applies also to
|
20 |
+
any other work released this way by its authors. You can apply it to
|
21 |
+
your programs, too.
|
22 |
+
|
23 |
+
When we speak of free software, we are referring to freedom, not
|
24 |
+
price. Our General Public Licenses are designed to make sure that you
|
25 |
+
have the freedom to distribute copies of free software (and charge for
|
26 |
+
them if you wish), that you receive source code or can get it if you
|
27 |
+
want it, that you can change the software or use pieces of it in new
|
28 |
+
free programs, and that you know you can do these things.
|
29 |
+
|
30 |
+
To protect your rights, we need to prevent others from denying you
|
31 |
+
these rights or asking you to surrender the rights. Therefore, you have
|
32 |
+
certain responsibilities if you distribute copies of the software, or if
|
33 |
+
you modify it: responsibilities to respect the freedom of others.
|
34 |
+
|
35 |
+
For example, if you distribute copies of such a program, whether
|
36 |
+
gratis or for a fee, you must pass on to the recipients the same
|
37 |
+
freedoms that you received. You must make sure that they, too, receive
|
38 |
+
or can get the source code. And you must show them these terms so they
|
39 |
+
know their rights.
|
40 |
+
|
41 |
+
Developers that use the GNU GPL protect your rights with two steps:
|
42 |
+
(1) assert copyright on the software, and (2) offer you this License
|
43 |
+
giving you legal permission to copy, distribute and/or modify it.
|
44 |
+
|
45 |
+
For the developers' and authors' protection, the GPL clearly explains
|
46 |
+
that there is no warranty for this free software. For both users' and
|
47 |
+
authors' sake, the GPL requires that modified versions be marked as
|
48 |
+
changed, so that their problems will not be attributed erroneously to
|
49 |
+
authors of previous versions.
|
50 |
+
|
51 |
+
Some devices are designed to deny users access to install or run
|
52 |
+
modified versions of the software inside them, although the manufacturer
|
53 |
+
can do so. This is fundamentally incompatible with the aim of
|
54 |
+
protecting users' freedom to change the software. The systematic
|
55 |
+
pattern of such abuse occurs in the area of products for individuals to
|
56 |
+
use, which is precisely where it is most unacceptable. Therefore, we
|
57 |
+
have designed this version of the GPL to prohibit the practice for those
|
58 |
+
products. If such problems arise substantially in other domains, we
|
59 |
+
stand ready to extend this provision to those domains in future versions
|
60 |
+
of the GPL, as needed to protect the freedom of users.
|
61 |
+
|
62 |
+
Finally, every program is threatened constantly by software patents.
|
63 |
+
States should not allow patents to restrict development and use of
|
64 |
+
software on general-purpose computers, but in those that do, we wish to
|
65 |
+
avoid the special danger that patents applied to a free program could
|
66 |
+
make it effectively proprietary. To prevent this, the GPL assures that
|
67 |
+
patents cannot be used to render the program non-free.
|
68 |
+
|
69 |
+
The precise terms and conditions for copying, distribution and
|
70 |
+
modification follow.
|
71 |
+
|
72 |
+
TERMS AND CONDITIONS
|
73 |
+
|
74 |
+
0. Definitions.
|
75 |
+
|
76 |
+
"This License" refers to version 3 of the GNU General Public License.
|
77 |
+
|
78 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
79 |
+
works, such as semiconductor masks.
|
80 |
+
|
81 |
+
"The Program" refers to any copyrightable work licensed under this
|
82 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
83 |
+
"recipients" may be individuals or organizations.
|
84 |
+
|
85 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
86 |
+
in a fashion requiring copyright permission, other than the making of an
|
87 |
+
exact copy. The resulting work is called a "modified version" of the
|
88 |
+
earlier work or a work "based on" the earlier work.
|
89 |
+
|
90 |
+
A "covered work" means either the unmodified Program or a work based
|
91 |
+
on the Program.
|
92 |
+
|
93 |
+
To "propagate" a work means to do anything with it that, without
|
94 |
+
permission, would make you directly or secondarily liable for
|
95 |
+
infringement under applicable copyright law, except executing it on a
|
96 |
+
computer or modifying a private copy. Propagation includes copying,
|
97 |
+
distribution (with or without modification), making available to the
|
98 |
+
public, and in some countries other activities as well.
|
99 |
+
|
100 |
+
To "convey" a work means any kind of propagation that enables other
|
101 |
+
parties to make or receive copies. Mere interaction with a user through
|
102 |
+
a computer network, with no transfer of a copy, is not conveying.
|
103 |
+
|
104 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
105 |
+
to the extent that it includes a convenient and prominently visible
|
106 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
107 |
+
tells the user that there is no warranty for the work (except to the
|
108 |
+
extent that warranties are provided), that licensees may convey the
|
109 |
+
work under this License, and how to view a copy of this License. If
|
110 |
+
the interface presents a list of user commands or options, such as a
|
111 |
+
menu, a prominent item in the list meets this criterion.
|
112 |
+
|
113 |
+
1. Source Code.
|
114 |
+
|
115 |
+
The "source code" for a work means the preferred form of the work
|
116 |
+
for making modifications to it. "Object code" means any non-source
|
117 |
+
form of a work.
|
118 |
+
|
119 |
+
A "Standard Interface" means an interface that either is an official
|
120 |
+
standard defined by a recognized standards body, or, in the case of
|
121 |
+
interfaces specified for a particular programming language, one that
|
122 |
+
is widely used among developers working in that language.
|
123 |
+
|
124 |
+
The "System Libraries" of an executable work include anything, other
|
125 |
+
than the work as a whole, that (a) is included in the normal form of
|
126 |
+
packaging a Major Component, but which is not part of that Major
|
127 |
+
Component, and (b) serves only to enable use of the work with that
|
128 |
+
Major Component, or to implement a Standard Interface for which an
|
129 |
+
implementation is available to the public in source code form. A
|
130 |
+
"Major Component", in this context, means a major essential component
|
131 |
+
(kernel, window system, and so on) of the specific operating system
|
132 |
+
(if any) on which the executable work runs, or a compiler used to
|
133 |
+
produce the work, or an object code interpreter used to run it.
|
134 |
+
|
135 |
+
The "Corresponding Source" for a work in object code form means all
|
136 |
+
the source code needed to generate, install, and (for an executable
|
137 |
+
work) run the object code and to modify the work, including scripts to
|
138 |
+
control those activities. However, it does not include the work's
|
139 |
+
System Libraries, or general-purpose tools or generally available free
|
140 |
+
programs which are used unmodified in performing those activities but
|
141 |
+
which are not part of the work. For example, Corresponding Source
|
142 |
+
includes interface definition files associated with source files for
|
143 |
+
the work, and the source code for shared libraries and dynamically
|
144 |
+
linked subprograms that the work is specifically designed to require,
|
145 |
+
such as by intimate data communication or control flow between those
|
146 |
+
subprograms and other parts of the work.
|
147 |
+
|
148 |
+
The Corresponding Source need not include anything that users
|
149 |
+
can regenerate automatically from other parts of the Corresponding
|
150 |
+
Source.
|
151 |
+
|
152 |
+
The Corresponding Source for a work in source code form is that
|
153 |
+
same work.
|
154 |
+
|
155 |
+
2. Basic Permissions.
|
156 |
+
|
157 |
+
All rights granted under this License are granted for the term of
|
158 |
+
copyright on the Program, and are irrevocable provided the stated
|
159 |
+
conditions are met. This License explicitly affirms your unlimited
|
160 |
+
permission to run the unmodified Program. The output from running a
|
161 |
+
covered work is covered by this License only if the output, given its
|
162 |
+
content, constitutes a covered work. This License acknowledges your
|
163 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
164 |
+
|
165 |
+
You may make, run and propagate covered works that you do not
|
166 |
+
convey, without conditions so long as your license otherwise remains
|
167 |
+
in force. You may convey covered works to others for the sole purpose
|
168 |
+
of having them make modifications exclusively for you, or provide you
|
169 |
+
with facilities for running those works, provided that you comply with
|
170 |
+
the terms of this License in conveying all material for which you do
|
171 |
+
not control copyright. Those thus making or running the covered works
|
172 |
+
for you must do so exclusively on your behalf, under your direction
|
173 |
+
and control, on terms that prohibit them from making any copies of
|
174 |
+
your copyrighted material outside their relationship with you.
|
175 |
+
|
176 |
+
Conveying under any other circumstances is permitted solely under
|
177 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
178 |
+
makes it unnecessary.
|
179 |
+
|
180 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
181 |
+
|
182 |
+
No covered work shall be deemed part of an effective technological
|
183 |
+
measure under any applicable law fulfilling obligations under article
|
184 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
185 |
+
similar laws prohibiting or restricting circumvention of such
|
186 |
+
measures.
|
187 |
+
|
188 |
+
When you convey a covered work, you waive any legal power to forbid
|
189 |
+
circumvention of technological measures to the extent such circumvention
|
190 |
+
is effected by exercising rights under this License with respect to
|
191 |
+
the covered work, and you disclaim any intention to limit operation or
|
192 |
+
modification of the work as a means of enforcing, against the work's
|
193 |
+
users, your or third parties' legal rights to forbid circumvention of
|
194 |
+
technological measures.
|
195 |
+
|
196 |
+
4. Conveying Verbatim Copies.
|
197 |
+
|
198 |
+
You may convey verbatim copies of the Program's source code as you
|
199 |
+
receive it, in any medium, provided that you conspicuously and
|
200 |
+
appropriately publish on each copy an appropriate copyright notice;
|
201 |
+
keep intact all notices stating that this License and any
|
202 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
203 |
+
keep intact all notices of the absence of any warranty; and give all
|
204 |
+
recipients a copy of this License along with the Program.
|
205 |
+
|
206 |
+
You may charge any price or no price for each copy that you convey,
|
207 |
+
and you may offer support or warranty protection for a fee.
|
208 |
+
|
209 |
+
5. Conveying Modified Source Versions.
|
210 |
+
|
211 |
+
You may convey a work based on the Program, or the modifications to
|
212 |
+
produce it from the Program, in the form of source code under the
|
213 |
+
terms of section 4, provided that you also meet all of these conditions:
|
214 |
+
|
215 |
+
a) The work must carry prominent notices stating that you modified
|
216 |
+
it, and giving a relevant date.
|
217 |
+
|
218 |
+
b) The work must carry prominent notices stating that it is
|
219 |
+
released under this License and any conditions added under section
|
220 |
+
7. This requirement modifies the requirement in section 4 to
|
221 |
+
"keep intact all notices".
|
222 |
+
|
223 |
+
c) You must license the entire work, as a whole, under this
|
224 |
+
License to anyone who comes into possession of a copy. This
|
225 |
+
License will therefore apply, along with any applicable section 7
|
226 |
+
additional terms, to the whole of the work, and all its parts,
|
227 |
+
regardless of how they are packaged. This License gives no
|
228 |
+
permission to license the work in any other way, but it does not
|
229 |
+
invalidate such permission if you have separately received it.
|
230 |
+
|
231 |
+
d) If the work has interactive user interfaces, each must display
|
232 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
233 |
+
interfaces that do not display Appropriate Legal Notices, your
|
234 |
+
work need not make them do so.
|
235 |
+
|
236 |
+
A compilation of a covered work with other separate and independent
|
237 |
+
works, which are not by their nature extensions of the covered work,
|
238 |
+
and which are not combined with it such as to form a larger program,
|
239 |
+
in or on a volume of a storage or distribution medium, is called an
|
240 |
+
"aggregate" if the compilation and its resulting copyright are not
|
241 |
+
used to limit the access or legal rights of the compilation's users
|
242 |
+
beyond what the individual works permit. Inclusion of a covered work
|
243 |
+
in an aggregate does not cause this License to apply to the other
|
244 |
+
parts of the aggregate.
|
245 |
+
|
246 |
+
6. Conveying Non-Source Forms.
|
247 |
+
|
248 |
+
You may convey a covered work in object code form under the terms
|
249 |
+
of sections 4 and 5, provided that you also convey the
|
250 |
+
machine-readable Corresponding Source under the terms of this License,
|
251 |
+
in one of these ways:
|
252 |
+
|
253 |
+
a) Convey the object code in, or embodied in, a physical product
|
254 |
+
(including a physical distribution medium), accompanied by the
|
255 |
+
Corresponding Source fixed on a durable physical medium
|
256 |
+
customarily used for software interchange.
|
257 |
+
|
258 |
+
b) Convey the object code in, or embodied in, a physical product
|
259 |
+
(including a physical distribution medium), accompanied by a
|
260 |
+
written offer, valid for at least three years and valid for as
|
261 |
+
long as you offer spare parts or customer support for that product
|
262 |
+
model, to give anyone who possesses the object code either (1) a
|
263 |
+
copy of the Corresponding Source for all the software in the
|
264 |
+
product that is covered by this License, on a durable physical
|
265 |
+
medium customarily used for software interchange, for a price no
|
266 |
+
more than your reasonable cost of physically performing this
|
267 |
+
conveying of source, or (2) access to copy the
|
268 |
+
Corresponding Source from a network server at no charge.
|
269 |
+
|
270 |
+
c) Convey individual copies of the object code with a copy of the
|
271 |
+
written offer to provide the Corresponding Source. This
|
272 |
+
alternative is allowed only occasionally and noncommercially, and
|
273 |
+
only if you received the object code with such an offer, in accord
|
274 |
+
with subsection 6b.
|
275 |
+
|
276 |
+
d) Convey the object code by offering access from a designated
|
277 |
+
place (gratis or for a charge), and offer equivalent access to the
|
278 |
+
Corresponding Source in the same way through the same place at no
|
279 |
+
further charge. You need not require recipients to copy the
|
280 |
+
Corresponding Source along with the object code. If the place to
|
281 |
+
copy the object code is a network server, the Corresponding Source
|
282 |
+
may be on a different server (operated by you or a third party)
|
283 |
+
that supports equivalent copying facilities, provided you maintain
|
284 |
+
clear directions next to the object code saying where to find the
|
285 |
+
Corresponding Source. Regardless of what server hosts the
|
286 |
+
Corresponding Source, you remain obligated to ensure that it is
|
287 |
+
available for as long as needed to satisfy these requirements.
|
288 |
+
|
289 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
290 |
+
you inform other peers where the object code and Corresponding
|
291 |
+
Source of the work are being offered to the general public at no
|
292 |
+
charge under subsection 6d.
|
293 |
+
|
294 |
+
A separable portion of the object code, whose source code is excluded
|
295 |
+
from the Corresponding Source as a System Library, need not be
|
296 |
+
included in conveying the object code work.
|
297 |
+
|
298 |
+
A "User Product" is either (1) a "consumer product", which means any
|
299 |
+
tangible personal property which is normally used for personal, family,
|
300 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
301 |
+
into a dwelling. In determining whether a product is a consumer product,
|
302 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
303 |
+
product received by a particular user, "normally used" refers to a
|
304 |
+
typical or common use of that class of product, regardless of the status
|
305 |
+
of the particular user or of the way in which the particular user
|
306 |
+
actually uses, or expects or is expected to use, the product. A product
|
307 |
+
is a consumer product regardless of whether the product has substantial
|
308 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
309 |
+
the only significant mode of use of the product.
|
310 |
+
|
311 |
+
"Installation Information" for a User Product means any methods,
|
312 |
+
procedures, authorization keys, or other information required to install
|
313 |
+
and execute modified versions of a covered work in that User Product from
|
314 |
+
a modified version of its Corresponding Source. The information must
|
315 |
+
suffice to ensure that the continued functioning of the modified object
|
316 |
+
code is in no case prevented or interfered with solely because
|
317 |
+
modification has been made.
|
318 |
+
|
319 |
+
If you convey an object code work under this section in, or with, or
|
320 |
+
specifically for use in, a User Product, and the conveying occurs as
|
321 |
+
part of a transaction in which the right of possession and use of the
|
322 |
+
User Product is transferred to the recipient in perpetuity or for a
|
323 |
+
fixed term (regardless of how the transaction is characterized), the
|
324 |
+
Corresponding Source conveyed under this section must be accompanied
|
325 |
+
by the Installation Information. But this requirement does not apply
|
326 |
+
if neither you nor any third party retains the ability to install
|
327 |
+
modified object code on the User Product (for example, the work has
|
328 |
+
been installed in ROM).
|
329 |
+
|
330 |
+
The requirement to provide Installation Information does not include a
|
331 |
+
requirement to continue to provide support service, warranty, or updates
|
332 |
+
for a work that has been modified or installed by the recipient, or for
|
333 |
+
the User Product in which it has been modified or installed. Access to a
|
334 |
+
network may be denied when the modification itself materially and
|
335 |
+
adversely affects the operation of the network or violates the rules and
|
336 |
+
protocols for communication across the network.
|
337 |
+
|
338 |
+
Corresponding Source conveyed, and Installation Information provided,
|
339 |
+
in accord with this section must be in a format that is publicly
|
340 |
+
documented (and with an implementation available to the public in
|
341 |
+
source code form), and must require no special password or key for
|
342 |
+
unpacking, reading or copying.
|
343 |
+
|
344 |
+
7. Additional Terms.
|
345 |
+
|
346 |
+
"Additional permissions" are terms that supplement the terms of this
|
347 |
+
License by making exceptions from one or more of its conditions.
|
348 |
+
Additional permissions that are applicable to the entire Program shall
|
349 |
+
be treated as though they were included in this License, to the extent
|
350 |
+
that they are valid under applicable law. If additional permissions
|
351 |
+
apply only to part of the Program, that part may be used separately
|
352 |
+
under those permissions, but the entire Program remains governed by
|
353 |
+
this License without regard to the additional permissions.
|
354 |
+
|
355 |
+
When you convey a copy of a covered work, you may at your option
|
356 |
+
remove any additional permissions from that copy, or from any part of
|
357 |
+
it. (Additional permissions may be written to require their own
|
358 |
+
removal in certain cases when you modify the work.) You may place
|
359 |
+
additional permissions on material, added by you to a covered work,
|
360 |
+
for which you have or can give appropriate copyright permission.
|
361 |
+
|
362 |
+
Notwithstanding any other provision of this License, for material you
|
363 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
364 |
+
that material) supplement the terms of this License with terms:
|
365 |
+
|
366 |
+
a) Disclaiming warranty or limiting liability differently from the
|
367 |
+
terms of sections 15 and 16 of this License; or
|
368 |
+
|
369 |
+
b) Requiring preservation of specified reasonable legal notices or
|
370 |
+
author attributions in that material or in the Appropriate Legal
|
371 |
+
Notices displayed by works containing it; or
|
372 |
+
|
373 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
374 |
+
requiring that modified versions of such material be marked in
|
375 |
+
reasonable ways as different from the original version; or
|
376 |
+
|
377 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
378 |
+
authors of the material; or
|
379 |
+
|
380 |
+
e) Declining to grant rights under trademark law for use of some
|
381 |
+
trade names, trademarks, or service marks; or
|
382 |
+
|
383 |
+
f) Requiring indemnification of licensors and authors of that
|
384 |
+
material by anyone who conveys the material (or modified versions of
|
385 |
+
it) with contractual assumptions of liability to the recipient, for
|
386 |
+
any liability that these contractual assumptions directly impose on
|
387 |
+
those licensors and authors.
|
388 |
+
|
389 |
+
All other non-permissive additional terms are considered "further
|
390 |
+
restrictions" within the meaning of section 10. If the Program as you
|
391 |
+
received it, or any part of it, contains a notice stating that it is
|
392 |
+
governed by this License along with a term that is a further
|
393 |
+
restriction, you may remove that term. If a license document contains
|
394 |
+
a further restriction but permits relicensing or conveying under this
|
395 |
+
License, you may add to a covered work material governed by the terms
|
396 |
+
of that license document, provided that the further restriction does
|
397 |
+
not survive such relicensing or conveying.
|
398 |
+
|
399 |
+
If you add terms to a covered work in accord with this section, you
|
400 |
+
must place, in the relevant source files, a statement of the
|
401 |
+
additional terms that apply to those files, or a notice indicating
|
402 |
+
where to find the applicable terms.
|
403 |
+
|
404 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
405 |
+
form of a separately written license, or stated as exceptions;
|
406 |
+
the above requirements apply either way.
|
407 |
+
|
408 |
+
8. Termination.
|
409 |
+
|
410 |
+
You may not propagate or modify a covered work except as expressly
|
411 |
+
provided under this License. Any attempt otherwise to propagate or
|
412 |
+
modify it is void, and will automatically terminate your rights under
|
413 |
+
this License (including any patent licenses granted under the third
|
414 |
+
paragraph of section 11).
|
415 |
+
|
416 |
+
However, if you cease all violation of this License, then your
|
417 |
+
license from a particular copyright holder is reinstated (a)
|
418 |
+
provisionally, unless and until the copyright holder explicitly and
|
419 |
+
finally terminates your license, and (b) permanently, if the copyright
|
420 |
+
holder fails to notify you of the violation by some reasonable means
|
421 |
+
prior to 60 days after the cessation.
|
422 |
+
|
423 |
+
Moreover, your license from a particular copyright holder is
|
424 |
+
reinstated permanently if the copyright holder notifies you of the
|
425 |
+
violation by some reasonable means, this is the first time you have
|
426 |
+
received notice of violation of this License (for any work) from that
|
427 |
+
copyright holder, and you cure the violation prior to 30 days after
|
428 |
+
your receipt of the notice.
|
429 |
+
|
430 |
+
Termination of your rights under this section does not terminate the
|
431 |
+
licenses of parties who have received copies or rights from you under
|
432 |
+
this License. If your rights have been terminated and not permanently
|
433 |
+
reinstated, you do not qualify to receive new licenses for the same
|
434 |
+
material under section 10.
|
435 |
+
|
436 |
+
9. Acceptance Not Required for Having Copies.
|
437 |
+
|
438 |
+
You are not required to accept this License in order to receive or
|
439 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
440 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
441 |
+
to receive a copy likewise does not require acceptance. However,
|
442 |
+
nothing other than this License grants you permission to propagate or
|
443 |
+
modify any covered work. These actions infringe copyright if you do
|
444 |
+
not accept this License. Therefore, by modifying or propagating a
|
445 |
+
covered work, you indicate your acceptance of this License to do so.
|
446 |
+
|
447 |
+
10. Automatic Licensing of Downstream Recipients.
|
448 |
+
|
449 |
+
Each time you convey a covered work, the recipient automatically
|
450 |
+
receives a license from the original licensors, to run, modify and
|
451 |
+
propagate that work, subject to this License. You are not responsible
|
452 |
+
for enforcing compliance by third parties with this License.
|
453 |
+
|
454 |
+
An "entity transaction" is a transaction transferring control of an
|
455 |
+
organization, or substantially all assets of one, or subdividing an
|
456 |
+
organization, or merging organizations. If propagation of a covered
|
457 |
+
work results from an entity transaction, each party to that
|
458 |
+
transaction who receives a copy of the work also receives whatever
|
459 |
+
licenses to the work the party's predecessor in interest had or could
|
460 |
+
give under the previous paragraph, plus a right to possession of the
|
461 |
+
Corresponding Source of the work from the predecessor in interest, if
|
462 |
+
the predecessor has it or can get it with reasonable efforts.
|
463 |
+
|
464 |
+
You may not impose any further restrictions on the exercise of the
|
465 |
+
rights granted or affirmed under this License. For example, you may
|
466 |
+
not impose a license fee, royalty, or other charge for exercise of
|
467 |
+
rights granted under this License, and you may not initiate litigation
|
468 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
469 |
+
any patent claim is infringed by making, using, selling, offering for
|
470 |
+
sale, or importing the Program or any portion of it.
|
471 |
+
|
472 |
+
11. Patents.
|
473 |
+
|
474 |
+
A "contributor" is a copyright holder who authorizes use under this
|
475 |
+
License of the Program or a work on which the Program is based. The
|
476 |
+
work thus licensed is called the contributor's "contributor version".
|
477 |
+
|
478 |
+
A contributor's "essential patent claims" are all patent claims
|
479 |
+
owned or controlled by the contributor, whether already acquired or
|
480 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
481 |
+
by this License, of making, using, or selling its contributor version,
|
482 |
+
but do not include claims that would be infringed only as a
|
483 |
+
consequence of further modification of the contributor version. For
|
484 |
+
purposes of this definition, "control" includes the right to grant
|
485 |
+
patent sublicenses in a manner consistent with the requirements of
|
486 |
+
this License.
|
487 |
+
|
488 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
489 |
+
patent license under the contributor's essential patent claims, to
|
490 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
491 |
+
propagate the contents of its contributor version.
|
492 |
+
|
493 |
+
In the following three paragraphs, a "patent license" is any express
|
494 |
+
agreement or commitment, however denominated, not to enforce a patent
|
495 |
+
(such as an express permission to practice a patent or covenant not to
|
496 |
+
sue for patent infringement). To "grant" such a patent license to a
|
497 |
+
party means to make such an agreement or commitment not to enforce a
|
498 |
+
patent against the party.
|
499 |
+
|
500 |
+
If you convey a covered work, knowingly relying on a patent license,
|
501 |
+
and the Corresponding Source of the work is not available for anyone
|
502 |
+
to copy, free of charge and under the terms of this License, through a
|
503 |
+
publicly available network server or other readily accessible means,
|
504 |
+
then you must either (1) cause the Corresponding Source to be so
|
505 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
506 |
+
patent license for this particular work, or (3) arrange, in a manner
|
507 |
+
consistent with the requirements of this License, to extend the patent
|
508 |
+
license to downstream recipients. "Knowingly relying" means you have
|
509 |
+
actual knowledge that, but for the patent license, your conveying the
|
510 |
+
covered work in a country, or your recipient's use of the covered work
|
511 |
+
in a country, would infringe one or more identifiable patents in that
|
512 |
+
country that you have reason to believe are valid.
|
513 |
+
|
514 |
+
If, pursuant to or in connection with a single transaction or
|
515 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
516 |
+
covered work, and grant a patent license to some of the parties
|
517 |
+
receiving the covered work authorizing them to use, propagate, modify
|
518 |
+
or convey a specific copy of the covered work, then the patent license
|
519 |
+
you grant is automatically extended to all recipients of the covered
|
520 |
+
work and works based on it.
|
521 |
+
|
522 |
+
A patent license is "discriminatory" if it does not include within
|
523 |
+
the scope of its coverage, prohibits the exercise of, or is
|
524 |
+
conditioned on the non-exercise of one or more of the rights that are
|
525 |
+
specifically granted under this License. You may not convey a covered
|
526 |
+
work if you are a party to an arrangement with a third party that is
|
527 |
+
in the business of distributing software, under which you make payment
|
528 |
+
to the third party based on the extent of your activity of conveying
|
529 |
+
the work, and under which the third party grants, to any of the
|
530 |
+
parties who would receive the covered work from you, a discriminatory
|
531 |
+
patent license (a) in connection with copies of the covered work
|
532 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
533 |
+
for and in connection with specific products or compilations that
|
534 |
+
contain the covered work, unless you entered into that arrangement,
|
535 |
+
or that patent license was granted, prior to 28 March 2007.
|
536 |
+
|
537 |
+
Nothing in this License shall be construed as excluding or limiting
|
538 |
+
any implied license or other defenses to infringement that may
|
539 |
+
otherwise be available to you under applicable patent law.
|
540 |
+
|
541 |
+
12. No Surrender of Others' Freedom.
|
542 |
+
|
543 |
+
If conditions are imposed on you (whether by court order, agreement or
|
544 |
+
otherwise) that contradict the conditions of this License, they do not
|
545 |
+
excuse you from the conditions of this License. If you cannot convey a
|
546 |
+
covered work so as to satisfy simultaneously your obligations under this
|
547 |
+
License and any other pertinent obligations, then as a consequence you may
|
548 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
549 |
+
to collect a royalty for further conveying from those to whom you convey
|
550 |
+
the Program, the only way you could satisfy both those terms and this
|
551 |
+
License would be to refrain entirely from conveying the Program.
|
552 |
+
|
553 |
+
13. Use with the GNU Affero General Public License.
|
554 |
+
|
555 |
+
Notwithstanding any other provision of this License, you have
|
556 |
+
permission to link or combine any covered work with a work licensed
|
557 |
+
under version 3 of the GNU Affero General Public License into a single
|
558 |
+
combined work, and to convey the resulting work. The terms of this
|
559 |
+
License will continue to apply to the part which is the covered work,
|
560 |
+
but the special requirements of the GNU Affero General Public License,
|
561 |
+
section 13, concerning interaction through a network will apply to the
|
562 |
+
combination as such.
|
563 |
+
|
564 |
+
14. Revised Versions of this License.
|
565 |
+
|
566 |
+
The Free Software Foundation may publish revised and/or new versions of
|
567 |
+
the GNU General Public License from time to time. Such new versions will
|
568 |
+
be similar in spirit to the present version, but may differ in detail to
|
569 |
+
address new problems or concerns.
|
570 |
+
|
571 |
+
Each version is given a distinguishing version number. If the
|
572 |
+
Program specifies that a certain numbered version of the GNU General
|
573 |
+
Public License "or any later version" applies to it, you have the
|
574 |
+
option of following the terms and conditions either of that numbered
|
575 |
+
version or of any later version published by the Free Software
|
576 |
+
Foundation. If the Program does not specify a version number of the
|
577 |
+
GNU General Public License, you may choose any version ever published
|
578 |
+
by the Free Software Foundation.
|
579 |
+
|
580 |
+
If the Program specifies that a proxy can decide which future
|
581 |
+
versions of the GNU General Public License can be used, that proxy's
|
582 |
+
public statement of acceptance of a version permanently authorizes you
|
583 |
+
to choose that version for the Program.
|
584 |
+
|
585 |
+
Later license versions may give you additional or different
|
586 |
+
permissions. However, no additional obligations are imposed on any
|
587 |
+
author or copyright holder as a result of your choosing to follow a
|
588 |
+
later version.
|
589 |
+
|
590 |
+
15. Disclaimer of Warranty.
|
591 |
+
|
592 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
593 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
594 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
595 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
596 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
597 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
598 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
599 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
600 |
+
|
601 |
+
16. Limitation of Liability.
|
602 |
+
|
603 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
604 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
605 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
606 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
607 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
608 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
609 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
610 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
611 |
+
SUCH DAMAGES.
|
612 |
+
|
613 |
+
17. Interpretation of Sections 15 and 16.
|
614 |
+
|
615 |
+
If the disclaimer of warranty and limitation of liability provided
|
616 |
+
above cannot be given local legal effect according to their terms,
|
617 |
+
reviewing courts shall apply local law that most closely approximates
|
618 |
+
an absolute waiver of all civil liability in connection with the
|
619 |
+
Program, unless a warranty or assumption of liability accompanies a
|
620 |
+
copy of the Program in return for a fee.
|
621 |
+
|
622 |
+
END OF TERMS AND CONDITIONS
|
623 |
+
|
624 |
+
How to Apply These Terms to Your New Programs
|
625 |
+
|
626 |
+
If you develop a new program, and you want it to be of the greatest
|
627 |
+
possible use to the public, the best way to achieve this is to make it
|
628 |
+
free software which everyone can redistribute and change under these terms.
|
629 |
+
|
630 |
+
To do so, attach the following notices to the program. It is safest
|
631 |
+
to attach them to the start of each source file to most effectively
|
632 |
+
state the exclusion of warranty; and each file should have at least
|
633 |
+
the "copyright" line and a pointer to where the full notice is found.
|
634 |
+
|
635 |
+
<one line to give the program's name and a brief idea of what it does.>
|
636 |
+
Copyright (C) <year> <name of author>
|
637 |
+
|
638 |
+
This program is free software: you can redistribute it and/or modify
|
639 |
+
it under the terms of the GNU General Public License as published by
|
640 |
+
the Free Software Foundation, either version 3 of the License, or
|
641 |
+
(at your option) any later version.
|
642 |
+
|
643 |
+
This program is distributed in the hope that it will be useful,
|
644 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
645 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
646 |
+
GNU General Public License for more details.
|
647 |
+
|
648 |
+
You should have received a copy of the GNU General Public License
|
649 |
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
650 |
+
|
651 |
+
Also add information on how to contact you by electronic and paper mail.
|
652 |
+
|
653 |
+
If the program does terminal interaction, make it output a short
|
654 |
+
notice like this when it starts in an interactive mode:
|
655 |
+
|
656 |
+
<program> Copyright (C) <year> <name of author>
|
657 |
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
658 |
+
This is free software, and you are welcome to redistribute it
|
659 |
+
under certain conditions; type `show c' for details.
|
660 |
+
|
661 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
662 |
+
parts of the General Public License. Of course, your program's commands
|
663 |
+
might be different; for a GUI interface, you would use an "about box".
|
664 |
+
|
665 |
+
You should also get your employer (if you work as a programmer) or school,
|
666 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
667 |
+
For more information on this, and how to apply and follow the GNU GPL, see
|
668 |
+
<https://www.gnu.org/licenses/>.
|
669 |
+
|
670 |
+
The GNU General Public License does not permit incorporating your program
|
671 |
+
into proprietary programs. If your program is a subroutine library, you
|
672 |
+
may consider it more useful to permit linking proprietary applications with
|
673 |
+
the library. If this is what you want to do, use the GNU Lesser General
|
674 |
+
Public License instead of this License. But first, please read
|
675 |
+
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
modules/mongo/README.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:32f41959dc3022011927b6ab96bd66a7e628f7f0508504301bf6c7344e39dee7
|
3 |
+
size 1784
|
modules/mongo/build/lib/mongo_api/mongo_api.py
CHANGED
@@ -1,3 +1,762 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import datetime as dt
|
2 |
+
import pandas as pd
|
3 |
+
import itertools
|
4 |
+
import pymongo # requires dnspython
|
5 |
+
import configparser
|
6 |
+
from .mongo_credentials import credentials
|
7 |
+
|
8 |
+
CREDENTIALS = credentials
|
9 |
+
|
10 |
+
|
11 |
+
class _MongoAbstract(object):
|
12 |
+
_instance = None
|
13 |
+
_credentials = None
|
14 |
+
_name = None
|
15 |
+
_key_ls = None
|
16 |
+
_del_many_limit = 50
|
17 |
+
_override_boolean_key = None
|
18 |
+
|
19 |
+
def __init__(self, instance='remote', **query):
|
20 |
+
self._set_instance(instance)
|
21 |
+
self._set_credentials()
|
22 |
+
|
23 |
+
if not isinstance(self._name, str) or not isinstance(self._instance, str) or not isinstance(self._key_ls, list):
|
24 |
+
raise Exception('Instance (str), collection _name (str) and _key_ls (list) need to be properly declared!')
|
25 |
+
|
26 |
+
db_obj = self._get_db_object()
|
27 |
+
collection_names_ls = db_obj.list_collection_names()
|
28 |
+
|
29 |
+
idx_tup_ls = [(i, pymongo.ASCENDING) for i in self._key_ls]
|
30 |
+
if self._name not in collection_names_ls:
|
31 |
+
print(f"Creating new {self._instance} collection: {self._name}\n")
|
32 |
+
collection = db_obj[self._name] # this will create the collection
|
33 |
+
collection.create_index(idx_tup_ls, unique=True, name=self._name) # this will index it
|
34 |
+
else:
|
35 |
+
collection = db_obj[self._name] # collection already exists
|
36 |
+
|
37 |
+
self._db_obj = db_obj
|
38 |
+
self._collection = collection
|
39 |
+
query = self._override_boolean_keys(**query)
|
40 |
+
self._is_adv_query = sum([isinstance(v, list) for v in query.values()])
|
41 |
+
self._set_query(query)
|
42 |
+
self._set_advanced_query()
|
43 |
+
self._out = None
|
44 |
+
self._cursor = self._get_cursor()
|
45 |
+
self._full_key_ls = self._key_ls + ['values']
|
46 |
+
|
47 |
+
def _set_credentials(self):
|
48 |
+
if self._credentials is None:
|
49 |
+
self._credentials = CREDENTIALS
|
50 |
+
|
51 |
+
def _get_credentials(self):
|
52 |
+
if self._credentials is None:
|
53 |
+
self._set_credentials()
|
54 |
+
return self._credentials
|
55 |
+
|
56 |
+
def _set_instance(self, instance):
|
57 |
+
self._instance = instance
|
58 |
+
|
59 |
+
def _override_boolean_keys(self, **query):
|
60 |
+
if self._get_boolean_keys() and query:
|
61 |
+
for key in self._get_boolean_keys():
|
62 |
+
if key in query.keys():
|
63 |
+
if isinstance(query[key], (tuple, list)):
|
64 |
+
query[key] = [str(int(i)) if isinstance(i, bool) else i for i in query[key]]
|
65 |
+
else:
|
66 |
+
if isinstance(query[key], bool):
|
67 |
+
query[key] = str(int(query[key]))
|
68 |
+
return query
|
69 |
+
|
70 |
+
def _get_boolean_keys(self):
|
71 |
+
if self._override_boolean_key is not None:
|
72 |
+
if isinstance(self._override_boolean_key, str):
|
73 |
+
return [self._override_boolean_key]
|
74 |
+
elif isinstance(self._override_boolean_key, list):
|
75 |
+
return self._override_boolean_key
|
76 |
+
else:
|
77 |
+
raise Exception(f'_override_boolean_key not recognized {self._override_boolean_key}')
|
78 |
+
else:
|
79 |
+
return None
|
80 |
+
|
81 |
+
def __repr__(self):
|
82 |
+
print_str = f'database: {self._get_db_name()}'
|
83 |
+
print_str += f'\ninstance: {self._get_instance()}'
|
84 |
+
print_str += f'\ncollection: {self._get_name()}'
|
85 |
+
key_str = ', '.join([i for i in self.get_keys() if i != 'values'])
|
86 |
+
print_str += f'\nkeys: [{key_str}]'
|
87 |
+
storage_size = self._db_obj.command('collstats', self._get_name())['size'] / 1e6
|
88 |
+
print_str += f'\nstorage size: {storage_size:.1f}MB'
|
89 |
+
num_docs = self._get_cursor().count()
|
90 |
+
print_str += f'\ndocuments: {num_docs}'
|
91 |
+
return print_str
|
92 |
+
|
93 |
+
def _get_collection(self):
|
94 |
+
return self._collection
|
95 |
+
|
96 |
+
def _get_instance(self):
|
97 |
+
return self._instance
|
98 |
+
|
99 |
+
def _get_name(self):
|
100 |
+
return self._name
|
101 |
+
|
102 |
+
def _get_host_and_port(self):
|
103 |
+
user = self._get_credentials()['user']
|
104 |
+
password = self._get_credentials()['password']
|
105 |
+
host = self._get_credentials()['host']
|
106 |
+
port = self._get_credentials()['port']
|
107 |
+
full_hostname = f"mongodb+srv://{user}:{password}@{host}/{port}"
|
108 |
+
return full_hostname, port
|
109 |
+
|
110 |
+
def _get_db_object(self):
|
111 |
+
client = pymongo.MongoClient(host=self._get_host_and_port()[0], port=self._get_host_and_port()[1])
|
112 |
+
return client[self._get_db_name()]
|
113 |
+
|
114 |
+
def _get_db_name(self):
|
115 |
+
return self._get_credentials()['dbname']
|
116 |
+
|
117 |
+
def _set_advanced_query(self):
|
118 |
+
if self._is_adv_query:
|
119 |
+
and_ls = []
|
120 |
+
ls_dd = self._product_dict(**self._query)
|
121 |
+
for dd in ls_dd:
|
122 |
+
and_ls.extend([{'$and': [dd]}])
|
123 |
+
or_dd = {'$or': and_ls}
|
124 |
+
self._query = or_dd
|
125 |
+
|
126 |
+
def _get_query(self):
|
127 |
+
return self._query
|
128 |
+
|
129 |
+
def _get_cursor(self):
|
130 |
+
if self._out is None:
|
131 |
+
self._cursor = self._collection.find(self._query)
|
132 |
+
return self._cursor
|
133 |
+
|
134 |
+
@staticmethod
|
135 |
+
def _product_dict(**kwargs):
|
136 |
+
for key, val in kwargs.items(): # make sure adv query values are all lists
|
137 |
+
if not isinstance(val, list):
|
138 |
+
kwargs.update({key: [val]})
|
139 |
+
|
140 |
+
keys = kwargs.keys()
|
141 |
+
vals = kwargs.values()
|
142 |
+
for instance in itertools.product(*vals):
|
143 |
+
yield dict(zip(keys, instance))
|
144 |
+
|
145 |
+
def _set_query(self, query):
|
146 |
+
query_dd = dict()
|
147 |
+
for k, v in query.items():
|
148 |
+
if v is not None: # drop None from queries, but allow it to pass
|
149 |
+
if isinstance(v, str) and '~' in v:
|
150 |
+
query_dd[k] = {'$ne': v.replace('~', '')}
|
151 |
+
elif isinstance(v, list):
|
152 |
+
new_ls = list()
|
153 |
+
neg_ls = list()
|
154 |
+
for i in v:
|
155 |
+
if isinstance(i, str) and '~' in i:
|
156 |
+
neg_ls.append(i.replace('~', ''))
|
157 |
+
else:
|
158 |
+
new_ls.append(i)
|
159 |
+
if len(neg_ls) > 0:
|
160 |
+
new_ls.append({'$nin': neg_ls})
|
161 |
+
query_dd[k] = new_ls
|
162 |
+
else:
|
163 |
+
query_dd[k] = v
|
164 |
+
self._query = query_dd
|
165 |
+
|
166 |
+
def drop_collection(self, confirm=''):
|
167 |
+
if confirm != 'confirm':
|
168 |
+
print('drop_collection not confirmed. Make sure you know what you are doing. Pass "confirm" to drop.')
|
169 |
+
else:
|
170 |
+
db_obj = self._get_db_object()
|
171 |
+
db_obj.drop_collection(self._name)
|
172 |
+
print('Database: %s' % self._get_db_name())
|
173 |
+
print('Collection dropped: %s' % self._name)
|
174 |
+
|
175 |
+
def _reindex(self, confirm=''):
|
176 |
+
if confirm != 'confirm':
|
177 |
+
print('reindex not confirmed. Nothing done. Pass "confirm" to reindex.')
|
178 |
+
else:
|
179 |
+
collection = self._get_collection()
|
180 |
+
collection.drop_indexes()
|
181 |
+
idx_tup_ls = [(i, pymongo.ASCENDING) for i in self._key_ls]
|
182 |
+
collection.create_index(idx_tup_ls, unique=True, name=self._name) # this will index it
|
183 |
+
print('collection %s successfully re-indexed' % self._name)
|
184 |
+
|
185 |
+
def count(self):
|
186 |
+
print(f'Database: {self._get_db_name()}')
|
187 |
+
print(f'Collection: {self._name}')
|
188 |
+
|
189 |
+
print(f'Query: {self._query}')
|
190 |
+
print(f'Documents: {self._collection.count_documents(self._query)}')
|
191 |
+
|
192 |
+
def replace_field_value(self, existing_field=True, **kwargs):
|
193 |
+
"""
|
194 |
+
make sure you declare the appropriate key=value arguments to be modified in your query!
|
195 |
+
"""
|
196 |
+
if len(kwargs) != 1:
|
197 |
+
raise Exception('please rename only one field at a time')
|
198 |
+
|
199 |
+
field = list(kwargs.keys())[0]
|
200 |
+
value = kwargs[field]
|
201 |
+
|
202 |
+
if field not in self.get_keys() and existing_field: # check init that everything is ok to reindex
|
203 |
+
raise Exception('new field needs to be declared in collection keys before replace / re-index')
|
204 |
+
|
205 |
+
if field == 'values':
|
206 |
+
raise Exception('values cannot be replace with this method. Use .update_values() instead')
|
207 |
+
|
208 |
+
if existing_field:
|
209 |
+
if not self._query:
|
210 |
+
raise Exception('Cannot replace key value without filters.')
|
211 |
+
if self._get_boolean_keys() and field in self._get_boolean_keys():
|
212 |
+
value = str(int(value))
|
213 |
+
|
214 |
+
cursor = self._get_cursor()
|
215 |
+
request_ls = []
|
216 |
+
for doc in cursor:
|
217 |
+
if existing_field:
|
218 |
+
doc.pop(field)
|
219 |
+
update_dd = {'$set': {field: value}}
|
220 |
+
request = pymongo.UpdateOne(doc, update_dd, upsert=False)
|
221 |
+
request_ls.append(request)
|
222 |
+
|
223 |
+
if len(request_ls) > 0:
|
224 |
+
self._get_collection().bulk_write(request_ls)
|
225 |
+
print(f'collection field {field} successfully updated to {value}')
|
226 |
+
|
227 |
+
if not existing_field:
|
228 |
+
self._reindex('confirm')
|
229 |
+
else:
|
230 |
+
print('no operations to handle')
|
231 |
+
|
232 |
+
@classmethod
|
233 |
+
def get_keys(self):
|
234 |
+
return [i for i in self._key_ls] # pass a copy
|
235 |
+
|
236 |
+
def get_key_values(self):
|
237 |
+
match_dd = {'$match': self._query}
|
238 |
+
|
239 |
+
key_dd = {k: f'${k}' for k in self._key_ls}
|
240 |
+
group_dd = {'$group': {'_id': key_dd}}
|
241 |
+
|
242 |
+
cursor = self._collection.aggregate([match_dd, group_dd])
|
243 |
+
ls = [i['_id'] for i in list(cursor)]
|
244 |
+
keys_df = pd.DataFrame(ls)
|
245 |
+
if not keys_df.empty:
|
246 |
+
keys_df = keys_df.sort_values(by=self._key_ls)
|
247 |
+
keys_df = keys_df.reset_index(drop=True)
|
248 |
+
return keys_df
|
249 |
+
|
250 |
+
def _is_local_instance(self):
|
251 |
+
return self._get_instance() == 'local'
|
252 |
+
|
253 |
+
def delete_many(self, confirm=''):
|
254 |
+
if not self._query:
|
255 |
+
raise Exception('Cannot delete_many without filters. Use drop_collection() instead for a full drop.')
|
256 |
+
|
257 |
+
lmt = self._del_many_limit
|
258 |
+
cnt = self._collection.count_documents(self._query)
|
259 |
+
if (cnt > lmt) and confirm != 'confirm':
|
260 |
+
raise Exception(f'confirm delete_many() if more than {lmt} documents. Potentially deleted: {cnt}')
|
261 |
+
|
262 |
+
before = self._collection.count_documents({})
|
263 |
+
self._get_collection().delete_many(self._query)
|
264 |
+
after = self._collection.count_documents({})
|
265 |
+
self._out = None
|
266 |
+
print(f'{before - after} document(s) deleted')
|
267 |
+
|
268 |
+
def distinct(self, field):
|
269 |
+
if isinstance(field, str):
|
270 |
+
field = field
|
271 |
+
cursor = self._get_cursor()
|
272 |
+
return cursor.distinct(field) # faster
|
273 |
+
elif isinstance(field, list):
|
274 |
+
group_dd = {"_id": {i: f'${i}' for i in field}}
|
275 |
+
if len(self._query) > 0:
|
276 |
+
cursor = self._collection.aggregate([{'$match': self._query},
|
277 |
+
{"$group": group_dd}])
|
278 |
+
else:
|
279 |
+
cursor = self._collection.aggregate([{"$group": group_dd}])
|
280 |
+
dd = [doc['_id'] for doc in cursor]
|
281 |
+
return pd.DataFrame().from_dict(dd)
|
282 |
+
|
283 |
+
|
284 |
+
class _MongoSeries(_MongoAbstract):
|
285 |
+
_drop_weekends = None
|
286 |
+
|
287 |
+
def __init__(self, instance='remote', **query):
|
288 |
+
_MongoAbstract.__init__(self, instance=instance, **query)
|
289 |
+
|
290 |
+
def _get_drop_weekends(self):
|
291 |
+
return self._drop_weekends
|
292 |
+
|
293 |
+
def _update_query_date_range(self, start, end):
|
294 |
+
if start is not None and end is None:
|
295 |
+
self._query['values.date'] = start
|
296 |
+
# self._query['values'] = {'$elemMatch': {'date': {'$gte': start}}}
|
297 |
+
elif start is None and end is not None:
|
298 |
+
self._query['values.date'] = {'$lte': end}
|
299 |
+
elif start is not None and end is not None:
|
300 |
+
self._query['values.date'] = {'$gte': start, '$lte': end}
|
301 |
+
else: # both none
|
302 |
+
pass
|
303 |
+
|
304 |
+
def _get_query_cursor(self, start, end):
|
305 |
+
if start is None and end is None:
|
306 |
+
return self._get_cursor() # simple case
|
307 |
+
else:
|
308 |
+
co = self._get_collection()
|
309 |
+
key_ls = self.get_keys()
|
310 |
+
match_dd = {'$match': self._query}
|
311 |
+
if start is not None and end is None:
|
312 |
+
if isinstance(start, (dt.datetime, dt.date)):
|
313 |
+
start = start.strftime('%Y%m%d')
|
314 |
+
start = start.replace('-', '')
|
315 |
+
filter_dd = {
|
316 |
+
'$filter':
|
317 |
+
{'input': '$values',
|
318 |
+
'as': 'vals',
|
319 |
+
'cond': {'$gte': ['$$vals.date', start]}
|
320 |
+
}
|
321 |
+
}
|
322 |
+
elif start is None and end is not None:
|
323 |
+
if isinstance(end, dt.datetime):
|
324 |
+
end = end.strftime('%Y%m%d')
|
325 |
+
end = end.replace('-', '')
|
326 |
+
filter_dd = {
|
327 |
+
'$filter':
|
328 |
+
{'input': '$values',
|
329 |
+
'as': 'vals',
|
330 |
+
'cond': {'$lte': ['$$vals.date', end]}
|
331 |
+
}
|
332 |
+
}
|
333 |
+
else: # both defined
|
334 |
+
if isinstance(start, dt.datetime):
|
335 |
+
start = start.strftime('%Y%m%d')
|
336 |
+
start = start.replace('-', '')
|
337 |
+
|
338 |
+
if isinstance(end, dt.datetime):
|
339 |
+
end = end.strftime('%Y%m%d')
|
340 |
+
end = end.replace('-', '')
|
341 |
+
filter_dd = {
|
342 |
+
'$filter':
|
343 |
+
{'input': '$values',
|
344 |
+
'as': 'vals',
|
345 |
+
'cond': {'$and': [{'$gte': ['$$vals.date', start]},
|
346 |
+
{'$lte': ['$$vals.date', end]}]}
|
347 |
+
}
|
348 |
+
}
|
349 |
+
key_dd = {i: 1 for i in key_ls}
|
350 |
+
key_dd['values'] = filter_dd
|
351 |
+
project_dd = {'$project': key_dd}
|
352 |
+
cursor = co.aggregate([match_dd, project_dd])
|
353 |
+
return cursor
|
354 |
+
|
355 |
+
def insert(self, pd_obj, col_key):
|
356 |
+
if pd_obj.empty:
|
357 |
+
print('pd_obj empty, no data to insert')
|
358 |
+
return
|
359 |
+
|
360 |
+
if isinstance(pd_obj, pd.Series):
|
361 |
+
pd_obj = pd.DataFrame(pd_obj)
|
362 |
+
|
363 |
+
# check no dups
|
364 |
+
if pd_obj.columns.has_duplicates:
|
365 |
+
raise Exception('inserted object cannot have duplicated keys!')
|
366 |
+
|
367 |
+
# initial checks
|
368 |
+
if isinstance(col_key, str):
|
369 |
+
col_key = [col_key]
|
370 |
+
|
371 |
+
if len(self._key_ls) != len(col_key):
|
372 |
+
name = self._name
|
373 |
+
full = len(self._key_ls)
|
374 |
+
given = len(col_key)
|
375 |
+
raise Exception(f'insert error: {name}. col_key must have {full} elements. provided was {given}')
|
376 |
+
|
377 |
+
df = pd_obj.copy()
|
378 |
+
df.index = df.index.map(lambda i: i.strftime('%Y%m%d'))
|
379 |
+
|
380 |
+
# integrity check
|
381 |
+
for col in pd_obj.columns:
|
382 |
+
col_val_ls = col.split('.')
|
383 |
+
if len(self._full_key_ls) - 1 != len(col_val_ls):
|
384 |
+
raise Exception(f'all columns must have {len(col_key)} elements. provided was {col_val_ls}')
|
385 |
+
|
386 |
+
# do not store full NaN rows or columns
|
387 |
+
df = df.dropna(how='all', axis=0)
|
388 |
+
df = df.dropna(how='all', axis=1)
|
389 |
+
|
390 |
+
request_ls = []
|
391 |
+
for col in df.columns:
|
392 |
+
col_val_ls = col.split('.')
|
393 |
+
tup = zip(col_key, col_val_ls)
|
394 |
+
query_dd = {k: v for k, v in tup}
|
395 |
+
values_dd = df[col].dropna().to_dict()
|
396 |
+
values_ls = [{'date': k, 'value': v} for k, v in values_dd.items()]
|
397 |
+
update_dd = {'$set': {'values': values_ls}}
|
398 |
+
request = pymongo.UpdateOne(query_dd, update_dd, upsert=True)
|
399 |
+
request_ls.append(request)
|
400 |
+
self._get_collection().bulk_write(request_ls)
|
401 |
+
|
402 |
+
def last_update(self, how='each', order='min'):
|
403 |
+
match_dd = {'$match': self._query}
|
404 |
+
key_dd = {k: f'${k}' for k in self._key_ls}
|
405 |
+
group_dd = {
|
406 |
+
'$group':
|
407 |
+
{'_id':
|
408 |
+
{'_id': key_dd},
|
409 |
+
'max': {'$max': "$values.date"}
|
410 |
+
}
|
411 |
+
}
|
412 |
+
sort_dd = {'$sort': {'values.date': 1}}
|
413 |
+
cursor = self._get_collection().aggregate([match_dd, group_dd, sort_dd])
|
414 |
+
last_df = pd.DataFrame()
|
415 |
+
for num, doc in enumerate(cursor):
|
416 |
+
dd = doc['_id']['_id']
|
417 |
+
dd['last_update'] = doc['max'][-1]
|
418 |
+
tmp_df = pd.DataFrame.from_dict(dd, orient='index').T
|
419 |
+
last_df = pd.concat([last_df, tmp_df], axis=0, sort=True)
|
420 |
+
last_df = last_df[self._key_ls + ['last_update']]
|
421 |
+
last_df['last_update'] = last_df['last_update'].apply(pd.to_datetime)
|
422 |
+
days_f = lambda x: (dt.datetime.today() - x).days
|
423 |
+
last_df['last_update_days'] = last_df['last_update'].apply(days_f)
|
424 |
+
if how == 'all':
|
425 |
+
if order == 'max':
|
426 |
+
return last_df['last_update'].max()
|
427 |
+
elif order == 'min':
|
428 |
+
return last_df['last_update'].min()
|
429 |
+
else:
|
430 |
+
raise Exception(f'argument order not recognized {order}')
|
431 |
+
elif how == 'each':
|
432 |
+
return last_df
|
433 |
+
else:
|
434 |
+
raise Exception(f'argument how not recognized: {how}')
|
435 |
+
|
436 |
+
def query(self, start=None, end=None, rename=None, expand=False):
|
437 |
+
"""
|
438 |
+
override is for self.last_update()
|
439 |
+
"""
|
440 |
+
if self._out is None:
|
441 |
+
cursor = self._get_query_cursor(start, end)
|
442 |
+
|
443 |
+
if rename is not None:
|
444 |
+
if isinstance(rename, str):
|
445 |
+
rename = [rename]
|
446 |
+
|
447 |
+
exclude_ls = ['_id', 'values']
|
448 |
+
df = pd.DataFrame()
|
449 |
+
for doc in cursor:
|
450 |
+
if len(doc['values']) > 0:
|
451 |
+
if rename is not None:
|
452 |
+
name = '.'.join([doc[i] for i in rename])
|
453 |
+
else:
|
454 |
+
name = '.'.join([doc[i] for i in sorted(doc.keys()) if i not in exclude_ls])
|
455 |
+
doc_df = pd.DataFrame().from_dict(doc['values']).set_index('date')
|
456 |
+
doc_df.columns = [name]
|
457 |
+
df = pd.concat([df, doc_df], axis=1, sort=True)
|
458 |
+
|
459 |
+
if df.empty:
|
460 |
+
return df
|
461 |
+
|
462 |
+
df.index = df.index.map(pd.to_datetime)
|
463 |
+
|
464 |
+
if self._get_drop_weekends():
|
465 |
+
week_days_ls = df.index.weekday < 5
|
466 |
+
df = df.loc[week_days_ls].copy()
|
467 |
+
|
468 |
+
if expand:
|
469 |
+
df.columns = df.columns.str.split('.', expand=True)
|
470 |
+
|
471 |
+
# return series if only one column or row
|
472 |
+
if len(df.columns) == 1:
|
473 |
+
df = df[df.columns[0]].copy()
|
474 |
+
|
475 |
+
if len(df.index) == 1:
|
476 |
+
df = df.iloc[-1].copy()
|
477 |
+
|
478 |
+
self._out = df.copy()
|
479 |
+
return self._out
|
480 |
+
|
481 |
+
def drop_datapoint(self, date_str):
|
482 |
+
if self._collection.count_documents(self._query) == 0:
|
483 |
+
raise Exception('no documents found with given filters')
|
484 |
+
|
485 |
+
if self._collection.count_documents(self._query) > 1:
|
486 |
+
raise Exception('you can only drop datapoints one series at a time')
|
487 |
+
|
488 |
+
if isinstance(date_str, dt.datetime):
|
489 |
+
date_str = date_str.strftime('%Y%m%d')
|
490 |
+
|
491 |
+
cursor = self._get_cursor()
|
492 |
+
request_ls = []
|
493 |
+
for doc in cursor:
|
494 |
+
doc.pop('_id')
|
495 |
+
doc.pop('values')
|
496 |
+
doc['values.date'] = date_str
|
497 |
+
update_dd = {'$unset': {'values.$.value': ""}}
|
498 |
+
request = pymongo.UpdateOne(doc, update_dd, upsert=False)
|
499 |
+
request_ls.append(request)
|
500 |
+
self._get_collection().bulk_write(request_ls)
|
501 |
+
|
502 |
+
def update_values(self, pd_obj, col_key):
|
503 |
+
if pd_obj.empty:
|
504 |
+
print('pd_obj empty, no data to update')
|
505 |
+
return
|
506 |
+
|
507 |
+
# initial checks
|
508 |
+
if isinstance(col_key, str):
|
509 |
+
col_key = [col_key]
|
510 |
+
|
511 |
+
if len(self._key_ls) != len(col_key):
|
512 |
+
name = self._name
|
513 |
+
full = len(self._key_ls)
|
514 |
+
given = len(col_key)
|
515 |
+
raise Exception(f'insert error: {name}. col_key must have {full} elements. provided was {given}')
|
516 |
+
|
517 |
+
if isinstance(pd_obj, pd.Series):
|
518 |
+
df = pd.DataFrame(pd_obj)
|
519 |
+
else:
|
520 |
+
df = pd_obj.copy()
|
521 |
+
|
522 |
+
# check no dups
|
523 |
+
if df.columns.has_duplicates:
|
524 |
+
raise Exception('inserted object cannot have duplicated keys!')
|
525 |
+
|
526 |
+
# integrity check
|
527 |
+
for col in df.columns:
|
528 |
+
col_val_ls = col.split('.')
|
529 |
+
if len(self._full_key_ls) - 1 != len(col_val_ls):
|
530 |
+
raise Exception(f'all columns must have {len(col_key)} elements. provided was {col_val_ls}')
|
531 |
+
|
532 |
+
df.index = df.index.map(lambda i: i.strftime('%Y%m%d'))
|
533 |
+
df = df.dropna(axis=0, how='all')
|
534 |
+
df = df.dropna(axis=1, how='all')
|
535 |
+
|
536 |
+
request_ls = []
|
537 |
+
for col in df.columns:
|
538 |
+
col_val_ls = col.split('.')
|
539 |
+
tup = zip(col_key, col_val_ls)
|
540 |
+
query_dd = {k: v for k, v in tup}
|
541 |
+
values_dd = df[col].dropna().to_dict()
|
542 |
+
|
543 |
+
# pull many
|
544 |
+
date_ls = list(values_dd.keys())
|
545 |
+
update_dd = {
|
546 |
+
'$pull': {'values': {'date': {'$in': date_ls}}}
|
547 |
+
}
|
548 |
+
request = pymongo.UpdateMany(query_dd, update_dd, upsert=True)
|
549 |
+
request_ls.append(request)
|
550 |
+
|
551 |
+
# push many
|
552 |
+
new_ls = [{'date': k, 'value': v} for k, v in values_dd.items()]
|
553 |
+
update_dd = {'$push': {'values': {'$each': new_ls}}}
|
554 |
+
request = pymongo.UpdateMany(query_dd, update_dd, upsert=True)
|
555 |
+
request_ls.append(request)
|
556 |
+
self._get_collection().bulk_write(request_ls, ordered=True)
|
557 |
+
|
558 |
+
|
559 |
+
class _MongoDoc(_MongoAbstract):
|
560 |
+
def __init__(self, instance='remote', **query):
|
561 |
+
_MongoAbstract.__init__(self, instance=instance, **query)
|
562 |
+
|
563 |
+
def insert(self, dd):
|
564 |
+
if not isinstance(dd, dict):
|
565 |
+
print('insert dict empty, no data to insert')
|
566 |
+
return
|
567 |
+
|
568 |
+
# initial checks
|
569 |
+
if sorted(list(self._get_query().keys())) != sorted(self.get_keys()):
|
570 |
+
raise Exception(f'specify a full query to insert into a _MongoTable! Keys are: {str(self.get_keys())}')
|
571 |
+
|
572 |
+
cast_key_ls = set([str(k) for k in dd.keys()])
|
573 |
+
if len(cast_key_ls) != len(dd.keys()):
|
574 |
+
raise Exception('identical string representations of keys are not allowed')
|
575 |
+
insert_dd = {str(k): v for k, v in dd.items()}
|
576 |
+
|
577 |
+
filter_dd = self._get_query()
|
578 |
+
update_dd = {'$set': {'values': insert_dd}}
|
579 |
+
self._get_collection().update_one(filter_dd, update=update_dd, upsert=True)
|
580 |
+
|
581 |
+
def query(self, expand=False, rename=None):
|
582 |
+
"""
|
583 |
+
override is for self.last_update()
|
584 |
+
"""
|
585 |
+
|
586 |
+
if rename:
|
587 |
+
if isinstance(rename, str):
|
588 |
+
rename = [rename]
|
589 |
+
|
590 |
+
if self._out is None:
|
591 |
+
cursor = self._get_cursor() # simple case
|
592 |
+
|
593 |
+
df = pd.DataFrame()
|
594 |
+
for num, doc in enumerate(cursor):
|
595 |
+
if doc['values']:
|
596 |
+
doc.pop('_id')
|
597 |
+
val_dd = doc.pop('values')
|
598 |
+
if rename:
|
599 |
+
name = '.'.join([str(doc[k]) for k in rename])
|
600 |
+
else:
|
601 |
+
name = '.'.join([str(doc[k]) for k in sorted(doc.keys())])
|
602 |
+
s = pd.Series(val_dd, name=name, dtype=object)
|
603 |
+
df = pd.concat([df, s], axis=1, sort=True)
|
604 |
+
|
605 |
+
if expand:
|
606 |
+
df.columns = df.columns.str.split('.', expand=True)
|
607 |
+
|
608 |
+
# return series if only one column or row
|
609 |
+
if len(df.columns) == 1:
|
610 |
+
df = df[df.columns[0]].copy()
|
611 |
+
|
612 |
+
if len(df.index) == 1:
|
613 |
+
df = df.iloc[-1].copy()
|
614 |
+
|
615 |
+
self._out = df
|
616 |
+
return self._out
|
617 |
+
|
618 |
+
|
619 |
+
class _MongoTable(_MongoAbstract):
|
620 |
+
def __init__(self, instance='remote', **query):
|
621 |
+
_MongoAbstract.__init__(self, instance=instance, **query)
|
622 |
+
|
623 |
+
def insert(self, pd_obj):
|
624 |
+
if pd_obj.empty:
|
625 |
+
print('pd_obj empty, no data to insert')
|
626 |
+
return
|
627 |
+
|
628 |
+
if isinstance(pd_obj, pd.Series):
|
629 |
+
pd_obj = pd.DataFrame(pd_obj)
|
630 |
+
|
631 |
+
# check no dups
|
632 |
+
if pd_obj.columns.has_duplicates:
|
633 |
+
raise Exception('inserted object cannot have duplicated columns!')
|
634 |
+
|
635 |
+
# initial checks
|
636 |
+
if sorted(list(self._get_query().keys())) != sorted(self.get_keys()):
|
637 |
+
raise Exception(f'specify a full query to insert into a _MongoTable! Keys are: {str(self.get_keys())}')
|
638 |
+
|
639 |
+
# drop nan
|
640 |
+
df = pd_obj.copy()
|
641 |
+
df = df.dropna(how='all', axis=0)
|
642 |
+
df = df.dropna(how='all', axis=1)
|
643 |
+
|
644 |
+
if isinstance(df.columns, pd.core.indexes.multi.MultiIndex):
|
645 |
+
df.columns = ['.'.join([i for i in col]) for col in df.columns]
|
646 |
+
|
647 |
+
if isinstance(df.index, pd.core.indexes.multi.MultiIndex):
|
648 |
+
df.index = ['.'.join([i for i in col]) for col in df.columns]
|
649 |
+
|
650 |
+
df.columns = df.columns.map(str)
|
651 |
+
df.index = df.index.map(str)
|
652 |
+
|
653 |
+
values_dd = df.to_dict(orient='records')
|
654 |
+
|
655 |
+
filter_dd = self._get_query()
|
656 |
+
update_dd = {'$set': {'values': values_dd}}
|
657 |
+
self._get_collection().update_one(filter_dd, update=update_dd, upsert=True)
|
658 |
+
|
659 |
+
def query(self, rename=None, expand=False):
|
660 |
+
"""
|
661 |
+
override is for self.last_update()
|
662 |
+
"""
|
663 |
+
if self._out is None:
|
664 |
+
cursor = self._get_cursor() # simple case
|
665 |
+
|
666 |
+
if rename is not None:
|
667 |
+
if isinstance(rename, str):
|
668 |
+
rename = [rename]
|
669 |
+
|
670 |
+
exclude_ls = ['_id', 'values']
|
671 |
+
out_df = pd.DataFrame()
|
672 |
+
cnt = 0
|
673 |
+
for num, doc in enumerate(cursor):
|
674 |
+
if len(doc['values']) > 0:
|
675 |
+
df = pd.DataFrame().from_records(doc['values'])
|
676 |
+
if rename is not None:
|
677 |
+
name = '.'.join([doc[i] for i in rename])
|
678 |
+
else:
|
679 |
+
name = '.'.join([doc[i] for i in sorted(doc.keys()) if i not in exclude_ls])
|
680 |
+
id_ls = [name] * df.shape[0]
|
681 |
+
df['_id'] = id_ls
|
682 |
+
out_df = pd.concat([out_df, df], axis=0, sort=True)
|
683 |
+
cnt += 1
|
684 |
+
|
685 |
+
if out_df.empty:
|
686 |
+
return out_df
|
687 |
+
|
688 |
+
if cnt > 1:
|
689 |
+
out_df = out_df.reset_index(drop=False)
|
690 |
+
out_df = out_df.set_index('_id', drop=True)
|
691 |
+
out_df.index.name = None
|
692 |
+
else:
|
693 |
+
out_df = out_df.drop('_id', axis=1)
|
694 |
+
|
695 |
+
if expand:
|
696 |
+
out_df.index = out_df.index.str.split('.', expand=True)
|
697 |
+
|
698 |
+
# return series if only one column or row
|
699 |
+
if len(out_df.columns) == 1:
|
700 |
+
out_df = out_df[out_df.columns[0]].copy()
|
701 |
+
|
702 |
+
if len(out_df.index) == 1:
|
703 |
+
out_df = out_df.iloc[-1].copy()
|
704 |
+
|
705 |
+
self._out = out_df.copy()
|
706 |
+
return self._out
|
707 |
+
|
708 |
+
|
709 |
+
class _MongoLog(_MongoAbstract):
|
710 |
+
def __init__(self, instance='remote', **query):
|
711 |
+
_MongoAbstract.__init__(self, instance=instance, **query)
|
712 |
+
|
713 |
+
def _log(self, df):
|
714 |
+
request_ls = []
|
715 |
+
if not df.empty:
|
716 |
+
for (section, iso_dt), row_s in df.iterrows():
|
717 |
+
values_dd = row_s.to_dict()
|
718 |
+
doc_id = {'section': section,
|
719 |
+
'iso_date': iso_dt}
|
720 |
+
update_dd = {'$push': {'values': values_dd}}
|
721 |
+
request = pymongo.UpdateOne(doc_id, update_dd, upsert=True)
|
722 |
+
request_ls.append(request)
|
723 |
+
self._get_collection().bulk_write(request_ls)
|
724 |
+
|
725 |
+
def query(self, rename=None, expand=False):
|
726 |
+
"""
|
727 |
+
override is for self.last_update()
|
728 |
+
"""
|
729 |
+
if self._out is None:
|
730 |
+
cursor = self._get_cursor() # simple case
|
731 |
+
|
732 |
+
if rename is not None:
|
733 |
+
if isinstance(rename, str):
|
734 |
+
rename = [rename]
|
735 |
+
|
736 |
+
exclude_ls = ['_id', 'values']
|
737 |
+
df = pd.DataFrame()
|
738 |
+
for doc in cursor:
|
739 |
+
if len(doc['values']) > 0:
|
740 |
+
if rename is not None:
|
741 |
+
name = '.'.join([doc[i] for i in rename])
|
742 |
+
else:
|
743 |
+
name = '.'.join([doc[i] for i in sorted(doc.keys()) if i not in exclude_ls])
|
744 |
+
doc_df = pd.DataFrame().from_records(doc['values'])
|
745 |
+
doc_df.index = [name] * len(doc_df.index)
|
746 |
+
df = pd.concat([df, doc_df], axis=0, sort=True)
|
747 |
+
|
748 |
+
if df.empty:
|
749 |
+
return df
|
750 |
+
|
751 |
+
if expand:
|
752 |
+
df.index = df.index.str.split('.', expand=True)
|
753 |
+
|
754 |
+
# return series if only one column or row
|
755 |
+
if len(df.columns) == 1:
|
756 |
+
df = df[df.columns[0]].copy()
|
757 |
+
|
758 |
+
if len(df.index) == 1:
|
759 |
+
df = df.iloc[-1].copy()
|
760 |
+
|
761 |
+
self._out = df.copy()
|
762 |
+
return self._out
|
modules/mongo/build/lib/mongo_api/mongo_credentials.py
CHANGED
@@ -1,3 +1,8 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
credentials = {
|
2 |
+
"user": "quantUser",# "dbUser"
|
3 |
+
"password": "Quant.L4rr4?", # "Larra.2020"
|
4 |
+
"dbname": "QuantRepo",
|
5 |
+
"host": "quant-main.5pkxp.mongodb.net", # "amalgama-fbqlw.mongodb.net"
|
6 |
+
"args": "test?retryWrites=true&w=majority",
|
7 |
+
"port": 27017
|
8 |
+
}
|
modules/mongo/dist/mongo_api-0.1.0-py2.py3-none-any.whl
CHANGED
Binary files a/modules/mongo/dist/mongo_api-0.1.0-py2.py3-none-any.whl and b/modules/mongo/dist/mongo_api-0.1.0-py2.py3-none-any.whl differ
|
|
modules/mongo/dist/mongo_api-0.1.2-py2.py3-none-any.whl
CHANGED
Binary files a/modules/mongo/dist/mongo_api-0.1.2-py2.py3-none-any.whl and b/modules/mongo/dist/mongo_api-0.1.2-py2.py3-none-any.whl differ
|
|
modules/mongo/mongo_api.egg-info/PKG-INFO
CHANGED
@@ -1,3 +1,10 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Metadata-Version: 1.0
|
2 |
+
Name: mongo-api
|
3 |
+
Version: 0.1.2
|
4 |
+
Summary: Amalgama Mongo API
|
5 |
+
Home-page: https://github.com/AmalgamaLtd/mongo_api.git
|
6 |
+
Author: Alexandre Larrain
|
7 |
+
Author-email: [email protected]
|
8 |
+
License: GNU GPL v.3
|
9 |
+
Description: UNKNOWN
|
10 |
+
Platform: UNKNOWN
|
modules/mongo/mongo_api.egg-info/SOURCES.txt
CHANGED
@@ -1,3 +1,10 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
README.md
|
2 |
+
setup.py
|
3 |
+
mongo_api/__init__.py
|
4 |
+
mongo_api/mongo_api.py
|
5 |
+
mongo_api/mongo_credentials.py
|
6 |
+
mongo_api.egg-info/PKG-INFO
|
7 |
+
mongo_api.egg-info/SOURCES.txt
|
8 |
+
mongo_api.egg-info/dependency_links.txt
|
9 |
+
mongo_api.egg-info/not-zip-safe
|
10 |
+
mongo_api.egg-info/top_level.txt
|
modules/mongo/mongo_api.egg-info/dependency_links.txt
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
|
2 |
-
oid sha256:01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
|
3 |
-
size 1
|
|
|
1 |
+
|
|
|
|
modules/mongo/mongo_api.egg-info/not-zip-safe
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
|
2 |
-
oid sha256:01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
|
3 |
-
size 1
|
|
|
1 |
+
|
|
|
|
modules/mongo/mongo_api.egg-info/top_level.txt
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
|
2 |
-
oid sha256:8894f842c3c244ee640206df66e6fbd225f7a4465ab1ede35554db5dedb8baa9
|
3 |
-
size 10
|
|
|
1 |
+
mongo_api
|
|
|
|
modules/mongo/mongo_api/__pycache__/__init__.cpython-36.pyc
CHANGED
Binary files a/modules/mongo/mongo_api/__pycache__/__init__.cpython-36.pyc and b/modules/mongo/mongo_api/__pycache__/__init__.cpython-36.pyc differ
|
|
modules/mongo/mongo_api/__pycache__/__init__.cpython-37.pyc
CHANGED
Binary files a/modules/mongo/mongo_api/__pycache__/__init__.cpython-37.pyc and b/modules/mongo/mongo_api/__pycache__/__init__.cpython-37.pyc differ
|
|
modules/mongo/mongo_api/__pycache__/__init__.cpython-38.pyc
CHANGED
Binary files a/modules/mongo/mongo_api/__pycache__/__init__.cpython-38.pyc and b/modules/mongo/mongo_api/__pycache__/__init__.cpython-38.pyc differ
|
|
modules/mongo/mongo_api/__pycache__/mongo_api.cpython-36.pyc
CHANGED
Binary files a/modules/mongo/mongo_api/__pycache__/mongo_api.cpython-36.pyc and b/modules/mongo/mongo_api/__pycache__/mongo_api.cpython-36.pyc differ
|
|
modules/mongo/mongo_api/__pycache__/mongo_api.cpython-37.pyc
CHANGED
Binary files a/modules/mongo/mongo_api/__pycache__/mongo_api.cpython-37.pyc and b/modules/mongo/mongo_api/__pycache__/mongo_api.cpython-37.pyc differ
|
|
modules/mongo/mongo_api/__pycache__/mongo_api.cpython-38.pyc
CHANGED
Binary files a/modules/mongo/mongo_api/__pycache__/mongo_api.cpython-38.pyc and b/modules/mongo/mongo_api/__pycache__/mongo_api.cpython-38.pyc differ
|
|
modules/mongo/mongo_api/__pycache__/mongo_credentials.cpython-36.pyc
CHANGED
Binary files a/modules/mongo/mongo_api/__pycache__/mongo_credentials.cpython-36.pyc and b/modules/mongo/mongo_api/__pycache__/mongo_credentials.cpython-36.pyc differ
|
|
modules/mongo/mongo_api/__pycache__/mongo_credentials.cpython-37.pyc
CHANGED
Binary files a/modules/mongo/mongo_api/__pycache__/mongo_credentials.cpython-37.pyc and b/modules/mongo/mongo_api/__pycache__/mongo_credentials.cpython-37.pyc differ
|
|
modules/mongo/mongo_api/__pycache__/mongo_credentials.cpython-38.pyc
CHANGED
Binary files a/modules/mongo/mongo_api/__pycache__/mongo_credentials.cpython-38.pyc and b/modules/mongo/mongo_api/__pycache__/mongo_credentials.cpython-38.pyc differ
|
|
modules/mongo/mongo_api/mongo_api.py
CHANGED
@@ -1,3 +1,762 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import datetime as dt
|
2 |
+
import pandas as pd
|
3 |
+
import itertools
|
4 |
+
import pymongo # requires dnspython
|
5 |
+
import configparser
|
6 |
+
from .mongo_credentials import credentials
|
7 |
+
|
8 |
+
CREDENTIALS = credentials
|
9 |
+
|
10 |
+
|
11 |
+
class _MongoAbstract(object):
|
12 |
+
_instance = None
|
13 |
+
_credentials = None
|
14 |
+
_name = None
|
15 |
+
_key_ls = None
|
16 |
+
_del_many_limit = 50
|
17 |
+
_override_boolean_key = None
|
18 |
+
|
19 |
+
def __init__(self, instance='remote', **query):
|
20 |
+
self._set_instance(instance)
|
21 |
+
self._set_credentials()
|
22 |
+
|
23 |
+
if not isinstance(self._name, str) or not isinstance(self._instance, str) or not isinstance(self._key_ls, list):
|
24 |
+
raise Exception('Instance (str), collection _name (str) and _key_ls (list) need to be properly declared!')
|
25 |
+
|
26 |
+
db_obj = self._get_db_object()
|
27 |
+
collection_names_ls = db_obj.list_collection_names()
|
28 |
+
|
29 |
+
idx_tup_ls = [(i, pymongo.ASCENDING) for i in self._key_ls]
|
30 |
+
if self._name not in collection_names_ls:
|
31 |
+
print(f"Creating new {self._instance} collection: {self._name}\n")
|
32 |
+
collection = db_obj[self._name] # this will create the collection
|
33 |
+
collection.create_index(idx_tup_ls, unique=True, name=self._name) # this will index it
|
34 |
+
else:
|
35 |
+
collection = db_obj[self._name] # collection already exists
|
36 |
+
|
37 |
+
self._db_obj = db_obj
|
38 |
+
self._collection = collection
|
39 |
+
query = self._override_boolean_keys(**query)
|
40 |
+
self._is_adv_query = sum([isinstance(v, list) for v in query.values()])
|
41 |
+
self._set_query(query)
|
42 |
+
self._set_advanced_query()
|
43 |
+
self._out = None
|
44 |
+
self._cursor = self._get_cursor()
|
45 |
+
self._full_key_ls = self._key_ls + ['values']
|
46 |
+
|
47 |
+
def _set_credentials(self):
|
48 |
+
if self._credentials is None:
|
49 |
+
self._credentials = CREDENTIALS
|
50 |
+
|
51 |
+
def _get_credentials(self):
|
52 |
+
if self._credentials is None:
|
53 |
+
self._set_credentials()
|
54 |
+
return self._credentials
|
55 |
+
|
56 |
+
def _set_instance(self, instance):
|
57 |
+
self._instance = instance
|
58 |
+
|
59 |
+
def _override_boolean_keys(self, **query):
|
60 |
+
if self._get_boolean_keys() and query:
|
61 |
+
for key in self._get_boolean_keys():
|
62 |
+
if key in query.keys():
|
63 |
+
if isinstance(query[key], (tuple, list)):
|
64 |
+
query[key] = [str(int(i)) if isinstance(i, bool) else i for i in query[key]]
|
65 |
+
else:
|
66 |
+
if isinstance(query[key], bool):
|
67 |
+
query[key] = str(int(query[key]))
|
68 |
+
return query
|
69 |
+
|
70 |
+
def _get_boolean_keys(self):
|
71 |
+
if self._override_boolean_key is not None:
|
72 |
+
if isinstance(self._override_boolean_key, str):
|
73 |
+
return [self._override_boolean_key]
|
74 |
+
elif isinstance(self._override_boolean_key, list):
|
75 |
+
return self._override_boolean_key
|
76 |
+
else:
|
77 |
+
raise Exception(f'_override_boolean_key not recognized {self._override_boolean_key}')
|
78 |
+
else:
|
79 |
+
return None
|
80 |
+
|
81 |
+
def __repr__(self):
|
82 |
+
print_str = f'database: {self._get_db_name()}'
|
83 |
+
print_str += f'\ninstance: {self._get_instance()}'
|
84 |
+
print_str += f'\ncollection: {self._get_name()}'
|
85 |
+
key_str = ', '.join([i for i in self.get_keys() if i != 'values'])
|
86 |
+
print_str += f'\nkeys: [{key_str}]'
|
87 |
+
storage_size = self._db_obj.command('collstats', self._get_name())['size'] / 1e6
|
88 |
+
print_str += f'\nstorage size: {storage_size:.1f}MB'
|
89 |
+
num_docs = self._get_cursor().count()
|
90 |
+
print_str += f'\ndocuments: {num_docs}'
|
91 |
+
return print_str
|
92 |
+
|
93 |
+
def _get_collection(self):
|
94 |
+
return self._collection
|
95 |
+
|
96 |
+
def _get_instance(self):
|
97 |
+
return self._instance
|
98 |
+
|
99 |
+
def _get_name(self):
|
100 |
+
return self._name
|
101 |
+
|
102 |
+
def _get_host_and_port(self):
|
103 |
+
user = self._get_credentials()['user']
|
104 |
+
password = self._get_credentials()['password']
|
105 |
+
host = self._get_credentials()['host']
|
106 |
+
port = self._get_credentials()['port']
|
107 |
+
full_hostname = f"mongodb+srv://{user}:{password}@{host}/{port}"
|
108 |
+
return full_hostname, port
|
109 |
+
|
110 |
+
def _get_db_object(self):
|
111 |
+
client = pymongo.MongoClient(host=self._get_host_and_port()[0], port=self._get_host_and_port()[1])
|
112 |
+
return client[self._get_db_name()]
|
113 |
+
|
114 |
+
def _get_db_name(self):
|
115 |
+
return self._get_credentials()['dbname']
|
116 |
+
|
117 |
+
def _set_advanced_query(self):
|
118 |
+
if self._is_adv_query:
|
119 |
+
and_ls = []
|
120 |
+
ls_dd = self._product_dict(**self._query)
|
121 |
+
for dd in ls_dd:
|
122 |
+
and_ls.extend([{'$and': [dd]}])
|
123 |
+
or_dd = {'$or': and_ls}
|
124 |
+
self._query = or_dd
|
125 |
+
|
126 |
+
def _get_query(self):
|
127 |
+
return self._query
|
128 |
+
|
129 |
+
def _get_cursor(self):
|
130 |
+
if self._out is None:
|
131 |
+
self._cursor = self._collection.find(self._query)
|
132 |
+
return self._cursor
|
133 |
+
|
134 |
+
@staticmethod
|
135 |
+
def _product_dict(**kwargs):
|
136 |
+
for key, val in kwargs.items(): # make sure adv query values are all lists
|
137 |
+
if not isinstance(val, list):
|
138 |
+
kwargs.update({key: [val]})
|
139 |
+
|
140 |
+
keys = kwargs.keys()
|
141 |
+
vals = kwargs.values()
|
142 |
+
for instance in itertools.product(*vals):
|
143 |
+
yield dict(zip(keys, instance))
|
144 |
+
|
145 |
+
def _set_query(self, query):
|
146 |
+
query_dd = dict()
|
147 |
+
for k, v in query.items():
|
148 |
+
if v is not None: # drop None from queries, but allow it to pass
|
149 |
+
if isinstance(v, str) and '~' in v:
|
150 |
+
query_dd[k] = {'$ne': v.replace('~', '')}
|
151 |
+
elif isinstance(v, list):
|
152 |
+
new_ls = list()
|
153 |
+
neg_ls = list()
|
154 |
+
for i in v:
|
155 |
+
if isinstance(i, str) and '~' in i:
|
156 |
+
neg_ls.append(i.replace('~', ''))
|
157 |
+
else:
|
158 |
+
new_ls.append(i)
|
159 |
+
if len(neg_ls) > 0:
|
160 |
+
new_ls.append({'$nin': neg_ls})
|
161 |
+
query_dd[k] = new_ls
|
162 |
+
else:
|
163 |
+
query_dd[k] = v
|
164 |
+
self._query = query_dd
|
165 |
+
|
166 |
+
def drop_collection(self, confirm=''):
|
167 |
+
if confirm != 'confirm':
|
168 |
+
print('drop_collection not confirmed. Make sure you know what you are doing. Pass "confirm" to drop.')
|
169 |
+
else:
|
170 |
+
db_obj = self._get_db_object()
|
171 |
+
db_obj.drop_collection(self._name)
|
172 |
+
print('Database: %s' % self._get_db_name())
|
173 |
+
print('Collection dropped: %s' % self._name)
|
174 |
+
|
175 |
+
def _reindex(self, confirm=''):
|
176 |
+
if confirm != 'confirm':
|
177 |
+
print('reindex not confirmed. Nothing done. Pass "confirm" to reindex.')
|
178 |
+
else:
|
179 |
+
collection = self._get_collection()
|
180 |
+
collection.drop_indexes()
|
181 |
+
idx_tup_ls = [(i, pymongo.ASCENDING) for i in self._key_ls]
|
182 |
+
collection.create_index(idx_tup_ls, unique=True, name=self._name) # this will index it
|
183 |
+
print('collection %s successfully re-indexed' % self._name)
|
184 |
+
|
185 |
+
def count(self):
|
186 |
+
print(f'Database: {self._get_db_name()}')
|
187 |
+
print(f'Collection: {self._name}')
|
188 |
+
|
189 |
+
print(f'Query: {self._query}')
|
190 |
+
print(f'Documents: {self._collection.count_documents(self._query)}')
|
191 |
+
|
192 |
+
def replace_field_value(self, existing_field=True, **kwargs):
|
193 |
+
"""
|
194 |
+
make sure you declare the appropriate key=value arguments to be modified in your query!
|
195 |
+
"""
|
196 |
+
if len(kwargs) != 1:
|
197 |
+
raise Exception('please rename only one field at a time')
|
198 |
+
|
199 |
+
field = list(kwargs.keys())[0]
|
200 |
+
value = kwargs[field]
|
201 |
+
|
202 |
+
if field not in self.get_keys() and existing_field: # check init that everything is ok to reindex
|
203 |
+
raise Exception('new field needs to be declared in collection keys before replace / re-index')
|
204 |
+
|
205 |
+
if field == 'values':
|
206 |
+
raise Exception('values cannot be replace with this method. Use .update_values() instead')
|
207 |
+
|
208 |
+
if existing_field:
|
209 |
+
if not self._query:
|
210 |
+
raise Exception('Cannot replace key value without filters.')
|
211 |
+
if self._get_boolean_keys() and field in self._get_boolean_keys():
|
212 |
+
value = str(int(value))
|
213 |
+
|
214 |
+
cursor = self._get_cursor()
|
215 |
+
request_ls = []
|
216 |
+
for doc in cursor:
|
217 |
+
if existing_field:
|
218 |
+
doc.pop(field)
|
219 |
+
update_dd = {'$set': {field: value}}
|
220 |
+
request = pymongo.UpdateOne(doc, update_dd, upsert=False)
|
221 |
+
request_ls.append(request)
|
222 |
+
|
223 |
+
if len(request_ls) > 0:
|
224 |
+
self._get_collection().bulk_write(request_ls)
|
225 |
+
print(f'collection field {field} successfully updated to {value}')
|
226 |
+
|
227 |
+
if not existing_field:
|
228 |
+
self._reindex('confirm')
|
229 |
+
else:
|
230 |
+
print('no operations to handle')
|
231 |
+
|
232 |
+
@classmethod
|
233 |
+
def get_keys(self):
|
234 |
+
return [i for i in self._key_ls] # pass a copy
|
235 |
+
|
236 |
+
def get_key_values(self):
|
237 |
+
match_dd = {'$match': self._query}
|
238 |
+
|
239 |
+
key_dd = {k: f'${k}' for k in self._key_ls}
|
240 |
+
group_dd = {'$group': {'_id': key_dd}}
|
241 |
+
|
242 |
+
cursor = self._collection.aggregate([match_dd, group_dd])
|
243 |
+
ls = [i['_id'] for i in list(cursor)]
|
244 |
+
keys_df = pd.DataFrame(ls)
|
245 |
+
if not keys_df.empty:
|
246 |
+
keys_df = keys_df.sort_values(by=self._key_ls)
|
247 |
+
keys_df = keys_df.reset_index(drop=True)
|
248 |
+
return keys_df
|
249 |
+
|
250 |
+
def _is_local_instance(self):
|
251 |
+
return self._get_instance() == 'local'
|
252 |
+
|
253 |
+
def delete_many(self, confirm=''):
|
254 |
+
if not self._query:
|
255 |
+
raise Exception('Cannot delete_many without filters. Use drop_collection() instead for a full drop.')
|
256 |
+
|
257 |
+
lmt = self._del_many_limit
|
258 |
+
cnt = self._collection.count_documents(self._query)
|
259 |
+
if (cnt > lmt) and confirm != 'confirm':
|
260 |
+
raise Exception(f'confirm delete_many() if more than {lmt} documents. Potentially deleted: {cnt}')
|
261 |
+
|
262 |
+
before = self._collection.count_documents({})
|
263 |
+
self._get_collection().delete_many(self._query)
|
264 |
+
after = self._collection.count_documents({})
|
265 |
+
self._out = None
|
266 |
+
print(f'{before - after} document(s) deleted')
|
267 |
+
|
268 |
+
def distinct(self, field):
|
269 |
+
if isinstance(field, str):
|
270 |
+
field = field
|
271 |
+
cursor = self._get_cursor()
|
272 |
+
return cursor.distinct(field) # faster
|
273 |
+
elif isinstance(field, list):
|
274 |
+
group_dd = {"_id": {i: f'${i}' for i in field}}
|
275 |
+
if len(self._query) > 0:
|
276 |
+
cursor = self._collection.aggregate([{'$match': self._query},
|
277 |
+
{"$group": group_dd}])
|
278 |
+
else:
|
279 |
+
cursor = self._collection.aggregate([{"$group": group_dd}])
|
280 |
+
dd = [doc['_id'] for doc in cursor]
|
281 |
+
return pd.DataFrame().from_dict(dd)
|
282 |
+
|
283 |
+
|
284 |
+
class _MongoSeries(_MongoAbstract):
|
285 |
+
_drop_weekends = None
|
286 |
+
|
287 |
+
def __init__(self, instance='remote', **query):
|
288 |
+
_MongoAbstract.__init__(self, instance=instance, **query)
|
289 |
+
|
290 |
+
def _get_drop_weekends(self):
|
291 |
+
return self._drop_weekends
|
292 |
+
|
293 |
+
def _update_query_date_range(self, start, end):
|
294 |
+
if start is not None and end is None:
|
295 |
+
self._query['values.date'] = start
|
296 |
+
# self._query['values'] = {'$elemMatch': {'date': {'$gte': start}}}
|
297 |
+
elif start is None and end is not None:
|
298 |
+
self._query['values.date'] = {'$lte': end}
|
299 |
+
elif start is not None and end is not None:
|
300 |
+
self._query['values.date'] = {'$gte': start, '$lte': end}
|
301 |
+
else: # both none
|
302 |
+
pass
|
303 |
+
|
304 |
+
def _get_query_cursor(self, start, end):
|
305 |
+
if start is None and end is None:
|
306 |
+
return self._get_cursor() # simple case
|
307 |
+
else:
|
308 |
+
co = self._get_collection()
|
309 |
+
key_ls = self.get_keys()
|
310 |
+
match_dd = {'$match': self._query}
|
311 |
+
if start is not None and end is None:
|
312 |
+
if isinstance(start, (dt.datetime, dt.date)):
|
313 |
+
start = start.strftime('%Y%m%d')
|
314 |
+
start = start.replace('-', '')
|
315 |
+
filter_dd = {
|
316 |
+
'$filter':
|
317 |
+
{'input': '$values',
|
318 |
+
'as': 'vals',
|
319 |
+
'cond': {'$gte': ['$$vals.date', start]}
|
320 |
+
}
|
321 |
+
}
|
322 |
+
elif start is None and end is not None:
|
323 |
+
if isinstance(end, dt.datetime):
|
324 |
+
end = end.strftime('%Y%m%d')
|
325 |
+
end = end.replace('-', '')
|
326 |
+
filter_dd = {
|
327 |
+
'$filter':
|
328 |
+
{'input': '$values',
|
329 |
+
'as': 'vals',
|
330 |
+
'cond': {'$lte': ['$$vals.date', end]}
|
331 |
+
}
|
332 |
+
}
|
333 |
+
else: # both defined
|
334 |
+
if isinstance(start, dt.datetime):
|
335 |
+
start = start.strftime('%Y%m%d')
|
336 |
+
start = start.replace('-', '')
|
337 |
+
|
338 |
+
if isinstance(end, dt.datetime):
|
339 |
+
end = end.strftime('%Y%m%d')
|
340 |
+
end = end.replace('-', '')
|
341 |
+
filter_dd = {
|
342 |
+
'$filter':
|
343 |
+
{'input': '$values',
|
344 |
+
'as': 'vals',
|
345 |
+
'cond': {'$and': [{'$gte': ['$$vals.date', start]},
|
346 |
+
{'$lte': ['$$vals.date', end]}]}
|
347 |
+
}
|
348 |
+
}
|
349 |
+
key_dd = {i: 1 for i in key_ls}
|
350 |
+
key_dd['values'] = filter_dd
|
351 |
+
project_dd = {'$project': key_dd}
|
352 |
+
cursor = co.aggregate([match_dd, project_dd])
|
353 |
+
return cursor
|
354 |
+
|
355 |
+
def insert(self, pd_obj, col_key):
|
356 |
+
if pd_obj.empty:
|
357 |
+
print('pd_obj empty, no data to insert')
|
358 |
+
return
|
359 |
+
|
360 |
+
if isinstance(pd_obj, pd.Series):
|
361 |
+
pd_obj = pd.DataFrame(pd_obj)
|
362 |
+
|
363 |
+
# check no dups
|
364 |
+
if pd_obj.columns.has_duplicates:
|
365 |
+
raise Exception('inserted object cannot have duplicated keys!')
|
366 |
+
|
367 |
+
# initial checks
|
368 |
+
if isinstance(col_key, str):
|
369 |
+
col_key = [col_key]
|
370 |
+
|
371 |
+
if len(self._key_ls) != len(col_key):
|
372 |
+
name = self._name
|
373 |
+
full = len(self._key_ls)
|
374 |
+
given = len(col_key)
|
375 |
+
raise Exception(f'insert error: {name}. col_key must have {full} elements. provided was {given}')
|
376 |
+
|
377 |
+
df = pd_obj.copy()
|
378 |
+
df.index = df.index.map(lambda i: i.strftime('%Y%m%d'))
|
379 |
+
|
380 |
+
# integrity check
|
381 |
+
for col in pd_obj.columns:
|
382 |
+
col_val_ls = col.split('.')
|
383 |
+
if len(self._full_key_ls) - 1 != len(col_val_ls):
|
384 |
+
raise Exception(f'all columns must have {len(col_key)} elements. provided was {col_val_ls}')
|
385 |
+
|
386 |
+
# do not store full NaN rows or columns
|
387 |
+
df = df.dropna(how='all', axis=0)
|
388 |
+
df = df.dropna(how='all', axis=1)
|
389 |
+
|
390 |
+
request_ls = []
|
391 |
+
for col in df.columns:
|
392 |
+
col_val_ls = col.split('.')
|
393 |
+
tup = zip(col_key, col_val_ls)
|
394 |
+
query_dd = {k: v for k, v in tup}
|
395 |
+
values_dd = df[col].dropna().to_dict()
|
396 |
+
values_ls = [{'date': k, 'value': v} for k, v in values_dd.items()]
|
397 |
+
update_dd = {'$set': {'values': values_ls}}
|
398 |
+
request = pymongo.UpdateOne(query_dd, update_dd, upsert=True)
|
399 |
+
request_ls.append(request)
|
400 |
+
self._get_collection().bulk_write(request_ls)
|
401 |
+
|
402 |
+
def last_update(self, how='each', order='min'):
|
403 |
+
match_dd = {'$match': self._query}
|
404 |
+
key_dd = {k: f'${k}' for k in self._key_ls}
|
405 |
+
group_dd = {
|
406 |
+
'$group':
|
407 |
+
{'_id':
|
408 |
+
{'_id': key_dd},
|
409 |
+
'max': {'$max': "$values.date"}
|
410 |
+
}
|
411 |
+
}
|
412 |
+
sort_dd = {'$sort': {'values.date': 1}}
|
413 |
+
cursor = self._get_collection().aggregate([match_dd, group_dd, sort_dd])
|
414 |
+
last_df = pd.DataFrame()
|
415 |
+
for num, doc in enumerate(cursor):
|
416 |
+
dd = doc['_id']['_id']
|
417 |
+
dd['last_update'] = doc['max'][-1]
|
418 |
+
tmp_df = pd.DataFrame.from_dict(dd, orient='index').T
|
419 |
+
last_df = pd.concat([last_df, tmp_df], axis=0, sort=True)
|
420 |
+
last_df = last_df[self._key_ls + ['last_update']]
|
421 |
+
last_df['last_update'] = last_df['last_update'].apply(pd.to_datetime)
|
422 |
+
days_f = lambda x: (dt.datetime.today() - x).days
|
423 |
+
last_df['last_update_days'] = last_df['last_update'].apply(days_f)
|
424 |
+
if how == 'all':
|
425 |
+
if order == 'max':
|
426 |
+
return last_df['last_update'].max()
|
427 |
+
elif order == 'min':
|
428 |
+
return last_df['last_update'].min()
|
429 |
+
else:
|
430 |
+
raise Exception(f'argument order not recognized {order}')
|
431 |
+
elif how == 'each':
|
432 |
+
return last_df
|
433 |
+
else:
|
434 |
+
raise Exception(f'argument how not recognized: {how}')
|
435 |
+
|
436 |
+
def query(self, start=None, end=None, rename=None, expand=False):
|
437 |
+
"""
|
438 |
+
override is for self.last_update()
|
439 |
+
"""
|
440 |
+
if self._out is None:
|
441 |
+
cursor = self._get_query_cursor(start, end)
|
442 |
+
|
443 |
+
if rename is not None:
|
444 |
+
if isinstance(rename, str):
|
445 |
+
rename = [rename]
|
446 |
+
|
447 |
+
exclude_ls = ['_id', 'values']
|
448 |
+
df = pd.DataFrame()
|
449 |
+
for doc in cursor:
|
450 |
+
if len(doc['values']) > 0:
|
451 |
+
if rename is not None:
|
452 |
+
name = '.'.join([doc[i] for i in rename])
|
453 |
+
else:
|
454 |
+
name = '.'.join([doc[i] for i in sorted(doc.keys()) if i not in exclude_ls])
|
455 |
+
doc_df = pd.DataFrame().from_dict(doc['values']).set_index('date')
|
456 |
+
doc_df.columns = [name]
|
457 |
+
df = pd.concat([df, doc_df], axis=1, sort=True)
|
458 |
+
|
459 |
+
if df.empty:
|
460 |
+
return df
|
461 |
+
|
462 |
+
df.index = df.index.map(pd.to_datetime)
|
463 |
+
|
464 |
+
if self._get_drop_weekends():
|
465 |
+
week_days_ls = df.index.weekday < 5
|
466 |
+
df = df.loc[week_days_ls].copy()
|
467 |
+
|
468 |
+
if expand:
|
469 |
+
df.columns = df.columns.str.split('.', expand=True)
|
470 |
+
|
471 |
+
# return series if only one column or row
|
472 |
+
if len(df.columns) == 1:
|
473 |
+
df = df[df.columns[0]].copy()
|
474 |
+
|
475 |
+
if len(df.index) == 1:
|
476 |
+
df = df.iloc[-1].copy()
|
477 |
+
|
478 |
+
self._out = df.copy()
|
479 |
+
return self._out
|
480 |
+
|
481 |
+
def drop_datapoint(self, date_str):
|
482 |
+
if self._collection.count_documents(self._query) == 0:
|
483 |
+
raise Exception('no documents found with given filters')
|
484 |
+
|
485 |
+
if self._collection.count_documents(self._query) > 1:
|
486 |
+
raise Exception('you can only drop datapoints one series at a time')
|
487 |
+
|
488 |
+
if isinstance(date_str, dt.datetime):
|
489 |
+
date_str = date_str.strftime('%Y%m%d')
|
490 |
+
|
491 |
+
cursor = self._get_cursor()
|
492 |
+
request_ls = []
|
493 |
+
for doc in cursor:
|
494 |
+
doc.pop('_id')
|
495 |
+
doc.pop('values')
|
496 |
+
doc['values.date'] = date_str
|
497 |
+
update_dd = {'$unset': {'values.$.value': ""}}
|
498 |
+
request = pymongo.UpdateOne(doc, update_dd, upsert=False)
|
499 |
+
request_ls.append(request)
|
500 |
+
self._get_collection().bulk_write(request_ls)
|
501 |
+
|
502 |
+
def update_values(self, pd_obj, col_key):
|
503 |
+
if pd_obj.empty:
|
504 |
+
print('pd_obj empty, no data to update')
|
505 |
+
return
|
506 |
+
|
507 |
+
# initial checks
|
508 |
+
if isinstance(col_key, str):
|
509 |
+
col_key = [col_key]
|
510 |
+
|
511 |
+
if len(self._key_ls) != len(col_key):
|
512 |
+
name = self._name
|
513 |
+
full = len(self._key_ls)
|
514 |
+
given = len(col_key)
|
515 |
+
raise Exception(f'insert error: {name}. col_key must have {full} elements. provided was {given}')
|
516 |
+
|
517 |
+
if isinstance(pd_obj, pd.Series):
|
518 |
+
df = pd.DataFrame(pd_obj)
|
519 |
+
else:
|
520 |
+
df = pd_obj.copy()
|
521 |
+
|
522 |
+
# check no dups
|
523 |
+
if df.columns.has_duplicates:
|
524 |
+
raise Exception('inserted object cannot have duplicated keys!')
|
525 |
+
|
526 |
+
# integrity check
|
527 |
+
for col in df.columns:
|
528 |
+
col_val_ls = col.split('.')
|
529 |
+
if len(self._full_key_ls) - 1 != len(col_val_ls):
|
530 |
+
raise Exception(f'all columns must have {len(col_key)} elements. provided was {col_val_ls}')
|
531 |
+
|
532 |
+
df.index = df.index.map(lambda i: i.strftime('%Y%m%d'))
|
533 |
+
df = df.dropna(axis=0, how='all')
|
534 |
+
df = df.dropna(axis=1, how='all')
|
535 |
+
|
536 |
+
request_ls = []
|
537 |
+
for col in df.columns:
|
538 |
+
col_val_ls = col.split('.')
|
539 |
+
tup = zip(col_key, col_val_ls)
|
540 |
+
query_dd = {k: v for k, v in tup}
|
541 |
+
values_dd = df[col].dropna().to_dict()
|
542 |
+
|
543 |
+
# pull many
|
544 |
+
date_ls = list(values_dd.keys())
|
545 |
+
update_dd = {
|
546 |
+
'$pull': {'values': {'date': {'$in': date_ls}}}
|
547 |
+
}
|
548 |
+
request = pymongo.UpdateMany(query_dd, update_dd, upsert=True)
|
549 |
+
request_ls.append(request)
|
550 |
+
|
551 |
+
# push many
|
552 |
+
new_ls = [{'date': k, 'value': v} for k, v in values_dd.items()]
|
553 |
+
update_dd = {'$push': {'values': {'$each': new_ls}}}
|
554 |
+
request = pymongo.UpdateMany(query_dd, update_dd, upsert=True)
|
555 |
+
request_ls.append(request)
|
556 |
+
self._get_collection().bulk_write(request_ls, ordered=True)
|
557 |
+
|
558 |
+
|
559 |
+
class _MongoDoc(_MongoAbstract):
|
560 |
+
def __init__(self, instance='remote', **query):
|
561 |
+
_MongoAbstract.__init__(self, instance=instance, **query)
|
562 |
+
|
563 |
+
def insert(self, dd):
|
564 |
+
if not isinstance(dd, dict):
|
565 |
+
print('insert dict empty, no data to insert')
|
566 |
+
return
|
567 |
+
|
568 |
+
# initial checks
|
569 |
+
if sorted(list(self._get_query().keys())) != sorted(self.get_keys()):
|
570 |
+
raise Exception(f'specify a full query to insert into a _MongoTable! Keys are: {str(self.get_keys())}')
|
571 |
+
|
572 |
+
cast_key_ls = set([str(k) for k in dd.keys()])
|
573 |
+
if len(cast_key_ls) != len(dd.keys()):
|
574 |
+
raise Exception('identical string representations of keys are not allowed')
|
575 |
+
insert_dd = {str(k): v for k, v in dd.items()}
|
576 |
+
|
577 |
+
filter_dd = self._get_query()
|
578 |
+
update_dd = {'$set': {'values': insert_dd}}
|
579 |
+
self._get_collection().update_one(filter_dd, update=update_dd, upsert=True)
|
580 |
+
|
581 |
+
def query(self, expand=False, rename=None):
|
582 |
+
"""
|
583 |
+
override is for self.last_update()
|
584 |
+
"""
|
585 |
+
|
586 |
+
if rename:
|
587 |
+
if isinstance(rename, str):
|
588 |
+
rename = [rename]
|
589 |
+
|
590 |
+
if self._out is None:
|
591 |
+
cursor = self._get_cursor() # simple case
|
592 |
+
|
593 |
+
df = pd.DataFrame()
|
594 |
+
for num, doc in enumerate(cursor):
|
595 |
+
if doc['values']:
|
596 |
+
doc.pop('_id')
|
597 |
+
val_dd = doc.pop('values')
|
598 |
+
if rename:
|
599 |
+
name = '.'.join([str(doc[k]) for k in rename])
|
600 |
+
else:
|
601 |
+
name = '.'.join([str(doc[k]) for k in sorted(doc.keys())])
|
602 |
+
s = pd.Series(val_dd, name=name, dtype=object)
|
603 |
+
df = pd.concat([df, s], axis=1, sort=True)
|
604 |
+
|
605 |
+
if expand:
|
606 |
+
df.columns = df.columns.str.split('.', expand=True)
|
607 |
+
|
608 |
+
# return series if only one column or row
|
609 |
+
if len(df.columns) == 1:
|
610 |
+
df = df[df.columns[0]].copy()
|
611 |
+
|
612 |
+
if len(df.index) == 1:
|
613 |
+
df = df.iloc[-1].copy()
|
614 |
+
|
615 |
+
self._out = df
|
616 |
+
return self._out
|
617 |
+
|
618 |
+
|
619 |
+
class _MongoTable(_MongoAbstract):
|
620 |
+
def __init__(self, instance='remote', **query):
|
621 |
+
_MongoAbstract.__init__(self, instance=instance, **query)
|
622 |
+
|
623 |
+
def insert(self, pd_obj):
|
624 |
+
if pd_obj.empty:
|
625 |
+
print('pd_obj empty, no data to insert')
|
626 |
+
return
|
627 |
+
|
628 |
+
if isinstance(pd_obj, pd.Series):
|
629 |
+
pd_obj = pd.DataFrame(pd_obj)
|
630 |
+
|
631 |
+
# check no dups
|
632 |
+
if pd_obj.columns.has_duplicates:
|
633 |
+
raise Exception('inserted object cannot have duplicated columns!')
|
634 |
+
|
635 |
+
# initial checks
|
636 |
+
if sorted(list(self._get_query().keys())) != sorted(self.get_keys()):
|
637 |
+
raise Exception(f'specify a full query to insert into a _MongoTable! Keys are: {str(self.get_keys())}')
|
638 |
+
|
639 |
+
# drop nan
|
640 |
+
df = pd_obj.copy()
|
641 |
+
df = df.dropna(how='all', axis=0)
|
642 |
+
df = df.dropna(how='all', axis=1)
|
643 |
+
|
644 |
+
if isinstance(df.columns, pd.core.indexes.multi.MultiIndex):
|
645 |
+
df.columns = ['.'.join([i for i in col]) for col in df.columns]
|
646 |
+
|
647 |
+
if isinstance(df.index, pd.core.indexes.multi.MultiIndex):
|
648 |
+
df.index = ['.'.join([i for i in col]) for col in df.columns]
|
649 |
+
|
650 |
+
df.columns = df.columns.map(str)
|
651 |
+
df.index = df.index.map(str)
|
652 |
+
|
653 |
+
values_dd = df.to_dict(orient='records')
|
654 |
+
|
655 |
+
filter_dd = self._get_query()
|
656 |
+
update_dd = {'$set': {'values': values_dd}}
|
657 |
+
self._get_collection().update_one(filter_dd, update=update_dd, upsert=True)
|
658 |
+
|
659 |
+
def query(self, rename=None, expand=False):
|
660 |
+
"""
|
661 |
+
override is for self.last_update()
|
662 |
+
"""
|
663 |
+
if self._out is None:
|
664 |
+
cursor = self._get_cursor() # simple case
|
665 |
+
|
666 |
+
if rename is not None:
|
667 |
+
if isinstance(rename, str):
|
668 |
+
rename = [rename]
|
669 |
+
|
670 |
+
exclude_ls = ['_id', 'values']
|
671 |
+
out_df = pd.DataFrame()
|
672 |
+
cnt = 0
|
673 |
+
for num, doc in enumerate(cursor):
|
674 |
+
if len(doc['values']) > 0:
|
675 |
+
df = pd.DataFrame().from_records(doc['values'])
|
676 |
+
if rename is not None:
|
677 |
+
name = '.'.join([doc[i] for i in rename])
|
678 |
+
else:
|
679 |
+
name = '.'.join([doc[i] for i in sorted(doc.keys()) if i not in exclude_ls])
|
680 |
+
id_ls = [name] * df.shape[0]
|
681 |
+
df['_id'] = id_ls
|
682 |
+
out_df = pd.concat([out_df, df], axis=0, sort=True)
|
683 |
+
cnt += 1
|
684 |
+
|
685 |
+
if out_df.empty:
|
686 |
+
return out_df
|
687 |
+
|
688 |
+
if cnt > 1:
|
689 |
+
out_df = out_df.reset_index(drop=False)
|
690 |
+
out_df = out_df.set_index('_id', drop=True)
|
691 |
+
out_df.index.name = None
|
692 |
+
else:
|
693 |
+
out_df = out_df.drop('_id', axis=1)
|
694 |
+
|
695 |
+
if expand:
|
696 |
+
out_df.index = out_df.index.str.split('.', expand=True)
|
697 |
+
|
698 |
+
# return series if only one column or row
|
699 |
+
if len(out_df.columns) == 1:
|
700 |
+
out_df = out_df[out_df.columns[0]].copy()
|
701 |
+
|
702 |
+
if len(out_df.index) == 1:
|
703 |
+
out_df = out_df.iloc[-1].copy()
|
704 |
+
|
705 |
+
self._out = out_df.copy()
|
706 |
+
return self._out
|
707 |
+
|
708 |
+
|
709 |
+
class _MongoLog(_MongoAbstract):
|
710 |
+
def __init__(self, instance='remote', **query):
|
711 |
+
_MongoAbstract.__init__(self, instance=instance, **query)
|
712 |
+
|
713 |
+
def _log(self, df):
|
714 |
+
request_ls = []
|
715 |
+
if not df.empty:
|
716 |
+
for (section, iso_dt), row_s in df.iterrows():
|
717 |
+
values_dd = row_s.to_dict()
|
718 |
+
doc_id = {'section': section,
|
719 |
+
'iso_date': iso_dt}
|
720 |
+
update_dd = {'$push': {'values': values_dd}}
|
721 |
+
request = pymongo.UpdateOne(doc_id, update_dd, upsert=True)
|
722 |
+
request_ls.append(request)
|
723 |
+
self._get_collection().bulk_write(request_ls)
|
724 |
+
|
725 |
+
def query(self, rename=None, expand=False):
|
726 |
+
"""
|
727 |
+
override is for self.last_update()
|
728 |
+
"""
|
729 |
+
if self._out is None:
|
730 |
+
cursor = self._get_cursor() # simple case
|
731 |
+
|
732 |
+
if rename is not None:
|
733 |
+
if isinstance(rename, str):
|
734 |
+
rename = [rename]
|
735 |
+
|
736 |
+
exclude_ls = ['_id', 'values']
|
737 |
+
df = pd.DataFrame()
|
738 |
+
for doc in cursor:
|
739 |
+
if len(doc['values']) > 0:
|
740 |
+
if rename is not None:
|
741 |
+
name = '.'.join([doc[i] for i in rename])
|
742 |
+
else:
|
743 |
+
name = '.'.join([doc[i] for i in sorted(doc.keys()) if i not in exclude_ls])
|
744 |
+
doc_df = pd.DataFrame().from_records(doc['values'])
|
745 |
+
doc_df.index = [name] * len(doc_df.index)
|
746 |
+
df = pd.concat([df, doc_df], axis=0, sort=True)
|
747 |
+
|
748 |
+
if df.empty:
|
749 |
+
return df
|
750 |
+
|
751 |
+
if expand:
|
752 |
+
df.index = df.index.str.split('.', expand=True)
|
753 |
+
|
754 |
+
# return series if only one column or row
|
755 |
+
if len(df.columns) == 1:
|
756 |
+
df = df[df.columns[0]].copy()
|
757 |
+
|
758 |
+
if len(df.index) == 1:
|
759 |
+
df = df.iloc[-1].copy()
|
760 |
+
|
761 |
+
self._out = df.copy()
|
762 |
+
return self._out
|
modules/mongo/mongo_api/mongo_credentials.py
CHANGED
@@ -1,3 +1,29 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import streamlit as st
|
3 |
+
try:
|
4 |
+
credentials = {
|
5 |
+
"user": st.secrets['MONGO_USER'],
|
6 |
+
"password": st.secrets['MONGO_PASSWORD'],
|
7 |
+
"dbname": str(st.secrets['MONGO_DB']),
|
8 |
+
"host": st.secrets['MONGO_HOST'],
|
9 |
+
"args": "test?retryWrites=true&w=majority",
|
10 |
+
"port": int(st.secrets['MONGO_PORT'])
|
11 |
+
}
|
12 |
+
except:
|
13 |
+
credentials = {
|
14 |
+
"user": 'quantUser',
|
15 |
+
"password": 'Quant.L4rr4?',
|
16 |
+
"dbname": 'QuantRepo',
|
17 |
+
"host": 'quant-main.5pkxp.mongodb.net',
|
18 |
+
"args": "test?retryWrites=true&w=majority",
|
19 |
+
"port": 27017
|
20 |
+
}
|
21 |
+
|
22 |
+
# credentials = {
|
23 |
+
# "user": 'quantUser',
|
24 |
+
# "password": 'Quant.L4rr4?',
|
25 |
+
# "dbname": 'QuantRepo',
|
26 |
+
# "host": 'quant-main.5pkxp.mongodb.net',
|
27 |
+
# "args": "test?retryWrites=true&w=majority",
|
28 |
+
# "port": 27017
|
29 |
+
# }
|
modules/mongo/requirements.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
1 |
+
datetime>=4.3
|
2 |
+
numpy==1.19.3 # use 1.19.3 until windows problem is fixed with 1.19.4
|
3 |
+
pandas>=1.1.5
|
4 |
+
dnspython==2.0.0
|
5 |
+
pymongo==3.11.2
|
6 |
+
wheel>=0.36.1
|
modules/mongo/setup.py
CHANGED
@@ -1,3 +1,12 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from setuptools import setup
|
2 |
+
|
3 |
+
setup(name='mongo_api',
|
4 |
+
version='0.1.2',
|
5 |
+
description='Amalgama Mongo API',
|
6 |
+
url='https://github.com/AmalgamaLtd/mongo_api.git',
|
7 |
+
author='Alexandre Larrain',
|
8 |
+
author_email='[email protected]',
|
9 |
+
license= 'GNU GPL v.3',
|
10 |
+
packages=['mongo_api'],
|
11 |
+
zip_safe=False
|
12 |
+
)
|
modules/quill/LICENSE
CHANGED
@@ -1,3 +1,19 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright (c) 2018 The Python Packaging Authority
|
2 |
+
|
3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4 |
+
of this software and associated documentation files (the "Software"), to deal
|
5 |
+
in the Software without restriction, including without limitation the rights
|
6 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7 |
+
copies of the Software, and to permit persons to whom the Software is
|
8 |
+
furnished to do so, subject to the following conditions:
|
9 |
+
|
10 |
+
The above copyright notice and this permission notice shall be included in all
|
11 |
+
copies or substantial portions of the Software.
|
12 |
+
|
13 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19 |
+
SOFTWARE.
|
modules/quill/MANIFEST.in
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
|
2 |
-
oid sha256:9a265b1cd68f8b1cb9ee4f401897f327e33fa7b7adeb0f569450773bd8ba1b23
|
3 |
-
size 47
|
|
|
1 |
+
recursive-include streamlit_*/frontend/build *
|
|
|
|
modules/quill/README.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7d76f835c01d890d4752c2c6ede7aaee76c7cc066f86f3c45f99936930b2afce
|
3 |
+
size 1010
|
modules/quill/preview.png
CHANGED
![]() |
Git LFS Details
|
![]() |
modules/quill/setup.py
CHANGED
@@ -1,3 +1,21 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from pathlib import Path
|
2 |
+
import setuptools
|
3 |
+
|
4 |
+
|
5 |
+
setuptools.setup(
|
6 |
+
name="streamlit-quill",
|
7 |
+
version="0.0.3",
|
8 |
+
author="Ghasel",
|
9 |
+
author_email="",
|
10 |
+
description="Quill component for Streamlit",
|
11 |
+
long_description=(Path(__file__).parent / "README.md").read_text(),
|
12 |
+
long_description_content_type="text/markdown",
|
13 |
+
url="https://github.com/Ghasel/streamlit-quill",
|
14 |
+
packages=setuptools.find_packages(),
|
15 |
+
include_package_data=True,
|
16 |
+
classifiers=[],
|
17 |
+
python_requires=">=3.6",
|
18 |
+
install_requires=[
|
19 |
+
"streamlit >= 0.63",
|
20 |
+
],
|
21 |
+
)
|
modules/quill/streamlit_quill/__pycache__/quill.cpython-38.pyc
CHANGED
Binary files a/modules/quill/streamlit_quill/__pycache__/quill.cpython-38.pyc and b/modules/quill/streamlit_quill/__pycache__/quill.cpython-38.pyc differ
|
|
modules/quill/streamlit_quill/frontend/.env
CHANGED
@@ -1,3 +1,6 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
1 |
+
# Run the component's dev server on :3001
|
2 |
+
# (The Streamlit dev server already runs on :3000)
|
3 |
+
PORT=3001
|
4 |
+
|
5 |
+
# Don't automatically open the web browser on `npm run start`.
|
6 |
+
BROWSER=none
|
modules/quill/streamlit_quill/frontend/.prettierrc
CHANGED
@@ -1,3 +1,5 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"endOfLine": "lf",
|
3 |
+
"semi": false,
|
4 |
+
"trailingComma": "es5"
|
5 |
+
}
|
modules/quill/streamlit_quill/frontend/build/asset-manifest.json
CHANGED
@@ -1,3 +1,23 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"files": {
|
3 |
+
"main.js": "./static/js/main.21a6f1da.chunk.js",
|
4 |
+
"main.js.map": "./static/js/main.21a6f1da.chunk.js.map",
|
5 |
+
"runtime-main.js": "./static/js/runtime-main.11ec9aca.js",
|
6 |
+
"runtime-main.js.map": "./static/js/runtime-main.11ec9aca.js.map",
|
7 |
+
"static/css/2.3e2d5b0e.chunk.css": "./static/css/2.3e2d5b0e.chunk.css",
|
8 |
+
"static/js/2.c8ea490a.chunk.js": "./static/js/2.c8ea490a.chunk.js",
|
9 |
+
"static/js/2.c8ea490a.chunk.js.map": "./static/js/2.c8ea490a.chunk.js.map",
|
10 |
+
"index.html": "./index.html",
|
11 |
+
"precache-manifest.c41d16a9c1e698d05316f9c838e08045.js": "./precache-manifest.c41d16a9c1e698d05316f9c838e08045.js",
|
12 |
+
"service-worker.js": "./service-worker.js",
|
13 |
+
"static/css/2.3e2d5b0e.chunk.css.map": "./static/css/2.3e2d5b0e.chunk.css.map",
|
14 |
+
"static/js/2.c8ea490a.chunk.js.LICENSE.txt": "./static/js/2.c8ea490a.chunk.js.LICENSE.txt",
|
15 |
+
"static/media/katex.min.css": "./static/media/KaTeX_Typewriter-Regular.641339e2.woff2"
|
16 |
+
},
|
17 |
+
"entrypoints": [
|
18 |
+
"static/js/runtime-main.11ec9aca.js",
|
19 |
+
"static/css/2.3e2d5b0e.chunk.css",
|
20 |
+
"static/js/2.c8ea490a.chunk.js",
|
21 |
+
"static/js/main.21a6f1da.chunk.js"
|
22 |
+
]
|
23 |
+
}
|
modules/quill/streamlit_quill/frontend/build/bootstrap.min.css
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
modules/quill/streamlit_quill/frontend/build/index.html
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
|
2 |
-
oid sha256:9f6f8b97432a5091594468d1ba68dd9be4cd9c0f26a1ae723d84c681dab836e3
|
3 |
-
size 2206
|
|
|
1 |
+
<!doctype html><html lang="en"><head><title>Streamlit Component</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Streamlit Component"/><link rel="stylesheet" href="bootstrap.min.css"/><link rel="stylesheet" href="style.css"/><link href="./static/css/2.3e2d5b0e.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,l,a=t[0],p=t[1],i=t[2],c=0,s=[];c<a.length;c++)l=a[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);for(f&&f(t);s.length;)s.shift()();return u.push.apply(u,i||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var p=r[a];0!==o[p]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="./";var a=this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[],p=a.push.bind(a);a.push=t,a=a.slice();for(var i=0;i<a.length;i++)t(a[i]);var f=p;r()}([])</script><script src="./static/js/2.c8ea490a.chunk.js"></script><script src="./static/js/main.21a6f1da.chunk.js"></script></body></html>
|
|
|
|
modules/quill/streamlit_quill/frontend/build/precache-manifest.c41d16a9c1e698d05316f9c838e08045.js
CHANGED
@@ -1,3 +1,266 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
2 |
+
{
|
3 |
+
"revision": "302f157e8025afe97226772be8c5315f",
|
4 |
+
"url": "./index.html"
|
5 |
+
},
|
6 |
+
{
|
7 |
+
"revision": "7c6df67de8d0d2dd93c2",
|
8 |
+
"url": "./static/css/2.3e2d5b0e.chunk.css"
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"revision": "7c6df67de8d0d2dd93c2",
|
12 |
+
"url": "./static/js/2.c8ea490a.chunk.js"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"revision": "351c7e30d1ea043bded4721f66ae67e4",
|
16 |
+
"url": "./static/js/2.c8ea490a.chunk.js.LICENSE.txt"
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"revision": "d336f0705657fed90b78",
|
20 |
+
"url": "./static/js/main.21a6f1da.chunk.js"
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"revision": "7c26bca7e16783d14d15",
|
24 |
+
"url": "./static/js/runtime-main.11ec9aca.js"
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"revision": "2dbe16b4f4662798159f8d62c8d2509d",
|
28 |
+
"url": "./static/media/KaTeX_AMS-Regular.2dbe16b4.ttf"
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"revision": "38a68f7d18d292349a6e802a66136eae",
|
32 |
+
"url": "./static/media/KaTeX_AMS-Regular.38a68f7d.woff2"
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"revision": "7d307e8337b9559e4040c5fb76819789",
|
36 |
+
"url": "./static/media/KaTeX_AMS-Regular.7d307e83.woff"
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"revision": "33d26881e4dd89321525c43b993f136c",
|
40 |
+
"url": "./static/media/KaTeX_Caligraphic-Bold.33d26881.ttf"
|
41 |
+
},
|
42 |
+
{
|
43 |
+
"revision": "342b2969be13827f320614c923fc0a5b",
|
44 |
+
"url": "./static/media/KaTeX_Caligraphic-Bold.342b2969.woff2"
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"revision": "9634168fb74ed7678f742b7f15e3c09d",
|
48 |
+
"url": "./static/media/KaTeX_Caligraphic-Bold.9634168f.woff"
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"revision": "00029fb44a5125359a6dfd5f3e534f99",
|
52 |
+
"url": "./static/media/KaTeX_Caligraphic-Regular.00029fb4.woff"
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"revision": "5e7940b4ed250e98a512f520e39c867d",
|
56 |
+
"url": "./static/media/KaTeX_Caligraphic-Regular.5e7940b4.ttf"
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"revision": "b50049735e77e336f8a0c5007cfdd5e5",
|
60 |
+
"url": "./static/media/KaTeX_Caligraphic-Regular.b5004973.woff2"
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"revision": "4de87d40f0389255d975c69d45a0a7e7",
|
64 |
+
"url": "./static/media/KaTeX_Fraktur-Bold.4de87d40.woff"
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"revision": "7a3757c0bfc580d91012d092ec8f06cb",
|
68 |
+
"url": "./static/media/KaTeX_Fraktur-Bold.7a3757c0.woff2"
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"revision": "ed330126290a846bf0bb78f61aa6a080",
|
72 |
+
"url": "./static/media/KaTeX_Fraktur-Bold.ed330126.ttf"
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"revision": "450cc4d9319c4a438dd00514efac941b",
|
76 |
+
"url": "./static/media/KaTeX_Fraktur-Regular.450cc4d9.woff2"
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"revision": "82d05fe2abb0da9d1077110efada0f6e",
|
80 |
+
"url": "./static/media/KaTeX_Fraktur-Regular.82d05fe2.ttf"
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"revision": "dc4e330b6334767a16619c60d9ebce8c",
|
84 |
+
"url": "./static/media/KaTeX_Fraktur-Regular.dc4e330b.woff"
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"revision": "2e1915b1a2f33c8ca9d1534193e934d7",
|
88 |
+
"url": "./static/media/KaTeX_Main-Bold.2e1915b1.ttf"
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"revision": "62c69756b3f1ca7b52fea2bea1030cd2",
|
92 |
+
"url": "./static/media/KaTeX_Main-Bold.62c69756.woff"
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"revision": "78b0124fc13059862cfbe4c95ff68583",
|
96 |
+
"url": "./static/media/KaTeX_Main-Bold.78b0124f.woff2"
|
97 |
+
},
|
98 |
+
{
|
99 |
+
"revision": "0d817b487b7fc993bda7dddba745d497",
|
100 |
+
"url": "./static/media/KaTeX_Main-BoldItalic.0d817b48.ttf"
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"revision": "a2e3dcd2316f5002ee2b5f35614849a8",
|
104 |
+
"url": "./static/media/KaTeX_Main-BoldItalic.a2e3dcd2.woff"
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"revision": "c7213ceb79250c2ca46cc34ff3b1aa49",
|
108 |
+
"url": "./static/media/KaTeX_Main-BoldItalic.c7213ceb.woff2"
|
109 |
+
},
|
110 |
+
{
|
111 |
+
"revision": "081073fd6a7c66073ad231db887de944",
|
112 |
+
"url": "./static/media/KaTeX_Main-Italic.081073fd.woff"
|
113 |
+
},
|
114 |
+
{
|
115 |
+
"revision": "767e06e1df6abd16e092684bffa71c38",
|
116 |
+
"url": "./static/media/KaTeX_Main-Italic.767e06e1.ttf"
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"revision": "eea32672f64250e9d1dfb68177c20a26",
|
120 |
+
"url": "./static/media/KaTeX_Main-Italic.eea32672.woff2"
|
121 |
+
},
|
122 |
+
{
|
123 |
+
"revision": "689bbe6b67f22ffb51b15cc6cfa8facf",
|
124 |
+
"url": "./static/media/KaTeX_Main-Regular.689bbe6b.ttf"
|
125 |
+
},
|
126 |
+
{
|
127 |
+
"revision": "756fad0d6f3dff1062cfa951751d744c",
|
128 |
+
"url": "./static/media/KaTeX_Main-Regular.756fad0d.woff"
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"revision": "f30e3b213e9a74cf7563b0c3ee878436",
|
132 |
+
"url": "./static/media/KaTeX_Main-Regular.f30e3b21.woff2"
|
133 |
+
},
|
134 |
+
{
|
135 |
+
"revision": "753ca3dfa44302604bec8e08412ad1c1",
|
136 |
+
"url": "./static/media/KaTeX_Math-BoldItalic.753ca3df.woff2"
|
137 |
+
},
|
138 |
+
{
|
139 |
+
"revision": "b3e80ff3816595ffb07082257d30b24f",
|
140 |
+
"url": "./static/media/KaTeX_Math-BoldItalic.b3e80ff3.woff"
|
141 |
+
},
|
142 |
+
{
|
143 |
+
"revision": "d9377b53f267ef7669fbcce45a74d4c7",
|
144 |
+
"url": "./static/media/KaTeX_Math-BoldItalic.d9377b53.ttf"
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"revision": "0343f93ed09558b81aaca43fc4386462",
|
148 |
+
"url": "./static/media/KaTeX_Math-Italic.0343f93e.ttf"
|
149 |
+
},
|
150 |
+
{
|
151 |
+
"revision": "2a39f3827133ad0aeb2087d10411cbf2",
|
152 |
+
"url": "./static/media/KaTeX_Math-Italic.2a39f382.woff2"
|
153 |
+
},
|
154 |
+
{
|
155 |
+
"revision": "67710bb2357b8ee5c04d169dc440c69d",
|
156 |
+
"url": "./static/media/KaTeX_Math-Italic.67710bb2.woff"
|
157 |
+
},
|
158 |
+
{
|
159 |
+
"revision": "59b3773389adfb2b21238892c08322ca",
|
160 |
+
"url": "./static/media/KaTeX_SansSerif-Bold.59b37733.woff2"
|
161 |
+
},
|
162 |
+
{
|
163 |
+
"revision": "dfcc59ad994a0513b07ef3309b8b5159",
|
164 |
+
"url": "./static/media/KaTeX_SansSerif-Bold.dfcc59ad.ttf"
|
165 |
+
},
|
166 |
+
{
|
167 |
+
"revision": "f28c4fa28f596796702fea3716d82052",
|
168 |
+
"url": "./static/media/KaTeX_SansSerif-Bold.f28c4fa2.woff"
|
169 |
+
},
|
170 |
+
{
|
171 |
+
"revision": "3ab5188c9aadedf425ea63c6b6568df7",
|
172 |
+
"url": "./static/media/KaTeX_SansSerif-Italic.3ab5188c.ttf"
|
173 |
+
},
|
174 |
+
{
|
175 |
+
"revision": "99ad93a4600c7b00b961d70943259032",
|
176 |
+
"url": "./static/media/KaTeX_SansSerif-Italic.99ad93a4.woff2"
|
177 |
+
},
|
178 |
+
{
|
179 |
+
"revision": "9d0fdf5d7d27b0e3bdc740d90b40ec57",
|
180 |
+
"url": "./static/media/KaTeX_SansSerif-Italic.9d0fdf5d.woff"
|
181 |
+
},
|
182 |
+
{
|
183 |
+
"revision": "6c3bd5b57f7eba215a2d37e2e28077f1",
|
184 |
+
"url": "./static/media/KaTeX_SansSerif-Regular.6c3bd5b5.woff"
|
185 |
+
},
|
186 |
+
{
|
187 |
+
"revision": "badf3598c22478fd9155a49391ecd396",
|
188 |
+
"url": "./static/media/KaTeX_SansSerif-Regular.badf3598.woff2"
|
189 |
+
},
|
190 |
+
{
|
191 |
+
"revision": "d511ebcef253ab53775576f28315f350",
|
192 |
+
"url": "./static/media/KaTeX_SansSerif-Regular.d511ebce.ttf"
|
193 |
+
},
|
194 |
+
{
|
195 |
+
"revision": "082640ca4242bb2aade86855e4d7d5f6",
|
196 |
+
"url": "./static/media/KaTeX_Script-Regular.082640ca.ttf"
|
197 |
+
},
|
198 |
+
{
|
199 |
+
"revision": "4edf4e0fd49c8a5680dd541c05f16a4c",
|
200 |
+
"url": "./static/media/KaTeX_Script-Regular.4edf4e0f.woff"
|
201 |
+
},
|
202 |
+
{
|
203 |
+
"revision": "af7bc98b2200573686405dc784f53cf2",
|
204 |
+
"url": "./static/media/KaTeX_Script-Regular.af7bc98b.woff2"
|
205 |
+
},
|
206 |
+
{
|
207 |
+
"revision": "10ec8be67344c83bb4bbec989de57d8a",
|
208 |
+
"url": "./static/media/KaTeX_Size1-Regular.10ec8be6.woff2"
|
209 |
+
},
|
210 |
+
{
|
211 |
+
"revision": "2c2dc3b057bb48b80bc785ac3d87ecf8",
|
212 |
+
"url": "./static/media/KaTeX_Size1-Regular.2c2dc3b0.ttf"
|
213 |
+
},
|
214 |
+
{
|
215 |
+
"revision": "35b99771d8ac5a9f102389dc1934dac2",
|
216 |
+
"url": "./static/media/KaTeX_Size1-Regular.35b99771.woff"
|
217 |
+
},
|
218 |
+
{
|
219 |
+
"revision": "114ad19833311359052ad1a174159262",
|
220 |
+
"url": "./static/media/KaTeX_Size2-Regular.114ad198.ttf"
|
221 |
+
},
|
222 |
+
{
|
223 |
+
"revision": "96a09bfe8978368486ffbbe628932b21",
|
224 |
+
"url": "./static/media/KaTeX_Size2-Regular.96a09bfe.woff2"
|
225 |
+
},
|
226 |
+
{
|
227 |
+
"revision": "9932a08b1b6ae85be1d004d122603004",
|
228 |
+
"url": "./static/media/KaTeX_Size2-Regular.9932a08b.woff"
|
229 |
+
},
|
230 |
+
{
|
231 |
+
"revision": "2afba1537ee8272e34dff773e4a7ba96",
|
232 |
+
"url": "./static/media/KaTeX_Size3-Regular.2afba153.woff"
|
233 |
+
},
|
234 |
+
{
|
235 |
+
"revision": "2c2f0efb060cbd8357ebed929528f485",
|
236 |
+
"url": "./static/media/KaTeX_Size3-Regular.2c2f0efb.woff2"
|
237 |
+
},
|
238 |
+
{
|
239 |
+
"revision": "a287c06f07d70997ec4b39c470f06fba",
|
240 |
+
"url": "./static/media/KaTeX_Size3-Regular.a287c06f.ttf"
|
241 |
+
},
|
242 |
+
{
|
243 |
+
"revision": "70174da79d1707501c10e07872e84667",
|
244 |
+
"url": "./static/media/KaTeX_Size4-Regular.70174da7.ttf"
|
245 |
+
},
|
246 |
+
{
|
247 |
+
"revision": "d5822f1b0a0baeb76e6bded30dad1043",
|
248 |
+
"url": "./static/media/KaTeX_Size4-Regular.d5822f1b.woff2"
|
249 |
+
},
|
250 |
+
{
|
251 |
+
"revision": "f961545cb96df9989feb2e601a9fcae5",
|
252 |
+
"url": "./static/media/KaTeX_Size4-Regular.f961545c.woff"
|
253 |
+
},
|
254 |
+
{
|
255 |
+
"revision": "35fe2cce0791c276b8e919decd873f5b",
|
256 |
+
"url": "./static/media/KaTeX_Typewriter-Regular.35fe2cce.ttf"
|
257 |
+
},
|
258 |
+
{
|
259 |
+
"revision": "53dcf861876aae6f3a6a6004dc3bc758",
|
260 |
+
"url": "./static/media/KaTeX_Typewriter-Regular.53dcf861.woff"
|
261 |
+
},
|
262 |
+
{
|
263 |
+
"revision": "641339e2cd86c7816bfb8028ee7f86e0",
|
264 |
+
"url": "./static/media/KaTeX_Typewriter-Regular.641339e2.woff2"
|
265 |
+
}
|
266 |
+
]);
|
modules/quill/streamlit_quill/frontend/build/service-worker.js
CHANGED
@@ -1,3 +1,39 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Welcome to your Workbox-powered service worker!
|
3 |
+
*
|
4 |
+
* You'll need to register this file in your web app and you should
|
5 |
+
* disable HTTP caching for this file too.
|
6 |
+
* See https://goo.gl/nhQhGp
|
7 |
+
*
|
8 |
+
* The rest of the code is auto-generated. Please don't update this file
|
9 |
+
* directly; instead, make changes to your Workbox build configuration
|
10 |
+
* and re-run your build process.
|
11 |
+
* See https://goo.gl/2aRDsh
|
12 |
+
*/
|
13 |
+
|
14 |
+
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
15 |
+
|
16 |
+
importScripts(
|
17 |
+
"./precache-manifest.c41d16a9c1e698d05316f9c838e08045.js"
|
18 |
+
);
|
19 |
+
|
20 |
+
self.addEventListener('message', (event) => {
|
21 |
+
if (event.data && event.data.type === 'SKIP_WAITING') {
|
22 |
+
self.skipWaiting();
|
23 |
+
}
|
24 |
+
});
|
25 |
+
|
26 |
+
workbox.core.clientsClaim();
|
27 |
+
|
28 |
+
/**
|
29 |
+
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
|
30 |
+
* requests for URLs in the manifest.
|
31 |
+
* See https://goo.gl/S9QRab
|
32 |
+
*/
|
33 |
+
self.__precacheManifest = [].concat(self.__precacheManifest || []);
|
34 |
+
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
35 |
+
|
36 |
+
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("./index.html"), {
|
37 |
+
|
38 |
+
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
|
39 |
+
});
|
modules/quill/streamlit_quill/frontend/build/static/css/2.3e2d5b0e.chunk.css
CHANGED
@@ -1,3 +1,9 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@font-face{font-family:KaTeX_AMS;src:url(../../static/media/KaTeX_AMS-Regular.38a68f7d.woff2) format("woff2"),url(../../static/media/KaTeX_AMS-Regular.7d307e83.woff) format("woff"),url(../../static/media/KaTeX_AMS-Regular.2dbe16b4.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(../../static/media/KaTeX_Caligraphic-Bold.342b2969.woff2) format("woff2"),url(../../static/media/KaTeX_Caligraphic-Bold.9634168f.woff) format("woff"),url(../../static/media/KaTeX_Caligraphic-Bold.33d26881.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(../../static/media/KaTeX_Caligraphic-Regular.b5004973.woff2) format("woff2"),url(../../static/media/KaTeX_Caligraphic-Regular.00029fb4.woff) format("woff"),url(../../static/media/KaTeX_Caligraphic-Regular.5e7940b4.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(../../static/media/KaTeX_Fraktur-Bold.7a3757c0.woff2) format("woff2"),url(../../static/media/KaTeX_Fraktur-Bold.4de87d40.woff) format("woff"),url(../../static/media/KaTeX_Fraktur-Bold.ed330126.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(../../static/media/KaTeX_Fraktur-Regular.450cc4d9.woff2) format("woff2"),url(../../static/media/KaTeX_Fraktur-Regular.dc4e330b.woff) format("woff"),url(../../static/media/KaTeX_Fraktur-Regular.82d05fe2.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(../../static/media/KaTeX_Main-Bold.78b0124f.woff2) format("woff2"),url(../../static/media/KaTeX_Main-Bold.62c69756.woff) format("woff"),url(../../static/media/KaTeX_Main-Bold.2e1915b1.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(../../static/media/KaTeX_Main-BoldItalic.c7213ceb.woff2) format("woff2"),url(../../static/media/KaTeX_Main-BoldItalic.a2e3dcd2.woff) format("woff"),url(../../static/media/KaTeX_Main-BoldItalic.0d817b48.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(../../static/media/KaTeX_Main-Italic.eea32672.woff2) format("woff2"),url(../../static/media/KaTeX_Main-Italic.081073fd.woff) format("woff"),url(../../static/media/KaTeX_Main-Italic.767e06e1.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(../../static/media/KaTeX_Main-Regular.f30e3b21.woff2) format("woff2"),url(../../static/media/KaTeX_Main-Regular.756fad0d.woff) format("woff"),url(../../static/media/KaTeX_Main-Regular.689bbe6b.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Math;src:url(../../static/media/KaTeX_Math-BoldItalic.753ca3df.woff2) format("woff2"),url(../../static/media/KaTeX_Math-BoldItalic.b3e80ff3.woff) format("woff"),url(../../static/media/KaTeX_Math-BoldItalic.d9377b53.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Math;src:url(../../static/media/KaTeX_Math-Italic.2a39f382.woff2) format("woff2"),url(../../static/media/KaTeX_Math-Italic.67710bb2.woff) format("woff"),url(../../static/media/KaTeX_Math-Italic.0343f93e.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:"KaTeX_SansSerif";src:url(../../static/media/KaTeX_SansSerif-Bold.59b37733.woff2) format("woff2"),url(../../static/media/KaTeX_SansSerif-Bold.f28c4fa2.woff) format("woff"),url(../../static/media/KaTeX_SansSerif-Bold.dfcc59ad.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:"KaTeX_SansSerif";src:url(../../static/media/KaTeX_SansSerif-Italic.99ad93a4.woff2) format("woff2"),url(../../static/media/KaTeX_SansSerif-Italic.9d0fdf5d.woff) format("woff"),url(../../static/media/KaTeX_SansSerif-Italic.3ab5188c.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:"KaTeX_SansSerif";src:url(../../static/media/KaTeX_SansSerif-Regular.badf3598.woff2) format("woff2"),url(../../static/media/KaTeX_SansSerif-Regular.6c3bd5b5.woff) format("woff"),url(../../static/media/KaTeX_SansSerif-Regular.d511ebce.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Script;src:url(../../static/media/KaTeX_Script-Regular.af7bc98b.woff2) format("woff2"),url(../../static/media/KaTeX_Script-Regular.4edf4e0f.woff) format("woff"),url(../../static/media/KaTeX_Script-Regular.082640ca.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size1;src:url(../../static/media/KaTeX_Size1-Regular.10ec8be6.woff2) format("woff2"),url(../../static/media/KaTeX_Size1-Regular.35b99771.woff) format("woff"),url(../../static/media/KaTeX_Size1-Regular.2c2dc3b0.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size2;src:url(../../static/media/KaTeX_Size2-Regular.96a09bfe.woff2) format("woff2"),url(../../static/media/KaTeX_Size2-Regular.9932a08b.woff) format("woff"),url(../../static/media/KaTeX_Size2-Regular.114ad198.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size3;src:url(../../static/media/KaTeX_Size3-Regular.2c2f0efb.woff2) format("woff2"),url(../../static/media/KaTeX_Size3-Regular.2afba153.woff) format("woff"),url(../../static/media/KaTeX_Size3-Regular.a287c06f.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size4;src:url(../../static/media/KaTeX_Size4-Regular.d5822f1b.woff2) format("woff2"),url(../../static/media/KaTeX_Size4-Regular.f961545c.woff) format("woff"),url(../../static/media/KaTeX_Size4-Regular.70174da7.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Typewriter;src:url(../../static/media/KaTeX_Typewriter-Regular.641339e2.woff2) format("woff2"),url(../../static/media/KaTeX_Typewriter-Regular.53dcf861.woff) format("woff"),url(../../static/media/KaTeX_Typewriter-Regular.35fe2cce.ttf) format("truetype");font-weight:400;font-style:normal}.katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto;border-color:currentColor}.katex *{-ms-high-contrast-adjust:none!important}.katex .katex-version:after{content:"0.12.0"}.katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-weight:700;font-style:italic}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{display:inline-table;table-layout:fixed;border-collapse:collapse}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;vertical-align:bottom;position:relative}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;vertical-align:bottom;font-size:1px;width:2px;min-width:2px}.katex .vbox{flex-direction:column;align-items:baseline}.katex .hbox,.katex .vbox{display:inline-flex}.katex .hbox{flex-direction:row;width:100%}.katex .thinbox{display:inline-flex;flex-direction:row;width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{display:inline-block;border:0 solid;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline{display:inline-block;width:100%;border-bottom-style:dashed}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex svg path{stroke:none}.katex img{border-style:none;min-width:0;min-height:0;max-width:none;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{position:absolute;left:0;width:50.2%;overflow:hidden}.katex .halfarrow-right{position:absolute;right:0;width:50.2%;overflow:hidden}.katex .brace-left{position:absolute;left:0;width:25.1%;overflow:hidden}.katex .brace-center{position:absolute;left:25%;width:50%;overflow:hidden}.katex .brace-right{position:absolute;right:0;width:25.1%;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}
|
2 |
+
|
3 |
+
/*!
|
4 |
+
* Quill Editor v1.3.7
|
5 |
+
* https://quilljs.com/
|
6 |
+
* Copyright (c) 2014, Jason Chen
|
7 |
+
* Copyright (c) 2013, salesforce.com
|
8 |
+
*/.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover{color:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item:before,.ql-snow .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item:before,.ql-snow .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item:before,.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:"Helvetica Neue","Helvetica","Arial",sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}
|
9 |
+
/*# sourceMappingURL=2.3e2d5b0e.chunk.css.map */
|
modules/quill/streamlit_quill/frontend/build/static/css/2.3e2d5b0e.chunk.css.map
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:153209809cbd39293bf679ea678bfa92f7a1fa35afa244b17fb2f9ba97981312
|
3 |
-
size 59773
|
|
|
1 |
+
{"version":3,"sources":["katex.min.css","quill.snow.css"],"names":[],"mappings":"AAAA,WAAW,qBAAqB,CAAC,6NAAyM,CAAA,eAAA,CAAA,iBAA8B,CAAA,WAAA,6BAAA,CAAA,4OAAsP,CAAA,eAAA,CAAA,iBAAA,CAAA,WAAA,6BAAA,CAAA,qPAA2P,CAAA,eAAA,CAAA,iBAAA,CAAA,WAAA,yBAA+J,CAAA,gOAAuE,CAAA,eAAuK,CAAC,iBAAgB,CAAA,WAAA,yBAA6B,CAAA,yOAA+M,CAAA,eAAW,CAAA,iBAAuB,CAAA,WAAA,sBAAA,CAAA,uNAA4O,CAAA,eAAA,CAAA,iBAAA,CAAA,WAAA,sBAAA,CAAA,yOAAgO,CAAA,eAAA,CAAA,iBAAA,CAAA,WAAA,sBAAA,CAAA,6NAAmO,CAAA,eAAA,CAAA,iBAAA,CAAA,WAAA,sBAAwK,CAAA,gOAAoE,CAAA,eAA4J,CAAA,iBAAgB,CAAA,WAAiB,sBAAY,CAAA,yOAAqO,CAAA,eAAW,CAAA,iBAAA,CAAA,WAA8B,sBAAA,CAAA,6NAAsP,CAAA,eAAA,CAAA,iBAAA,CAAA,WAAA,6BAAA,CAAA,sOAAoP,CAAA,eAAA,CAAA,iBAAA,CAAA,WAAA,6BAAA,CAAA,4OAA0O,CAAA,eAAA,CAAA,iBAAA,CAAA,WAAA,6BAAkL,CAAA,+OAAuO,CAAA,eAAiB,CAAC,iBAAW,CAAA,WAAA,wBAAwB,CAAA,sOAAuO,CAAA,eAAA,CAAA,iBAAA,CAAA,WAAA,uBAAA,CAAA,mOAA4O,CAAA,eAAA,CAAA,iBAAA,CAAA,WAAA,uBAAA,CAAA,mOAA0V,CAAA,eAAS,CAAA,iBAAA,CAAA,WAAA,uBAAwC,CAAA,mOAAgP,CAAA,eAAmB,CAAA,iBAAA,CAAA,WAAA,uBAAA,CAAA,mOAAkO,CAAA,eAAA,CAA4B,iBAAC,CAAA,WAAmB,4BAAuB,CAAA,kPAA6O,CAAA,eAAA,CAAA,iBAA4C,CAAA,OAAA,mDAAoE,CAAA,eAAA,CAAA,aAAA,CAAA,mBAAkC,CAAA,yBAAyC,CAAA,SAAA,uCAA6B,CAAA,4BAAgC,gBAAyB,CAAA,qBAA8B,iBAAA,CAAA,0BAA4B,CAAA,SAAA,CAAA,QAAA,CAAsC,UAAA,CAAA,SAAA,CAAA,eAA4B,CAAA,4BAAgB,aAAkC,CAAA,aAAA,iBAA4B,CAAA,kBAAkB,CAAA,yBAAe,CAAA,sBAAuB,CAAA,iBAAkB,CAAgB,2BAAqB,oBAAmB,CAAA,eAAA,eAAyB,CAAA,eAAgB,iBAAkB,CAAA,eAAc,sBAAmB,CAAA,eAAsB,2BAAqC,CAAA,eAAc,4BAA2B,CAAA,mBAAwB,sBAAqB,CAAA,iBAAA,CAAA,eAA2B,sBAAwB,CAAA,iBAAiB,CAAA,eAAkB,iBAAgB,CAAA,eAAmB,sBAAsB,CAAA,eAAc,CAAA,mBAAwB,sBAAuC,CAAA,eAAsB,CAAA,iBAAqB,CAAA,4CAAyE,qBAAoC,CAAA,gBAAmB,6BAA2B,CAAA,kCAAuC,yBAAoB,CAAA,eAAgB,4BAAgB,CAAA,gCAA0C,wBAAyB,CAAA,8BAAgC,2BAA0B,CAAA,sCAAA,2BAAA,CAAA,eAAA,CAAA,kCAAA,2BAAuJ,CAAA,iBAAe,CAAA,eAAqB,sBAAA,CAAA,iBAAuC,CAAA,gBAAQ,oBAAkB,CAAA,kBAAA,CAAA,wBAAA,CAAA,gBAA4D,iBAAkB,CAAA,cAAA,kBAAA,CAAA,qBAAsD,CAAA,iBAAqB,CAAA,mBAA4B,aAAA,CAAA,QAAA,CAAA,iBAAwC,CAAA,wBAAO,oBAA0C,CAAA,2BAAiB,eAAa,CAAA,OAAqB,CAAA,iBAAe,iBAAkB,CAAA,gBAAA,kBAAA,CAAA,qBAAA,CAAA,aAAA,CAAA,SAAgF,CAAA,aAAA,CAAA,aAA+B,qBAAC,CAAA,oBAA0B,CAAA,0BAAuC,mBAAW,CAAA,aAAA,kBAA2B,CAAA,UAAmB,CAAA,gBAAwB,mBAAA,CAAA,kBAA0B,CAAA,OAAA,CAAA,WAAA,CAAA,gBAAA,eAAA,CAAA,wBAA0F,iBAAA,CAAA,yBAAA,oBAAA,CAAA,UAAA,CAAA,yBAA4F,CAAA,wIAA4F,cAAA,CAAA,eAA4E,oBAAgB,CAAA,uCAAA,OAAA,CAAA,iBAA4E,CAAA,4DAAgB,iBAAA,CAAA,sDAA0F,oBAAA,CAAA,oBAAA,OAAA,CAA4E,wCAAgB,MAAA,CAAA,yBAAA,gBAAA,CAAA,gBAA4E,CAAA,aAAiB,oBAAA,CAAA,cAAA,CAAA,iBAAA,CAAA,gFAA8F,oBAAA,CAAA,UAA8E,CAAA,yBAAkB,CAAA,kBAAA,oBAAA,CAAA,UAAA,CAAA,0BAA8E,CAAA,mBAAkB,uBAAA,CAAA,yBAAA,CAAA,4EAAkG,aAAA,CAAA,4EAA0F,eAAA,CAAA,4EAAmG,eAAA,CAAA,4EAAmG,eAAA,CAAA,4EAA4F,eAAA,CAAA,4EAAmG,aAAA,CAAA,4EAA0F,eAAA,CAAA,4EAA4F,gBAAA,CAAA,4EAA6F,iBAAA,CAAA,8EAAqG,iBAAA,CAAA,8EAAqG,iBAAA,CAAA,4EAAkG,qBAAA,CAAA,4EAAkG,aAAA,CAAA,4EAA0F,sBAAA,CAAA,4EAAmG,sBAAA,CAAA,4EAAmG,eAAA,CAAA,4EAA4E,sBAAuB,CAAA,4EAA4E,aAAuB,CAAA,4EAA4E,eAAuB,CAAA,4EAA4E,gBAAA,CAAsB,8EAAC,sBAA8E,CAAsB,8EAAC,sBAA8E,CAAsB,4EAAC,qBAA6F,CAAA,4EAA4E,qBAAgB,CAAA,4EAA4E,aAAiB,CAAA,4EAA4E,sBAAc,CAAA,4EAA4E,sBAAkB,CAAA,4EAA6F,sBAAA,CAAA,4EAA4F,sBAAA,CAAA,4EAA4F,sBAAA,CAAA,4EAA6F,sBAAA,CAAA,8EAAiG,sBAAA,CAAA,8EAA+F,sBAAA,CAAA,4EAAkG,gBAAA,CAAA,4EAAkG,eAAA,CAAA,4EAAkG,gBAAA,CAAA,4EAAkG,aAAA,CAAA,4EAA0F,iBAAA,CAAA,4EAAmG,gBAAA,CAAA,4EAAmG,eAAA,CAAA,4EAA4F,eAAA,CAAA,4EAA6F,gBAAA,CAAA,8EAAqG,kBAAA,CAAA,8EAA8E,gBAAuB,CAAA,4EAA0F,qBAAC,CAAA,4EAA2F,qBAAA,CAAA,4EAA2F,qBAAA,CAAA,4EAA2F,qBAAA,CAAA,4EAA2F,aAAA,CAAA,4EAA0F,sBAAA,CAAA,4EAA4F,sBAAA,CAAA,4EAA6F,eAAA,CAAA,4EAA8F,gBAAA,CAAA,8EAAgG,sBAAA,CAAA,8EAAgG,sBAAA,CAAA,4EAAkG,cAAA,CAAA,4EAA2F,cAAA,CAAA,4EAAkG,cAAA,CAAA,4EAAkG,cAAA,CAAA,4EAA4F,cAAA,CAAA,4EAAkG,aAAA,CAAA,4EAA0F,eAAA,CAAA,4EAA4F,gBAAA,CAAA,4EAA6F,iBAAA,CAAA,8EAAqG,iBAAA,CAAA,8EAAqG,iBAAA,CAAA,4EAAkG,qBAAA,CAAA,4EAAkG,cAAA,CAAA,4EAAkG,qBAAA,CAAA,4EAAkG,qBAAA,CAAA,4EAA6F,eAAA,CAAA,4EAAiG,qBAAC,CAAA,4EAAiG,aAAC,CAAA,4EAAyF,eAAC,CAAA,4EAA2F,gBAAC,CAAA,8EAA8E,sBAAuB,CAAA,8EAA8E,sBAAuB,CAAA,4EAA4E,qBAAsB,CAAA,4EAA4E,qBAAsB,CAAA,4EAA4E,qBAAsB,CAAA,4EAA4E,qBAAsB,CAAA,4EAA4E,gBAAsB,CAAA,4EAA4E,qBAAqB,CAAA,4EAA4E,qBAAsB,CAAA,4EAA4E,aAAsB,CAAA,4EAA4E,eAAc,CAAA,8EAA8E,sBAAuB,CAAA,8EAA8E,sBAAuB,CAAA,4EAA8E,qBAAsB,CAAA,4EAA8E,qBAAsB,CAAA,4EAA8E,qBAAqB,CAAC,4EAAA,qBAA8E,CAAA,4EAAsB,qBAA8E,CAAA,4EAAsB,oBAA8E,CAAA,4EAAsB,qBAA8E,CAAA,4EAAsB,qBAA8E,CAAA,4EAAsB,aAA8E,CAAA,8EAAsB,sBAAA,CAAgF,8EAAc,sBAAgF,CAAA,8EAAuB,qBAA8E,CAAA,8EAAsB,qBAA8E,CAAA,8EAAsB,qBAA8E,CAAA,8EAAsB,qBAA8E,CAAA,8EAAsB,qBAA8E,CAAA,8EAAsB,qBAA8E,CAAA,8EAAsB,qBAA8E,CAAA,8EAAsB,qBAA8E,CAAA,8EAAsB,qBAA8E,CAAA,gFAAsB,aAAA,CAAA,gFAAsG,sBAAA,CAAA,8EAAgJ,qBAA0B,CAAA,8EAA0E,qBAA0B,CAAA,8EAAmE,qBAAwB,CAAA,8EAAyF,qBAAqB,CAAA,8EAAoE,qBAA2B,CAAA,8EAA2E,qBAA2B,CAAA,8EAAwF,qBAAkB,CAAA,8EAAmF,qBAAC,CAAA,8EAAkG,qBAAqB,CAAA,gFAAuD,qBAAqC,CAAA,gFAAwF,aAAgB,CAAA,0BAAyB,uBAAkB,CAAA,0BAA0B,uBAAkB,CAAA,0BAAsC,uBAAe,CAAA,0BAAmC,uBAAsB,CAAA,2CAA0C,uBAAoB,CAAA,2CAA6C,uBAA6B,CAAA,sBAAyB,oBAAe,CAAA,WAAgB,CAAA,sCAA4B,iBAAc,CAAA,2BAAkC,uBAAA,CAAA,2BAA0D,uBAAkB,CAA6C,mDAAuB,iBAAyB,CAAA,4BAA4B,iBAAA,CAAA,8CAA8D,OAAA,CAAA,gBAAgB,aAAmB,CAAA,mCAAqC,oBAAgB,CAAA,aAAqB,CAAA,4BAA2B,oBAAU,CAAe,qCAAqB,iBAA0B,CAAA,qCAA4B,eAAoB,CAAA,qCAAe,gBAA6C,CAAA,kBAAkB,eAAe,CAAA,WAAe,aAAA,CAAA,iBAA+B,CAAA,UAAA,CAAA,cAAsB,CAAA,iBAAmB,CAAA,mBAAmB,CAAA,iBAAe,CAAA,cAAmB,CAAA,cAAkB,CAAA,mBAAmB,CAAA,qBAAa,CAAA,mBAA0B,CAAA,qBAA0B,CAAA,mBAAe,CAAA,gBAA0B,CAAC,gBAAA,WAAkB,CAAA,WAAA,iBAAoC,CAAA,WAAA,CAAA,YAAkB,CAAA,cAAmB,CAAA,eAAA,CAAA,iBAAkC,UAAc,CAAA,aAAA,CAAA,iBAAkB,CAAA,eAAA,CAAA,+CAAiE,UAAA,CAAA,kBAAA,UAAoD,CAAA,iBAAW,CAAA,eAAA,CAAA,uBAA4C,iBAAgB,CAAA,MAAA,CAAA,WAAA,CAAA,eAAA,CAAA,wBAAA,iBAAA,CAAA,OAAA,CAAA,WAAA,CAAA,eAAA,CAAA,mBAAA,iBAAA,CAAA,MAAA,CAAA,WAAA,CAAA,eAAA,CAAA,qBAAA,iBAAA,CAAA,QAAA,CAAA,SAAA,CAAA,eAAA,CAAA,oBAAA,iBAAA,CAAA,OAAA,CAAA,WAAA,CAAA,eAAA,CAAA,oBAAA,cAAA,CAAA,6CAAA,iBAAA,CAAA,eAAA,cAAA,CAAA,+BAAA,qBAAA,CAAA,kBAAA,CAAA,mBAAA,cAAA,CAAA,mBAAA,iBAAA,CAAA,kBAAA,CAAA,aAAA,yBAAA,CAAA,yBAAA,CAAA,eAAA,aAAA,CAAA,YAAA,CAAA,iBAAA,CAAA,sBAAA,aAAA,CAAA,iBAAA,CAAA,kBAAA,CAAA,kCAAA,aAAA,CAAA,iBAAA,CAAA,uCAAA,iBAAA,CAAA,OAAA,CAAA,6CAAA,MAAA,CAAA,UAAA,CAAA,4BAAA,eAAA,CAAA,gBAAA;;ACA18rB;;;;;EAKE,CACF,cACE,qBAAsB,CACtB,sCAAyC,CACzC,cAAe,CACf,WAAY,CACZ,QAAW,CACX,iBACF,CACA,sCACE,iBACF,CACA,gEACE,mBACF,CACA,cACE,cAAe,CACf,UAAW,CACX,iBAAkB,CAClB,iBAAkB,CAClB,OACF,CACA,gBACE,QAAS,CACT,SACF,CACA,WACE,qBAAsB,CACtB,gBAAiB,CACjB,WAAY,CACZ,YAAa,CACb,eAAgB,CAChB,iBAAkB,CAClB,UAAW,CACX,eAAgB,CAChB,eAAgB,CAChB,oBAAqB,CACrB,oBACF,CACA,aACE,WACF,CACA,kKAWE,QAAS,CACT,SAAU,CACV,4EACF,CACA,4BAEE,kBACF,CACA,kCAEE,oBACF,CACA,wBACE,eACF,CACA,mEAEE,mBACF,CACA,6EAEE,kBACF,CACA,uFAEE,UAAW,CACX,cAAe,CACf,kBACF,CACA,2CACE,eACF,CACA,4CACE,eACF,CACA,qBACE,oBAAqB,CACrB,kBAAmB,CACnB,WACF,CACA,4CACE,kBAAmB,CACnB,iBAAmB,CACnB,gBACF,CACA,sCACE,gBAAkB,CAClB,mBACF,CACA,gFAEE,kBACF,CACA,oEAEE,mBACF,CACA,iBACE,4EAA6E,CAC7E,wBACF,CACA,wBACE,oCACF,CACA,6BACE,wBACF,CACA,oCACE,wCACF,CACA,6BACE,qEACF,CACA,6BACE,wBACF,CACA,oCACE,wCACF,CACA,6BACE,8DACF,CACA,6BACE,wBACF,CACA,oCACE,oCACF,CACA,6BACE,uDACF,CACA,6BACE,wBACF,CACA,oCACE,wCACF,CACA,6BACE,gDACF,CACA,6BACE,wBACF,CACA,oCACE,wCACF,CACA,6BACE,yCACF,CACA,6BACE,wBACF,CACA,oCACE,oCACF,CACA,6BACE,kCACF,CACA,6BACE,wBACF,CACA,oCACE,wCACF,CACA,6BACE,2BACF,CACA,6BACE,wBACF,CACA,oCACE,wCACF,CACA,6BACE,oBACF,CACA,6BACE,wBACF,CACA,oCACE,oCACF,CACA,+CACE,gBACF,CACA,iDACE,kBACF,CACA,wDACE,iBACF,CACA,0DACE,mBACF,CACA,+CACE,gBACF,CACA,iDACE,kBACF,CACA,wDACE,iBACF,CACA,0DACE,mBACF,CACA,+CACE,gBACF,CACA,iDACE,mBACF,CACA,wDACE,iBACF,CACA,0DACE,oBACF,CACA,+CACE,iBACF,CACA,iDACE,mBACF,CACA,wDACE,kBACF,CACA,0DACE,oBACF,CACA,+CACE,iBACF,CACA,iDACE,mBACF,CACA,wDACE,kBACF,CACA,0DACE,oBACF,CACA,+CACE,iBACF,CACA,iDACE,mBACF,CACA,wDACE,kBACF,CACA,0DACE,oBACF,CACA,+CACE,iBACF,CACA,iDACE,mBACF,CACA,wDACE,kBACF,CACA,0DACE,oBACF,CACA,+CACE,iBACF,CACA,iDACE,mBACF,CACA,wDACE,kBACF,CACA,0DACE,oBACF,CACA,+CACE,iBACF,CACA,iDACE,mBACF,CACA,wDACE,kBACF,CACA,0DACE,oBACF,CACA,qBACE,aAAc,CACd,cACF,CACA,qCACE,aACF,CACA,oCACE,iBACF,CACA,wBACE,qBACF,CACA,sBACE,wBACF,CACA,yBACE,qBACF,CACA,yBACE,qBACF,CACA,wBACE,wBACF,CACA,uBACE,qBACF,CACA,yBACE,qBACF,CACA,2BACE,UACF,CACA,yBACE,aACF,CACA,4BACE,UACF,CACA,4BACE,UACF,CACA,2BACE,aACF,CACA,0BACE,UACF,CACA,4BACE,UACF,CACA,0BACE,yCACF,CACA,8BACE,wCACF,CACA,0BACE,eACF,CACA,0BACE,eACF,CACA,yBACE,eACF,CACA,6BACE,aAAc,CACd,kBACF,CACA,4BACE,iBACF,CACA,6BACE,kBACF,CACA,2BACE,gBACF,CACA,2BACE,oBAAsB,CACtB,8BAA+B,CAC/B,iBAAkB,CAClB,SAAU,CACV,mBAAoB,CACpB,iBAAkB,CAClB,UACF,CACA,qDAEE,UAAW,CACX,UAAW,CACX,aACF,CACA,uDAEE,eAAgB,CAChB,WAAY,CACZ,cAAe,CACf,oBAAqB,CACrB,UAAW,CACX,WAAY,CACZ,eAAgB,CAChB,UACF,CACA,+DAEE,UAAW,CACX,WACF,CACA,iFAEE,YACF,CACA,6FAEE,YACF,CACA,6jBAcE,UACF,CACA,kgDA4BE,SACF,CACA,kgDA4BE,WACF,CACA,wBACE,mGAEE,UACF,CACA,8PAIE,SACF,CACA,8PAIE,WACF,CACF,CAIA,oBACE,qBACF,CACA,oBACE,YACF,CACA,6CAEE,iBACF,CACA,qBACE,iBAAkB,CAClB,0BACF,CACA,uBACE,cAAe,CACf,oBACF,CACA,6BACE,2BACF,CACA,qBACE,oBAAqB,CACrB,qBACF,CACA,2BACE,UAAW,CACX,UAAW,CACX,aACF,CACA,oBACE,SAAU,CACV,WAAY,CACZ,oBAAqB,CACrB,qBAAsB,CACtB,cACF,CACA,0BACE,SAAU,CACV,WAAY,CACZ,oBAAqB,CACrB,cACF,CACA,8CAEE,SACF,CACA,mBACE,SACF,CACA,kBACE,iBACF,CACA,8CAEE,cACF,CACA,yBACE,UACF,CACA,sCACE,YACF,CACA,gDACE,cACF,CACA,iDACE,YACF,CACA,uBACE,aACF,CACA,uBACE,eACF,CACA,uBACE,gBACF,CACA,uBACE,aACF,CACA,uBACE,eACF,CACA,uBACE,eACF,CACA,sBACE,yBACF,CACA,+BACE,0BAA2B,CAC3B,iBAAkB,CAClB,cAAe,CACf,iBACF,CACA,iDAEE,wBAAyB,CACzB,iBACF,CACA,wBACE,oBAAqB,CACrB,iBAAkB,CAClB,cAAe,CACf,gBACF,CACA,yBACE,aAAc,CACd,eACF,CACA,kCACE,wBAAyB,CACzB,aAAc,CACd,gBACF,CACA,wBACE,cACF,CACA,oBACE,UAAW,CACX,oBAAqB,CACrB,UAAW,CACX,cAAe,CACf,eAAgB,CAChB,WAAY,CACZ,iBAAkB,CAClB,qBACF,CACA,0BACE,cAAe,CACf,oBAAqB,CACrB,WAAY,CACZ,gBAAiB,CACjB,iBAAkB,CAClB,iBAAkB,CAClB,UACF,CACA,iCACE,oBAAqB,CACrB,gBACF,CACA,4BACE,qBAAsB,CACtB,YAAa,CACb,cAAe,CACf,eAAgB,CAChB,iBAAkB,CAClB,kBACF,CACA,4CACE,cAAe,CACf,aAAc,CACd,kBAAmB,CACnB,eACF,CACA,iDACE,UAAW,CACX,SACF,CACA,0DACE,SACF,CACA,4DACE,WACF,CACA,mDACE,aAAc,CACd,eAAgB,CAChB,QAAS,CACT,SACF,CACA,mDAEE,UACF,CACA,qFAEE,eACF,CACA,6FAEE,SACF,CACA,4CACE,aACF,CACA,yCACE,WAAY,CACZ,UAAW,CACX,eACF,CACA,6CACE,eAAgB,CAChB,WACF,CACA,0CACE,4BAA6B,CAC7B,UAAW,CACX,WAAY,CACZ,UAAW,CACX,SAAY,CACZ,UACF,CACA,mEACE,iBAAkB,CAClB,eAAgB,CAChB,OAAQ,CACR,OAAQ,CACR,UACF,CACA,+fAME,wBACF,CACA,8BACE,UACF,CACA,2GAEE,gBACF,CACA,2IAEE,mBACF,CACA,2IAEE,mBACF,CACA,2IAEE,mBACF,CACA,2IAEE,mBACF,CACA,2IAEE,mBACF,CACA,2IAEE,mBACF,CACA,qEACE,aACF,CACA,qEACE,eACF,CACA,qEACE,gBACF,CACA,qEACE,aACF,CACA,qEACE,eACF,CACA,qEACE,eACF,CACA,4BACE,WACF,CACA,uGAEE,oBACF,CACA,2IAEE,eACF,CACA,mJAEE,mBACF,CACA,qEACE,yCACF,CACA,yEACE,wCACF,CACA,4BACE,UACF,CACA,uGAEE,gBACF,CACA,2IAEE,eACF,CACA,2IAEE,eACF,CACA,yIAEE,cACF,CACA,qEACE,cACF,CACA,qEACE,cACF,CACA,oEACE,cACF,CACA,wDACE,qBACF,CACA,mDACE,qBACF,CACA,oBACE,qBAAsB,CACtB,qBAAsB,CACtB,2DAA+D,CAC/D,WACF,CACA,gCACE,iBACF,CACA,qCACE,4BACF,CACA,uCACE,4BAA6B,CAC7B,mCACF,CAIA,0HACE,iBACF,CACA,4HAEE,iBACF,CACA,0CACE,YACF,CACA,qBACE,qBAAsB,CACtB,qBAAsB,CACtB,uBAA4B,CAC5B,UAAW,CACX,gBAAiB,CACjB,kBACF,CACA,4BACE,oBAAqB,CACrB,gBAAiB,CACjB,gBACF,CACA,sCACE,YAAa,CACb,qBAAsB,CACtB,cAAe,CACf,WAAY,CACZ,QAAW,CACX,eAAgB,CAChB,WACF,CACA,kCACE,oBAAqB,CACrB,eAAgB,CAChB,iBAAkB,CAClB,sBAAuB,CACvB,kBACF,CACA,uCACE,2BAA4B,CAC5B,cAAe,CACf,gBAAiB,CACjB,iBACF,CACA,wCACE,gBAAiB,CACjB,eACF,CACA,uBACE,gBACF,CACA,yFAEE,YACF,CACA,iDACE,oBACF,CACA,kDACE,cAAiB,CACjB,cAAe,CACf,eACF,CACA,4CACE,qBACF,CACA,+CACE,wBACF,CACA,6CACE,sBACF,CACA,WACE,UACF,CACA,sBACE,qBACF","file":"2.3e2d5b0e.chunk.css","sourcesContent":["@font-face{font-family:KaTeX_AMS;src:url(fonts/KaTeX_AMS-Regular.woff2) format(\"woff2\"),url(fonts/KaTeX_AMS-Regular.woff) format(\"woff\"),url(fonts/KaTeX_AMS-Regular.ttf) format(\"truetype\");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(fonts/KaTeX_Caligraphic-Bold.woff2) format(\"woff2\"),url(fonts/KaTeX_Caligraphic-Bold.woff) format(\"woff\"),url(fonts/KaTeX_Caligraphic-Bold.ttf) format(\"truetype\");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(fonts/KaTeX_Caligraphic-Regular.woff2) format(\"woff2\"),url(fonts/KaTeX_Caligraphic-Regular.woff) format(\"woff\"),url(fonts/KaTeX_Caligraphic-Regular.ttf) format(\"truetype\");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(fonts/KaTeX_Fraktur-Bold.woff2) format(\"woff2\"),url(fonts/KaTeX_Fraktur-Bold.woff) format(\"woff\"),url(fonts/KaTeX_Fraktur-Bold.ttf) format(\"truetype\");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(fonts/KaTeX_Fraktur-Regular.woff2) format(\"woff2\"),url(fonts/KaTeX_Fraktur-Regular.woff) format(\"woff\"),url(fonts/KaTeX_Fraktur-Regular.ttf) format(\"truetype\");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-Bold.woff2) format(\"woff2\"),url(fonts/KaTeX_Main-Bold.woff) format(\"woff\"),url(fonts/KaTeX_Main-Bold.ttf) format(\"truetype\");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-BoldItalic.woff2) format(\"woff2\"),url(fonts/KaTeX_Main-BoldItalic.woff) format(\"woff\"),url(fonts/KaTeX_Main-BoldItalic.ttf) format(\"truetype\");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-Italic.woff2) format(\"woff2\"),url(fonts/KaTeX_Main-Italic.woff) format(\"woff\"),url(fonts/KaTeX_Main-Italic.ttf) format(\"truetype\");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(fonts/KaTeX_Main-Regular.woff2) format(\"woff2\"),url(fonts/KaTeX_Main-Regular.woff) format(\"woff\"),url(fonts/KaTeX_Main-Regular.ttf) format(\"truetype\");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Math;src:url(fonts/KaTeX_Math-BoldItalic.woff2) format(\"woff2\"),url(fonts/KaTeX_Math-BoldItalic.woff) format(\"woff\"),url(fonts/KaTeX_Math-BoldItalic.ttf) format(\"truetype\");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Math;src:url(fonts/KaTeX_Math-Italic.woff2) format(\"woff2\"),url(fonts/KaTeX_Math-Italic.woff) format(\"woff\"),url(fonts/KaTeX_Math-Italic.ttf) format(\"truetype\");font-weight:400;font-style:italic}@font-face{font-family:\"KaTeX_SansSerif\";src:url(fonts/KaTeX_SansSerif-Bold.woff2) format(\"woff2\"),url(fonts/KaTeX_SansSerif-Bold.woff) format(\"woff\"),url(fonts/KaTeX_SansSerif-Bold.ttf) format(\"truetype\");font-weight:700;font-style:normal}@font-face{font-family:\"KaTeX_SansSerif\";src:url(fonts/KaTeX_SansSerif-Italic.woff2) format(\"woff2\"),url(fonts/KaTeX_SansSerif-Italic.woff) format(\"woff\"),url(fonts/KaTeX_SansSerif-Italic.ttf) format(\"truetype\");font-weight:400;font-style:italic}@font-face{font-family:\"KaTeX_SansSerif\";src:url(fonts/KaTeX_SansSerif-Regular.woff2) format(\"woff2\"),url(fonts/KaTeX_SansSerif-Regular.woff) format(\"woff\"),url(fonts/KaTeX_SansSerif-Regular.ttf) format(\"truetype\");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Script;src:url(fonts/KaTeX_Script-Regular.woff2) format(\"woff2\"),url(fonts/KaTeX_Script-Regular.woff) format(\"woff\"),url(fonts/KaTeX_Script-Regular.ttf) format(\"truetype\");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size1;src:url(fonts/KaTeX_Size1-Regular.woff2) format(\"woff2\"),url(fonts/KaTeX_Size1-Regular.woff) format(\"woff\"),url(fonts/KaTeX_Size1-Regular.ttf) format(\"truetype\");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size2;src:url(fonts/KaTeX_Size2-Regular.woff2) format(\"woff2\"),url(fonts/KaTeX_Size2-Regular.woff) format(\"woff\"),url(fonts/KaTeX_Size2-Regular.ttf) format(\"truetype\");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size3;src:url(fonts/KaTeX_Size3-Regular.woff2) format(\"woff2\"),url(fonts/KaTeX_Size3-Regular.woff) format(\"woff\"),url(fonts/KaTeX_Size3-Regular.ttf) format(\"truetype\");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size4;src:url(fonts/KaTeX_Size4-Regular.woff2) format(\"woff2\"),url(fonts/KaTeX_Size4-Regular.woff) format(\"woff\"),url(fonts/KaTeX_Size4-Regular.ttf) format(\"truetype\");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Typewriter;src:url(fonts/KaTeX_Typewriter-Regular.woff2) format(\"woff2\"),url(fonts/KaTeX_Typewriter-Regular.woff) format(\"woff\"),url(fonts/KaTeX_Typewriter-Regular.ttf) format(\"truetype\");font-weight:400;font-style:normal}.katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto;border-color:currentColor}.katex *{-ms-high-contrast-adjust:none!important}.katex .katex-version:after{content:\"0.12.0\"}.katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-weight:700;font-style:italic}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{display:inline-table;table-layout:fixed;border-collapse:collapse}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;vertical-align:bottom;position:relative}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;vertical-align:bottom;font-size:1px;width:2px;min-width:2px}.katex .vbox{-ms-flex-direction:column;flex-direction:column;align-items:baseline}.katex .hbox,.katex .vbox{display:-ms-inline-flexbox;display:inline-flex}.katex .hbox{-ms-flex-direction:row;flex-direction:row;width:100%}.katex .thinbox{display:inline-flex;flex-direction:row;width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{display:inline-block;border:0 solid;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline{display:inline-block;width:100%;border-bottom-style:dashed}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .op-limits>.vlist-t{text-align:center}.katex .accent>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex svg path{stroke:none}.katex img{border-style:none;min-width:0;min-height:0;max-width:none;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:after,.katex .stretchy:before{content:\"\"}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{position:absolute;left:0;width:50.2%;overflow:hidden}.katex .halfarrow-right{position:absolute;right:0;width:50.2%;overflow:hidden}.katex .brace-left{position:absolute;left:0;width:25.1%;overflow:hidden}.katex .brace-center{position:absolute;left:25%;width:50%;overflow:hidden}.katex .brace-right{position:absolute;right:0;width:25.1%;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}\n","/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container {\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n height: 100%;\n margin: 0px;\n position: relative;\n}\n.ql-container.ql-disabled .ql-tooltip {\n visibility: hidden;\n}\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n pointer-events: none;\n}\n.ql-clipboard {\n left: -100000px;\n height: 1px;\n overflow-y: hidden;\n position: absolute;\n top: 50%;\n}\n.ql-clipboard p {\n margin: 0;\n padding: 0;\n}\n.ql-editor {\n box-sizing: border-box;\n line-height: 1.42;\n height: 100%;\n outline: none;\n overflow-y: auto;\n padding: 12px 15px;\n tab-size: 4;\n -moz-tab-size: 4;\n text-align: left;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n.ql-editor > * {\n cursor: text;\n}\n.ql-editor p,\n.ql-editor ol,\n.ql-editor ul,\n.ql-editor pre,\n.ql-editor blockquote,\n.ql-editor h1,\n.ql-editor h2,\n.ql-editor h3,\n.ql-editor h4,\n.ql-editor h5,\n.ql-editor h6 {\n margin: 0;\n padding: 0;\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol,\n.ql-editor ul {\n padding-left: 1.5em;\n}\n.ql-editor ol > li,\n.ql-editor ul > li {\n list-style-type: none;\n}\n.ql-editor ul > li::before {\n content: '\\2022';\n}\n.ql-editor ul[data-checked=true],\n.ql-editor ul[data-checked=false] {\n pointer-events: none;\n}\n.ql-editor ul[data-checked=true] > li *,\n.ql-editor ul[data-checked=false] > li * {\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before,\n.ql-editor ul[data-checked=false] > li::before {\n color: #777;\n cursor: pointer;\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before {\n content: '\\2611';\n}\n.ql-editor ul[data-checked=false] > li::before {\n content: '\\2610';\n}\n.ql-editor li::before {\n display: inline-block;\n white-space: nowrap;\n width: 1.2em;\n}\n.ql-editor li:not(.ql-direction-rtl)::before {\n margin-left: -1.5em;\n margin-right: 0.3em;\n text-align: right;\n}\n.ql-editor li.ql-direction-rtl::before {\n margin-left: 0.3em;\n margin-right: -1.5em;\n}\n.ql-editor ol li:not(.ql-direction-rtl),\n.ql-editor ul li:not(.ql-direction-rtl) {\n padding-left: 1.5em;\n}\n.ql-editor ol li.ql-direction-rtl,\n.ql-editor ul li.ql-direction-rtl {\n padding-right: 1.5em;\n}\n.ql-editor ol li {\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n counter-increment: list-0;\n}\n.ql-editor ol li:before {\n content: counter(list-0, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-increment: list-1;\n}\n.ql-editor ol li.ql-indent-1:before {\n content: counter(list-1, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-2 {\n counter-increment: list-2;\n}\n.ql-editor ol li.ql-indent-2:before {\n content: counter(list-2, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-2 {\n counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-3 {\n counter-increment: list-3;\n}\n.ql-editor ol li.ql-indent-3:before {\n content: counter(list-3, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-3 {\n counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-4 {\n counter-increment: list-4;\n}\n.ql-editor ol li.ql-indent-4:before {\n content: counter(list-4, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-4 {\n counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-5 {\n counter-increment: list-5;\n}\n.ql-editor ol li.ql-indent-5:before {\n content: counter(list-5, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-5 {\n counter-reset: list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-6 {\n counter-increment: list-6;\n}\n.ql-editor ol li.ql-indent-6:before {\n content: counter(list-6, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-6 {\n counter-reset: list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-7 {\n counter-increment: list-7;\n}\n.ql-editor ol li.ql-indent-7:before {\n content: counter(list-7, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-7 {\n counter-reset: list-8 list-9;\n}\n.ql-editor ol li.ql-indent-8 {\n counter-increment: list-8;\n}\n.ql-editor ol li.ql-indent-8:before {\n content: counter(list-8, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-8 {\n counter-reset: list-9;\n}\n.ql-editor ol li.ql-indent-9 {\n counter-increment: list-9;\n}\n.ql-editor ol li.ql-indent-9:before {\n content: counter(list-9, decimal) '. ';\n}\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 3em;\n}\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 4.5em;\n}\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 3em;\n}\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 4.5em;\n}\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 6em;\n}\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 7.5em;\n}\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 6em;\n}\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 7.5em;\n}\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 9em;\n}\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 10.5em;\n}\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 9em;\n}\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 10.5em;\n}\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 12em;\n}\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 13.5em;\n}\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 12em;\n}\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 13.5em;\n}\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 15em;\n}\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 16.5em;\n}\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 15em;\n}\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 16.5em;\n}\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 18em;\n}\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 19.5em;\n}\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 18em;\n}\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 19.5em;\n}\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 21em;\n}\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 22.5em;\n}\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 21em;\n}\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 22.5em;\n}\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 24em;\n}\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 25.5em;\n}\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 24em;\n}\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 25.5em;\n}\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 27em;\n}\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 28.5em;\n}\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 27em;\n}\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 28.5em;\n}\n.ql-editor .ql-video {\n display: block;\n max-width: 100%;\n}\n.ql-editor .ql-video.ql-align-center {\n margin: 0 auto;\n}\n.ql-editor .ql-video.ql-align-right {\n margin: 0 0 0 auto;\n}\n.ql-editor .ql-bg-black {\n background-color: #000;\n}\n.ql-editor .ql-bg-red {\n background-color: #e60000;\n}\n.ql-editor .ql-bg-orange {\n background-color: #f90;\n}\n.ql-editor .ql-bg-yellow {\n background-color: #ff0;\n}\n.ql-editor .ql-bg-green {\n background-color: #008a00;\n}\n.ql-editor .ql-bg-blue {\n background-color: #06c;\n}\n.ql-editor .ql-bg-purple {\n background-color: #93f;\n}\n.ql-editor .ql-color-white {\n color: #fff;\n}\n.ql-editor .ql-color-red {\n color: #e60000;\n}\n.ql-editor .ql-color-orange {\n color: #f90;\n}\n.ql-editor .ql-color-yellow {\n color: #ff0;\n}\n.ql-editor .ql-color-green {\n color: #008a00;\n}\n.ql-editor .ql-color-blue {\n color: #06c;\n}\n.ql-editor .ql-color-purple {\n color: #93f;\n}\n.ql-editor .ql-font-serif {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-editor .ql-font-monospace {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-editor .ql-size-small {\n font-size: 0.75em;\n}\n.ql-editor .ql-size-large {\n font-size: 1.5em;\n}\n.ql-editor .ql-size-huge {\n font-size: 2.5em;\n}\n.ql-editor .ql-direction-rtl {\n direction: rtl;\n text-align: inherit;\n}\n.ql-editor .ql-align-center {\n text-align: center;\n}\n.ql-editor .ql-align-justify {\n text-align: justify;\n}\n.ql-editor .ql-align-right {\n text-align: right;\n}\n.ql-editor.ql-blank::before {\n color: rgba(0,0,0,0.6);\n content: attr(data-placeholder);\n font-style: italic;\n left: 15px;\n pointer-events: none;\n position: absolute;\n right: 15px;\n}\n.ql-snow.ql-toolbar:after,\n.ql-snow .ql-toolbar:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow.ql-toolbar button,\n.ql-snow .ql-toolbar button {\n background: none;\n border: none;\n cursor: pointer;\n display: inline-block;\n float: left;\n height: 24px;\n padding: 3px 5px;\n width: 28px;\n}\n.ql-snow.ql-toolbar button svg,\n.ql-snow .ql-toolbar button svg {\n float: left;\n height: 100%;\n}\n.ql-snow.ql-toolbar button:active:hover,\n.ql-snow .ql-toolbar button:active:hover {\n outline: none;\n}\n.ql-snow.ql-toolbar input.ql-image[type=file],\n.ql-snow .ql-toolbar input.ql-image[type=file] {\n display: none;\n}\n.ql-snow.ql-toolbar button:hover,\n.ql-snow .ql-toolbar button:hover,\n.ql-snow.ql-toolbar button:focus,\n.ql-snow .ql-toolbar button:focus,\n.ql-snow.ql-toolbar button.ql-active,\n.ql-snow .ql-toolbar button.ql-active,\n.ql-snow.ql-toolbar .ql-picker-label:hover,\n.ql-snow .ql-toolbar .ql-picker-label:hover,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.ql-snow.ql-toolbar .ql-picker-item:hover,\n.ql-snow .ql-toolbar .ql-picker-item:hover,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n color: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n fill: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-stroke,\n.ql-snow .ql-toolbar button:hover .ql-stroke,\n.ql-snow.ql-toolbar button:focus .ql-stroke,\n.ql-snow .ql-toolbar button:focus .ql-stroke,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n stroke: #06c;\n}\n@media (pointer: coarse) {\n .ql-snow.ql-toolbar button:hover:not(.ql-active),\n .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n color: #444;\n }\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n fill: #444;\n }\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n stroke: #444;\n }\n}\n.ql-snow {\n box-sizing: border-box;\n}\n.ql-snow * {\n box-sizing: border-box;\n}\n.ql-snow .ql-hidden {\n display: none;\n}\n.ql-snow .ql-out-bottom,\n.ql-snow .ql-out-top {\n visibility: hidden;\n}\n.ql-snow .ql-tooltip {\n position: absolute;\n transform: translateY(10px);\n}\n.ql-snow .ql-tooltip a {\n cursor: pointer;\n text-decoration: none;\n}\n.ql-snow .ql-tooltip.ql-flip {\n transform: translateY(-10px);\n}\n.ql-snow .ql-formats {\n display: inline-block;\n vertical-align: middle;\n}\n.ql-snow .ql-formats:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow .ql-stroke {\n fill: none;\n stroke: #444;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2;\n}\n.ql-snow .ql-stroke-miter {\n fill: none;\n stroke: #444;\n stroke-miterlimit: 10;\n stroke-width: 2;\n}\n.ql-snow .ql-fill,\n.ql-snow .ql-stroke.ql-fill {\n fill: #444;\n}\n.ql-snow .ql-empty {\n fill: none;\n}\n.ql-snow .ql-even {\n fill-rule: evenodd;\n}\n.ql-snow .ql-thin,\n.ql-snow .ql-stroke.ql-thin {\n stroke-width: 1;\n}\n.ql-snow .ql-transparent {\n opacity: 0.4;\n}\n.ql-snow .ql-direction svg:last-child {\n display: none;\n}\n.ql-snow .ql-direction.ql-active svg:last-child {\n display: inline;\n}\n.ql-snow .ql-direction.ql-active svg:first-child {\n display: none;\n}\n.ql-snow .ql-editor h1 {\n font-size: 2em;\n}\n.ql-snow .ql-editor h2 {\n font-size: 1.5em;\n}\n.ql-snow .ql-editor h3 {\n font-size: 1.17em;\n}\n.ql-snow .ql-editor h4 {\n font-size: 1em;\n}\n.ql-snow .ql-editor h5 {\n font-size: 0.83em;\n}\n.ql-snow .ql-editor h6 {\n font-size: 0.67em;\n}\n.ql-snow .ql-editor a {\n text-decoration: underline;\n}\n.ql-snow .ql-editor blockquote {\n border-left: 4px solid #ccc;\n margin-bottom: 5px;\n margin-top: 5px;\n padding-left: 16px;\n}\n.ql-snow .ql-editor code,\n.ql-snow .ql-editor pre {\n background-color: #f0f0f0;\n border-radius: 3px;\n}\n.ql-snow .ql-editor pre {\n white-space: pre-wrap;\n margin-bottom: 5px;\n margin-top: 5px;\n padding: 5px 10px;\n}\n.ql-snow .ql-editor code {\n font-size: 85%;\n padding: 2px 4px;\n}\n.ql-snow .ql-editor pre.ql-syntax {\n background-color: #23241f;\n color: #f8f8f2;\n overflow: visible;\n}\n.ql-snow .ql-editor img {\n max-width: 100%;\n}\n.ql-snow .ql-picker {\n color: #444;\n display: inline-block;\n float: left;\n font-size: 14px;\n font-weight: 500;\n height: 24px;\n position: relative;\n vertical-align: middle;\n}\n.ql-snow .ql-picker-label {\n cursor: pointer;\n display: inline-block;\n height: 100%;\n padding-left: 8px;\n padding-right: 2px;\n position: relative;\n width: 100%;\n}\n.ql-snow .ql-picker-label::before {\n display: inline-block;\n line-height: 22px;\n}\n.ql-snow .ql-picker-options {\n background-color: #fff;\n display: none;\n min-width: 100%;\n padding: 4px 8px;\n position: absolute;\n white-space: nowrap;\n}\n.ql-snow .ql-picker-options .ql-picker-item {\n cursor: pointer;\n display: block;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #ccc;\n z-index: 2;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n display: block;\n margin-top: -1px;\n top: 100%;\n z-index: 1;\n}\n.ql-snow .ql-color-picker,\n.ql-snow .ql-icon-picker {\n width: 28px;\n}\n.ql-snow .ql-color-picker .ql-picker-label,\n.ql-snow .ql-icon-picker .ql-picker-label {\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-label svg,\n.ql-snow .ql-icon-picker .ql-picker-label svg {\n right: 4px;\n}\n.ql-snow .ql-icon-picker .ql-picker-options {\n padding: 4px 0px;\n}\n.ql-snow .ql-icon-picker .ql-picker-item {\n height: 24px;\n width: 24px;\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-options {\n padding: 3px 5px;\n width: 152px;\n}\n.ql-snow .ql-color-picker .ql-picker-item {\n border: 1px solid transparent;\n float: left;\n height: 16px;\n margin: 2px;\n padding: 0px;\n width: 16px;\n}\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n position: absolute;\n margin-top: -9px;\n right: 0;\n top: 50%;\n width: 18px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n content: attr(data-label);\n}\n.ql-snow .ql-picker.ql-header {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n content: 'Heading 1';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n content: 'Heading 2';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n content: 'Heading 3';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n content: 'Heading 4';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n content: 'Heading 5';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n content: 'Heading 6';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n font-size: 2em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n font-size: 1.5em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n font-size: 1.17em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n font-size: 1em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n font-size: 0.83em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n font-size: 0.67em;\n}\n.ql-snow .ql-picker.ql-font {\n width: 108px;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\n content: 'Sans Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n content: 'Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n content: 'Monospace';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-snow .ql-picker.ql-size {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n content: 'Small';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n content: 'Large';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n content: 'Huge';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n font-size: 10px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n font-size: 18px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n font-size: 32px;\n}\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\n background-color: #fff;\n}\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\n background-color: #000;\n}\n.ql-toolbar.ql-snow {\n border: 1px solid #ccc;\n box-sizing: border-box;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n padding: 8px;\n}\n.ql-toolbar.ql-snow .ql-formats {\n margin-right: 15px;\n}\n.ql-toolbar.ql-snow .ql-picker-label {\n border: 1px solid transparent;\n}\n.ql-toolbar.ql-snow .ql-picker-options {\n border: 1px solid transparent;\n box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n border-color: #000;\n}\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\n border-top: 0px;\n}\n.ql-snow .ql-tooltip {\n background-color: #fff;\n border: 1px solid #ccc;\n box-shadow: 0px 0px 5px #ddd;\n color: #444;\n padding: 5px 12px;\n white-space: nowrap;\n}\n.ql-snow .ql-tooltip::before {\n content: \"Visit URL:\";\n line-height: 26px;\n margin-right: 8px;\n}\n.ql-snow .ql-tooltip input[type=text] {\n display: none;\n border: 1px solid #ccc;\n font-size: 13px;\n height: 26px;\n margin: 0px;\n padding: 3px 5px;\n width: 170px;\n}\n.ql-snow .ql-tooltip a.ql-preview {\n display: inline-block;\n max-width: 200px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n vertical-align: top;\n}\n.ql-snow .ql-tooltip a.ql-action::after {\n border-right: 1px solid #ccc;\n content: 'Edit';\n margin-left: 16px;\n padding-right: 8px;\n}\n.ql-snow .ql-tooltip a.ql-remove::before {\n content: 'Remove';\n margin-left: 8px;\n}\n.ql-snow .ql-tooltip a {\n line-height: 26px;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\n display: none;\n}\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\n display: inline-block;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n border-right: 0px;\n content: 'Save';\n padding-right: 0px;\n}\n.ql-snow .ql-tooltip[data-mode=link]::before {\n content: \"Enter link:\";\n}\n.ql-snow .ql-tooltip[data-mode=formula]::before {\n content: \"Enter formula:\";\n}\n.ql-snow .ql-tooltip[data-mode=video]::before {\n content: \"Enter video:\";\n}\n.ql-snow a {\n color: #06c;\n}\n.ql-container.ql-snow {\n border: 1px solid #ccc;\n}\n"]}
|
|
|
|
modules/quill/streamlit_quill/frontend/build/static/js/2.c8ea490a.chunk.js
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
modules/quill/streamlit_quill/frontend/build/static/js/2.c8ea490a.chunk.js.LICENSE.txt
CHANGED
@@ -1,3 +1,89 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
object-assign
|
3 |
+
(c) Sindre Sorhus
|
4 |
+
@license MIT
|
5 |
+
*/
|
6 |
+
|
7 |
+
/*!
|
8 |
+
* Quill Editor v1.3.7
|
9 |
+
* https://quilljs.com/
|
10 |
+
* Copyright (c) 2014, Jason Chen
|
11 |
+
* Copyright (c) 2013, salesforce.com
|
12 |
+
*/
|
13 |
+
|
14 |
+
/*!
|
15 |
+
* The buffer module from node.js, for the browser.
|
16 |
+
*
|
17 |
+
* @author Feross Aboukhadijeh <http://feross.org>
|
18 |
+
* @license MIT
|
19 |
+
*/
|
20 |
+
|
21 |
+
/**
|
22 |
+
* @license
|
23 |
+
* Copyright 2018-2019 Streamlit Inc.
|
24 |
+
*
|
25 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
26 |
+
* you may not use this file except in compliance with the License.
|
27 |
+
* You may obtain a copy of the License at
|
28 |
+
*
|
29 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
30 |
+
*
|
31 |
+
* Unless required by applicable law or agreed to in writing, software
|
32 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
33 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
34 |
+
* See the License for the specific language governing permissions and
|
35 |
+
* limitations under the License.
|
36 |
+
*/
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @license
|
40 |
+
* Copyright 2018-2020 Streamlit Inc.
|
41 |
+
*
|
42 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
43 |
+
* you may not use this file except in compliance with the License.
|
44 |
+
* You may obtain a copy of the License at
|
45 |
+
*
|
46 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
47 |
+
*
|
48 |
+
* Unless required by applicable law or agreed to in writing, software
|
49 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
50 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
51 |
+
* See the License for the specific language governing permissions and
|
52 |
+
* limitations under the License.
|
53 |
+
*/
|
54 |
+
|
55 |
+
/** @license React v0.19.1
|
56 |
+
* scheduler.production.min.js
|
57 |
+
*
|
58 |
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
59 |
+
*
|
60 |
+
* This source code is licensed under the MIT license found in the
|
61 |
+
* LICENSE file in the root directory of this source tree.
|
62 |
+
*/
|
63 |
+
|
64 |
+
/** @license React v16.13.1
|
65 |
+
* react-dom.production.min.js
|
66 |
+
*
|
67 |
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
68 |
+
*
|
69 |
+
* This source code is licensed under the MIT license found in the
|
70 |
+
* LICENSE file in the root directory of this source tree.
|
71 |
+
*/
|
72 |
+
|
73 |
+
/** @license React v16.13.1
|
74 |
+
* react-is.production.min.js
|
75 |
+
*
|
76 |
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
77 |
+
*
|
78 |
+
* This source code is licensed under the MIT license found in the
|
79 |
+
* LICENSE file in the root directory of this source tree.
|
80 |
+
*/
|
81 |
+
|
82 |
+
/** @license React v16.13.1
|
83 |
+
* react.production.min.js
|
84 |
+
*
|
85 |
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
86 |
+
*
|
87 |
+
* This source code is licensed under the MIT license found in the
|
88 |
+
* LICENSE file in the root directory of this source tree.
|
89 |
+
*/
|
modules/quill/streamlit_quill/frontend/build/static/js/2.c8ea490a.chunk.js.map
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
modules/quill/streamlit_quill/frontend/build/static/js/main.21a6f1da.chunk.js
CHANGED
@@ -1,3 +1,2 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
size 1178
|
|
|
1 |
+
(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{116:function(e,t,n){"use strict";n.r(t);var a=n(1),r=n.n(a),o=n(15),l=n.n(o),c=n(4),i=n(30),s=n.n(i),u=n(31),m=n(32),p=n.n(m),d=(n(114),n(115),n(16)),f=n.n(d),h=n(33),b=n.n(h);f.a.register("modules/imageResize",b.a);var g=Object(c.b)((function(e){var t,n=e.args,o=Object(a.useRef)(null);return Object(a.useEffect)((function(){c.a.setFrameHeight(),window.katex=p.a;var e=new u.a((function(){c.a.setFrameHeight()}));return o.current&&e.observe(o.current),function(){return e.disconnect()}})),r.a.createElement("div",{ref:o},r.a.createElement(s.a,{defaultValue:n.defaultValue,modules:{toolbar:n.toolbar,imageResize:{displaySize:!0},history:n.history},placeholder:n.placeholder,preserveWhitespace:n.preserveWhitespace,readOnly:n.readOnly,onChange:function(e,a,r,o){clearTimeout(t),t=setTimeout((function(){c.a.setComponentValue(n.html?e:o.getText())}),200)}}))}));l.a.render(r.a.createElement(r.a.StrictMode,null,r.a.createElement(g,null)),document.getElementById("root"))},34:function(e,t,n){e.exports=n(116)}},[[34,1,2]]]);
|
2 |
+
//# sourceMappingURL=main.21a6f1da.chunk.js.map
|
|
modules/quill/streamlit_quill/frontend/build/static/js/main.21a6f1da.chunk.js.map
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
version
|
2 |
-
oid sha256:8b194c94fbe39acca1dbc8c6d82be4635412d1305330bef60df1609d557c1b9d
|
3 |
-
size 3345
|
|
|
1 |
+
{"version":3,"sources":["quill.tsx","index.tsx"],"names":["Quill","register","ImageResize","withStreamlitConnection","timeout","args","divRef","useRef","useEffect","Streamlit","setFrameHeight","window","katex","ro","ResizeObserver","current","observe","disconnect","ref","defaultValue","modules","toolbar","imageResize","displaySize","history","placeholder","preserveWhitespace","readOnly","onChange","content","delta","source","editor","clearTimeout","setTimeout","setComponentValue","html","getText","ReactDOM","render","StrictMode","document","getElementById"],"mappings":"6RAcAA,IAAMC,SAAS,sBAAuBC,KAOtC,IA6CeC,eA7CA,SAAC,GAA0B,IAGpCC,EAHYC,EAAuB,EAAvBA,KACVC,EAASC,iBAAuB,MA0BtC,OAfAC,qBAAU,WACRC,IAAUC,iBAEVC,OAAOC,MAAQA,IAEf,IAAMC,EAAK,IAAIC,KAAe,WAC5BL,IAAUC,oBAMZ,OAHIJ,EAAOS,SACTF,EAAGG,QAAQV,EAAOS,SAEb,kBAAMF,EAAGI,iBAGX,yBAAKC,IAAKZ,GACf,kBAAC,IAAD,CACEa,aAAcd,EAAKc,aACnBC,QAAS,CACPC,QAAShB,EAAKgB,QACrBC,YAAa,CACJC,aAAa,GAEfC,QAASnB,EAAKmB,SAEhBC,YAAapB,EAAKoB,YAClBC,mBAAoBrB,EAAKqB,mBACzBC,SAAUtB,EAAKsB,SACfC,SAnCiB,SAACC,EAAiBC,EAAYC,EAAaC,GAC9DC,aAAa7B,GACbA,EAAU8B,YAAW,WACnBzB,IAAU0B,kBAAkB9B,EAAK+B,KAAOP,EAAUG,EAAOK,aACxD,YC1BPC,IAASC,OACP,kBAAC,IAAMC,WAAP,KACE,kBAAC,EAAD,OAEFC,SAASC,eAAe,U","file":"static/js/main.21a6f1da.chunk.js","sourcesContent":["import {\r\n ComponentProps,\r\n Streamlit,\r\n withStreamlitConnection\r\n} from \"streamlit-component-lib\";\r\nimport React, { useEffect, useRef } from \"react\"\r\nimport ReactQuill from \"react-quill\"\r\nimport ResizeObserver from \"resize-observer-polyfill\"\r\nimport katex from \"katex\"\r\nimport \"katex/dist/katex.min.css\"\r\nimport \"quill/dist/quill.snow.css\"\r\nimport Quill from 'quill';\r\nimport ImageResize from 'quill-image-resize-module-plus';\r\n \r\nQuill.register('modules/imageResize', ImageResize);\r\n \r\n\r\ninterface QuillProps extends ComponentProps {\r\n args: any\r\n}\r\n\r\nconst Quill2 = ({ args }: QuillProps) => {\r\n const divRef = useRef<HTMLDivElement>(null)\r\n\r\n let timeout: NodeJS.Timeout\r\n\r\n const handleChange = (content: string, delta: any, source: any, editor: any) => {\r\n clearTimeout(timeout)\r\n timeout = setTimeout(() => {\r\n Streamlit.setComponentValue(args.html ? content : editor.getText())\r\n }, 200)\r\n }\r\n\r\n useEffect(() => {\r\n Streamlit.setFrameHeight()\r\n\r\n window.katex = katex\r\n\r\n const ro = new ResizeObserver(() => {\r\n Streamlit.setFrameHeight()\r\n })\r\n\r\n if (divRef.current)\r\n ro.observe(divRef.current)\r\n\r\n return () => ro.disconnect()\r\n })\r\n\r\n return <div ref={divRef}>\r\n <ReactQuill\r\n defaultValue={args.defaultValue}\r\n modules={{\r\n toolbar: args.toolbar,\r\n\timageResize: {\r\n displaySize: true\r\n },\r\n history: args.history,\r\n }}\r\n placeholder={args.placeholder}\r\n preserveWhitespace={args.preserveWhitespace}\r\n readOnly={args.readOnly}\r\n onChange={handleChange}\r\n />\r\n </div>\r\n}\r\n\r\nexport default withStreamlitConnection(Quill2)\r\n","import React from \"react\"\r\nimport ReactDOM from \"react-dom\"\r\nimport Quill from \"./quill\"\r\n\r\nReactDOM.render(\r\n <React.StrictMode>\r\n <Quill />\r\n </React.StrictMode>,\r\n document.getElementById(\"root\")\r\n)\r\n"],"sourceRoot":""}
|
|
|
|
modules/quill/streamlit_quill/frontend/build/static/js/runtime-main.11ec9aca.js
CHANGED
@@ -1,3 +1,2 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
size 1598
|
|
|
1 |
+
!function(e){function t(t){for(var n,l,a=t[0],p=t[1],i=t[2],c=0,s=[];c<a.length;c++)l=a[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);for(f&&f(t);s.length;)s.shift()();return u.push.apply(u,i||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var p=r[a];0!==o[p]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="./";var a=this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[],p=a.push.bind(a);a.push=t,a=a.slice();for(var i=0;i<a.length;i++)t(a[i]);var f=p;r()}([]);
|
2 |
+
//# sourceMappingURL=runtime-main.11ec9aca.js.map
|
|
modules/quill/streamlit_quill/frontend/build/static/js/runtime-main.11ec9aca.js.map
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
version
|
2 |
-
oid sha256:f103d8abf2ee051ee5004a5cebac24b9120fd178ca04b1353b3c2fee903b2a99
|
3 |
-
size 8317
|
|
|
1 |
+
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","this","oldJsonpFunction","slice"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB,CACrBiB,EAAG,GAGAZ,EAAkB,GAGtB,SAASS,EAAoB1B,GAG5B,GAAG4B,EAAiB5B,GACnB,OAAO4B,EAAiB5B,GAAU8B,QAGnC,IAAIC,EAASH,EAAiB5B,GAAY,CACzCK,EAAGL,EACHgC,GAAG,EACHF,QAAS,IAUV,OANAhB,EAAQd,GAAUW,KAAKoB,EAAOD,QAASC,EAAQA,EAAOD,QAASJ,GAG/DK,EAAOC,GAAI,EAGJD,EAAOD,QAKfJ,EAAoBO,EAAInB,EAGxBY,EAAoBQ,EAAIN,EAGxBF,EAAoBS,EAAI,SAASL,EAASM,EAAMC,GAC3CX,EAAoBY,EAAER,EAASM,IAClC5B,OAAO+B,eAAeT,EAASM,EAAM,CAAEI,YAAY,EAAMC,IAAKJ,KAKhEX,EAAoBgB,EAAI,SAASZ,GACX,qBAAXa,QAA0BA,OAAOC,aAC1CpC,OAAO+B,eAAeT,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DrC,OAAO+B,eAAeT,EAAS,aAAc,CAAEe,OAAO,KAQvDnB,EAAoBoB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQnB,EAAoBmB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,kBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKzC,OAAO0C,OAAO,MAGvB,GAFAxB,EAAoBgB,EAAEO,GACtBzC,OAAO+B,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOnB,EAAoBS,EAAEc,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRvB,EAAoB2B,EAAI,SAAStB,GAChC,IAAIM,EAASN,GAAUA,EAAOiB,WAC7B,WAAwB,OAAOjB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAL,EAAoBS,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRX,EAAoBY,EAAI,SAASgB,EAAQC,GAAY,OAAO/C,OAAOC,UAAUC,eAAeC,KAAK2C,EAAQC,IAGzG7B,EAAoB8B,EAAI,KAExB,IAAIC,EAAaC,KAA+C,yCAAIA,KAA+C,0CAAK,GACpHC,EAAmBF,EAAW5C,KAAKuC,KAAKK,GAC5CA,EAAW5C,KAAOf,EAClB2D,EAAaA,EAAWG,QACxB,IAAI,IAAIvD,EAAI,EAAGA,EAAIoD,EAAWlD,OAAQF,IAAKP,EAAqB2D,EAAWpD,IAC3E,IAAIU,EAAsB4C,EAI1BxC,I","file":"static/js/runtime-main.11ec9aca.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \tvar jsonpArray = this[\"webpackJsonpstreamlit_component_template\"] = this[\"webpackJsonpstreamlit_component_template\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
|
|
|
|