Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

First public commit

Luke Vellae05cd62e5325
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 000000000..c7eefc03f
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,4 @@
+node_modules
+.env
+.sentryclirc
+sentry.properties
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 000000000..bffb357a7
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "next/core-web-vitals"
+}
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 000000000..c9d3f1739
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,78 @@
+name: ci
+on:
+ push:
+ branches:
+ - main
+ - development
+
+jobs:
+ linting:
+ name: Linting
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out repository code
+ uses: actions/checkout@v2
+
+ - name: Setup node
+ uses: actions/setup-node@v2
+ with:
+ node-version: 16
+ cache: yarn
+
+ - name: Install dependencies
+ run: yarn install --frozen-lockfile
+
+ - name: ESLint
+ run: yarn lint
+
+ # Label of the container job
+ integration-tests:
+ name: Run tests
+ # Containers must run in Linux based operating systems
+ runs-on: ubuntu-latest
+
+ steps:
+ # Downloads a copy of the code in your repository before running CI tests
+ - name: Check out repository code
+ uses: actions/checkout@v2
+
+ - name: Setup node
+ uses: actions/setup-node@v2
+ with:
+ node-version: 16
+ cache: yarn
+
+ - name: Set environment variables
+ run: |
+ echo "DATABASE_URL=postgresql://postgres:password@localhost:5432/db" >> $GITHUB_ENV
+
+ - name: Install dependencies
+ run: yarn install --frozen-lockfile
+
+ - name: Run db
+ run: |
+ docker pull postgres:14.2
+ docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=password -e POSTGRES_DB=db postgres:14.2
+ yarn wait-on --timeout 60000 tcp:localhost:5432
+
+ - name: Build
+ run: yarn build
+
+ - name: Deploy migrations
+ run: yarn prisma migrate deploy
+
+ - name: Install playwright dependencies
+ run: yarn playwright install --with-deps chromium
+
+ - name: Launch app
+ run: yarn start 2>&1 & # backgrounnd mode
+
+ - name: Run tests
+ run: yarn test
+
+ - name: Upload artifact playwright-report
+ if: ${{ success() || failure() }}
+ uses: actions/upload-artifact@v2
+ with:
+ name: playwright-report
+ path: ./playwright-report
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..1b5afbe91
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,42 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+
+# testing
+/coverage
+
+# next.js
+.next/
+/out/
+
+# production
+/build
+
+# misc
+.DS_Store
+*.pem
+
+# debug
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# local env files
+.env
+.env.local
+.env.development.local
+.env.test.local
+.env.production.local
+
+# vercel
+.vercel
+
+# Sentry
+.sentryclirc
+
+# playwright
+/playwright-report
+/test-results
\ No newline at end of file
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 000000000..d3432c135
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,8 @@
+{
+ "semi": true,
+ "tabWidth": 2,
+ "useTabs": false,
+ "trailingComma": "all",
+ "singleQuote": false,
+ "arrowParens": "always"
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 000000000..8d1baba65
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,6 @@
+{
+ "editor.codeActionsOnSave": {
+ "source.fixAll": true
+ },
+ "typescript.tsdk": "node_modules/typescript/lib"
+}
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..8b4894513
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,22 @@
+FROM node:alpine
+
+RUN mkdir -p /usr/src/app
+ENV PORT 3000
+ARG DATABASE_URL
+ENV DATABASE_URL $DATABASE_URL
+
+WORKDIR /usr/src/app
+
+COPY package.json /usr/src/app
+COPY yarn.lock /usr/src/app
+COPY schema.prisma /usr/src/app
+
+RUN yarn --production
+
+COPY . /usr/src/app
+
+RUN yarn build
+
+EXPOSE 3000
+
+CMD [ "yarn", "start" ]
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000..162676cbe
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,661 @@
+ GNU AFFERO GENERAL PUBLIC LICENSE
+ Version 3, 19 November 2007
+
+Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+Everyone is permitted to copy and distribute verbatim copies
+of this license document, but changing it is not allowed.
+
+ Preamble
+
+The GNU Affero General Public License is a free, copyleft license for
+software and other kinds of works, specifically designed to ensure
+cooperation with the community in the case of network server software.
+
+The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+our General Public Licenses are intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.
+
+When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+Developers that use our General Public Licenses protect your rights
+with two steps: (1) assert copyright on the software, and (2) offer
+you this License which gives you legal permission to copy, distribute
+and/or modify the software.
+
+A secondary benefit of defending all users' freedom is that
+improvements made in alternate versions of the program, if they
+receive widespread use, become available for other developers to
+incorporate. Many developers of free software are heartened and
+encouraged by the resulting cooperation. However, in the case of
+software used on network servers, this result may fail to come about.
+The GNU General Public License permits making a modified version and
+letting the public access it on a server without ever releasing its
+source code to the public.
+
+The GNU Affero General Public License is designed specifically to
+ensure that, in such cases, the modified source code becomes available
+to the community. It requires the operator of a network server to
+provide the source code of the modified version running there to the
+users of that server. Therefore, public use of a modified version, on
+a publicly accessible server, gives the public access to the source
+code of the modified version.
+
+An older license, called the Affero General Public License and
+published by Affero, was designed to accomplish similar goals. This is
+a different license, not a version of the Affero GPL, but Affero has
+released a new version of the Affero GPL which permits relicensing under
+this license.
+
+The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+0. Definitions.
+
+"This License" refers to version 3 of the GNU Affero General Public License.
+
+"Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+"The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+1. Source Code.
+
+The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+The Corresponding Source for a work in source code form is that
+same work.
+
+2. Basic Permissions.
+
+All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+4. Conveying Verbatim Copies.
+
+You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+5. Conveying Modified Source Versions.
+
+You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+6. Conveying Non-Source Forms.
+
+You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+"Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+7. Additional Terms.
+
+"Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+8. Termination.
+
+You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+9. Acceptance Not Required for Having Copies.
+
+You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+10. Automatic Licensing of Downstream Recipients.
+
+Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+11. Patents.
+
+A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+12. No Surrender of Others' Freedom.
+
+If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+13. Remote Network Interaction; Use with the GNU General Public License.
+
+Notwithstanding any other provision of this License, if you modify the
+Program, your modified version must prominently offer all users
+interacting with it remotely through a computer network (if your version
+supports such interaction) an opportunity to receive the Corresponding
+Source of your version by providing access to the Corresponding Source
+from a network server at no charge, through some standard or customary
+means of facilitating copying of software. This Corresponding Source
+shall include the Corresponding Source for any work covered by version 3
+of the GNU General Public License that is incorporated pursuant to the
+following paragraph.
+
+Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the work with which it is combined will remain governed by version
+3 of the GNU General Public License.
+
+14. Revised Versions of this License.
+
+The Free Software Foundation may publish revised and/or new versions of
+the GNU Affero General Public License from time to time. Such new versions
+will be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU Affero General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU Affero General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+If the Program specifies that a proxy can decide which future
+versions of the GNU Affero General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+15. Disclaimer of Warranty.
+
+THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+16. Limitation of Liability.
+
+IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+17. Interpretation of Sections 15 and 16.
+
+If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If your software can interact with users remotely through a computer
+network, you should also make sure that it provides a way for users to
+get its source. For example, if your program is a web application, its
+interface could display a "Source" link that leads users to an archive
+of the code. There are many ways you could offer source, and different
+solutions will be better for different programs; see section 13 for the
+specific requirements.
+
+You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU AGPL, see
+<https://www.gnu.org/licenses/>.
diff --git a/README.md b/README.md
new file mode 100644
index 000000000..3251bd725
--- /dev/null
+++ b/README.md
@@ -0,0 +1,82 @@
+<img src="./public/logo.png" width="200" />
+
+Rallly is an open-source collaborative scheduling service – designed and developed by @lukevella
+
+## Running with docker
+
+_This assumes that you have Docker installed_
+
+Clone this repo and change directory to the root of the repository.
+
+```bash
+git clone https://github.com/lukevella/Rallly.git
+cd Rallly
+```
+
+Build and run with `docker-compose`
+
+```bash
+docker-compose up -d
+```
+
+Go to [http://localhost:3000](http://localhost:3000)
+
+## Running without docker
+
+Clone this repo and change directory to the root of the repository.
+
+```bash
+git clone https://github.com/lukevella/Rallly.git
+cd Rallly
+```
+
+Copy the sample `.env` file then open it and set the variables.
+
+```bash
+cp sample.env .env
+```
+
+You will need to supply a url to an empty postgres database.
+
+```
+# /.env
+DATABASE_URL='postgresql://user:password@hostname/dbname'
+```
+
+Install dependencies
+
+```
+yarn
+```
+
+Next we need to run the database migrations to create our tables
+
+```
+yarn prisma migrate deploy
+```
+
+Start the Next.js server
+
+```
+# For development
+yarn dev
+# For production
+yarn build
+yarn start
+```
+
+## Contributors
+
+If you would like to contribute to the development of the project please reach out first before spending significant time on it.
+
+## License
+
+Rallly is open-source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. See [LICENSE](LICENSE) for more detail.
+
+## Credits
+
+This project would not exist without the help of other great open-source projects. Thanks to the developers and teams at:
+
+- [Next.js](https://github.com/vercel/next.js)
+- [Prisma](https://github.com/prisma/prisma)
+- [TailwindCSS](https://github.com/tailwindlabs/tailwindcss)
diff --git a/api-client/add-participant.ts b/api-client/add-participant.ts
new file mode 100644
index 000000000..d6325d4f4
--- /dev/null
+++ b/api-client/add-participant.ts
@@ -0,0 +1,23 @@
+import { Participant, Vote } from "@prisma/client";
+import axios from "axios";
+
+export interface AddParticipantPayload {
+ pollId: string;
+ name: string;
+ votes: string[];
+}
+
+export type AddParticipantResponse = Participant & {
+ votes: Vote[];
+};
+
+export const addParticipant = async (
+ payload: AddParticipantPayload,
+): Promise<AddParticipantResponse> => {
+ const res = await axios.post<AddParticipantResponse>(
+ `/api/poll/${payload.pollId}/participant`,
+ payload,
+ );
+
+ return res.data;
+};
diff --git a/api-client/create-comment.ts b/api-client/create-comment.ts
new file mode 100644
index 000000000..bc0b99783
--- /dev/null
+++ b/api-client/create-comment.ts
@@ -0,0 +1,18 @@
+import { Comment } from "@prisma/client";
+import axios from "axios";
+
+export interface CreateCommentPayload {
+ pollId: string;
+ content: string;
+ authorName: string;
+}
+
+export const createComment = async (
+ payload: CreateCommentPayload,
+): Promise<Comment> => {
+ const { data } = await axios.post<Comment>(
+ `/api/poll/${payload.pollId}/comments`,
+ payload,
+ );
+ return data;
+};
diff --git a/api-client/create-demo.ts b/api-client/create-demo.ts
new file mode 100644
index 000000000..2a4344e6e
--- /dev/null
+++ b/api-client/create-demo.ts
@@ -0,0 +1,7 @@
+import { Poll } from "@prisma/client";
+import axios from "axios";
+
+export const createDemo = async (): Promise<Poll> => {
+ const { data } = await axios.post<Poll>("/api/poll/create-demo");
+ return data;
+};
diff --git a/api-client/create-poll.ts b/api-client/create-poll.ts
new file mode 100644
index 000000000..3aab17080
--- /dev/null
+++ b/api-client/create-poll.ts
@@ -0,0 +1,21 @@
+import { Poll } from "@prisma/client";
+import axios from "axios";
+
+export interface CreatePollPayload {
+ title: string;
+ type: "date";
+ timeZone?: string;
+ location?: string;
+ description?: string;
+ user: {
+ name: string;
+ email: string;
+ };
+ options: string[];
+ demo?: boolean;
+}
+
+export const createPoll = async (payload: CreatePollPayload): Promise<Poll> => {
+ const { data } = await axios.post<Poll>("/api/poll", payload);
+ return data;
+};
diff --git a/api-client/delete-participant.ts b/api-client/delete-participant.ts
new file mode 100644
index 000000000..b3e2715b9
--- /dev/null
+++ b/api-client/delete-participant.ts
@@ -0,0 +1,17 @@
+import axios from "axios";
+
+export interface DeleteParticipantPayload {
+ pollId: string;
+ participantId: string;
+}
+
+export const deleteParticipant = async (
+ payload: DeleteParticipantPayload,
+): Promise<void> => {
+ try {
+ const { pollId, participantId } = payload;
+ await axios.delete(`/api/poll/${pollId}/participant/${participantId}`);
+ } catch (err) {
+ throw err;
+ }
+};
diff --git a/api-client/get-poll.ts b/api-client/get-poll.ts
new file mode 100644
index 000000000..1c981cc9e
--- /dev/null
+++ b/api-client/get-poll.ts
@@ -0,0 +1,14 @@
+import { Link, Option, Participant, Poll, User, Vote } from "@prisma/client";
+
+export interface GetPollApiResponse extends Omit<Poll, "verificationCode"> {
+ options: Array<Option & { votes: Vote[] }>;
+ participants: Array<Participant & { votes: Vote[] }>;
+ user: User;
+ role: "admin" | "participant";
+ links: Array<Link>;
+ pollId: string;
+}
+
+export interface GetPollResponse extends Omit<GetPollApiResponse, "createdAt"> {
+ createdAt: string;
+}
diff --git a/api-client/update-participant.ts b/api-client/update-participant.ts
new file mode 100644
index 000000000..8642aea70
--- /dev/null
+++ b/api-client/update-participant.ts
@@ -0,0 +1,15 @@
+import axios from "axios";
+
+export interface UpdateParticipantPayload {
+ pollId: string;
+ participantId: string;
+ name: string;
+ votes: string[];
+}
+
+export const updateParticipant = async (
+ payload: UpdateParticipantPayload,
+): Promise<void> => {
+ const { pollId, participantId, ...body } = payload;
+ await axios.patch(`/api/poll/${pollId}/participant/${participantId}`, body);
+};
diff --git a/api-client/update-poll.ts b/api-client/update-poll.ts
new file mode 100644
index 000000000..6ddca9c51
--- /dev/null
+++ b/api-client/update-poll.ts
@@ -0,0 +1,25 @@
+import { Poll } from "@prisma/client";
+import axios from "axios";
+
+export interface UpdatePollPayload {
+ title?: string;
+ timeZone?: string;
+ location?: string;
+ description?: string;
+ optionsToDelete?: string[];
+ optionsToAdd?: string[];
+ notifications?: boolean;
+ closed?: boolean;
+}
+
+export const updatePoll = async (
+ urlId: string,
+ payload: UpdatePollPayload,
+): Promise<Poll> => {
+ try {
+ const { data } = await axios.patch<Poll>(`/api/poll/${urlId}`, payload);
+ return data;
+ } catch (err) {
+ throw err;
+ }
+};
diff --git a/components/button/button.tsx b/components/button/button.tsx
new file mode 100644
index 000000000..4a5134220
--- /dev/null
+++ b/components/button/button.tsx
@@ -0,0 +1,71 @@
+import clsx from "clsx";
+import * as React from "react";
+
+import SpinnerIcon from "../icons/spinner.svg";
+
+export interface ButtonProps {
+ children?: React.ReactNode;
+ className?: string;
+ disabled?: boolean;
+ loading?: boolean;
+ icon?: React.ReactElement;
+ htmlType?: React.ButtonHTMLAttributes<HTMLButtonElement>["type"];
+ type?: "default" | "primary" | "danger" | "link";
+ form?: string;
+ href?: string;
+ rounded?: boolean;
+ title?: string;
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
+}
+
+const Button: React.ForwardRefRenderFunction<HTMLButtonElement, ButtonProps> = (
+ {
+ children,
+ loading,
+ type = "default",
+ htmlType = "button",
+ className,
+ icon,
+ disabled,
+ href,
+ rounded,
+ ...passThroughProps
+ },
+ ref,
+) => {
+ return (
+ <button
+ ref={ref}
+ type={htmlType}
+ className={clsx(
+ {
+ "btn-default": type === "default",
+ "btn-primary": type === "primary",
+ "btn-danger": type === "danger",
+ "btn-link": type === "link",
+ "btn-disabled": disabled,
+ "rounded-full p-2 h-auto": rounded,
+ "w-10 p-0": !children,
+ },
+ className,
+ )}
+ {...passThroughProps}
+ disabled={disabled || loading}
+ >
+ {loading ? (
+ <SpinnerIcon
+ className={clsx("w-5 animate-spin inline-block", {
+ "mr-2": !!children,
+ })}
+ />
+ ) : icon ? (
+ React.cloneElement(icon, {
+ className: clsx("w-5 h-5", { "-ml-1 mr-2": !!children }),
+ })
+ ) : null}
+ {children}
+ </button>
+ );
+};
+
+export default React.forwardRef(Button);
diff --git a/components/button/index.ts b/components/button/index.ts
new file mode 100644
index 000000000..ef9b43b37
--- /dev/null
+++ b/components/button/index.ts
@@ -0,0 +1,2 @@
+export type { ButtonProps } from "./button";
+export { default } from "./button";
diff --git a/components/compact-button.tsx b/components/compact-button.tsx
new file mode 100644
index 000000000..d1e60fd47
--- /dev/null
+++ b/components/compact-button.tsx
@@ -0,0 +1,28 @@
+import * as React from "react";
+
+export interface CompactButtonProps {
+ icon?: React.ComponentType<{
+ className?: string;
+ style?: React.CSSProperties;
+ }>;
+ children?: React.ReactNode;
+ onClick?: () => void;
+}
+
+const CompactButton: React.VoidFunctionComponent<CompactButtonProps> = ({
+ icon: Icon,
+ children,
+ onClick,
+}) => {
+ return (
+ <button
+ type="button"
+ className="h-5 w-5 rounded-full hover:bg-gray-200 transition-colors active:text-gray-500 active:bg-gray-300 text-gray-400 bg-gray-100 inline-flex items-center justify-center"
+ onClick={onClick}
+ >
+ {Icon ? <Icon className="w-3 h-3" /> : children}
+ </button>
+ );
+};
+
+export default CompactButton;
diff --git a/components/cookie-consent.tsx b/components/cookie-consent.tsx
new file mode 100644
index 000000000..1d4c9ab3e
--- /dev/null
+++ b/components/cookie-consent.tsx
@@ -0,0 +1,49 @@
+import { Transition } from "@headlessui/react";
+import Cookies from "js-cookie";
+import Link from "next/link";
+import * as React from "react";
+import ReactDOM from "react-dom";
+import { getPortal } from "utils/selectors";
+import CookiesIllustration from "./cookie-consent/cookies.svg";
+
+const CookieConsentPopover: React.VoidFunctionComponent = () => {
+ const [visible, setVisible] = React.useState(true);
+
+ return ReactDOM.createPortal(
+ <Transition
+ show={visible}
+ appear={true}
+ as="div"
+ enter="transition transform delay-1000 duration-1000"
+ enterFrom="opacity-0 translate-y-8"
+ enterTo="opacity-100 translate-y-0"
+ leave="duration-200"
+ leaveFrom="opacity-100 translate-y-0"
+ leaveTo="opacity-0 translate-y-8"
+ className="bg-white z-50 p-4 pt-8 shadow-lg fixed rounded-lg w-60 text-sm bottom-8 right-8"
+ >
+ <CookiesIllustration className="absolute -top-6" />
+ <div className="mb-3">
+ Your privacy is important to us. We only use cookies to improve the
+ browsing experience on this website.
+ </div>
+ <div className="flex space-x-6 items-center">
+ <Link href="/privacy-policy">
+ <a className="text-slate-400 hover:text-indigo-500">Privacy Policy</a>
+ </Link>
+ <button
+ onClick={() => {
+ Cookies.set("rallly_cookie_consent", "1", { expires: 365 });
+ setVisible(false);
+ }}
+ className="grow text-white focus:ring-2 focus:ring-indigo-200 transition-all bg-indigo-500 hover:bg-indigo-500/90 active:bg-indigo-600/90 px-5 py-1 font-semibold shadow-sm rounded-md"
+ >
+ OK
+ </button>
+ </div>
+ </Transition>,
+ getPortal(),
+ );
+};
+
+export default CookieConsentPopover;
diff --git a/components/cookie-consent/cookies.svg b/components/cookie-consent/cookies.svg
new file mode 100644
index 000000000..5045f5ce3
--- /dev/null
+++ b/components/cookie-consent/cookies.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="71" height="44" fill="none" viewBox="0 0 71 44">
+ <path fill="#BF8870" stroke="#644647" stroke-width="2" d="M42.5 21.5c0 5.722-1.803 10.584-5.22 14.134-3.414 3.546-8.526 5.874-15.316 6.366-6.742-.008-11.96-2.324-15.494-5.991C2.934 32.34 1.013 27.247 1 21.557 2.47 9.01 10.733 1 22 1c6.778 0 11.872 2.172 15.275 5.752C40.686 10.339 42.5 15.447 42.5 21.5z"/>
+ <path fill="#fff" fill-opacity=".2" d="M3.893 28.215c.175.632 1.06.43 1.06-.226 0-12.719 9.84-23.03 21.976-23.03.748 0 1.026-.99.309-1.203A18.135 18.135 0 0022.046 3C11.527 3 3 11.994 3 23.09c0 1.463.408 3.373.893 5.125z"/>
+ <path fill="#F0E0D2" stroke="#634647" stroke-width="2" d="M24.434 11c1.045 0 1.81-.82 1.92-1.765.115-.296.186-.637.122-.99a1.41 1.41 0 00-.724-.996 2.08 2.08 0 00-.784-.228C24.767 7 24.57 7 24.448 7h-.014c-1.131 0-1.934.96-1.934 2s.803 2 1.934 2zM10.5 25a3 3 0 002.99-2.755c.234-.525.358-1.066.257-1.59-.127-.656-.558-1.067-1.001-1.295-.41-.21-.866-.288-1.229-.324-.367-.036-.733-.036-1-.036H10.5a3 3 0 100 6zM22.963 36.678a3 3 0 004.018.624c.556-.144 1.056-.383 1.404-.79.434-.507.487-1.1.39-1.588-.091-.452-.314-.858-.512-1.164-.2-.309-.429-.596-.595-.805l-.01-.013a3 3 0 10-4.695 3.736z"/>
+ <path fill="#845556" stroke="#634647" stroke-width="2" d="M37.044 19.802a3 3 0 00-.6-4.022c-.303-.488-.68-.894-1.172-1.105-.614-.264-1.195-.138-1.633.1-.404.222-.725.556-.958.835-.236.284-.442.587-.592.809l-.01.013a3 3 0 104.965 3.37z"/>
+ <path stroke="#634647" stroke-linecap="round" stroke-width="2" d="M30.5 27.754l2.793 2.793M23.5 21.5c1-1.5 1-1.5 3.126-2.414M11.5 10.978s2.5 0 3.622 1.576M14.5 33.304s0-1.804 1.537-3.639"/>
+ <path fill="#EAAC89" stroke="#634647" stroke-linejoin="round" stroke-width="2" d="M36.503 5.02c3.24-2.622 7.309-3.92 11.865-3.873a.379.379 0 01.077.104.98.98 0 01.105.577 4.5 4.5 0 002.429 4.693 4.517 4.517 0 001.272 1.542c.207.16.34.493.3.753A4.5 4.5 0 0057 14c.648 0 1.429.312 1.897.758a4.488 4.488 0 003.788 1.19c.26-.04.593.094.753.3a4.494 4.494 0 005.133 1.47c.197-.073.505-.086.756-.01a.522.522 0 01.187.087c.407 2.624.39 5.542-.116 8.734-1.543 6.564-4.985 11.117-9.36 13.724-4.378 2.609-9.775 3.32-15.318 2.038-11.884-4.288-17.803-14.156-15.238-25.128 1.285-5.5 3.774-9.514 7.022-12.142zm11.85-3.882s.004 0 .011.006c-.007-.003-.01-.005-.01-.006zm21.173 16.674s-.004-.003-.008-.012c.007.007.01.012.008.012z"/>
+ <path fill="#fff" fill-opacity=".2" d="M30.893 27.215c.175.632 1.06.43 1.06-.226C31.953 14.27 35.363 4.5 47.5 4.5c.143 0 .217-.087.247-.22.165-.731.002-1.78-.747-1.78-10.519 0-17 8.494-17 19.59 0 1.463.408 3.373.893 5.125z"/>
+ <path fill="#845556" stroke="#634647" stroke-width="2" d="M41.634 15.72c.238-1.017-.387-1.949-1.282-2.271-.262-.179-.577-.325-.937-.344a1.41 1.41 0 00-1.134.48 2.081 2.081 0 00-.4.71c-.066.191-.111.383-.14.502l-.002.013c-.258 1.102.495 2.102 1.507 2.339 1.012.236 2.13-.327 2.388-1.428zM51.824 33.36a3 3 0 00-2.002-3.539c-.458-.347-.957-.59-1.491-.611-.667-.026-1.165.3-1.488.68-.298.35-.478.777-.595 1.122-.119.35-.202.706-.263.967l-.004.016a3 3 0 105.843 1.365z"/>
+ <path stroke="#634647" stroke-linecap="round" stroke-width="2" d="M49.784 20.368l-1.02-2.238M36.807 29.659s.569-2.435 2.36-3.168M60.877 28.325s-1.757-.41-3.193-2.325"/>
+</svg>
diff --git a/components/crisp-chat.tsx b/components/crisp-chat.tsx
new file mode 100644
index 000000000..55655459d
--- /dev/null
+++ b/components/crisp-chat.tsx
@@ -0,0 +1,57 @@
+import * as React from "react";
+import Button from "./button";
+import Chat from "@/components/icons/chat.svg";
+
+const crispWebsiteId = process.env.NEXT_PUBLIC_CRISP_WEBSITE_ID;
+
+declare global {
+ interface Window {
+ $crisp?: Array<unknown>;
+ CRISP_WEBSITE_ID?: string;
+ }
+}
+
+export const showCrispChat = () => {
+ window.$crisp?.push(["do", "chat:show"]);
+ window.$crisp?.push(["do", "chat:open"]);
+};
+
+export const ChatButton: React.VoidFunctionComponent<{ text?: string }> = ({
+ text,
+}) => {
+ return (
+ <Button icon={<Chat />} onClick={showCrispChat}>
+ {text}
+ </Button>
+ );
+};
+
+const CrispChat: React.VoidFunctionComponent = () => {
+ React.useEffect(() => {
+ if (!crispWebsiteId) {
+ return;
+ }
+ window.$crisp = [];
+ window.CRISP_WEBSITE_ID = crispWebsiteId;
+ (() => {
+ const d = document;
+ const s = d.createElement("script");
+ s.src = "https://client.crisp.chat/l.js";
+ s.async = true;
+ d.getElementsByTagName("body")[0].appendChild(s);
+ window.$crisp.push(["safe", true]); // disable warning about other event listeners
+ window.$crisp.push(["do", "chat:hide"]);
+ window.$crisp.push([
+ "on",
+ "chat:closed",
+ () => {
+ window.$crisp?.push(["do", "chat:hide"]);
+ },
+ ]);
+ })();
+ });
+
+ return null;
+};
+
+export default CrispChat;
diff --git a/components/date-card.tsx b/components/date-card.tsx
new file mode 100644
index 000000000..b75e3c246
--- /dev/null
+++ b/components/date-card.tsx
@@ -0,0 +1,42 @@
+import clsx from "clsx";
+import * as React from "react";
+
+export interface DateCardProps {
+ annotation?: React.ReactNode;
+ day: string;
+ month: string;
+ dow: string;
+ className?: string;
+}
+
+const DateCard: React.VoidFunctionComponent<DateCardProps> = ({
+ annotation,
+ className,
+ day,
+ dow,
+ month,
+}) => {
+ return (
+ <div
+ className={clsx(
+ "inline-block bg-white text-center border h-14 w-14 rounded-md relative shadow-md shadow-slate-100",
+ className,
+ )}
+ >
+ {annotation ? (
+ <div className="absolute -top-3 -right-3">{annotation}</div>
+ ) : null}
+ <div className="text-xs -mt-2 mb-[-1px] text-slate-400 relative">
+ <span className="relative inline-block after:content-[''] after:inline-block after:absolute after:left-0 px-1 after:top-[7px] after:border-white after:-z-10 z-10 after:border-t after:w-full">
+ {dow}
+ </span>
+ </div>
+ <div className="text-red-500 text-lg -mb-1 text-center">{day}</div>
+ <div className="text-gray-800 text-center text-xs uppercase font-semibold">
+ {month}
+ </div>
+ </div>
+ );
+};
+
+export default DateCard;
diff --git a/components/discussion/discussion.tsx b/components/discussion/discussion.tsx
new file mode 100644
index 000000000..d85af79fd
--- /dev/null
+++ b/components/discussion/discussion.tsx
@@ -0,0 +1,233 @@
+import { Transition } from "@headlessui/react";
+import { Comment } from "@prisma/client";
+import axios from "axios";
+import { formatRelative } from "date-fns";
+import { usePlausible } from "next-plausible";
+import * as React from "react";
+import { Controller, useForm } from "react-hook-form";
+import { useMutation, useQuery, useQueryClient } from "react-query";
+import { useList } from "react-use";
+import {
+ createComment,
+ CreateCommentPayload,
+} from "../../api-client/create-comment";
+import { requiredString } from "../../utils/form-validation";
+import Button from "../button";
+import CompactButton from "../compact-button";
+import Dropdown, { DropdownItem } from "../dropdown";
+import DotsHorizontal from "../icons/dots-horizontal.svg";
+import Trash from "../icons/trash.svg";
+import NameInput from "../name-input";
+import UserAvater from "../poll/user-avatar";
+import { useUserName } from "../user-name-context";
+
+export interface DiscussionProps {
+ pollId: string;
+ canDelete?: boolean;
+}
+
+interface CommentForm {
+ authorName: string;
+ content: string;
+}
+
+const Comments: React.VoidFunctionComponent<{
+ comments: {
+ id: string;
+ authorName: string;
+ content: string;
+ createdAt: string;
+ }[];
+ deletedComments: string[];
+ onDelete: (commentId: string) => void;
+ canDelete?: boolean;
+}> = ({ comments, deletedComments, onDelete, canDelete }) => {
+ return (
+ <div className="bg-slate-50 p-4 space-y-3 border-b">
+ {comments.map((comment, i) => {
+ return (
+ <div className="flex" key={i}>
+ <Transition
+ show={!deletedComments.includes(comment.id)}
+ as="div"
+ enter="transition transform duration-300"
+ enterFrom="opacity-0 translate-y-4"
+ enterTo="opacity-100 translate-y-0"
+ leave="transition transform duration-100"
+ leaveFrom="opacity-100"
+ leaveTo="opacity-0"
+ className="bg-white border rounded-xl px-3 py-2 shadow-sm w-fit"
+ >
+ <div className="flex space-x-2 items-center">
+ <UserAvater name={comment.authorName} />
+ <div className="mb-1">
+ <span className="mr-1">{comment.authorName}</span>
+ <span className="mr-1 text-slate-400">&bull;</span>
+ <span className="text-sm text-slate-500">
+ {formatRelative(new Date(comment.createdAt), Date.now())}
+ </span>
+ </div>
+ {canDelete ? (
+ <Dropdown
+ placement="bottom-start"
+ trigger={<CompactButton icon={DotsHorizontal} />}
+ >
+ <DropdownItem
+ icon={Trash}
+ label="Delete comment"
+ onClick={() => {
+ onDelete(comment.id);
+ }}
+ />
+ </Dropdown>
+ ) : null}
+ </div>
+ <div className="w-fit whitespace-pre-wrap">{comment.content}</div>
+ </Transition>
+ </div>
+ );
+ })}
+ </div>
+ );
+};
+
+const Discussion: React.VoidFunctionComponent<DiscussionProps> = ({
+ pollId,
+ canDelete,
+}) => {
+ const getCommentsQueryKey = ["poll", pollId, "comments"];
+ const [userName, setUserName] = useUserName();
+ const [deletedComments, { push }] = useList<string>([]);
+ const queryClient = useQueryClient();
+ const { data: comments } = useQuery(
+ getCommentsQueryKey,
+ async () => {
+ const res = await axios.get<{
+ comments: Array<Omit<Comment, "createdAt"> & { createdAt: string }>;
+ }>(`/api/poll/${pollId}/comments`);
+ return res.data.comments;
+ },
+ {
+ refetchInterval: 10000, // refetch every 10 seconds
+ },
+ );
+
+ const plausible = usePlausible();
+
+ const { mutate: createCommentMutation } = useMutation(
+ (payload: CreateCommentPayload) => {
+ // post comment
+ return createComment(payload);
+ },
+ {
+ onSuccess: (newComment) => {
+ queryClient.setQueryData(getCommentsQueryKey, (comments) => {
+ if (Array.isArray(comments)) {
+ return [...comments, newComment];
+ }
+ return [newComment];
+ });
+ plausible("Created comment");
+ },
+ },
+ );
+
+ const { mutate: deleteCommentMutation } = useMutation(
+ async (payload: { pollId: string; commentId: string }) => {
+ await axios.delete(`/api/poll/${pollId}/comments/${payload.commentId}`);
+ },
+ {
+ onMutate: ({ commentId }) => {
+ push(commentId);
+ plausible("Deleted comment");
+ },
+ onSuccess: () => {
+ queryClient.invalidateQueries(getCommentsQueryKey);
+ },
+ },
+ );
+
+ const { register, setValue, control, handleSubmit, formState } =
+ useForm<CommentForm>({
+ defaultValues: {
+ authorName: userName,
+ content: "",
+ },
+ });
+
+ React.useEffect(() => {
+ setValue("authorName", userName);
+ }, [setValue, userName]);
+
+ const handleDelete = React.useCallback(
+ (commentId: string) => {
+ deleteCommentMutation({ pollId, commentId });
+ },
+ [deleteCommentMutation, pollId],
+ );
+
+ if (!comments) {
+ return null;
+ }
+
+ return (
+ <div className="border-t border-b md:border md:rounded-lg overflow-hidden shadow-sm">
+ <div className="px-4 py-2 bg-white border-b">
+ <div className="font-medium">Comments</div>
+ </div>
+ {comments.length ? (
+ <Comments
+ comments={comments}
+ canDelete={canDelete}
+ onDelete={handleDelete}
+ deletedComments={deletedComments}
+ />
+ ) : null}
+ <form
+ className="bg-white p-4"
+ onSubmit={handleSubmit((data) => {
+ return new Promise((resolve, reject) => {
+ createCommentMutation(
+ {
+ ...data,
+ pollId,
+ },
+ {
+ onSuccess: () => {
+ setUserName(data.authorName);
+ setValue("content", "");
+ resolve(data);
+ },
+ onError: reject,
+ },
+ );
+ });
+ })}
+ >
+ <textarea
+ id="comment"
+ placeholder="Add your comment…"
+ className="input pl-3 pr-4 py-2 w-full"
+ {...register("content", { validate: requiredString })}
+ />
+ <div className="flex mt-1 space-x-3">
+ <Controller
+ name="authorName"
+ control={control}
+ rules={{ validate: requiredString }}
+ render={({ field }) => <NameInput className="w-full" {...field} />}
+ />
+ <Button
+ htmlType="submit"
+ loading={formState.isSubmitting}
+ type="primary"
+ >
+ Send
+ </Button>
+ </div>
+ </form>
+ </div>
+ );
+};
+
+export default React.memo(Discussion);
diff --git a/components/discussion/index.ts b/components/discussion/index.ts
new file mode 100644
index 000000000..8448b7d12
--- /dev/null
+++ b/components/discussion/index.ts
@@ -0,0 +1 @@
+export { default } from "./discussion";
diff --git a/components/dropdown.tsx b/components/dropdown.tsx
new file mode 100644
index 000000000..b39f14b88
--- /dev/null
+++ b/components/dropdown.tsx
@@ -0,0 +1,99 @@
+import { Menu } from "@headlessui/react";
+import { Placement } from "@popperjs/core";
+import clsx from "clsx";
+import * as React from "react";
+import ReactDOM from "react-dom";
+import { usePopper } from "react-popper";
+export interface DropdownProps {
+ trigger?: React.ReactNode;
+ children?: React.ReactNode;
+ className?: string;
+ placement?: Placement;
+}
+
+const Dropdown: React.VoidFunctionComponent<DropdownProps> = ({
+ children,
+ className,
+ trigger,
+ placement,
+}) => {
+ const [referenceElement, setReferenceElement] =
+ React.useState<HTMLDivElement | null>(null);
+ const [popperElement, setPopperElement] =
+ React.useState<HTMLDivElement | null>(null);
+
+ const { styles, attributes } = usePopper(referenceElement, popperElement, {
+ placement,
+ modifiers: [
+ {
+ name: "offset",
+ options: {
+ offset: [0, 5],
+ },
+ },
+ ],
+ });
+
+ const portal = document.getElementById("portal");
+ return (
+ <Menu>
+ <Menu.Button
+ ref={setReferenceElement}
+ as="div"
+ className={clsx("inline-block", className)}
+ >
+ {trigger}
+ </Menu.Button>
+ {portal &&
+ ReactDOM.createPortal(
+ <Menu.Items
+ as="div"
+ ref={setPopperElement}
+ style={styles.popper}
+ {...attributes.popper}
+ className="z-30 p-1 bg-white divide-gray-100 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none"
+ >
+ {children}
+ </Menu.Items>,
+ portal,
+ )}
+ </Menu>
+ );
+};
+
+export const DropdownItem: React.VoidFunctionComponent<{
+ icon?: React.ComponentType<{ className?: string }>;
+ label?: React.ReactNode;
+ disabled?: boolean;
+ onClick?: () => void;
+}> = ({ icon: Icon, label, onClick, disabled }) => {
+ return (
+ <Menu.Item disabled={disabled}>
+ {({ active }) => (
+ <button
+ onClick={onClick}
+ className={clsx(
+ "group flex rounded items-center w-full py-2 pl-2 pr-4",
+ {
+ "bg-indigo-500 text-white": active,
+ "text-gray-700": !active,
+ "opacity-50": disabled,
+ },
+ )}
+ >
+ {Icon && (
+ <Icon
+ className={clsx("w-5 h-5 mr-2", {
+ "text-white": active,
+ "text-indigo-500": !disabled,
+ })}
+ />
+ )}
+ {label}
+ </button>
+ )}
+ </Menu.Item>
+ );
+};
+
+export default Dropdown;
diff --git a/components/error-page.tsx b/components/error-page.tsx
new file mode 100644
index 000000000..178ef7e02
--- /dev/null
+++ b/components/error-page.tsx
@@ -0,0 +1,50 @@
+import Head from "next/head";
+import Link from "next/link";
+import * as React from "react";
+import StandardLayout from "./standard-layout";
+import Button from "@/components/button";
+import Chat from "@/components/icons/chat.svg";
+import EmojiSad from "@/components/icons/emoji-sad.svg";
+import { showCrispChat } from "./crisp-chat";
+
+export interface ComponentProps {
+ icon?: React.ComponentType<{ className?: string }>;
+ title: string;
+ description: string;
+}
+
+const ErrorPage: React.VoidFunctionComponent<ComponentProps> = ({
+ icon: Icon = EmojiSad,
+ title,
+ description,
+}) => {
+ return (
+ <StandardLayout>
+ <div className="h-full bg-gray-50 px-4 py-8 flex items-center justify-center lg:w-[1024px] max-w-full">
+ <Head>
+ <title>{title}</title>
+ <meta name="robots" content="noindex,nofollow" />
+ </Head>
+ <div className="flex items-start">
+ <div className="text-center">
+ <Icon className="w-24 inline-block mb-4 text-slate-400" />
+ <div className="text-3xl font-bold uppercase text-indigo-500 ">
+ {title}
+ </div>
+ <p>{description}</p>
+ <div className="flex space-x-3 justify-center">
+ <Link href="/" passHref={true}>
+ <a className="btn-default">Go to home</a>
+ </Link>
+ <Button icon={<Chat />} onClick={showCrispChat}>
+ Start chat
+ </Button>
+ </div>
+ </div>
+ </div>
+ </div>
+ </StandardLayout>
+ );
+};
+
+export default ErrorPage;
diff --git a/components/forms/index.ts b/components/forms/index.ts
new file mode 100644
index 000000000..c8ef778cd
--- /dev/null
+++ b/components/forms/index.ts
@@ -0,0 +1,7 @@
+export type { PollDetailsData } from "./poll-details-form";
+export { PollDetailsForm } from "./poll-details-form";
+export type { PollOptionsData } from "./poll-options-form/poll-options-form";
+export { default as PollOptionsForm } from "./poll-options-form/poll-options-form";
+export * from "./types";
+export type { UserDetailsData } from "./user-details-form";
+export { UserDetailsForm } from "./user-details-form";
diff --git a/components/forms/poll-details-form.tsx b/components/forms/poll-details-form.tsx
new file mode 100644
index 000000000..ad01913f8
--- /dev/null
+++ b/components/forms/poll-details-form.tsx
@@ -0,0 +1,76 @@
+import clsx from "clsx";
+import { useTranslation } from "next-i18next";
+import * as React from "react";
+import { useForm } from "react-hook-form";
+
+import { requiredString } from "../../utils/form-validation";
+import { PollFormProps } from "./types";
+
+export interface PollDetailsData {
+ title: string;
+ location: string;
+ description: string;
+}
+
+export const PollDetailsForm: React.VoidFunctionComponent<
+ PollFormProps<PollDetailsData>
+> = ({ name, defaultValues, onSubmit, onChange, className }) => {
+ const { t } = useTranslation("app");
+ const {
+ handleSubmit,
+ register,
+ watch,
+ formState: { errors },
+ } = useForm<PollDetailsData>({ defaultValues });
+
+ React.useEffect(() => {
+ if (onChange) {
+ const subscription = watch(onChange);
+ return () => {
+ subscription.unsubscribe();
+ };
+ }
+ }, [onChange, watch]);
+
+ return (
+ <form
+ id={name}
+ className={clsx("max-w-full", className)}
+ style={{ width: 500 }}
+ onSubmit={handleSubmit(onSubmit)}
+ >
+ <div className="formField">
+ <label htmlFor="title">{t("title")}</label>
+ <input
+ type="text"
+ id="title"
+ className={clsx("input w-full", {
+ "input-error": errors.title,
+ })}
+ placeholder={t("titlePlaceholder")}
+ {...register("title", { validate: requiredString })}
+ />
+ </div>
+ <div className="formField">
+ <label htmlFor="location">{t("location")}</label>
+ <input
+ type="text"
+ id="location"
+ className="input w-full"
+ placeholder={t("locationPlaceholder")}
+ {...register("location")}
+ />
+ </div>
+ <div className="formField">
+ <label htmlFor="description">{t("description")}</label>
+ <textarea
+ id="description"
+ className="input w-full"
+ placeholder={t("descriptionPlaceholder")}
+ rows={5}
+ {...register("description")}
+ />
+ </div>
+ </form>
+ );
+};
diff --git a/components/forms/poll-options-form/date-navigation-toolbar.tsx b/components/forms/poll-options-form/date-navigation-toolbar.tsx
new file mode 100644
index 000000000..8685f9409
--- /dev/null
+++ b/components/forms/poll-options-form/date-navigation-toolbar.tsx
@@ -0,0 +1,39 @@
+import * as React from "react";
+
+import ChevronLeft from "../../icons/chevron-left.svg";
+import ChevronRight from "../../icons/chevron-right.svg";
+
+export interface DateNavigationToolbarProps {
+ year: number;
+ label: string;
+ onPrevious: () => void;
+ onNext: () => void;
+ onToday: () => void;
+}
+
+const DateNavigationToolbar: React.VoidFunctionComponent<DateNavigationToolbarProps> =
+ ({ year, label, onPrevious, onToday, onNext }) => {
+ return (
+ <div className="flex border-b items-center w-full px-4 h-14 shrink-0">
+ <div className="grow">
+ <span className="text-sm font-bold text-gray-400 mr-2">{year}</span>
+ <span className="text-lg font-bold text-gray-700">{label}</span>
+ </div>
+ <div className="flex space-x-2 items-center">
+ <div className="segment-button">
+ <button type="button" onClick={onPrevious}>
+ <ChevronLeft className="h-5" />
+ </button>
+ <button type="button" onClick={onToday}>
+ Today
+ </button>
+ <button type="button" onClick={onNext}>
+ <ChevronRight className="h-5" />
+ </button>
+ </div>
+ </div>
+ </div>
+ );
+ };
+
+export default DateNavigationToolbar;
diff --git a/components/forms/poll-options-form/index.ts b/components/forms/poll-options-form/index.ts
new file mode 100644
index 000000000..5d4a44eae
--- /dev/null
+++ b/components/forms/poll-options-form/index.ts
@@ -0,0 +1,2 @@
+export { default } from "./poll-options-form";
+export * from "./types";
diff --git a/components/forms/poll-options-form/month-calendar/index.ts b/components/forms/poll-options-form/month-calendar/index.ts
new file mode 100644
index 000000000..36878f9a1
--- /dev/null
+++ b/components/forms/poll-options-form/month-calendar/index.ts
@@ -0,0 +1 @@
+export { default } from "./month-calendar";
diff --git a/components/forms/poll-options-form/month-calendar/month-calendar.tsx b/components/forms/poll-options-form/month-calendar/month-calendar.tsx
new file mode 100644
index 000000000..091b64226
--- /dev/null
+++ b/components/forms/poll-options-form/month-calendar/month-calendar.tsx
@@ -0,0 +1,426 @@
+import clsx from "clsx";
+import differenceInMinutes from "date-fns/differenceInMinutes";
+import { addMinutes, setHours } from "date-fns/esm";
+import isSameDay from "date-fns/isSameDay";
+import { usePlausible } from "next-plausible";
+import * as React from "react";
+import { DateTimeOption } from "..";
+import {
+ expectTimeOption,
+ getDateProps,
+ removeAllOptionsForDay,
+} from "../../../../utils/date-time-utils";
+import Button from "../../../button";
+import CompactButton from "../../../compact-button";
+import DateCard from "../../../date-card";
+import Dropdown, { DropdownItem } from "../../../dropdown";
+import { useHeadlessDatePicker } from "../../../headless-date-picker";
+import Calendar from "../../../icons/calendar.svg";
+import ChevronLeft from "../../../icons/chevron-left.svg";
+import ChevronRight from "../../../icons/chevron-right.svg";
+import DotsHorizontal from "../../../icons/dots-horizontal.svg";
+import Magic from "../../../icons/magic.svg";
+import PlusSm from "../../../icons/plus-sm.svg";
+import Trash from "../../../icons/trash.svg";
+import X from "../../../icons/x.svg";
+import Switch from "../../../switch";
+import { DateTimePickerProps } from "../types";
+import { formatDateWithoutTime, formatDateWithoutTz } from "../utils";
+import TimePicker from "./time-picker";
+
+const MonthCalendar: React.VoidFunctionComponent<DateTimePickerProps> = ({
+ options,
+ onNavigate,
+ date,
+ onChange,
+ duration,
+ onChangeDuration,
+}) => {
+ const isTimedEvent = options.some((option) => option.type === "timeSlot");
+
+ const plausible = usePlausible();
+
+ const optionsByDay = React.useMemo(() => {
+ const res: Record<
+ string,
+ [
+ {
+ option: DateTimeOption;
+ index: number;
+ },
+ ]
+ > = {};
+
+ options.forEach((option, index) => {
+ const dateString =
+ option.type === "date"
+ ? option.date
+ : option.start.substring(0, option.start.indexOf("T"));
+
+ if (res[dateString]) {
+ res[dateString].push({ option, index });
+ } else {
+ res[dateString] = [{ option, index }];
+ }
+ });
+
+ return res;
+ }, [options]);
+
+ const datepickerSelection = React.useMemo(() => {
+ return Object.keys(optionsByDay).map(
+ (dateString) => new Date(dateString + "T12:00:00"),
+ );
+ }, [optionsByDay]);
+
+ const datepicker = useHeadlessDatePicker({
+ selection: datepickerSelection,
+ onNavigationChange: onNavigate,
+ date,
+ });
+
+ return (
+ <div className="lg:flex overflow-hidden">
+ <div className="p-4 border-b lg:border-r lg:border-b-0 shrink-0">
+ <div>
+ <div className="w-full flex flex-col">
+ <div className="flex space-x-4 items-center justify-center mb-3">
+ <Button
+ icon={<ChevronLeft />}
+ title="Previous month"
+ onClick={datepicker.prev}
+ />
+ <div className="grow text-center font-medium text-lg">
+ {datepicker.label}
+ </div>
+ <Button
+ title="Next month"
+ icon={<ChevronRight />}
+ onClick={datepicker.next}
+ />
+ </div>
+ <div className="grid grid-cols-7">
+ {datepicker.daysOfWeek.map((dayOfWeek) => {
+ return (
+ <div
+ key={dayOfWeek}
+ className="flex items-center justify-center pb-2 text-slate-400 text-sm font-medium"
+ >
+ {dayOfWeek.substring(0, 2)}
+ </div>
+ );
+ })}
+ </div>
+ <div className="grid grid-cols-7 grow border shadow-sm rounded-lg overflow-hidden bg-white">
+ {datepicker.days.map((day, i) => {
+ return (
+ <button
+ type="button"
+ key={i}
+ onClick={() => {
+ if (
+ datepicker.selection.some((selectedDate) =>
+ isSameDay(selectedDate, day.date),
+ )
+ ) {
+ onChange(removeAllOptionsForDay(options, day.date));
+ } else {
+ const selectedDate = setHours(day.date, 12);
+ const newOption: DateTimeOption = !isTimedEvent
+ ? {
+ type: "date",
+ date: formatDateWithoutTime(selectedDate),
+ }
+ : {
+ type: "timeSlot",
+ start: formatDateWithoutTz(selectedDate),
+ end: formatDateWithoutTz(
+ addMinutes(selectedDate, duration),
+ ),
+ };
+
+ onChange([...options, newOption]);
+ onNavigate(selectedDate);
+ }
+ if (day.outOfMonth) {
+ if (i < 6) {
+ datepicker.prev();
+ } else {
+ datepicker.next();
+ }
+ }
+ }}
+ className={clsx(
+ "flex items-center relative lg:w-14 justify-center focus:ring-0 focus:ring-offset-0 hover:bg-slate-50 px-4 py-3 text-sm active:bg-slate-100",
+ {
+ "text-slate-400 bg-slate-50": day.outOfMonth,
+ "font-bold text-indigo-500": day.today,
+ "border-r": (i + 1) % 7 !== 0,
+ "border-b": i < datepicker.days.length - 7,
+ "font-normal after:content-[''] after:animate-popIn after:absolute after:w-8 after:h-8 after:rounded-full after:bg-green-500 after:-z-0 text-white":
+ day.selected,
+ },
+ )}
+ >
+ <span className="z-10">{day.day}</span>
+ </button>
+ );
+ })}
+ </div>
+ <Button className="mt-3" onClick={datepicker.today}>
+ Today
+ </Button>
+ </div>
+ </div>
+ </div>
+ <div className="grow flex flex-col">
+ <div
+ className={clsx("border-b", {
+ hidden: datepicker.selection.length === 0,
+ })}
+ >
+ <div className="p-4 flex space-x-3 items-center">
+ <div className="grow">
+ <div className="font-medium">Specify times</div>
+ <div className="text-sm text-slate-400">
+ Include start and end times for each option
+ </div>
+ </div>
+ <div>
+ <Switch
+ checked={isTimedEvent}
+ onChange={(checked) => {
+ if (checked) {
+ // convert dates to time slots
+ onChange(
+ options.map((option) => {
+ if (option.type === "timeSlot") {
+ throw new Error(
+ "Expected option to be a date but received timeSlot",
+ );
+ }
+ const startDate = new Date(`${option.date}T12:00:00`);
+ const endDate = addMinutes(startDate, duration);
+ return {
+ type: "timeSlot",
+ start: formatDateWithoutTz(startDate),
+ end: formatDateWithoutTz(endDate),
+ };
+ }),
+ );
+ } else {
+ onChange(
+ datepicker.selection.map((date) => ({
+ type: "date",
+ date: formatDateWithoutTime(date),
+ })),
+ );
+ }
+ }}
+ />
+ </div>
+ </div>
+ </div>
+ <div className="grow px-4">
+ {isTimedEvent ? (
+ <div className="divide-y">
+ {Object.keys(optionsByDay)
+ .sort((a, b) => (a > b ? 1 : -1))
+ .map((dateString) => {
+ const optionsForDay = optionsByDay[dateString];
+ return (
+ <div
+ key={dateString}
+ className="py-4 space-y-3 xs:space-y-0 xs:space-x-4 xs:flex"
+ >
+ <div>
+ <DateCard
+ {...getDateProps(new Date(dateString + "T12:00:00"))}
+ />
+ </div>
+ <div className="grow space-y-3">
+ {optionsForDay.map(({ option, index }) => {
+ if (option.type === "date") {
+ throw new Error("Expected timeSlot but got date");
+ }
+ const startDate = new Date(option.start);
+ return (
+ <div
+ key={index}
+ className="flex space-x-3 items-center"
+ >
+ <TimePicker
+ value={startDate}
+ onChange={(newStart) => {
+ const newEnd = addMinutes(newStart, duration);
+ // replace enter with updated start time
+ onChange([
+ ...options.slice(0, index),
+ {
+ ...option,
+ start: formatDateWithoutTz(newStart),
+ end: formatDateWithoutTz(newEnd),
+ },
+ ...options.slice(index + 1),
+ ]);
+ onNavigate(newStart);
+ onChangeDuration(
+ differenceInMinutes(newEnd, newStart),
+ );
+ }}
+ />
+ <TimePicker
+ value={new Date(option.end)}
+ startFrom={addMinutes(startDate, 15)}
+ onChange={(newEnd) => {
+ onChange([
+ ...options.slice(0, index),
+ {
+ ...option,
+ end: formatDateWithoutTz(newEnd),
+ },
+ ...options.slice(index + 1),
+ ]);
+ onNavigate(newEnd);
+ onChangeDuration(
+ differenceInMinutes(newEnd, startDate),
+ );
+ }}
+ />
+ <CompactButton
+ icon={X}
+ onClick={() => {
+ onChange([
+ ...options.slice(0, index),
+ ...options.slice(index + 1),
+ ]);
+ }}
+ />
+ </div>
+ );
+ })}
+ <div className="flex space-x-3 items-center">
+ <Button
+ icon={<PlusSm />}
+ onClick={() => {
+ const lastOption = expectTimeOption(
+ optionsForDay[optionsForDay.length - 1].option,
+ );
+ const startTime = lastOption.start;
+
+ onChange([
+ ...options,
+ {
+ type: "timeSlot",
+ start: startTime,
+ end: formatDateWithoutTz(
+ addMinutes(new Date(startTime), duration),
+ ),
+ },
+ ]);
+ }}
+ >
+ Add time option
+ </Button>
+ <Dropdown
+ trigger={<CompactButton icon={DotsHorizontal} />}
+ placement="bottom-start"
+ >
+ <DropdownItem
+ icon={Magic}
+ disabled={datepicker.selection.length < 2}
+ label="Apply to all dates"
+ onClick={() => {
+ plausible("Applied options to all dates");
+ const times = optionsForDay.map(
+ ({ option }) => {
+ if (option.type === "date") {
+ throw new Error(
+ "Expected timeSlot but got date",
+ );
+ }
+
+ return {
+ startTime: option.start.substring(
+ option.start.indexOf("T"),
+ ),
+ endTime: option.end.substring(
+ option.end.indexOf("T"),
+ ),
+ };
+ },
+ );
+ const newOptions: DateTimeOption[] = [];
+ Object.keys(optionsByDay).forEach(
+ (dateString) => {
+ times.forEach((time) => {
+ newOptions.push({
+ type: "timeSlot",
+ start: dateString + time.startTime,
+ end: dateString + time.endTime,
+ });
+ });
+ },
+ );
+ onChange(newOptions);
+ }}
+ />
+ <DropdownItem
+ label="Delete date"
+ icon={Trash}
+ onClick={() => {
+ onChange(
+ removeAllOptionsForDay(
+ options,
+ new Date(dateString),
+ ),
+ );
+ }}
+ />
+ </Dropdown>
+ </div>
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ ) : datepicker.selection.length ? (
+ <div className="grid grid-cols-[repeat(auto-fill,60px)] gap-5 py-4">
+ {datepicker.selection
+ .sort((a, b) => a.getTime() - b.getTime())
+ .map((selectedDate, i) => {
+ return (
+ <DateCard
+ key={i}
+ {...getDateProps(selectedDate)}
+ annotation={
+ <CompactButton
+ icon={X}
+ onClick={() => {
+ // TODO (Luke Vella) [2022-03-19]: Find cleaner way to manage this state
+ // Quite tedious right now to remove a single element
+ onChange(
+ removeAllOptionsForDay(options, selectedDate),
+ );
+ }}
+ />
+ }
+ />
+ );
+ })}
+ </div>
+ ) : (
+ <div className="flex h-full items-center justify-center py-12">
+ <div className="text-center font-medium text-gray-400">
+ <Calendar className="inline-block h-12 w-12 mb-2" />
+ <div>No dates selected</div>
+ </div>
+ </div>
+ )}
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default MonthCalendar;
diff --git a/components/forms/poll-options-form/month-calendar/time-picker.tsx b/components/forms/poll-options-form/month-calendar/time-picker.tsx
new file mode 100644
index 000000000..ebe6d1bbe
--- /dev/null
+++ b/components/forms/poll-options-form/month-calendar/time-picker.tsx
@@ -0,0 +1,107 @@
+import { Combobox } from "@headlessui/react";
+import clsx from "clsx";
+import { addMinutes, format, isSameDay, setHours, setMinutes } from "date-fns";
+import * as React from "react";
+import ReactDOM from "react-dom";
+import { usePopper } from "react-popper";
+
+import ChevronDown from "../../../icons/chevron-down.svg";
+import { styleMenuItem } from "../../../menu-styles";
+
+export interface TimePickerProps {
+ value: Date;
+ startFrom?: Date;
+ className?: string;
+ onChange?: (value: Date) => void;
+}
+
+const TimePicker: React.VoidFunctionComponent<TimePickerProps> = ({
+ value,
+ onChange,
+ className,
+ startFrom = setMinutes(setHours(value, 0), 0),
+}) => {
+ const [referenceElement, setReferenceElement] =
+ React.useState<HTMLDivElement | null>(null);
+ const [popperElement, setPopperElement] =
+ React.useState<HTMLUListElement | null>(null);
+
+ const { styles, attributes } = usePopper(referenceElement, popperElement, {
+ modifiers: [
+ {
+ name: "offset",
+ options: {
+ offset: [0, 5],
+ },
+ },
+ ],
+ });
+
+ const [query, setQuery] = React.useState("");
+ const options: React.ReactNode[] = [];
+ for (let i = 0; i < 96; i++) {
+ const optionValue = addMinutes(startFrom, i * 15);
+ if (!isSameDay(value, optionValue)) {
+ // we only support event that start and end on the same day for now
+ // because react-big-calendar does not support events that span days
+ break;
+ }
+ if (query && !format(optionValue, "hhmma").includes(query)) {
+ continue;
+ }
+ options.push(
+ <Combobox.Option
+ key={i}
+ className={styleMenuItem}
+ value={optionValue.toISOString()}
+ >
+ {format(optionValue, "p")}
+ </Combobox.Option>,
+ );
+ }
+
+ const portal = document.getElementById("portal");
+
+ return (
+ <Combobox
+ value={value.toISOString()}
+ onChange={(newValue) => {
+ setQuery("");
+ onChange?.(new Date(newValue));
+ }}
+ >
+ <div ref={setReferenceElement} className={clsx("relative", className)}>
+ {/* Remove generic params once Combobox.Input can infer the types */}
+ <Combobox.Input<"input">
+ className="input w-28 pr-8"
+ displayValue={() => ""}
+ onChange={(e) => {
+ setQuery(e.target.value.toUpperCase().replace(/[\:\s]/g, ""));
+ }}
+ />
+ <Combobox.Button className="absolute inset-0 flex items-center cursor-default px-2 h-9 text-left">
+ <span className="grow truncate">
+ {!query ? format(value, "p") : null}
+ </span>
+ <span className="flex pointer-events-none">
+ <ChevronDown className="w-5 h-5" />
+ </span>
+ </Combobox.Button>
+ {portal &&
+ ReactDOM.createPortal(
+ <Combobox.Options
+ style={styles.popper}
+ {...attributes.popper}
+ ref={setPopperElement}
+ className="z-50 w-32 py-1 overflow-auto bg-white rounded-md shadow-lg max-h-72 ring-1 ring-black ring-opacity-5 focus:outline-none"
+ >
+ {options}
+ </Combobox.Options>,
+ portal,
+ )}
+ </div>
+ </Combobox>
+ );
+};
+
+export default TimePicker;
diff --git a/components/forms/poll-options-form/poll-options-form.tsx b/components/forms/poll-options-form/poll-options-form.tsx
new file mode 100644
index 000000000..d4424a806
--- /dev/null
+++ b/components/forms/poll-options-form/poll-options-form.tsx
@@ -0,0 +1,233 @@
+import clsx from "clsx";
+import { useTranslation } from "next-i18next";
+import * as React from "react";
+import { Controller, useForm } from "react-hook-form";
+
+import { getBrowserTimeZone } from "../../../utils/date-time-utils";
+import FullPageLoader from "../../full-page-loader";
+import Calendar from "../../icons/calendar.svg";
+import Table from "../../icons/table.svg";
+import { useModal } from "../../modal";
+import TimeZonePicker from "../../time-zone-picker";
+import { PollFormProps } from "../types";
+import { DateTimeOption } from "./types";
+
+const WeekCalendar = React.lazy(() => import("./week-calendar"));
+const MonthCalendar = React.lazy(() => import("./month-calendar"));
+
+export type PollOptionsData = {
+ navigationDate: string; // used to navigate to the right part of the calendar
+ duration: number; // duration of the event in minutes
+ timeZone: string;
+ view: string;
+ options: DateTimeOption[];
+};
+
+const PollOptionsForm: React.VoidFunctionComponent<
+ PollFormProps<PollOptionsData> & { title?: string }
+> = ({ name, defaultValues, onSubmit, onChange, title, className }) => {
+ const { t } = useTranslation("app");
+ const { control, handleSubmit, watch, setValue, formState } =
+ useForm<PollOptionsData>({
+ defaultValues: {
+ options: [],
+ duration: 30,
+ timeZone: "",
+ navigationDate: new Date().toISOString(),
+ ...defaultValues,
+ },
+ resolver: (values) => {
+ return {
+ values,
+ errors:
+ values.options.length === 0
+ ? {
+ options: true,
+ }
+ : {},
+ };
+ },
+ });
+
+ const views = React.useMemo(() => {
+ const res = [
+ {
+ label: "Month view",
+ value: "month",
+ Component: MonthCalendar,
+ },
+ {
+ label: "Week view",
+ value: "week",
+ Component: WeekCalendar,
+ },
+ ];
+ return res;
+ }, []);
+
+ const watchView = watch("view");
+
+ const selectedView = React.useMemo(
+ () => views.find((view) => view.value === watchView) ?? views[0],
+ [views, watchView],
+ );
+
+ const watchOptions = watch("options");
+ const watchDuration = watch("duration");
+ const watchTimeZone = watch("timeZone");
+
+ const datesOnly = watchOptions.every((option) => option.type === "date");
+
+ const [dateOrTimeRangeModal, openDateOrTimeRangeModal] = useModal({
+ title: "Wait a minute… 🤔",
+ description:
+ "You can't have both time and date options in the same poll. Which would you like to keep?",
+ okText: "Keep time options",
+ onOk: () => {
+ setValue(
+ "options",
+ watchOptions.filter((option) => option.type === "timeSlot"),
+ );
+ if (!watchTimeZone) {
+ setValue("timeZone", getBrowserTimeZone());
+ }
+ },
+ cancelText: "Keep date options",
+ onCancel: () => {
+ setValue(
+ "options",
+ watchOptions.filter((option) => option.type === "date"),
+ );
+ setValue("timeZone", "");
+ },
+ });
+
+ React.useEffect(() => {
+ if (onChange) {
+ const subscription = watch(({ options = [], ...rest }) => {
+ // Watch returns a deep partial here which is not really accurate and messes up
+ // the types a bit. Repackaging it to keep the types sane.
+ onChange({ options: options as DateTimeOption[], ...rest });
+ });
+ return () => {
+ subscription.unsubscribe();
+ };
+ }
+ }, [watch, onChange]);
+
+ React.useEffect(() => {
+ if (watchOptions.length > 1) {
+ const optionType = watchOptions[0].type;
+ // all options needs to be the same type
+ if (watchOptions.some((option) => option.type !== optionType)) {
+ openDateOrTimeRangeModal();
+ }
+ }
+ }, [watchOptions, openDateOrTimeRangeModal]);
+
+ const watchNavigationDate = watch("navigationDate");
+ const navigationDate = new Date(watchNavigationDate);
+
+ const [calendarHelpModal, openHelpModal] = useModal({
+ overlayClosable: true,
+ title: "Forget something?",
+ description: t("calendarHelp"),
+ okText: t("ok"),
+ });
+
+ return (
+ <form
+ id={name}
+ className={clsx("max-w-full", className)}
+ style={{ width: 1024 }}
+ onSubmit={handleSubmit(onSubmit, openHelpModal)}
+ >
+ {calendarHelpModal}
+ {dateOrTimeRangeModal}
+ <div className="py-3 space-y-2 lg:space-y-0 border-b w-full lg:space-x-2 bg-slate-50 items-center lg:flex px-4">
+ <div className="grow">
+ <Controller
+ control={control}
+ name="timeZone"
+ render={({ field }) => (
+ <TimeZonePicker
+ value={field.value}
+ onBlur={field.onBlur}
+ onChange={(timeZone) => {
+ setValue("timeZone", timeZone, { shouldTouch: true });
+ }}
+ disabled={datesOnly}
+ />
+ )}
+ />
+ </div>
+ <div className="flex space-x-3">
+ <div className="segment-button w-full">
+ <button
+ className={clsx({
+ "segment-button-active": selectedView.value === "month",
+ })}
+ onClick={() => {
+ setValue("view", "month");
+ }}
+ type="button"
+ >
+ <Calendar className="h-5 w-5 mr-2" /> Month view
+ </button>
+ <button
+ className={clsx({
+ "segment-button-active": selectedView.value === "week",
+ })}
+ type="button"
+ onClick={() => {
+ setValue("view", "week");
+ }}
+ >
+ <Table className="h-5 w-5 mr-2" /> Week view
+ </button>
+ </div>
+ </div>
+ </div>
+ <div className="w-full relative">
+ <React.Suspense
+ fallback={
+ <FullPageLoader className="h-[400px]">Loading…</FullPageLoader>
+ }
+ >
+ <selectedView.Component
+ title={title}
+ options={watchOptions}
+ date={navigationDate}
+ onNavigate={(date) => {
+ setValue("navigationDate", date.toISOString());
+ }}
+ onChange={(options) => {
+ setValue("options", options);
+ if (
+ options.length === 0 ||
+ options.every((option) => option.type === "date")
+ ) {
+ // unset the timeZone if we only have date option
+ setValue("timeZone", "");
+ }
+ if (
+ options.length > 0 &&
+ !formState.touchedFields.timeZone &&
+ options.every((option) => option.type === "timeSlot")
+ ) {
+ // set timeZone if we are adding time ranges and we haven't touched the timeZone field
+ setValue("timeZone", getBrowserTimeZone());
+ }
+ }}
+ duration={watchDuration}
+ onChangeDuration={(duration) => {
+ setValue("duration", duration);
+ }}
+ />
+ </React.Suspense>
+ </div>
+ </form>
+ );
+};
+
+export default React.memo(PollOptionsForm);
diff --git a/components/forms/poll-options-form/types.ts b/components/forms/poll-options-form/types.ts
new file mode 100644
index 000000000..efcaf6804
--- /dev/null
+++ b/components/forms/poll-options-form/types.ts
@@ -0,0 +1,23 @@
+export type DateOption = {
+ type: "date";
+ date: string;
+};
+
+export type TimeOption = {
+ type: "timeSlot";
+ start: string;
+ end: string;
+};
+
+export type DateTimeOption = DateOption | TimeOption;
+
+export interface DateTimePickerProps {
+ title?: string;
+ options: DateTimeOption[];
+ date: Date;
+ onNavigate: (date: Date) => void;
+ onChange: (options: DateTimeOption[]) => void;
+ duration: number;
+ onChangeDuration: (duration: number) => void;
+ scrollToTime?: Date;
+}
diff --git a/components/forms/poll-options-form/utils.ts b/components/forms/poll-options-form/utils.ts
new file mode 100644
index 000000000..741c4d695
--- /dev/null
+++ b/components/forms/poll-options-form/utils.ts
@@ -0,0 +1,9 @@
+import { format } from "date-fns";
+
+export const formatDateWithoutTz = (date: Date): string => {
+ return format(date, "yyyy-MM-dd'T'HH:mm:ss");
+};
+
+export const formatDateWithoutTime = (date: Date): string => {
+ return format(date, "yyyy-MM-dd");
+};
diff --git a/components/forms/poll-options-form/week-calendar.tsx b/components/forms/poll-options-form/week-calendar.tsx
new file mode 100644
index 000000000..8f3608876
--- /dev/null
+++ b/components/forms/poll-options-form/week-calendar.tsx
@@ -0,0 +1,193 @@
+import clsx from "clsx";
+import {
+ addMinutes,
+ differenceInMinutes,
+ format,
+ getDay,
+ parse,
+ startOfWeek,
+} from "date-fns";
+import React from "react";
+import { Calendar, dateFnsLocalizer } from "react-big-calendar";
+import { useMount } from "react-use";
+
+import DateNavigationToolbar from "./date-navigation-toolbar";
+import { DateTimeOption, DateTimePickerProps } from "./types";
+import { formatDateWithoutTime, formatDateWithoutTz } from "./utils";
+
+const localizer = dateFnsLocalizer({
+ format,
+ parse,
+ startOfWeek: (date: Date | number) => startOfWeek(date, { weekStartsOn: 1 }),
+ getDay,
+ locales: {},
+});
+
+const WeekCalendar: React.VoidFunctionComponent<DateTimePickerProps> = ({
+ title,
+ options,
+ onNavigate,
+ date,
+ onChange,
+ duration,
+ onChangeDuration,
+}) => {
+ const [scrollToTime, setScrollToTime] = React.useState<Date>();
+
+ useMount(() => {
+ // Bit of a hack to force rbc to scroll to the right time when we close/open a modal
+ setScrollToTime(addMinutes(date, -60));
+ });
+
+ return (
+ <Calendar
+ events={options.map((option) => {
+ if (option.type === "date") {
+ return { title, start: new Date(option.date) };
+ } else {
+ return {
+ title,
+ start: new Date(option.start),
+ end: new Date(option.end),
+ };
+ }
+ })}
+ onNavigate={onNavigate}
+ date={date}
+ className="h-[calc(100vh-220px)] max-h-[800px] min-h-[400px] w-full"
+ defaultView="week"
+ views={["week"]}
+ selectable={true}
+ localizer={localizer}
+ onSelectEvent={(event) => {
+ onChange(
+ options.filter(
+ (option) =>
+ !(
+ option.type === "timeSlot" &&
+ option.start === formatDateWithoutTz(event.start) &&
+ event.end &&
+ option.end === formatDateWithoutTz(event.end)
+ ),
+ ),
+ );
+ }}
+ components={{
+ toolbar: (props) => {
+ return (
+ <DateNavigationToolbar
+ year={props.date.getFullYear()}
+ label={props.label}
+ onPrevious={() => {
+ props.onNavigate("PREV");
+ }}
+ onToday={() => {
+ props.onNavigate("TODAY");
+ }}
+ onNext={() => {
+ props.onNavigate("NEXT");
+ }}
+ />
+ );
+ },
+ eventWrapper: (props) => {
+ return (
+ <div
+ // onClick prop doesn't work properly. Seems like some other element is cancelling the event before it reaches this element
+ onMouseUp={props.onClick}
+ className="absolute p-1 ml-1 max-h-full hover:bg-opacity-50 transition-colors cursor-pointer overflow-hidden bg-green-100 bg-opacity-80 text-green-500 rounded-md text-xs"
+ style={{
+ top: `calc(${props.style?.top}% + 4px)`,
+ height: `calc(${props.style?.height}% - 8px)`,
+ left: `${props.style?.xOffset}%`,
+ width: `calc(${props.style?.width}%)`,
+ }}
+ >
+ <div>{format(props.event.start, "p")}</div>
+ <div className="font-bold w-full truncate">
+ {props.event.title}
+ </div>
+ </div>
+ );
+ },
+ week: {
+ header: ({ date }: any) => {
+ const dateString = formatDateWithoutTime(date);
+ const selectedOption = options.find((option) => {
+ return option.type === "date" && option.date === dateString;
+ });
+ return (
+ <span
+ onClick={() => {
+ if (!selectedOption) {
+ onChange([
+ ...options,
+ {
+ type: "date",
+ date: formatDateWithoutTime(date),
+ },
+ ]);
+ } else {
+ onChange(
+ options.filter((option) => option !== selectedOption),
+ );
+ }
+ }}
+ className={clsx(
+ "inline-flex w-full justify-center hover:text-gray-700 hover:bg-slate-50 rounded-md items-center text-sm py-2",
+ {
+ "bg-green-50 text-green-600 hover:bg-opacity-75 hover:bg-green-50 hover:text-green-600":
+ !!selectedOption,
+ },
+ )}
+ >
+ <span className="font-normal opacity-50 mr-1">
+ {format(date, "E")}
+ </span>
+ <span className="font-medium">{format(date, "dd")}</span>
+ </span>
+ );
+ },
+ },
+ timeSlotWrapper: ({ children }) => {
+ return <div className="h-12 text-xs text-gray-500">{children}</div>;
+ },
+ }}
+ step={15}
+ onSelectSlot={({ start, end, action }) => {
+ // on select slot
+ const startDate = new Date(start);
+ const endDate = new Date(end);
+
+ const newEvent: DateTimeOption = {
+ type: "timeSlot",
+ start: formatDateWithoutTz(startDate),
+ end: formatDateWithoutTz(endDate),
+ };
+
+ if (action === "select") {
+ const diff = differenceInMinutes(endDate, startDate);
+ if (diff < 60 * 24) {
+ onChangeDuration(diff);
+ }
+ } else {
+ newEvent.end = formatDateWithoutTz(addMinutes(startDate, duration));
+ }
+
+ const alreadyExists = options.some(
+ (option) =>
+ option.type === "timeSlot" &&
+ option.start === newEvent.start &&
+ option.end === newEvent.end,
+ );
+
+ if (!alreadyExists) {
+ onChange([...options, newEvent]);
+ }
+ }}
+ scrollToTime={scrollToTime}
+ />
+ );
+};
+
+export default WeekCalendar;
diff --git a/components/forms/types.ts b/components/forms/types.ts
new file mode 100644
index 000000000..d0e2fb309
--- /dev/null
+++ b/components/forms/types.ts
@@ -0,0 +1,17 @@
+import { PollDetailsData } from "./poll-details-form";
+import { PollOptionsData } from "./poll-options-form/poll-options-form";
+import { UserDetailsData } from "./user-details-form";
+
+export interface NewEventData {
+ currentStep: number;
+ eventDetails?: Partial<PollDetailsData>;
+ options?: Partial<PollOptionsData>;
+ userDetails?: Partial<UserDetailsData>;
+}
+export interface PollFormProps<T extends Record<string, any>> {
+ onSubmit: (data: T) => void;
+ onChange?: (data: Partial<T>) => void;
+ defaultValues?: Partial<T>;
+ name?: string;
+ className?: string;
+}
diff --git a/components/forms/user-details-form.tsx b/components/forms/user-details-form.tsx
new file mode 100644
index 000000000..aec22fb61
--- /dev/null
+++ b/components/forms/user-details-form.tsx
@@ -0,0 +1,71 @@
+import clsx from "clsx";
+import { useTranslation } from "next-i18next";
+import * as React from "react";
+import { useForm } from "react-hook-form";
+
+import { requiredString } from "../../utils/form-validation";
+import { PollFormProps } from "./types";
+
+export interface UserDetailsData {
+ name: string;
+ contact: string;
+}
+
+export const UserDetailsForm: React.VoidFunctionComponent<
+ PollFormProps<UserDetailsData>
+> = ({ name, defaultValues, onSubmit, onChange, className }) => {
+ const { t } = useTranslation("app");
+ const {
+ handleSubmit,
+ register,
+ watch,
+ formState: { errors },
+ } = useForm<UserDetailsData>({ defaultValues });
+
+ React.useEffect(() => {
+ if (onChange) {
+ const subscription = watch(onChange);
+ return () => {
+ subscription.unsubscribe();
+ };
+ }
+ }, [watch, onChange]);
+
+ return (
+ <form
+ id={name}
+ className={className}
+ style={{ width: 400 }}
+ onSubmit={handleSubmit(onSubmit)}
+ >
+ <div className="formField">
+ <label htmlFor="name">{t("name")}</label>
+ <input
+ type="text"
+ id="name"
+ className={clsx("input w-full", {
+ "input-error": errors.name,
+ })}
+ placeholder={t("namePlaceholder")}
+ {...register("name", { validate: requiredString })}
+ />
+ </div>
+
+ <div className="formField">
+ <label htmlFor="contact">{t("email")}</label>
+ <input
+ id="contact"
+ className={clsx("input w-full", {
+ "input-error": errors.contact,
+ })}
+ placeholder={t("emailPlaceholder")}
+ {...register("contact", {
+ validate: (value) => {
+ return /^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(value);
+ },
+ })}
+ />
+ </div>
+ </form>
+ );
+};
diff --git a/components/full-page-loader.tsx b/components/full-page-loader.tsx
new file mode 100644
index 000000000..38b8eb993
--- /dev/null
+++ b/components/full-page-loader.tsx
@@ -0,0 +1,27 @@
+import clsx from "clsx";
+import * as React from "react";
+
+import Spinner from "./icons/spinner.svg";
+
+interface FullPageLoaderProps {
+ className?: string;
+ children?: React.ReactNode;
+}
+
+const FullPageLoader: React.VoidFunctionComponent<FullPageLoaderProps> = ({
+ children,
+ className,
+}) => {
+ return (
+ <div
+ className={clsx(" h-full flex items-center justify-center", className)}
+ >
+ <div className="bg-indigo-500 text-white text-sm px-4 py-3 shadow-sm rounded-lg flex items-center">
+ <Spinner className="h-5 mr-3 animate-spin" />
+ {children}
+ </div>
+ </div>
+ );
+};
+
+export default FullPageLoader;
diff --git a/components/header.tsx b/components/header.tsx
new file mode 100644
index 000000000..709e6ca43
--- /dev/null
+++ b/components/header.tsx
@@ -0,0 +1,19 @@
+import { useTranslation } from "next-i18next";
+import React from "react";
+
+const Header: React.FunctionComponent<{ className?: string }> = (props) => {
+ const { t } = useTranslation();
+ return (
+ <div
+ className="h-10 shrink-0 border-gray-200 px-6 flex items-center"
+ {...props}
+ >
+ <div className="text-base font-bold text-gray-400 uppercase">
+ {t("appName")}
+ </div>
+ <div className="ml-2 text-xs text-gray-400">v2-alpha</div>
+ </div>
+ );
+};
+
+export default Header;
diff --git a/components/headless-date-picker.tsx b/components/headless-date-picker.tsx
new file mode 100644
index 000000000..abb0238a6
--- /dev/null
+++ b/components/headless-date-picker.tsx
@@ -0,0 +1,119 @@
+import {
+ addDays,
+ addMonths,
+ format,
+ getMonth,
+ isSameDay,
+ isWeekend,
+ startOfMonth,
+ startOfWeek,
+} from "date-fns";
+import React from "react";
+
+interface DayProps {
+ date: Date;
+ day: string;
+ weekend: boolean;
+ outOfMonth: boolean;
+ today: boolean;
+ selected: boolean;
+}
+
+interface HeadlessDatePickerOptions {
+ onSelectionChange?: (selection: Date[]) => void;
+ date?: Date;
+ selection?: Date[];
+ onNavigationChange?: (date: Date) => void;
+}
+
+const today = new Date();
+
+export const useHeadlessDatePicker = (
+ options?: HeadlessDatePickerOptions,
+): {
+ label: string;
+ next: () => void;
+ prev: () => void;
+ today: () => void;
+ daysOfWeek: string[];
+ days: DayProps[];
+ navigationDate: Date;
+ selection: Date[];
+ toggle: (date: Date) => void;
+} => {
+ const [localSelection, setSelection] = React.useState<Date[]>([]);
+ const selection = options?.selection ?? localSelection;
+ const [localNavigationDate, setNavigationDate] = React.useState(today);
+ const navigationDate = options?.date ?? localNavigationDate;
+
+ const firstDayOfMonth = startOfMonth(navigationDate);
+ const firstDayOfFirstWeek = startOfWeek(firstDayOfMonth, { weekStartsOn: 1 });
+
+ const currentMonth = getMonth(navigationDate);
+
+ const days: DayProps[] = [];
+
+ const daysOfWeek: string[] = [];
+
+ for (let i = 0; i < 7; i++) {
+ daysOfWeek.push(format(addDays(firstDayOfFirstWeek, i), "EE"));
+ }
+
+ let reachedEnd = false;
+ let i = 0;
+ do {
+ const d = addDays(firstDayOfFirstWeek, i);
+ days.push({
+ date: d,
+ day: format(d, "d"),
+ weekend: isWeekend(d),
+ outOfMonth: getMonth(d) !== currentMonth,
+ today: isSameDay(d, today),
+ selected: selection.some((selectedDate) => isSameDay(selectedDate, d)),
+ });
+ i++;
+ reachedEnd =
+ i > 34 && i % 7 === 0 && addDays(d, 1).getMonth() !== currentMonth;
+ } while (reachedEnd === false);
+
+ return {
+ navigationDate,
+ label: format(navigationDate, "MMMM yyyy"),
+ next: () => {
+ const newDate = startOfMonth(addMonths(navigationDate, 1));
+ if (!options?.date) {
+ setNavigationDate(newDate);
+ }
+ options?.onNavigationChange?.(newDate);
+ },
+ prev: () => {
+ const newDate = startOfMonth(addMonths(navigationDate, -1));
+ if (!options?.date) {
+ setNavigationDate(newDate);
+ }
+ options?.onNavigationChange?.(newDate);
+ },
+ today: () => {
+ const newDate = today;
+ if (!options?.date) {
+ setNavigationDate(newDate);
+ }
+ options?.onNavigationChange?.(newDate);
+ },
+ days,
+ daysOfWeek,
+ selection: options?.selection ?? selection,
+ toggle: (date) => {
+ if (options?.selection) {
+ // ignore, selection is controlled externally
+ return;
+ }
+ const index = selection.indexOf(date);
+ if (index === -1) {
+ setSelection((s) => [...s, date]);
+ } else {
+ setSelection((s) => s.splice(index, 1));
+ }
+ },
+ };
+};
diff --git a/components/home/ban-ads.svg b/components/home/ban-ads.svg
new file mode 100644
index 000000000..d9bc72a33
--- /dev/null
+++ b/components/home/ban-ads.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
+ <path fill-rule="evenodd" d="M10 0a10 10 0 110 20 10 10 0 010-20zm4.905 3.68A8 8 0 003.68 14.906l3.296-3.296-.007-.022H5.531l-.253.835H4L5.44 8.06h1.62l.86 2.606.64-.64V8.06h1.662c.1 0 .197.004.291.013l4.393-4.393zm-4.908 7.738l1.222-1.223v.046c0 .305-.04.542-.121.712a.703.703 0 01-.35.36 1.32 1.32 0 01-.551.105h-.2zM8.99 12.423h1.248c.443 0 .828-.086 1.153-.26.325-.174.577-.424.754-.75.178-.326.266-.717.266-1.171 0-.395-.067-.74-.202-1.038l4.11-4.11A8 8 0 015.095 16.32l3.896-3.897zm5.802-3.332a.46.46 0 01.16.332h1.134a1.34 1.34 0 00-.214-.748 1.367 1.367 0 00-.594-.498A2.177 2.177 0 0014.365 8c-.345 0-.651.058-.918.175-.266.116-.474.279-.625.488a1.2 1.2 0 00-.221.726c-.002.341.108.61.33.808.223.196.528.336.914.42l.435.093c.162.036.29.074.385.115.096.04.164.086.205.137a.27.27 0 01.066.174.307.307 0 01-.068.19.43.43 0 01-.194.13.931.931 0 01-.318.047.985.985 0 01-.39-.07.558.558 0 01-.251-.207.668.668 0 01-.1-.337H12.49c.001.365.08.665.234.9.156.232.375.405.656.517.283.112.614.168.993.168.37 0 .686-.051.949-.155.264-.104.467-.255.609-.454.142-.199.214-.442.215-.729a1.337 1.337 0 00-.08-.46 1.055 1.055 0 00-.242-.38 1.475 1.475 0 00-.421-.295 2.691 2.691 0 00-.62-.203l-.358-.076a1.988 1.988 0 01-.269-.073.836.836 0 01-.185-.09.345.345 0 01-.107-.112.278.278 0 01-.028-.143.289.289 0 01.058-.17.361.361 0 01.17-.118.854.854 0 01.3-.044c.193 0 .335.04.43.119zm-8.526.17l.435 1.44h-.904l.435-1.44h.034z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/home/bonus.tsx b/components/home/bonus.tsx
new file mode 100644
index 000000000..1975dfe7d
--- /dev/null
+++ b/components/home/bonus.tsx
@@ -0,0 +1,59 @@
+import * as React from "react";
+import Ban from "./ban-ads.svg";
+import Code from "@/components/icons/code.svg";
+import Server from "@/components/icons/server.svg";
+import CursorClick from "@/components/icons/cursor-click.svg";
+
+const Bonus: React.VoidFunctionComponent = () => {
+ return (
+ <div className="py-16 max-w-7xl mx-auto px-8">
+ <h2 className="heading">Principles</h2>
+ <p className="subheading">We&apos;re not like the others</p>
+ <div className="grid grid-cols-4 gap-16">
+ <div className="col-span-4 md:col-span-2 lg:col-span-1">
+ <div className="mb-4 text-slate-400">
+ <CursorClick className="w-16" />
+ </div>
+ <h3 className="heading-sm">No login required</h3>
+ <div className="text text-base leading-relaxed">
+ We keep things simple and don&apos;t ask for more than what we need.
+ </div>
+ </div>
+ <div className="col-span-4 md:col-span-2 lg:col-span-1">
+ <div className="mb-4 text-slate-400">
+ <Code className="w-16" />
+ </div>
+ <h3 className="heading-sm">Open-source</h3>
+ <div className="text text-base leading-relaxed">
+ The codebase is fully open-source and{" "}
+ <a href="https://github.com/lukevella/Rallly">
+ available on github
+ </a>
+ .
+ </div>
+ </div>
+ <div className="col-span-4 md:col-span-2 lg:col-span-1">
+ <div className="mb-4 text-slate-400">
+ <Server className="w-16" />
+ </div>
+ <h3 className="heading-sm">Self-hostable</h3>
+ <div className="text text-base leading-relaxed">
+ Run it on your own server to get full control of your data.
+ </div>
+ </div>
+ <div className="col-span-4 md:col-span-2 lg:col-span-1">
+ <div className="mb-4 text-slate-400">
+ <Ban className="w-16" />
+ </div>
+ <h3 className="heading-sm">Ad-free</h3>
+ <div className="text text-base leading-relaxed">
+ You can give your ad-blocker a rest &ndash; You won&apos;t need it
+ here.
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default Bonus;
diff --git a/components/home/features.tsx b/components/home/features.tsx
new file mode 100644
index 000000000..03313f296
--- /dev/null
+++ b/components/home/features.tsx
@@ -0,0 +1,64 @@
+import Bell from "@/components/icons/bell.svg";
+import Chat from "@/components/icons/chat.svg";
+import Clock from "@/components/icons/clock.svg";
+import DeviceMobile from "@/components/icons/device-mobile.svg";
+import * as React from "react";
+
+const Features: React.VoidFunctionComponent = () => {
+ return (
+ <div className="py-16 px-8 max-w-7xl mx-auto">
+ <h2 className="heading">Features</h2>
+ <p className="subheading">Everything you need to get the job done</p>
+ <div className="grid grid-cols-2 gap-12">
+ <div className="col-span-2 md:col-span-1">
+ <div className="p-3 bg-green-100/50 text-green-400 inline-block rounded-2xl mb-4">
+ <Clock className="w-8 h-8" />
+ </div>
+ <h3 className="heading-sm flex items-center">
+ Time slots
+ <span className="ml-2 font-normal text-sm bg-green-500 text-white rounded-full px-2 py-1">
+ New
+ </span>
+ </h3>
+ <p className="text">
+ If you need more granular options, Rallly lets you choose time slots
+ as options. If your participants are international, they can see
+ times in on their own time zone.
+ </p>
+ </div>
+ <div className="col-span-2 md:col-span-1">
+ <div className="p-3 bg-cyan-100/50 text-cyan-400 inline-block rounded-2xl mb-4">
+ <DeviceMobile className="w-8 h-8" />
+ </div>
+ <h3 className="heading-sm">Mobile friendly design</h3>
+ <p className="text">
+ Rallly is optimized to look and work great on mobile devices so you
+ and your participants can use it on the go.
+ </p>
+ </div>
+ <div className="col-span-2 md:col-span-1">
+ <div className="p-3 bg-rose-100/50 text-rose-400 inline-block rounded-2xl mb-4">
+ <Bell className="w-8 h-8" />
+ </div>
+ <h3 className="heading-sm">Notifications</h3>
+ <p className="text">
+ Need help staying on top of things? Rallly can send you an email
+ whenever participants vote or comment on your poll.
+ </p>
+ </div>
+ <div className="col-span-2 md:col-span-1">
+ <div className="p-3 bg-yellow-100/50 text-yellow-400 inline-block rounded-2xl mb-4">
+ <Chat className="w-8 h-8" />
+ </div>
+ <h3 className="heading-sm">Comments</h3>
+ <p className="text">
+ Got a question or just have something to say? You and your
+ participants can comment on polls to start a discussion.
+ </p>
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default Features;
diff --git a/components/home/github.svg b/components/home/github.svg
new file mode 100644
index 000000000..9d6b07e4b
--- /dev/null
+++ b/components/home/github.svg
@@ -0,0 +1,3 @@
+<svg width="24" height="24" fill="currentColor" class="text-purple-600 mr-3 text-opacity-50 transform">
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.477 2 2 6.463 2 11.97c0 4.404 2.865 8.14 6.839 9.458.5.092.682-.216.682-.48 0-.236-.008-.864-.013-1.695-2.782.602-3.369-1.337-3.369-1.337-.454-1.151-1.11-1.458-1.11-1.458-.908-.618.069-.606.069-.606 1.003.07 1.531 1.027 1.531 1.027.892 1.524 2.341 1.084 2.91.828.092-.643.35-1.083.636-1.332-2.22-.251-4.555-1.107-4.555-4.927 0-1.088.39-1.979 1.029-2.675-.103-.252-.446-1.266.098-2.638 0 0 .84-.268 2.75 1.022A9.606 9.606 0 0112 6.82c.85.004 1.705.114 2.504.336 1.909-1.29 2.747-1.022 2.747-1.022.546 1.372.202 2.386.1 2.638.64.696 1.028 1.587 1.028 2.675 0 3.83-2.339 4.673-4.566 4.92.359.307.678.915.678 1.846 0 1.332-.012 2.407-.012 2.734 0 .267.18.577.688.48C19.137 20.107 22 16.373 22 11.969 22 6.463 17.522 2 12 2z"></path>
+</svg>
\ No newline at end of file
diff --git a/components/home/hero.tsx b/components/home/hero.tsx
new file mode 100644
index 000000000..e412914f6
--- /dev/null
+++ b/components/home/hero.tsx
@@ -0,0 +1,80 @@
+import { motion } from "framer-motion";
+import { useTranslation } from "next-i18next";
+import Link from "next/link";
+import * as React from "react";
+import { UserAvatarProvider } from "../poll/user-avatar";
+import PollDemo from "./poll-demo";
+import ScribbleArrow from "./scribble-arrow.svg";
+
+const Hero: React.VoidFunctionComponent = () => {
+ const { t } = useTranslation("homepage");
+ const names = ["Peter", "Christine", "Samantha", "Joseph"];
+
+ return (
+ <div className="lg:flex p-8 items-end max-w-7xl mx-auto">
+ <div className="my-8 text-center lg:text-left">
+ <h1 className="text-5xl font-bold">
+ Schedule
+ <br />
+ <span className="text-indigo-500">group&nbsp;meetings</span>
+ <br />
+ with ease
+ </h1>
+ <div className="text-xl text-gray-400 mb-12">
+ Find the right date without the back and&nbsp;forth.
+ </div>
+ <div className="space-x-3">
+ <Link href="/new">
+ <a className="focus:ring-2 focus:ring-indigo-200 transition-all text-white bg-indigo-500 hover:bg-indigo-500/90 active:bg-indigo-600/90 px-5 py-3 font-semibold hover:text-white hover:no-underline shadow-sm hover:shadow-md rounded-lg">
+ {t("getStarted")}
+ </a>
+ </Link>
+ <Link href="/demo">
+ <a
+ className="text-white focus:ring-2 focus:ring-indigo-200 transition-all bg-slate-500 hover:bg-slate-500/90 active:bg-slate-600/90 px-5 py-3 font-semibold hover:text-white hover:no-underline shadow-sm hover:shadow-md rounded-lg"
+ rel="nofollow"
+ >
+ {t("viewDemo")}
+ </a>
+ </Link>
+ </div>
+ </div>
+ <div className="hidden mt-16 lg:mt-0 lg:ml-24 pointer-events-none select-none h-[380px] md:flex items-end justify-center">
+ <UserAvatarProvider seed="mock" names={names}>
+ <div className="inline-block relative">
+ <motion.div
+ className="absolute z-20 border-4 shadow-md bg-indigo-200/10 rounded-2xl border-indigo-500 h-full"
+ initial={{ opacity: 0, width: 100, scale: 1.2, translateX: 384 }}
+ animate={{ opacity: 1, scale: 1.1 }}
+ transition={{ type: "spring", delay: 1 }}
+ />
+ <motion.div
+ className="absolute bg-indigo-500 text-slate-100 py-1 px-3 rounded-full z-20 text-sm"
+ initial={{
+ opacity: 0,
+ right: 190,
+ top: -65,
+ translateY: 50,
+ }}
+ animate={{ opacity: 1, translateY: 0 }}
+ transition={{ type: "spring", delay: 2 }}
+ >
+ Perfect! 🤩
+ <ScribbleArrow className="absolute text-slate-400 -right-8 top-3" />
+ </motion.div>
+ <motion.div
+ className="shadow-lg rounded-lg"
+ transition={{ type: "spring", delay: 0.5 }}
+ initial={{ opacity: 0, translateY: -100 }}
+ animate={{ opacity: 1, translateY: 0 }}
+ >
+ <PollDemo />
+ </motion.div>
+ </div>
+ </UserAvatarProvider>
+ </div>
+ </div>
+ );
+};
+
+export default Hero;
diff --git a/components/home/home.tsx b/components/home/home.tsx
new file mode 100644
index 000000000..72d72f343
--- /dev/null
+++ b/components/home/home.tsx
@@ -0,0 +1,25 @@
+import Head from "next/head";
+import React from "react";
+import PageLayout from "../page-layout";
+import Bonus from "./bonus";
+import Features from "./features";
+import Hero from "./hero";
+
+const Home: React.VoidFunctionComponent = () => {
+ return (
+ <PageLayout>
+ <Head>
+ <title>Rallly - Schedule group meetings</title>
+ </Head>
+ <Hero />
+ <div className="bg-gradient-to-b from-transparent via-white to-white">
+ <Features />
+ </div>
+ <div className="bg-gradient-to-b from-white via-white to-transparent pb-16">
+ <Bonus />
+ </div>
+ </PageLayout>
+ );
+};
+
+export default Home;
diff --git a/components/home/how-it-works.tsx b/components/home/how-it-works.tsx
new file mode 100644
index 000000000..293259508
--- /dev/null
+++ b/components/home/how-it-works.tsx
@@ -0,0 +1,36 @@
+import * as React from "react";
+
+const HowItWorks: React.VoidFunctionComponent = () => {
+ return (
+ <div className="bg-gradient-to-b from-transparent via-white to-white">
+ <div className="py-16 px-8 mx-auto max-w-7xl">
+ <h2 className="heading text-center">How it works</h2>
+ <p className="subheading text-center">It&#39;s simple!</p>
+ <div className="grid grid-cols-3 gap-16">
+ <div className="col-span-1">
+ <h3 className="text-xl">Create a poll</h3>
+ <p className="text">
+ Choose options you would like your participants to choose from.
+ </p>
+ </div>
+ <div className="col-span-1">
+ <h3 className="text-xl">Share your link</h3>
+ <p className="text">
+ Share your unique link with your participants to give them access
+ to the page.
+ </p>
+ </div>
+ <div className="col-span-1">
+ <h3 className="text-xl">Vote</h3>
+ <p className="text">
+ Participants vote for the dates they prefer. The option with the
+ most votes wins!
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default HowItWorks;
diff --git a/components/home/index.ts b/components/home/index.ts
new file mode 100644
index 000000000..2fdb14756
--- /dev/null
+++ b/components/home/index.ts
@@ -0,0 +1 @@
+export { default } from './home';
diff --git a/components/home/poll-demo.tsx b/components/home/poll-demo.tsx
new file mode 100644
index 000000000..d04f25ab4
--- /dev/null
+++ b/components/home/poll-demo.tsx
@@ -0,0 +1,121 @@
+import { format } from "date-fns";
+import { useTranslation } from "next-i18next";
+import * as React from "react";
+import { useTimeoutFn } from "react-use";
+import DateCard from "../date-card";
+import Score from "../poll/score";
+import UserAvater from "../poll/user-avatar";
+import VoteIcon from "../poll/vote-icon";
+
+const sidebarWidth = 180;
+const participants = [
+ {
+ name: "Reed",
+ color: "bg-sky-400",
+ votes: [0, 2],
+ },
+ {
+ name: "Susan",
+ color: "bg-blue-400",
+ votes: [0, 1, 2],
+ },
+ {
+ name: "Johnny",
+ color: "bg-indigo-400",
+ votes: [2, 3],
+ },
+ {
+ name: "Ben",
+ color: "bg-purple-400",
+ votes: [0, 1, 2, 3],
+ },
+];
+
+const options = ["2022-12-14", "2022-12-15", "2022-12-16", "2022-12-17"];
+
+const PollDemo: React.VoidFunctionComponent = () => {
+ const { t } = useTranslation("app");
+ const [bestOption, setBestOption] = React.useState<number>();
+ useTimeoutFn(() => {
+ setBestOption(2);
+ }, 1500);
+
+ return (
+ <div
+ className="rounded-lg bg-white border shadow-md"
+ style={{ width: 600 }}
+ >
+ <div className="flex border-b shadow-sm">
+ <div
+ className="flex items-center pl-4 pr-2 py-4 shrink-0 font-medium"
+ style={{ width: sidebarWidth }}
+ >
+ <div className="grow h-full flex items-end">
+ {t("participantCount", { count: participants.length })}
+ </div>
+ </div>
+ {options.map((option, i) => {
+ const d = new Date(option);
+ let score = 0;
+ participants.forEach((participant) => {
+ if (participant.votes.includes(i)) {
+ score++;
+ }
+ });
+ return (
+ <div
+ key={i}
+ className="py-4 text-center shrink-0 transition-colors"
+ style={{ width: 100 }}
+ >
+ <DateCard
+ day={format(d, "dd")}
+ dow={format(d, "E")}
+ month={format(d, "MMM")}
+ annotation={
+ <Score count={score} highlight={i === bestOption} />
+ }
+ />
+ </div>
+ );
+ })}
+ </div>
+ {participants.map((participant, i) => (
+ <div className="flex h-14" key={i}>
+ <div
+ className="flex items-center px-4 shrink-0"
+ style={{ width: sidebarWidth }}
+ >
+ <UserAvater
+ className="mr-2"
+ color={participant.color}
+ name={participant.name}
+ />
+ <span className="truncate" title={participant.name}>
+ {participant.name}
+ </span>
+ </div>
+ <div className="flex">
+ {options.map((_, i) => {
+ return (
+ <div
+ key={i}
+ className="justify-center items-center flex shrink-0"
+ style={{ width: 100 }}
+ >
+ {participant.votes.some((vote) => vote === i) ? (
+ <VoteIcon type="yes" />
+ ) : (
+ <VoteIcon type="no" />
+ )}
+ </div>
+ );
+ })}
+ </div>
+ </div>
+ ))}
+ </div>
+ );
+};
+
+export default PollDemo;
diff --git a/components/home/scribble-arrow.svg b/components/home/scribble-arrow.svg
new file mode 100644
index 000000000..6b070457f
--- /dev/null
+++ b/components/home/scribble-arrow.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" viewBox="0 0 30 30">
+ <path fill-rule="evenodd" d="M1.11 2.994h.001l.014-.002a17.546 17.546 0 011.383-.055c.902 0 2.175.06 3.643.3 2.944.48 6.612 1.674 9.67 4.498 1.464 1.35 2.55 3.281 3.339 5.492.787 2.204 1.259 4.626 1.535 6.894.27 2.224.35 4.275.36 5.788l-4.245-4.83a1 1 0 10-1.502 1.32l5.94 6.761a1 1 0 001.412.091l6.76-5.94a1 1 0 10-1.32-1.503l-5.045 4.433v-.262a53.57 53.57 0 00-.375-6.1c-.287-2.357-.783-4.935-1.637-7.325-.85-2.383-2.078-4.64-3.865-6.289-3.44-3.176-7.523-4.483-10.704-5.002A24.842 24.842 0 002.508.938a19.54 19.54 0 00-1.492.056 7.207 7.207 0 00-.089.008l-.025.003H.89v.001L1 2l-.11-.994a1 1 0 00.22 1.988" clip-rule="evenodd"/>
+</svg>
diff --git a/components/home/stats.tsx b/components/home/stats.tsx
new file mode 100644
index 000000000..c6993209c
--- /dev/null
+++ b/components/home/stats.tsx
@@ -0,0 +1,30 @@
+import Link from "next/link";
+import * as React from "react";
+import { useTranslation } from "next-i18next";
+
+const Stats: React.VoidFunctionComponent = () => {
+ const { t } = useTranslation("homepage");
+ return (
+ <div className="py-16">
+ <h2 className="heading text-center">Stats</h2>
+ <p className="subheading text-center">100,000+ polls created</p>
+ <div className="flex space-x-3 justify-center">
+ <Link href="/new">
+ <a className="focus:ring-2 focus:ring-indigo-200 transition-all text-white bg-indigo-500 hover:bg-indigo-500/90 active:bg-indigo-600/90 px-5 py-3 font-semibold hover:text-white hover:no-underline shadow-sm hover:shadow-md rounded-lg">
+ {t("getStarted")}
+ </a>
+ </Link>
+ <Link href="/demo">
+ <a
+ className="text-white focus:ring-2 focus:ring-indigo-200 transition-all bg-slate-500 hover:bg-slate-500/90 active:bg-slate-600/90 px-5 py-3 font-semibold hover:text-white hover:no-underline shadow-sm hover:shadow-md rounded-lg"
+ rel="nofollow"
+ >
+ {t("viewDemo")}
+ </a>
+ </Link>
+ </div>
+ </div>
+ );
+};
+
+export default Stats;
diff --git a/components/icons/annotation.svg b/components/icons/annotation.svg
new file mode 100644
index 000000000..73f9957f2
--- /dev/null
+++ b/components/icons/annotation.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd" d="M18 13V5a2 2 0 00-2-2H4a2 2 0 00-2 2v8a2 2 0 002 2h3l3 3 3-3h3a2 2 0 002-2zM5 7a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1zm1 3a1 1 0 100 2h3a1 1 0 100-2H6z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/arrow-left.svg b/components/icons/arrow-left.svg
new file mode 100644
index 000000000..9b6184e4c
--- /dev/null
+++ b/components/icons/arrow-left.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd" d="M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/arrow-right.svg b/components/icons/arrow-right.svg
new file mode 100644
index 000000000..ae25e9155
--- /dev/null
+++ b/components/icons/arrow-right.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd" d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/ban.svg b/components/icons/ban.svg
new file mode 100644
index 000000000..14e4e3685
--- /dev/null
+++ b/components/icons/ban.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/bell-crossed.svg b/components/icons/bell-crossed.svg
new file mode 100644
index 000000000..830ac9b9c
--- /dev/null
+++ b/components/icons/bell-crossed.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 20 20">
+ <path fill-rule="evenodd" d="M17.613 15.538a1.188 1.188 0 01-1.673.155L2.996 4.933a1.188 1.188 0 111.519-1.827l12.944 10.759c.505.42.574 1.169.154 1.673z" clip-rule="evenodd"/>
+ <path d="M16 11.202V8a6 6 0 00-9.614-4.79L16 11.203zM4.046 7.256A6 6 0 004 8v3.586l-.707.707A1 1 0 004 14h8.16L4.045 7.256zM7.878 17.121A3 3 0 0013 15H7a3 3 0 00.878 2.121z"/>
+</svg>
diff --git a/components/icons/bell.svg b/components/icons/bell.svg
new file mode 100644
index 000000000..558888298
--- /dev/null
+++ b/components/icons/bell.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
+ <path d="M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zm0 16a3 3 0 01-3-3h6a3 3 0 01-3 3z" />
+ <path fill-rule="evenodd" d="M1.845 8.877c-.552.009-1.012-.434-.973-.985.22-3.078 1.666-5.148 2.891-6.215.417-.363 1.03-.198 1.305.281.274.48.11 1.102-.277 1.496-.778.795-1.712 2.244-1.91 4.408-.05.55-.484 1.006-1.036 1.015zM18.069 8.553c.552-.007.999-.462.944-1.012-.308-3.07-1.811-5.098-3.067-6.13-.426-.351-1.035-.168-1.296.319-.26.486-.078 1.103.32 1.487.8.772 1.775 2.194 2.034 4.351.066.548.512.992 1.064.985z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/calendar.svg b/components/icons/calendar.svg
new file mode 100644
index 000000000..389c0a2aa
--- /dev/null
+++ b/components/icons/calendar.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/chat.svg b/components/icons/chat.svg
new file mode 100644
index 000000000..9cf2e50da
--- /dev/null
+++ b/components/icons/chat.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M17 8h2a2 2 0 012 2v6a2 2 0 01-2 2h-2v4l-4-4H9a1.994 1.994 0 01-1.414-.586m0 0L11 14h4a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2v4l.586-.586z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/check-circle.svg b/components/icons/check-circle.svg
new file mode 100644
index 000000000..f2f05ec54
--- /dev/null
+++ b/components/icons/check-circle.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/check.svg b/components/icons/check.svg
new file mode 100644
index 000000000..f78554129
--- /dev/null
+++ b/components/icons/check.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/chevron-down.svg b/components/icons/chevron-down.svg
new file mode 100644
index 000000000..bb20f2fe1
--- /dev/null
+++ b/components/icons/chevron-down.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/chevron-left.svg b/components/icons/chevron-left.svg
new file mode 100644
index 000000000..f19cd9738
--- /dev/null
+++ b/components/icons/chevron-left.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" className="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fillRule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clipRule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/chevron-right.svg b/components/icons/chevron-right.svg
new file mode 100644
index 000000000..4488c4cdb
--- /dev/null
+++ b/components/icons/chevron-right.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/clock.svg b/components/icons/clock.svg
new file mode 100644
index 000000000..23422c6fa
--- /dev/null
+++ b/components/icons/clock.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/code.svg b/components/icons/code.svg
new file mode 100644
index 000000000..da708e11c
--- /dev/null
+++ b/components/icons/code.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/cog.svg b/components/icons/cog.svg
new file mode 100644
index 000000000..1e29d4910
--- /dev/null
+++ b/components/icons/cog.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd" d="M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/cursor-click.svg b/components/icons/cursor-click.svg
new file mode 100644
index 000000000..61d79d050
--- /dev/null
+++ b/components/icons/cursor-click.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/device-mobile.svg b/components/icons/device-mobile.svg
new file mode 100644
index 000000000..4515a7cd2
--- /dev/null
+++ b/components/icons/device-mobile.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/document-search.svg b/components/icons/document-search.svg
new file mode 100644
index 000000000..ec0639748
--- /dev/null
+++ b/components/icons/document-search.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M10 21h7a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v11m0 5l4.879-4.879m0 0a3 3 0 104.243-4.242 3 3 0 00-4.243 4.242z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/dots-horizontal.svg b/components/icons/dots-horizontal.svg
new file mode 100644
index 000000000..b1b830b43
--- /dev/null
+++ b/components/icons/dots-horizontal.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path d="M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/dots-vertical.svg b/components/icons/dots-vertical.svg
new file mode 100644
index 000000000..e33bd23c5
--- /dev/null
+++ b/components/icons/dots-vertical.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" className="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/duplicate.svg b/components/icons/duplicate.svg
new file mode 100644
index 000000000..c4824a859
--- /dev/null
+++ b/components/icons/duplicate.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path d="M7 9a2 2 0 012-2h6a2 2 0 012 2v6a2 2 0 01-2 2H9a2 2 0 01-2-2V9z" />
+ <path d="M5 3a2 2 0 00-2 2v6a2 2 0 002 2V5h8a2 2 0 00-2-2H5z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/emoji-sad.svg b/components/icons/emoji-sad.svg
new file mode 100644
index 000000000..f7ce7133d
--- /dev/null
+++ b/components/icons/emoji-sad.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/exclamation.svg b/components/icons/exclamation.svg
new file mode 100644
index 000000000..f66491537
--- /dev/null
+++ b/components/icons/exclamation.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/graph1.svg b/components/icons/graph1.svg
new file mode 100644
index 000000000..1e74b779d
--- /dev/null
+++ b/components/icons/graph1.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path d="M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/hand.svg b/components/icons/hand.svg
new file mode 100644
index 000000000..651cd6d25
--- /dev/null
+++ b/components/icons/hand.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M7 11.5V14m0-2.5v-6a1.5 1.5 0 113 0m-3 6a1.5 1.5 0 00-3 0v2a7.5 7.5 0 0015 0v-5a1.5 1.5 0 00-3 0m-6-3V11m0-5.5v-1a1.5 1.5 0 013 0v1m0 0V11m0-5.5a1.5 1.5 0 013 0v3m0 0V11" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/home.svg b/components/icons/home.svg
new file mode 100644
index 000000000..047a7021f
--- /dev/null
+++ b/components/icons/home.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/location-marker.svg b/components/icons/location-marker.svg
new file mode 100644
index 000000000..57125c0f7
--- /dev/null
+++ b/components/icons/location-marker.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" className="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fillRule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" clipRule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/lock-closed.svg b/components/icons/lock-closed.svg
new file mode 100644
index 000000000..a7f48383b
--- /dev/null
+++ b/components/icons/lock-closed.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/lock-open.svg b/components/icons/lock-open.svg
new file mode 100644
index 000000000..a724ed408
--- /dev/null
+++ b/components/icons/lock-open.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/magic.svg b/components/icons/magic.svg
new file mode 100644
index 000000000..067603866
--- /dev/null
+++ b/components/icons/magic.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/newspaper.svg b/components/icons/newspaper.svg
new file mode 100644
index 000000000..3fd22f074
--- /dev/null
+++ b/components/icons/newspaper.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/pencil-alt.svg b/components/icons/pencil-alt.svg
new file mode 100644
index 000000000..045f671cf
--- /dev/null
+++ b/components/icons/pencil-alt.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/pencil.svg b/components/icons/pencil.svg
new file mode 100644
index 000000000..fd9016f55
--- /dev/null
+++ b/components/icons/pencil.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path d="M17.414 2.586a2 2 0 00-2.828 0L7 10.172V13h2.828l7.586-7.586a2 2 0 000-2.828z" />
+ <path fill-rule="evenodd" d="M2 6a2 2 0 012-2h4a1 1 0 010 2H4v10h10v-4a1 1 0 112 0v4a2 2 0 01-2 2H4a2 2 0 01-2-2V6z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/plus-circle.svg b/components/icons/plus-circle.svg
new file mode 100644
index 000000000..84166a617
--- /dev/null
+++ b/components/icons/plus-circle.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-11a1 1 0 10-2 0v2H7a1 1 0 100 2h2v2a1 1 0 102 0v-2h2a1 1 0 100-2h-2V7z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/plus-sm.svg b/components/icons/plus-sm.svg
new file mode 100644
index 000000000..9f8b3cf02
--- /dev/null
+++ b/components/icons/plus-sm.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" className="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fillRule="evenodd" d="M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z" clipRule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/save.svg b/components/icons/save.svg
new file mode 100644
index 000000000..1f3091963
--- /dev/null
+++ b/components/icons/save.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/server.svg b/components/icons/server.svg
new file mode 100644
index 000000000..0b8c2c061
--- /dev/null
+++ b/components/icons/server.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/share.svg b/components/icons/share.svg
new file mode 100644
index 000000000..b5820c6a1
--- /dev/null
+++ b/components/icons/share.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path d="M15 8a3 3 0 10-2.977-2.63l-4.94 2.47a3 3 0 100 4.319l4.94 2.47a3 3 0 10.895-1.789l-4.94-2.47a3.027 3.027 0 000-.74l4.94-2.47C13.456 7.68 14.19 8 15 8z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/smile.svg b/components/icons/smile.svg
new file mode 100644
index 000000000..de6d0d3b8
--- /dev/null
+++ b/components/icons/smile.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M14.828 14.828a4 4 0 01-5.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/speakerphone.svg b/components/icons/speakerphone.svg
new file mode 100644
index 000000000..ab2f272b1
--- /dev/null
+++ b/components/icons/speakerphone.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/spinner.svg b/components/icons/spinner.svg
new file mode 100644
index 000000000..1172b8f0e
--- /dev/null
+++ b/components/icons/spinner.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
+ <circle opacity="0.25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
+ <path fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
+</svg>
\ No newline at end of file
diff --git a/components/icons/support.svg b/components/icons/support.svg
new file mode 100644
index 000000000..4b4a05d24
--- /dev/null
+++ b/components/icons/support.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/table.svg b/components/icons/table.svg
new file mode 100644
index 000000000..116881b7c
--- /dev/null
+++ b/components/icons/table.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M3 10h18M3 14h18m-9-4v8m-7 0h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/trash.svg b/components/icons/trash.svg
new file mode 100644
index 000000000..3922fccc8
--- /dev/null
+++ b/components/icons/trash.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/user.svg b/components/icons/user.svg
new file mode 100644
index 000000000..af56aa4c0
--- /dev/null
+++ b/components/icons/user.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/x-circle.svg b/components/icons/x-circle.svg
new file mode 100644
index 000000000..ee4329dd5
--- /dev/null
+++ b/components/icons/x-circle.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" />
+</svg>
\ No newline at end of file
diff --git a/components/icons/x.svg b/components/icons/x.svg
new file mode 100644
index 000000000..b4a9c41ea
--- /dev/null
+++ b/components/icons/x.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" className="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
+ <path fillRule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clipRule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/components/menu-styles.ts b/components/menu-styles.ts
new file mode 100644
index 000000000..40ab50248
--- /dev/null
+++ b/components/menu-styles.ts
@@ -0,0 +1,13 @@
+import clsx from "clsx";
+
+export const styleMenuItem = ({
+ active,
+ selected,
+}: {
+ active: boolean;
+ selected: boolean;
+}) =>
+ clsx("menu-item", {
+ "font-medium": selected,
+ "bg-blue-50": active,
+ });
diff --git a/components/modal/index.ts b/components/modal/index.ts
new file mode 100644
index 000000000..12bed0a56
--- /dev/null
+++ b/components/modal/index.ts
@@ -0,0 +1 @@
+export { useModal } from "./use-modal";
diff --git a/components/modal/modal.tsx b/components/modal/modal.tsx
new file mode 100644
index 000000000..d4e3a48c4
--- /dev/null
+++ b/components/modal/modal.tsx
@@ -0,0 +1,106 @@
+import { Dialog, Transition } from "@headlessui/react";
+import * as React from "react";
+
+import Button, { ButtonProps } from "../button";
+
+export interface ModalProps {
+ description?: React.ReactNode;
+ title?: React.ReactNode;
+ okText?: string;
+ cancelText?: string;
+ okButtonProps?: ButtonProps;
+ onOk?: () => void;
+ onCancel?: () => void;
+ footer?: React.ReactNode;
+ content?: React.ReactNode;
+ overlayClosable?: boolean;
+ visible?: boolean;
+}
+
+const Modal: React.VoidFunctionComponent<ModalProps> = ({
+ description,
+ title,
+ okText,
+ cancelText,
+ okButtonProps,
+ footer,
+ content,
+ overlayClosable,
+ onCancel,
+ onOk,
+ visible,
+}) => {
+ const initialFocusRef = React.useRef<HTMLButtonElement>(null);
+ return (
+ <Transition appear={true} as={React.Fragment} show={visible}>
+ <Dialog
+ open={visible}
+ className="fixed z-40 inset-0 overflow-y-auto"
+ initialFocus={initialFocusRef}
+ onClose={() => {
+ if (overlayClosable) onCancel?.();
+ }}
+ >
+ <div className="flex items-center justify-center min-h-screen">
+ <Transition.Child
+ as={React.Fragment}
+ enter="ease-out duration-200"
+ enterFrom="opacity-0"
+ enterTo="opacity-100"
+ leaveFrom="opacity-100"
+ leaveTo="opacity-0"
+ >
+ <Dialog.Overlay className="fixed inset-0 bg-slate-900 bg-opacity-10" />
+ </Transition.Child>
+ <Transition.Child
+ as={React.Fragment}
+ enter="ease-out duration-100"
+ enterFrom="opacity-0 scale-95"
+ enterTo="opacity-100 scale-100"
+ leave="ease-in duration-100"
+ leaveFrom="opacity-100 scale-100"
+ leaveTo="opacity-0 scale-95"
+ >
+ <div className="inline-block w-fit my-8 mx-4 overflow-hidden text-left align-middle transition-all transform bg-white shadow-xl rounded-xl">
+ {content ?? (
+ <div className="p-4 max-w-lg">
+ {title ? <Dialog.Title>{title}</Dialog.Title> : null}
+ {description ? (
+ <Dialog.Description>{description}</Dialog.Description>
+ ) : null}
+ </div>
+ )}
+ {footer ?? (
+ <div className="px-4 space-x-3 h-14 flex justify-end bg-slate-50 items-center border-t">
+ {cancelText ? (
+ <Button
+ ref={initialFocusRef}
+ onClick={() => {
+ onCancel?.();
+ }}
+ >
+ {cancelText}
+ </Button>
+ ) : null}
+ {okText ? (
+ <Button
+ type="primary"
+ onClick={() => {
+ onOk?.();
+ }}
+ {...okButtonProps}
+ >
+ {okText}
+ </Button>
+ ) : null}
+ </div>
+ )}
+ </div>
+ </Transition.Child>
+ </div>
+ </Dialog>
+ </Transition>
+ );
+};
+
+export default Modal;
diff --git a/components/modal/use-modal.tsx b/components/modal/use-modal.tsx
new file mode 100644
index 000000000..2872e1407
--- /dev/null
+++ b/components/modal/use-modal.tsx
@@ -0,0 +1,27 @@
+import React from "react";
+
+import Modal, { ModalProps } from "./modal";
+
+type OpenModalFn = () => void;
+type CloseModalFn = () => void;
+
+export const useModal = (
+ props?: ModalProps,
+): [React.ReactElement<ModalProps>, OpenModalFn, CloseModalFn] => {
+ const [visible, setVisible] = React.useState(false);
+ const modal = (
+ <Modal
+ {...props}
+ visible={visible}
+ onOk={() => {
+ props?.onOk?.();
+ setVisible(false);
+ }}
+ onCancel={() => {
+ props?.onCancel?.();
+ setVisible(false);
+ }}
+ />
+ );
+ return [modal, () => setVisible(true), () => setVisible(false)];
+};
diff --git a/components/name-input.tsx b/components/name-input.tsx
new file mode 100644
index 000000000..07fa6067d
--- /dev/null
+++ b/components/name-input.tsx
@@ -0,0 +1,36 @@
+import clsx from "clsx";
+import * as React from "react";
+
+import UserAvater from "./poll/user-avatar";
+
+interface NameInputProps
+ extends React.DetailedHTMLProps<
+ React.InputHTMLAttributes<HTMLInputElement>,
+ HTMLInputElement
+ > {
+ value?: string;
+ defaultValue?: string;
+}
+
+const NameInput: React.ForwardRefRenderFunction<
+ HTMLInputElement,
+ NameInputProps
+> = ({ value, defaultValue, className, ...forwardProps }, ref) => {
+ return (
+ <div className="flex items-center relative">
+ <UserAvater
+ name={value ?? defaultValue ?? ""}
+ className="absolute left-2"
+ />
+ <input
+ ref={ref}
+ className={clsx("input pl-[35px]", className)}
+ placeholder="Your name…"
+ value={value}
+ {...forwardProps}
+ />
+ </div>
+ );
+};
+
+export default React.forwardRef(NameInput);
diff --git a/components/page-layout.tsx b/components/page-layout.tsx
new file mode 100644
index 000000000..dfca1286d
--- /dev/null
+++ b/components/page-layout.tsx
@@ -0,0 +1,114 @@
+import Link from "next/link";
+import * as React from "react";
+import Github from "./home/github.svg";
+import Logo from "../public/logo.svg";
+import Footer from "./page-layout/footer";
+import Head from "next/head";
+import { useRouter } from "next/router";
+import clsx from "clsx";
+import DotsVertical from "@/components/icons/dots-vertical.svg";
+import dynamic from "next/dynamic";
+import { createBreakpoint } from "react-use";
+
+const Popover = dynamic(() => import("./popover"), { ssr: false });
+export interface PageLayoutProps {
+ children?: React.ReactNode;
+}
+
+const useBreakpoint = createBreakpoint({ sm: 640, md: 768, lg: 1024 });
+
+const Menu: React.VoidFunctionComponent<{ className: string }> = ({
+ className,
+}) => {
+ const { pathname } = useRouter();
+ return (
+ <nav className={className}>
+ <Link href="/">
+ <a
+ className={clsx(
+ "text-gray-400 hover:text-indigo-500 hover:underline-offset-2 hover:no-underline transition-colors",
+ {
+ "font-bold text-gray-600 pointer-events-none":
+ pathname === "/home",
+ },
+ )}
+ >
+ Home
+ </a>
+ </Link>
+ <Link href="https://blog.rallly.co">
+ <a
+ className={clsx(
+ "text-gray-400 hover:text-indigo-500 hover:underline-offset-2 hover:no-underline transition-colors",
+ )}
+ >
+ Blog
+ </a>
+ </Link>
+ <Link href="/support">
+ <a
+ className={clsx(
+ "text-gray-400 hover:text-indigo-500 hover:underline-offset-2 hover:no-underline transition-colors",
+ {
+ "font-bold text-gray-600 pointer-events-none":
+ pathname === "/support",
+ },
+ )}
+ >
+ Support
+ </a>
+ </Link>
+ <Link href="https://github.com/lukevella/Rallly">
+ <a className="text-gray-400 hover:text-indigo-500 hover:underline-offset-2 hover:no-underline transition-colors">
+ <Github className="w-8" />
+ </a>
+ </Link>
+ </nav>
+ );
+};
+
+const PageLayout: React.VoidFunctionComponent<PageLayoutProps> = ({
+ children,
+}) => {
+ const breakpoint = useBreakpoint();
+ return (
+ <div className="bg-pattern h-full overflow-x-hidden">
+ <Head>
+ <title>Rallly - Support</title>
+ </Head>
+ <div className="">
+ <div className="py-8 flex items-center px-8 max-w-7xl mx-auto">
+ <div className="grow">
+ <div className="inline-block relative">
+ <Link href="/">
+ <a>
+ <Logo className="w-40 text-indigo-500" alt="Rallly" />
+ </a>
+ </Link>
+ <span className="absolute transition-colors text-sm text-slate-400 -bottom-6 right-0">
+ Yes&mdash;with 3 <em>L</em>s
+ </span>
+ </div>
+ </div>
+ <Menu className="hidden md:flex space-x-8 items-center" />
+ {breakpoint === "sm" ? (
+ <Popover
+ placement="left-start"
+ trigger={
+ <button className="text-gray-400 hover:text-indigo-500 hover:underline-offset-2 hover:no-underline transition-colors">
+ <DotsVertical className="w-5" />
+ </button>
+ }
+ >
+ <Menu className="flex flex-col space-y-2" />
+ </Popover>
+ ) : null}
+ </div>
+ </div>
+ <div className="md:min-h-[calc(100vh-460px)]">{children}</div>
+ <Footer />
+ </div>
+ );
+};
+
+export default PageLayout;
diff --git a/components/page-layout/footer.tsx b/components/page-layout/footer.tsx
new file mode 100644
index 000000000..b3a6310c1
--- /dev/null
+++ b/components/page-layout/footer.tsx
@@ -0,0 +1,83 @@
+import Link from "next/link";
+import * as React from "react";
+import GitHubButton from "react-github-btn";
+import { Trans, useTranslation } from "next-i18next";
+import Logo from "../../public/logo.svg";
+
+const Footer: React.VoidFunctionComponent = () => {
+ const { t } = useTranslation("homepage");
+ return (
+ <div className="bg-gradient-to-b from-transparent via-slate-50 to-slate-100">
+ <div className="py-24 px-8 mx-auto max-w-7xl grid grid-cols-12 gap-8">
+ <div className="col-span-12 md:col-span-4">
+ <Logo className="w-32 text-slate-300 mb-8" />
+ </div>
+ <div className="col-span-6 md:col-span-2">
+ <div className="font-medium mb-4">Links</div>
+ <ul className="footer-menu">
+ <li>
+ <a href="https://github.com/lukevella/Rallly/discussions">
+ Forum
+ </a>
+ </li>
+ <li>
+ <Link href="/blog">
+ <a>Blog</a>
+ </Link>
+ </li>
+ <li>
+ <Link href="/support">
+ <a>Support</a>
+ </Link>
+ </li>
+ <li>
+ <Link href="/privacy-policy">
+ <a>Privacy Policy</a>
+ </Link>
+ </li>
+ </ul>
+ </div>
+ <div className="col-span-6 md:col-span-2">
+ <div className="font-medium mb-4">Follow</div>
+ <ul className="footer-menu">
+ <li>
+ <a href="https://github.com/lukevella/Rallly">Github</a>
+ </li>
+ <li>
+ <a href="https://twitter.com/ralllyco">Twitter</a>
+ </li>
+ </ul>
+ </div>
+ <div className="col-span-12 md:col-span-3">
+ <div className="font-medium mb-4">Project</div>
+ <p className="text-sm text-slate-500">
+ <Trans
+ t={t}
+ i18nKey="footerCredit"
+ components={{ a: <a href="https://twitter.com/imlukevella" /> }}
+ />
+ </p>
+ <div className="flex space-x-3">
+ <GitHubButton
+ href="https://github.com/lukevella/Rallly"
+ data-icon="octicon-star"
+ aria-label="Star lukevella/Rallly on GitHub"
+ data-show-count={true}
+ >
+ Star
+ </GitHubButton>
+ <GitHubButton
+ href="https://github.com/sponsors/lukevella"
+ data-icon="octicon-heart"
+ aria-label="Sponsor @lukevella on GitHub"
+ >
+ Sponsor this project
+ </GitHubButton>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default Footer;
diff --git a/components/poll/index.ts b/components/poll/index.ts
new file mode 100644
index 000000000..37db08879
--- /dev/null
+++ b/components/poll/index.ts
@@ -0,0 +1 @@
+export { default } from "./poll";
diff --git a/components/poll/legacy-poll-notice.tsx b/components/poll/legacy-poll-notice.tsx
new file mode 100644
index 000000000..359a29724
--- /dev/null
+++ b/components/poll/legacy-poll-notice.tsx
@@ -0,0 +1,58 @@
+import Speakerphone from "@/components/icons/speakerphone.svg";
+import Cookies from "js-cookie";
+import * as React from "react";
+
+const cookieName = "legacy-poll-notice";
+
+const LegacyPollNotice: React.VoidFunctionComponent<{ show?: boolean }> = ({
+ show,
+}) => {
+ const [visible, setVisible] = React.useState(show);
+
+ if (!visible) {
+ return null;
+ }
+
+ const didSeeLegacyPollNotice = !!Cookies.get(cookieName);
+
+ if (didSeeLegacyPollNotice) {
+ return null;
+ }
+
+ const setCookie = () => {
+ setVisible(false);
+ Cookies.set(cookieName, "1", {
+ expires: 60,
+ });
+ };
+
+ return (
+ <div className="md:flex md:items-center space-y-3 md:space-y-0 text-sm shadow-sm rounded-lg mb-4 border md:space-x-4 p-2 bg-yellow-200 text-yellow-700">
+ <div className="flex space-x-3 md:grow md:items-center">
+ <div className="bg-yellow-400 w-9 h-9 p-2 rounded-lg">
+ <Speakerphone className="w-5" />
+ </div>
+ <div className="grow">
+ Notice anything different? We&apos;ve announced a new version release.
+ </div>
+ </div>
+ <div className="flex space-x-3 ml-12">
+ <a
+ onClick={() => setCookie()}
+ className="btn-default border-0"
+ href="https://blog.rallly.co/posts/new-version-announcment"
+ >
+ Read more
+ </a>
+ <button
+ onClick={() => setCookie()}
+ className="py-2 px-3 transition-colors bg-yellow-300 rounded-lg active:bg-yellow-400"
+ >
+ Hide
+ </button>
+ </div>
+ </div>
+ );
+};
+
+export default LegacyPollNotice;
diff --git a/components/poll/manage-poll.tsx b/components/poll/manage-poll.tsx
new file mode 100644
index 000000000..f67321811
--- /dev/null
+++ b/components/poll/manage-poll.tsx
@@ -0,0 +1,210 @@
+import * as React from "react";
+import Dropdown, { DropdownItem } from "../dropdown";
+import { usePoll } from "../use-poll";
+import Pencil from "@/components/icons/pencil-alt.svg";
+import Table from "@/components/icons/table.svg";
+import Save from "@/components/icons/save.svg";
+import Cog from "@/components/icons/cog.svg";
+import LockOpen from "@/components/icons/lock-open.svg";
+import LockClosed from "@/components/icons/lock-closed.svg";
+import { useTranslation } from "next-i18next";
+import { format } from "date-fns";
+import { decodeDateOption, encodeDateOption } from "utils/date-time-utils";
+import { useModal } from "../modal";
+import { useUpdatePollMutation } from "./mutations";
+import { PollDetailsForm } from "../forms";
+import Button from "@/components/button";
+import { Placement } from "@popperjs/core";
+
+const PollOptionsForm = React.lazy(() => import("../forms/poll-options-form"));
+
+const ManagePoll: React.VoidFunctionComponent<{
+ targetTimeZone: string;
+ placement?: Placement;
+}> = ({ targetTimeZone, placement }) => {
+ const { t } = useTranslation("app");
+ const poll = usePoll();
+
+ const { mutate: updatePollMutation, isLoading: isUpdating } =
+ useUpdatePollMutation();
+ const [
+ changeOptionsModalContextHolder,
+ openChangeOptionsModal,
+ closeChangeOptionsModal,
+ ] = useModal({
+ okText: "Save",
+ okButtonProps: {
+ form: "pollOptions",
+ htmlType: "submit",
+ loading: isUpdating,
+ },
+ cancelText: "Cancel",
+ content: (
+ <React.Suspense fallback={null}>
+ <PollOptionsForm
+ name="pollOptions"
+ title={poll.title}
+ defaultValues={{
+ navigationDate: poll.options[0].value.split("/")[0],
+ options: poll.options.map((option) => {
+ const [start, end] = option.value.split("/");
+ return end
+ ? {
+ type: "timeSlot",
+ start,
+ end,
+ }
+ : {
+ type: "date",
+ date: start,
+ };
+ }),
+ timeZone: poll.timeZone ?? "",
+ }}
+ onSubmit={(data) => {
+ const encodedOptions = data.options.map(encodeDateOption);
+ const optionsToDelete = poll.options
+ .filter((option) => {
+ return !encodedOptions.includes(option.value);
+ })
+ .map((option) => option.id);
+
+ const optionsToAdd = encodedOptions.filter(
+ (encodedOption) =>
+ !poll.options.find((o) => o.value === encodedOption),
+ );
+ updatePollMutation(
+ {
+ timeZone: data.timeZone,
+ optionsToDelete,
+ optionsToAdd,
+ },
+ {
+ onSuccess: () => closeChangeOptionsModal(),
+ },
+ );
+ }}
+ />
+ </React.Suspense>
+ ),
+ });
+
+ const [
+ changePollDetailsModalContextHolder,
+ openChangePollDetailsModa,
+ closePollDetailsModal,
+ ] = useModal({
+ okText: "Save changes",
+ okButtonProps: {
+ form: "updateDetails",
+ loading: isUpdating,
+ htmlType: "submit",
+ },
+ cancelText: "Cancel",
+ content: (
+ <PollDetailsForm
+ name="updateDetails"
+ defaultValues={{
+ title: poll.title,
+ location: poll.location ?? "",
+ description: poll.description ?? "",
+ }}
+ className="p-4"
+ onSubmit={(data) => {
+ //submit
+ updatePollMutation(data, { onSuccess: closePollDetailsModal });
+ }}
+ />
+ ),
+ });
+ return (
+ <>
+ {changeOptionsModalContextHolder}
+ {changePollDetailsModalContextHolder}
+ <Dropdown
+ placement={placement}
+ trigger={<Button icon={<Cog />}>Manage</Button>}
+ >
+ <DropdownItem
+ icon={Pencil}
+ label="Edit details"
+ onClick={openChangePollDetailsModa}
+ />
+ <DropdownItem
+ icon={Table}
+ label="Edit options"
+ onClick={openChangeOptionsModal}
+ />
+ <DropdownItem
+ icon={Save}
+ label="Export to CSV"
+ onClick={() => {
+ const header = [
+ t("participantCount", {
+ count: poll.participants.length,
+ }),
+ ...poll.options.map((option) => {
+ const decodedOption = decodeDateOption(
+ option.value,
+ poll.timeZone,
+ targetTimeZone,
+ );
+ const day = `${decodedOption.dow} ${decodedOption.day} ${decodedOption.month}`;
+ return decodedOption.type === "date"
+ ? day
+ : `${day} ${decodedOption.startTime} - ${decodedOption.endTime}`;
+ }),
+ ].join(",");
+ const rows = poll.participants.map((participant) => {
+ return [
+ participant.name,
+ ...poll.options.map((option) => {
+ if (
+ participant.votes.some((vote) => {
+ return vote.optionId === option.id;
+ })
+ ) {
+ return "Yes";
+ }
+ return "No";
+ }),
+ ].join(",");
+ });
+ const csv = `data:text/csv;charset=utf-8,${[header, ...rows].join(
+ "\r\n",
+ )}`;
+
+ const encodedCsv = encodeURI(csv);
+ var link = document.createElement("a");
+ link.setAttribute("href", encodedCsv);
+ link.setAttribute(
+ "download",
+ `${poll.title.replace(/\s/g, "_")}-${format(
+ Date.now(),
+ "yyyyMMddhhmm",
+ )}`,
+ );
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ }}
+ />
+ {poll.closed ? (
+ <DropdownItem
+ icon={LockOpen}
+ label="Unlock poll"
+ onClick={() => updatePollMutation({ closed: false })}
+ />
+ ) : (
+ <DropdownItem
+ icon={LockClosed}
+ label="Lock poll"
+ onClick={() => updatePollMutation({ closed: true })}
+ />
+ )}
+ </Dropdown>
+ </>
+ );
+};
+
+export default ManagePoll;
diff --git a/components/poll/mobile-poll/index.ts b/components/poll/mobile-poll/index.ts
new file mode 100644
index 000000000..c393edb7a
--- /dev/null
+++ b/components/poll/mobile-poll/index.ts
@@ -0,0 +1 @@
+export { default } from "./mobile-poll";
diff --git a/components/poll/mobile-poll/mobile-poll.tsx b/components/poll/mobile-poll/mobile-poll.tsx
new file mode 100644
index 000000000..5d3a9ed5f
--- /dev/null
+++ b/components/poll/mobile-poll/mobile-poll.tsx
@@ -0,0 +1,334 @@
+import { usePoll } from "@/components/use-poll";
+import { Listbox } from "@headlessui/react";
+import { Participant, Vote } from "@prisma/client";
+import clsx from "clsx";
+import { useTranslation } from "next-i18next";
+import * as React from "react";
+import { Controller, useForm } from "react-hook-form";
+import { decodeDateOption } from "../../../utils/date-time-utils";
+import { requiredString } from "../../../utils/form-validation";
+import Button from "../../button";
+import DateCard from "../../date-card";
+import ChevronDown from "../../icons/chevron-down.svg";
+import Pencil from "../../icons/pencil.svg";
+import PlusCircle from "../../icons/plus-circle.svg";
+import Save from "../../icons/save.svg";
+import Trash from "../../icons/trash.svg";
+import { styleMenuItem } from "../../menu-styles";
+import NameInput from "../../name-input";
+import TimeZonePicker from "../../time-zone-picker";
+import { TransitionPopInOut } from "../../transitions";
+import { useUserName } from "../../user-name-context";
+import {
+ useAddParticipantMutation,
+ useUpdateParticipantMutation,
+} from "../mutations";
+import TimeRange from "../time-range";
+import { ParticipantForm, PollProps } from "../types";
+import { useDeleteParticipantModal } from "../use-delete-participant-modal";
+import UserAvater from "../user-avatar";
+import VoteIcon from "../vote-icon";
+
+const MobilePoll: React.VoidFunctionComponent<PollProps> = ({
+ pollId,
+ timeZone,
+ options,
+ participants,
+ highScore,
+ targetTimeZone,
+ onChangeTargetTimeZone,
+ role,
+}) => {
+ const [, setUserName] = useUserName();
+
+ const participantById = participants.reduce<
+ Record<string, Participant & { votes: Vote[] }>
+ >((acc, curr) => {
+ acc[curr.id] = { ...curr };
+ return acc;
+ }, {});
+
+ const { register, setValue, reset, handleSubmit, control, formState } =
+ useForm<ParticipantForm>({
+ defaultValues: {
+ name: "",
+ votes: [],
+ },
+ });
+ const [selectedParticipantId, setSelectedParticipantId] =
+ React.useState<string>();
+
+ const selectedParticipant = selectedParticipantId
+ ? participantById[selectedParticipantId]
+ : undefined;
+
+ const selectedParticipantVotedOption = selectedParticipant
+ ? selectedParticipant.votes.map((vote) => vote.optionId)
+ : undefined;
+
+ const [mode, setMode] = React.useState<"edit" | "default">(() =>
+ participants.length > 0 ? "default" : "edit",
+ );
+
+ const { t } = useTranslation("app");
+
+ const { mutate: updateParticipantMutation } =
+ useUpdateParticipantMutation(pollId);
+
+ const { mutate: addParticipantMutation } = useAddParticipantMutation(pollId);
+ const [deleteParticipantModal, confirmDeleteParticipant] =
+ useDeleteParticipantModal(pollId, selectedParticipantId ?? ""); // TODO (Luke Vella) [2022-03-14]: Figure out a better way to deal with these modals
+
+ // This hack is necessary because when there is only one checkbox,
+ // react-hook-form does not know to format the value into an array.
+ // See: https://github.com/react-hook-form/react-hook-form/issues/7834
+ const checkboxGroupHack = (
+ <input type="checkbox" className="hidden" {...register("votes")} />
+ );
+
+ const poll = usePoll();
+
+ return (
+ <form
+ className="border-t border-b shadow-sm bg-white"
+ onSubmit={handleSubmit((data) => {
+ return new Promise<ParticipantForm>((resolve, reject) => {
+ if (selectedParticipant) {
+ updateParticipantMutation(
+ {
+ participantId: selectedParticipant.id,
+ pollId,
+ ...data,
+ },
+ {
+ onSuccess: () => {
+ setMode("default");
+ resolve(data);
+ },
+ onError: reject,
+ },
+ );
+ } else {
+ addParticipantMutation(data, {
+ onSuccess: (newParticipant) => {
+ setMode("default");
+ setSelectedParticipantId(newParticipant.id);
+ resolve(data);
+ },
+ onError: reject,
+ });
+ }
+ });
+ })}
+ >
+ {checkboxGroupHack}
+ <div className="sticky top-0 px-4 py-2 space-y-2 flex flex-col border-b z-30 bg-gray-50">
+ {mode === "default" ? (
+ <div className="flex space-x-3">
+ <Listbox
+ value={selectedParticipantId}
+ onChange={setSelectedParticipantId}
+ >
+ <div className="menu grow">
+ <Listbox.Button className="btn-default w-full text-left">
+ <div className="grow">
+ {selectedParticipant ? (
+ <div className="flex space-x-2 items-center">
+ <UserAvater name={selectedParticipant.name} />
+ <span>{selectedParticipant.name}</span>
+ </div>
+ ) : (
+ t("participantCount", { count: participants.length })
+ )}
+ </div>
+ <ChevronDown className="h-5" />
+ </Listbox.Button>
+ <TransitionPopInOut>
+ <Listbox.Options className="menu-items w-full">
+ <Listbox.Option value={undefined} className={styleMenuItem}>
+ Show all
+ </Listbox.Option>
+ {participants.map((participant) => (
+ <Listbox.Option
+ key={participant.id}
+ value={participant.id}
+ className={styleMenuItem}
+ >
+ <div className="flex space-x-2 items-center">
+ <UserAvater name={participant.name} />
+ <span>{participant.name}</span>
+ </div>
+ </Listbox.Option>
+ ))}
+ </Listbox.Options>
+ </TransitionPopInOut>
+ </div>
+ </Listbox>
+ {!poll.closed ? (
+ selectedParticipant ? (
+ <div className="flex space-x-3">
+ <Button
+ icon={<Pencil />}
+ onClick={() => {
+ setMode("edit");
+ setValue("name", selectedParticipant.name);
+ setValue(
+ "votes",
+ selectedParticipant.votes.map((vote) => vote.optionId),
+ );
+ }}
+ >
+ Edit
+ </Button>
+ {role === "admin" ? (
+ <Button
+ icon={<Trash />}
+ type="danger"
+ onClick={confirmDeleteParticipant}
+ />
+ ) : null}
+ {deleteParticipantModal}
+ </div>
+ ) : (
+ <Button
+ type="primary"
+ icon={<PlusCircle />}
+ onClick={() => {
+ reset();
+ setUserName("");
+ setMode("edit");
+ }}
+ >
+ New
+ </Button>
+ )
+ ) : null}
+ </div>
+ ) : null}
+ {mode === "edit" ? (
+ <Controller
+ name="name"
+ control={control}
+ rules={{ validate: requiredString }}
+ render={({ field }) => (
+ <NameInput
+ disabled={formState.isSubmitting}
+ autoFocus={!selectedParticipant}
+ className="w-full"
+ {...field}
+ />
+ )}
+ />
+ ) : null}
+ {timeZone ? (
+ <TimeZonePicker
+ value={targetTimeZone}
+ onChange={onChangeTargetTimeZone}
+ />
+ ) : null}
+ </div>
+ <div className="divide-y">
+ {options.map((option) => {
+ const parsedOption = decodeDateOption(
+ option.value,
+ timeZone,
+ targetTimeZone,
+ );
+ const numVotes = option.votes.length;
+ return (
+ <div
+ key={option.id}
+ className="px-4 py-2 flex items-center space-x-4"
+ >
+ <div>
+ <DateCard
+ day={parsedOption.day}
+ dow={parsedOption.dow}
+ month={parsedOption.month}
+ />
+ </div>
+ {parsedOption.type === "timeSlot" ? (
+ <TimeRange
+ startTime={parsedOption.startTime}
+ endTime={parsedOption.endTime}
+ className="shrink-0"
+ />
+ ) : null}
+
+ <div className="grow space-y-1 items-center">
+ <div>
+ <span
+ className={clsx(
+ "inline-block px-2 leading-relaxed border rounded-full text-xs",
+ {
+ "border-slate-200": numVotes !== highScore,
+ "border-rose-500 text-rose-500": numVotes === highScore,
+ },
+ )}
+ >
+ {t("voteCount", { count: numVotes })}
+ </span>
+ </div>
+ {option.votes.length ? (
+ <div className="-space-x-1">
+ {option.votes
+ .slice(0, option.votes.length <= 6 ? 6 : 5)
+ .map((vote) => {
+ const participant = participantById[vote.participantId];
+ return (
+ <UserAvater
+ key={vote.id}
+ className="ring-1 ring-white"
+ name={participant.name}
+ />
+ );
+ })}
+ {option.votes.length > 6 ? (
+ <span className="inline-flex ring-1 ring-white items-center justify-center rounded-full font-medium bg-slate-100 text-xs px-1 h-5">
+ +{option.votes.length - 5}
+ </span>
+ ) : null}
+ </div>
+ ) : null}
+ </div>
+ <div className="w-12 items-center justify-center h-14 flex">
+ {mode === "edit" ? (
+ <input
+ type="checkbox"
+ className="checkbox"
+ value={option.id}
+ {...register("votes")}
+ />
+ ) : selectedParticipantVotedOption ? (
+ selectedParticipantVotedOption.includes(option.id) ? (
+ <VoteIcon type="yes" />
+ ) : (
+ <VoteIcon type="no" />
+ )
+ ) : null}
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ {mode === "edit" ? (
+ <div className="p-2 border-t flex space-x-3">
+ <Button className="grow" onClick={() => setMode("default")}>
+ Cancel
+ </Button>
+ <Button
+ icon={<Save />}
+ htmlType="submit"
+ className="grow"
+ type="primary"
+ loading={formState.isSubmitting}
+ >
+ Save
+ </Button>
+ </div>
+ ) : null}
+ </form>
+ );
+};
+
+export default MobilePoll;
diff --git a/components/poll/mutations.ts b/components/poll/mutations.ts
new file mode 100644
index 000000000..910d8f74b
--- /dev/null
+++ b/components/poll/mutations.ts
@@ -0,0 +1,115 @@
+import { updatePoll, UpdatePollPayload } from "api-client/update-poll";
+import { usePlausible } from "next-plausible";
+import { useMutation, useQuery, useQueryClient } from "react-query";
+import { addParticipant } from "../../api-client/add-participant";
+import {
+ deleteParticipant,
+ DeleteParticipantPayload,
+} from "../../api-client/delete-participant";
+import { GetPollResponse } from "../../api-client/get-poll";
+import {
+ updateParticipant,
+ UpdateParticipantPayload,
+} from "../../api-client/update-participant";
+import { usePoll } from "../use-poll";
+import { useUserName } from "../user-name-context";
+import { ParticipantForm } from "./types";
+
+export const useAddParticipantMutation = (pollId: string) => {
+ const queryClient = useQueryClient();
+ const [, setUserName] = useUserName();
+ const plausible = usePlausible();
+ return useMutation(
+ (payload: ParticipantForm) =>
+ addParticipant({
+ pollId,
+ name: payload.name.trim(),
+ votes: payload.votes,
+ }),
+ {
+ onSuccess: (participant, { name }) => {
+ plausible("Add participant");
+ setUserName(name);
+ queryClient.setQueryData<GetPollResponse>(
+ ["getPoll", pollId],
+ (poll) => {
+ if (!poll) {
+ throw new Error(
+ "Tried to update poll but no result found in query cache",
+ );
+ }
+ poll.participants = [participant, ...poll.participants];
+ participant.votes.forEach((vote) => {
+ const votedOption = poll.options.find(
+ (option) => option.id === vote.optionId,
+ );
+ votedOption?.votes.push(vote);
+ });
+ poll.options.forEach((option) => {
+ participant.votes.some(({ optionId }) => optionId === option.id);
+ });
+ return poll;
+ },
+ );
+ },
+ },
+ );
+};
+
+export const useUpdateParticipantMutation = (pollId: string) => {
+ const queryClient = useQueryClient();
+ const [, setUserName] = useUserName();
+ const plausible = usePlausible();
+ return useMutation(
+ (payload: UpdateParticipantPayload) =>
+ updateParticipant({
+ pollId,
+ participantId: payload.participantId,
+ name: payload.name.trim(),
+ votes: payload.votes,
+ }),
+ {
+ onMutate: ({ name }) => {
+ setUserName(name);
+ },
+ onSuccess: () => {
+ plausible("Update participant");
+ },
+ onSettled: () => {
+ queryClient.invalidateQueries(["getPoll", pollId]);
+ },
+ },
+ );
+};
+
+export const useDeleteParticipantMutation = (pollId: string) => {
+ const queryClient = useQueryClient();
+ const plausible = usePlausible();
+ return useMutation(
+ (payload: DeleteParticipantPayload) => deleteParticipant(payload),
+ {
+ onSuccess: () => {
+ plausible("Remove participant");
+ },
+ onSettled: () => {
+ queryClient.invalidateQueries(["getPoll", pollId]);
+ },
+ },
+ );
+};
+
+export const useUpdatePollMutation = () => {
+ const poll = usePoll();
+ const plausible = usePlausible();
+ const queryClient = useQueryClient();
+
+ return useMutation(
+ (payload: UpdatePollPayload) => updatePoll(poll.urlId, payload),
+ {
+ onSuccess: (data) => {
+ queryClient.setQueryData(["getPoll", poll.urlId], data);
+ plausible("Updated poll");
+ },
+ },
+ );
+};
diff --git a/components/poll/notifications-toggle.tsx b/components/poll/notifications-toggle.tsx
new file mode 100644
index 000000000..08ca05de4
--- /dev/null
+++ b/components/poll/notifications-toggle.tsx
@@ -0,0 +1,82 @@
+import * as React from "react";
+import Tooltip from "../tooltip";
+import { usePoll } from "../use-poll";
+import { Trans, useTranslation } from "next-i18next";
+import Button from "@/components/button";
+import Bell from "@/components/icons/bell.svg";
+import BellCrossed from "@/components/icons/bell-crossed.svg";
+import { useUpdatePollMutation } from "./mutations";
+import { usePlausible } from "next-plausible";
+
+export interface NotificationsToggleProps {}
+
+const NotificationsToggle: React.VoidFunctionComponent<NotificationsToggleProps> =
+ () => {
+ const poll = usePoll();
+ const { t } = useTranslation("app");
+ const [isUpdatingNotifications, setIsUpdatingNotifications] =
+ React.useState(false);
+
+ const { mutate: updatePollMutation } = useUpdatePollMutation();
+
+ const plausible = usePlausible();
+ return (
+ <Tooltip
+ content={
+ poll.verified ? (
+ poll.notifications ? (
+ <div>
+ <div className="font-medium text-indigo-300">
+ Notifications are on
+ </div>
+ <div className="max-w-sm">
+ <Trans
+ t={t}
+ i18nKey="notificationsOnDescription"
+ values={{
+ email: poll.user.email,
+ }}
+ components={{
+ b: <span className="email" />,
+ }}
+ />
+ </div>
+ </div>
+ ) : (
+ "Notifications are off"
+ )
+ ) : (
+ "You need to verify your email to turn on notifications"
+ )
+ }
+ >
+ <Button
+ loading={isUpdatingNotifications}
+ icon={
+ poll.verified && poll.notifications ? <Bell /> : <BellCrossed />
+ }
+ disabled={!poll.verified}
+ onClick={() => {
+ setIsUpdatingNotifications(true);
+ updatePollMutation(
+ {
+ notifications: !poll.notifications,
+ },
+ {
+ onSuccess: ({ notifications }) => {
+ plausible(
+ notifications
+ ? "Turned notifications on"
+ : "Turned notifications off",
+ );
+ setIsUpdatingNotifications(false);
+ },
+ },
+ );
+ }}
+ />
+ </Tooltip>
+ );
+ };
+
+export default NotificationsToggle;
diff --git a/components/poll/participant-row-form.tsx b/components/poll/participant-row-form.tsx
new file mode 100644
index 000000000..6c66bbf11
--- /dev/null
+++ b/components/poll/participant-row-form.tsx
@@ -0,0 +1,178 @@
+import { Option } from "@prisma/client";
+import clsx from "clsx";
+import * as React from "react";
+import { Controller, useForm } from "react-hook-form";
+
+import { requiredString } from "../../utils/form-validation";
+import Button from "../button";
+import CheckCircle from "../icons/check-circle.svg";
+import NameInput from "../name-input";
+import { ControlledScrollDiv } from "./poll";
+import { usePollContext } from "./poll-context";
+import { ParticipantForm } from "./types";
+
+export interface ParticipantRowFormProps {
+ defaultValues?: Partial<ParticipantForm>;
+ onSubmit: (data: ParticipantForm) => Promise<void>;
+ className?: string;
+ options: Option[];
+ onCancel?: () => void;
+}
+
+const ParticipantRowForm: React.VoidFunctionComponent<ParticipantRowFormProps> =
+ ({ defaultValues, onSubmit, className, options, onCancel }) => {
+ const {
+ setActiveOptionId,
+ activeOptionId,
+ columnWidth,
+ scrollPosition,
+ sidebarWidth,
+ numberOfColumns,
+ goToNextPage,
+ setScrollPosition,
+ } = usePollContext();
+
+ const {
+ handleSubmit,
+ register,
+ control,
+ formState: { errors, submitCount, isSubmitting },
+ reset,
+ } = useForm<ParticipantForm>({
+ defaultValues: { name: "", votes: [], ...defaultValues },
+ });
+
+ const isColumnVisible = (index: number) => {
+ return (
+ scrollPosition + numberOfColumns * columnWidth > columnWidth * index
+ );
+ };
+
+ const checkboxRefs = React.useRef<HTMLInputElement[]>([]);
+ const isAnimatingRef = React.useRef(false);
+ // This hack is necessary because when there is only one checkbox,
+ // react-hook-form does not know to format the value into an array.
+ // See: https://github.com/react-hook-form/react-hook-form/issues/7834
+
+ const checkboxProps = register("votes", {
+ onBlur: () => setActiveOptionId(null),
+ });
+
+ const checkboxGroupHack = (
+ <input type="checkbox" className="hidden" {...checkboxProps} />
+ );
+
+ return (
+ <form
+ onSubmit={handleSubmit(async ({ name, votes }) => {
+ await onSubmit({
+ name,
+ // if there is only one checkbox then we get a string rather than array
+ // See this issue with using dot notation: https://github.com/react-hook-form/react-hook-form/issues/7834
+ votes: Array.isArray(votes) ? votes : [votes],
+ });
+ reset();
+ })}
+ className={clsx("flex shrink-0 h-14", className)}
+ >
+ {checkboxGroupHack}
+ <div className="flex items-center px-4" style={{ width: sidebarWidth }}>
+ <Controller
+ name="name"
+ rules={{
+ validate: requiredString,
+ }}
+ render={({ field }) => (
+ <div className="-ml-2">
+ <NameInput
+ autoFocus={true}
+ className={clsx("w-full", {
+ "animate-wiggle input-error":
+ errors.name && submitCount > 0,
+ })}
+ placeholder="Your name"
+ {...field}
+ onKeyDown={(e) => {
+ if (e.code === "Tab" && scrollPosition > 0) {
+ e.preventDefault();
+ setScrollPosition(0);
+ setTimeout(() => {
+ checkboxRefs.current[0].focus();
+ }, 800);
+ }
+ }}
+ />
+ </div>
+ )}
+ control={control}
+ />
+ </div>
+ <ControlledScrollDiv>
+ {options.map((option, index) => {
+ return (
+ <div
+ key={option.id}
+ className={clsx(
+ "flex justify-center items-center shrink-0 transition-colors",
+ {
+ "bg-slate-50": activeOptionId === option.id,
+ },
+ )}
+ style={{ width: columnWidth }}
+ onMouseOver={() => setActiveOptionId(option.id)}
+ onMouseOut={() => setActiveOptionId(null)}
+ >
+ <input
+ className="checkbox"
+ type="checkbox"
+ value={option.id}
+ onKeyDown={(e) => {
+ if (isAnimatingRef.current) {
+ return e.preventDefault();
+ }
+ if (
+ e.code === "Tab" &&
+ index < options.length - 1 &&
+ !isColumnVisible(index + 1)
+ ) {
+ isAnimatingRef.current = true;
+ e.preventDefault();
+ goToNextPage();
+ setTimeout(() => {
+ checkboxRefs.current[index + 1].focus();
+ isAnimatingRef.current = false;
+ }, 500);
+ }
+ }}
+ {...checkboxProps}
+ ref={(el) => {
+ if (el) {
+ checkboxRefs.current[index] = el;
+ checkboxProps.ref(el);
+ }
+ }}
+ onFocus={() => {
+ setActiveOptionId(option.id);
+ }}
+ />
+ </div>
+ );
+ })}
+ </ControlledScrollDiv>
+ <div className="flex items-center px-2 space-x-2 transition-all">
+ <Button
+ htmlType="submit"
+ icon={<CheckCircle />}
+ type="primary"
+ loading={isSubmitting}
+ data-testid="submitNewParticipant"
+ />
+ <Button onClick={onCancel} type="default">
+ Cancel
+ </Button>
+ </div>
+ </form>
+ );
+ };
+
+export default ParticipantRowForm;
diff --git a/components/poll/participant-row.tsx b/components/poll/participant-row.tsx
new file mode 100644
index 000000000..71be45109
--- /dev/null
+++ b/components/poll/participant-row.tsx
@@ -0,0 +1,148 @@
+import { Option, Participant, Vote } from "@prisma/client";
+import clsx from "clsx";
+import * as React from "react";
+
+import Button from "../button";
+import Pencil from "../icons/pencil.svg";
+import Trash from "../icons/trash.svg";
+import { usePoll } from "../use-poll";
+import { useUpdateParticipantMutation } from "./mutations";
+import ParticipantRowForm from "./participant-row-form";
+import { ControlledScrollDiv } from "./poll";
+import { usePollContext } from "./poll-context";
+import { useDeleteParticipantModal } from "./use-delete-participant-modal";
+import UserAvater from "./user-avatar";
+import VoteIcon from "./vote-icon";
+
+export interface ParticipantRowProps {
+ urlId: string;
+ participant: Participant & { votes: Vote[] };
+ options: Array<Option & { votes: Vote[] }>;
+ editMode: boolean;
+ canDelete?: boolean;
+ onChangeEditMode?: (value: boolean) => void;
+}
+
+const ParticipantRow: React.VoidFunctionComponent<ParticipantRowProps> = ({
+ urlId,
+ participant,
+ options,
+ editMode,
+ canDelete,
+ onChangeEditMode,
+}) => {
+ const {
+ setActiveOptionId,
+ activeOptionId,
+ columnWidth,
+ sidebarWidth,
+ actionColumnWidth,
+ } = usePollContext();
+
+ const { mutate: updateParticipantMutation } =
+ useUpdateParticipantMutation(urlId);
+
+ const [deleteParticipantConfirModal, confirmDeleteParticipant] =
+ useDeleteParticipantModal(urlId, participant.id);
+
+ const poll = usePoll();
+ if (editMode) {
+ return (
+ <ParticipantRowForm
+ defaultValues={{
+ name: participant.name,
+ votes: participant.votes.map(({ optionId }) => optionId),
+ }}
+ onSubmit={async ({ name, votes }) => {
+ return new Promise((resolve, reject) => {
+ updateParticipantMutation(
+ {
+ pollId: participant.pollId,
+ participantId: participant.id,
+ votes,
+ name,
+ },
+ {
+ onSuccess: () => {
+ onChangeEditMode?.(false);
+ resolve();
+ },
+ onError: reject,
+ },
+ );
+ });
+ }}
+ options={options}
+ onCancel={() => onChangeEditMode?.(false)}
+ />
+ );
+ }
+
+ return (
+ <div
+ key={participant.id}
+ className="group flex hover:bg-slate-50 h-14 transition-colors"
+ >
+ {deleteParticipantConfirModal}
+ <div
+ className="flex items-center px-4 shrink-0"
+ style={{ width: sidebarWidth }}
+ >
+ <UserAvater className="mr-2" name={participant.name} />
+ <span className="truncate" title={participant.name}>
+ {participant.name}
+ </span>
+ </div>
+ <ControlledScrollDiv>
+ {options.map((option) => {
+ return (
+ <div
+ key={option.id}
+ className={clsx(
+ "justify-center items-center flex shrink-0 transition-colors",
+ {
+ "bg-slate-50": activeOptionId === option.id,
+ },
+ )}
+ style={{ width: columnWidth }}
+ onMouseOver={() => setActiveOptionId(option.id)}
+ onMouseOut={() => setActiveOptionId(null)}
+ >
+ {option.votes.some(
+ (vote) => vote.participantId === participant.id,
+ ) ? (
+ <VoteIcon type="yes" />
+ ) : (
+ <VoteIcon type="no" />
+ )}
+ </div>
+ );
+ })}
+ </ControlledScrollDiv>
+ {!poll.closed ? (
+ <div
+ style={{ width: actionColumnWidth }}
+ className="flex items-center overflow-hidden px-2 opacity-0 group-hover:opacity-100 delay-100 transition-all space-x-2"
+ >
+ <Button
+ icon={<Pencil />}
+ onClick={() => {
+ onChangeEditMode?.(true);
+ }}
+ >
+ Edit
+ </Button>
+ {canDelete ? (
+ <Button
+ icon={<Trash />}
+ type="danger"
+ onClick={confirmDeleteParticipant}
+ />
+ ) : null}
+ </div>
+ ) : null}
+ </div>
+ );
+};
+
+export default ParticipantRow;
diff --git a/components/poll/poll-context.ts b/components/poll/poll-context.ts
new file mode 100644
index 000000000..8e2c3296b
--- /dev/null
+++ b/components/poll/poll-context.ts
@@ -0,0 +1,30 @@
+import noop from "lodash/noop";
+import React from "react";
+
+export const PollContext = React.createContext<{
+ activeOptionId: string | null;
+ setActiveOptionId: (optionId: string | null) => void;
+ scrollPosition: number;
+ setScrollPosition: (position: number) => void;
+ columnWidth: number;
+ sidebarWidth: number;
+ numberOfColumns: number;
+ availableSpace: number;
+ actionColumnWidth: number;
+ goToNextPage: () => void;
+ goToPreviousPage: () => void;
+}>({
+ activeOptionId: null,
+ setActiveOptionId: noop,
+ scrollPosition: 0,
+ setScrollPosition: noop,
+ columnWidth: 100,
+ sidebarWidth: 200,
+ numberOfColumns: 0,
+ availableSpace: 0,
+ goToNextPage: noop,
+ goToPreviousPage: noop,
+ actionColumnWidth: 0,
+});
+
+export const usePollContext = () => React.useContext(PollContext);
diff --git a/components/poll/poll-subheader.tsx b/components/poll/poll-subheader.tsx
new file mode 100644
index 000000000..05a798d79
--- /dev/null
+++ b/components/poll/poll-subheader.tsx
@@ -0,0 +1,67 @@
+import { formatRelative } from "date-fns";
+import * as React from "react";
+import { Trans, useTranslation } from "next-i18next";
+import Tooltip from "../tooltip";
+import { usePoll } from "../use-poll";
+
+export interface PollSubheaderProps {}
+
+const PollSubheader: React.VoidFunctionComponent<PollSubheaderProps> = () => {
+ const poll = usePoll();
+ const { t } = useTranslation("app");
+ return (
+ <div className="text-slate-500">
+ <div className="md:inline">
+ <Trans
+ i18nKey="createdBy"
+ t={t}
+ values={{
+ name: poll.authorName,
+ date: Date.parse(poll.createdAt),
+ formatParams: {
+ date: {
+ year: "numeric",
+ month: "numeric",
+ day: "numeric",
+ },
+ },
+ }}
+ components={{
+ b: <span className="font-medium text-indigo-500" />,
+ }}
+ />
+ &nbsp;
+ {poll.role === "admin" ? (
+ poll.verified ? (
+ <span className="badge border-green-400 bg-green-50 text-green-500">
+ Verified
+ </span>
+ ) : (
+ <Tooltip
+ content={
+ <div className="max-w-sm">
+ <Trans
+ t={t}
+ i18nKey="unverifiedMessage"
+ values={{ email: poll.user.email }}
+ components={{
+ b: <span className="email" />,
+ }}
+ />
+ </div>
+ }
+ >
+ <span className="badge text-slate-400">Unverified</span>
+ </Tooltip>
+ )
+ ) : null}
+ </div>
+ <span className="hidden md:inline">&nbsp;&bull;&nbsp;</span>
+ <span className="whitespace-nowrap">
+ {formatRelative(new Date(poll.createdAt), new Date())}
+ </span>
+ </div>
+ );
+};
+
+export default PollSubheader;
diff --git a/components/poll/poll.tsx b/components/poll/poll.tsx
new file mode 100644
index 000000000..2a79a4aac
--- /dev/null
+++ b/components/poll/poll.tsx
@@ -0,0 +1,339 @@
+import clsx from "clsx";
+import debounce from "lodash/debounce";
+import { useTranslation } from "next-i18next";
+import * as React from "react";
+import { useMeasure } from "react-use";
+import { decodeDateOption } from "../../utils/date-time-utils";
+import Button from "../button";
+import DateCard from "../date-card";
+import ArrowLeft from "../icons/arrow-left.svg";
+import ArrowRight from "../icons/arrow-right.svg";
+import PlusCircle from "../icons/plus-circle.svg";
+import TimeZonePicker from "../time-zone-picker";
+import { TransitionPopInOut } from "../transitions";
+import { useAddParticipantMutation } from "./mutations";
+import ParticipantRow from "./participant-row";
+import ParticipantRowForm from "./participant-row-form";
+import { PollContext, usePollContext } from "./poll-context";
+import Score from "./score";
+import TimeRange from "./time-range";
+import { PollProps } from "./types";
+import smoothscroll from "smoothscroll-polyfill";
+import { usePoll } from "../use-poll";
+
+if (typeof window !== "undefined") {
+ smoothscroll.polyfill();
+}
+
+// There's a bug in Safari 15.4 that causes `scroll` to no work as intended
+const isSafariV154 =
+ typeof window !== "undefined"
+ ? /Version\/15.[4-9]\sSafari/.test(navigator.userAgent)
+ : false;
+
+export const ControlledScrollDiv: React.VoidFunctionComponent<{
+ children?: React.ReactNode;
+ className?: string;
+}> = ({ className, children }) => {
+ const { setScrollPosition, availableSpace, scrollPosition } =
+ usePollContext();
+
+ const ref = React.useRef<HTMLDivElement>(null);
+
+ const didSetInitialScrollPosition = React.useRef(false);
+
+ React.useEffect(() => {
+ if (ref.current) {
+ if (!isSafariV154) {
+ ref.current.scroll({
+ left: scrollPosition,
+ behavior: didSetInitialScrollPosition?.current ? "smooth" : "auto",
+ });
+ } else {
+ ref.current.scrollLeft = scrollPosition;
+ }
+ didSetInitialScrollPosition.current = true;
+ }
+ }, [scrollPosition]);
+
+ return (
+ <div
+ ref={ref}
+ className={clsx("flex min-w-0 overflow-hidden", className)}
+ style={{ width: availableSpace, maxWidth: availableSpace }}
+ onScroll={(e) => {
+ const div = e.target as HTMLDivElement;
+ setScrollPosition(div.scrollLeft);
+ }}
+ >
+ {children}
+ </div>
+ );
+};
+
+const Poll: React.VoidFunctionComponent<
+ PollProps & {
+ width?: number;
+ sidebarWidth?: number;
+ columnWidth?: number;
+ actionColumnWidth?: number;
+ }
+> = ({
+ pollId,
+ role,
+ timeZone,
+ options,
+ participants,
+ highScore,
+ targetTimeZone,
+ onChangeTargetTimeZone,
+ actionColumnWidth = 160,
+ sidebarWidth = 200,
+ columnWidth: defaultColumnWidth,
+ width: defaultWidth,
+}) => {
+ const { t } = useTranslation("app");
+
+ const [ref, { width: measuredWidth }] = useMeasure<HTMLDivElement>();
+ const [editingParticipantId, setEditingParticipantId] =
+ React.useState<string | null>(null);
+
+ const width = defaultWidth ?? measuredWidth;
+ const columnWidth =
+ defaultColumnWidth ??
+ Math.min(
+ 150,
+ Math.max(95, (width - sidebarWidth - actionColumnWidth) / options.length),
+ );
+
+ const numberOfVisibleColumns = Math.floor(
+ (width - (sidebarWidth + actionColumnWidth)) / columnWidth,
+ );
+
+ const availableSpace = Math.min(
+ numberOfVisibleColumns * columnWidth,
+ options.length * columnWidth,
+ );
+
+ const [activeOptionId, setActiveOptionId] =
+ React.useState<string | null>(null);
+
+ const [scrollPosition, setScrollPosition] = React.useState(0);
+
+ const maxScrollPosition =
+ columnWidth * options.length - columnWidth * numberOfVisibleColumns;
+
+ const debouncedSetScrollPosition = React.useMemo(
+ () => debounce(setScrollPosition, 200),
+ [],
+ );
+
+ const numberOfInvisibleColumns = options.length - numberOfVisibleColumns;
+
+ const [didUsePagination, setDidUsePagination] = React.useState(false);
+
+ const [shouldShowNewParticipantForm, setShouldShowNewParticipantForm] =
+ React.useState(participants.length === 0);
+
+ const pollWidth =
+ sidebarWidth + options.length * columnWidth + actionColumnWidth;
+
+ const { mutate: addParticipant } = useAddParticipantMutation(pollId);
+
+ const goToNextPage = () => {
+ debouncedSetScrollPosition(
+ Math.min(
+ maxScrollPosition,
+ scrollPosition + numberOfVisibleColumns * columnWidth,
+ ),
+ );
+ };
+
+ const goToPreviousPage = () => {
+ setScrollPosition(
+ Math.max(0, scrollPosition - numberOfVisibleColumns * columnWidth),
+ );
+ };
+
+ const poll = usePoll();
+
+ return (
+ <PollContext.Provider
+ value={{
+ activeOptionId,
+ setActiveOptionId,
+ scrollPosition,
+ setScrollPosition: debouncedSetScrollPosition,
+ columnWidth,
+ sidebarWidth,
+ goToNextPage,
+ goToPreviousPage,
+ numberOfColumns: numberOfVisibleColumns,
+ availableSpace,
+ actionColumnWidth,
+ }}
+ >
+ <div
+ className="relative max-w-full min-w-full" // Don't add styles like border, margin, padding – that can mess up the sizing calculations
+ style={{ width: `min(${pollWidth}px, calc(100vw - 3rem))` }}
+ ref={ref}
+ >
+ <div className="md:rounded-lg shadow-sm bg-white border-t border-b md:border">
+ <div className="shadow-sm shadow-slate-50 bg-white/80 backdrop-blur-md rounded-t-lg border-gray-200 border-b sticky top-0 z-10">
+ {role !== "readOnly" ? (
+ <div className="flex px-4 h-14 items-center justify-end space-x-4 border-b bg-gray-50 rounded-t-lg">
+ {timeZone ? (
+ <div className="flex items-center grow">
+ <div className="text-sm mr-2 font-medium text-slate-500">
+ {t("timeZone")}
+ </div>
+ <TimeZonePicker
+ value={targetTimeZone}
+ onChange={onChangeTargetTimeZone}
+ className="grow"
+ />
+ </div>
+ ) : null}
+ <div className="shrink-0 flex">
+ {!shouldShowNewParticipantForm && !poll.closed ? (
+ <Button
+ type="primary"
+ icon={<PlusCircle />}
+ onClick={() => {
+ setShouldShowNewParticipantForm(true);
+ }}
+ >
+ New Participant
+ </Button>
+ ) : null}
+ </div>
+ </div>
+ ) : null}
+ <div className="flex">
+ <div
+ className="flex items-center pl-4 pr-2 py-4 shrink-0 font-medium"
+ style={{ width: sidebarWidth }}
+ >
+ <div className="grow h-full flex items-end">
+ {t("participantCount", { count: participants.length })}
+ </div>
+ <TransitionPopInOut show={scrollPosition > 0}>
+ <Button rounded={true} onClick={goToPreviousPage}>
+ <ArrowLeft className="h-4 w-4" />
+ </Button>
+ </TransitionPopInOut>
+ </div>
+ <ControlledScrollDiv>
+ {options.map((option) => {
+ const parsedOption = decodeDateOption(
+ option.value,
+ timeZone,
+ targetTimeZone,
+ );
+ const numVotes = option.votes.length;
+ return (
+ <div
+ key={option.id}
+ className={clsx(
+ "py-4 text-center shrink-0 transition-colors",
+ {
+ "bg-slate-50": activeOptionId === option.id,
+ },
+ )}
+ style={{ width: columnWidth }}
+ onMouseOver={() => setActiveOptionId(option.id)}
+ onMouseOut={() => setActiveOptionId(null)}
+ >
+ <div>
+ <DateCard
+ day={parsedOption.day}
+ dow={parsedOption.dow}
+ month={parsedOption.month}
+ annotation={
+ <Score
+ count={numVotes}
+ highlight={numVotes === highScore}
+ />
+ }
+ />
+ </div>
+ <div>
+ {parsedOption.type === "timeSlot" ? (
+ <TimeRange
+ className="mt-2 -mr-2"
+ startTime={parsedOption.startTime}
+ endTime={parsedOption.endTime}
+ />
+ ) : null}
+ </div>
+ </div>
+ );
+ })}
+ </ControlledScrollDiv>
+ <div
+ className="flex items-center py-3 px-2"
+ style={{ width: actionColumnWidth }}
+ >
+ <TransitionPopInOut show={scrollPosition < maxScrollPosition}>
+ <Button
+ className="text-xs"
+ rounded={true}
+ onClick={() => {
+ setDidUsePagination(true);
+ goToNextPage();
+ }}
+ >
+ {didUsePagination ? (
+ <ArrowRight className="w-4 h-4" />
+ ) : (
+ `+${numberOfInvisibleColumns} more…`
+ )}
+ </Button>
+ </TransitionPopInOut>
+ </div>
+ </div>
+ {shouldShowNewParticipantForm ? (
+ <ParticipantRowForm
+ className="border-t bg-slate-100 bg-opacity-0"
+ onSubmit={(data) => {
+ return new Promise((resolve, reject) => {
+ addParticipant(data, {
+ onSuccess: () => {
+ setShouldShowNewParticipantForm(false);
+ resolve();
+ },
+ onError: reject,
+ });
+ });
+ }}
+ options={options}
+ onCancel={() => {
+ setShouldShowNewParticipantForm(false);
+ }}
+ />
+ ) : null}
+ </div>
+ <div className="min-h-0 overflow-y-auto">
+ {participants.map((participant, i) => {
+ return (
+ <ParticipantRow
+ urlId={pollId}
+ key={i}
+ participant={participant}
+ options={options}
+ canDelete={role === "admin"}
+ editMode={editingParticipantId === participant.id}
+ onChangeEditMode={(isEditing) => {
+ setEditingParticipantId(isEditing ? participant.id : null);
+ }}
+ />
+ );
+ })}
+ </div>
+ </div>
+ </div>
+ </PollContext.Provider>
+ );
+};
+
+export default React.memo(Poll);
diff --git a/components/poll/score.tsx b/components/poll/score.tsx
new file mode 100644
index 000000000..14652a24a
--- /dev/null
+++ b/components/poll/score.tsx
@@ -0,0 +1,34 @@
+import clsx from "clsx";
+import * as React from "react";
+
+export interface ScoreProps {
+ count: number;
+ highlight?: boolean;
+ style?: React.CSSProperties;
+ className?: string;
+}
+
+const Score: React.VoidFunctionComponent<ScoreProps> = ({
+ count,
+ highlight,
+ style,
+ className,
+}) => {
+ return (
+ <div
+ className={clsx(
+ " rounded-full text-xs w-5 h-5 flex justify-center items-center shadow-slate-200 shadow-sm transition-colors z-20",
+ {
+ "bg-rose-500 text-white": highlight,
+ "bg-slate-200 text-slate-500": !highlight,
+ },
+ className,
+ )}
+ style={style}
+ >
+ {count}
+ </div>
+ );
+};
+
+export default Score;
diff --git a/components/poll/time-range.tsx b/components/poll/time-range.tsx
new file mode 100644
index 000000000..f85063139
--- /dev/null
+++ b/components/poll/time-range.tsx
@@ -0,0 +1,28 @@
+import clsx from "clsx";
+import * as React from "react";
+
+export interface TimeRangeProps {
+ startTime: string;
+ endTime: string;
+ className?: string;
+}
+
+const TimeRange: React.VoidFunctionComponent<TimeRangeProps> = ({
+ startTime,
+ endTime,
+ className,
+}) => {
+ return (
+ <div
+ className={clsx(
+ "inline-block font-mono text-xs text-right pr-2 relative after:content-[''] after:absolute after:w-1 after:h-4 after:border-t after:border-r after:border-b after:border-slate-300 after:top-2 after:right-0",
+ className,
+ )}
+ >
+ <div>{startTime}</div>
+ <div>{endTime}</div>
+ </div>
+ );
+};
+
+export default TimeRange;
diff --git a/components/poll/types.ts b/components/poll/types.ts
new file mode 100644
index 000000000..93fc117eb
--- /dev/null
+++ b/components/poll/types.ts
@@ -0,0 +1,17 @@
+import { Option, Participant, Role, Vote } from "@prisma/client";
+
+export interface ParticipantForm {
+ name: string;
+ votes: string[];
+}
+export interface PollProps {
+ pollId: string;
+ role: Role | "readOnly";
+ timeZone: string | null;
+ options: Array<Option & { votes: Vote[] }>;
+ participants: Array<Participant & { votes: Vote[] }>;
+ highScore: number;
+ initialName?: string;
+ onChangeTargetTimeZone: (timeZone: string) => void;
+ targetTimeZone: string;
+}
diff --git a/components/poll/use-delete-participant-modal.ts b/components/poll/use-delete-participant-modal.ts
new file mode 100644
index 000000000..9f92c4817
--- /dev/null
+++ b/components/poll/use-delete-participant-modal.ts
@@ -0,0 +1,25 @@
+import { useModal } from "../modal";
+import { useDeleteParticipantMutation } from "./mutations";
+
+export const useDeleteParticipantModal = (
+ pollId: string,
+ participantId: string,
+) => {
+ const { mutate: deleteParticipant } = useDeleteParticipantMutation(pollId);
+ return useModal({
+ title: "Delete participant?",
+ description:
+ "Are you sure you want to remove this participant from the poll?",
+ okButtonProps: {
+ type: "danger",
+ },
+ okText: "Remove",
+ onOk: () => {
+ deleteParticipant({
+ pollId: pollId,
+ participantId,
+ });
+ },
+ cancelText: "Cancel",
+ });
+};
diff --git a/components/poll/user-avatar.tsx b/components/poll/user-avatar.tsx
new file mode 100644
index 000000000..a538a19e6
--- /dev/null
+++ b/components/poll/user-avatar.tsx
@@ -0,0 +1,109 @@
+import clsx from "clsx";
+import * as React from "react";
+import { stringToValue } from "utils/string-to-value";
+
+export interface UserAvaterProps {
+ name: string;
+ className?: string;
+ size?: "default" | "large";
+ color?: string;
+}
+
+const UserAvatarContext =
+ React.createContext<((name: string) => string) | null>(null);
+
+const colors = [
+ "bg-fuchsia-300",
+ "bg-purple-400",
+ "bg-indigo-400",
+ "bg-blue-400",
+ "bg-sky-400",
+ "bg-cyan-400",
+ "bg-teal-300",
+ "bg-emerald-300",
+ "bg-emerald-400",
+ "bg-teal-400",
+ "bg-cyan-400",
+ "bg-sky-400",
+ "bg-blue-400",
+ "bg-indigo-400",
+ "bg-purple-400",
+ "bg-fuchsia-400",
+ "bg-pink-400",
+];
+
+const defaultColor = "bg-slate-400";
+
+export const UserAvatarProvider: React.VoidFunctionComponent<{
+ children?: React.ReactNode;
+ names: string[];
+ seed: string;
+}> = ({ seed, children, names }) => {
+ const seedValue = React.useMemo(() => stringToValue(seed), [seed]);
+
+ const colorByName = React.useMemo(() => {
+ const res = {
+ "": defaultColor,
+ };
+ for (let i = 0; i < names.length; i++) {
+ const lastIndex = names.length - 1;
+ // start from the end since the names is "most recent" first.
+ const name = names[lastIndex - i].trim().toLowerCase();
+ const color = colors[(seedValue + i) % colors.length];
+ res[name] = color;
+ }
+ return res;
+ }, [names, seedValue]);
+
+ const getColor = React.useCallback(
+ (name: string) => {
+ const cachedColor = colorByName[name.toLowerCase()];
+ if (cachedColor) {
+ return cachedColor;
+ }
+ return defaultColor;
+ },
+ [colorByName],
+ );
+
+ return (
+ <UserAvatarContext.Provider value={getColor}>
+ {children}
+ </UserAvatarContext.Provider>
+ );
+};
+
+const UserAvater: React.VoidFunctionComponent<UserAvaterProps> = ({
+ name,
+ className,
+ color: colorOverride,
+ size = "default",
+}) => {
+ const trimmedName = name.trim();
+
+ const getColor = React.useContext(UserAvatarContext);
+
+ if (!getColor) {
+ throw new Error("Forgot to wrap UserAvatarProvider");
+ }
+
+ const color = colorOverride ?? getColor(trimmedName);
+ return (
+ <span
+ className={clsx(
+ "inline-block w-5 h-5 text-white rounded-full shrink-0 text-center",
+ color,
+ {
+ "w-5 h-5 text-xs leading-5": size === "default",
+ "w-10 h-10 leading-10": size === "large",
+ },
+ className,
+ )}
+ title={name}
+ >
+ {trimmedName[0]?.toUpperCase()}
+ </span>
+ );
+};
+
+export default UserAvater;
diff --git a/components/poll/vote-icon.tsx b/components/poll/vote-icon.tsx
new file mode 100644
index 000000000..942b462dc
--- /dev/null
+++ b/components/poll/vote-icon.tsx
@@ -0,0 +1,14 @@
+import * as React from "react";
+
+import CheckCircle from "@/components/icons/check-circle.svg";
+
+const VoteIcon: React.VoidFunctionComponent<{
+ type: "yes" | "no";
+}> = ({ type }) => {
+ if (type === "yes") {
+ return <CheckCircle className="h-5 w-5 text-green-400" />;
+ }
+ return <span className="inline-block bg-slate-300 w-2 h-2 rounded-full" />;
+};
+
+export default VoteIcon;
diff --git a/components/popover.tsx b/components/popover.tsx
new file mode 100644
index 000000000..f7bcc741f
--- /dev/null
+++ b/components/popover.tsx
@@ -0,0 +1,61 @@
+import React from "react";
+import { usePopper } from "react-popper";
+import { Popover as HeadlessPopover } from "@headlessui/react";
+import clsx from "clsx";
+import ReactDOM from "react-dom";
+import { Placement } from "@popperjs/core";
+
+interface PopoverProps {
+ trigger: React.ReactNode;
+ children?: React.ReactNode;
+ placement?: Placement;
+}
+const Popover: React.VoidFunctionComponent<PopoverProps> = ({
+ children,
+ trigger,
+ placement,
+}) => {
+ const [referenceElement, setReferenceElement] =
+ React.useState<HTMLDivElement | null>(null);
+ const [popperElement, setPopperElement] =
+ React.useState<HTMLDivElement | null>(null);
+
+ const { styles, attributes } = usePopper(referenceElement, popperElement, {
+ placement,
+ modifiers: [
+ {
+ name: "offset",
+ options: {
+ offset: [0, 5],
+ },
+ },
+ ],
+ });
+
+ const portal = document.getElementById("portal");
+ return (
+ <HeadlessPopover>
+ <HeadlessPopover.Button
+ ref={setReferenceElement}
+ as="div"
+ className={clsx("inline-block")}
+ >
+ {trigger}
+ </HeadlessPopover.Button>
+ {portal &&
+ ReactDOM.createPortal(
+ <HeadlessPopover.Panel
+ className="shadow-md bg-white rounded-lg max-w-full border p-4"
+ style={styles.popper}
+ {...attributes.popper}
+ ref={setPopperElement}
+ >
+ {children}
+ </HeadlessPopover.Panel>,
+ portal,
+ )}
+ </HeadlessPopover>
+ );
+};
+
+export default Popover;
diff --git a/components/sharing.tsx b/components/sharing.tsx
new file mode 100644
index 000000000..a0f4c3680
--- /dev/null
+++ b/components/sharing.tsx
@@ -0,0 +1,103 @@
+import { Link, Role } from "@prisma/client";
+import clsx from "clsx";
+import { useTranslation } from "next-i18next";
+import { usePlausible } from "next-plausible";
+import * as React from "react";
+import toast from "react-hot-toast";
+import { useCopyToClipboard } from "react-use";
+import Button from "./button";
+
+export interface SharingProps {
+ links: Link[];
+}
+
+const useRoleData = (): Record<
+ Role,
+ { path: string; label: string; description: string }
+> => {
+ const { t } = useTranslation("app");
+ return {
+ admin: {
+ path: "admin",
+ label: t("admin"),
+ description: t("adminDescription"),
+ },
+ participant: {
+ path: "p",
+ label: t("participant"),
+ description: t("participantDescription"),
+ },
+ };
+};
+
+const Sharing: React.VoidFunctionComponent<SharingProps> = ({ links }) => {
+ const [state, copyToClipboard] = useCopyToClipboard();
+
+ const plausible = usePlausible();
+
+ React.useEffect(() => {
+ if (state.error) {
+ toast.error(`Unable to copy value: ${state.error.message}`);
+ }
+ }, [state]);
+
+ const [role, setRole] = React.useState<Role>("participant");
+ const link = links.find((link) => link.role === role);
+ if (!link) {
+ throw new Error(`Missing link for role: ${role}`);
+ }
+ const roleData = useRoleData();
+ const { path } = roleData[link.role];
+ const pollUrl = `${window.location.origin}/${path}/${link.urlId}`;
+ const [didCopy, setDidCopy] = React.useState(false);
+ return (
+ <div className="w-[300px] md:w-[400px]">
+ <div className="segment-button inline-flex mb-3">
+ <button
+ className={clsx({
+ "segment-button-active": role === "participant",
+ })}
+ onClick={() => {
+ setRole("participant");
+ }}
+ type="button"
+ >
+ {roleData["participant"].label}
+ </button>
+ <button
+ className={clsx({
+ "segment-button-active": role === "admin",
+ })}
+ onClick={() => {
+ setRole("admin");
+ }}
+ type="button"
+ >
+ {roleData["admin"].label}
+ </button>
+ </div>
+ <div className="flex flex-col lg:flex-row space-y-3 lg:space-y-0 lg:space-x-3 mb-2">
+ <input readOnly={true} className="input lg:w-[280px]" value={pollUrl} />
+ <Button
+ className="shrink-0 w-24"
+ disabled={didCopy}
+ onClick={() => {
+ copyToClipboard(pollUrl);
+ setDidCopy(true);
+ setTimeout(() => setDidCopy(false), 1000);
+ plausible("Copied share link", {
+ props: {
+ role,
+ },
+ });
+ }}
+ >
+ {didCopy ? "Copied" : "Copy Link"}
+ </Button>
+ </div>
+ <div className="text-slate-500">{roleData[link.role].description}</div>
+ </div>
+ );
+};
+
+export default Sharing;
diff --git a/components/standard-layout.tsx b/components/standard-layout.tsx
new file mode 100644
index 000000000..80244a86e
--- /dev/null
+++ b/components/standard-layout.tsx
@@ -0,0 +1,48 @@
+import Link from "next/link";
+import React from "react";
+import Logo from "../public/logo.svg";
+import Newspaper from "./icons/newspaper.svg";
+import Pencil from "./icons/pencil.svg";
+import Support from "./icons/support.svg";
+
+const StandardLayout: React.FunctionComponent = ({ children, ...rest }) => {
+ return (
+ <div className="relative min-h-full lg:flex bg-gray-50" {...rest}>
+ <div className="bg-gray-100 border-b lg:border-b-0 px-4 py-2 lg:py-6 lg:px-4 lg:border-r lg:grow">
+ <div className="flex lg:float-right items-center lg:items-start lg:w-40 lg:flex-col">
+ <div className="grow lg:grow-0 lg:mb-8">
+ <Link href="/">
+ <a>
+ <Logo className="text-slate-500 transition-colors w-24 lg:w-28 hover:text-indigo-500 active:text-indigo-600" />
+ </a>
+ </Link>
+ </div>
+ <div className="flex shrink-0 lg:block lg:w-full text-sm lg:text-base items-center lg:pb-4 lg:mb-4">
+ <Link passHref={true} href="/new">
+ <a className="flex items-center whitespace-nowrap hover:text-gray-600 hover:bg-gray-200 px-2 py-1 lg:-ml-2 rounded-md font-medium hover:no-underline space-x-2 text-gray-600 cursor-pointer transition-colors active:bg-gray-300">
+ <Pencil className="w-6 h-6 opacity-75" />
+ <span className="hidden md:inline-block">New Poll</span>
+ </a>
+ </Link>
+ <a
+ href="https://blog.rallly.co"
+ className="flex items-center whitespace-nowrap hover:text-gray-600 hover:bg-gray-200 px-2 py-1 lg:-ml-2 rounded-md font-medium hover:no-underline space-x-2 text-gray-600 cursor-pointer transition-colors active:bg-gray-300"
+ >
+ <Newspaper className="w-6 h-6 opacity-75" />
+ <span className="hidden md:inline-block">Blog</span>
+ </a>
+ <Link passHref={true} href="/support">
+ <a className="flex items-center whitespace-nowrap hover:text-gray-600 hover:bg-gray-200 px-2 py-1 lg:-ml-2 rounded-md font-medium hover:no-underline space-x-2 text-gray-600 cursor-pointer transition-colors active:bg-gray-300">
+ <Support className="w-6 h-6 opacity-75" />
+ <span className="hidden md:inline-block">Support</span>
+ </a>
+ </Link>
+ </div>
+ </div>
+ </div>
+ <div className="grow min-w-0">{children}</div>
+ </div>
+ );
+};
+
+export default StandardLayout;
diff --git a/components/steps/index.ts b/components/steps/index.ts
new file mode 100644
index 000000000..73a2deb0a
--- /dev/null
+++ b/components/steps/index.ts
@@ -0,0 +1 @@
+export { default } from "./steps";
diff --git a/components/steps/step.tsx b/components/steps/step.tsx
new file mode 100644
index 000000000..b3d486afc
--- /dev/null
+++ b/components/steps/step.tsx
@@ -0,0 +1,16 @@
+import React from "react";
+
+export interface StepProps {
+ title: string;
+}
+
+const Step: React.FunctionComponent<StepProps> = ({ title, children }) => {
+ return (
+ <div>
+ <div>{title}</div>
+ <div>{children}</div>
+ </div>
+ );
+};
+
+export default Step;
diff --git a/components/steps/steps.tsx b/components/steps/steps.tsx
new file mode 100644
index 000000000..ea6dab66a
--- /dev/null
+++ b/components/steps/steps.tsx
@@ -0,0 +1,44 @@
+import clsx from "clsx";
+import { useTranslation } from "next-i18next";
+import React from "react";
+
+export interface StepsProps {
+ current: number;
+ total: number;
+ className?: string;
+}
+
+const Steps: React.VoidFunctionComponent<StepsProps> = ({
+ current,
+ total,
+ className,
+}) => {
+ const { t } = useTranslation("app");
+
+ return (
+ <div className={clsx("inline-flex items-center", className)}>
+ <div className="font-medium text-sm tracking-tight">
+ {t("stepSummary", {
+ current: current + 1,
+ total,
+ })}
+ </div>
+ <div className="flex ml-2 items-center">
+ {[...Array(total)].map((_, i) => {
+ return (
+ <span
+ key={i}
+ className={clsx("w-2 h-2 rounded-full ml-3 transition-all", {
+ "bg-indigo-400": i <= current,
+ "bg-gray-300": i > current,
+ "ring-4 ring-indigo-200 animate-pulse": i === current,
+ })}
+ />
+ );
+ })}
+ </div>
+ </div>
+ );
+};
+
+export default Steps;
diff --git a/components/support.tsx b/components/support.tsx
new file mode 100644
index 000000000..183a298c6
--- /dev/null
+++ b/components/support.tsx
@@ -0,0 +1,151 @@
+import * as React from "react";
+import PageLayout from "./page-layout";
+import { Disclosure } from "@headlessui/react";
+import Chat from "@/components/icons/chat.svg";
+import Button from "@/components/button";
+import { showCrispChat } from "./crisp-chat";
+import { Trans, useTranslation } from "next-i18next";
+
+const Support: React.VoidFunctionComponent = () => {
+ const { t } = useTranslation("support");
+ return (
+ <PageLayout>
+ <div className="bg-gradient-to-b from-transparent via-white to-transparent">
+ <div className="py-16 px-8 mx-auto max-w-7xl">
+ <h1 className="text-5xl">Support</h1>
+ <div className="lg:flex py-16">
+ <div className="grow mb-8">
+ <h2 className="text-3xl mb-4">General</h2>
+ <Disclosure as="div" className="bg-slate-50 p-2 rounded-lg mb-4">
+ <Disclosure.Button className="font-medium text-lg py-2 px-3 rounded-lg active:bg-slate-200 block w-full text-left font-slate hover:text-indigo-500 hover:bg-slate-100 cursor-pointer">
+ <Trans t={t} i18nKey="howDoIShareQuestion" />
+ </Disclosure.Button>
+ <Disclosure.Panel className="text py-2 px-3">
+ <Trans
+ t={t}
+ i18nKey="howDoIShareAnswer"
+ components={{ b: <strong /> }}
+ />
+ </Disclosure.Panel>
+ </Disclosure>
+ <Disclosure as="div" className="bg-slate-50 p-2 rounded-lg mb-4">
+ <Disclosure.Button className="font-medium text-lg py-2 px-3 rounded-lg active:bg-slate-200 block w-full text-left font-slate hover:text-indigo-500 hover:bg-slate-100 cursor-pointer">
+ <Trans
+ t={t}
+ i18nKey="canRalllyDoQuestion"
+ components={{ em: <em /> }}
+ />
+ </Disclosure.Button>
+ <Disclosure.Panel className="text py-2 px-3">
+ <Trans
+ t={t}
+ i18nKey="canRalllyDoAnswer"
+ components={{
+ a: (
+ <a href="https://github.com/lukevella/Rallly/discussions" />
+ ),
+ }}
+ />
+ </Disclosure.Panel>
+ </Disclosure>
+ <Disclosure as="div" className="bg-slate-50 p-2 rounded-lg mb-4">
+ <Disclosure.Button className="font-medium text-lg py-2 px-3 rounded-lg active:bg-slate-200 block w-full text-left font-slate hover:text-indigo-500 hover:bg-slate-100 cursor-pointer">
+ {t("legacyPollsQuestion")}
+ </Disclosure.Button>
+ <Disclosure.Panel className="text py-2 px-3">
+ <Trans
+ t={t}
+ i18nKey="legacyPollsAnswer"
+ components={{ a: <a href="mailto:[email protected]" /> }}
+ />
+ </Disclosure.Panel>
+ </Disclosure>
+ <Disclosure as="div" className="bg-slate-50 p-2 rounded-lg mb-4">
+ <Disclosure.Button className="font-medium text-lg py-2 px-3 rounded-lg active:bg-slate-200 block w-full text-left font-slate hover:text-indigo-500 hover:bg-slate-100 cursor-pointer">
+ {t("contributeQuestion")}
+ </Disclosure.Button>
+ <Disclosure.Panel className="text py-2 px-3">
+ <Trans
+ t={t}
+ i18nKey="contributeAnswer"
+ components={{
+ a: <a href="https://github.com/sponsors/lukevella" />,
+ }}
+ />
+ </Disclosure.Panel>
+ </Disclosure>
+ <h2 className="text-3xl mb-4 mt-8">Privacy & Security</h2>
+ <Disclosure as="div" className="bg-slate-50 p-2 rounded-lg mb-4">
+ <Disclosure.Button className="font-medium text-lg py-2 px-3 rounded-lg active:bg-slate-200 block w-full text-left font-slate hover:text-indigo-500 hover:bg-slate-100 cursor-pointer">
+ {t("isMyDataSafeQuestion")}
+ </Disclosure.Button>
+ <Disclosure.Panel className="text py-2 px-3">
+ <Trans
+ t={t}
+ i18nKey="isMyDataSafeAnswer"
+ components={{ a: <a href="mailto:[email protected]" /> }}
+ />
+ </Disclosure.Panel>
+ </Disclosure>
+ <h2 className="text-3xl mb-4 mt-8">Self-hosting</h2>
+ <Disclosure as="div" className="bg-slate-50 p-2 rounded-lg mb-4">
+ <Disclosure.Button className="font-medium text-lg py-2 px-3 rounded-lg active:bg-slate-200 block w-full text-left font-slate hover:text-indigo-500 hover:bg-slate-100 cursor-pointer">
+ {t("selfHostQuestion")}
+ </Disclosure.Button>
+ <Disclosure.Panel className="text py-2 px-3">
+ <Trans
+ t={t}
+ i18nKey="selfHostAnswer"
+ components={{
+ a: <a href="https://github.com/lukevella/Rallly" />,
+ }}
+ />
+ </Disclosure.Panel>
+ </Disclosure>
+ <Disclosure as="div" className="bg-slate-50 p-2 rounded-lg mb-4">
+ <Disclosure.Button className="font-medium text-lg py-2 px-3 rounded-lg active:bg-slate-200 block w-full text-left font-slate hover:text-indigo-500 hover:bg-slate-100 cursor-pointer">
+ {t("canYouHelpMeSetUpRalllyQuestion")}
+ </Disclosure.Button>
+ <Disclosure.Panel className="text py-2 px-3">
+ <Trans
+ t={t}
+ i18nKey="canYouHelpMeSetUpRalllyAnswer"
+ components={{
+ a: (
+ <a href="https://github.com/lukevella/Rallly/discussions" />
+ ),
+ }}
+ />
+ </Disclosure.Panel>
+ </Disclosure>
+ </div>
+ <div className="lg:ml-16 shrink-0 lg:w-96">
+ <div className="p-8 bg-white rounded-xl shadow-md">
+ <div className="flex lg:flex-col items-start max-w-3xl">
+ <Chat className="hidden sm:block w-20 text-indigo-500 shrink-0 mr-8 mb-8" />
+ <div>
+ <h2 className="mb-2">{t("supportContactTitle")}</h2>
+ <p className="text">
+ <Trans
+ t={t}
+ i18nKey="supportContactMessage"
+ components={{
+ a: <a href="mailto:[email protected]" />,
+ }}
+ />
+ </p>
+ <Button icon={<Chat />} onClick={showCrispChat}>
+ {t("chatWithSupport")}
+ </Button>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </PageLayout>
+ );
+};
+
+export default Support;
diff --git a/components/switch.tsx b/components/switch.tsx
new file mode 100644
index 000000000..ccfdf2331
--- /dev/null
+++ b/components/switch.tsx
@@ -0,0 +1,43 @@
+import { Switch as HeadlessSwitch } from "@headlessui/react";
+import clsx from "clsx";
+import * as React from "react";
+
+export interface SwitchProps {
+ checked?: boolean;
+ onChange: (checked: boolean) => void;
+ srDescription?: string;
+}
+
+const Switch: React.VoidFunctionComponent<SwitchProps> = ({
+ checked = false,
+ onChange,
+ srDescription,
+}) => {
+ return (
+ <HeadlessSwitch
+ checked={checked}
+ onChange={onChange}
+ className={clsx(
+ "relative inline-flex flex-shrink-0 h-6 w-10 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75",
+ {
+ "bg-gray-200": !checked,
+ "bg-green-500": checked,
+ },
+ )}
+ >
+ {srDescription ? <span className="sr-only">{srDescription}</span> : null}
+ <span
+ aria-hidden="true"
+ className={clsx(
+ "pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow-lg transform ring-0 transition ease-in-out duration-200",
+ {
+ "translate-x-4": checked,
+ "translate-x-0": !checked,
+ },
+ )}
+ />
+ </HeadlessSwitch>
+ );
+};
+
+export default Switch;
diff --git a/components/time-zone-picker/index.ts b/components/time-zone-picker/index.ts
new file mode 100644
index 000000000..c172fb01a
--- /dev/null
+++ b/components/time-zone-picker/index.ts
@@ -0,0 +1 @@
+export { default } from "./time-zone-picker";
diff --git a/components/time-zone-picker/time-zone-picker.tsx b/components/time-zone-picker/time-zone-picker.tsx
new file mode 100644
index 000000000..a325a7caf
--- /dev/null
+++ b/components/time-zone-picker/time-zone-picker.tsx
@@ -0,0 +1,200 @@
+import { Combobox } from "@headlessui/react";
+import clsx from "clsx";
+import React from "react";
+import spacetime from "spacetime";
+import soft from "timezone-soft";
+
+import ChevronDown from "../../components/icons/chevron-down.svg";
+import { styleMenuItem } from "../menu-styles";
+import timeZones from "./time-zones.json";
+interface TimeZoneOption {
+ value: string;
+ label: string;
+ offset: number;
+}
+
+const useTimeZones = () => {
+ const options = React.useMemo(() => {
+ return Object.entries(timeZones)
+ .reduce<TimeZoneOption[]>((selectOptions, zone) => {
+ const now = spacetime.now(zone[0]);
+ const tz = now.timezone();
+
+ let label = "";
+
+ const min = tz.current.offset * 60;
+ const hr =
+ `${(min / 60) ^ 0}:` + (min % 60 === 0 ? "00" : Math.abs(min % 60));
+ const prefix = `(GMT${hr.includes("-") ? hr : `+${hr}`}) ${zone[1]}`;
+
+ label = prefix;
+
+ selectOptions.push({
+ value: tz.name,
+ label: label,
+ offset: tz.current.offset,
+ });
+
+ return selectOptions;
+ }, [])
+ .sort((a: TimeZoneOption, b: TimeZoneOption) => a.offset - b.offset);
+ }, []);
+
+ const findFuzzyTz = React.useCallback(
+ (zone: string): TimeZoneOption => {
+ let currentTime = spacetime.now("GMT");
+ try {
+ currentTime = spacetime.now(zone);
+ } catch (err) {
+ throw new Error(`Invalid time zone: zone`);
+ }
+ return options
+ .filter(
+ (tz: TimeZoneOption) =>
+ tz.offset === currentTime.timezone().current.offset,
+ )
+ .map((tz: TimeZoneOption) => {
+ let score = 0;
+ if (
+ currentTime.timezones[tz.value.toLowerCase()] &&
+ !!currentTime.timezones[tz.value.toLowerCase()].dst ===
+ currentTime.timezone().hasDst
+ ) {
+ if (
+ tz.value
+ .toLowerCase()
+ .indexOf(
+ currentTime.tz.substring(currentTime.tz.indexOf("/") + 1),
+ ) !== -1
+ ) {
+ score += 8;
+ }
+ if (
+ tz.label
+ .toLowerCase()
+ .indexOf(
+ currentTime.tz.substring(currentTime.tz.indexOf("/") + 1),
+ ) !== -1
+ ) {
+ score += 4;
+ }
+ if (
+ tz.value
+ .toLowerCase()
+ .indexOf(
+ currentTime.tz.substring(0, currentTime.tz.indexOf("/")),
+ )
+ ) {
+ score += 2;
+ }
+ score += 1;
+ } else if (tz.value === "GMT") {
+ score += 1;
+ }
+ return { tz, score };
+ })
+ .sort((a, b) => b.score - a.score)
+ .map(({ tz }) => tz)[0];
+ },
+ [options],
+ );
+
+ return React.useMemo(
+ () => ({
+ options,
+ findFuzzyTz,
+ }),
+ [findFuzzyTz, options],
+ );
+};
+
+const TimeZonePicker: React.VoidFunctionComponent<{
+ value: string;
+ onChange: (tz: string) => void;
+ onBlur?: () => void;
+ className?: string;
+ style?: React.CSSProperties;
+ disabled?: boolean;
+}> = ({ value, onChange, onBlur, className, style, disabled }) => {
+ const { options, findFuzzyTz } = useTimeZones();
+
+ const timeZoneOptions = React.useMemo(
+ () => [
+ {
+ value: "",
+ label: "Ignore time zone",
+ offset: 0,
+ },
+ ...options,
+ ],
+ [options],
+ );
+
+ const selectedTimeZone = React.useMemo(
+ () =>
+ value
+ ? timeZoneOptions.find(
+ (timeZoneOption) => timeZoneOption.value === value,
+ ) ?? findFuzzyTz(value)
+ : timeZoneOptions[0],
+ [findFuzzyTz, timeZoneOptions, value],
+ );
+
+ const [query, setQuery] = React.useState("");
+
+ const filteredTimeZones = React.useMemo(() => {
+ return query
+ ? timeZoneOptions.filter((tz) => {
+ if (tz.label.toLowerCase().includes(query.toLowerCase())) {
+ return true;
+ }
+ const tzStrings = soft(query);
+ return tzStrings.some((tzString) => tzString.iana === tz.value);
+ })
+ : timeZoneOptions;
+ }, [timeZoneOptions, query]);
+
+ return (
+ <Combobox
+ value={selectedTimeZone}
+ onChange={(newTimeZone) => {
+ setQuery("");
+ onChange(newTimeZone.value);
+ }}
+ disabled={disabled}
+ >
+ <div className={clsx("relative", className)} style={style}>
+ {/* Remove generic params once Combobox.Input can infer the types */}
+ <Combobox.Input<"input", TimeZoneOption>
+ className="input w-full pr-8"
+ displayValue={() => ""}
+ onChange={(e) => {
+ setQuery(e.target.value);
+ }}
+ onBlur={onBlur}
+ />
+ <Combobox.Button className="absolute inset-0 w-full flex items-center cursor-default px-2 h-9 text-left">
+ <span className="grow truncate">
+ {!query ? selectedTimeZone.label : null}
+ </span>
+ <span className="flex pointer-events-none">
+ <ChevronDown className="w-5 h-5" />
+ </span>
+ </Combobox.Button>
+ <Combobox.Options className="absolute w-full z-50 py-1 mt-1 overflow-auto bg-white rounded-md shadow-lg max-h-72 ring-1 ring-black ring-opacity-5 focus:outline-none">
+ {filteredTimeZones.map((timeZone) => (
+ <Combobox.Option
+ key={timeZone.value}
+ className={styleMenuItem}
+ value={timeZone}
+ >
+ {timeZone.label}
+ </Combobox.Option>
+ ))}
+ </Combobox.Options>
+ </div>
+ </Combobox>
+ );
+};
+
+export default TimeZonePicker;
diff --git a/components/time-zone-picker/time-zones.json b/components/time-zone-picker/time-zones.json
new file mode 100644
index 000000000..69f4be5bd
--- /dev/null
+++ b/components/time-zone-picker/time-zones.json
@@ -0,0 +1,81 @@
+{
+ "Pacific/Midway": "Midway Island, Samoa",
+ "Pacific/Honolulu": "Hawaii",
+ "America/Juneau": "Alaska",
+ "America/Boise": "Mountain Time",
+ "America/Dawson": "Dawson, Yukon",
+ "America/Chihuahua": "Chihuahua, La Paz, Mazatlan",
+ "America/Phoenix": "Arizona",
+ "America/Chicago": "Central Time",
+ "America/Regina": "Saskatchewan",
+ "America/Mexico_City": "Guadalajara, Mexico City, Monterrey",
+ "America/Belize": "Central America",
+ "America/Detroit": "Eastern Time",
+ "America/Bogota": "Bogota, Lima, Quito",
+ "America/Caracas": "Caracas, La Paz",
+ "America/Santiago": "Santiago",
+ "America/St_Johns": "Newfoundland and Labrador",
+ "America/Sao_Paulo": "Brasilia",
+ "America/Tijuana": "Tijuana",
+ "America/Montevideo": "Montevideo",
+ "America/Argentina/Buenos_Aires": "Buenos Aires, Georgetown",
+ "America/Godthab": "Greenland",
+ "America/Los_Angeles": "Pacific Time",
+ "Atlantic/Azores": "Azores",
+ "Atlantic/Cape_Verde": "Cape Verde Islands",
+ "GMT": "UTC",
+ "Europe/London": "Edinburgh, London",
+ "Europe/Dublin": "Dublin",
+ "Europe/Lisbon": "Lisbon",
+ "Africa/Casablanca": "Casablanca, Monrovia",
+ "Atlantic/Canary": "Canary Islands",
+ "Europe/Belgrade": "Belgrade, Bratislava, Budapest, Ljubljana, Prague",
+ "Europe/Sarajevo": "Sarajevo, Skopje, Warsaw, Zagreb",
+ "Europe/Brussels": "Brussels, Copenhagen, Madrid, Paris",
+ "Europe/Amsterdam": "Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna",
+ "Africa/Algiers": "West Central Africa",
+ "Europe/Bucharest": "Bucharest",
+ "Africa/Cairo": "Cairo",
+ "Europe/Helsinki": "Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius",
+ "Europe/Athens": "Athens, Minsk",
+ "Asia/Jerusalem": "Jerusalem",
+ "Africa/Harare": "Harare, Pretoria",
+ "Europe/Moscow": "Istanbul, Moscow, St. Petersburg, Volgograd",
+ "Asia/Kuwait": "Kuwait, Riyadh",
+ "Africa/Nairobi": "Nairobi",
+ "Asia/Baghdad": "Baghdad",
+ "Asia/Tehran": "Tehran",
+ "Asia/Dubai": "Abu Dhabi, Muscat",
+ "Asia/Baku": "Baku, Tbilisi, Yerevan",
+ "Asia/Kabul": "Kabul",
+ "Asia/Yekaterinburg": "Ekaterinburg",
+ "Asia/Karachi": "Islamabad, Karachi, Tashkent",
+ "Asia/Kolkata": "Chennai, Kolkata, Mumbai, New Delhi",
+ "Asia/Kathmandu": "Kathmandu",
+ "Asia/Dhaka": "Astana, Dhaka",
+ "Asia/Colombo": "Sri Jayawardenepura",
+ "Asia/Almaty": "Almaty, Novosibirsk",
+ "Asia/Rangoon": "Yangon Rangoon",
+ "Asia/Bangkok": "Bangkok, Hanoi, Jakarta",
+ "Asia/Krasnoyarsk": "Krasnoyarsk",
+ "Asia/Shanghai": "Beijing, Chongqing, Hong Kong SAR, Urumqi",
+ "Asia/Kuala_Lumpur": "Kuala Lumpur, Singapore",
+ "Asia/Taipei": "Taipei",
+ "Australia/Perth": "Perth",
+ "Asia/Irkutsk": "Irkutsk, Ulaanbaatar",
+ "Asia/Seoul": "Seoul",
+ "Asia/Tokyo": "Osaka, Sapporo, Tokyo",
+ "Asia/Yakutsk": "Yakutsk",
+ "Australia/Darwin": "Darwin",
+ "Australia/Adelaide": "Adelaide",
+ "Australia/Sydney": "Canberra, Melbourne, Sydney",
+ "Australia/Brisbane": "Brisbane",
+ "Australia/Hobart": "Hobart",
+ "Asia/Vladivostok": "Vladivostok",
+ "Pacific/Guam": "Guam, Port Moresby",
+ "Asia/Magadan": "Magadan, Solomon Islands, New Caledonia",
+ "Asia/Kamchatka": "Kamchatka, Marshall Islands",
+ "Pacific/Fiji": "Fiji Islands",
+ "Pacific/Auckland": "Auckland, Wellington",
+ "Pacific/Tongatapu": "Nuku'alofa"
+}
diff --git a/components/tooltip.tsx b/components/tooltip.tsx
new file mode 100644
index 000000000..095110af8
--- /dev/null
+++ b/components/tooltip.tsx
@@ -0,0 +1,125 @@
+import { Transition } from "@headlessui/react";
+import { Placement } from "@popperjs/core";
+import clsx from "clsx";
+import * as React from "react";
+import ReactDOM from "react-dom";
+import { usePopper } from "react-popper";
+import { useClickAway, useDebounce } from "react-use";
+import { preventWidows } from "utils/prevent-widows";
+
+export interface TooltipProps {
+ placement?: Placement;
+ children?: React.ReactNode;
+ content?: React.ReactNode;
+ disabled?: boolean;
+ className?: string;
+}
+
+const Tooltip: React.VoidFunctionComponent<TooltipProps> = ({
+ placement,
+ className,
+ children,
+ disabled,
+ content,
+}) => {
+ const [referenceElement, setReferenceElement] =
+ React.useState<HTMLDivElement | null>(null);
+ const [popperElement, setPopperElement] =
+ React.useState<HTMLDivElement | null>(null);
+ const [arrowElement, setArrowElement] =
+ React.useState<HTMLDivElement | null>(null);
+
+ const { styles, attributes } = usePopper(referenceElement, popperElement, {
+ placement,
+ modifiers: [
+ {
+ name: "offset",
+ options: {
+ offset: [0, 14],
+ },
+ },
+ { name: "arrow", options: { element: arrowElement, padding: 5 } },
+ ],
+ });
+
+ const [isVisible, setIsVisible] = React.useState(false);
+
+ const [debouncedValue, setDebouncedValue] = React.useState(false);
+
+ const [, cancel] = useDebounce(
+ () => {
+ setDebouncedValue(isVisible);
+ },
+ 300,
+ [isVisible],
+ );
+
+ const portal = document.getElementById("portal");
+
+ const [key, setKey] = React.useState(0);
+
+ React.useEffect(() => {
+ setKey((k) => k + 1);
+ }, [content]);
+
+ const ref = React.useRef<HTMLDivElement | null>(null);
+
+ useClickAway(ref, () => {
+ setIsVisible(false);
+ });
+
+ if (disabled) {
+ return <>{children}</>;
+ }
+ return (
+ <>
+ <div
+ key={key}
+ className={clsx("inline-block", className)}
+ onMouseEnter={() => {
+ setIsVisible(true);
+ }}
+ onMouseLeave={() => {
+ setIsVisible(false);
+ setDebouncedValue(false);
+ cancel();
+ }}
+ ref={(el) => {
+ setReferenceElement(el);
+ ref.current = el;
+ }}
+ >
+ {children}
+ </div>
+ {portal && debouncedValue
+ ? ReactDOM.createPortal(
+ <div
+ ref={setPopperElement}
+ style={styles.popper}
+ {...attributes.popper}
+ >
+ <Transition
+ className="tooltip"
+ as={"div"}
+ show={debouncedValue}
+ enter="transition transform duration-100"
+ enterFrom="opacity-0 -translate-y-2"
+ enterTo="opacity-100 translate-y-0"
+ >
+ <div
+ ref={setArrowElement}
+ className="tooltip-arrow"
+ style={styles.arrow}
+ data-popper-arrow
+ ></div>
+ {typeof content === "string" ? preventWidows(content) : content}
+ </Transition>
+ </div>,
+ portal,
+ )
+ : null}
+ </>
+ );
+};
+
+export default Tooltip;
diff --git a/components/transitions.tsx b/components/transitions.tsx
new file mode 100644
index 000000000..a9828f7cd
--- /dev/null
+++ b/components/transitions.tsx
@@ -0,0 +1,22 @@
+import { Transition } from "@headlessui/react";
+import * as React from "react";
+
+export const TransitionPopInOut: React.VoidFunctionComponent<{
+ children: React.ReactNode;
+ show?: boolean;
+}> = ({ children, show }) => {
+ return (
+ <Transition
+ show={show}
+ as={React.Fragment}
+ enter="transition ease-out duration-100"
+ enterFrom="transform opacity-0 scale-95"
+ enterTo="transform opacity-100 scale-100"
+ leave="transition ease-in duration-75"
+ leaveFrom="transform opacity-100 scale-100"
+ leaveTo="transform opacity-0 scale-95"
+ >
+ {children}
+ </Transition>
+ );
+};
diff --git a/components/use-poll.ts b/components/use-poll.ts
new file mode 100644
index 000000000..0e0ed03a1
--- /dev/null
+++ b/components/use-poll.ts
@@ -0,0 +1,12 @@
+import { GetPollResponse } from "api-client/get-poll";
+import React from "react";
+
+export const PollContext = React.createContext<GetPollResponse | null>(null);
+
+export const usePoll = () => {
+ const context = React.useContext(PollContext);
+ if (!context) {
+ throw new Error("Tried to get poll from context but got undefined");
+ }
+ return context;
+};
diff --git a/components/user-name-context.tsx b/components/user-name-context.tsx
new file mode 100644
index 000000000..544d37d66
--- /dev/null
+++ b/components/user-name-context.tsx
@@ -0,0 +1,12 @@
+import React from "react";
+
+export const UserNameContext =
+ React.createContext<[string, (userName: string) => void] | null>(null);
+
+export const useUserName = () => {
+ const contextValue = React.useContext(UserNameContext);
+ if (contextValue === null) {
+ throw new Error("Missing UserNameContext.Provider");
+ }
+ return contextValue;
+};
diff --git a/db.ts b/db.ts
new file mode 100644
index 000000000..a0d1c5b4b
--- /dev/null
+++ b/db.ts
@@ -0,0 +1,11 @@
+import { PrismaClient } from "@prisma/client";
+
+declare global {
+ // allow global `var` declarations
+ // eslint-disable-next-line no-var
+ var prisma: PrismaClient | undefined;
+}
+
+export const prisma = global.prisma || new PrismaClient();
+
+if (process.env.NODE_ENV !== "production") global.prisma = prisma;
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 000000000..fd508ad88
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,25 @@
+version: "3.3"
+services:
+ rallly_db:
+ image: postgres:14.2
+ restart: always
+ volumes:
+ - db-data:/var/lib/postgresql/data
+ environment:
+ - POSTGRES_PASSWORD=postgres
+
+ rallly:
+ build:
+ context: .
+ args:
+ - DATABASE_URL=postgres://postgres:postgres@rallly_db:5432/db?pgbouncer=true
+ restart: always
+ command: sh -c "DATABASE_URL=postgres://postgres:postgres@rallly_db:5432/db yarn prisma migrate deploy && yarn start"
+ depends_on:
+ - rallly_db
+ ports:
+ - 3000:3000
+
+volumes:
+ db-data:
+ driver: local
diff --git a/environment.d.ts b/environment.d.ts
new file mode 100644
index 000000000..a314802d8
--- /dev/null
+++ b/environment.d.ts
@@ -0,0 +1,16 @@
+declare global {
+ namespace NodeJS {
+ interface ProcessEnv {
+ DATABASE_URL: string;
+ NODE_ENV: "development" | "production";
+ JWT_SECRET: string;
+ SENDGRID_API_KEY?: string;
+ MAINTENANCE_MODE?: "true";
+ PLAUSIBLE_DOMAIN?: string;
+ NEXT_PUBLIC_CRISP_WEBSITE_ID?: string;
+ LEGACY_MONGODB_URI?: string;
+ }
+ }
+}
+
+export {};
diff --git a/i18next.d.ts b/i18next.d.ts
new file mode 100644
index 000000000..32f02d6d2
--- /dev/null
+++ b/i18next.d.ts
@@ -0,0 +1,13 @@
+import "react-i18next";
+
+import app from "./public/locales/en/app.json";
+import homepage from "./public/locales/en/homepage.json";
+import support from "./public/locales/en/support.json";
+
+declare module "next-i18next" {
+ interface Resources {
+ homepage: typeof homepage;
+ support: typeof support;
+ app: typeof app;
+ }
+}
diff --git a/migrations/20220315143815_init/migration.sql b/migrations/20220315143815_init/migration.sql
new file mode 100644
index 000000000..7daf63058
--- /dev/null
+++ b/migrations/20220315143815_init/migration.sql
@@ -0,0 +1,94 @@
+-- CreateEnum
+CREATE TYPE "PollType" AS ENUM ('date');
+
+-- CreateTable
+CREATE TABLE "User" (
+ "id" TEXT NOT NULL,
+ "name" TEXT NOT NULL,
+ "email" TEXT NOT NULL,
+
+ CONSTRAINT "User_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "Poll" (
+ "urlId" TEXT NOT NULL,
+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "updatedAt" TIMESTAMP(3) NOT NULL,
+ "deadline" TIMESTAMP(3),
+ "title" TEXT NOT NULL,
+ "type" "PollType" NOT NULL,
+ "description" TEXT,
+ "location" TEXT,
+ "userId" TEXT NOT NULL,
+ "verificationCode" TEXT NOT NULL,
+ "timeZone" TEXT,
+ "verified" BOOLEAN NOT NULL DEFAULT false,
+ "authorName" TEXT NOT NULL DEFAULT E'',
+ "demo" BOOLEAN NOT NULL DEFAULT false,
+
+ CONSTRAINT "Poll_pkey" PRIMARY KEY ("urlId")
+);
+
+-- CreateTable
+CREATE TABLE "Participant" (
+ "id" TEXT NOT NULL,
+ "name" TEXT NOT NULL,
+ "userId" TEXT,
+ "pollId" TEXT NOT NULL,
+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+
+ CONSTRAINT "Participant_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "Option" (
+ "id" TEXT NOT NULL,
+ "value" TEXT NOT NULL,
+ "pollId" TEXT NOT NULL,
+
+ CONSTRAINT "Option_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "Vote" (
+ "id" TEXT NOT NULL,
+ "participantId" TEXT NOT NULL,
+ "optionId" TEXT NOT NULL,
+ "pollId" TEXT NOT NULL,
+
+ CONSTRAINT "Vote_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Poll_urlId_key" ON "Poll"("urlId");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Poll_urlId_verificationCode_key" ON "Poll"("urlId", "verificationCode");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Participant_id_pollId_key" ON "Participant"("id", "pollId");
+
+-- AddForeignKey
+ALTER TABLE "Poll" ADD CONSTRAINT "Poll_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "Participant" ADD CONSTRAINT "Participant_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "Participant" ADD CONSTRAINT "Participant_pollId_fkey" FOREIGN KEY ("pollId") REFERENCES "Poll"("urlId") ON DELETE RESTRICT ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "Option" ADD CONSTRAINT "Option_pollId_fkey" FOREIGN KEY ("pollId") REFERENCES "Poll"("urlId") ON DELETE RESTRICT ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "Vote" ADD CONSTRAINT "Vote_pollId_fkey" FOREIGN KEY ("pollId") REFERENCES "Poll"("urlId") ON DELETE RESTRICT ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "Vote" ADD CONSTRAINT "Vote_participantId_fkey" FOREIGN KEY ("participantId") REFERENCES "Participant"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "Vote" ADD CONSTRAINT "Vote_optionId_fkey" FOREIGN KEY ("optionId") REFERENCES "Option"("id") ON DELETE CASCADE ON UPDATE CASCADE;
diff --git a/migrations/20220322193753_add_comments/migration.sql b/migrations/20220322193753_add_comments/migration.sql
new file mode 100644
index 000000000..dc1dbb95d
--- /dev/null
+++ b/migrations/20220322193753_add_comments/migration.sql
@@ -0,0 +1,20 @@
+-- CreateTable
+CREATE TABLE "Comment" (
+ "id" TEXT NOT NULL,
+ "content" TEXT NOT NULL,
+ "pollId" TEXT NOT NULL,
+ "authorName" TEXT NOT NULL,
+ "userId" TEXT,
+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+
+ CONSTRAINT "Comment_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Comment_id_pollId_key" ON "Comment"("id", "pollId");
+
+-- AddForeignKey
+ALTER TABLE "Comment" ADD CONSTRAINT "Comment_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "Comment" ADD CONSTRAINT "Comment_pollId_fkey" FOREIGN KEY ("pollId") REFERENCES "Poll"("urlId") ON DELETE RESTRICT ON UPDATE CASCADE;
diff --git a/migrations/20220329102907_add_links/migration.sql b/migrations/20220329102907_add_links/migration.sql
new file mode 100644
index 000000000..c13d4743d
--- /dev/null
+++ b/migrations/20220329102907_add_links/migration.sql
@@ -0,0 +1,47 @@
+-- Create nanoid function
+CREATE EXTENSION IF NOT EXISTS pgcrypto;
+
+CREATE OR REPLACE FUNCTION nanoid(size int DEFAULT 21)
+RETURNS text AS $$
+DECLARE
+ id text := '';
+ i int := 0;
+ urlAlphabet char(64) := 'ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW';
+ bytes bytea := gen_random_bytes(size);
+ byte int;
+ pos int;
+BEGIN
+ WHILE i < size LOOP
+ byte := get_byte(bytes, i);
+ pos := (byte & 63) + 1; -- + 1 because substr starts at 1 for some reason
+ id := id || substr(urlAlphabet, pos, 1);
+ i = i + 1;
+ END LOOP;
+ RETURN id;
+END
+$$ LANGUAGE PLPGSQL STABLE;
+
+-- CreateEnum
+CREATE TYPE "Role" AS ENUM ('admin', 'participant');
+
+-- CreateTable
+CREATE TABLE "Link" (
+ "urlId" TEXT NOT NULL,
+ "role" "Role" NOT NULL,
+ "pollId" TEXT NOT NULL,
+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+
+ CONSTRAINT "Link_pkey" PRIMARY KEY ("urlId")
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Link_urlId_key" ON "Link"("urlId");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Link_pollId_role_key" ON "Link"("pollId", "role");
+
+-- AddForeignKey
+ALTER TABLE "Link" ADD CONSTRAINT "Link_pollId_fkey" FOREIGN KEY ("pollId") REFERENCES "Poll"("urlId") ON DELETE RESTRICT ON UPDATE CASCADE;
+
+INSERT INTO "Link" ("urlId", "pollId", "role") SELECT "urlId", "urlId", 'admin' as "role" FROM "Poll";
+INSERT INTO "Link" ("urlId", "pollId", "role") SELECT nanoid(), "urlId", 'participant' as "role" FROM "Poll";
\ No newline at end of file
diff --git a/migrations/20220330085423_add_notifications_column/migration.sql b/migrations/20220330085423_add_notifications_column/migration.sql
new file mode 100644
index 000000000..7983dc264
--- /dev/null
+++ b/migrations/20220330085423_add_notifications_column/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "Poll" ADD COLUMN "notifications" BOOLEAN NOT NULL DEFAULT false;
diff --git a/migrations/20220408120721_legacy_column/migration.sql b/migrations/20220408120721_legacy_column/migration.sql
new file mode 100644
index 000000000..5985285c6
--- /dev/null
+++ b/migrations/20220408120721_legacy_column/migration.sql
@@ -0,0 +1,3 @@
+-- AlterTable
+ALTER TABLE "Poll" ADD COLUMN "closed" BOOLEAN NOT NULL DEFAULT false,
+ADD COLUMN "legacy" BOOLEAN NOT NULL DEFAULT false;
diff --git a/migrations/migration_lock.toml b/migrations/migration_lock.toml
new file mode 100644
index 000000000..fbffa92c2
--- /dev/null
+++ b/migrations/migration_lock.toml
@@ -0,0 +1,3 @@
+# Please do not edit this file manually
+# It should be added in your version-control system (i.e. Git)
+provider = "postgresql"
\ No newline at end of file
diff --git a/next-env.d.ts b/next-env.d.ts
new file mode 100644
index 000000000..4f11a03dc
--- /dev/null
+++ b/next-env.d.ts
@@ -0,0 +1,5 @@
+/// <reference types="next" />
+/// <reference types="next/image-types/global" />
+
+// NOTE: This file should not be edited
+// see https://nextjs.org/docs/basic-features/typescript for more information.
diff --git a/next-i18next.config.js b/next-i18next.config.js
new file mode 100644
index 000000000..30e3f8b7f
--- /dev/null
+++ b/next-i18next.config.js
@@ -0,0 +1,10 @@
+const path = require("path");
+
+module.exports = {
+ i18n: {
+ defaultLocale: "en",
+ locales: ["en"],
+ localePath: path.resolve("./public/locales"),
+ reloadOnPrerender: process.env.NODE_ENV === "development",
+ },
+};
diff --git a/next.config.js b/next.config.js
new file mode 100644
index 000000000..9d5c63957
--- /dev/null
+++ b/next.config.js
@@ -0,0 +1,67 @@
+// This file sets a custom webpack configuration to use your Next.js app
+// with Sentry.
+// https://nextjs.org/docs/api-reference/next.config.js/introduction
+// https://docs.sentry.io/platforms/javascript/guides/nextjs/
+
+const { withSentryConfig } = require("@sentry/nextjs");
+const { i18n } = require("./next-i18next.config");
+const withBundleAnalyzer = require("@next/bundle-analyzer")({
+ enabled: process.env.ANALYZE === "true",
+});
+
+const moduleExports = {
+ future: {
+ webpack5: false,
+ },
+ i18n: i18n,
+ productionBrowserSourceMaps: true,
+ webpack(config) {
+ config.module.rules.push({
+ test: /\.svg$/,
+ use: ["@svgr/webpack"],
+ });
+
+ return config;
+ },
+ typescript: {
+ ignoreBuildErrors: true,
+ },
+ async rewrites() {
+ return [
+ {
+ source: "/",
+ destination: "/home",
+ },
+ {
+ source: "/:urlId",
+ destination: "/poll?urlId=:urlId",
+ },
+ {
+ source: "/p/:urlId",
+ destination: "/poll?urlId=:urlId",
+ },
+ {
+ source: "/admin/:urlId",
+ destination: "/poll?urlId=:urlId",
+ },
+ ];
+ },
+};
+
+const sentryWebpackPluginOptions = {
+ // Additional config options for the Sentry Webpack plugin. Keep in mind that
+ // the following options are set automatically, and overriding them is not
+ // recommended:
+ // release, url, org, project, authToken, configFile, stripPrefix,
+ // urlPrefix, include, ignore
+ dryRun: !process.env.SENTRY_AUTH_TOKEN,
+ silent: true, // Suppresses all logs
+ // For all available options, see:
+ // https://github.com/getsentry/sentry-webpack-plugin#options.
+};
+
+// Make sure adding Sentry options is the last code to run before exporting, to
+// ensure that your source maps include changes from all other Webpack plugins
+module.exports = withBundleAnalyzer(
+ withSentryConfig(moduleExports, sentryWebpackPluginOptions),
+);
diff --git a/nodemailer-sendgrid-transport.d.ts b/nodemailer-sendgrid-transport.d.ts
new file mode 100644
index 000000000..6eef78f29
--- /dev/null
+++ b/nodemailer-sendgrid-transport.d.ts
@@ -0,0 +1,4 @@
+declare module "nodemailer-sendgrid-transport" {
+ function sgTransport(options: { auth: { api_key: string } }): SMTPTransport;
+ export default sgTransport;
+}
diff --git a/package.json b/package.json
new file mode 100644
index 000000000..f0f9d0794
--- /dev/null
+++ b/package.json
@@ -0,0 +1,79 @@
+{
+ "name": "rallly2",
+ "version": "0.1.0",
+ "private": true,
+ "scripts": {
+ "dev": "TAILWIND_MODE=watch next dev",
+ "postinstall": "prisma generate",
+ "build": "next build",
+ "analyze": "ANALYZE=true next build",
+ "start": "next start",
+ "lint": "next lint",
+ "test": "playwright test"
+ },
+ "dependencies": {
+ "@headlessui/react": "^1.5.0",
+ "@next/bundle-analyzer": "^12.1.0",
+ "@popperjs/core": "^2.11.4",
+ "@prisma/client": "^3.11.0",
+ "@sentry/nextjs": "^6.19.3",
+ "@svgr/webpack": "^6.2.1",
+ "@tailwindcss/forms": "^0.4.0",
+ "@tailwindcss/typography": "^0.5.2",
+ "axios": "^0.24.0",
+ "clsx": "^1.1.1",
+ "date-fns": "^2.28.0",
+ "date-fns-tz": "^1.2.2",
+ "eta": "^1.12.3",
+ "framer-motion": "^6.2.9",
+ "jose": "^4.5.1",
+ "js-cookie": "^3.0.1",
+ "lodash": "^4.17.21",
+ "mongodb": "^4.5.0",
+ "nanoid": "^3.1.30",
+ "next": "^12.1.4",
+ "next-i18next": "^10.5.0",
+ "next-plausible": "^3.1.9",
+ "nodemailer": "^6.7.2",
+ "nodemailer-sendgrid-transport": "^0.2.0",
+ "prisma": "^3.11.0",
+ "react": "17.0.2",
+ "react-big-calendar": "^0.38.9",
+ "react-dom": "17.0.2",
+ "react-github-btn": "^1.2.2",
+ "react-hook-form": "^7.27.0",
+ "react-hot-toast": "^2.2.0",
+ "react-i18next": "^11.15.4",
+ "react-popper": "^2.2.5",
+ "react-query": "^3.34.12",
+ "react-use": "^17.3.2",
+ "smoothscroll-polyfill": "^0.4.4",
+ "spacetime": "^7.1.2",
+ "timezone-soft": "^1.3.1",
+ "typescript": "^4.5.2"
+ },
+ "devDependencies": {
+ "@playwright/test": "^1.20.1",
+ "@types/lodash": "^4.14.178",
+ "@types/mixpanel-browser": "^2.38.0",
+ "@types/nodemailer": "^6.4.4",
+ "@types/react": "^17.0.5",
+ "@types/react-big-calendar": "^0.31.0",
+ "@types/react-dom": "^17.0.13",
+ "@types/smoothscroll-polyfill": "^0.3.1",
+ "@typescript-eslint/eslint-plugin": "^4.23.0",
+ "@typescript-eslint/parser": "^4.23.0",
+ "autoprefixer": "^10.4.2",
+ "eslint": "^7.26.0",
+ "eslint-config-next": "12.1.0",
+ "eslint-import-resolver-typescript": "^2.7.0",
+ "eslint-plugin-import": "^2.22.1",
+ "eslint-plugin-react": "^7.23.2",
+ "eslint-plugin-react-hooks": "^4.2.0",
+ "eslint-plugin-simple-import-sort": "^7.0.0",
+ "postcss": "^8.4.6",
+ "prettier": "^2.3.0",
+ "tailwindcss": "^3.0.23",
+ "wait-on": "^6.0.1"
+ }
+}
diff --git a/pages/404.tsx b/pages/404.tsx
new file mode 100644
index 000000000..8369c769e
--- /dev/null
+++ b/pages/404.tsx
@@ -0,0 +1,15 @@
+import ErrorPage from "@/components/error-page";
+import DocumentSearch from "@/components/icons/document-search.svg";
+import React from "react";
+
+const Custom404: React.VoidFunctionComponent = () => {
+ return (
+ <ErrorPage
+ icon={DocumentSearch}
+ title="404 not found"
+ description="We couldn't find the page you're looking for."
+ />
+ );
+};
+
+export default Custom404;
diff --git a/pages/_app.tsx b/pages/_app.tsx
new file mode 100644
index 000000000..01e2bd8dd
--- /dev/null
+++ b/pages/_app.tsx
@@ -0,0 +1,53 @@
+import { NextPage } from "next";
+import { appWithTranslation } from "next-i18next";
+import PlausibleProvider from "next-plausible";
+import { AppProps } from "next/app";
+import dynamic from "next/dynamic";
+import Head from "next/head";
+import "react-big-calendar/lib/css/react-big-calendar.css";
+import toast, { Toaster } from "react-hot-toast";
+import { MutationCache, QueryClient, QueryClientProvider } from "react-query";
+import { useSessionStorage } from "react-use";
+import "tailwindcss/tailwind.css";
+import { UserNameContext } from "../components/user-name-context";
+import "../style.css";
+
+const CrispChat = dynamic(() => import("@/components/crisp-chat"), {
+ ssr: false,
+});
+
+const queryClient = new QueryClient({
+ mutationCache: new MutationCache({
+ onError: () => {
+ toast.error(
+ "Uh oh! Something went wrong. The issue has been logged and we'll fix it as soon as possible. Please try again later.",
+ );
+ },
+ }),
+});
+
+const MyApp: NextPage<AppProps> = ({ Component, pageProps }) => {
+ const sessionUserName = useSessionStorage<string>("userName", "");
+
+ return (
+ <PlausibleProvider
+ domain="rallly.co"
+ customDomain={process.env.PLAUSIBLE_DOMAIN}
+ selfHosted={true}
+ enabled={!!process.env.PLAUSIBLE_DOMAIN}
+ >
+ <QueryClientProvider client={queryClient}>
+ <Head>
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ </Head>
+ <CrispChat />
+ <Toaster />
+ <UserNameContext.Provider value={sessionUserName}>
+ <Component {...pageProps} />
+ </UserNameContext.Provider>
+ </QueryClientProvider>
+ </PlausibleProvider>
+ );
+};
+
+export default appWithTranslation(MyApp);
diff --git a/pages/_document.tsx b/pages/_document.tsx
new file mode 100644
index 000000000..feeb8a14e
--- /dev/null
+++ b/pages/_document.tsx
@@ -0,0 +1,41 @@
+import { Head, Html, Main, NextScript } from "next/document";
+import React from "react";
+
+export default function Document() {
+ return (
+ <Html>
+ <Head>
+ <link
+ rel="apple-touch-icon"
+ sizes="180x180"
+ href="/apple-touch-icon.png"
+ />
+ <link
+ rel="icon"
+ type="image/png"
+ sizes="32x32"
+ href="/favicon-32x32.png"
+ />
+ <link
+ rel="icon"
+ type="image/png"
+ sizes="16x16"
+ href="/favicon-16x16.png"
+ />
+ <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
+ <link rel="manifest" href="/site.webmanifest" />
+ <link
+ rel="stylesheet"
+ href="https://cdnjs.cloudflare.com/ajax/libs/inter-ui/3.19.3/inter.min.css"
+ integrity="sha512-8vEtrrc40OAQaCUaqVjNMQtQEPyNtllVG1RYy6bGEuWQkivCBeqOzuDJPPhD+MO6y6QGLuQYPCr8Nlzu9lTYaQ=="
+ crossOrigin="anonymous"
+ />
+ </Head>
+ <body>
+ <Main />
+ <NextScript />
+ <div id="portal"></div>
+ </body>
+ </Html>
+ );
+}
diff --git a/pages/_error.tsx b/pages/_error.tsx
new file mode 100644
index 000000000..8d86aa186
--- /dev/null
+++ b/pages/_error.tsx
@@ -0,0 +1,79 @@
+import NextErrorComponent, { ErrorProps as NextErrorProps } from "next/error";
+import { NextPage, NextPageContext } from "next";
+
+import * as Sentry from "@sentry/nextjs";
+
+interface ErrorProps extends NextErrorProps {
+ hasGetInitialPropsRun?: boolean;
+ err: Error;
+}
+
+/**
+ * This custom error page is based on the Sentry example, with added TypeScript
+ * @see https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
+ */
+const Page: NextPage<ErrorProps> = ({
+ statusCode,
+ hasGetInitialPropsRun,
+ err,
+}) => {
+ if (!hasGetInitialPropsRun && err) {
+ // getInitialProps is not called in case of
+ // https://github.com/vercel/next.js/issues/8592. As a workaround, we pass
+ // err via _app.js so it can be captured
+ Sentry.captureException(err);
+ // Flushing is not required in this case as it only happens on the client
+ }
+
+ return <NextErrorComponent statusCode={statusCode} />;
+};
+
+Page.getInitialProps = async ({
+ res,
+ err,
+ asPath,
+}: NextPageContext): Promise<ErrorProps> => {
+ const errorInitialProps = (await NextErrorComponent.getInitialProps({
+ res,
+ err,
+ } as NextPageContext)) as ErrorProps;
+
+ // Workaround for https://github.com/vercel/next.js/issues/8592, mark when
+ // getInitialProps has run
+ errorInitialProps.hasGetInitialPropsRun = true;
+
+ // Running on the server, the response object (`res`) is available.
+ //
+ // Next.js will pass an err on the server if a page's data fetching methods
+ // threw or returned a Promise that rejected
+ //
+ // Running on the client (browser), Next.js will provide an err if:
+ //
+ // - a page's `getInitialProps` threw or returned a Promise that rejected
+ // - an exception was thrown somewhere in the React lifecycle (render,
+ // componentDidMount, etc) that was caught by Next.js's React Error
+ // Boundary. Read more about what types of exceptions are caught by Error
+ // Boundaries: https://reactjs.org/docs/error-boundaries.html
+
+ if (err) {
+ Sentry.captureException(err);
+
+ // Flushing before returning is necessary if deploying to Vercel, see
+ // https://vercel.com/docs/platform/limits#streaming-responses
+ await Sentry.flush(2000);
+
+ return errorInitialProps;
+ }
+
+ // If this point is reached, getInitialProps was called without any
+ // information about what the error might be. This is unexpected and may
+ // indicate a bug introduced in Next.js, so record it in Sentry
+ Sentry.captureException(
+ new Error(`_error.js getInitialProps missing data at path: ${asPath}`),
+ );
+ await Sentry.flush(2000);
+
+ return errorInitialProps;
+};
+
+export default Page;
diff --git a/pages/_middleware.ts b/pages/_middleware.ts
new file mode 100644
index 000000000..3c859adb3
--- /dev/null
+++ b/pages/_middleware.ts
@@ -0,0 +1,14 @@
+import { NextMiddleware, NextResponse } from "next/server";
+import { isInMaintenanceMode } from "../utils/constants";
+
+export const middleware: NextMiddleware = async (req) => {
+ // redirect user to maintenance page if we're in maintenance mode
+
+ if (isInMaintenanceMode && req.nextUrl.pathname !== "/maintenance") {
+ const url = req.nextUrl.clone();
+ url.pathname = "/maintenance";
+ return NextResponse.redirect(url, 302);
+ }
+
+ return NextResponse.next();
+};
diff --git a/pages/api/legacy/[urlId].ts b/pages/api/legacy/[urlId].ts
new file mode 100644
index 000000000..0e4997812
--- /dev/null
+++ b/pages/api/legacy/[urlId].ts
@@ -0,0 +1,202 @@
+import { GetPollApiResponse } from "api-client/get-poll";
+import { ObjectId } from "mongodb";
+import { NextApiRequest, NextApiResponse } from "next";
+import { exclude, getQueryParam } from "utils/api-utils";
+import { getMongoClient } from "utils/mongodb-client";
+import { nanoid } from "utils/nanoid";
+import { prisma } from "../../../db";
+
+interface LegacyPoll {
+ __private: {
+ verificationCode: string;
+ };
+ _id: string;
+ title: string;
+ location: string;
+ isExample: boolean;
+ isDeleted: boolean;
+ isClosed: boolean;
+ emails: string[];
+ description: string;
+ dates?: Date[];
+ creator: {
+ name: string;
+ email: string;
+ isVerified: boolean;
+ allowNotifications: boolean;
+ };
+ created: Date;
+ comments?: Array<{
+ _id: ObjectId;
+ author: {
+ name: string;
+ };
+ content: string;
+ created: Date;
+ }>;
+ participants?: Array<{
+ _id: ObjectId;
+ name: string;
+ votes?: boolean[];
+ }>;
+}
+
+export default async function handler(
+ req: NextApiRequest,
+ res: NextApiResponse<GetPollApiResponse>,
+) {
+ const urlId = getQueryParam(req, "urlId");
+
+ const existingPoll = await prisma.poll.findUnique({ where: { urlId } });
+
+ if (existingPoll) {
+ // if the poll already exists with this id then we probably shouldn't be here
+ return res.status(400).end();
+ }
+
+ const client = await getMongoClient();
+ if (!client) {
+ // This environment is not configured to retrieve legacy polls
+ // from mongodb
+ return res.status(404).end();
+ }
+
+ const db = client.db("rallly-db");
+ const collection = db.collection("events");
+
+ const legacyPoll = await collection.findOne<LegacyPoll>({ _id: urlId });
+
+ if (
+ !legacyPoll ||
+ !legacyPoll.dates ||
+ legacyPoll.dates.length === 0 ||
+ legacyPoll.isDeleted === true
+ ) {
+ // return 404 if poll is missing or malformed or deleted
+ return res.status(404).end();
+ }
+
+ const newOptions: Array<{ id: string; value: string }> = [];
+
+ for (let i = 0; i < legacyPoll.dates.length; i++) {
+ const date = legacyPoll.dates[i].toISOString();
+ newOptions.push({
+ id: await nanoid(),
+ value: date.substring(0, date.indexOf("T")), // remove time
+ });
+ }
+
+ const newParticipants = legacyPoll.participants?.map((legacyParticipant) => ({
+ name: legacyParticipant.name,
+ id: legacyParticipant._id.toString(),
+ }));
+
+ const votes: Array<{ optionId: string; participantId: string }> = [];
+
+ newParticipants?.forEach((p, i) => {
+ const legacyVotes = legacyPoll.participants![i].votes;
+ legacyVotes?.forEach((v, j) => {
+ if (v) {
+ votes.push({
+ optionId: newOptions[j].id,
+ participantId: p.id,
+ });
+ }
+ });
+ });
+
+ const poll = await prisma.poll.create({
+ data: {
+ legacy: true,
+ closed: legacyPoll.isClosed,
+ urlId: legacyPoll._id,
+ title: legacyPoll.title,
+ location: legacyPoll.location,
+ description: legacyPoll.description,
+ demo: legacyPoll.isExample,
+ createdAt: new Date(legacyPoll.created),
+ type: "date",
+ authorName: legacyPoll.creator.name,
+ verified: legacyPoll.creator.isVerified,
+ user: {
+ connectOrCreate: {
+ where: {
+ email: legacyPoll.creator.email,
+ },
+ create: {
+ id: await nanoid(),
+ email: legacyPoll.creator.email,
+ name: legacyPoll.creator.name,
+ },
+ },
+ },
+ verificationCode: await nanoid(), // can't get it from api
+ options: {
+ createMany: {
+ data: newOptions,
+ },
+ },
+ participants: {
+ createMany: {
+ data: newParticipants ?? [],
+ },
+ },
+ votes: {
+ createMany: {
+ data: votes,
+ },
+ },
+ comments: {
+ createMany: {
+ data:
+ legacyPoll.comments?.map((legacyComment) => ({
+ content: legacyComment.content,
+ createdAt: new Date(legacyComment.created),
+ authorName: legacyComment.author.name,
+ })) ?? [],
+ },
+ },
+ links: {
+ createMany: {
+ data: [
+ {
+ role: "admin",
+ urlId: legacyPoll._id,
+ },
+ {
+ role: "participant",
+ urlId: await nanoid(),
+ },
+ ],
+ },
+ },
+ },
+ include: {
+ options: {
+ include: {
+ votes: true,
+ },
+ },
+ participants: {
+ include: {
+ votes: true,
+ },
+ orderBy: [
+ {
+ createdAt: "desc",
+ },
+ { name: "desc" },
+ ],
+ },
+ user: true,
+ links: true,
+ },
+ });
+
+ return res.json({
+ ...exclude(poll, "verificationCode"),
+ role: "admin",
+ urlId: poll.urlId,
+ pollId: poll.urlId,
+ });
+}
diff --git a/pages/api/poll/[urlId]/comments/[commentId].ts b/pages/api/poll/[urlId]/comments/[commentId].ts
new file mode 100644
index 000000000..877180961
--- /dev/null
+++ b/pages/api/poll/[urlId]/comments/[commentId].ts
@@ -0,0 +1,36 @@
+import { NextApiRequest, NextApiResponse } from "next";
+
+import { prisma } from "../../../../../db";
+import { getQueryParam } from "../../../../../utils/api-utils";
+
+export default async function handler(
+ req: NextApiRequest,
+ res: NextApiResponse,
+) {
+ const urlId = getQueryParam(req, "urlId");
+ const commentId = getQueryParam(req, "commentId");
+
+ const link = await prisma.link.findUnique({ where: { urlId } });
+
+ if (!link) {
+ return res.status(404).end();
+ }
+
+ switch (req.method) {
+ case "DELETE":
+ await prisma.comment.delete({
+ where: {
+ id_pollId: {
+ id: commentId,
+ pollId: link.pollId,
+ },
+ },
+ });
+
+ return res.end();
+ default:
+ return res
+ .status(405)
+ .json({ status: 405, message: "Method not allowed" });
+ }
+}
diff --git a/pages/api/poll/[urlId]/comments/index.ts b/pages/api/poll/[urlId]/comments/index.ts
new file mode 100644
index 000000000..c3f929340
--- /dev/null
+++ b/pages/api/poll/[urlId]/comments/index.ts
@@ -0,0 +1,86 @@
+import absoluteUrl from "utils/absolute-url";
+import { prisma } from "../../../../../db";
+import {
+ getAdminLink,
+ sendEmailTemplate,
+ withLink,
+} from "../../../../../utils/api-utils";
+
+export default withLink(async (req, res, link) => {
+ switch (req.method) {
+ case "GET": {
+ const comments = await prisma.comment.findMany({
+ where: {
+ pollId: link.pollId,
+ },
+ orderBy: [
+ {
+ createdAt: "asc",
+ },
+ ],
+ });
+
+ return res.json({ comments });
+ }
+ case "POST": {
+ const newComment = await prisma.comment.create({
+ data: {
+ content: req.body.content,
+ pollId: link.pollId,
+ authorName: req.body.authorName,
+ },
+ });
+
+ if (link.role === "participant") {
+ const poll = await prisma.poll.findUnique({
+ where: {
+ urlId: link.pollId,
+ },
+ include: {
+ links: true,
+ user: true,
+ },
+ });
+
+ if (poll?.notifications && poll.verified && !poll.demo) {
+ // Get the admin link
+ const adminLink = getAdminLink(poll.links);
+
+ if (adminLink) {
+ const homePageUrl = absoluteUrl(req).origin;
+ const pollUrl = `${homePageUrl}/admin/${adminLink.urlId}`;
+ const unsubscribeUrl = `${pollUrl}?unsubscribe=true`;
+
+ try {
+ await sendEmailTemplate({
+ templateName: "new-comment",
+ to: poll.user.email,
+ subject: `Rallly: ${poll.title} - New Comment`,
+ templateVars: {
+ title: poll.title,
+ name: poll.authorName,
+ author: newComment.authorName,
+ pollUrl,
+ homePageUrl: absoluteUrl(req).origin,
+ supportEmail: process.env.NEXT_PUBLIC_SUPPORT_EMAIL,
+ unsubscribeUrl,
+ },
+ });
+ } catch (e) {
+ console.error(e);
+ }
+ } else {
+ console.log(`Missing admin link for poll: ${link.pollId}`);
+ }
+ }
+ }
+
+ return res.json(newComment);
+ }
+
+ default:
+ return res
+ .status(405)
+ .json({ status: 405, message: "Method not allowed" });
+ }
+});
diff --git a/pages/api/poll/[urlId]/index.ts b/pages/api/poll/[urlId]/index.ts
new file mode 100644
index 000000000..26f3a7ef8
--- /dev/null
+++ b/pages/api/poll/[urlId]/index.ts
@@ -0,0 +1,138 @@
+import { GetPollApiResponse } from "api-client/get-poll";
+import { NextApiResponse } from "next";
+import { UpdatePollPayload } from "../../../../api-client/update-poll";
+import { prisma } from "../../../../db";
+import { exclude, withLink } from "../../../../utils/api-utils";
+
+export default withLink(
+ async (
+ req,
+ res: NextApiResponse<
+ GetPollApiResponse | { status: number; message: string }
+ >,
+ link,
+ ) => {
+ const pollId = link.pollId;
+
+ switch (req.method) {
+ case "GET": {
+ const poll = await prisma.poll.findUnique({
+ where: {
+ urlId: pollId,
+ },
+ include: {
+ options: {
+ include: {
+ votes: true,
+ },
+ },
+ participants: {
+ include: {
+ votes: true,
+ },
+ orderBy: [
+ {
+ createdAt: "desc",
+ },
+ { name: "desc" },
+ ],
+ },
+ user: true,
+ links: link.role === "admin",
+ },
+ });
+
+ if (!poll) {
+ return res
+ .status(404)
+ .json({ status: 404, message: "Poll not found" });
+ }
+
+ return res.json({
+ ...exclude(poll, "verificationCode"),
+ role: link.role,
+ urlId: link.urlId,
+ pollId: poll.urlId,
+ });
+ }
+ case "PATCH": {
+ if (link.role !== "admin") {
+ return res
+ .status(401)
+ .json({ status: 401, message: "Permission denied" });
+ }
+
+ const payload: Partial<UpdatePollPayload> = req.body;
+ if (payload.optionsToDelete && payload.optionsToDelete.length > 0) {
+ await prisma.option.deleteMany({
+ where: {
+ pollId,
+ id: {
+ in: payload.optionsToDelete,
+ },
+ },
+ });
+ }
+ if (payload.optionsToAdd && payload.optionsToAdd.length > 0) {
+ await prisma.option.createMany({
+ data: payload.optionsToAdd.map((optionValue) => ({
+ value: optionValue,
+ pollId,
+ })),
+ });
+ }
+ const poll = await prisma.poll.update({
+ where: {
+ urlId: pollId,
+ },
+ data: {
+ title: payload.title,
+ location: payload.location,
+ description: payload.description,
+ timeZone: payload.timeZone,
+ notifications: payload.notifications,
+ closed: payload.closed,
+ },
+ include: {
+ options: {
+ include: {
+ votes: true,
+ },
+ },
+ participants: {
+ include: {
+ votes: true,
+ },
+ orderBy: [
+ {
+ createdAt: "desc",
+ },
+ { name: "desc" },
+ ],
+ },
+ user: true,
+ links: true,
+ },
+ });
+
+ if (!poll) {
+ return res
+ .status(404)
+ .json({ status: 404, message: "Poll not found" });
+ }
+
+ return res.json({
+ ...exclude(poll, "verificationCode"),
+ role: link.role,
+ urlId: link.urlId,
+ pollId: poll.urlId,
+ });
+ }
+
+ default:
+ return res
+ .status(405)
+ .json({ status: 405, message: "Method not allowed" });
+ }
+ },
+);
diff --git a/pages/api/poll/[urlId]/participant/[participantId].ts b/pages/api/poll/[urlId]/participant/[participantId].ts
new file mode 100644
index 000000000..334cc7a83
--- /dev/null
+++ b/pages/api/poll/[urlId]/participant/[participantId].ts
@@ -0,0 +1,48 @@
+import { prisma } from "../../../../../db";
+import { withLink, getQueryParam } from "../../../../../utils/api-utils";
+
+export default withLink(async (req, res, link) => {
+ const participantId = getQueryParam(req, "participantId");
+
+ const pollId = link.pollId;
+ switch (req.method) {
+ case "PATCH":
+ await prisma.participant.update({
+ where: {
+ id_pollId: {
+ id: participantId,
+ pollId,
+ },
+ },
+ data: {
+ votes: {
+ deleteMany: {
+ pollId,
+ },
+ createMany: {
+ data: req.body.votes.map((optionId: string) => ({
+ optionId,
+ pollId,
+ })),
+ },
+ },
+ name: req.body.name,
+ },
+ });
+
+ return res.end();
+
+ case "DELETE":
+ await prisma.participant.delete({
+ where: {
+ id_pollId: {
+ id: participantId,
+ pollId,
+ },
+ },
+ });
+
+ return res.end();
+ default:
+ }
+});
diff --git a/pages/api/poll/[urlId]/participant/index.ts b/pages/api/poll/[urlId]/participant/index.ts
new file mode 100644
index 000000000..de3e47a47
--- /dev/null
+++ b/pages/api/poll/[urlId]/participant/index.ts
@@ -0,0 +1,82 @@
+import absoluteUrl from "utils/absolute-url";
+import { AddParticipantPayload } from "../../../../../api-client/add-participant";
+import { prisma } from "../../../../../db";
+import {
+ getAdminLink,
+ sendEmailTemplate,
+ withLink,
+} from "../../../../../utils/api-utils";
+
+export default withLink(async (req, res, link) => {
+ switch (req.method) {
+ case "POST": {
+ const payload: AddParticipantPayload = req.body;
+
+ const participant = await prisma.participant.create({
+ data: {
+ pollId: link.pollId,
+ name: payload.name,
+ votes: {
+ createMany: {
+ data: payload.votes.map((optionId) => ({
+ optionId,
+ pollId: link.pollId,
+ })),
+ },
+ },
+ },
+ include: {
+ votes: true,
+ },
+ });
+
+ if (link.role === "participant") {
+ const poll = await prisma.poll.findUnique({
+ where: {
+ urlId: link.pollId,
+ },
+ include: {
+ user: true,
+ links: true,
+ },
+ });
+
+ if (poll?.notifications && poll.verified && !poll.demo) {
+ // Get the admin link
+ const adminLink = getAdminLink(poll.links);
+
+ if (adminLink) {
+ const homePageUrl = absoluteUrl(req).origin;
+ const pollUrl = `${homePageUrl}/admin/${adminLink.urlId}`;
+ const unsubscribeUrl = `${pollUrl}?unsubscribe=true`;
+
+ try {
+ await sendEmailTemplate({
+ templateName: "new-participant",
+ to: poll.user.email,
+ subject: `Rallly: ${poll.title} - New Participant`,
+ templateVars: {
+ title: poll.title,
+ name: poll.authorName,
+ participantName: participant.name,
+ pollUrl,
+ homePageUrl: absoluteUrl(req).origin,
+ supportEmail: process.env.NEXT_PUBLIC_SUPPORT_EMAIL,
+ unsubscribeUrl,
+ },
+ });
+ } catch (e) {
+ console.error(e);
+ }
+ } else {
+ console.error(`Missing admin link for poll: ${link.pollId}`);
+ }
+ }
+ }
+
+ return res.json(participant);
+ }
+ default:
+ return res.status(405).json({ ok: 1 });
+ }
+});
diff --git a/pages/api/poll/[urlId]/verify.ts b/pages/api/poll/[urlId]/verify.ts
new file mode 100644
index 000000000..16bba0bcf
--- /dev/null
+++ b/pages/api/poll/[urlId]/verify.ts
@@ -0,0 +1,32 @@
+import { prisma } from "../../../../db";
+import { withLink } from "../../../../utils/api-utils";
+
+export default withLink(async (req, res, link) => {
+ if (req.method === "POST") {
+ if (link.role !== "admin") {
+ return res.status(401).end();
+ }
+ const { verificationCode } = req.body;
+ try {
+ await prisma.poll.update({
+ where: {
+ urlId_verificationCode: {
+ urlId: link.pollId,
+ verificationCode,
+ },
+ },
+ data: {
+ verified: true,
+ },
+ });
+ return res.end();
+ } catch {
+ console.error(
+ `Failed to verify poll "${link.pollId}" with code ${verificationCode}`,
+ );
+ return res.status(500).end();
+ }
+ }
+
+ return res.status(405).end();
+});
diff --git a/pages/api/poll/create-demo.ts b/pages/api/poll/create-demo.ts
new file mode 100644
index 000000000..99e08d5b4
--- /dev/null
+++ b/pages/api/poll/create-demo.ts
@@ -0,0 +1,103 @@
+import { addDays, addMinutes, format } from "date-fns";
+import { NextApiRequest, NextApiResponse } from "next";
+import { nanoid } from "utils/nanoid";
+
+import { prisma } from "../../../db";
+
+export default async function handler(
+ req: NextApiRequest,
+ res: NextApiResponse,
+) {
+ switch (req.method) {
+ case "POST": {
+ const adminUrlId = await nanoid();
+ const demoUser = { name: "John Example", email: "[email protected]" };
+ const today = new Date();
+ const poll = await prisma.poll.create({
+ data: {
+ urlId: await nanoid(),
+ verificationCode: await nanoid(),
+ title: "Lunch Meeting Demo",
+ type: "date",
+ location: "Starbucks, 901 New York Avenue",
+ description:
+ "This poll has been automatically generated just for you! Feel free to try out all the different features and when you're ready, you can schedule a new poll.",
+ authorName: "John Example",
+ verified: true,
+ demo: true,
+ user: {
+ connectOrCreate: {
+ where: {
+ email: demoUser.email,
+ },
+ create: demoUser,
+ },
+ },
+ options: {
+ createMany: {
+ data: [...Array(4)].map((_, i) => {
+ return { value: format(addDays(today, i + 1), "yyyy-MM-dd") };
+ }),
+ },
+ },
+ links: {
+ createMany: {
+ data: [
+ {
+ role: "admin",
+ urlId: adminUrlId,
+ },
+ {
+ role: "participant",
+ urlId: await nanoid(),
+ },
+ ],
+ },
+ },
+
+ participants: {
+ createMany: {
+ data: [
+ { name: "John", createdAt: addMinutes(today, -1) },
+ { name: "Alex", createdAt: addMinutes(today, -2) },
+ { name: "Mark", createdAt: addMinutes(today, -3) },
+ { name: "Samantha", createdAt: addMinutes(today, -4) },
+ ],
+ },
+ },
+ },
+ include: {
+ options: true,
+ participants: true,
+ },
+ });
+
+ const voteData: Array<{
+ optionId: string;
+ participantId: string;
+ pollId: string;
+ }> = [];
+
+ // Randomly generate votes
+ poll.options.forEach((option) => {
+ poll.participants.forEach((participant) => {
+ if (Math.random() >= 0.5) {
+ voteData.push({
+ optionId: option.id,
+ participantId: participant.id,
+ pollId: poll.urlId,
+ });
+ }
+ });
+ });
+
+ await prisma.vote.createMany({
+ data: voteData,
+ });
+
+ return res.json({ urlId: adminUrlId });
+ }
+ default:
+ return res.status(405).json({ ok: 1 });
+ }
+}
diff --git a/pages/api/poll/index.ts b/pages/api/poll/index.ts
new file mode 100644
index 000000000..8f834c5d8
--- /dev/null
+++ b/pages/api/poll/index.ts
@@ -0,0 +1,89 @@
+import { NextApiRequest, NextApiResponse } from "next";
+import { sendEmailTemplate } from "utils/api-utils";
+import { nanoid } from "utils/nanoid";
+import { CreatePollPayload } from "../../../api-client/create-poll";
+import { prisma } from "../../../db";
+import absoluteUrl from "../../../utils/absolute-url";
+
+export default async function handler(
+ req: NextApiRequest,
+ res: NextApiResponse,
+) {
+ switch (req.method) {
+ case "POST": {
+ const adminUrlId = await nanoid();
+ const payload: CreatePollPayload = req.body;
+ const poll = await prisma.poll.create({
+ data: {
+ urlId: await nanoid(),
+ verificationCode: await nanoid(),
+ title: payload.title,
+ type: payload.type,
+ timeZone: payload.timeZone,
+ location: payload.location,
+ description: payload.description,
+ authorName: payload.user.name,
+ demo: payload.demo,
+ user: {
+ connectOrCreate: {
+ where: {
+ email: payload.user.email,
+ },
+ create: {
+ id: await nanoid(),
+ ...payload.user,
+ },
+ },
+ },
+ options: {
+ createMany: {
+ data: payload.options.map((value) => ({
+ value,
+ })),
+ },
+ },
+ links: {
+ createMany: {
+ data: [
+ {
+ urlId: adminUrlId,
+ role: "admin",
+ },
+ {
+ urlId: await nanoid(),
+ role: "participant",
+ },
+ ],
+ },
+ },
+ },
+ });
+
+ const homePageUrl = absoluteUrl(req).origin;
+ const pollUrl = `${homePageUrl}/admin/${adminUrlId}`;
+ const verifyEmailUrl = `${pollUrl}?code=${poll.verificationCode}`;
+
+ try {
+ await sendEmailTemplate({
+ templateName: "new-poll",
+ to: payload.user.email,
+ subject: `Rallly: ${poll.title} - Verify your email address`,
+ templateVars: {
+ title: poll.title,
+ name: payload.user.name,
+ pollUrl,
+ verifyEmailUrl,
+ homePageUrl,
+ supportEmail: process.env.NEXT_PUBLIC_SUPPORT_EMAIL,
+ },
+ });
+ } catch (e) {
+ console.error(e);
+ }
+
+ return res.json({ urlId: adminUrlId, authorName: poll.authorName });
+ }
+ default:
+ return res.status(405).end();
+ }
+}
diff --git a/pages/demo.tsx b/pages/demo.tsx
new file mode 100644
index 000000000..096895603
--- /dev/null
+++ b/pages/demo.tsx
@@ -0,0 +1,33 @@
+import { GetStaticProps, NextPage } from "next";
+import { useTranslation } from "next-i18next";
+import { serverSideTranslations } from "next-i18next/serverSideTranslations";
+import { usePlausible } from "next-plausible";
+import { useRouter } from "next/router";
+import React from "react";
+import { useMount } from "react-use";
+import { createDemo } from "../api-client/create-demo";
+import FullPageLoader from "../components/full-page-loader";
+
+const Demo: NextPage = () => {
+ const { t } = useTranslation("app");
+
+ const router = useRouter();
+ const plausible = usePlausible();
+ useMount(async () => {
+ const poll = await createDemo();
+ plausible("Create demo poll");
+ router.replace(`/admin/${poll.urlId}`);
+ });
+
+ return <FullPageLoader>{t("creatingDemo")}</FullPageLoader>;
+};
+
+export const getStaticProps: GetStaticProps = async ({ locale = "en" }) => {
+ return {
+ props: {
+ ...(await serverSideTranslations(locale, ["app"])),
+ },
+ };
+};
+
+export default Demo;
diff --git a/pages/home.tsx b/pages/home.tsx
new file mode 100644
index 000000000..71e353510
--- /dev/null
+++ b/pages/home.tsx
@@ -0,0 +1,15 @@
+import { GetStaticProps } from "next";
+import { serverSideTranslations } from "next-i18next/serverSideTranslations";
+export { default } from "@/components/home";
+
+export const getStaticProps: GetStaticProps = async ({ locale = "en" }) => {
+ try {
+ return {
+ props: {
+ ...(await serverSideTranslations(locale, ["app", "homepage"])),
+ },
+ };
+ } catch {
+ return { notFound: true };
+ }
+};
diff --git a/pages/maintenance.tsx b/pages/maintenance.tsx
new file mode 100644
index 000000000..c4bd47873
--- /dev/null
+++ b/pages/maintenance.tsx
@@ -0,0 +1,31 @@
+import { GetStaticProps, NextPage } from "next";
+
+import Logo from "../public/logo.svg";
+import { isInMaintenanceMode } from "../utils/constants";
+
+const Maintenance: NextPage = () => {
+ return (
+ <div className="h-full bg-gray-100 flex flex-col justify-center items-center">
+ <div className="bg-white text-center p-8 rounded-lg border shadow-sm w-96">
+ <Logo className="h-8 inline-block text-indigo-500 mb-4" />
+ <div className="">
+ The site is currently under maintenance and will be back shortly…
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export const getStaticProps: GetStaticProps = () => {
+ if (isInMaintenanceMode) {
+ return {
+ redirect: {
+ destination: "/",
+ permanent: true,
+ },
+ };
+ }
+ return { props: {} };
+};
+
+export default Maintenance;
diff --git a/pages/new.tsx b/pages/new.tsx
new file mode 100644
index 000000000..d6fc193de
--- /dev/null
+++ b/pages/new.tsx
@@ -0,0 +1,235 @@
+import { GetServerSideProps, NextPage } from "next";
+import { useTranslation } from "next-i18next";
+import { serverSideTranslations } from "next-i18next/serverSideTranslations";
+import { usePlausible } from "next-plausible";
+import dynamic from "next/dynamic";
+import Head from "next/head";
+import { useRouter } from "next/router";
+import React from "react";
+import { useMutation } from "react-query";
+import { useSessionStorage } from "react-use";
+import { createPoll } from "../api-client/create-poll";
+import Button from "../components/button";
+import {
+ NewEventData,
+ PollDetailsData,
+ PollDetailsForm,
+ PollOptionsData,
+ PollOptionsForm,
+ UserDetailsData,
+ UserDetailsForm,
+} from "../components/forms";
+import StandardLayout from "../components/standard-layout";
+import Steps from "../components/steps";
+import { useUserName } from "../components/user-name-context";
+import { encodeDateOption } from "../utils/date-time-utils";
+
+type StepName = "eventDetails" | "options" | "userDetails";
+
+const steps: StepName[] = ["eventDetails", "options", "userDetails"];
+
+const required = <T extends unknown>(v: T | undefined): T => {
+ if (!v) {
+ throw new Error("Required value is missing");
+ }
+
+ return v;
+};
+
+const initialNewEventData: NewEventData = { currentStep: 0 };
+const sessionStorageKey = "newEventFormData";
+
+const Page: NextPage<{
+ title?: string;
+ location?: string;
+ description?: string;
+ view?: "week" | "month";
+}> = ({ title, location, description, view }) => {
+ const { t } = useTranslation("app");
+
+ const router = useRouter();
+
+ const [persistedFormData, setPersistedFormData] =
+ useSessionStorage<NewEventData>(sessionStorageKey, {
+ currentStep: 0,
+ eventDetails: {
+ title,
+ location,
+ description,
+ },
+ options: {
+ view,
+ },
+ });
+
+ const [formData, setTransientFormData] = React.useState(persistedFormData);
+
+ const setFormData = React.useCallback(
+ (newEventData: NewEventData) => {
+ setTransientFormData(newEventData);
+ setPersistedFormData(newEventData);
+ },
+ [setPersistedFormData],
+ );
+
+ const currentStepIndex = formData?.currentStep ?? 0;
+
+ const currentStepName = steps[currentStepIndex];
+
+ const [isRedirecting, setIsRedirecting] = React.useState(false);
+
+ const [, setUserName] = useUserName();
+
+ const plausible = usePlausible();
+
+ const { mutate: createEventMutation, isLoading: isCreatingPoll } =
+ useMutation(
+ () => {
+ const title = required(formData?.eventDetails?.title);
+ return createPoll({
+ title: title,
+ type: "date",
+ location: formData?.eventDetails?.location,
+ description: formData?.eventDetails?.description,
+ user: {
+ name: required(formData?.userDetails?.name),
+ email: required(formData?.userDetails?.contact),
+ },
+ timeZone: formData?.options?.timeZone,
+ options: required(formData?.options?.options).map(encodeDateOption),
+ });
+ },
+ {
+ onSuccess: (poll) => {
+ setIsRedirecting(true);
+ setUserName(poll.authorName);
+ plausible("Created poll", {
+ props: {
+ numberOfOptions: formData.options?.options?.length,
+ optionsView: formData?.options?.view,
+ },
+ });
+ setPersistedFormData(initialNewEventData);
+ router.replace(`/admin/${poll.urlId}`);
+ },
+ },
+ );
+
+ const isBusy = isRedirecting || isCreatingPoll;
+
+ const handleSubmit = (
+ data: PollDetailsData | PollOptionsData | UserDetailsData,
+ ) => {
+ if (currentStepIndex < steps.length - 1) {
+ setFormData({
+ ...formData,
+ currentStep: currentStepIndex + 1,
+ [currentStepName]: data,
+ });
+ } else {
+ // last step
+ createEventMutation();
+ }
+ };
+
+ const handleChange = (
+ data: Partial<PollDetailsData | PollOptionsData | UserDetailsData>,
+ ) => {
+ setFormData({
+ ...formData,
+ currentStep: currentStepIndex,
+ [currentStepName]: data,
+ });
+ };
+
+ return (
+ <StandardLayout>
+ <Head>
+ <title>{formData?.eventDetails?.title ?? t("newPoll")}</title>
+ </Head>
+ <div className="max-w-full w-[1024px] py-4 px-3 lg:px-6">
+ <div className="flex space-x-4 items-center mb-4">
+ <h1 className="m-0">New Poll</h1>
+ <Steps current={currentStepIndex} total={steps.length} />
+ </div>
+ <div className="bg-white overflow-hidden rounded-lg max-w-full w-fit shadow-sm border">
+ {(() => {
+ switch (currentStepName) {
+ case "eventDetails":
+ return (
+ <PollDetailsForm
+ className="px-4 pt-4 max-w-full"
+ name={currentStepName}
+ defaultValues={formData?.eventDetails}
+ onSubmit={handleSubmit}
+ onChange={handleChange}
+ />
+ );
+ case "options":
+ return (
+ <PollOptionsForm
+ className="grow"
+ name={currentStepName}
+ defaultValues={formData?.options}
+ onSubmit={handleSubmit}
+ onChange={handleChange}
+ title={formData.eventDetails?.title}
+ />
+ );
+ case "userDetails":
+ return (
+ <UserDetailsForm
+ className="px-4 pt-4 grow"
+ name={currentStepName}
+ defaultValues={formData?.userDetails}
+ onSubmit={handleSubmit}
+ onChange={handleChange}
+ />
+ );
+ }
+ })()}
+ <div className="bg-slate-50 w-full justify-end px-4 py-3 flex border-t space-x-3">
+ {currentStepIndex > 0 ? (
+ <Button
+ disabled={isBusy}
+ onClick={() => {
+ setFormData({
+ ...persistedFormData,
+ currentStep: currentStepIndex - 1,
+ });
+ }}
+ >
+ {t("back")}
+ </Button>
+ ) : null}
+ <Button
+ form={currentStepName}
+ loading={isBusy}
+ htmlType="submit"
+ type="primary"
+ >
+ {currentStepIndex < steps.length - 1
+ ? t("next")
+ : t("createPoll")}
+ </Button>
+ </div>
+ </div>
+ </div>
+ </StandardLayout>
+ );
+};
+
+export const getServerSideProps: GetServerSideProps = async ({
+ locale = "en",
+ query,
+}) => {
+ return {
+ props: {
+ ...(await serverSideTranslations(locale, ["app"])),
+ ...query,
+ },
+ };
+};
+
+// We disable SSR because the data on this page relies on sessionStore
+export default dynamic(() => Promise.resolve(Page), { ssr: false });
diff --git a/pages/poll.tsx b/pages/poll.tsx
new file mode 100644
index 000000000..b23cdaf99
--- /dev/null
+++ b/pages/poll.tsx
@@ -0,0 +1,318 @@
+import Button from "@/components/button";
+import ErrorPage from "@/components/error-page";
+import FullPageLoader from "@/components/full-page-loader";
+import LocationMarker from "@/components/icons/location-marker.svg";
+import LockClosed from "@/components/icons/lock-closed.svg";
+import Share from "@/components/icons/share.svg";
+import ManagePoll from "@/components/poll/manage-poll";
+import MobilePoll from "@/components/poll/mobile-poll";
+import { useUpdatePollMutation } from "@/components/poll/mutations";
+import NotificationsToggle from "@/components/poll/notifications-toggle";
+import PollSubheader from "@/components/poll/poll-subheader";
+import { UserAvatarProvider } from "@/components/poll/user-avatar";
+import Popover from "@/components/popover";
+import Sharing from "@/components/sharing";
+import StandardLayout from "@/components/standard-layout";
+import { PollContext, usePoll } from "@/components/use-poll";
+import { useUserName } from "@/components/user-name-context";
+import axios from "axios";
+import { GetServerSideProps, NextPage } from "next";
+import { useTranslation } from "next-i18next";
+import { serverSideTranslations } from "next-i18next/serverSideTranslations";
+import { usePlausible } from "next-plausible";
+import Head from "next/head";
+import { useRouter } from "next/router";
+import React from "react";
+import { toast } from "react-hot-toast";
+import { useMutation, useQuery, useQueryClient } from "react-query";
+import { useMount } from "react-use";
+import { preventWidows } from "utils/prevent-widows";
+import { GetPollResponse } from "../api-client/get-poll";
+import { getBrowserTimeZone } from "../utils/date-time-utils";
+import Custom404 from "./404";
+
+const Discussion = React.lazy(() => import("@/components/discussion"));
+
+const Poll = React.lazy(() => import("@/components/poll"));
+
+const PollPageLoader: NextPage = () => {
+ const { query } = useRouter();
+ const { t } = useTranslation("app");
+ const urlId = query.urlId as string;
+
+ const [didError, setDidError] = React.useState(false);
+ const [didFailToConvertLegacyPoll, setDidFailToConvertLegacyPoll] =
+ React.useState(false);
+
+ const plausible = usePlausible();
+
+ const { data: poll } = useQuery<GetPollResponse | null>(
+ ["getPoll", urlId],
+ async () => {
+ try {
+ const { data } = await axios.get<GetPollResponse>(`/api/poll/${urlId}`);
+ return data;
+ } catch (error) {
+ if (axios.isAxiosError(error) && error.response?.status === 404) {
+ try {
+ // check if poll exists from the legacy endpoint and convert it if it does
+ const { data } = await axios.get<GetPollResponse>(
+ `/api/legacy/${urlId}`,
+ );
+ plausible("Converted legacy event");
+ return data;
+ } catch (err) {
+ if (axios.isAxiosError(err) && err.response?.status === 500) {
+ // failed to convert legacy poll
+ setDidFailToConvertLegacyPoll(true);
+ }
+ throw err;
+ }
+ } else {
+ throw error;
+ }
+ }
+ },
+ {
+ onError: () => {
+ setDidError(true);
+ },
+ retry: false,
+ },
+ );
+
+ if (didFailToConvertLegacyPoll) {
+ return (
+ <ErrorPage
+ title="Server error"
+ description="There was a problem retrieving your poll. Please contact support."
+ />
+ );
+ }
+
+ if (didError) {
+ return <Custom404 />;
+ }
+
+ return !poll ? (
+ <FullPageLoader>{t("loading")}</FullPageLoader>
+ ) : (
+ <PollContext.Provider value={poll}>
+ <PollPage />
+ </PollContext.Provider>
+ );
+};
+
+const PollPage: NextPage = () => {
+ const poll = usePoll();
+
+ const router = useRouter();
+
+ useMount(() => {
+ const path = poll.role === "admin" ? "admin" : "p";
+
+ if (!new RegExp(`^/${path}`).test(router.asPath)) {
+ router.replace(`/${path}/${poll.urlId}`, undefined, { shallow: true });
+ }
+ });
+
+ const [, setUserName] = useUserName();
+
+ const queryClient = useQueryClient();
+ const plausible = usePlausible();
+
+ const { mutate: updatePollMutation } = useUpdatePollMutation();
+
+ const { mutate: verifyEmail } = useMutation(
+ async (verificationCode: string) => {
+ await axios.post(`/api/poll/${poll.urlId}/verify`, {
+ verificationCode,
+ });
+ },
+ {
+ onSuccess: () => {
+ toast.success("Your poll has been verified");
+ router.replace(`/admin/${router.query.urlId}`, undefined, {
+ shallow: true,
+ });
+ queryClient.setQueryData(["getPoll", poll.urlId], {
+ ...poll,
+ verified: true,
+ });
+ plausible("Verified email");
+ setUserName(poll.authorName);
+ },
+ },
+ );
+
+ React.useEffect(() => {
+ // TODO (Luke Vella) [2022-03-29]: stop looking for "verificationCode". We switched to
+ // "code" for compatability with v1 and it's generally better since it's more concise
+ const verificationCode = router.query.verificationCode ?? router.query.code;
+ if (typeof verificationCode === "string") {
+ verifyEmail(verificationCode);
+ }
+ }, [router, verifyEmail]);
+
+ React.useEffect(() => {
+ if (router.query.unsubscribe) {
+ updatePollMutation(
+ { notifications: false },
+ {
+ onSuccess: () => {
+ toast.success("Notifications have been disabled");
+ plausible("Unsubscribed from notifications");
+ },
+ },
+ );
+ router.replace(`/admin/${router.query.urlId}`, undefined, {
+ shallow: true,
+ });
+ }
+ }, [plausible, router, updatePollMutation]);
+
+ const [targetTimeZone, setTargetTimeZone] =
+ React.useState(getBrowserTimeZone);
+
+ const sortedOptions = React.useMemo(
+ () =>
+ poll.options.sort((a, b) =>
+ a.value < b.value ? -1 : a.value > b.value ? 1 : 0,
+ ),
+ [poll.options],
+ );
+
+ const checkIfWideScreen = () => window.innerWidth > 640;
+
+ const [isWideScreen, setIsWideScreen] = React.useState(checkIfWideScreen);
+
+ React.useEffect(() => {
+ const listener = () => setIsWideScreen(checkIfWideScreen());
+
+ window.addEventListener("resize", listener);
+
+ return () => {
+ window.removeEventListener("resize", listener);
+ };
+ }, []);
+
+ const PollComponent = isWideScreen ? Poll : MobilePoll;
+
+ let highScore = 1; // set to one because we don't want to highlight
+ sortedOptions.forEach((option) => {
+ if (option.votes.length > highScore) {
+ highScore = option.votes.length;
+ }
+ });
+
+ const names = React.useMemo(
+ () => poll.participants.map(({ name }) => name),
+ [poll.participants],
+ );
+
+ return (
+ <UserAvatarProvider seed={poll.pollId} names={names}>
+ <StandardLayout>
+ <div className="max-w-full lg:w-[1024px] bg-gray-50 relative py-4 md:px-4 lg:px-8">
+ <Head>
+ <title>{poll.title}</title>
+ <meta name="robots" content="noindex,nofollow" />
+ </Head>
+ <div
+ className="max-w-full"
+ style={{
+ width: Math.max(600, poll.options.length * 95 + 200 + 160),
+ }}
+ >
+ <div className="mb-6 px-4 md:px-0">
+ <div className="md:flex md:space-x-4 items-start mb-3">
+ <div className="mb-3 md:mb-0 grow">
+ <div className="flex flex-col-reverse md:flex-row">
+ <h1 className="grow mb-2 leading-tight text-3xl">
+ {preventWidows(poll.title)}
+ </h1>
+ {poll.role === "admin" ? (
+ <div className="flex space-x-2 mb-4 md:mb-2">
+ <NotificationsToggle />
+ <ManagePoll
+ placement={
+ isWideScreen ? "bottom-end" : "bottom-start"
+ }
+ targetTimeZone={targetTimeZone}
+ />
+ <Popover
+ trigger={
+ <Button type="primary" icon={<Share />}>
+ Share
+ </Button>
+ }
+ placement={isWideScreen ? "bottom-end" : undefined}
+ >
+ <Sharing links={poll.links} />
+ </Popover>
+ </div>
+ ) : null}
+ </div>
+ <PollSubheader />
+ </div>
+ </div>
+ {poll.description ? (
+ <div className="text-lg max-w-2xl mb-4 whitespace-pre-line w-fit shadow-sm bg-white text-slate-600 rounded-xl px-4 py-3">
+ {preventWidows(poll.description)}
+ </div>
+ ) : null}
+ {poll.location ? (
+ <div className="flex items-center mb-4">
+ <LocationMarker width={20} className="text-slate-400 mr-2" />
+ {poll.location}
+ </div>
+ ) : null}
+ </div>
+ {poll.closed ? (
+ <div className="bg-sky-100 text-sky-700 py-3 px-4 md:rounded-lg shadow-sm mb-4 flex items-center">
+ <div className="mr-3 rounded-md">
+ <LockClosed className="w-5" />
+ </div>
+ This poll has been locked (voting is disabled)
+ </div>
+ ) : null}
+ <React.Suspense fallback={<div>Loading…</div>}>
+ <div className="mb-4 lg:mb-8">
+ <PollComponent
+ pollId={poll.urlId}
+ role={poll.role}
+ timeZone={poll.timeZone}
+ options={sortedOptions}
+ participants={poll.participants}
+ highScore={highScore}
+ targetTimeZone={targetTimeZone}
+ onChangeTargetTimeZone={setTargetTimeZone}
+ />
+ </div>
+ <Discussion
+ pollId={poll.urlId}
+ canDelete={poll.role === "admin"}
+ />
+ </React.Suspense>
+ </div>
+ </div>
+ </StandardLayout>
+ </UserAvatarProvider>
+ );
+};
+
+export const getServerSideProps: GetServerSideProps = async ({
+ locale = "en",
+}) => {
+ try {
+ return {
+ props: {
+ ...(await serverSideTranslations(locale, ["app"])),
+ },
+ };
+ } catch {
+ return { notFound: true };
+ }
+};
+
+export default PollPageLoader;
diff --git a/pages/privacy-policy.tsx b/pages/privacy-policy.tsx
new file mode 100644
index 000000000..a4f86ae10
--- /dev/null
+++ b/pages/privacy-policy.tsx
@@ -0,0 +1,378 @@
+import PageLayout from "@/components/page-layout";
+import { GetStaticProps } from "next";
+import { serverSideTranslations } from "next-i18next/serverSideTranslations";
+
+const PrivacyPolicy = () => {
+ return (
+ <PageLayout>
+ <div className="p-8 my-16 mx-auto max-w-3xl bg-white shadow-md rounded-lg prose prose-">
+ <h1>Privacy Policy</h1>
+ <p>Last updated: April 04, 2022</p>
+ <p>
+ This Privacy Policy describes Our policies and procedures on the
+ collection, use and disclosure of Your information when You use the
+ Service and tells You about Your privacy rights and how the law
+ protects You.
+ </p>
+ <p>
+ We use Your Personal data to provide and improve the Service. By using
+ the Service, You agree to the collection and use of information in
+ accordance with this Privacy Policy. This Privacy Policy has been
+ created with the help of the{" "}
+ <a
+ href="https://www.freeprivacypolicy.com/blog/sample-privacy-policy-template/"
+ target="_blank"
+ rel="noreferrer"
+ >
+ Privacy Policy Template
+ </a>
+ .
+ </p>
+ <h2>Interpretation and Definitions</h2>
+ <h3>Interpretation</h3>
+ <p>
+ The words of which the initial letter is capitalized have meanings
+ defined under the following conditions. The following definitions
+ shall have the same meaning regardless of whether they appear in
+ singular or in plural.
+ </p>
+ <h3>Definitions</h3>
+ <p>For the purposes of this Privacy Policy:</p>
+ <ul>
+ <li>
+ <p>
+ <strong>Account</strong> means a unique account created for You to
+ access our Service or parts of our Service.
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>Affiliate</strong> means an entity that controls, is
+ controlled by or is under common control with a party, where
+ &quot;control&quot; means ownership of 50% or more of the shares,
+ equity interest or other securities entitled to vote for election
+ of directors or other managing authority.
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>Application</strong> means the software program provided
+ by the Company downloaded by You on any electronic device, named
+ Rallly
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>Company</strong> (referred to as either &quot;the
+ Company&quot;, &quot;We&quot;, &quot;Us&quot; or &quot;Our&quot;
+ in this Agreement) refers to Stack Snap Ltd., The Gallery 14
+ Upland Road, London, SE22 9EE.
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>Country</strong> refers to: United Kingdom
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>Device</strong> means any device that can access the
+ Service such as a computer, a cellphone or a digital tablet.
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>Personal Data</strong> is any information that relates to
+ an identified or identifiable individual.
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>Service</strong> refers to the Application.
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>Service Provider</strong> means any natural or legal
+ person who processes the data on behalf of the Company. It refers
+ to third-party companies or individuals employed by the Company to
+ facilitate the Service, to provide the Service on behalf of the
+ Company, to perform services related to the Service or to assist
+ the Company in analyzing how the Service is used.
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>Usage Data</strong> refers to data collected
+ automatically, either generated by the use of the Service or from
+ the Service infrastructure itself (for example, the duration of a
+ page visit).
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>You</strong> means the individual accessing or using the
+ Service, or the company, or other legal entity on behalf of which
+ such individual is accessing or using the Service, as applicable.
+ </p>
+ </li>
+ </ul>
+ <h2>Collecting and Using Your Personal Data</h2>
+ <h3>Types of Data Collected</h3>
+ <h4>Personal Data</h4>
+ <p>
+ While using Our Service, We may ask You to provide Us with certain
+ personally identifiable information that can be used to contact or
+ identify You. Personally identifiable information may include, but is
+ not limited to:
+ </p>
+ <ul>
+ <li>
+ <p>Email address</p>
+ </li>
+ <li>
+ <p>First name and last name</p>
+ </li>
+ <li>
+ <p>Usage Data</p>
+ </li>
+ </ul>
+ <h4>Usage Data</h4>
+ <p>Usage Data is collected automatically when using the Service.</p>
+ <p>
+ Usage Data may include information such as Your Device&apos;s Internet
+ Protocol address (e.g. IP address), browser type, browser version, the
+ pages of our Service that You visit, the time and date of Your visit,
+ the time spent on those pages, unique device identifiers and other
+ diagnostic data.
+ </p>
+ <p>
+ When You access the Service by or through a mobile device, We may
+ collect certain information automatically, including, but not limited
+ to, the type of mobile device You use, Your mobile device unique ID,
+ the IP address of Your mobile device, Your mobile operating system,
+ the type of mobile Internet browser You use, unique device identifiers
+ and other diagnostic data.
+ </p>
+ <p>
+ We may also collect information that Your browser sends whenever You
+ visit our Service or when You access the Service by or through a
+ mobile device.
+ </p>
+ <h3>Use of Your Personal Data</h3>
+ <p>The Company may use Personal Data for the following purposes:</p>
+ <ul>
+ <li>
+ <p>
+ <strong>To provide and maintain our Service</strong>, including to
+ monitor the usage of our Service.
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>To manage Your Account:</strong> to manage Your
+ registration as a user of the Service. The Personal Data You
+ provide can give You access to different functionalities of the
+ Service that are available to You as a registered user.
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>To contact You:</strong> To contact You by email,
+ telephone calls, SMS, or other equivalent forms of electronic
+ communication, such as a mobile application&apos;s push
+ notifications regarding updates or informative communications
+ related to the functionalities, products or contracted services,
+ including the security updates, when necessary or reasonable for
+ their implementation.
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>To provide You</strong> with news, special offers and
+ general information about other goods, services and events which
+ we offer that are similar to those that you have already purchased
+ or enquired about unless You have opted not to receive such
+ information.
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>To manage Your requests:</strong> To attend and manage
+ Your requests to Us.
+ </p>
+ </li>
+ <li>
+ <p>
+ <strong>For other purposes</strong>: We may use Your information
+ for other purposes, such as data analysis, identifying usage
+ trends, determining the effectiveness of our promotional campaigns
+ and to evaluate and improve our Service, products, services,
+ marketing and your experience.
+ </p>
+ </li>
+ </ul>
+ <p>
+ We may share Your personal information in the following situations:
+ </p>
+ <ul>
+ <li>
+ <strong>With Service Providers:</strong> We may share Your personal
+ information with Service Providers to monitor and analyze the use of
+ our Service, to contact You.
+ </li>
+ <li>
+ <strong>With other users:</strong> when You share personal
+ information or otherwise interact in the public areas with other
+ users, such information may be viewed by all users and may be
+ publicly distributed outside.
+ </li>
+ <li>
+ <strong>With Your consent</strong>: We may disclose Your personal
+ information for any other purpose with Your consent.
+ </li>
+ </ul>
+ <h3>Retention of Your Personal Data</h3>
+ <p>
+ The Company will retain Your Personal Data only for as long as is
+ necessary for the purposes set out in this Privacy Policy. We will
+ retain and use Your Personal Data to the extent necessary to comply
+ with our legal obligations (for example, if we are required to retain
+ your data to comply with applicable laws), resolve disputes, and
+ enforce our legal agreements and policies.
+ </p>
+ <p>
+ The Company will also retain Usage Data for internal analysis
+ purposes. Usage Data is generally retained for a shorter period of
+ time, except when this data is used to strengthen the security or to
+ improve the functionality of Our Service, or We are legally obligated
+ to retain this data for longer time periods.
+ </p>
+ <h3>Transfer of Your Personal Data</h3>
+ <p>
+ Your information, including Personal Data, is processed at the
+ Company&apos;s operating offices and in any other places where the
+ parties involved in the processing are located. It means that this
+ information may be transferred to — and maintained on — computers
+ located outside of Your state, province, country or other governmental
+ jurisdiction where the data protection laws may differ than those from
+ Your jurisdiction.
+ </p>
+ <p>
+ Your consent to this Privacy Policy followed by Your submission of
+ such information represents Your agreement to that transfer.
+ </p>
+ <p>
+ The Company will take all steps reasonably necessary to ensure that
+ Your data is treated securely and in accordance with this Privacy
+ Policy and no transfer of Your Personal Data will take place to an
+ organization or a country unless there are adequate controls in place
+ including the security of Your data and other personal information.
+ </p>
+ <h3>Disclosure of Your Personal Data</h3>
+ <h4>Business Transactions</h4>
+ <p>
+ If the Company is involved in a merger, acquisition or asset sale,
+ Your Personal Data may be transferred. We will provide notice before
+ Your Personal Data is transferred and becomes subject to a different
+ Privacy Policy.
+ </p>
+ <h4>Law enforcement</h4>
+ <p>
+ Under certain circumstances, the Company may be required to disclose
+ Your Personal Data if required to do so by law or in response to valid
+ requests by public authorities (e.g. a court or a government agency).
+ </p>
+ <h4>Other legal requirements</h4>
+ <p>
+ The Company may disclose Your Personal Data in the good faith belief
+ that such action is necessary to:
+ </p>
+ <ul>
+ <li>Comply with a legal obligation</li>
+ <li>Protect and defend the rights or property of the Company</li>
+ <li>
+ Prevent or investigate possible wrongdoing in connection with the
+ Service
+ </li>
+ <li>
+ Protect the personal safety of Users of the Service or the public
+ </li>
+ <li>Protect against legal liability</li>
+ </ul>
+ <h3>Security of Your Personal Data</h3>
+ <p>
+ The security of Your Personal Data is important to Us, but remember
+ that no method of transmission over the Internet, or method of
+ electronic storage is 100% secure. While We strive to use commercially
+ acceptable means to protect Your Personal Data, We cannot guarantee
+ its absolute security.
+ </p>
+ <h2>Children&apos;s Privacy</h2>
+ <p>
+ Our Service does not address anyone under the age of 13. We do not
+ knowingly collect personally identifiable information from anyone
+ under the age of 13. If You are a parent or guardian and You are aware
+ that Your child has provided Us with Personal Data, please contact Us.
+ If We become aware that We have collected Personal Data from anyone
+ under the age of 13 without verification of parental consent, We take
+ steps to remove that information from Our servers.
+ </p>
+ <p>
+ If We need to rely on consent as a legal basis for processing Your
+ information and Your country requires consent from a parent, We may
+ require Your parent&apos;s consent before We collect and use that
+ information.
+ </p>
+ <h2>Links to Other Websites</h2>
+ <p>
+ Our Service may contain links to other websites that are not operated
+ by Us. If You click on a third party link, You will be directed to
+ that third party&apos;s site. We strongly advise You to review the
+ Privacy Policy of every site You visit.
+ </p>
+ <p>
+ We have no control over and assume no responsibility for the content,
+ privacy policies or practices of any third party sites or services.
+ </p>
+ <h2>Changes to this Privacy Policy</h2>
+ <p>
+ We may update Our Privacy Policy from time to time. We will notify You
+ of any changes by posting the new Privacy Policy on this page.
+ </p>
+ <p>
+ We will let You know via email and/or a prominent notice on Our
+ Service, prior to the change becoming effective and update the
+ &quot;Last updated&quot; date at the top of this Privacy Policy.
+ </p>
+ <p>
+ You are advised to review this Privacy Policy periodically for any
+ changes. Changes to this Privacy Policy are effective when they are
+ posted on this page.
+ </p>
+ <h2>Contact Us</h2>
+ <p>
+ If you have any questions about this Privacy Policy, You can contact
+ us:
+ </p>
+ <ul>
+ <li>By email: [email protected]</li>
+ </ul>
+ </div>
+ </PageLayout>
+ );
+};
+
+export default PrivacyPolicy;
+
+export const getStaticProps: GetStaticProps = async ({ locale = "en" }) => {
+ try {
+ return {
+ props: {
+ ...(await serverSideTranslations(locale, ["app", "homepage"])),
+ },
+ };
+ } catch {
+ return { notFound: true };
+ }
+};
diff --git a/pages/support.tsx b/pages/support.tsx
new file mode 100644
index 000000000..7b3566f1d
--- /dev/null
+++ b/pages/support.tsx
@@ -0,0 +1,15 @@
+import { GetStaticProps } from "next";
+import { serverSideTranslations } from "next-i18next/serverSideTranslations";
+export { default } from "@/components/support";
+
+export const getStaticProps: GetStaticProps = async ({ locale = "en" }) => {
+ try {
+ return {
+ props: {
+ ...(await serverSideTranslations(locale, ["homepage", "support"])),
+ },
+ };
+ } catch {
+ return { notFound: true };
+ }
+};
diff --git a/playwright.config.ts b/playwright.config.ts
new file mode 100644
index 000000000..16036e09e
--- /dev/null
+++ b/playwright.config.ts
@@ -0,0 +1,21 @@
+import { devices, PlaywrightTestConfig } from "@playwright/test";
+
+const ci = process.env.CI === "true";
+
+// Reference: https://playwright.dev/docs/test-configuration
+const config: PlaywrightTestConfig = {
+ // Artifacts folder where screenshots, videos, and traces are stored.
+ outputDir: "test-results/",
+ projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
+ use: {
+ viewport: { width: 1280, height: 720 },
+ baseURL: "http://localhost:3000",
+ trace: "retain-on-failure",
+ },
+ reporter: [
+ [ci ? "github" : "list"],
+ ["html", { open: !ci ? "on-failure" : "never" }],
+ ],
+ workers: 1,
+};
+export default config;
diff --git a/postcss.config.js b/postcss.config.js
new file mode 100644
index 000000000..f46b31c99
--- /dev/null
+++ b/postcss.config.js
@@ -0,0 +1,3 @@
+module.exports = {
+ plugins: ["tailwindcss", "autoprefixer"],
+};
diff --git a/public/android-chrome-192x192.png b/public/android-chrome-192x192.png
new file mode 100644
index 000000000..61108ad7f
Binary files /dev/null and b/public/android-chrome-192x192.png differ
diff --git a/public/android-chrome-512x512.png b/public/android-chrome-512x512.png
new file mode 100644
index 000000000..e654aae15
Binary files /dev/null and b/public/android-chrome-512x512.png differ
diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png
new file mode 100644
index 000000000..636918421
Binary files /dev/null and b/public/apple-touch-icon.png differ
diff --git a/public/favicon-16x16.png b/public/favicon-16x16.png
new file mode 100644
index 000000000..2fdcd9f81
Binary files /dev/null and b/public/favicon-16x16.png differ
diff --git a/public/favicon-32x32.png b/public/favicon-32x32.png
new file mode 100644
index 000000000..45346b96c
Binary files /dev/null and b/public/favicon-32x32.png differ
diff --git a/public/favicon.ico b/public/favicon.ico
new file mode 100644
index 000000000..fd31d3f55
Binary files /dev/null and b/public/favicon.ico differ
diff --git a/public/favicon.svg b/public/favicon.svg
new file mode 100644
index 000000000..938d2595b
--- /dev/null
+++ b/public/favicon.svg
@@ -0,0 +1,5 @@
+<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
+<rect width="30" height="30" rx="7" fill="#6366F1"/>
+<path d="M11.4201 15.7973C11.2842 15.9332 11.2843 16.1536 11.4203 16.2894L13.9147 18.7792C14.0506 18.9148 14.2707 18.9147 14.4064 18.779L18.9829 14.2025C19.1188 14.0667 19.1188 13.8464 18.9829 13.7106L18.491 13.2187C18.3552 13.0828 18.135 13.0828 17.9992 13.2187L14.1579 17.0599L12.4037 15.3056C12.2678 15.1698 12.0476 15.1698 11.9118 15.3056L11.4201 15.7973Z" fill="white"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M7 8.3913C7 7.62291 7.62292 7 8.3913 7H21.6087C22.3771 7 23 7.62291 23 8.3913V21.6087C23 22.3771 22.3771 23 21.6087 23H8.3913C7.62292 23 7 22.3771 7 21.6087V8.3913ZM8.45453 10.6364H21.5455V21.5455H8.45453V10.6364ZM18.8261 9.78261C19.2103 9.78261 19.5217 9.47116 19.5217 9.08696C19.5217 8.70275 19.2103 8.3913 18.8261 8.3913C18.4419 8.3913 18.1304 8.70275 18.1304 9.08696C18.1304 9.47116 18.4419 9.78261 18.8261 9.78261ZM11.1739 9.08696C11.1739 9.47116 10.8625 9.78261 10.4783 9.78261C10.094 9.78261 9.78261 9.47116 9.78261 9.08696C9.78261 8.70275 10.094 8.3913 10.4783 8.3913C10.8625 8.3913 11.1739 8.70275 11.1739 9.08696Z" fill="white"/>
+</svg>
diff --git a/public/locales/en/app.json b/public/locales/en/app.json
new file mode 100644
index 000000000..2d0097361
--- /dev/null
+++ b/public/locales/en/app.json
@@ -0,0 +1,45 @@
+{
+ "next": "Continue",
+ "back": "Back",
+ "newPoll": "New Poll",
+ "eventDetails": "Poll Details",
+ "options": "Options",
+ "finish": "Finish",
+ "title": "Title",
+ "name": "Name",
+ "email": "Email",
+ "titlePlaceholder": "Monthly Meetup",
+ "locationPlaceholder": "Joe's Coffee Shop",
+ "descriptionPlaceholder": "Hey everyone, please choose the dates that work for you!",
+ "namePlaceholder": "John Doe",
+ "emailPlaceholder": "[email protected]",
+ "createPoll": "Create poll",
+ "location": "Location",
+ "description": "Description",
+ "stepSummary": "Step {{current}} of {{total}}",
+ "calendarHelp": "You can't create a poll without any options. Add at least one option to continue.",
+ "errorCreate": "Uh oh! There was a problem creating your poll. The error has been logged and we'll try to fix it.",
+ "share": "Share",
+ "shareDescription": "This poll is open to anyone who has the following link:",
+ "requiredNameError": "Name is required",
+ "remove": "Remove",
+ "change": "Change",
+ "save": "Save",
+ "cancel": "Cancel",
+ "vote": "Vote",
+ "voteCount": "{{count}} vote",
+ "voteCount_other": "{{count}} votes",
+ "participantCount": "{{count}} participant",
+ "participantCount_other": "{{count}} participants",
+ "createdBy": "Created by <b>{{name}}</b>",
+ "timeZone": "Time Zone:",
+ "creatingDemo": "Creating demo poll…",
+ "ok": "Ok",
+ "loading": "Loading…",
+ "admin": "Admin",
+ "adminDescription": "Full access to edit this poll.",
+ "participant": "Participant",
+ "participantDescription": "Partial access to vote and comment on this poll.",
+ "unverifiedMessage": "An email has been sent to <b>{{email}}</b> with a link to verify the email address.",
+ "notificationsOnDescription": "An email will be sent to <b>{{email}}</b> when there is activity on this poll."
+}
diff --git a/public/locales/en/common.json b/public/locales/en/common.json
new file mode 100644
index 000000000..8d801badc
--- /dev/null
+++ b/public/locales/en/common.json
@@ -0,0 +1,3 @@
+{
+ "appName": "Rallly"
+}
diff --git a/public/locales/en/homepage.json b/public/locales/en/homepage.json
new file mode 100644
index 000000000..b1559fb18
--- /dev/null
+++ b/public/locales/en/homepage.json
@@ -0,0 +1,5 @@
+{
+ "getStarted": "Get started",
+ "viewDemo": "View demo",
+ "footerCredit": "Self-funded and built by <a>@imlukevella</a>"
+}
diff --git a/public/locales/en/support.json b/public/locales/en/support.json
new file mode 100644
index 000000000..1c759064b
--- /dev/null
+++ b/public/locales/en/support.json
@@ -0,0 +1,19 @@
+{
+ "supportContactTitle": "Contact",
+ "supportContactMessage": "For any questions not covered here or if you'd like to share your feedback, send an email to: <a>[email protected]</a> or:",
+ "chatWithSupport": "Start chat",
+ "isMyDataSafeQuestion": "Is my data safe?",
+ "isMyDataSafeAnswer": "Yes! We do everything we can to keep your data safe and make sure your privacy is respected. We do not use your data to make a profit and it is not shared with any third-parties. If you have any concerns or would like to request the removal of your data from our servers please send an email to <a>[email protected]</a>",
+ "selfHostQuestion": "How do I run Rallly on my own server?",
+ "selfHostAnswer": "Check out the repository <a>README</a> for instructions on how to get Rallly running on your machine.",
+ "canYouHelpMeSetUpRalllyQuestion": "Can you help me set up Rallly on my own server?",
+ "canYouHelpMeSetUpRalllyAnswer": "Unfortunately it's not feasible to offer individual support to everyone. If you're having trouble getting it running you can ask for help on <a>github discussions</a>.",
+ "canRalllyDoQuestion": "How do I do <em>x</em>? Can Rallly do <em>y</em>?",
+ "canRalllyDoAnswer": "The best place to ask these questions are on our <a>github discussions</a>. You may find it has been asked already and if not your question will serve as a guide for others in the future.",
+ "legacyPollsQuestion": "What happened to the polls created with the previous version of Rallly?",
+ "legacyPollsAnswer": "Legacy polls are stored in a different database but you can still access the poll with the same URL. The polls will be transferred over in to the new database when you first try to access it. If a poll has not been accessed for at least two months then it might no longer be available but you can contact <a>[email protected]</a> to attempt to recover it.",
+ "howDoIShareQuestion": "How do I share my poll with my participants?",
+ "howDoIShareAnswer": "To share your poll, click on the <b>Share</b> button next to the title of your poll and copy the participant link. You can share this link with your participants through your own channels such as email, whatsapp, facebook etc…",
+ "contributeQuestion": "How can I contribute?",
+ "contributeAnswer": "Rallly is 100% self-funded so the best way to contribute is to become a <a>sponsor</a>. This money will go towards paying for hosting and will support future development of this website."
+}
diff --git a/public/logo.png b/public/logo.png
new file mode 100644
index 000000000..1c3fa3a0e
Binary files /dev/null and b/public/logo.png differ
diff --git a/public/logo.svg b/public/logo.svg
new file mode 100644
index 000000000..a86bd5d3c
--- /dev/null
+++ b/public/logo.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 97 18">
+ <path fill-rule="evenodd" d="M1.565 0C.701 0 0 .7 0 1.565v14.87C0 17.299.7 18 1.565 18h14.87c.864 0 1.565-.7 1.565-1.565V1.565C18 .701 17.3 0 16.435 0H1.565zm14.799 4.09H1.636v12.274h14.728V4.09zm-2.277-1.742a.783.783 0 11-1.565 0 .783.783 0 011.565 0zM3.913 3.13a.783.783 0 100-1.565.783.783 0 000 1.565zm1.06 7.32a.391.391 0 010-.553l.553-.553a.391.391 0 01.553 0l1.974 1.973 4.321-4.321a.391.391 0 01.553 0l.554.553c.153.153.153.401 0 .554L8.332 13.25a.391.391 0 01-.553 0l-2.806-2.8zm27.246-7.825h-4.133V14h2.148V9.703h2.053L34.507 14h2.306v-.11l-2.51-4.702c.325-.142.617-.314.877-.516.38-.292.674-.654.883-1.086.208-.432.312-.943.312-1.531 0-.745-.167-1.373-.5-1.883-.333-.51-.81-.896-1.43-1.156-.62-.26-1.362-.391-2.226-.391zm-1.985 5.383h2.008c.443 0 .81-.078 1.102-.235.291-.156.51-.372.656-.648.151-.276.227-.591.227-.945 0-.38-.073-.709-.22-.985a1.482 1.482 0 00-.663-.648c-.297-.151-.672-.227-1.125-.227h-1.985v3.688zM45.97 2.625h.531L50.773 14h-2.28l-.855-2.531H43.39L42.54 14h-2.274l4.25-11.375h1.453zm-2.01 7.148h3.106l-1.556-4.61-1.55 4.61zm18.205 2.54V14h-7.219V2.625h2.149v9.688h5.07zM73.82 14v-1.688h-5.07V2.626h-2.148V14h7.218zm11.657-1.688V14H78.257V2.625h2.15v9.688h5.07zM91.71 7.93l-2.5-5.305h-2.375l3.789 7.21V14h2.18V9.836l3.78-7.211h-2.358L91.71 7.93z" clip-rule="evenodd" />
+</svg>
\ No newline at end of file
diff --git a/public/mobilefriendly.mp4 b/public/mobilefriendly.mp4
new file mode 100644
index 000000000..789357764
Binary files /dev/null and b/public/mobilefriendly.mp4 differ
diff --git a/public/robots.txt b/public/robots.txt
new file mode 100644
index 000000000..831060c04
--- /dev/null
+++ b/public/robots.txt
@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /example
\ No newline at end of file
diff --git a/public/site.webmanifest b/public/site.webmanifest
new file mode 100644
index 000000000..45dc8a206
--- /dev/null
+++ b/public/site.webmanifest
@@ -0,0 +1 @@
+{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
\ No newline at end of file
diff --git a/public/timeslots.mp4 b/public/timeslots.mp4
new file mode 100644
index 000000000..188404a2b
Binary files /dev/null and b/public/timeslots.mp4 differ
diff --git a/public/vercel.svg b/public/vercel.svg
new file mode 100644
index 000000000..fbf0e25a6
--- /dev/null
+++ b/public/vercel.svg
@@ -0,0 +1,4 @@
+<svg width="283" height="64" viewBox="0 0 283 64" fill="none"
+ xmlns="http://www.w3.org/2000/svg">
+ <path d="M141.04 16c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.46 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5h-18.9zM248.72 16c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.45 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5h-18.9zM200.24 34c0 6 3.92 10 10 10 4.12 0 7.21-1.87 8.8-4.92l7.68 4.43c-3.18 5.3-9.14 8.49-16.48 8.49-11.05 0-19-7.2-19-18s7.96-18 19-18c7.34 0 13.29 3.19 16.48 8.49l-7.68 4.43c-1.59-3.05-4.68-4.92-8.8-4.92-6.07 0-10 4-10 10zm82.48-29v46h-9V5h9zM36.95 0L73.9 64H0L36.95 0zm92.38 5l-27.71 48L73.91 5H84.3l17.32 30 17.32-30h10.39zm58.91 12v9.69c-1-.29-2.06-.49-3.2-.49-5.81 0-10 4-10 10V51h-9V17h9v9.2c0-5.08 5.91-9.2 13.2-9.2z" fill="#000"/>
+</svg>
\ No newline at end of file
diff --git a/sample.env b/sample.env
new file mode 100644
index 000000000..41d0600f7
--- /dev/null
+++ b/sample.env
@@ -0,0 +1,4 @@
+# required
+DATABASE_URL=""
+# optional
+SENDGRID_API_KEY=""
\ No newline at end of file
diff --git a/schema.prisma b/schema.prisma
new file mode 100644
index 000000000..3c68c1110
--- /dev/null
+++ b/schema.prisma
@@ -0,0 +1,107 @@
+datasource db {
+ provider = "postgresql"
+ url = env("DATABASE_URL")
+}
+
+generator client {
+ provider = "prisma-client-js"
+}
+
+model User {
+ id String @id @default(cuid())
+ name String
+ email String @unique
+ polls Poll[]
+ participants Participant[]
+ comments Comment[]
+}
+
+enum PollType {
+ date
+}
+
+model Poll {
+ urlId String @id @unique
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ deadline DateTime?
+ title String
+ type PollType
+ description String?
+ location String?
+ user User @relation(fields: [userId], references: [id])
+ userId String
+ votes Vote[]
+ verificationCode String
+ timeZone String?
+ verified Boolean @default(false)
+ options Option[]
+ participants Participant[]
+ authorName String @default("")
+ demo Boolean @default(false)
+ comments Comment[]
+ links Link[]
+ legacy Boolean @default(false)
+ closed Boolean @default(false)
+ notifications Boolean @default(false)
+
+ @@unique([urlId, verificationCode])
+}
+
+enum Role {
+ admin
+ participant
+}
+
+model Link {
+ urlId String @id @unique
+ role Role
+ pollId String
+ poll Poll @relation(fields: [pollId], references: [urlId])
+ createdAt DateTime @default(now())
+
+ @@unique([pollId, role])
+}
+
+model Participant {
+ id String @id @default(cuid())
+ name String
+ user User? @relation(fields: [userId], references: [id])
+ userId String?
+ poll Poll @relation(fields: [pollId], references: [urlId])
+ pollId String
+ votes Vote[]
+ createdAt DateTime @default(now())
+ @@unique([id, pollId])
+}
+
+model Option {
+ id String @id @default(cuid())
+ value String
+ pollId String
+ poll Poll @relation(fields: [pollId], references: [urlId])
+ votes Vote[]
+}
+
+model Vote {
+ id String @id @default(cuid())
+ participant Participant @relation(fields: [participantId], references: [id], onDelete: Cascade)
+ participantId String
+ option Option @relation(fields: [optionId], references: [id], onDelete: Cascade)
+ optionId String
+ poll Poll @relation(fields: [pollId], references: [urlId])
+ pollId String
+}
+
+model Comment {
+ id String @id @default(cuid())
+ content String
+ poll Poll @relation(fields:[pollId], references: [urlId])
+ pollId String
+ authorName String
+ user User? @relation(fields: [userId], references: [id])
+ userId String?
+ createdAt DateTime @default(now())
+
+ @@unique([id, pollId])
+}
\ No newline at end of file
diff --git a/sentry.client.config.js b/sentry.client.config.js
new file mode 100644
index 000000000..d480b2d33
--- /dev/null
+++ b/sentry.client.config.js
@@ -0,0 +1,17 @@
+// This file configures the initialization of Sentry on the browser.
+// The config you add here will be used whenever a page is visited.
+// https://docs.sentry.io/platforms/javascript/guides/nextjs/
+
+import * as Sentry from "@sentry/nextjs";
+
+const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
+
+Sentry.init({
+ dsn: SENTRY_DSN,
+ // Adjust this value in production, or use tracesSampler for greater control
+ tracesSampleRate: 1.0,
+ // ...
+ // Note: if you want to override the automatic release value, do not set a
+ // `release` value here - use the environment variable `SENTRY_RELEASE`, so
+ // that it will also get attached to your source maps
+});
diff --git a/sentry.properties b/sentry.properties
new file mode 100644
index 000000000..5cbecfcd8
--- /dev/null
+++ b/sentry.properties
@@ -0,0 +1,4 @@
+defaults.url=https://sentry.io/
+defaults.org=stack-snap
+defaults.project=rallly
+cli.executable=../../.npm/_npx/a8388072043b4cbc/node_modules/@sentry/cli/bin/sentry-cli
diff --git a/sentry.server.config.js b/sentry.server.config.js
new file mode 100644
index 000000000..a7e581b05
--- /dev/null
+++ b/sentry.server.config.js
@@ -0,0 +1,17 @@
+// This file configures the initialization of Sentry on the server.
+// The config you add here will be used whenever the server handles a request.
+// https://docs.sentry.io/platforms/javascript/guides/nextjs/
+
+import * as Sentry from "@sentry/nextjs";
+
+const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
+
+Sentry.init({
+ dsn: SENTRY_DSN,
+ // Adjust this value in production, or use tracesSampler for greater control
+ tracesSampleRate: 1.0,
+ // ...
+ // Note: if you want to override the automatic release value, do not set a
+ // `release` value here - use the environment variable `SENTRY_RELEASE`, so
+ // that it will also get attached to your source maps
+});
diff --git a/style.css b/style.css
new file mode 100644
index 000000000..1510f0bfc
--- /dev/null
+++ b/style.css
@@ -0,0 +1,226 @@
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
+
+@layer base {
+ html,
+ body,
+ #__next {
+ height: 100%;
+ }
+ body {
+ @apply text-base text-slate-600;
+ }
+ p {
+ @apply mb-4;
+ }
+ h1,
+ h2,
+ h3,
+ h4,
+ h5 {
+ @apply font-sans font-semibold mb-4 text-slate-700;
+ }
+ h1 {
+ @apply text-2xl;
+ }
+ h2 {
+ @apply text-xl;
+ }
+ input {
+ @apply outline-none;
+ }
+ a {
+ @apply text-indigo-500 font-medium hover:underline hover:text-indigo-400;
+ }
+ label {
+ @apply block text-slate-800 text-sm mb-1;
+ }
+ button {
+ @apply focus:outline-none focus:ring-indigo-600;
+ }
+
+ #portal {
+ @apply absolute w-full z-50;
+ }
+}
+
+@layer components {
+ .formField {
+ @apply mb-4;
+ }
+ .input {
+ @apply appearance-none placeholder:text-slate-400 px-2 py-1 border border-gray-200 rounded-md text-slate-700 shadow-sm focus:ring-indigo-500 focus:ring-1 focus:border-indigo-500;
+ }
+ input.input {
+ @apply h-9;
+ }
+ .input-lg {
+ @apply input px-3 py-3;
+ }
+ .input-error {
+ @apply focus:ring-rose-500 focus:border-rose-400 bg-rose-50 border-rose-500 placeholder:text-rose-500;
+ }
+ .checkbox {
+ @apply focus:ring-indigo-500 h-4 w-4 text-indigo-500 border-slate-300 rounded cursor-pointer;
+ }
+ .btn {
+ @apply inline-flex justify-center items-center h-9 px-3 border shadow-sm rounded-md font-medium focus:outline-none focus:ring-2 focus:ring-offset-1 transition-all whitespace-nowrap;
+ }
+ a.btn {
+ @apply hover:no-underline;
+ }
+
+ .btn-default {
+ @apply btn bg-white active:bg-gray-100 focus:ring-offset-0 border-gray-300 focus:border-transparent text-gray-700 focus:ring-indigo-500 hover:text-indigo-500;
+ }
+ .btn-danger {
+ @apply btn border-rose-600 text-white bg-rose-500 hover:bg-rose-600 focus:ring-rose-500;
+ }
+ .btn-link {
+ @apply text-indigo-500 inline-flex items-center underline;
+ }
+ .btn-default.btn-disabled {
+ @apply bg-gray-50;
+ }
+ .btn-disabled {
+ @apply pointer-events-none;
+ }
+ .btn-primary {
+ @apply btn text-white border-indigo-600 bg-indigo-500 hover:bg-opacity-90 focus:ring-indigo-500;
+ }
+ a.btn-primary {
+ @apply text-white;
+ }
+
+ .segment-button {
+ @apply flex text-center h-9 shadow-sm;
+ }
+
+ .segment-button button {
+ @apply grow justify-center bg-white inline-flex items-center first:border-l first:rounded-l focus:z-10 last:rounded-r border-t border-b focus:ring-2 px-4 border-r font-medium hover:bg-slate-50 active:bg-slate-100 transition-colors;
+ }
+
+ .segment-button .segment-button-active {
+ @apply text-indigo-500;
+ }
+
+ .badge {
+ @apply cursor-default inline-block border px-1 rounded-lg text-sm;
+ }
+
+ .menu {
+ @apply relative;
+ }
+
+ .menu-items {
+ @apply absolute z-30 bg-white rounded mt-1 shadow-md border focus:outline-none overflow-hidden;
+ }
+
+ .menu-item {
+ @apply px-4 py-2 block w-full text-left cursor-default truncate select-none;
+ }
+
+ button[disabled] {
+ @apply cursor-not-allowed;
+ }
+
+ .tooltip {
+ @apply px-3 py-2 rounded-md pointer-events-none bg-slate-700 text-slate-200 shadow-md;
+ }
+ .tooltip-arrow {
+ @apply w-3 h-3 border-transparent border-[6px];
+ }
+ [data-popper-placement="bottom"] .tooltip-arrow {
+ @apply bottom-full border-b-slate-700;
+ }
+
+ .email {
+ @apply font-medium font-mono whitespace-nowrap text-indigo-300;
+ }
+}
+
+@layer components {
+ .heading {
+ @apply text-indigo-500 text-xl;
+ }
+ .subheading {
+ @apply text-4xl font-bold text-slate-800 mb-16;
+ }
+ .heading-sm {
+ @apply font-bold text-xl text-slate-700;
+ }
+ .text {
+ @apply text-lg leading-relaxed text-slate-500;
+ }
+
+ .footer-menu a {
+ @apply text-slate-400 font-normal leading-loose transition-colors hover:text-indigo-500 hover:no-underline;
+ }
+}
+
+@layer utilities {
+ .contain-paint {
+ contain: paint;
+ }
+ .bg-pattern {
+ background-color: #f9fafb;
+ background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='%239C92AC' fill-opacity='0.06' fill-rule='evenodd'/%3E%3C/svg%3E");
+ }
+}
+
+.rbc-time-view {
+ @apply border-0 border-t border-b border-slate-100;
+}
+
+.rbc-today {
+ @apply bg-blue-50 bg-opacity-50;
+}
+
+.rbc-day-slot .rbc-time-slot {
+ @apply border-gray-100;
+}
+
+.rbc-time-content > * + * > * {
+ @apply border-gray-200;
+}
+.rbc-time-header.rbc-overflowing,
+.rbc-time-header-content,
+.rbc-header {
+ @apply border-gray-200;
+}
+
+.rbc-time-content {
+ @apply border-t-0;
+}
+
+.rbc-time-view .rbc-allday-cell {
+ @apply hidden;
+}
+
+.rbc-label.rbc-time-header-gutter {
+ @apply border-b;
+}
+
+.rbc-current-time-indicator {
+ @apply bg-rose-400;
+}
+
+.rbc-header + .rbc-header {
+ @apply border-l-0;
+}
+
+.rbc-header a {
+ @apply block h-full w-full no-underline p-1 hover:text-gray-700;
+}
+
+.rbc-day-slot .rbc-events-container {
+ @apply mr-2;
+}
+.rbc-slot-selection {
+ @apply bg-green-50 rounded-sm text-green-500;
+}
+
+.rbc-header.rbc-today {
+ @apply bg-white text-rose-600;
+}
diff --git a/tailwind.config.js b/tailwind.config.js
new file mode 100644
index 000000000..0f0652281
--- /dev/null
+++ b/tailwind.config.js
@@ -0,0 +1,47 @@
+const colors = require("tailwindcss/colors");
+const defaultTheme = require("tailwindcss/defaultTheme");
+
+module.exports = {
+ content: ["./pages/**/*.{ts,tsx}", "./components/**/*.{ts,tsx}"],
+ theme: {
+ extend: {
+ primary: colors.indigo,
+ colors: {
+ green: colors.emerald,
+ yellow: colors.amber,
+ purple: colors.violet,
+ },
+ keyframes: {
+ wiggle: {
+ "0%, 100%": { transform: "rotate(-1deg)" },
+ "50%": { transform: "rotate(1deg)" },
+ },
+ popIn: {
+ "0%": {
+ transform: "scale(0.8)",
+ opacity: "0",
+ },
+ "100%": {
+ transform: "scale(1)",
+ opacity: "1",
+ },
+ },
+ },
+ animation: {
+ wiggle: "wiggle 0.2s ease-in-out",
+ popIn: "popIn 0.1s ease-out",
+ },
+ screens: {
+ xs: "375px",
+ },
+ fontFamily: {
+ sans: ["Inter var", ...defaultTheme.fontFamily.sans],
+ },
+ transitionTimingFunction: {
+ "in-expo": "cubic-bezier(0.68, -0.6, 0.32, 1.6)",
+ "out-expo": "cubic-bezier(0.19, 1, 0.22, 1)",
+ },
+ },
+ },
+ plugins: [require("@tailwindcss/forms"), require("@tailwindcss/typography")],
+};
diff --git a/templates/early-access.html b/templates/early-access.html
new file mode 100644
index 000000000..bdfaf8ae0
--- /dev/null
+++ b/templates/early-access.html
@@ -0,0 +1,173 @@
+<!DOCTYPE html>
+<html lang="en" xmlns:v="urn:schemas-microsoft-com:vml">
+ <head>
+ <meta charset="utf-8">
+ <meta name="x-apple-disable-message-reformatting">
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="format-detection" content="telephone=no, date=no, address=no, email=no">
+ <!--[if mso]>
+ <noscript>
+ <xml>
+ <o:OfficeDocumentSettings
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ >
+ <o:PixelsPerInch>96</o:PixelsPerInch>
+ </o:OfficeDocumentSettings>
+ </xml>
+ </noscript>
+ <style>
+ td,
+ th,
+ div,
+ p,
+ a,
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
+ font-family: "Segoe UI", sans-serif;
+ mso-line-height-rule: exactly;
+ }
+ </style>
+ <![endif]-->
+ <title>Thank you for signing up for early access!</title>
+ <style>
+.hover-bg-indigo-400:hover {
+ background-color: #818cf8 !important;
+}
+.hover-underline:hover {
+ text-decoration: underline !important;
+}
+.hover-no-underline:hover {
+ text-decoration: none !important;
+}
+@media (max-width: 600px) {
+ .sm-w-full {
+ width: 100% !important;
+ }
+ .sm-py-32 {
+ padding-top: 32px !important;
+ padding-bottom: 32px !important;
+ }
+ .sm-px-24 {
+ padding-left: 24px !important;
+ padding-right: 24px !important;
+ }
+ .sm-leading-32 {
+ line-height: 32px !important;
+ }
+}
+</style>
+ </head>
+ <body style="margin: 0; width: 100%; padding: 0; word-break: break-word; -webkit-font-smoothing: antialiased; background-color: #f3f4f6;">
+ <div style="display: none;">
+ You can create a new poll by clicking the button below:&#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &zwnj;
+ &#160;&#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &zwnj;
+ &#160;&#847; &#847; &#847; &#847; &#847;
+ </div>
+ <div role="article" aria-roledescription="email" aria-label="Thank you for signing up for early access!" lang="en">
+ <table style="width: 100%; font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td align="center" style="background-color: #f3f4f6;">
+ <table class="sm-w-full" style="width: 600px;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td class="sm-py-32 sm-px-24" style="padding-left: 48px; padding-right: 48px; padding-top: 36px; padding-bottom: 36px; text-align: center;">
+ <a href="<%= it.homePageUrl %>>">
+ <img src="http://cdn.mcauto-images-production.sendgrid.net/6ee16014c94c9785/404bb93c-4da3-4f34-b94b-0b6d4e9e6f74/300x56.png" width="150" alt="Rallly" style="max-width: 100%; vertical-align: middle; line-height: 100%; border: 0;">
+ </a>
+ </td>
+ </tr>
+ <tr>
+ <td align="center" class="sm-px-24">
+ <table style="width: 100%;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td class="sm-px-24" style="border-radius: 4px; background-color: #ffffff; padding: 36px; text-align: left; font-size: 16px; line-height: 24px; color: #1f2937;">
+ <p class="sm-leading-32" style="margin-bottom: 24px; font-size: 24px; font-weight: 600; color: #1f2937;">
+ Thank you for signing up for early access!
+ </p>
+ <p style="margin-bottom: 24px;">
+ Please note that some features are still in development
+ and bugs are to be expected. If you are ok with this
+ then you can create a new poll by clicking the button
+ below:
+ </p>
+ <div style="margin-bottom: 24px; line-height: 100%;">
+ <a href="<%= it.earlyAccessUrl %>" class="hover-bg-indigo-400" style="display: inline-block; border-radius: 4px; background-color: #6366f1; padding-top: 16px; padding-bottom: 16px; padding-left: 24px; padding-right: 24px; text-align: center; font-size: 16px; font-weight: 600; color: #ffffff; text-decoration: none;">
+ <!--[if mso
+ ]><i
+ style="
+ letter-spacing: 24px;
+ mso-font-width: -100%;
+ mso-text-raise: 30px;
+ "
+ >&#8202;</i><!
+ [endif]-->
+ <span style="mso-text-raise: 16px">Get early access &rarr;
+ </span>
+ <!--[if mso
+ ]><i
+ style="
+ letter-spacing: 24px;
+ mso-font-width: -100%;
+ "
+ >&#8202;</i><!
+ [endif]-->
+ </a>
+ </div>
+ <p style="font-size: 14px; color: #6b7280;">
+ If the link doesn't work, copy this URL in to your
+ browser:<br>
+ <span style="color: #9ca3af;"><%= it.earlyAccessUrl %></span>
+ </p>
+ <table style="width: 100%;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td style="padding-top: 32px; padding-bottom: 32px;">
+ <div style="height: 1px; background-color: #e5e7eb; line-height: 1px;">
+ &zwnj;
+ </div>
+ </td>
+ </tr>
+ </table>
+ <p>
+ Not sure why you received this email? Please
+ <a href="mailto:<%= it.supportEmail %>" class="hover-no-underline" style="color: #6366f1; text-decoration: underline;">let us know</a>.
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td style="height: 48px;"></td>
+ </tr>
+ <tr>
+ <td style="padding-left: 24px; padding-right: 24px; text-align: center; font-size: 12px; color: #4b5563;">
+ <p style="margin-bottom: 4px; text-transform: uppercase;">RALLLY</p>
+ <p style="font-style: italic;">Collaborative Scheduling</p>
+ <p style="cursor: default;">
+ <a href="<%= it.homePageUrl %>" class="hover-underline" style="color: #6366f1; text-decoration: none;">Website</a>
+ &bull;
+ <a href="mailto:<%= it.supportEmail %>" class="hover-underline" style="color: #6366f1; text-decoration: none;">Contact</a>
+ </p>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </body>
+</html>
diff --git a/templates/new-comment.html b/templates/new-comment.html
new file mode 100644
index 000000000..caf41cb75
--- /dev/null
+++ b/templates/new-comment.html
@@ -0,0 +1,165 @@
+<!DOCTYPE html>
+<html lang="en" xmlns:v="urn:schemas-microsoft-com:vml">
+ <head>
+ <meta charset="utf-8">
+ <meta name="x-apple-disable-message-reformatting">
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="format-detection" content="telephone=no, date=no, address=no, email=no">
+ <!--[if mso]>
+ <noscript>
+ <xml>
+ <o:OfficeDocumentSettings
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ >
+ <o:PixelsPerInch>96</o:PixelsPerInch>
+ </o:OfficeDocumentSettings>
+ </xml>
+ </noscript>
+ <style>
+ td,
+ th,
+ div,
+ p,
+ a,
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
+ font-family: "Segoe UI", sans-serif;
+ mso-line-height-rule: exactly;
+ }
+ </style>
+ <![endif]-->
+ <title>Somone left a comment on your poll</title>
+ <style>
+.hover-bg-indigo-400:hover {
+ background-color: #818cf8 !important;
+}
+.hover-underline:hover {
+ text-decoration: underline !important;
+}
+.hover-no-underline:hover {
+ text-decoration: none !important;
+}
+@media (max-width: 600px) {
+ .sm-w-full {
+ width: 100% !important;
+ }
+ .sm-py-32 {
+ padding-top: 32px !important;
+ padding-bottom: 32px !important;
+ }
+ .sm-px-24 {
+ padding-left: 24px !important;
+ padding-right: 24px !important;
+ }
+}
+</style>
+ </head>
+ <body style="margin: 0; width: 100%; padding: 0; word-break: break-word; -webkit-font-smoothing: antialiased; background-color: #f3f4f6;">
+ <div style="display: none;">
+ Go to your poll to see what they wrote&#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &zwnj;
+ &#160;&#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &zwnj;
+ &#160;&#847; &#847; &#847; &#847; &#847;
+ </div>
+ <div role="article" aria-roledescription="email" aria-label="Somone left a comment on your poll" lang="en">
+ <table style="width: 100%; font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td align="center" style="background-color: #f3f4f6;">
+ <table class="sm-w-full" style="width: 600px;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td class="sm-py-32 sm-px-24" style="padding-left: 48px; padding-right: 48px; padding-top: 36px; padding-bottom: 36px; text-align: center;">
+ <a href="<%= it.homePageUrl %>>">
+ <img src="http://cdn.mcauto-images-production.sendgrid.net/6ee16014c94c9785/404bb93c-4da3-4f34-b94b-0b6d4e9e6f74/300x56.png" width="150" alt="Rallly" style="max-width: 100%; vertical-align: middle; line-height: 100%; border: 0;">
+ </a>
+ </td>
+ </tr>
+ <tr>
+ <td align="center" class="sm-px-24">
+ <table style="width: 100%;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td class="sm-px-24" style="border-radius: 4px; background-color: #ffffff; padding: 36px; text-align: left; font-size: 16px; line-height: 24px; color: #1f2937;">
+ <p style="margin-bottom: 8px;">Hi <%= it.name %>,</p>
+ <p style="margin-bottom: 8px;">
+ <strong><%= it.author %></strong> has left a comment on
+ your&nbsp;poll.
+ </p>
+ <p style="margin-bottom: 24px;"></p>
+ <div style="margin-bottom: 24px; line-height: 100%;">
+ <a href="<%= it.pollUrl %>" class="hover-bg-indigo-400" style="display: inline-block; border-radius: 4px; background-color: #6366f1; padding-top: 16px; padding-bottom: 16px; padding-left: 24px; padding-right: 24px; text-align: center; font-size: 16px; font-weight: 600; color: #ffffff; text-decoration: none;">
+ <!--[if mso
+ ]><i
+ style="
+ letter-spacing: 24px;
+ mso-font-width: -100%;
+ mso-text-raise: 30px;
+ "
+ >&#8202;</i><!
+ [endif]-->
+ <span style="mso-text-raise: 16px">Go to poll &rarr;
+ </span>
+ <!--[if mso
+ ]><i
+ style="
+ letter-spacing: 24px;
+ mso-font-width: -100%;
+ "
+ >&#8202;</i><!
+ [endif]-->
+ </a>
+ </div>
+ <p>
+ <a href="<%= it.unsubscribeUrl %>" class="hover-no-underline" style="color: #6366f1; text-decoration: underline;">Stop receiving notifications for this poll.</a>
+ </p>
+ <table style="width: 100%;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td style="padding-top: 32px; padding-bottom: 32px;">
+ <div style="height: 1px; background-color: #e5e7eb; line-height: 1px;">
+ &zwnj;
+ </div>
+ </td>
+ </tr>
+ </table>
+ <p>
+ Not sure why you received this email? Please
+ <a href="mailto:<%= it.supportEmail %>" class="hover-no-underline" style="color: #6366f1; text-decoration: underline;">let us know</a>.
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td style="height: 48px;"></td>
+ </tr>
+ <tr>
+ <td style="padding-left: 24px; padding-right: 24px; text-align: center; font-size: 12px; color: #4b5563;">
+ <p style="margin-bottom: 4px; text-transform: uppercase;">RALLLY</p>
+ <p style="font-style: italic;">Collaborative Scheduling</p>
+ <p style="cursor: default;">
+ <a href="<%= it.homePageUrl %>" class="hover-underline" style="color: #6366f1; text-decoration: none;">Website</a>
+ &bull;
+ <a href="mailto:<%= it.supportEmail %>" class="hover-underline" style="color: #6366f1; text-decoration: none;">Contact</a>
+ </p>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </body>
+</html>
diff --git a/templates/new-participant.html b/templates/new-participant.html
new file mode 100644
index 000000000..c46255de3
--- /dev/null
+++ b/templates/new-participant.html
@@ -0,0 +1,165 @@
+<!DOCTYPE html>
+<html lang="en" xmlns:v="urn:schemas-microsoft-com:vml">
+ <head>
+ <meta charset="utf-8">
+ <meta name="x-apple-disable-message-reformatting">
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="format-detection" content="telephone=no, date=no, address=no, email=no">
+ <!--[if mso]>
+ <noscript>
+ <xml>
+ <o:OfficeDocumentSettings
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ >
+ <o:PixelsPerInch>96</o:PixelsPerInch>
+ </o:OfficeDocumentSettings>
+ </xml>
+ </noscript>
+ <style>
+ td,
+ th,
+ div,
+ p,
+ a,
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
+ font-family: "Segoe UI", sans-serif;
+ mso-line-height-rule: exactly;
+ }
+ </style>
+ <![endif]-->
+ <title>Your poll has a new participant</title>
+ <style>
+.hover-bg-indigo-400:hover {
+ background-color: #818cf8 !important;
+}
+.hover-underline:hover {
+ text-decoration: underline !important;
+}
+.hover-no-underline:hover {
+ text-decoration: none !important;
+}
+@media (max-width: 600px) {
+ .sm-w-full {
+ width: 100% !important;
+ }
+ .sm-py-32 {
+ padding-top: 32px !important;
+ padding-bottom: 32px !important;
+ }
+ .sm-px-24 {
+ padding-left: 24px !important;
+ padding-right: 24px !important;
+ }
+}
+</style>
+ </head>
+ <body style="margin: 0; width: 100%; padding: 0; word-break: break-word; -webkit-font-smoothing: antialiased; background-color: #f3f4f6;">
+ <div style="display: none;">
+ Go to your poll to see how they voted&#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &zwnj;
+ &#160;&#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &zwnj;
+ &#160;&#847; &#847; &#847; &#847; &#847;
+ </div>
+ <div role="article" aria-roledescription="email" aria-label="Your poll has a new participant" lang="en">
+ <table style="width: 100%; font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td align="center" style="background-color: #f3f4f6;">
+ <table class="sm-w-full" style="width: 600px;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td class="sm-py-32 sm-px-24" style="padding-left: 48px; padding-right: 48px; padding-top: 36px; padding-bottom: 36px; text-align: center;">
+ <a href="<%= it.homePageUrl %>">
+ <img src="http://cdn.mcauto-images-production.sendgrid.net/6ee16014c94c9785/404bb93c-4da3-4f34-b94b-0b6d4e9e6f74/300x56.png" width="150" alt="Rallly" style="max-width: 100%; vertical-align: middle; line-height: 100%; border: 0;">
+ </a>
+ </td>
+ </tr>
+ <tr>
+ <td align="center" class="sm-px-24">
+ <table style="width: 100%;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td class="sm-px-24" style="border-radius: 4px; background-color: #ffffff; padding: 36px; text-align: left; font-size: 16px; line-height: 24px; color: #1f2937;">
+ <p style="margin-bottom: 8px;">Hi <%= it.name %>,</p>
+ <p style="margin-bottom: 8px;">
+ <strong><%= it.participantName %></strong> has voted on
+ your&nbsp;poll.
+ </p>
+ <p style="margin-bottom: 24px;"></p>
+ <div style="margin-bottom: 24px; line-height: 100%;">
+ <a href="<%= it.pollUrl %>" class="hover-bg-indigo-400" style="display: inline-block; border-radius: 4px; background-color: #6366f1; padding-top: 16px; padding-bottom: 16px; padding-left: 24px; padding-right: 24px; text-align: center; font-size: 16px; font-weight: 600; color: #ffffff; text-decoration: none;">
+ <!--[if mso
+ ]><i
+ style="
+ letter-spacing: 24px;
+ mso-font-width: -100%;
+ mso-text-raise: 30px;
+ "
+ >&#8202;</i><!
+ [endif]-->
+ <span style="mso-text-raise: 16px">Go to poll &rarr;
+ </span>
+ <!--[if mso
+ ]><i
+ style="
+ letter-spacing: 24px;
+ mso-font-width: -100%;
+ "
+ >&#8202;</i><!
+ [endif]-->
+ </a>
+ </div>
+ <p>
+ <a href="<%= it.unsubscribeUrl %>" class="hover-no-underline" style="color: #6366f1; text-decoration: underline;">Stop receiving notifications for this poll.</a>
+ </p>
+ <table style="width: 100%;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td style="padding-top: 32px; padding-bottom: 32px;">
+ <div style="height: 1px; background-color: #e5e7eb; line-height: 1px;">
+ &zwnj;
+ </div>
+ </td>
+ </tr>
+ </table>
+ <p>
+ Not sure why you received this email? Please
+ <a href="mailto:<%= it.supportEmail %>" class="hover-no-underline" style="color: #6366f1; text-decoration: underline;">let us know</a>.
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td style="height: 48px;"></td>
+ </tr>
+ <tr>
+ <td style="padding-left: 24px; padding-right: 24px; text-align: center; font-size: 12px; color: #4b5563;">
+ <p style="margin-bottom: 4px; text-transform: uppercase;">RALLLY</p>
+ <p style="font-style: italic;">Collaborative Scheduling</p>
+ <p style="cursor: default;">
+ <a href="<%= it.homePageUrl %>" class="hover-underline" style="color: #6366f1; text-decoration: none;">Website</a>
+ &bull;
+ <a href="mailto:<%= it.supportEmail %>" class="hover-underline" style="color: #6366f1; text-decoration: none;">Contact</a>
+ </p>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </body>
+</html>
diff --git a/templates/new-poll.html b/templates/new-poll.html
new file mode 100644
index 000000000..7cc5c238e
--- /dev/null
+++ b/templates/new-poll.html
@@ -0,0 +1,177 @@
+<!DOCTYPE html>
+<html lang="en" xmlns:v="urn:schemas-microsoft-com:vml">
+ <head>
+ <meta charset="utf-8">
+ <meta name="x-apple-disable-message-reformatting">
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="format-detection" content="telephone=no, date=no, address=no, email=no">
+ <!--[if mso]>
+ <noscript>
+ <xml>
+ <o:OfficeDocumentSettings
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ >
+ <o:PixelsPerInch>96</o:PixelsPerInch>
+ </o:OfficeDocumentSettings>
+ </xml>
+ </noscript>
+ <style>
+ td,
+ th,
+ div,
+ p,
+ a,
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
+ font-family: "Segoe UI", sans-serif;
+ mso-line-height-rule: exactly;
+ }
+ </style>
+ <![endif]-->
+ <title>Your poll has been created</title>
+ <style>
+.hover-bg-indigo-400:hover {
+ background-color: #818cf8 !important;
+}
+.hover-underline:hover {
+ text-decoration: underline !important;
+}
+.hover-no-underline:hover {
+ text-decoration: none !important;
+}
+@media (max-width: 600px) {
+ .sm-w-full {
+ width: 100% !important;
+ }
+ .sm-py-32 {
+ padding-top: 32px !important;
+ padding-bottom: 32px !important;
+ }
+ .sm-px-24 {
+ padding-left: 24px !important;
+ padding-right: 24px !important;
+ }
+}
+</style>
+ </head>
+ <body style="margin: 0; width: 100%; padding: 0; word-break: break-word; -webkit-font-smoothing: antialiased; background-color: #f3f4f6;">
+ <div style="display: none;">
+ Please click the link below to verify your email address!&#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &zwnj;
+ &#160;&#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847;
+ &#847; &#847; &#847; &#847; &#847; &#847; &#847; &#847; &zwnj;
+ &#160;&#847; &#847; &#847; &#847; &#847;
+ </div>
+ <div role="article" aria-roledescription="email" aria-label="Your poll has been created" lang="en">
+ <table style="width: 100%; font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td align="center" style="background-color: #f3f4f6;">
+ <table class="sm-w-full" style="width: 600px;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td class="sm-py-32 sm-px-24" style="padding-left: 48px; padding-right: 48px; padding-top: 36px; padding-bottom: 36px; text-align: center;">
+ <a href="<%= it.homePageUrl %>">
+ <img src="http://cdn.mcauto-images-production.sendgrid.net/6ee16014c94c9785/404bb93c-4da3-4f34-b94b-0b6d4e9e6f74/300x56.png" width="150" alt="Rallly" style="max-width: 100%; vertical-align: middle; line-height: 100%; border: 0;">
+ </a>
+ </td>
+ </tr>
+ <tr>
+ <td align="center" class="sm-px-24">
+ <table style="width: 100%;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td class="sm-px-24" style="border-radius: 4px; background-color: #ffffff; padding: 36px; text-align: left; font-size: 16px; line-height: 24px; color: #1f2937;">
+ <p style="margin-bottom: 8px;">Hi <%= it.name %>,</p>
+ <p style="margin-bottom: 8px;">
+ Your poll <strong>"<%= it.title %>"</strong> has been
+ created. Please verify your email address to claim
+ ownership of this&nbsp;poll:
+ </p>
+ <p style="margin-bottom: 24px;"></p>
+ <div style="margin-bottom: 24px; line-height: 100%;">
+ <a href="<%= it.verifyEmailUrl %>" class="hover-bg-indigo-400" style="display: inline-block; border-radius: 4px; background-color: #6366f1; padding-top: 16px; padding-bottom: 16px; padding-left: 24px; padding-right: 24px; text-align: center; font-size: 16px; font-weight: 600; color: #ffffff; text-decoration: none;">
+ <!--[if mso
+ ]><i
+ style="
+ letter-spacing: 24px;
+ mso-font-width: -100%;
+ mso-text-raise: 30px;
+ "
+ >&#8202;</i><!
+ [endif]-->
+ <span style="mso-text-raise: 16px">Verify your email &rarr;
+ </span>
+ <!--[if mso
+ ]><i
+ style="
+ letter-spacing: 24px;
+ mso-font-width: -100%;
+ "
+ >&#8202;</i><!
+ [endif]-->
+ </a>
+ </div>
+ <p style="margin-bottom: 24px; font-size: 14px; color: #6b7280;">
+ If the link doesn't work, copy this address in to your
+ browser:<br>
+ <span style="color: #9ca3af;"><%= it.verifyEmailUrl %></span>
+ </p>
+ <p style="margin-bottom: 8px;">
+ In case you lose it, here's a link to your poll for the
+ future 😉
+ </p>
+ <p style="font-weight: 500;">
+ <a href="<%= it.pollUrl %>" style="display: inline-block; background-color: #eef2ff; padding: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; color: #6366f1; text-decoration: none;">
+ <%= it.pollUrl %>
+ </a>
+ </p>
+ <table style="width: 100%;" cellpadding="0" cellspacing="0" role="presentation">
+ <tr>
+ <td style="padding-top: 32px; padding-bottom: 32px;">
+ <div style="height: 1px; background-color: #e5e7eb; line-height: 1px;">
+ &zwnj;
+ </div>
+ </td>
+ </tr>
+ </table>
+ <p>
+ Not sure why you received this email? Please
+ <a href="mailto:<%= it.supportEmail %>" class="hover-no-underline" style="color: #6366f1; text-decoration: underline;">let us know</a>.
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td style="height: 48px;"></td>
+ </tr>
+ <tr>
+ <td style="padding-left: 24px; padding-right: 24px; text-align: center; font-size: 12px; color: #4b5563;">
+ <p style="margin-bottom: 4px; text-transform: uppercase;">RALLLY</p>
+ <p style="font-style: italic;">Collaborative Scheduling</p>
+ <p style="cursor: default;">
+ <a href="<%= it.homePageUrl %>" class="hover-underline" style="color: #6366f1; text-decoration: none;">Website</a>
+ &bull;
+ <a href="mailto:<%= it.supportEmail %>" class="hover-underline" style="color: #6366f1; text-decoration: none;">Contact</a>
+ </p>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </body>
+</html>
diff --git a/tests/create-poll.spec.ts b/tests/create-poll.spec.ts
new file mode 100644
index 000000000..a70bc27f9
--- /dev/null
+++ b/tests/create-poll.spec.ts
@@ -0,0 +1,39 @@
+import { expect, test } from "@playwright/test";
+
+test("should be able to create a new poll", async ({ page, context }) => {
+ await context.addCookies([
+ {
+ name: "rallly_cookie_consent",
+ value: "1",
+ url: "http://localhost",
+ },
+ ]);
+ await page.goto("/new");
+ // // // Find an element with the text 'About Page' and click on it
+ await page.type('[placeholder="Monthly Meetup"]', "Monthly Meetup");
+ // click on label to focus on input
+ await page.click('text="Location"');
+ await page.keyboard.type("Joe's Coffee Shop");
+
+ await page.click('text="Description"');
+
+ await page.keyboard.type("This is a test description");
+
+ await page.click('text="Continue"');
+
+ await page.click('[title="Next month"]');
+
+ await page.click("text=/^5$/");
+ await page.click("text=/^7$/");
+ await page.click("text=/^10$/");
+ await page.click("text=/^15$/");
+
+ await page.click('text="Continue"');
+
+ await page.type('[placeholder="John Doe"]', "John");
+ await page.type('[placeholder="[email protected]"]', "[email protected]");
+
+ await page.click('text="Create poll"');
+
+ await expect(page.locator('text="Monthly Meetup"')).toBeVisible();
+});
diff --git a/tests/vote-and-comment.spec.ts b/tests/vote-and-comment.spec.ts
new file mode 100644
index 000000000..5bb766bd3
--- /dev/null
+++ b/tests/vote-and-comment.spec.ts
@@ -0,0 +1,21 @@
+import { expect, test } from "@playwright/test";
+
+test("should be able to vote and comment on a poll", async ({ page }) => {
+ await page.goto("/demo");
+
+ await expect(page.locator('text="Lunch Meeting Demo"')).toBeVisible();
+
+ await page.click("text='New Participant'");
+ await page.type('[placeholder="Your name"]', "Test user");
+ // There is a hidden checkbox (nth=0) that exists so that the behaviour of the form is consistent even
+ // when we only have a single option/checkbox.
+ await page.locator('[name="votes"] >> nth=1').click();
+ await page.locator('[name="votes"] >> nth=3').click();
+ await page.click('[data-testid="submitNewParticipant"]');
+ await expect(page.locator("text='Test user'")).toBeVisible();
+
+ await page.type("[placeholder='Add your comment…']", "This is a comment!");
+ await page.click("text='Send'");
+
+ await expect(page.locator("text='This is a comment!'")).toBeVisible();
+});
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 000000000..cb315f355
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,31 @@
+{
+ "compilerOptions": {
+ "allowJs": false,
+ "allowSyntheticDefaultImports": true,
+ "jsx": "preserve",
+ "lib": ["dom", "es2017"],
+ "module": "ESNext",
+ "moduleResolution": "node",
+ "noEmit": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "preserveConstEnums": true,
+ "removeComments": false,
+ "skipLibCheck": true,
+ "sourceMap": true,
+ "strict": true,
+ "target": "ESNext",
+ "forceConsistentCasingInFileNames": true,
+ "esModuleInterop": true,
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "suppressImplicitAnyIndexErrors": true,
+ "incremental": true,
+ "baseUrl": ".",
+ "paths": {
+ "@/components/*": ["components/*"]
+ }
+ },
+ "exclude": ["**/node_modules", "**/.*/", "**/*.js"],
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
+}
diff --git a/utils/absolute-url.ts b/utils/absolute-url.ts
new file mode 100644
index 000000000..8f369bf0c
--- /dev/null
+++ b/utils/absolute-url.ts
@@ -0,0 +1,36 @@
+// Source: https://github.com/jakeburden/next-absolute-url/blob/1d96d1d2a2a2308db60ce53a130b5d47aab3ee25/index.ts
+import { IncomingMessage } from "http";
+
+function absoluteUrl(
+ req?: IncomingMessage,
+ localhostAddress = "localhost:3000",
+) {
+ let host =
+ (req?.headers ? req.headers.host : window.location.host) ||
+ localhostAddress;
+ let protocol = /^localhost(:\d+)?$/.test(host) ? "http:" : "https:";
+
+ if (
+ req &&
+ req.headers["x-forwarded-host"] &&
+ typeof req.headers["x-forwarded-host"] === "string"
+ ) {
+ host = req.headers["x-forwarded-host"];
+ }
+
+ if (
+ req &&
+ req.headers["x-forwarded-proto"] &&
+ typeof req.headers["x-forwarded-proto"] === "string"
+ ) {
+ protocol = `${req.headers["x-forwarded-proto"]}:`;
+ }
+
+ return {
+ protocol,
+ host,
+ origin: protocol + "//" + host,
+ };
+}
+
+export default absoluteUrl;
diff --git a/utils/api-utils.ts b/utils/api-utils.ts
new file mode 100644
index 000000000..54844a461
--- /dev/null
+++ b/utils/api-utils.ts
@@ -0,0 +1,79 @@
+import { Link } from "@prisma/client";
+import * as Eta from "eta";
+import { readFileSync } from "fs";
+import { NextApiHandler, NextApiRequest, NextApiResponse } from "next";
+import path from "path";
+import { prisma } from "../db";
+import { sendEmail } from "./send-email";
+
+export const exclude = <O extends Record<string, any>, E extends keyof O>(
+ obj: O,
+ ...fieldsToExclude: E[]
+): Omit<O, E> => {
+ const newObj = { ...obj };
+ fieldsToExclude.forEach((field) => {
+ delete newObj[field];
+ });
+ return newObj;
+};
+
+export const getQueryParam = (req: NextApiRequest, queryKey: string) => {
+ const value = req.query[queryKey];
+ return typeof value === "string" ? value : value[0];
+};
+
+export const withLink = (
+ handler: (
+ req: NextApiRequest,
+ res: NextApiResponse,
+ link: Link,
+ ) => Promise<void>,
+): NextApiHandler => {
+ return async (req, res) => {
+ const urlId = getQueryParam(req, "urlId");
+ const link = await prisma.link.findUnique({ where: { urlId } });
+
+ if (!link) {
+ const message = `Could not find link with urlId: ${urlId}`;
+ return res.status(404).json({
+ status: 404,
+ message,
+ });
+ }
+
+ return await handler(req, res, link);
+ };
+};
+
+export const getAdminLink = (links: Link[]) =>
+ links.find((link) => link.role === "admin");
+
+interface SendEmailTemplateParams {
+ templateName: string;
+ to: string;
+ subject: string;
+ templateVars: Record<string, string | undefined>;
+}
+
+export const sendEmailTemplate = async ({
+ templateName,
+ templateVars,
+ to,
+ subject,
+}: SendEmailTemplateParams) => {
+ const template = readFileSync(
+ path.resolve(process.cwd(), `./templates/${templateName}.html`),
+ ).toString();
+
+ const rendered = await Eta.render(template, templateVars);
+
+ if (rendered) {
+ await sendEmail({
+ html: rendered,
+ to,
+ subject,
+ });
+ } else {
+ throw new Error(`Failed to render email template: ${templateName}`);
+ }
+};
diff --git a/utils/auth.ts b/utils/auth.ts
new file mode 100644
index 000000000..f93dbe937
--- /dev/null
+++ b/utils/auth.ts
@@ -0,0 +1,5 @@
+import { jwtVerify } from "jose";
+
+export const verifyJwt = async (jwt: string) => {
+ return await jwtVerify(jwt, new TextEncoder().encode(process.env.JWT_SECRET));
+};
diff --git a/utils/constants.ts b/utils/constants.ts
new file mode 100644
index 000000000..e5b953b9b
--- /dev/null
+++ b/utils/constants.ts
@@ -0,0 +1 @@
+export const isInMaintenanceMode = process.env.MAINTENANCE_MODE === "true";
diff --git a/utils/date-time-utils.ts b/utils/date-time-utils.ts
new file mode 100644
index 000000000..edacd7608
--- /dev/null
+++ b/utils/date-time-utils.ts
@@ -0,0 +1,100 @@
+import { format, isSameDay } from "date-fns";
+import { formatInTimeZone } from "date-fns-tz";
+import spacetime from "spacetime";
+
+import {
+ DateTimeOption,
+ TimeOption,
+} from "../components/forms/poll-options-form";
+
+export const getBrowserTimeZone = () =>
+ Intl.DateTimeFormat().resolvedOptions().timeZone;
+
+export const encodeDateOption = (option: DateTimeOption) => {
+ return option.type === "timeSlot"
+ ? `${option.start}/${option.end}`
+ : option.date;
+};
+
+type ParsedDateTimeOpton = { day: string; dow: string; month: string } & (
+ | {
+ type: "timeSlot";
+ startTime: string;
+ endTime: string;
+ }
+ | {
+ type: "date";
+ }
+);
+
+export const decodeDateOption = (
+ option: string,
+ timeZone: string | null,
+ targetTimeZone: string,
+): ParsedDateTimeOpton => {
+ const isTimeRange = option.indexOf("/") !== -1;
+ // option can either be an ISO date (ex. 2000-01-01)
+ // or a time range (ex. 2000-01-01T08:00:00/2000-01-01T09:00:00)
+ if (isTimeRange) {
+ const [start, end] = option.split("/");
+
+ if (timeZone && targetTimeZone) {
+ const startDate = spacetime(start, timeZone).toNativeDate();
+ const endDate = spacetime(end, timeZone).toNativeDate();
+ return {
+ type: "timeSlot",
+ startTime: formatInTimeZone(startDate, targetTimeZone, "hh:mm a"),
+ endTime: formatInTimeZone(endDate, targetTimeZone, "hh:mm a"),
+ day: formatInTimeZone(startDate, targetTimeZone, "dd"),
+ dow: formatInTimeZone(startDate, targetTimeZone, "E"),
+ month: formatInTimeZone(startDate, targetTimeZone, "MMM"),
+ };
+ } else {
+ const date = new Date(start);
+ return {
+ type: "timeSlot",
+ startTime: format(date, "hh:mm a"),
+ endTime: format(new Date(end), "hh:mm a"),
+ day: format(date, "dd"),
+ dow: format(date, "E"),
+ month: format(date, "MMM"),
+ };
+ }
+ }
+
+ // we add the time because otherwise Date will assume UTC time which might change the day for some time zones
+ const date = new Date(option + "T00:00:00");
+ return {
+ type: "date",
+ day: format(date, "dd"),
+ dow: format(date, "E"),
+ month: format(date, "MMM"),
+ };
+};
+
+export const removeAllOptionsForDay = (
+ options: DateTimeOption[],
+ date: Date,
+) => {
+ return options.filter((option) => {
+ const optionDate = spacetime(
+ option.type === "date" ? option.date : option.start,
+ ).toNativeDate();
+ return !isSameDay(date, optionDate);
+ });
+};
+
+export const getDateProps = (date: Date) => {
+ return {
+ day: format(date, "dd"),
+ dow: format(date, "E"),
+ month: format(date, "MMM"),
+ };
+};
+
+export const expectTimeOption = (d: DateTimeOption): TimeOption => {
+ if (d.type === "date") {
+ throw new Error("Expected timeSlot but got date instead");
+ }
+ return d;
+};
diff --git a/utils/form-validation.ts b/utils/form-validation.ts
new file mode 100644
index 000000000..72fa90ad7
--- /dev/null
+++ b/utils/form-validation.ts
@@ -0,0 +1 @@
+export const requiredString = (value: string) => !!value.trim();
diff --git a/utils/mocks.ts b/utils/mocks.ts
new file mode 100644
index 000000000..d7bba2df9
--- /dev/null
+++ b/utils/mocks.ts
@@ -0,0 +1,62 @@
+import { Option, Participant, Vote } from "@prisma/client";
+
+export const generateFakeParticipants = (names: string[], dates: string[]) => {
+ const pollId = "mock";
+
+ const options: Option[] = dates.map((date) => {
+ return {
+ id: date,
+ value: date,
+ pollId,
+ };
+ });
+
+ const participants: Array<Participant & { votes: Vote[] }> = names.map(
+ (name, i) => {
+ return {
+ name,
+ id: `participant${i}`,
+ pollId,
+ userId: null,
+ createdAt: new Date(),
+ votes: [],
+ };
+ },
+ );
+
+ const mockVotes: number[][] = [
+ [1, 1, 1, 0],
+ [1, 0, 1, 1],
+ [1, 1, 1, 1],
+ [0, 0, 1, 0],
+ ];
+
+ const optionsWithVotes: Array<Option & { votes: Vote[] }> = options.map(
+ (option, optionIndex) => {
+ const votes: Vote[] = [];
+ participants.map((participant, participantIndex) => {
+ if (mockVotes[participantIndex][optionIndex]) {
+ const vote: Vote = {
+ id: participant.id + option.id,
+ participantId: participant.id,
+ optionId: option.id,
+ pollId,
+ };
+ votes.push(vote);
+ participant.votes.push(vote);
+ }
+ });
+ return { ...option, votes };
+ },
+ );
+
+ let highScore = 0;
+
+ optionsWithVotes.forEach((option) => {
+ if (option.votes.length > highScore) {
+ highScore = option.votes.length;
+ }
+ });
+
+ return { participants, options: optionsWithVotes, highScore };
+};
diff --git a/utils/mongodb-client.ts b/utils/mongodb-client.ts
new file mode 100644
index 000000000..2eb73f07d
--- /dev/null
+++ b/utils/mongodb-client.ts
@@ -0,0 +1,32 @@
+// Import the dependency.
+import { MongoClient } from "mongodb";
+
+declare global {
+ // allow global `var` declarations
+ // eslint-disable-next-line no-var
+ var _mongoClientPromise: Promise<MongoClient>;
+}
+
+const uri = process.env.LEGACY_MONGODB_URI;
+
+let client;
+let clientPromise;
+
+export const getMongoClient = async () => {
+ if (!uri) {
+ return;
+ }
+
+ if (global._mongoClientPromise) {
+ return global._mongoClientPromise;
+ }
+
+ client = new MongoClient(uri);
+ clientPromise = client.connect();
+
+ if (process.env.NODE_ENV === "development") {
+ global._mongoClientPromise = clientPromise;
+ }
+
+ return clientPromise;
+};
diff --git a/utils/nanoid.ts b/utils/nanoid.ts
new file mode 100644
index 000000000..cb8a44d36
--- /dev/null
+++ b/utils/nanoid.ts
@@ -0,0 +1,6 @@
+import { customAlphabet } from "nanoid/async";
+
+export const nanoid = customAlphabet(
+ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
+ 12,
+);
diff --git a/utils/prevent-widows.ts b/utils/prevent-widows.ts
new file mode 100644
index 000000000..ff8e97414
--- /dev/null
+++ b/utils/prevent-widows.ts
@@ -0,0 +1,8 @@
+export const preventWidows = (text: string) => {
+ // This only really makes sense if we have at least 3 words
+ if (text.split(" ").length < 3) {
+ return text;
+ }
+ const index = text.lastIndexOf(" ");
+ return [text.substring(0, index), text.substring(index + 1)].join("\u00a0");
+};
diff --git a/utils/selectors.ts b/utils/selectors.ts
new file mode 100644
index 000000000..01309d761
--- /dev/null
+++ b/utils/selectors.ts
@@ -0,0 +1,7 @@
+export const getPortal = () => {
+ const el = document.getElementById("portal");
+ if (el === null) {
+ throw new Error("Portal element not found");
+ }
+ return el;
+};
diff --git a/utils/send-email.ts b/utils/send-email.ts
new file mode 100644
index 000000000..2ce07e838
--- /dev/null
+++ b/utils/send-email.ts
@@ -0,0 +1,41 @@
+import nodemailer from "nodemailer";
+import sgTransport from "nodemailer-sendgrid-transport";
+
+interface SendEmailParameters {
+ to: string;
+ subject: string;
+ html: string;
+}
+
+const getTransport = async () => {
+ if (process.env.SENDGRID_API_KEY) {
+ const sgTransportParams = sgTransport({
+ auth: { api_key: process.env.SENDGRID_API_KEY },
+ });
+ return nodemailer.createTransport(sgTransportParams);
+ } else {
+ const auth = await nodemailer.createTestAccount();
+
+ console.log(
+ `Email sent using ethereal.email account:\n${auth.user}\n${auth.pass}`,
+ );
+
+ return nodemailer.createTransport({
+ host: "smtp.ethereal.email",
+ port: 587,
+ secure: false,
+ // In development we use https://ethereal.email
+ auth,
+ });
+ }
+};
+
+export const sendEmail = async (params: SendEmailParameters) => {
+ const transport = await getTransport();
+ return await transport.sendMail({
+ to: params.to,
+ from: `Rallly ${process.env.NEXT_PUBLIC_SUPPORT_EMAIL}`,
+ subject: params.subject,
+ html: params.html,
+ });
+};
diff --git a/utils/string-to-value.ts b/utils/string-to-value.ts
new file mode 100644
index 000000000..13c528474
--- /dev/null
+++ b/utils/string-to-value.ts
@@ -0,0 +1,7 @@
+export const stringToValue = (seed: string): number => {
+ let num = 0;
+ for (let i = 0; i < seed.length; i++) {
+ num += seed.charCodeAt(i);
+ }
+ return num;
+};
diff --git a/utils/theme.json b/utils/theme.json
new file mode 100644
index 000000000..ad6c12d82
--- /dev/null
+++ b/utils/theme.json
@@ -0,0 +1,18 @@
+{
+ "color": {
+ "background": "#FFFFFF",
+ "highlightBg": "#f9fafd",
+ "primary": "#8A75AE",
+ "orange": "#ff4d4f",
+ "border": "#ECEEF0",
+ "textDark": "#3f4650",
+ "textMid": "#666b77",
+ "textLight": "#A0A6BA",
+ "success": "#52c41a",
+ "danger": "#EA3B66"
+ },
+ "spacing": {
+ "xs": "4px",
+ "sm": "8px"
+ }
+}
diff --git a/yarn.lock b/yarn.lock
new file mode 100644
index 000000000..7de375ab2
--- /dev/null
+++ b/yarn.lock
@@ -0,0 +1,6846 @@
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+# yarn lockfile v1
+
+
+"@ampproject/remapping@^2.0.0":
+ version "2.0.2"
+ resolved "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.0.2.tgz"
+ integrity sha512-sE8Gx+qSDMLoJvb3QarJJlDQK7SSY4rK3hxp4XsiANeFOmjU46ZI7Y9adAQRJrmbz8zbtZkp3mJTT+rGxtF0XA==
+ dependencies:
+ "@jridgewell/trace-mapping" "^0.2.2"
+ sourcemap-codec "1.4.8"
+
+ version "7.12.11"
+ resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz"
+ integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==
+ dependencies:
+ "@babel/highlight" "^7.10.4"
+
+"@babel/[email protected]", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz"
+ integrity sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==
+ dependencies:
+ "@babel/highlight" "^7.16.7"
+
+"@babel/code-frame@^7.0.0":
+ version "7.16.0"
+ resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.0.tgz"
+ integrity sha512-IF4EOMEV+bfYwOmNxGzSnjR2EmQod7f1UXOpZM3l4i4o4QNwzjtJAu/HxdjHq0aYBvdqMuQEY1eg0nqW9ZPORA==
+ dependencies:
+ "@babel/highlight" "^7.16.0"
+
+"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.16.4", "@babel/compat-data@^7.16.8":
+ version "7.17.0"
+ resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.17.0.tgz"
+ integrity sha512-392byTlpGWXMv4FbyWw3sAZ/FrW/DrwqLGXpy0mbyNe9Taqv1mg9yON5/o0cnr8XYCkFTZbC1eV+c+LAROgrng==
+
+ version "7.16.12"
+ resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.16.12.tgz#5edc53c1b71e54881315923ae2aedea2522bb784"
+ integrity sha512-dK5PtG1uiN2ikk++5OzSYsitZKny4wOCD0nrO4TqnW4BVBTQ2NGS3NgilvT/TEyxTST7LNyWV/T4tXDoD3fOgg==
+ dependencies:
+ "@babel/code-frame" "^7.16.7"
+ "@babel/generator" "^7.16.8"
+ "@babel/helper-compilation-targets" "^7.16.7"
+ "@babel/helper-module-transforms" "^7.16.7"
+ "@babel/helpers" "^7.16.7"
+ "@babel/parser" "^7.16.12"
+ "@babel/template" "^7.16.7"
+ "@babel/traverse" "^7.16.10"
+ "@babel/types" "^7.16.8"
+ convert-source-map "^1.7.0"
+ debug "^4.1.0"
+ gensync "^1.0.0-beta.2"
+ json5 "^2.1.2"
+ semver "^6.3.0"
+ source-map "^0.5.0"
+
+"@babel/core@^7.15.5":
+ version "7.17.0"
+ resolved "https://registry.npmjs.org/@babel/core/-/core-7.17.0.tgz"
+ integrity sha512-x/5Ea+RO5MvF9ize5DeVICJoVrNv0Mi2RnIABrZEKYvPEpldXwauPkgvYA17cKa6WpU3LoYvYbuEMFtSNFsarA==
+ dependencies:
+ "@ampproject/remapping" "^2.0.0"
+ "@babel/code-frame" "^7.16.7"
+ "@babel/generator" "^7.17.0"
+ "@babel/helper-compilation-targets" "^7.16.7"
+ "@babel/helper-module-transforms" "^7.16.7"
+ "@babel/helpers" "^7.17.0"
+ "@babel/parser" "^7.17.0"
+ "@babel/template" "^7.16.7"
+ "@babel/traverse" "^7.17.0"
+ "@babel/types" "^7.17.0"
+ convert-source-map "^1.7.0"
+ debug "^4.1.0"
+ gensync "^1.0.0-beta.2"
+ json5 "^2.1.2"
+ semver "^6.3.0"
+
+"@babel/generator@^7.16.8", "@babel/generator@^7.17.3":
+ version "7.17.7"
+ resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.17.7.tgz#8da2599beb4a86194a3b24df6c085931d9ee45ad"
+ integrity sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w==
+ dependencies:
+ "@babel/types" "^7.17.0"
+ jsesc "^2.5.1"
+ source-map "^0.5.0"
+
+"@babel/generator@^7.17.0":
+ version "7.17.0"
+ resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.17.0.tgz"
+ integrity sha512-I3Omiv6FGOC29dtlZhkfXO6pgkmukJSlT26QjVvS1DGZe/NzSVCPG41X0tS21oZkJYlovfj9qDWgKP+Cn4bXxw==
+ dependencies:
+ "@babel/types" "^7.17.0"
+ jsesc "^2.5.1"
+ source-map "^0.5.0"
+
+"@babel/helper-annotate-as-pure@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.16.7.tgz"
+ integrity sha512-s6t2w/IPQVTAET1HitoowRGXooX8mCgtuP5195wD/QJPV6wYjpujCGF7JuMODVX2ZAJOf1GT6DT9MHEZvLOFSw==
+ dependencies:
+ "@babel/types" "^7.16.7"
+
+"@babel/helper-builder-binary-assignment-operator-visitor@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.16.7.tgz"
+ integrity sha512-C6FdbRaxYjwVu/geKW4ZeQ0Q31AftgRcdSnZ5/jsH6BzCJbtvXvhpfkbkThYSuutZA7nCXpPR6AD9zd1dprMkA==
+ dependencies:
+ "@babel/helper-explode-assignable-expression" "^7.16.7"
+ "@babel/types" "^7.16.7"
+
+"@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz"
+ integrity sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA==
+ dependencies:
+ "@babel/compat-data" "^7.16.4"
+ "@babel/helper-validator-option" "^7.16.7"
+ browserslist "^4.17.5"
+ semver "^6.3.0"
+
+"@babel/helper-create-class-features-plugin@^7.16.10", "@babel/helper-create-class-features-plugin@^7.16.7":
+ version "7.17.1"
+ resolved "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.17.1.tgz"
+ integrity sha512-JBdSr/LtyYIno/pNnJ75lBcqc3Z1XXujzPanHqjvvrhOA+DTceTFuJi8XjmWTZh4r3fsdfqaCMN0iZemdkxZHQ==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.16.7"
+ "@babel/helper-environment-visitor" "^7.16.7"
+ "@babel/helper-function-name" "^7.16.7"
+ "@babel/helper-member-expression-to-functions" "^7.16.7"
+ "@babel/helper-optimise-call-expression" "^7.16.7"
+ "@babel/helper-replace-supers" "^7.16.7"
+ "@babel/helper-split-export-declaration" "^7.16.7"
+
+"@babel/helper-create-regexp-features-plugin@^7.16.7":
+ version "7.17.0"
+ resolved "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.17.0.tgz"
+ integrity sha512-awO2So99wG6KnlE+TPs6rn83gCz5WlEePJDTnLEqbchMVrBeAujURVphRdigsk094VhvZehFoNOihSlcBjwsXA==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.16.7"
+ regexpu-core "^5.0.1"
+
+"@babel/helper-define-polyfill-provider@^0.3.1":
+ version "0.3.1"
+ resolved "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.1.tgz"
+ integrity sha512-J9hGMpJQmtWmj46B3kBHmL38UhJGhYX7eqkcq+2gsstyYt341HmPeWspihX43yVRA0mS+8GGk2Gckc7bY/HCmA==
+ dependencies:
+ "@babel/helper-compilation-targets" "^7.13.0"
+ "@babel/helper-module-imports" "^7.12.13"
+ "@babel/helper-plugin-utils" "^7.13.0"
+ "@babel/traverse" "^7.13.0"
+ debug "^4.1.1"
+ lodash.debounce "^4.0.8"
+ resolve "^1.14.2"
+ semver "^6.1.2"
+
+"@babel/helper-environment-visitor@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz"
+ integrity sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==
+ dependencies:
+ "@babel/types" "^7.16.7"
+
+"@babel/helper-explode-assignable-expression@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.16.7.tgz"
+ integrity sha512-KyUenhWMC8VrxzkGP0Jizjo4/Zx+1nNZhgocs+gLzyZyB8SHidhoq9KK/8Ato4anhwsivfkBLftky7gvzbZMtQ==
+ dependencies:
+ "@babel/types" "^7.16.7"
+
+"@babel/helper-function-name@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz"
+ integrity sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA==
+ dependencies:
+ "@babel/helper-get-function-arity" "^7.16.7"
+ "@babel/template" "^7.16.7"
+ "@babel/types" "^7.16.7"
+
+"@babel/helper-get-function-arity@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz"
+ integrity sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==
+ dependencies:
+ "@babel/types" "^7.16.7"
+
+"@babel/helper-hoist-variables@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz"
+ integrity sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==
+ dependencies:
+ "@babel/types" "^7.16.7"
+
+"@babel/helper-member-expression-to-functions@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.16.7.tgz"
+ integrity sha512-VtJ/65tYiU/6AbMTDwyoXGPKHgTsfRarivm+YbB5uAzKUyuPjgZSgAFeG87FCigc7KNHu2Pegh1XIT3lXjvz3Q==
+ dependencies:
+ "@babel/types" "^7.16.7"
+
+"@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz"
+ integrity sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==
+ dependencies:
+ "@babel/types" "^7.16.7"
+
+"@babel/helper-module-transforms@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.16.7.tgz"
+ integrity sha512-gaqtLDxJEFCeQbYp9aLAefjhkKdjKcdh6DB7jniIGU3Pz52WAmP268zK0VgPz9hUNkMSYeH976K2/Y6yPadpng==
+ dependencies:
+ "@babel/helper-environment-visitor" "^7.16.7"
+ "@babel/helper-module-imports" "^7.16.7"
+ "@babel/helper-simple-access" "^7.16.7"
+ "@babel/helper-split-export-declaration" "^7.16.7"
+ "@babel/helper-validator-identifier" "^7.16.7"
+ "@babel/template" "^7.16.7"
+ "@babel/traverse" "^7.16.7"
+ "@babel/types" "^7.16.7"
+
+"@babel/helper-optimise-call-expression@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.16.7.tgz"
+ integrity sha512-EtgBhg7rd/JcnpZFXpBy0ze1YRfdm7BnBX4uKMBd3ixa3RGAE002JZB66FJyNH7g0F38U05pXmA5P8cBh7z+1w==
+ dependencies:
+ "@babel/types" "^7.16.7"
+
+"@babel/[email protected]", "@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz"
+ integrity sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==
+
+"@babel/helper-remap-async-to-generator@^7.16.8":
+ version "7.16.8"
+ resolved "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.16.8.tgz"
+ integrity sha512-fm0gH7Flb8H51LqJHy3HJ3wnE1+qtYR2A99K06ahwrawLdOFsCEWjZOrYricXJHoPSudNKxrMBUPEIPxiIIvBw==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.16.7"
+ "@babel/helper-wrap-function" "^7.16.8"
+ "@babel/types" "^7.16.8"
+
+"@babel/helper-replace-supers@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.16.7.tgz"
+ integrity sha512-y9vsWilTNaVnVh6xiJfABzsNpgDPKev9HnAgz6Gb1p6UUwf9NepdlsV7VXGCftJM+jqD5f7JIEubcpLjZj5dBw==
+ dependencies:
+ "@babel/helper-environment-visitor" "^7.16.7"
+ "@babel/helper-member-expression-to-functions" "^7.16.7"
+ "@babel/helper-optimise-call-expression" "^7.16.7"
+ "@babel/traverse" "^7.16.7"
+ "@babel/types" "^7.16.7"
+
+"@babel/helper-simple-access@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz"
+ integrity sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g==
+ dependencies:
+ "@babel/types" "^7.16.7"
+
+"@babel/helper-skip-transparent-expression-wrappers@^7.16.0":
+ version "7.16.0"
+ resolved "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.16.0.tgz"
+ integrity sha512-+il1gTy0oHwUsBQZyJvukbB4vPMdcYBrFHa0Uc4AizLxbq6BOYC51Rv4tWocX9BLBDLZ4kc6qUFpQ6HRgL+3zw==
+ dependencies:
+ "@babel/types" "^7.16.0"
+
+"@babel/helper-split-export-declaration@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz"
+ integrity sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==
+ dependencies:
+ "@babel/types" "^7.16.7"
+
+"@babel/helper-validator-identifier@^7.14.0":
+ version "7.14.0"
+ resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.0.tgz"
+ integrity sha512-V3ts7zMSu5lfiwWDVWzRDGIN+lnCEUdaXgtVHJgLb1rGaA6jMrtB9EmE7L18foXJIE8Un/A/h6NJfGQp/e1J4A==
+
+"@babel/helper-validator-identifier@^7.15.7":
+ version "7.15.7"
+ resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz"
+ integrity sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==
+
+"@babel/helper-validator-identifier@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz"
+ integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==
+
+"@babel/helper-validator-option@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz"
+ integrity sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==
+
+"@babel/helper-wrap-function@^7.16.8":
+ version "7.16.8"
+ resolved "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.16.8.tgz"
+ integrity sha512-8RpyRVIAW1RcDDGTA+GpPAwV22wXCfKOoM9bet6TLkGIFTkRQSkH1nMQ5Yet4MpoXe1ZwHPVtNasc2w0uZMqnw==
+ dependencies:
+ "@babel/helper-function-name" "^7.16.7"
+ "@babel/template" "^7.16.7"
+ "@babel/traverse" "^7.16.8"
+ "@babel/types" "^7.16.8"
+
+"@babel/helpers@^7.16.7":
+ version "7.17.8"
+ resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.17.8.tgz#288450be8c6ac7e4e44df37bcc53d345e07bc106"
+ integrity sha512-QcL86FGxpfSJwGtAvv4iG93UL6bmqBdmoVY0CMCU2g+oD2ezQse3PT5Pa+jiD6LJndBQi0EDlpzOWNlLuhz5gw==
+ dependencies:
+ "@babel/template" "^7.16.7"
+ "@babel/traverse" "^7.17.3"
+ "@babel/types" "^7.17.0"
+
+"@babel/helpers@^7.17.0":
+ version "7.17.0"
+ resolved "https://registry.npmjs.org/@babel/helpers/-/helpers-7.17.0.tgz"
+ integrity sha512-Xe/9NFxjPwELUvW2dsukcMZIp6XwPSbI4ojFBJuX5ramHuVE22SVcZIwqzdWo5uCgeTXW8qV97lMvSOjq+1+nQ==
+ dependencies:
+ "@babel/template" "^7.16.7"
+ "@babel/traverse" "^7.17.0"
+ "@babel/types" "^7.17.0"
+
+"@babel/highlight@^7.10.4":
+ version "7.14.0"
+ resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.0.tgz"
+ integrity sha512-YSCOwxvTYEIMSGaBQb5kDDsCopDdiUGsqpatp3fOlI4+2HQSkTmEVWnVuySdAC5EWCqSWWTv0ib63RjR7dTBdg==
+ dependencies:
+ "@babel/helper-validator-identifier" "^7.14.0"
+ chalk "^2.0.0"
+ js-tokens "^4.0.0"
+
+"@babel/highlight@^7.16.0":
+ version "7.16.0"
+ resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.0.tgz"
+ integrity sha512-t8MH41kUQylBtu2+4IQA3atqevA2lRgqA2wyVB/YiWmsDSuylZZuXOUy9ric30hfzauEFfdsuk/eXTRrGrfd0g==
+ dependencies:
+ "@babel/helper-validator-identifier" "^7.15.7"
+ chalk "^2.0.0"
+ js-tokens "^4.0.0"
+
+"@babel/highlight@^7.16.7":
+ version "7.16.10"
+ resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.10.tgz"
+ integrity sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==
+ dependencies:
+ "@babel/helper-validator-identifier" "^7.16.7"
+ chalk "^2.0.0"
+ js-tokens "^4.0.0"
+
+"@babel/parser@^7.16.12", "@babel/parser@^7.17.3":
+ version "7.17.8"
+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.8.tgz#2817fb9d885dd8132ea0f8eb615a6388cca1c240"
+ integrity sha512-BoHhDJrJXqcg+ZL16Xv39H9n+AqJ4pcDrQBGZN+wHxIysrLZ3/ECwCBUch/1zUNhnsXULcONU3Ei5Hmkfk6kiQ==
+
+"@babel/parser@^7.16.7", "@babel/parser@^7.17.0":
+ version "7.17.0"
+ resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.17.0.tgz"
+ integrity sha512-VKXSCQx5D8S04ej+Dqsr1CzYvvWgf20jIw2D+YhQCrIlr2UZGaDds23Y0xg75/skOxpLCRpUZvk/1EAVkGoDOw==
+
+"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.16.7.tgz"
+ integrity sha512-anv/DObl7waiGEnC24O9zqL0pSuI9hljihqiDuFHC8d7/bjr/4RLGPWuc8rYOff/QPzbEPSkzG8wGG9aDuhHRg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.16.7.tgz"
+ integrity sha512-di8vUHRdf+4aJ7ltXhaDbPoszdkh59AQtJM5soLsuHpQJdFQZOA4uGj0V2u/CZ8bJ/u8ULDL5yq6FO/bCXnKHw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.16.0"
+ "@babel/plugin-proposal-optional-chaining" "^7.16.7"
+
+"@babel/plugin-proposal-async-generator-functions@^7.16.8":
+ version "7.16.8"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.16.8.tgz"
+ integrity sha512-71YHIvMuiuqWJQkebWJtdhQTfd4Q4mF76q2IX37uZPkG9+olBxsX+rH1vkhFto4UeJZ9dPY2s+mDvhDm1u2BGQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/helper-remap-async-to-generator" "^7.16.8"
+ "@babel/plugin-syntax-async-generators" "^7.8.4"
+
+"@babel/[email protected]", "@babel/plugin-proposal-class-properties@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.16.7.tgz"
+ integrity sha512-IobU0Xme31ewjYOShSIqd/ZGM/r/cuOz2z0MDbNrhF5FW+ZVgi0f2lyeoj9KFPDOAqsYxmLWZte1WOwlvY9aww==
+ dependencies:
+ "@babel/helper-create-class-features-plugin" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-proposal-class-static-block@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.16.7.tgz"
+ integrity sha512-dgqJJrcZoG/4CkMopzhPJjGxsIe9A8RlkQLnL/Vhhx8AA9ZuaRwGSlscSh42hazc7WSrya/IK7mTeoF0DP9tEw==
+ dependencies:
+ "@babel/helper-create-class-features-plugin" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/plugin-syntax-class-static-block" "^7.14.5"
+
+"@babel/[email protected]", "@babel/plugin-proposal-dynamic-import@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.16.7.tgz"
+ integrity sha512-I8SW9Ho3/8DRSdmDdH3gORdyUuYnk1m4cMxUAdu5oy4n3OfN8flDEH+d60iG7dUfi0KkYwSvoalHzzdRzpWHTg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/plugin-syntax-dynamic-import" "^7.8.3"
+
+"@babel/[email protected]", "@babel/plugin-proposal-export-namespace-from@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.16.7.tgz"
+ integrity sha512-ZxdtqDXLRGBL64ocZcs7ovt71L3jhC1RGSyR996svrCi3PYqHNkb3SwPJCs8RIzD86s+WPpt2S73+EHCGO+NUA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/plugin-syntax-export-namespace-from" "^7.8.3"
+
+"@babel/plugin-proposal-json-strings@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.16.7.tgz"
+ integrity sha512-lNZ3EEggsGY78JavgbHsK9u5P3pQaW7k4axlgFLYkMd7UBsiNahCITShLjNQschPyjtO6dADrL24757IdhBrsQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/plugin-syntax-json-strings" "^7.8.3"
+
+"@babel/[email protected]", "@babel/plugin-proposal-logical-assignment-operators@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.16.7.tgz"
+ integrity sha512-K3XzyZJGQCr00+EtYtrDjmwX7o7PLK6U9bi1nCwkQioRFVUv6dJoxbQjtWVtP+bCPy82bONBKG8NPyQ4+i6yjg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
+
+"@babel/[email protected]", "@babel/plugin-proposal-nullish-coalescing-operator@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.16.7.tgz"
+ integrity sha512-aUOrYU3EVtjf62jQrCj63pYZ7k6vns2h/DQvHPWGmsJRYzWXZ6/AsfgpiRy6XiuIDADhJzP2Q9MwSMKauBQ+UQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
+
+"@babel/[email protected]", "@babel/plugin-proposal-numeric-separator@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.16.7.tgz"
+ integrity sha512-vQgPMknOIgiuVqbokToyXbkY/OmmjAzr/0lhSIbG/KmnzXPGwW/AdhdKpi+O4X/VkWiWjnkKOBiqJrTaC98VKw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/plugin-syntax-numeric-separator" "^7.10.4"
+
+"@babel/plugin-proposal-object-rest-spread@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.16.7.tgz"
+ integrity sha512-3O0Y4+dw94HA86qSg9IHfyPktgR7q3gpNVAeiKQd+8jBKFaU5NQS1Yatgo4wY+UFNuLjvxcSmzcsHqrhgTyBUA==
+ dependencies:
+ "@babel/compat-data" "^7.16.4"
+ "@babel/helper-compilation-targets" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/plugin-syntax-object-rest-spread" "^7.8.3"
+ "@babel/plugin-transform-parameters" "^7.16.7"
+
+"@babel/plugin-proposal-optional-catch-binding@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.16.7.tgz"
+ integrity sha512-eMOH/L4OvWSZAE1VkHbr1vckLG1WUcHGJSLqqQwl2GaUqG6QjddvrOaTUMNYiv77H5IKPMZ9U9P7EaHwvAShfA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
+
+"@babel/[email protected]", "@babel/plugin-proposal-optional-chaining@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.16.7.tgz"
+ integrity sha512-eC3xy+ZrUcBtP7x+sq62Q/HYd674pPTb/77XZMb5wbDPGWIdUbSr4Agr052+zaUPSb+gGRnjxXfKFvx5iMJ+DA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.16.0"
+ "@babel/plugin-syntax-optional-chaining" "^7.8.3"
+
+"@babel/[email protected]", "@babel/plugin-proposal-private-methods@^7.16.11":
+ version "7.16.11"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.16.11.tgz"
+ integrity sha512-F/2uAkPlXDr8+BHpZvo19w3hLFKge+k75XUprE6jaqKxjGkSYcK+4c+bup5PdW/7W/Rpjwql7FTVEDW+fRAQsw==
+ dependencies:
+ "@babel/helper-create-class-features-plugin" "^7.16.10"
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/[email protected]", "@babel/plugin-proposal-private-property-in-object@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.16.7.tgz"
+ integrity sha512-rMQkjcOFbm+ufe3bTZLyOfsOUOxyvLXZJCTARhJr+8UMSoZmqTe1K1BgkFcrW37rAchWg57yI69ORxiWvUINuQ==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.16.7"
+ "@babel/helper-create-class-features-plugin" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/plugin-syntax-private-property-in-object" "^7.14.5"
+
+"@babel/plugin-proposal-unicode-property-regex@^7.16.7", "@babel/plugin-proposal-unicode-property-regex@^7.4.4":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.16.7.tgz"
+ integrity sha512-QRK0YI/40VLhNVGIjRNAAQkEHws0cswSdFFjpFyt943YmJIU1da9uW63Iu6NFV6CxTZW5eTDCrwZUstBWgp/Rg==
+ dependencies:
+ "@babel/helper-create-regexp-features-plugin" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/[email protected]", "@babel/plugin-syntax-async-generators@^7.8.4":
+ version "7.8.4"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz"
+ integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/plugin-syntax-class-properties@^7.12.13":
+ version "7.12.13"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz"
+ integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.12.13"
+
+"@babel/plugin-syntax-class-static-block@^7.14.5":
+ version "7.14.5"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz"
+ integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.14.5"
+
+"@babel/plugin-syntax-dynamic-import@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz"
+ integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/plugin-syntax-export-namespace-from@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz"
+ integrity sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.3"
+
+"@babel/[email protected]", "@babel/plugin-syntax-json-strings@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz"
+ integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/plugin-syntax-jsx@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.16.7.tgz"
+ integrity sha512-Esxmk7YjA8QysKeT3VhTXvF6y77f/a91SIs4pWb4H2eWGQkCKFgQaG6hdoEVZtGsrAcb2K5BW66XsOErD4WU3Q==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-syntax-logical-assignment-operators@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz"
+ integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.10.4"
+
+"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz"
+ integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/plugin-syntax-numeric-separator@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz"
+ integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.10.4"
+
+"@babel/[email protected]", "@babel/plugin-syntax-object-rest-spread@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz"
+ integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/[email protected]", "@babel/plugin-syntax-optional-catch-binding@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz"
+ integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/plugin-syntax-optional-chaining@^7.8.3":
+ version "7.8.3"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz"
+ integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.8.0"
+
+"@babel/plugin-syntax-private-property-in-object@^7.14.5":
+ version "7.14.5"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz"
+ integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.14.5"
+
+"@babel/plugin-syntax-top-level-await@^7.14.5":
+ version "7.14.5"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz"
+ integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.14.5"
+
+"@babel/plugin-syntax-typescript@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.16.7.tgz"
+ integrity sha512-YhUIJHHGkqPgEcMYkPCKTyGUdoGKWtopIycQyjJH8OjvRgOYsXsaKehLVPScKJWAULPxMa4N1vCe6szREFlZ7A==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-arrow-functions@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.16.7.tgz"
+ integrity sha512-9ffkFFMbvzTvv+7dTp/66xvZAWASuPD5Tl9LK3Z9vhOmANo6j94rik+5YMBt4CwHVMWLWpMsriIc2zsa3WW3xQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-async-to-generator@^7.16.8":
+ version "7.16.8"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.16.8.tgz"
+ integrity sha512-MtmUmTJQHCnyJVrScNzNlofQJ3dLFuobYn3mwOTKHnSCMtbNsqvF71GQmJfFjdrXSsAA7iysFmYWw4bXZ20hOg==
+ dependencies:
+ "@babel/helper-module-imports" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/helper-remap-async-to-generator" "^7.16.8"
+
+"@babel/plugin-transform-block-scoped-functions@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.16.7.tgz"
+ integrity sha512-JUuzlzmF40Z9cXyytcbZEZKckgrQzChbQJw/5PuEHYeqzCsvebDx0K0jWnIIVcmmDOAVctCgnYs0pMcrYj2zJg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-block-scoping@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.16.7.tgz"
+ integrity sha512-ObZev2nxVAYA4bhyusELdo9hb3H+A56bxH3FZMbEImZFiEDYVHXQSJ1hQKFlDnlt8G9bBrCZ5ZpURZUrV4G5qQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-classes@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.16.7.tgz"
+ integrity sha512-WY7og38SFAGYRe64BrjKf8OrE6ulEHtr5jEYaZMwox9KebgqPi67Zqz8K53EKk1fFEJgm96r32rkKZ3qA2nCWQ==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.16.7"
+ "@babel/helper-environment-visitor" "^7.16.7"
+ "@babel/helper-function-name" "^7.16.7"
+ "@babel/helper-optimise-call-expression" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/helper-replace-supers" "^7.16.7"
+ "@babel/helper-split-export-declaration" "^7.16.7"
+ globals "^11.1.0"
+
+"@babel/plugin-transform-computed-properties@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.16.7.tgz"
+ integrity sha512-gN72G9bcmenVILj//sv1zLNaPyYcOzUho2lIJBMh/iakJ9ygCo/hEF9cpGb61SCMEDxbbyBoVQxrt+bWKu5KGw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-destructuring@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.16.7.tgz"
+ integrity sha512-VqAwhTHBnu5xBVDCvrvqJbtLUa++qZaWC0Fgr2mqokBlulZARGyIvZDoqbPlPaKImQ9dKAcCzbv+ul//uqu70A==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-dotall-regex@^7.16.7", "@babel/plugin-transform-dotall-regex@^7.4.4":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.16.7.tgz"
+ integrity sha512-Lyttaao2SjZF6Pf4vk1dVKv8YypMpomAbygW+mU5cYP3S5cWTfCJjG8xV6CFdzGFlfWK81IjL9viiTvpb6G7gQ==
+ dependencies:
+ "@babel/helper-create-regexp-features-plugin" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-duplicate-keys@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.16.7.tgz"
+ integrity sha512-03DvpbRfvWIXyK0/6QiR1KMTWeT6OcQ7tbhjrXyFS02kjuX/mu5Bvnh5SDSWHxyawit2g5aWhKwI86EE7GUnTw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-exponentiation-operator@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.16.7.tgz"
+ integrity sha512-8UYLSlyLgRixQvlYH3J2ekXFHDFLQutdy7FfFAMm3CPZ6q9wHCwnUyiXpQCe3gVVnQlHc5nsuiEVziteRNTXEA==
+ dependencies:
+ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-for-of@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.16.7.tgz"
+ integrity sha512-/QZm9W92Ptpw7sjI9Nx1mbcsWz33+l8kuMIQnDwgQBG5s3fAfQvkRjQ7NqXhtNcKOnPkdICmUHyCaWW06HCsqg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-function-name@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.16.7.tgz"
+ integrity sha512-SU/C68YVwTRxqWj5kgsbKINakGag0KTgq9f2iZEXdStoAbOzLHEBRYzImmA6yFo8YZhJVflvXmIHUO7GWHmxxA==
+ dependencies:
+ "@babel/helper-compilation-targets" "^7.16.7"
+ "@babel/helper-function-name" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-literals@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.16.7.tgz"
+ integrity sha512-6tH8RTpTWI0s2sV6uq3e/C9wPo4PTqqZps4uF0kzQ9/xPLFQtipynvmT1g/dOfEJ+0EQsHhkQ/zyRId8J2b8zQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-member-expression-literals@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.16.7.tgz"
+ integrity sha512-mBruRMbktKQwbxaJof32LT9KLy2f3gH+27a5XSuXo6h7R3vqltl0PgZ80C8ZMKw98Bf8bqt6BEVi3svOh2PzMw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-modules-amd@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.16.7.tgz"
+ integrity sha512-KaaEtgBL7FKYwjJ/teH63oAmE3lP34N3kshz8mm4VMAw7U3PxjVwwUmxEFksbgsNUaO3wId9R2AVQYSEGRa2+g==
+ dependencies:
+ "@babel/helper-module-transforms" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+ babel-plugin-dynamic-import-node "^2.3.3"
+
+"@babel/[email protected]", "@babel/plugin-transform-modules-commonjs@^7.16.8":
+ version "7.16.8"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.16.8.tgz"
+ integrity sha512-oflKPvsLT2+uKQopesJt3ApiaIS2HW+hzHFcwRNtyDGieAeC/dIHZX8buJQ2J2X1rxGPy4eRcUijm3qcSPjYcA==
+ dependencies:
+ "@babel/helper-module-transforms" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/helper-simple-access" "^7.16.7"
+ babel-plugin-dynamic-import-node "^2.3.3"
+
+"@babel/plugin-transform-modules-systemjs@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.16.7.tgz"
+ integrity sha512-DuK5E3k+QQmnOqBR9UkusByy5WZWGRxfzV529s9nPra1GE7olmxfqO2FHobEOYSPIjPBTr4p66YDcjQnt8cBmw==
+ dependencies:
+ "@babel/helper-hoist-variables" "^7.16.7"
+ "@babel/helper-module-transforms" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/helper-validator-identifier" "^7.16.7"
+ babel-plugin-dynamic-import-node "^2.3.3"
+
+"@babel/plugin-transform-modules-umd@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.16.7.tgz"
+ integrity sha512-EMh7uolsC8O4xhudF2F6wedbSHm1HHZ0C6aJ7K67zcDNidMzVcxWdGr+htW9n21klm+bOn+Rx4CBsAntZd3rEQ==
+ dependencies:
+ "@babel/helper-module-transforms" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-named-capturing-groups-regex@^7.16.8":
+ version "7.16.8"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.16.8.tgz"
+ integrity sha512-j3Jw+n5PvpmhRR+mrgIh04puSANCk/T/UA3m3P1MjJkhlK906+ApHhDIqBQDdOgL/r1UYpz4GNclTXxyZrYGSw==
+ dependencies:
+ "@babel/helper-create-regexp-features-plugin" "^7.16.7"
+
+"@babel/plugin-transform-new-target@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.16.7.tgz"
+ integrity sha512-xiLDzWNMfKoGOpc6t3U+etCE2yRnn3SM09BXqWPIZOBpL2gvVrBWUKnsJx0K/ADi5F5YC5f8APFfWrz25TdlGg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-object-super@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.16.7.tgz"
+ integrity sha512-14J1feiQVWaGvRxj2WjyMuXS2jsBkgB3MdSN5HuC2G5nRspa5RK9COcs82Pwy5BuGcjb+fYaUj94mYcOj7rCvw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/helper-replace-supers" "^7.16.7"
+
+"@babel/plugin-transform-parameters@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.16.7.tgz"
+ integrity sha512-AT3MufQ7zZEhU2hwOA11axBnExW0Lszu4RL/tAlUJBuNoRak+wehQW8h6KcXOcgjY42fHtDxswuMhMjFEuv/aw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-property-literals@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.16.7.tgz"
+ integrity sha512-z4FGr9NMGdoIl1RqavCqGG+ZuYjfZ/hkCIeuH6Do7tXmSm0ls11nYVSJqFEUOSJbDab5wC6lRE/w6YjVcr6Hqw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-react-constant-elements@^7.14.5":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.16.7.tgz"
+ integrity sha512-lF+cfsyTgwWkcw715J88JhMYJ5GpysYNLhLP1PkvkhTRN7B3e74R/1KsDxFxhRpSn0UUD3IWM4GvdBR2PEbbQQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-react-display-name@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.16.7.tgz"
+ integrity sha512-qgIg8BcZgd0G/Cz916D5+9kqX0c7nPZyXaP8R2tLNN5tkyIZdG5fEwBrxwplzSnjC1jvQmyMNVwUCZPcbGY7Pg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-react-jsx-development@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.16.7.tgz"
+ integrity sha512-RMvQWvpla+xy6MlBpPlrKZCMRs2AGiHOGHY3xRwl0pEeim348dDyxeH4xBsMPbIMhujeq7ihE702eM2Ew0Wo+A==
+ dependencies:
+ "@babel/plugin-transform-react-jsx" "^7.16.7"
+
+"@babel/plugin-transform-react-jsx@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.16.7.tgz"
+ integrity sha512-8D16ye66fxiE8m890w0BpPpngG9o9OVBBy0gH2E+2AR7qMR2ZpTYJEqLxAsoroenMId0p/wMW+Blc0meDgu0Ag==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.16.7"
+ "@babel/helper-module-imports" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/plugin-syntax-jsx" "^7.16.7"
+ "@babel/types" "^7.16.7"
+
+"@babel/plugin-transform-react-pure-annotations@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.16.7.tgz"
+ integrity sha512-hs71ToC97k3QWxswh2ElzMFABXHvGiJ01IB1TbYQDGeWRKWz/MPUTh5jGExdHvosYKpnJW5Pm3S4+TA3FyX+GA==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-regenerator@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.16.7.tgz"
+ integrity sha512-mF7jOgGYCkSJagJ6XCujSQg+6xC1M77/03K2oBmVJWoFGNUtnVJO4WHKJk3dnPC8HCcj4xBQP1Egm8DWh3Pb3Q==
+ dependencies:
+ regenerator-transform "^0.14.2"
+
+"@babel/plugin-transform-reserved-words@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.16.7.tgz"
+ integrity sha512-KQzzDnZ9hWQBjwi5lpY5v9shmm6IVG0U9pB18zvMu2i4H90xpT4gmqwPYsn8rObiadYe2M0gmgsiOIF5A/2rtg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-shorthand-properties@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.16.7.tgz"
+ integrity sha512-hah2+FEnoRoATdIb05IOXf+4GzXYTq75TVhIn1PewihbpyrNWUt2JbudKQOETWw6QpLe+AIUpJ5MVLYTQbeeUg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-spread@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.16.7.tgz"
+ integrity sha512-+pjJpgAngb53L0iaA5gU/1MLXJIfXcYepLgXB3esVRf4fqmj8f2cxM3/FKaHsZms08hFQJkFccEWuIpm429TXg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.16.0"
+
+"@babel/plugin-transform-sticky-regex@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.16.7.tgz"
+ integrity sha512-NJa0Bd/87QV5NZZzTuZG5BPJjLYadeSZ9fO6oOUoL4iQx+9EEuw/eEM92SrsT19Yc2jgB1u1hsjqDtH02c3Drw==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-template-literals@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.16.7.tgz"
+ integrity sha512-VwbkDDUeenlIjmfNeDX/V0aWrQH2QiVyJtwymVQSzItFDTpxfyJh3EVaQiS0rIN/CqbLGr0VcGmuwyTdZtdIsA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-typeof-symbol@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.16.7.tgz"
+ integrity sha512-p2rOixCKRJzpg9JB4gjnG4gjWkWa89ZoYUnl9snJ1cWIcTH/hvxZqfO+WjG6T8DRBpctEol5jw1O5rA8gkCokQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-typescript@^7.16.7":
+ version "7.16.8"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.16.8.tgz"
+ integrity sha512-bHdQ9k7YpBDO2d0NVfkj51DpQcvwIzIusJ7mEUaMlbZq3Kt/U47j24inXZHQ5MDiYpCs+oZiwnXyKedE8+q7AQ==
+ dependencies:
+ "@babel/helper-create-class-features-plugin" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/plugin-syntax-typescript" "^7.16.7"
+
+"@babel/plugin-transform-unicode-escapes@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.16.7.tgz"
+ integrity sha512-TAV5IGahIz3yZ9/Hfv35TV2xEm+kaBDaZQCn2S/hG9/CZ0DktxJv9eKfPc7yYCvOYR4JGx1h8C+jcSOvgaaI/Q==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/plugin-transform-unicode-regex@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.16.7.tgz"
+ integrity sha512-oC5tYYKw56HO75KZVLQ+R/Nl3Hro9kf8iG0hXoaHP7tjAyCpvqBiSNe6vGrZni1Z6MggmUOC6A7VP7AVmw225Q==
+ dependencies:
+ "@babel/helper-create-regexp-features-plugin" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+
+"@babel/preset-env@^7.15.6":
+ version "7.16.11"
+ resolved "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.16.11.tgz"
+ integrity sha512-qcmWG8R7ZW6WBRPZK//y+E3Cli151B20W1Rv7ln27vuPaXU/8TKms6jFdiJtF7UDTxcrb7mZd88tAeK9LjdT8g==
+ dependencies:
+ "@babel/compat-data" "^7.16.8"
+ "@babel/helper-compilation-targets" "^7.16.7"
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/helper-validator-option" "^7.16.7"
+ "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.16.7"
+ "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.16.7"
+ "@babel/plugin-proposal-async-generator-functions" "^7.16.8"
+ "@babel/plugin-proposal-class-properties" "^7.16.7"
+ "@babel/plugin-proposal-class-static-block" "^7.16.7"
+ "@babel/plugin-proposal-dynamic-import" "^7.16.7"
+ "@babel/plugin-proposal-export-namespace-from" "^7.16.7"
+ "@babel/plugin-proposal-json-strings" "^7.16.7"
+ "@babel/plugin-proposal-logical-assignment-operators" "^7.16.7"
+ "@babel/plugin-proposal-nullish-coalescing-operator" "^7.16.7"
+ "@babel/plugin-proposal-numeric-separator" "^7.16.7"
+ "@babel/plugin-proposal-object-rest-spread" "^7.16.7"
+ "@babel/plugin-proposal-optional-catch-binding" "^7.16.7"
+ "@babel/plugin-proposal-optional-chaining" "^7.16.7"
+ "@babel/plugin-proposal-private-methods" "^7.16.11"
+ "@babel/plugin-proposal-private-property-in-object" "^7.16.7"
+ "@babel/plugin-proposal-unicode-property-regex" "^7.16.7"
+ "@babel/plugin-syntax-async-generators" "^7.8.4"
+ "@babel/plugin-syntax-class-properties" "^7.12.13"
+ "@babel/plugin-syntax-class-static-block" "^7.14.5"
+ "@babel/plugin-syntax-dynamic-import" "^7.8.3"
+ "@babel/plugin-syntax-export-namespace-from" "^7.8.3"
+ "@babel/plugin-syntax-json-strings" "^7.8.3"
+ "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
+ "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
+ "@babel/plugin-syntax-numeric-separator" "^7.10.4"
+ "@babel/plugin-syntax-object-rest-spread" "^7.8.3"
+ "@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
+ "@babel/plugin-syntax-optional-chaining" "^7.8.3"
+ "@babel/plugin-syntax-private-property-in-object" "^7.14.5"
+ "@babel/plugin-syntax-top-level-await" "^7.14.5"
+ "@babel/plugin-transform-arrow-functions" "^7.16.7"
+ "@babel/plugin-transform-async-to-generator" "^7.16.8"
+ "@babel/plugin-transform-block-scoped-functions" "^7.16.7"
+ "@babel/plugin-transform-block-scoping" "^7.16.7"
+ "@babel/plugin-transform-classes" "^7.16.7"
+ "@babel/plugin-transform-computed-properties" "^7.16.7"
+ "@babel/plugin-transform-destructuring" "^7.16.7"
+ "@babel/plugin-transform-dotall-regex" "^7.16.7"
+ "@babel/plugin-transform-duplicate-keys" "^7.16.7"
+ "@babel/plugin-transform-exponentiation-operator" "^7.16.7"
+ "@babel/plugin-transform-for-of" "^7.16.7"
+ "@babel/plugin-transform-function-name" "^7.16.7"
+ "@babel/plugin-transform-literals" "^7.16.7"
+ "@babel/plugin-transform-member-expression-literals" "^7.16.7"
+ "@babel/plugin-transform-modules-amd" "^7.16.7"
+ "@babel/plugin-transform-modules-commonjs" "^7.16.8"
+ "@babel/plugin-transform-modules-systemjs" "^7.16.7"
+ "@babel/plugin-transform-modules-umd" "^7.16.7"
+ "@babel/plugin-transform-named-capturing-groups-regex" "^7.16.8"
+ "@babel/plugin-transform-new-target" "^7.16.7"
+ "@babel/plugin-transform-object-super" "^7.16.7"
+ "@babel/plugin-transform-parameters" "^7.16.7"
+ "@babel/plugin-transform-property-literals" "^7.16.7"
+ "@babel/plugin-transform-regenerator" "^7.16.7"
+ "@babel/plugin-transform-reserved-words" "^7.16.7"
+ "@babel/plugin-transform-shorthand-properties" "^7.16.7"
+ "@babel/plugin-transform-spread" "^7.16.7"
+ "@babel/plugin-transform-sticky-regex" "^7.16.7"
+ "@babel/plugin-transform-template-literals" "^7.16.7"
+ "@babel/plugin-transform-typeof-symbol" "^7.16.7"
+ "@babel/plugin-transform-unicode-escapes" "^7.16.7"
+ "@babel/plugin-transform-unicode-regex" "^7.16.7"
+ "@babel/preset-modules" "^0.1.5"
+ "@babel/types" "^7.16.8"
+ babel-plugin-polyfill-corejs2 "^0.3.0"
+ babel-plugin-polyfill-corejs3 "^0.5.0"
+ babel-plugin-polyfill-regenerator "^0.3.0"
+ core-js-compat "^3.20.2"
+ semver "^6.3.0"
+
+"@babel/preset-modules@^0.1.5":
+ version "0.1.5"
+ resolved "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz"
+ integrity sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.0.0"
+ "@babel/plugin-proposal-unicode-property-regex" "^7.4.4"
+ "@babel/plugin-transform-dotall-regex" "^7.4.4"
+ "@babel/types" "^7.4.4"
+ esutils "^2.0.2"
+
+"@babel/preset-react@^7.14.5":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.16.7.tgz"
+ integrity sha512-fWpyI8UM/HE6DfPBzD8LnhQ/OcH8AgTaqcqP2nGOXEUV+VKBR5JRN9hCk9ai+zQQ57vtm9oWeXguBCPNUjytgA==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/helper-validator-option" "^7.16.7"
+ "@babel/plugin-transform-react-display-name" "^7.16.7"
+ "@babel/plugin-transform-react-jsx" "^7.16.7"
+ "@babel/plugin-transform-react-jsx-development" "^7.16.7"
+ "@babel/plugin-transform-react-pure-annotations" "^7.16.7"
+
+"@babel/[email protected]", "@babel/preset-typescript@^7.15.0":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.16.7.tgz"
+ integrity sha512-WbVEmgXdIyvzB77AQjGBEyYPZx+8tTsO50XtfozQrkW8QB2rLJpH2lgx0TRw5EJrBxOZQ+wCcyPVQvS8tjEHpQ==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.16.7"
+ "@babel/helper-validator-option" "^7.16.7"
+ "@babel/plugin-transform-typescript" "^7.16.7"
+
+"@babel/runtime-corejs3@^7.10.2":
+ version "7.17.8"
+ resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.17.8.tgz#d7dd49fb812f29c61c59126da3792d8740d4e284"
+ integrity sha512-ZbYSUvoSF6dXZmMl/CYTMOvzIFnbGfv4W3SEHYgMvNsFTeLaF2gkGAF4K2ddmtSK4Emej+0aYcnSC6N5dPCXUQ==
+ dependencies:
+ core-js-pure "^3.20.2"
+ regenerator-runtime "^0.13.4"
+
+"@babel/runtime@^7.1.2", "@babel/runtime@^7.13.17", "@babel/runtime@^7.14.5":
+ version "7.17.0"
+ resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.0.tgz"
+ integrity sha512-etcO/ohMNaNA2UBdaXBBSX/3aEzFMRrVfaPv8Ptc0k+cWpWW0QFiGZ2XnVqQZI1Cf734LbPGmqBKWESfW4x/dQ==
+ dependencies:
+ regenerator-runtime "^0.13.4"
+
+"@babel/runtime@^7.1.5", "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.5", "@babel/runtime@^7.6.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7":
+ version "7.14.0"
+ resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.14.0.tgz"
+ integrity sha512-JELkvo/DlpNdJ7dlyw/eY7E0suy5i5GQH+Vlxaq1nsNJ+H7f4Vtv3jMeCEgRhZZQFXTjldYfQgv2qmM6M1v5wA==
+ dependencies:
+ regenerator-runtime "^0.13.4"
+
+"@babel/runtime@^7.10.2", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.2":
+ version "7.17.8"
+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.8.tgz#3e56e4aff81befa55ac3ac6a0967349fd1c5bca2"
+ integrity sha512-dQpEpK0O9o6lj6oPu0gRDbbnk+4LeHlNcBpspf6Olzt3GIX4P1lWF1gS+pHLDFlaJvbR6q7jCfQ08zA4QJBnmA==
+ dependencies:
+ regenerator-runtime "^0.13.4"
+
+"@babel/runtime@^7.5.5", "@babel/runtime@^7.6.2", "@babel/runtime@^7.7.2":
+ version "7.16.3"
+ resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.3.tgz"
+ integrity sha512-WBwekcqacdY2e9AF/Q7WLFUWmdJGJTkbjqTjoMDgXkVZ3ZRUvOPsLb5KdwISoQVsbP+DQzVZW4Zhci0DvpbNTQ==
+ dependencies:
+ regenerator-runtime "^0.13.4"
+
+"@babel/template@^7.16.7":
+ version "7.16.7"
+ resolved "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz"
+ integrity sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==
+ dependencies:
+ "@babel/code-frame" "^7.16.7"
+ "@babel/parser" "^7.16.7"
+ "@babel/types" "^7.16.7"
+
+"@babel/traverse@^7.13.0", "@babel/traverse@^7.16.7", "@babel/traverse@^7.16.8", "@babel/traverse@^7.17.0":
+ version "7.17.0"
+ resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.0.tgz"
+ integrity sha512-fpFIXvqD6kC7c7PUNnZ0Z8cQXlarCLtCUpt2S1Dx7PjoRtCFffvOkHHSom+m5HIxMZn5bIBVb71lhabcmjEsqg==
+ dependencies:
+ "@babel/code-frame" "^7.16.7"
+ "@babel/generator" "^7.17.0"
+ "@babel/helper-environment-visitor" "^7.16.7"
+ "@babel/helper-function-name" "^7.16.7"
+ "@babel/helper-hoist-variables" "^7.16.7"
+ "@babel/helper-split-export-declaration" "^7.16.7"
+ "@babel/parser" "^7.17.0"
+ "@babel/types" "^7.17.0"
+ debug "^4.1.0"
+ globals "^11.1.0"
+
+"@babel/traverse@^7.16.10", "@babel/traverse@^7.17.3":
+ version "7.17.3"
+ resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.17.3.tgz#0ae0f15b27d9a92ba1f2263358ea7c4e7db47b57"
+ integrity sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==
+ dependencies:
+ "@babel/code-frame" "^7.16.7"
+ "@babel/generator" "^7.17.3"
+ "@babel/helper-environment-visitor" "^7.16.7"
+ "@babel/helper-function-name" "^7.16.7"
+ "@babel/helper-hoist-variables" "^7.16.7"
+ "@babel/helper-split-export-declaration" "^7.16.7"
+ "@babel/parser" "^7.17.3"
+ "@babel/types" "^7.17.0"
+ debug "^4.1.0"
+ globals "^11.1.0"
+
+"@babel/types@^7.15.6", "@babel/types@^7.16.0", "@babel/types@^7.16.7", "@babel/types@^7.16.8", "@babel/types@^7.17.0", "@babel/types@^7.4.4":
+ version "7.17.0"
+ resolved "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz"
+ integrity sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==
+ dependencies:
+ "@babel/helper-validator-identifier" "^7.16.7"
+ to-fast-properties "^2.0.0"
+
+"@emotion/is-prop-valid@^0.8.2":
+ version "0.8.8"
+ resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz#db28b1c4368a259b60a97311d6a952d4fd01ac1a"
+ integrity sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==
+ dependencies:
+ "@emotion/memoize" "0.7.4"
+
+"@emotion/[email protected]":
+ version "0.7.4"
+ resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.7.4.tgz#19bf0f5af19149111c40d98bb0cf82119f5d9eeb"
+ integrity sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==
+
+"@eslint/eslintrc@^0.4.1":
+ version "0.4.1"
+ resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.1.tgz"
+ integrity sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==
+ dependencies:
+ ajv "^6.12.4"
+ debug "^4.1.1"
+ espree "^7.3.0"
+ globals "^12.1.0"
+ ignore "^4.0.6"
+ import-fresh "^3.2.1"
+ js-yaml "^3.13.1"
+ minimatch "^3.0.4"
+ strip-json-comments "^3.1.1"
+
+"@hapi/hoek@^9.0.0":
+ version "9.2.1"
+ resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.2.1.tgz#9551142a1980503752536b5050fd99f4a7f13b17"
+ integrity sha512-gfta+H8aziZsm8pZa0vj04KO6biEiisppNgA1kbJvFrrWu9Vm7eaUEy76DIxsuTaWvti5fkJVhllWc6ZTE+Mdw==
+
+"@hapi/topo@^5.0.0":
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-5.1.0.tgz#dc448e332c6c6e37a4dc02fd84ba8d44b9afb012"
+ integrity sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==
+ dependencies:
+ "@hapi/hoek" "^9.0.0"
+
+"@headlessui/react@^1.5.0":
+ version "1.5.0"
+ resolved "https://registry.yarnpkg.com/@headlessui/react/-/react-1.5.0.tgz#483b44ba2c8b8d4391e1d2c863898d7dd0cc0296"
+ integrity sha512-aaRnYxBb3MU2FNJf3Ut9RMTUqqU3as0aI1lQhgo2n9Fa67wRu14iOGqx93xB+uMNVfNwZ5B3y/Ndm7qZGuFeMQ==
+
+"@jest/types@^27.2.5", "@jest/types@^27.5.1":
+ version "27.5.1"
+ resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.5.1.tgz#3c79ec4a8ba61c170bf937bcf9e98a9df175ec80"
+ integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==
+ dependencies:
+ "@types/istanbul-lib-coverage" "^2.0.0"
+ "@types/istanbul-reports" "^3.0.0"
+ "@types/node" "*"
+ "@types/yargs" "^16.0.0"
+ chalk "^4.0.0"
+
+"@jridgewell/resolve-uri@^3.0.3":
+ version "3.0.4"
+ resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.0.4.tgz"
+ integrity sha512-cz8HFjOFfUBtvN+NXYSFMHYRdxZMaEl0XypVrhzxBgadKIXhIkRd8aMeHhmF56Sl7SuS8OnUpQ73/k9LE4VnLg==
+
+"@jridgewell/trace-mapping@^0.2.2":
+ version "0.2.6"
+ resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.2.6.tgz"
+ integrity sha512-rVJf5dSMEBxnDEwtAT5x8+p6tZ+xU6Ocm+cR1MYL2gMsRi4MMzVf9Pvq6JaxIsEeKAyYmo2U+yPQN4QfdTfFnA==
+ dependencies:
+ "@jridgewell/resolve-uri" "^3.0.3"
+ sourcemap-codec "1.4.8"
+
+"@next/bundle-analyzer@^12.1.0":
+ version "12.1.0"
+ resolved "https://registry.yarnpkg.com/@next/bundle-analyzer/-/bundle-analyzer-12.1.0.tgz#9f6d6cda2a26220c936805be407243e22790f4b7"
+ integrity sha512-pOtWRWaKQXff8A80Ex3E67EH8XuERHxBPn8cQgKzfhRKQwoTEareHe2nWJO1uXTQm6m7ZRhmhb4+uwp+UvmITQ==
+ dependencies:
+ webpack-bundle-analyzer "4.3.0"
+
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@next/env/-/env-12.1.4.tgz#5af629b43075281ecd7f87938802b7cf5b67e94b"
+ integrity sha512-7gQwotJDKnfMxxXd8xJ2vsX5AzyDxO3zou0+QOXX8/unypA6icw5+wf6A62yKZ6qQ4UZHHxS68pb6UV+wNneXg==
+
+ version "12.1.0"
+ resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-12.1.0.tgz#32586a11378b3ffa5a93ac40a3c44ad99d70e95a"
+ integrity sha512-WFiyvSM2G5cQmh32t/SiQuJ+I2O+FHVlK/RFw5b1565O2kEM/36EXncjt88Pa+X5oSc+1SS+tWxowWJd1lqI+g==
+ dependencies:
+ glob "7.1.7"
+
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.1.4.tgz#c3dae178b7c15ad627d2e9b8dfb38caecb5c4ac7"
+ integrity sha512-FJg/6a3s2YrUaqZ+/DJZzeZqfxbbWrynQMT1C5wlIEq9aDLXCFpPM/PiOyJh0ahxc0XPmi6uo38Poq+GJTuKWw==
+
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-12.1.4.tgz#f320d60639e19ecffa1f9034829f2d95502a9a51"
+ integrity sha512-LXraazvQQFBgxIg3Htny6G5V5he9EK7oS4jWtMdTGIikmD/OGByOv8ZjLuVLZLtVm3UIvaAiGtlQSLecxJoJDw==
+
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.1.4.tgz#fd578278312613eddcf3aee26910100509941b63"
+ integrity sha512-SSST/dBymecllZxcqTCcSTCu5o1NKk9I+xcvhn/O9nH6GWjgvGgGkNqLbCarCa0jJ1ukvlBA138FagyrmZ/4rQ==
+
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-12.1.4.tgz#ace5f80d8c8348efe194f6d7074c6213c52b3944"
+ integrity sha512-p1lwdX0TVjaoDXQVuAkjtxVBbCL/urgxiMCBwuPDO7TikpXtSRivi+mIzBj5q7ypgICFmIAOW3TyupXeoPRAnA==
+
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.1.4.tgz#2bf2c83863635f19c71c226a2df936e001cce29c"
+ integrity sha512-67PZlgkCn3TDxacdVft0xqDCL7Io1/C4xbAs0+oSQ0xzp6OzN2RNpuKjHJrJgKd0DsE1XZ9sCP27Qv0591yfyg==
+
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.1.4.tgz#d577190f641c9b4b463719dd6b8953b6ba9be8d9"
+ integrity sha512-OnOWixhhw7aU22TQdQLYrgpgFq0oA1wGgnjAiHJ+St7MLj82KTDyM9UcymAMbGYy6nG/TFOOHdTmRMtCRNOw0g==
+
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.1.4.tgz#e70ffe70393d8f9242deecdb282ce5a8fd588b14"
+ integrity sha512-UoRMzPZnsAavdWtVylYxH8DNC7Uy0i6RrvNwT4PyQVdfANBn2omsUkcH5lgS2O7oaz0nAYLk1vqyZDO7+tJotA==
+
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.1.4.tgz#91498a130387fb1961902f2bee55863f8e910cff"
+ integrity sha512-nM+MA/frxlTLUKLJKorctdI20/ugfHRjVEEkcLp/58LGG7slNaP1E5d5dRA1yX6ISjPcQAkywas5VlGCg+uTvA==
+
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.1.4.tgz#78057b03c148c121553d41521ad38f6c732762ff"
+ integrity sha512-GoRHxkuW4u4yKw734B9SzxJwVdyEJosaZ62P7ifOwcujTxhgBt3y76V2nNUrsSuopcKI2ZTDjaa+2wd5zyeXbA==
+
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.1.4.tgz#05bbaabacac23b8edf6caa99eb86b17550a09051"
+ integrity sha512-6TQkQze0ievXwHJcVUrIULwCYVe3ccX6T0JgZ1SiMeXpHxISN7VJF/O8uSCw1JvXZYZ6ud0CJ7nfC5HXivgfPg==
+
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.1.4.tgz#8fd2fb48f04a2802e51fc320878bf6b411c1c866"
+ integrity sha512-CsbX/IXuZ5VSmWCpSetG2HD6VO5FTsO39WNp2IR2Ut/uom9XtLDJAZqjQEnbUTLGHuwDKFjrIO3LkhtROXLE/g==
+
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.1.4.tgz#a72ed44c9b1f850986a30fe36c59e01f8a79b5f3"
+ integrity sha512-JtYuWzKXKLDMgE/xTcFtCm1MiCIRaAc5XYZfYX3n/ZWSI1SJS/GMm+Su0SAHJgRFavJh6U/p998YwO/iGTIgqQ==
+
+"@nodelib/[email protected]":
+ version "2.1.4"
+ resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz"
+ integrity sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==
+ dependencies:
+ "@nodelib/fs.stat" "2.0.4"
+ run-parallel "^1.1.9"
+
+"@nodelib/[email protected]", "@nodelib/fs.stat@^2.0.2":
+ version "2.0.4"
+ resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz"
+ integrity sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q==
+
+"@nodelib/fs.walk@^1.2.3":
+ version "1.2.6"
+ resolved "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz"
+ integrity sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==
+ dependencies:
+ "@nodelib/fs.scandir" "2.1.4"
+ fastq "^1.6.0"
+
+"@playwright/test@^1.20.1":
+ version "1.20.1"
+ resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.20.1.tgz#6c0891271ec267fd513afdb7c6b6466cabed594c"
+ integrity sha512-muk3KZXfA7sXTwUEXfL3m4tusj/MBGYjxIFmooi+F2Pf6hKjjVl4+8niy77Xujk4jpL7hZbbqq9v5bRl2m+C8Q==
+ dependencies:
+ "@babel/code-frame" "7.16.7"
+ "@babel/core" "7.16.12"
+ "@babel/helper-plugin-utils" "7.16.7"
+ "@babel/plugin-proposal-class-properties" "7.16.7"
+ "@babel/plugin-proposal-dynamic-import" "7.16.7"
+ "@babel/plugin-proposal-export-namespace-from" "7.16.7"
+ "@babel/plugin-proposal-logical-assignment-operators" "7.16.7"
+ "@babel/plugin-proposal-nullish-coalescing-operator" "7.16.7"
+ "@babel/plugin-proposal-numeric-separator" "7.16.7"
+ "@babel/plugin-proposal-optional-chaining" "7.16.7"
+ "@babel/plugin-proposal-private-methods" "7.16.11"
+ "@babel/plugin-proposal-private-property-in-object" "7.16.7"
+ "@babel/plugin-syntax-async-generators" "7.8.4"
+ "@babel/plugin-syntax-json-strings" "7.8.3"
+ "@babel/plugin-syntax-object-rest-spread" "7.8.3"
+ "@babel/plugin-syntax-optional-catch-binding" "7.8.3"
+ "@babel/plugin-transform-modules-commonjs" "7.16.8"
+ "@babel/preset-typescript" "7.16.7"
+ colors "1.4.0"
+ commander "8.3.0"
+ debug "4.3.3"
+ expect "27.2.5"
+ jest-matcher-utils "27.2.5"
+ json5 "2.2.1"
+ mime "3.0.0"
+ minimatch "3.0.4"
+ ms "2.1.3"
+ open "8.4.0"
+ pirates "4.0.4"
+ playwright-core "1.20.1"
+ rimraf "3.0.2"
+ source-map-support "0.4.18"
+ stack-utils "2.0.5"
+ yazl "2.5.1"
+
+"@polka/url@^1.0.0-next.20":
+ version "1.0.0-next.21"
+ resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.21.tgz#5de5a2385a35309427f6011992b544514d559aa1"
+ integrity sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==
+
+"@popperjs/core@^2.11.4":
+ version "2.11.4"
+ resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.4.tgz#d8c7b8db9226d2d7664553a0741ad7d0397ee503"
+ integrity sha512-q/ytXxO5NKvyT37pmisQAItCFqA7FD/vNb8dgaJy3/630Fsc+Mz9/9f2SziBoIZ30TJooXyTwZmhi1zjXmObYg==
+
+"@popperjs/core@^2.5.3":
+ version "2.9.2"
+ resolved "https://registry.npmjs.org/@popperjs/core/-/core-2.9.2.tgz"
+ integrity sha512-VZMYa7+fXHdwIq1TDhSXoVmSPEGM/aa+6Aiq3nVVJ9bXr24zScr+NlKFKC3iPljA7ho/GAZr+d2jOf5GIRC30Q==
+
+"@prisma/client@^3.11.0":
+ version "3.11.0"
+ resolved "https://registry.yarnpkg.com/@prisma/client/-/client-3.11.0.tgz#6aa05165b641578c74816aaa15b389e0062318ee"
+ integrity sha512-d42o/tlalaWMmNOR4r5BiR6YYTYEV82eZ2lNKOm5ht3WyYwI9e+zy2MyZnNO4Fx5e08RAhW+GRVcEgKl5faUaQ==
+ dependencies:
+ "@prisma/engines-version" "3.11.0-48.b371888aaf8f51357c7457d836b86d12da91658b"
+
+"@prisma/engines-version@3.11.0-48.b371888aaf8f51357c7457d836b86d12da91658b":
+ version "3.11.0-48.b371888aaf8f51357c7457d836b86d12da91658b"
+ resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-3.11.0-48.b371888aaf8f51357c7457d836b86d12da91658b.tgz#808ab9636184e4a0b2bf79016d6ed72c4a1ed54f"
+ integrity sha512-bhMW1XybXZyqCf+9QqjP7Oi7xgVHcISVyOZNMm51qeZsy12M1RtHaCcXUFeMMV0JOCZZuPFVr3+0KVpQqK35CQ==
+
+"@prisma/[email protected]":
+ version "3.11.0-48.b371888aaf8f51357c7457d836b86d12da91658b"
+ resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-3.11.0-48.b371888aaf8f51357c7457d836b86d12da91658b.tgz#4c1093f7b24c433a9cef2e60f13f57f7c89b5cfa"
+ integrity sha512-m9iZd5F5vP6A2IvKWfHpOO/qK8OOO9nbsV/pdyEkF/1WNe0E8SIWFBKb+HcMLkG9OFbDDBy8QItXmp/mIULuwQ==
+
+"@restart/hooks@^0.3.25":
+ version "0.3.26"
+ resolved "https://registry.npmjs.org/@restart/hooks/-/hooks-0.3.26.tgz"
+ integrity sha512-7Hwk2ZMYm+JLWcb7R9qIXk1OoUg1Z+saKWqZXlrvFwT3w6UArVNWgxYOzf+PJoK9zZejp8okPAKTctthhXLt5g==
+ dependencies:
+ lodash "^4.17.20"
+ lodash-es "^4.17.20"
+
+"@rushstack/eslint-patch@^1.0.8":
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.1.1.tgz#782fa5da44c4f38ae9fd38e9184b54e451936118"
+ integrity sha512-BUyKJGdDWqvWC5GEhyOiUrGNi9iJUr4CU0O2WxJL6QJhHeeA/NVBalH+FeK0r/x/W0rPymXt5s78TDS7d6lCwg==
+
+"@sentry/[email protected]":
+ version "6.19.3"
+ resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-6.19.3.tgz#b4cfc6eba48d10a5fdf096c05ca11303354edb8b"
+ integrity sha512-E8UA6IN8z9hL6aGzOHUzqgNZiBwARkA89i8ncKB9QU1/+jl7598ZLziN4+uyPeZiRquEz8Ub7Ve1eacs1u+fbw==
+ dependencies:
+ "@sentry/core" "6.19.3"
+ "@sentry/types" "6.19.3"
+ "@sentry/utils" "6.19.3"
+ tslib "^1.9.3"
+
+"@sentry/cli@^1.73.0":
+ version "1.74.3"
+ resolved "https://registry.yarnpkg.com/@sentry/cli/-/cli-1.74.3.tgz#8405a19f6bb21b2ff3d051fb8a18056cc796c5ae"
+ integrity sha512-74NiqWTgTFDPe2S99h1ge5UMe6aAC44ebareadd1P6MdaNfYz6JUEa2QrDfMq7TKccEiRFXhXBHbUI8mxzrzuQ==
+ dependencies:
+ https-proxy-agent "^5.0.0"
+ mkdirp "^0.5.5"
+ node-fetch "^2.6.7"
+ npmlog "^4.1.2"
+ progress "^2.0.3"
+ proxy-from-env "^1.1.0"
+ which "^2.0.2"
+
+"@sentry/[email protected]":
+ version "6.19.3"
+ resolved "https://registry.yarnpkg.com/@sentry/core/-/core-6.19.3.tgz#88268afc8c42716c455ad77bb4bed2bbf96abd83"
+ integrity sha512-RcGmYdkrE3VYBMl9Hgv4GKsC8FEVUdWYsfGIcT/btwP2YpBeUaTZl+1vV9r3Ncdl125LqzP5CKSj5otVxiEg6g==
+ dependencies:
+ "@sentry/hub" "6.19.3"
+ "@sentry/minimal" "6.19.3"
+ "@sentry/types" "6.19.3"
+ "@sentry/utils" "6.19.3"
+ tslib "^1.9.3"
+
+"@sentry/[email protected]":
+ version "6.19.3"
+ resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-6.19.3.tgz#d555c83404f19ac9b68f336b051b8e7a9d75feb0"
+ integrity sha512-iYbkrxEZt6CrHP3U3r54MARVZSs3YHjAMUMOTlC16s/Amz1McwV95XtI3NJaqMhwzl7R5vbGrs3xOtLg1V1Uyw==
+ dependencies:
+ "@sentry/types" "6.19.3"
+ "@sentry/utils" "6.19.3"
+ tslib "^1.9.3"
+
+"@sentry/[email protected]":
+ version "6.19.3"
+ resolved "https://registry.yarnpkg.com/@sentry/integrations/-/integrations-6.19.3.tgz#b5ac64591a9c7ae60f54c7d5ebd0d9152215c377"
+ integrity sha512-hOyX0UoH1ZyFtOjIazL2M9HfQMIjwukv0AtTX2W7sVfV1qxvISaV5lYZrAw1xB1lRoUwOJr/C0odddHWtBgdsA==
+ dependencies:
+ "@sentry/types" "6.19.3"
+ "@sentry/utils" "6.19.3"
+ localforage "^1.8.1"
+ tslib "^1.9.3"
+
+"@sentry/[email protected]":
+ version "6.19.3"
+ resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-6.19.3.tgz#b9b7f0d7f0cd2341b243318668ac01458f9d7889"
+ integrity sha512-xy/6ThHK8B2NJT98nWrx6V9eVgUbzq2N/8lv5/QqrKsICjxx22TRC8Q6zPg/o7BYcrY5vpugSEbIeErTnyxHDA==
+ dependencies:
+ "@sentry/hub" "6.19.3"
+ "@sentry/types" "6.19.3"
+ tslib "^1.9.3"
+
+"@sentry/nextjs@^6.19.3":
+ version "6.19.3"
+ resolved "https://registry.yarnpkg.com/@sentry/nextjs/-/nextjs-6.19.3.tgz#3e56ebfd0409a263c360bb275d2cfe3deffbf259"
+ integrity sha512-+Gw69DDW89VIi0SMqBFNZpSMhKH9VBCSubhm94gFae3u4eoRs8ZChuNuhbnScmE7OsJ4uLOnnu4Y186yCY7RpQ==
+ dependencies:
+ "@sentry/core" "6.19.3"
+ "@sentry/hub" "6.19.3"
+ "@sentry/integrations" "6.19.3"
+ "@sentry/node" "6.19.3"
+ "@sentry/react" "6.19.3"
+ "@sentry/tracing" "6.19.3"
+ "@sentry/utils" "6.19.3"
+ "@sentry/webpack-plugin" "1.18.8"
+ tslib "^1.9.3"
+
+"@sentry/[email protected]":
+ version "6.19.3"
+ resolved "https://registry.yarnpkg.com/@sentry/node/-/node-6.19.3.tgz#afcf106bf72acc0e4bbacbc54744de8a938cbd1c"
+ integrity sha512-eHreMMbaK4mMAQ45Ki2xJ6in02l66hL6xhltppy/h4m297JIvjaQAFpbQf5XLtO7W4KjdbSV5qnB45D1aOAzFA==
+ dependencies:
+ "@sentry/core" "6.19.3"
+ "@sentry/hub" "6.19.3"
+ "@sentry/types" "6.19.3"
+ "@sentry/utils" "6.19.3"
+ cookie "^0.4.1"
+ https-proxy-agent "^5.0.0"
+ lru_map "^0.3.3"
+ tslib "^1.9.3"
+
+"@sentry/[email protected]":
+ version "6.19.3"
+ resolved "https://registry.yarnpkg.com/@sentry/react/-/react-6.19.3.tgz#6b2bfb19faa55cf83af593a5778bb23cd2cf60a3"
+ integrity sha512-Zza1RX0+1tFCM1Hfq3Yl50cbc/ml0V/katw4aVZIU6+vEgvk5EuSFKU2LtblmJkpID7x6UwWz+1qgXumZPze6Q==
+ dependencies:
+ "@sentry/browser" "6.19.3"
+ "@sentry/minimal" "6.19.3"
+ "@sentry/types" "6.19.3"
+ "@sentry/utils" "6.19.3"
+ hoist-non-react-statics "^3.3.2"
+ tslib "^1.9.3"
+
+"@sentry/[email protected]":
+ version "6.19.3"
+ resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-6.19.3.tgz#dfdbd5019486c899bdf352b1152d5d253544ef70"
+ integrity sha512-3lyb4yCFH/ltEQSyKM96g2c74vvKIwByx8fLDS4FHYQQDXY+xPcs+zyK8L1Fs5PRFAUciEOK5TS9qwELom5K4w==
+ dependencies:
+ "@sentry/hub" "6.19.3"
+ "@sentry/minimal" "6.19.3"
+ "@sentry/types" "6.19.3"
+ "@sentry/utils" "6.19.3"
+ tslib "^1.9.3"
+
+"@sentry/[email protected]":
+ version "6.19.3"
+ resolved "https://registry.yarnpkg.com/@sentry/types/-/types-6.19.3.tgz#94b19da68d4d23561efb1014f72968bcea85cd0c"
+ integrity sha512-jHhqxp8MIWSfOc3krorirTGKTEaSFO6XrAvi+2AZhr6gvOChwOgzgrN2ZqesJcZmgCsqWV21u3usSwYeRrjOJA==
+
+"@sentry/[email protected]":
+ version "6.19.3"
+ resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-6.19.3.tgz#0c3a3f0b86c12e3b079e56e37a44e62a1226043d"
+ integrity sha512-GdC9B/FK7qd0zItY43135bYbhuVSawE18bIrQDNuno8gTpDJ5OgShpTN9zR53AmMh16/lwKNnV3ZZjlpKcxuNw==
+ dependencies:
+ "@sentry/types" "6.19.3"
+ tslib "^1.9.3"
+
+"@sentry/[email protected]":
+ version "1.18.8"
+ resolved "https://registry.yarnpkg.com/@sentry/webpack-plugin/-/webpack-plugin-1.18.8.tgz#247a73a0aa9e28099a736bbe89ca0d35cbac7636"
+ integrity sha512-PtKr0NL62b5L3kPFGjwSNbIUwwcW5E5G6bQxAYZGpkgL1MFPnS4ND0SAsySuX0byQJRFFium5A19LpzyvQZSlQ==
+ dependencies:
+ "@sentry/cli" "^1.73.0"
+
+"@sideway/address@^4.1.3":
+ version "4.1.4"
+ resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.4.tgz#03dccebc6ea47fdc226f7d3d1ad512955d4783f0"
+ integrity sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==
+ dependencies:
+ "@hapi/hoek" "^9.0.0"
+
+"@sideway/formula@^3.0.0":
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/@sideway/formula/-/formula-3.0.0.tgz#fe158aee32e6bd5de85044be615bc08478a0a13c"
+ integrity sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg==
+
+"@sideway/pinpoint@^2.0.0":
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df"
+ integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==
+
+"@svgr/babel-plugin-add-jsx-attribute@^6.0.0":
+ version "6.0.0"
+ resolved "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-6.0.0.tgz"
+ integrity sha512-MdPdhdWLtQsjd29Wa4pABdhWbaRMACdM1h31BY+c6FghTZqNGT7pEYdBoaGeKtdTOBC/XNFQaKVj+r/Ei2ryWA==
+
+"@svgr/babel-plugin-remove-jsx-attribute@^6.0.0":
+ version "6.0.0"
+ resolved "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-6.0.0.tgz"
+ integrity sha512-aVdtfx9jlaaxc3unA6l+M9YRnKIZjOhQPthLKqmTXC8UVkBLDRGwPKo+r8n3VZN8B34+yVajzPTZ+ptTSuZZCw==
+
+"@svgr/babel-plugin-remove-jsx-empty-expression@^6.0.0":
+ version "6.0.0"
+ resolved "https://registry.npmjs.org/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-6.0.0.tgz"
+ integrity sha512-Ccj42ApsePD451AZJJf1QzTD1B/BOU392URJTeXFxSK709i0KUsGtbwyiqsKu7vsYxpTM0IA5clAKDyf9RCZyA==
+
+"@svgr/babel-plugin-replace-jsx-attribute-value@^6.0.0":
+ version "6.0.0"
+ resolved "https://registry.npmjs.org/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-6.0.0.tgz"
+ integrity sha512-88V26WGyt1Sfd1emBYmBJRWMmgarrExpKNVmI9vVozha4kqs6FzQJ/Kp5+EYli1apgX44518/0+t9+NU36lThQ==
+
+"@svgr/babel-plugin-svg-dynamic-title@^6.0.0":
+ version "6.0.0"
+ resolved "https://registry.npmjs.org/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-6.0.0.tgz"
+ integrity sha512-F7YXNLfGze+xv0KMQxrl2vkNbI9kzT9oDK55/kUuymh1ACyXkMV+VZWX1zEhSTfEKh7VkHVZGmVtHg8eTZ6PRg==
+
+"@svgr/babel-plugin-svg-em-dimensions@^6.0.0":
+ version "6.0.0"
+ resolved "https://registry.npmjs.org/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-6.0.0.tgz"
+ integrity sha512-+rghFXxdIqJNLQK08kwPBD3Z22/0b2tEZ9lKiL/yTfuyj1wW8HUXu4bo/XkogATIYuXSghVQOOCwURXzHGKyZA==
+
+"@svgr/babel-plugin-transform-react-native-svg@^6.0.0":
+ version "6.0.0"
+ resolved "https://registry.npmjs.org/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-6.0.0.tgz"
+ integrity sha512-VaphyHZ+xIKv5v0K0HCzyfAaLhPGJXSk2HkpYfXIOKb7DjLBv0soHDxNv6X0vr2titsxE7klb++u7iOf7TSrFQ==
+
+"@svgr/babel-plugin-transform-svg-component@^6.2.0":
+ version "6.2.0"
+ resolved "https://registry.npmjs.org/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-6.2.0.tgz"
+ integrity sha512-bhYIpsORb++wpsp91fymbFkf09Z/YEKR0DnFjxvN+8JHeCUD2unnh18jIMKnDJTWtvpTaGYPXELVe4OOzFI0xg==
+
+"@svgr/babel-preset@^6.2.0":
+ version "6.2.0"
+ resolved "https://registry.npmjs.org/@svgr/babel-preset/-/babel-preset-6.2.0.tgz"
+ integrity sha512-4WQNY0J71JIaL03DRn0vLiz87JXx0b9dYm2aA8XHlQJQoixMl4r/soYHm8dsaJZ3jWtkCiOYy48dp9izvXhDkQ==
+ dependencies:
+ "@svgr/babel-plugin-add-jsx-attribute" "^6.0.0"
+ "@svgr/babel-plugin-remove-jsx-attribute" "^6.0.0"
+ "@svgr/babel-plugin-remove-jsx-empty-expression" "^6.0.0"
+ "@svgr/babel-plugin-replace-jsx-attribute-value" "^6.0.0"
+ "@svgr/babel-plugin-svg-dynamic-title" "^6.0.0"
+ "@svgr/babel-plugin-svg-em-dimensions" "^6.0.0"
+ "@svgr/babel-plugin-transform-react-native-svg" "^6.0.0"
+ "@svgr/babel-plugin-transform-svg-component" "^6.2.0"
+
+"@svgr/core@^6.2.1":
+ version "6.2.1"
+ resolved "https://registry.npmjs.org/@svgr/core/-/core-6.2.1.tgz"
+ integrity sha512-NWufjGI2WUyrg46mKuySfviEJ6IxHUOm/8a3Ph38VCWSp+83HBraCQrpEM3F3dB6LBs5x8OElS8h3C0oOJaJAA==
+ dependencies:
+ "@svgr/plugin-jsx" "^6.2.1"
+ camelcase "^6.2.0"
+ cosmiconfig "^7.0.1"
+
+"@svgr/hast-util-to-babel-ast@^6.2.1":
+ version "6.2.1"
+ resolved "https://registry.npmjs.org/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-6.2.1.tgz"
+ integrity sha512-pt7MMkQFDlWJVy9ULJ1h+hZBDGFfSCwlBNW1HkLnVi7jUhyEXUaGYWi1x6bM2IXuAR9l265khBT4Av4lPmaNLQ==
+ dependencies:
+ "@babel/types" "^7.15.6"
+ entities "^3.0.1"
+
+"@svgr/plugin-jsx@^6.2.1":
+ version "6.2.1"
+ resolved "https://registry.npmjs.org/@svgr/plugin-jsx/-/plugin-jsx-6.2.1.tgz"
+ integrity sha512-u+MpjTsLaKo6r3pHeeSVsh9hmGRag2L7VzApWIaS8imNguqoUwDq/u6U/NDmYs/KAsrmtBjOEaAAPbwNGXXp1g==
+ dependencies:
+ "@babel/core" "^7.15.5"
+ "@svgr/babel-preset" "^6.2.0"
+ "@svgr/hast-util-to-babel-ast" "^6.2.1"
+ svg-parser "^2.0.2"
+
+"@svgr/plugin-svgo@^6.2.0":
+ version "6.2.0"
+ resolved "https://registry.npmjs.org/@svgr/plugin-svgo/-/plugin-svgo-6.2.0.tgz"
+ integrity sha512-oDdMQONKOJEbuKwuy4Np6VdV6qoaLLvoY86hjvQEgU82Vx1MSWRyYms6Sl0f+NtqxLI/rDVufATbP/ev996k3Q==
+ dependencies:
+ cosmiconfig "^7.0.1"
+ deepmerge "^4.2.2"
+ svgo "^2.5.0"
+
+"@svgr/webpack@^6.2.1":
+ version "6.2.1"
+ resolved "https://registry.npmjs.org/@svgr/webpack/-/webpack-6.2.1.tgz"
+ integrity sha512-h09ngMNd13hnePwgXa+Y5CgOjzlCvfWLHg+MBnydEedAnuLRzUHUJmGS3o2OsrhxTOOqEsPOFt5v/f6C5Qulcw==
+ dependencies:
+ "@babel/core" "^7.15.5"
+ "@babel/plugin-transform-react-constant-elements" "^7.14.5"
+ "@babel/preset-env" "^7.15.6"
+ "@babel/preset-react" "^7.14.5"
+ "@babel/preset-typescript" "^7.15.0"
+ "@svgr/core" "^6.2.1"
+ "@svgr/plugin-jsx" "^6.2.1"
+ "@svgr/plugin-svgo" "^6.2.0"
+
+"@tailwindcss/forms@^0.4.0":
+ version "0.4.0"
+ resolved "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.4.0.tgz"
+ integrity sha512-DeaQBx6EgEeuZPQACvC+mKneJsD8am1uiJugjgQK1+/Vt+Ai0GpFBC2T2fqnUad71WgOxyrZPE6BG1VaI6YqfQ==
+ dependencies:
+ mini-svg-data-uri "^1.2.3"
+
+"@tailwindcss/typography@^0.5.2":
+ version "0.5.2"
+ resolved "https://registry.yarnpkg.com/@tailwindcss/typography/-/typography-0.5.2.tgz#24b069dab24d7a2467d01aca0dd432cb4b29f0ee"
+ integrity sha512-coq8DBABRPFcVhVIk6IbKyyHUt7YTEC/C992tatFB+yEx5WGBQrCgsSFjxHUr8AWXphWckadVJbominEduYBqw==
+ dependencies:
+ lodash.castarray "^4.4.0"
+ lodash.isplainobject "^4.0.6"
+ lodash.merge "^4.6.2"
+
+"@trysound/[email protected]":
+ version "0.2.0"
+ resolved "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz"
+ integrity sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==
+
+"@types/hoist-non-react-statics@^3.3.1":
+ version "3.3.1"
+ resolved "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz"
+ integrity sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==
+ dependencies:
+ "@types/react" "*"
+ hoist-non-react-statics "^3.3.0"
+
+"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0":
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44"
+ integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==
+
+"@types/istanbul-lib-report@*":
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686"
+ integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==
+ dependencies:
+ "@types/istanbul-lib-coverage" "*"
+
+"@types/istanbul-reports@^3.0.0":
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff"
+ integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==
+ dependencies:
+ "@types/istanbul-lib-report" "*"
+
+"@types/js-cookie@^2.2.6":
+ version "2.2.7"
+ resolved "https://registry.npmjs.org/@types/js-cookie/-/js-cookie-2.2.7.tgz"
+ integrity sha512-aLkWa0C0vO5b4Sr798E26QgOkss68Un0bLjs7u9qxzPT5CG+8DuNTffWES58YzJs3hrVAOs1wonycqEBqNJubA==
+
+"@types/json-schema@^7.0.3":
+ version "7.0.7"
+ resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.7.tgz"
+ integrity sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==
+
+"@types/json5@^0.0.29":
+ version "0.0.29"
+ resolved "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz"
+ integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4=
+
+"@types/lodash@^4.14.178":
+ version "4.14.178"
+ resolved "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.178.tgz"
+ integrity sha512-0d5Wd09ItQWH1qFbEyQ7oTQ3GZrMfth5JkbN3EvTKLXcHLRDSXeLnlvlOn0wvxVIwK5o2M8JzP/OWz7T3NRsbw==
+
+"@types/mixpanel-browser@^2.38.0":
+ version "2.38.0"
+ resolved "https://registry.yarnpkg.com/@types/mixpanel-browser/-/mixpanel-browser-2.38.0.tgz#b3e28e1ba06c10a9f88510b88f1ac9d1b2adfc42"
+ integrity sha512-TR8rvsILnqXA7oiiGOxuMGXwvDeCoQDonXJB5UR+TYvEAFpiK8ReFj5LhZT+Xhm3NpI9aPoju30jB2ssorSUww==
+
+"@types/node@*":
+ version "17.0.21"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.21.tgz#864b987c0c68d07b4345845c3e63b75edd143644"
+ integrity sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==
+
+"@types/nodemailer@^6.4.4":
+ version "6.4.4"
+ resolved "https://registry.yarnpkg.com/@types/nodemailer/-/nodemailer-6.4.4.tgz#c265f7e7a51df587597b3a49a023acaf0c741f4b"
+ integrity sha512-Ksw4t7iliXeYGvIQcSIgWQ5BLuC/mljIEbjf615svhZL10PE9t+ei8O9gDaD3FPCasUJn9KTLwz2JFJyiiyuqw==
+ dependencies:
+ "@types/node" "*"
+
+"@types/parse-json@^4.0.0":
+ version "4.0.0"
+ resolved "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz"
+ integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==
+
+"@types/prop-types@*":
+ version "15.7.3"
+ resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz"
+ integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==
+
+"@types/react-big-calendar@^0.31.0":
+ version "0.31.0"
+ resolved "https://registry.npmjs.org/@types/react-big-calendar/-/react-big-calendar-0.31.0.tgz"
+ integrity sha512-DzwLHcU8z9il1p18rPHEPmZqwfz8vSDYDjur4Qsh3Aw+nOHgzu+ZuAIXSPEVtBrku4GAiYlP/Ti1NrOdweqqGw==
+ dependencies:
+ "@types/prop-types" "*"
+ "@types/react" "*"
+
+"@types/react-dom@^17.0.13":
+ version "17.0.13"
+ resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.13.tgz#a3323b974ee4280070982b3112351bb1952a7809"
+ integrity sha512-wEP+B8hzvy6ORDv1QBhcQia4j6ea4SFIBttHYpXKPFZRviBvknq0FRh3VrIxeXUmsPkwuXVZrVGG7KUVONmXCQ==
+ dependencies:
+ "@types/react" "*"
+
+"@types/react@*", "@types/react@>=16.9.11", "@types/react@^17.0.5":
+ version "17.0.5"
+ resolved "https://registry.npmjs.org/@types/react/-/react-17.0.5.tgz"
+ integrity sha512-bj4biDB9ZJmGAYTWSKJly6bMr4BLUiBrx9ujiJEoP9XIDY9CTaPGxE5QWN/1WjpPLzYF7/jRNnV2nNxNe970sw==
+ dependencies:
+ "@types/prop-types" "*"
+ "@types/scheduler" "*"
+ csstype "^3.0.2"
+
+"@types/scheduler@*":
+ version "0.16.1"
+ resolved "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz"
+ integrity sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==
+
+"@types/smoothscroll-polyfill@^0.3.1":
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/@types/smoothscroll-polyfill/-/smoothscroll-polyfill-0.3.1.tgz#77fb3a6e116bdab4a5959122e3b8e201224dcd49"
+ integrity sha512-+KkHw4y+EyeCtVXET7woHUhIbfWFCflc0E0mZnSV+ZdjPQeHt/9KPEuT7gSW/kFQ8O3EG30PLO++YhChDt8+Ag==
+
+"@types/stack-utils@^2.0.0":
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c"
+ integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==
+
+"@types/warning@^3.0.0":
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/@types/warning/-/warning-3.0.0.tgz"
+ integrity sha1-DSUBJorY+ZYrdA04fEZU9fjiPlI=
+
+"@types/webidl-conversions@*":
+ version "6.1.1"
+ resolved "https://registry.yarnpkg.com/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz#e33bc8ea812a01f63f90481c666334844b12a09e"
+ integrity sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q==
+
+"@types/whatwg-url@^8.2.1":
+ version "8.2.1"
+ resolved "https://registry.yarnpkg.com/@types/whatwg-url/-/whatwg-url-8.2.1.tgz#f1aac222dab7c59e011663a0cb0a3117b2ef05d4"
+ integrity sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ==
+ dependencies:
+ "@types/node" "*"
+ "@types/webidl-conversions" "*"
+
+"@types/yargs-parser@*":
+ version "21.0.0"
+ resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b"
+ integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==
+
+"@types/yargs@^16.0.0":
+ version "16.0.4"
+ resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.4.tgz#26aad98dd2c2a38e421086ea9ad42b9e51642977"
+ integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==
+ dependencies:
+ "@types/yargs-parser" "*"
+
+"@types/yauzl@^2.9.1":
+ version "2.9.2"
+ resolved "https://registry.yarnpkg.com/@types/yauzl/-/yauzl-2.9.2.tgz#c48e5d56aff1444409e39fa164b0b4d4552a7b7a"
+ integrity sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==
+ dependencies:
+ "@types/node" "*"
+
+"@typescript-eslint/eslint-plugin@^4.23.0":
+ version "4.23.0"
+ resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.23.0.tgz"
+ integrity sha512-tGK1y3KIvdsQEEgq6xNn1DjiFJtl+wn8JJQiETtCbdQxw1vzjXyAaIkEmO2l6Nq24iy3uZBMFQjZ6ECf1QdgGw==
+ dependencies:
+ "@typescript-eslint/experimental-utils" "4.23.0"
+ "@typescript-eslint/scope-manager" "4.23.0"
+ debug "^4.1.1"
+ functional-red-black-tree "^1.0.1"
+ lodash "^4.17.15"
+ regexpp "^3.0.0"
+ semver "^7.3.2"
+ tsutils "^3.17.1"
+
+"@typescript-eslint/[email protected]":
+ version "4.23.0"
+ resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.23.0.tgz"
+ integrity sha512-WAFNiTDnQfrF3Z2fQ05nmCgPsO5o790vOhmWKXbbYQTO9erE1/YsFot5/LnOUizLzU2eeuz6+U/81KV5/hFTGA==
+ dependencies:
+ "@types/json-schema" "^7.0.3"
+ "@typescript-eslint/scope-manager" "4.23.0"
+ "@typescript-eslint/types" "4.23.0"
+ "@typescript-eslint/typescript-estree" "4.23.0"
+ eslint-scope "^5.0.0"
+ eslint-utils "^2.0.0"
+
+"@typescript-eslint/parser@^4.23.0":
+ version "4.23.0"
+ resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.23.0.tgz"
+ integrity sha512-wsvjksHBMOqySy/Pi2Q6UuIuHYbgAMwLczRl4YanEPKW5KVxI9ZzDYh3B5DtcZPQTGRWFJrfcbJ6L01Leybwug==
+ dependencies:
+ "@typescript-eslint/scope-manager" "4.23.0"
+ "@typescript-eslint/types" "4.23.0"
+ "@typescript-eslint/typescript-estree" "4.23.0"
+ debug "^4.1.1"
+
+"@typescript-eslint/parser@^5.0.0":
+ version "5.16.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.16.0.tgz#e4de1bde4b4dad5b6124d3da227347616ed55508"
+ integrity sha512-fkDq86F0zl8FicnJtdXakFs4lnuebH6ZADDw6CYQv0UZeIjHvmEw87m9/29nk2Dv5Lmdp0zQ3zDQhiMWQf/GbA==
+ dependencies:
+ "@typescript-eslint/scope-manager" "5.16.0"
+ "@typescript-eslint/types" "5.16.0"
+ "@typescript-eslint/typescript-estree" "5.16.0"
+ debug "^4.3.2"
+
+"@typescript-eslint/[email protected]":
+ version "4.23.0"
+ resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.23.0.tgz"
+ integrity sha512-ZZ21PCFxPhI3n0wuqEJK9omkw51wi2bmeKJvlRZPH5YFkcawKOuRMQMnI8mH6Vo0/DoHSeZJnHiIx84LmVQY+w==
+ dependencies:
+ "@typescript-eslint/types" "4.23.0"
+ "@typescript-eslint/visitor-keys" "4.23.0"
+
+"@typescript-eslint/[email protected]":
+ version "5.16.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.16.0.tgz#7e7909d64bd0c4d8aef629cdc764b9d3e1d3a69a"
+ integrity sha512-P+Yab2Hovg8NekLIR/mOElCDPyGgFZKhGoZA901Yax6WR6HVeGLbsqJkZ+Cvk5nts/dAlFKm8PfL43UZnWdpIQ==
+ dependencies:
+ "@typescript-eslint/types" "5.16.0"
+ "@typescript-eslint/visitor-keys" "5.16.0"
+
+"@typescript-eslint/[email protected]":
+ version "4.23.0"
+ resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.23.0.tgz"
+ integrity sha512-oqkNWyG2SLS7uTWLZf6Sr7Dm02gA5yxiz1RP87tvsmDsguVATdpVguHr4HoGOcFOpCvx9vtCSCyQUGfzq28YCw==
+
+"@typescript-eslint/[email protected]":
+ version "5.16.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.16.0.tgz#5827b011982950ed350f075eaecb7f47d3c643ee"
+ integrity sha512-oUorOwLj/3/3p/HFwrp6m/J2VfbLC8gjW5X3awpQJ/bSG+YRGFS4dpsvtQ8T2VNveV+LflQHjlLvB6v0R87z4g==
+
+"@typescript-eslint/[email protected]":
+ version "4.23.0"
+ resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.23.0.tgz"
+ integrity sha512-5Sty6zPEVZF5fbvrZczfmLCOcby3sfrSPu30qKoY1U3mca5/jvU5cwsPb/CO6Q3ByRjixTMIVsDkqwIxCf/dMw==
+ dependencies:
+ "@typescript-eslint/types" "4.23.0"
+ "@typescript-eslint/visitor-keys" "4.23.0"
+ debug "^4.1.1"
+ globby "^11.0.1"
+ is-glob "^4.0.1"
+ semver "^7.3.2"
+ tsutils "^3.17.1"
+
+"@typescript-eslint/[email protected]":
+ version "5.16.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.16.0.tgz#32259459ec62f5feddca66adc695342f30101f61"
+ integrity sha512-SE4VfbLWUZl9MR+ngLSARptUv2E8brY0luCdgmUevU6arZRY/KxYoLI/3V/yxaURR8tLRN7bmZtJdgmzLHI6pQ==
+ dependencies:
+ "@typescript-eslint/types" "5.16.0"
+ "@typescript-eslint/visitor-keys" "5.16.0"
+ debug "^4.3.2"
+ globby "^11.0.4"
+ is-glob "^4.0.3"
+ semver "^7.3.5"
+ tsutils "^3.21.0"
+
+"@typescript-eslint/[email protected]":
+ version "4.23.0"
+ resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.23.0.tgz"
+ integrity sha512-5PNe5cmX9pSifit0H+nPoQBXdbNzi5tOEec+3riK+ku4e3er37pKxMKDH5Ct5Y4fhWxcD4spnlYjxi9vXbSpwg==
+ dependencies:
+ "@typescript-eslint/types" "4.23.0"
+ eslint-visitor-keys "^2.0.0"
+
+"@typescript-eslint/[email protected]":
+ version "5.16.0"
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.16.0.tgz#f27dc3b943e6317264c7492e390c6844cd4efbbb"
+ integrity sha512-jqxO8msp5vZDhikTwq9ubyMHqZ67UIvawohr4qF3KhlpL7gzSjOd+8471H3nh5LyABkaI85laEKKU8SnGUK5/g==
+ dependencies:
+ "@typescript-eslint/types" "5.16.0"
+ eslint-visitor-keys "^3.0.0"
+
+"@xobotyi/scrollbar-width@^1.9.5":
+ version "1.9.5"
+ resolved "https://registry.npmjs.org/@xobotyi/scrollbar-width/-/scrollbar-width-1.9.5.tgz"
+ integrity sha512-N8tkAACJx2ww8vFMneJmaAgmjAG1tnVBZJRLRcx061tmsLRZHSEZSLuGWnwPtunsSLvSqXQ2wfp7Mgqg1I+2dQ==
+
+abab@^1.0.0:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.4.tgz#5faad9c2c07f60dd76770f71cf025b62a63cfd4e"
+ integrity sha1-X6rZwsB/YN12dw9xzwJbYqY8/U4=
+
+acorn-globals@^1.0.4:
+ version "1.0.9"
+ resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-1.0.9.tgz#55bb5e98691507b74579d0513413217c380c54cf"
+ integrity sha1-VbtemGkVB7dFedBRNBMhfDgMVM8=
+ dependencies:
+ acorn "^2.1.0"
+
+acorn-jsx@^5.3.1:
+ version "5.3.1"
+ resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz"
+ integrity sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==
+
+acorn-node@^1.6.1:
+ version "1.8.2"
+ resolved "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz"
+ integrity sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==
+ dependencies:
+ acorn "^7.0.0"
+ acorn-walk "^7.0.0"
+ xtend "^4.0.2"
+
+acorn-walk@^7.0.0:
+ version "7.2.0"
+ resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz"
+ integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==
+
+acorn-walk@^8.0.0:
+ version "8.2.0"
+ resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.2.0.tgz#741210f2e2426454508853a2f44d0ab83b7f69c1"
+ integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==
+
+acorn@^2.1.0, acorn@^2.4.0:
+ version "2.7.0"
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-2.7.0.tgz#ab6e7d9d886aaca8b085bc3312b79a198433f0e7"
+ integrity sha1-q259nYhqrKiwhbwzEreaGYQz8Oc=
+
+acorn@^7.0.0, acorn@^7.4.0:
+ version "7.4.1"
+ resolved "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz"
+ integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==
+
+acorn@^8.0.4:
+ version "8.7.0"
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.0.tgz#90951fde0f8f09df93549481e5fc141445b791cf"
+ integrity sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==
+
+agent-base@6, agent-base@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77"
+ integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==
+ dependencies:
+ debug "4"
+
+ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4:
+ version "6.12.6"
+ resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz"
+ integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==
+ dependencies:
+ fast-deep-equal "^3.1.1"
+ fast-json-stable-stringify "^2.0.0"
+ json-schema-traverse "^0.4.1"
+ uri-js "^4.2.2"
+
+ajv@^8.0.1:
+ version "8.3.0"
+ resolved "https://registry.npmjs.org/ajv/-/ajv-8.3.0.tgz"
+ integrity sha512-RYE7B5An83d7eWnDR8kbdaIFqmKCNsP16ay1hDbJEU+sa0e3H9SebskCt0Uufem6cfAVu7Col6ubcn/W+Sm8/Q==
+ dependencies:
+ fast-deep-equal "^3.1.1"
+ json-schema-traverse "^1.0.0"
+ require-from-string "^2.0.2"
+ uri-js "^4.2.2"
+
+ansi-colors@^4.1.1:
+ version "4.1.1"
+ resolved "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz"
+ integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==
+
+ansi-regex@^2.0.0:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
+ integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8=
+
+ansi-regex@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz"
+ integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==
+
+ansi-regex@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
+ integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
+
+ansi-styles@^2.2.1:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
+ integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=
+
+ansi-styles@^3.2.1:
+ version "3.2.1"
+ resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz"
+ integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==
+ dependencies:
+ color-convert "^1.9.0"
+
+ansi-styles@^4.0.0, ansi-styles@^4.1.0:
+ version "4.3.0"
+ resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
+ integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==
+ dependencies:
+ color-convert "^2.0.1"
+
+ansi-styles@^5.0.0:
+ version "5.2.0"
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b"
+ integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==
+
+anymatch@~3.1.2:
+ version "3.1.2"
+ resolved "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz"
+ integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==
+ dependencies:
+ normalize-path "^3.0.0"
+ picomatch "^2.0.4"
+
+aproba@^1.0.3:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a"
+ integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==
+
+are-we-there-yet@~1.1.2:
+ version "1.1.7"
+ resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz#b15474a932adab4ff8a50d9adfa7e4e926f21146"
+ integrity sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==
+ dependencies:
+ delegates "^1.0.0"
+ readable-stream "^2.0.6"
+
+arg@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/arg/-/arg-5.0.1.tgz"
+ integrity sha512-e0hDa9H2Z9AwFkk2qDlwhoMYE4eToKarchkQHovNdLTCYMHZHeRjI71crOh+dio4K6u1IcwubQqo79Ga4CyAQA==
+
+argparse@^1.0.7:
+ version "1.0.10"
+ resolved "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz"
+ integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==
+ dependencies:
+ sprintf-js "~1.0.2"
+
+aria-query@^4.2.2:
+ version "4.2.2"
+ resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-4.2.2.tgz#0d2ca6c9aceb56b8977e9fed6aed7e15bbd2f83b"
+ integrity sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==
+ dependencies:
+ "@babel/runtime" "^7.10.2"
+ "@babel/runtime-corejs3" "^7.10.2"
+
+array-includes@^3.1.1, array-includes@^3.1.2, array-includes@^3.1.3:
+ version "3.1.3"
+ resolved "https://registry.npmjs.org/array-includes/-/array-includes-3.1.3.tgz"
+ integrity sha512-gcem1KlBU7c9rB+Rq8/3PPKsK2kjqeEBa3bD5kkQo4nYlOHQCJqIJFqBXDEfwaRuYTT4E+FxA9xez7Gf/e3Q7A==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.18.0-next.2"
+ get-intrinsic "^1.1.1"
+ is-string "^1.0.5"
+
+array-includes@^3.1.4:
+ version "3.1.4"
+ resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.4.tgz#f5b493162c760f3539631f005ba2bb46acb45ba9"
+ integrity sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.1"
+ get-intrinsic "^1.1.1"
+ is-string "^1.0.7"
+
+array-union@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz"
+ integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==
+
+array.prototype.flat@^1.2.3:
+ version "1.2.4"
+ resolved "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.4.tgz"
+ integrity sha512-4470Xi3GAPAjZqFcljX2xzckv1qeKPizoNkiS0+O4IoPR2ZNpcjE0pkhdihlDouK+x6QOast26B4Q/O9DJnwSg==
+ dependencies:
+ call-bind "^1.0.0"
+ define-properties "^1.1.3"
+ es-abstract "^1.18.0-next.1"
+
+array.prototype.flat@^1.2.5:
+ version "1.2.5"
+ resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.5.tgz#07e0975d84bbc7c48cd1879d609e682598d33e13"
+ integrity sha512-KaYU+S+ndVqyUnignHftkwc58o3uVU1jzczILJ1tN2YaIZpFIKBiP/x/j97E5MVPsaCloPbqWLB/8qCTVvT2qg==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.0"
+
+array.prototype.flatmap@^1.2.4:
+ version "1.2.4"
+ resolved "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.2.4.tgz"
+ integrity sha512-r9Z0zYoxqHz60vvQbWEdXIEtCwHF0yxaWfno9qzXeNHvfyl3BZqygmGzb84dsubyaXLH4husF+NFgMSdpZhk2Q==
+ dependencies:
+ call-bind "^1.0.0"
+ define-properties "^1.1.3"
+ es-abstract "^1.18.0-next.1"
+ function-bind "^1.1.1"
+
+array.prototype.flatmap@^1.2.5:
+ version "1.2.5"
+ resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.2.5.tgz#908dc82d8a406930fdf38598d51e7411d18d4446"
+ integrity sha512-08u6rVyi1Lj7oqWbS9nUxliETrtIROT4XGTA4D/LWGten6E3ocm7cy9SIrmNHOL5XVbVuckUp3X6Xyg8/zpvHA==
+ dependencies:
+ call-bind "^1.0.0"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.0"
+
+asn1@~0.2.3:
+ version "0.2.6"
+ resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.6.tgz#0d3a7bb6e64e02a90c0303b31f292868ea09a08d"
+ integrity sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==
+ dependencies:
+ safer-buffer "~2.1.0"
+
[email protected], assert-plus@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525"
+ integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=
+
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.0.0.tgz#c7f85438fdd466bc7ca16ab90c81513797a5d23b"
+ integrity sha1-x/hUOP3UZrx8oWq5DIFRN5el0js=
+
+ast-types-flow@^0.0.7:
+ version "0.0.7"
+ resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad"
+ integrity sha1-9wtzXGvKGlycItmCw+Oef+ujva0=
+
+astral-regex@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz"
+ integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==
+
+asynckit@^0.4.0:
+ version "0.4.0"
+ resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
+ integrity sha1-x57Zf380y48robyXkLzDZkdLS3k=
+
+autoprefixer@^10.4.2:
+ version "10.4.2"
+ resolved "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.2.tgz"
+ integrity sha512-9fOPpHKuDW1w/0EKfRmVnxTDt8166MAnLI3mgZ1JCnhNtYWxcJ6Ud5CO/AVOZi/AvFa8DY9RTy3h3+tFBlrrdQ==
+ dependencies:
+ browserslist "^4.19.1"
+ caniuse-lite "^1.0.30001297"
+ fraction.js "^4.1.2"
+ normalize-range "^0.1.2"
+ picocolors "^1.0.0"
+ postcss-value-parser "^4.2.0"
+
+aws-sign2@~0.7.0:
+ version "0.7.0"
+ resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8"
+ integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=
+
+aws4@^1.8.0:
+ version "1.11.0"
+ resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.11.0.tgz#d61f46d83b2519250e2784daf5b09479a8b41c59"
+ integrity sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==
+
+axe-core@^4.3.5:
+ version "4.4.1"
+ resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.4.1.tgz#7dbdc25989298f9ad006645cd396782443757413"
+ integrity sha512-gd1kmb21kwNuWr6BQz8fv6GNECPBnUasepcoLbekws23NVBLODdsClRZ+bQ8+9Uomf3Sm3+Vwn0oYG9NvwnJCw==
+
+axios@^0.24.0:
+ version "0.24.0"
+ resolved "https://registry.npmjs.org/axios/-/axios-0.24.0.tgz"
+ integrity sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA==
+ dependencies:
+ follow-redirects "^1.14.4"
+
+axios@^0.25.0:
+ version "0.25.0"
+ resolved "https://registry.yarnpkg.com/axios/-/axios-0.25.0.tgz#349cfbb31331a9b4453190791760a8d35b093e0a"
+ integrity sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==
+ dependencies:
+ follow-redirects "^1.14.7"
+
+axobject-query@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.2.0.tgz#943d47e10c0b704aa42275e20edf3722648989be"
+ integrity sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==
+
+babel-code-frame@^6.26.0:
+ version "6.26.0"
+ resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
+ integrity sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=
+ dependencies:
+ chalk "^1.1.3"
+ esutils "^2.0.2"
+ js-tokens "^3.0.2"
+
+ version "6.26.1"
+ resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90"
+ integrity sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==
+ dependencies:
+ babel-messages "^6.23.0"
+ babel-runtime "^6.26.0"
+ babel-types "^6.26.0"
+ detect-indent "^4.0.0"
+ jsesc "^1.3.0"
+ lodash "^4.17.4"
+ source-map "^0.5.7"
+ trim-right "^1.0.1"
+
+babel-messages@^6.23.0:
+ version "6.23.0"
+ resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e"
+ integrity sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=
+ dependencies:
+ babel-runtime "^6.22.0"
+
+babel-plugin-dynamic-import-node@^2.3.3:
+ version "2.3.3"
+ resolved "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz"
+ integrity sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==
+ dependencies:
+ object.assign "^4.1.0"
+
+babel-plugin-polyfill-corejs2@^0.3.0:
+ version "0.3.1"
+ resolved "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.1.tgz"
+ integrity sha512-v7/T6EQcNfVLfcN2X8Lulb7DjprieyLWJK/zOWH5DUYcAgex9sP3h25Q+DLsX9TloXe3y1O8l2q2Jv9q8UVB9w==
+ dependencies:
+ "@babel/compat-data" "^7.13.11"
+ "@babel/helper-define-polyfill-provider" "^0.3.1"
+ semver "^6.1.1"
+
+babel-plugin-polyfill-corejs3@^0.5.0:
+ version "0.5.2"
+ resolved "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.5.2.tgz"
+ integrity sha512-G3uJih0XWiID451fpeFaYGVuxHEjzKTHtc9uGFEjR6hHrvNzeS/PX+LLLcetJcytsB5m4j+K3o/EpXJNb/5IEQ==
+ dependencies:
+ "@babel/helper-define-polyfill-provider" "^0.3.1"
+ core-js-compat "^3.21.0"
+
+babel-plugin-polyfill-regenerator@^0.3.0:
+ version "0.3.1"
+ resolved "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.3.1.tgz"
+ integrity sha512-Y2B06tvgHYt1x0yz17jGkGeeMr5FeKUu+ASJ+N6nB5lQ8Dapfg42i0OVrf8PNGJ3zKL4A23snMi1IRwrqqND7A==
+ dependencies:
+ "@babel/helper-define-polyfill-provider" "^0.3.1"
+
+babel-runtime@^6.22.0, babel-runtime@^6.26.0:
+ version "6.26.0"
+ resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
+ integrity sha1-llxwWGaOgrVde/4E/yM3vItWR/4=
+ dependencies:
+ core-js "^2.4.0"
+ regenerator-runtime "^0.11.0"
+
+ version "6.26.0"
+ resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee"
+ integrity sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=
+ dependencies:
+ babel-code-frame "^6.26.0"
+ babel-messages "^6.23.0"
+ babel-runtime "^6.26.0"
+ babel-types "^6.26.0"
+ babylon "^6.18.0"
+ debug "^2.6.8"
+ globals "^9.18.0"
+ invariant "^2.2.2"
+ lodash "^4.17.4"
+
+babel-types@^6.26.0:
+ version "6.26.0"
+ resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497"
+ integrity sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=
+ dependencies:
+ babel-runtime "^6.26.0"
+ esutils "^2.0.2"
+ lodash "^4.17.4"
+ to-fast-properties "^1.0.3"
+
[email protected], babylon@^6.18.0:
+ version "6.18.0"
+ resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3"
+ integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==
+
+balanced-match@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz"
+ integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
+
+base64-js@^1.3.1:
+ version "1.5.1"
+ resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
+ integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
+
+bcrypt-pbkdf@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e"
+ integrity sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=
+ dependencies:
+ tweetnacl "^0.14.3"
+
+big-integer@^1.6.16:
+ version "1.6.51"
+ resolved "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz"
+ integrity sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==
+
+binary-extensions@^2.0.0:
+ version "2.2.0"
+ resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz"
+ integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
+
+boolbase@^1.0.0, boolbase@~1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz"
+ integrity sha1-aN/1++YMUes3cl6p4+0xDcwed24=
+
+brace-expansion@^1.1.7:
+ version "1.1.11"
+ resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz"
+ integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
+ dependencies:
+ balanced-match "^1.0.0"
+ concat-map "0.0.1"
+
+braces@^3.0.1, braces@~3.0.2:
+ version "3.0.2"
+ resolved "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz"
+ integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
+ dependencies:
+ fill-range "^7.0.1"
+
+broadcast-channel@^3.4.1:
+ version "3.7.0"
+ resolved "https://registry.npmjs.org/broadcast-channel/-/broadcast-channel-3.7.0.tgz"
+ integrity sha512-cIAKJXAxGJceNZGTZSBzMxzyOn72cVgPnKx4dc6LRjQgbaJUQqhy5rzL3zbMxkMWsGKkv2hSFkPRMEXfoMZ2Mg==
+ dependencies:
+ "@babel/runtime" "^7.7.2"
+ detect-node "^2.1.0"
+ js-sha3 "0.8.0"
+ microseconds "0.2.0"
+ nano-time "1.0.0"
+ oblivious-set "1.0.0"
+ rimraf "3.0.2"
+ unload "2.2.0"
+
+browserslist@^4.17.5, browserslist@^4.19.1:
+ version "4.19.1"
+ resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.19.1.tgz"
+ integrity sha512-u2tbbG5PdKRTUoctO3NBD8FQ5HdPh1ZXPHzp1rwaa5jTc+RV9/+RlWiAIKmjRPQF+xbGM9Kklj5bZQFa2s/38A==
+ dependencies:
+ caniuse-lite "^1.0.30001286"
+ electron-to-chromium "^1.4.17"
+ escalade "^3.1.1"
+ node-releases "^2.0.1"
+ picocolors "^1.0.0"
+
+bson@^4.6.2:
+ version "4.6.2"
+ resolved "https://registry.yarnpkg.com/bson/-/bson-4.6.2.tgz#3241c79d23d225b86ab6d2bc268b803d8a5fd444"
+ integrity sha512-VeJKHShcu1b/ugl0QiujlVuBepab714X9nNyBdA1kfekuDGecxgpTA2Z6nYbagrWFeiIyzSWIOzju3lhj+RNyQ==
+ dependencies:
+ buffer "^5.6.0"
+
+buffer-crc32@~0.2.3:
+ version "0.2.13"
+ resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242"
+ integrity sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=
+
+buffer@^5.6.0:
+ version "5.7.1"
+ resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0"
+ integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==
+ dependencies:
+ base64-js "^1.3.1"
+ ieee754 "^1.1.13"
+
+call-bind@^1.0.0, call-bind@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz"
+ integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==
+ dependencies:
+ function-bind "^1.1.1"
+ get-intrinsic "^1.0.2"
+
+callsites@^3.0.0:
+ version "3.1.0"
+ resolved "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz"
+ integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==
+
+camelcase-css@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz"
+ integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==
+
+camelcase@^6.2.0:
+ version "6.3.0"
+ resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz"
+ integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
+
+caniuse-lite@^1.0.30001283:
+ version "1.0.30001304"
+ resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001304.tgz"
+ integrity sha512-bdsfZd6K6ap87AGqSHJP/s1V+U6Z5lyrcbBu3ovbCCf8cSYpwTtGrCBObMpJqwxfTbLW6YTIdbb1jEeTelcpYQ==
+
+caniuse-lite@^1.0.30001286, caniuse-lite@^1.0.30001297:
+ version "1.0.30001303"
+ resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001303.tgz"
+ integrity sha512-/Mqc1oESndUNszJP0kx0UaQU9kEv9nNtJ7Kn8AdA0mNnH8eR1cj0kG+NbNuC1Wq/b21eA8prhKRA3bbkjONegQ==
+
+caseless@~0.12.0:
+ version "0.12.0"
+ resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
+ integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=
+
+chai@^2.3.0:
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/chai/-/chai-2.3.0.tgz#8a2f6a34748da801090fd73287b2aa739a4e909a"
+ integrity sha1-ii9qNHSNqAEJD9cyh7Kqc5pOkJo=
+ dependencies:
+ assertion-error "1.0.0"
+ deep-eql "0.1.3"
+
+chalk@^1.1.3:
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
+ integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=
+ dependencies:
+ ansi-styles "^2.2.1"
+ escape-string-regexp "^1.0.2"
+ has-ansi "^2.0.0"
+ strip-ansi "^3.0.0"
+ supports-color "^2.0.0"
+
+chalk@^2.0.0:
+ version "2.4.2"
+ resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz"
+ integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
+ dependencies:
+ ansi-styles "^3.2.1"
+ escape-string-regexp "^1.0.5"
+ supports-color "^5.3.0"
+
+chalk@^4.0.0:
+ version "4.1.1"
+ resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz"
+ integrity sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==
+ dependencies:
+ ansi-styles "^4.1.0"
+ supports-color "^7.1.0"
+
+chalk@^4.1.0, chalk@^4.1.2:
+ version "4.1.2"
+ resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
+ integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
+ dependencies:
+ ansi-styles "^4.1.0"
+ supports-color "^7.1.0"
+
+ version "0.20.0"
+ resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-0.20.0.tgz#5c710f2bab95653272842ba01c6ea61b3545ec35"
+ integrity sha1-XHEPK6uVZTJyhCugHG6mGzVF7DU=
+ dependencies:
+ css-select "~1.2.0"
+ dom-serializer "~0.1.0"
+ entities "~1.1.1"
+ htmlparser2 "~3.8.1"
+ lodash "^4.1.0"
+ optionalDependencies:
+ jsdom "^7.0.2"
+
+ version "1.0.0-rc.2"
+ resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-1.0.0-rc.2.tgz#4b9f53a81b27e4d5dac31c0ffd0cfa03cc6830db"
+ integrity sha1-S59TqBsn5NXawxwP/Qz6A8xoMNs=
+ dependencies:
+ css-select "~1.2.0"
+ dom-serializer "~0.1.0"
+ entities "~1.1.1"
+ htmlparser2 "^3.9.1"
+ lodash "^4.15.0"
+ parse5 "^3.0.1"
+
+chokidar@^3.5.3:
+ version "3.5.3"
+ resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz"
+ integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
+ dependencies:
+ anymatch "~3.1.2"
+ braces "~3.0.2"
+ glob-parent "~5.1.2"
+ is-binary-path "~2.1.0"
+ is-glob "~4.0.1"
+ normalize-path "~3.0.0"
+ readdirp "~3.6.0"
+ optionalDependencies:
+ fsevents "~2.3.2"
+
+clsx@^1.0.4, clsx@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz"
+ integrity sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==
+
+code-point-at@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
+ integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=
+
+color-convert@^1.9.0:
+ version "1.9.3"
+ resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz"
+ integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==
+ dependencies:
+ color-name "1.1.3"
+
+color-convert@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
+ integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==
+ dependencies:
+ color-name "~1.1.4"
+
+ version "0.0.3"
+ resolved "https://registry.yarnpkg.com/color-logger/-/color-logger-0.0.3.tgz#d9b22dd1d973e166b18bf313f9f481bba4df2018"
+ integrity sha1-2bIt0dlz4Waxi/MT+fSBu6TfIBg=
+
+ version "0.0.6"
+ resolved "https://registry.yarnpkg.com/color-logger/-/color-logger-0.0.6.tgz#e56245ef29822657110c7cb75a9cd786cb69ed1b"
+ integrity sha1-5WJF7ymCJlcRDHy3WpzXhstp7Rs=
+
+ version "1.1.3"
+ resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz"
+ integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=
+
+color-name@^1.1.4, color-name@~1.1.4:
+ version "1.1.4"
+ resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
+ integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
+
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"
+ integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==
+
+combined-stream@^1.0.6, combined-stream@~1.0.6:
+ version "1.0.8"
+ resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f"
+ integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
+ dependencies:
+ delayed-stream "~1.0.0"
+
+ version "8.3.0"
+ resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66"
+ integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==
+
+commander@^6.2.0:
+ version "6.2.1"
+ resolved "https://registry.yarnpkg.com/commander/-/commander-6.2.1.tgz#0792eb682dfbc325999bb2b84fddddba110ac73c"
+ integrity sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==
+
+commander@^7.2.0:
+ version "7.2.0"
+ resolved "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz"
+ integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==
+
+ version "0.0.1"
+ resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
+ integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
+
+console-control-strings@^1.0.0, console-control-strings@~1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
+ integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=
+
+contains-path@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz"
+ integrity sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo=
+
+convert-source-map@^1.7.0:
+ version "1.8.0"
+ resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz"
+ integrity sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==
+ dependencies:
+ safe-buffer "~5.1.1"
+
+cookie@^0.4.1:
+ version "0.4.2"
+ resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432"
+ integrity sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==
+
+copy-to-clipboard@^3.3.1:
+ version "3.3.1"
+ resolved "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.1.tgz"
+ integrity sha512-i13qo6kIHTTpCm8/Wup+0b1mVWETvu2kIMzKoK8FpkLkFxlt0znUAHcMzox+T8sPlqtZXq3CulEjQHsYiGFJUw==
+ dependencies:
+ toggle-selection "^1.0.6"
+
+core-js-compat@^3.20.2, core-js-compat@^3.21.0:
+ version "3.21.0"
+ resolved "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.21.0.tgz"
+ integrity sha512-OSXseNPSK2OPJa6GdtkMz/XxeXx8/CJvfhQWTqd6neuUraujcL4jVsjkLQz1OWnax8xVQJnRPe0V2jqNWORA+A==
+ dependencies:
+ browserslist "^4.19.1"
+ semver "7.0.0"
+
+core-js-pure@^3.20.2:
+ version "3.21.1"
+ resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.21.1.tgz#8c4d1e78839f5f46208de7230cebfb72bc3bdb51"
+ integrity sha512-12VZfFIu+wyVbBebyHmRTuEE/tZrB4tJToWcwAMcsp3h4+sHR+fMJWbKpYiCRWlhFBq+KNyO8rIV9rTkeVmznQ==
+
+core-js@^2.4.0:
+ version "2.6.12"
+ resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec"
+ integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==
+
+core-js@^3:
+ version "3.12.1"
+ resolved "https://registry.npmjs.org/core-js/-/core-js-3.12.1.tgz"
+ integrity sha512-Ne9DKPHTObRuB09Dru5AjwKjY4cJHVGu+y5f7coGn1E9Grkc3p2iBwE9AI/nJzsE29mQF7oq+mhYYRqOMFN1Bw==
+
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
+ integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=
+
+core-util-is@~1.0.0:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85"
+ integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==
+
+cosmiconfig@^7.0.1:
+ version "7.0.1"
+ resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz"
+ integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==
+ dependencies:
+ "@types/parse-json" "^4.0.0"
+ import-fresh "^3.2.1"
+ parse-json "^5.0.0"
+ path-type "^4.0.0"
+ yaml "^1.10.0"
+
+cross-spawn@^7.0.2:
+ version "7.0.3"
+ resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
+ integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
+ dependencies:
+ path-key "^3.1.0"
+ shebang-command "^2.0.0"
+ which "^2.0.1"
+
+css-in-js-utils@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.npmjs.org/css-in-js-utils/-/css-in-js-utils-2.0.1.tgz"
+ integrity sha512-PJF0SpJT+WdbVVt0AOYp9C8GnuruRlL/UFW7932nLWmFLQTaWEzTBQEx7/hn4BuV+WON75iAViSUJLiU3PKbpA==
+ dependencies:
+ hyphenate-style-name "^1.0.2"
+ isobject "^3.0.1"
+
+css-select@^4.1.3:
+ version "4.2.1"
+ resolved "https://registry.npmjs.org/css-select/-/css-select-4.2.1.tgz"
+ integrity sha512-/aUslKhzkTNCQUB2qTX84lVmfia9NyjP3WpDGtj/WxhwBzWBYUV3DgUpurHTme8UTPcPlAD1DJ+b0nN/t50zDQ==
+ dependencies:
+ boolbase "^1.0.0"
+ css-what "^5.1.0"
+ domhandler "^4.3.0"
+ domutils "^2.8.0"
+ nth-check "^2.0.1"
+
+css-select@~1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/css-select/-/css-select-1.2.0.tgz#2b3a110539c5355f1cd8d314623e870b121ec858"
+ integrity sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=
+ dependencies:
+ boolbase "~1.0.0"
+ css-what "2.1"
+ domutils "1.5.1"
+ nth-check "~1.0.1"
+
+css-tree@^1.1.2, css-tree@^1.1.3:
+ version "1.1.3"
+ resolved "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz"
+ integrity sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==
+ dependencies:
+ mdn-data "2.0.14"
+ source-map "^0.6.1"
+
+ version "2.1.3"
+ resolved "https://registry.yarnpkg.com/css-what/-/css-what-2.1.3.tgz#a6d7604573365fe74686c3f311c56513d88285f2"
+ integrity sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg==
+
+css-what@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.npmjs.org/css-what/-/css-what-5.1.0.tgz"
+ integrity sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==
+
+cssesc@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz"
+ integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==
+
+csso@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz"
+ integrity sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==
+ dependencies:
+ css-tree "^1.1.2"
+
[email protected], "cssom@>= 0.3.0 < 0.4.0":
+ version "0.3.8"
+ resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a"
+ integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==
+
+"cssstyle@>= 0.2.29 < 0.3.0":
+ version "0.2.37"
+ resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-0.2.37.tgz#541097234cb2513c83ceed3acddc27ff27987d54"
+ integrity sha1-VBCXI0yyUTyDzu06zdwn/yeYfVQ=
+ dependencies:
+ cssom "0.3.x"
+
+csstype@^3.0.2:
+ version "3.0.8"
+ resolved "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz"
+ integrity sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==
+
+csstype@^3.0.6:
+ version "3.0.10"
+ resolved "https://registry.npmjs.org/csstype/-/csstype-3.0.10.tgz"
+ integrity sha512-2u44ZG2OcNUO9HDp/Jl8C07x6pU/eTR3ncV91SiK3dhG9TWvRVsCoJw14Ckx5DgWkzGA3waZWO3d7pgqpUI/XA==
+
+damerau-levenshtein@^1.0.7:
+ version "1.0.8"
+ resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz#b43d286ccbd36bc5b2f7ed41caf2d0aba1f8a6e7"
+ integrity sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==
+
+dashdash@^1.12.0:
+ version "1.14.1"
+ resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0"
+ integrity sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=
+ dependencies:
+ assert-plus "^1.0.0"
+
+date-arithmetic@^4.1.0:
+ version "4.1.0"
+ resolved "https://registry.npmjs.org/date-arithmetic/-/date-arithmetic-4.1.0.tgz"
+ integrity sha512-QWxYLR5P/6GStZcdem+V1xoto6DMadYWpMXU82ES3/RfR3Wdwr3D0+be7mgOJ+Ov0G9D5Dmb9T17sNLQYj9XOg==
+
+date-fns-tz@^1.2.2:
+ version "1.2.2"
+ resolved "https://registry.yarnpkg.com/date-fns-tz/-/date-fns-tz-1.2.2.tgz#89432b54ce3fa7d050a2039e997e5b6a96df35dd"
+ integrity sha512-vWtn44eEqnLbkACb7T5G5gPgKR4nY8NkNMOCyoY49NsRGHrcDmY2aysCyzDeA+u+vcDBn/w6nQqEDyouRs4m8w==
+
+date-fns@^2.28.0:
+ version "2.28.0"
+ resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.28.0.tgz#9570d656f5fc13143e50c975a3b6bbeb46cd08b2"
+ integrity sha512-8d35hViGYx/QH0icHYCeLmsLmMUheMmTyV9Fcm6gvNwdw31yXXH+O85sOBJ+OLnLQMKZowvpKb6FgMIQjcpvQw==
+
+ version "4.3.3"
+ resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664"
+ integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==
+ dependencies:
+ ms "2.1.2"
+
+debug@^2.6.8, debug@^2.6.9:
+ version "2.6.9"
+ resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz"
+ integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==
+ dependencies:
+ ms "2.0.0"
+
+debug@^3.2.7:
+ version "3.2.7"
+ resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a"
+ integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==
+ dependencies:
+ ms "^2.1.1"
+
+debug@^4.0.1, debug@^4.1.0, debug@^4.1.1:
+ version "4.3.1"
+ resolved "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz"
+ integrity sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==
+ dependencies:
+ ms "2.1.2"
+
+debug@^4.3.1, debug@^4.3.2, debug@^4.3.4:
+ version "4.3.4"
+ resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
+ integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
+ dependencies:
+ ms "2.1.2"
+
+ version "0.1.3"
+ resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-0.1.3.tgz#ef558acab8de25206cd713906d74e56930eb69f2"
+ integrity sha1-71WKyrjeJSBs1xOQbXTlaTDrafI=
+ dependencies:
+ type-detect "0.1.1"
+
+deep-is@^0.1.3:
+ version "0.1.3"
+ resolved "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz"
+ integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=
+
+deep-is@~0.1.3:
+ version "0.1.4"
+ resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831"
+ integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==
+
+deepmerge@^4.2.2:
+ version "4.2.2"
+ resolved "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz"
+ integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==
+
+define-lazy-prop@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f"
+ integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==
+
+define-properties@^1.1.3:
+ version "1.1.3"
+ resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz"
+ integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==
+ dependencies:
+ object-keys "^1.0.12"
+
+defined@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz"
+ integrity sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=
+
+delayed-stream@~1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
+ integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk=
+
+delegates@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
+ integrity sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=
+
+denque@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/denque/-/denque-2.0.1.tgz#bcef4c1b80dc32efe97515744f21a4229ab8934a"
+ integrity sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ==
+
+detect-indent@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208"
+ integrity sha1-920GQ1LN9Docts5hnE7jqUdd4gg=
+ dependencies:
+ repeating "^2.0.0"
+
+detect-node@^2.0.4, detect-node@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz"
+ integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==
+
+detective@^5.2.0:
+ version "5.2.0"
+ resolved "https://registry.npmjs.org/detective/-/detective-5.2.0.tgz"
+ integrity sha512-6SsIx+nUUbuK0EthKjv0zrdnajCCXVYGmbYYiYjFVpzcjwEs/JMDZ8tPRG29J/HhN56t3GJp2cGSWDRjjot8Pg==
+ dependencies:
+ acorn-node "^1.6.1"
+ defined "^1.0.0"
+ minimist "^1.1.1"
+
+didyoumean@^1.2.2:
+ version "1.2.2"
+ resolved "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz"
+ integrity sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==
+
+diff-sequences@^27.5.1:
+ version "27.5.1"
+ resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-27.5.1.tgz#eaecc0d327fd68c8d9672a1e64ab8dccb2ef5327"
+ integrity sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==
+
+dir-glob@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz"
+ integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==
+ dependencies:
+ path-type "^4.0.0"
+
+dlv@^1.1.3:
+ version "1.1.3"
+ resolved "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz"
+ integrity sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==
+
+ version "1.5.0"
+ resolved "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz"
+ integrity sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=
+ dependencies:
+ esutils "^2.0.2"
+ isarray "^1.0.0"
+
+doctrine@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz"
+ integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==
+ dependencies:
+ esutils "^2.0.2"
+
+doctrine@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz"
+ integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==
+ dependencies:
+ esutils "^2.0.2"
+
+dom-helpers@^5.1.0, dom-helpers@^5.2.0:
+ version "5.2.1"
+ resolved "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz"
+ integrity sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==
+ dependencies:
+ "@babel/runtime" "^7.8.7"
+ csstype "^3.0.2"
+
+dom-serializer@0:
+ version "0.2.2"
+ resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51"
+ integrity sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==
+ dependencies:
+ domelementtype "^2.0.1"
+ entities "^2.0.0"
+
+dom-serializer@^1.0.1:
+ version "1.3.2"
+ resolved "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz"
+ integrity sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==
+ dependencies:
+ domelementtype "^2.0.1"
+ domhandler "^4.2.0"
+ entities "^2.0.0"
+
+dom-serializer@~0.1.0:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.1.1.tgz#1ec4059e284babed36eec2941d4a970a189ce7c0"
+ integrity sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==
+ dependencies:
+ domelementtype "^1.3.0"
+ entities "^1.1.1"
+
+domelementtype@1, domelementtype@^1.3.0, domelementtype@^1.3.1:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f"
+ integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==
+
+domelementtype@^2.0.1, domelementtype@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz"
+ integrity sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==
+
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.3.0.tgz#2de59a0822d5027fabff6f032c2b25a2a8abe738"
+ integrity sha1-LeWaCCLVAn+r/28DLCsloqir5zg=
+ dependencies:
+ domelementtype "1"
+
+domhandler@^2.3.0:
+ version "2.4.2"
+ resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.4.2.tgz#8805097e933d65e85546f726d60f5eb88b44f803"
+ integrity sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==
+ dependencies:
+ domelementtype "1"
+
+domhandler@^4.2.0, domhandler@^4.3.0:
+ version "4.3.0"
+ resolved "https://registry.npmjs.org/domhandler/-/domhandler-4.3.0.tgz"
+ integrity sha512-fC0aXNQXqKSFTr2wDNZDhsEYjCiYsDWl3D01kwt25hm1YIPyDGHvvi3rw+PLqHAl/m71MaiF7d5zvBr0p5UB2g==
+ dependencies:
+ domelementtype "^2.2.0"
+
+ version "1.5.1"
+ resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.5.1.tgz#dcd8488a26f563d61079e48c9f7b7e32373682cf"
+ integrity sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=
+ dependencies:
+ dom-serializer "0"
+ domelementtype "1"
+
+domutils@^1.5.1:
+ version "1.7.0"
+ resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a"
+ integrity sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==
+ dependencies:
+ dom-serializer "0"
+ domelementtype "1"
+
+domutils@^2.8.0:
+ version "2.8.0"
+ resolved "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz"
+ integrity sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==
+ dependencies:
+ dom-serializer "^1.0.1"
+ domelementtype "^2.2.0"
+ domhandler "^4.2.0"
+
+duplexer@^0.1.2:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6"
+ integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==
+
+ecc-jsbn@~0.1.1:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9"
+ integrity sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=
+ dependencies:
+ jsbn "~0.1.0"
+ safer-buffer "^2.1.0"
+
+electron-to-chromium@^1.4.17:
+ version "1.4.57"
+ resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.57.tgz"
+ integrity sha512-FNC+P5K1n6pF+M0zIK+gFCoXcJhhzDViL3DRIGy2Fv5PohuSES1JHR7T+GlwxSxlzx4yYbsuzCZvHxcBSRCIOw==
+
+emoji-regex@^8.0.0:
+ version "8.0.0"
+ resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz"
+ integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
+
+emoji-regex@^9.2.2:
+ version "9.2.2"
+ resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72"
+ integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==
+
+end-of-stream@^1.1.0:
+ version "1.4.4"
+ resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"
+ integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==
+ dependencies:
+ once "^1.4.0"
+
+enquirer@^2.3.5:
+ version "2.3.6"
+ resolved "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz"
+ integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==
+ dependencies:
+ ansi-colors "^4.1.1"
+
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/entities/-/entities-1.0.0.tgz#b2987aa3821347fcde642b24fdfc9e4fb712bf26"
+ integrity sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=
+
+entities@^1.1.1, entities@~1.1.1:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56"
+ integrity sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==
+
+entities@^2.0.0:
+ version "2.2.0"
+ resolved "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz"
+ integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==
+
+entities@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz"
+ integrity sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==
+
+error-ex@^1.2.0, error-ex@^1.3.1:
+ version "1.3.2"
+ resolved "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz"
+ integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==
+ dependencies:
+ is-arrayish "^0.2.1"
+
+error-stack-parser@^2.0.6:
+ version "2.0.6"
+ resolved "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.0.6.tgz"
+ integrity sha512-d51brTeqC+BHlwF0BhPtcYgF5nlzf9ZZ0ZIUQNZpc9ZB9qw5IJ2diTrBY9jlCJkTLITYPjmiX6OWCwH+fuyNgQ==
+ dependencies:
+ stackframe "^1.1.1"
+
+es-abstract@^1.18.0-next.1, es-abstract@^1.18.0-next.2:
+ version "1.18.0"
+ resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0.tgz"
+ integrity sha512-LJzK7MrQa8TS0ja2w3YNLzUgJCGPdPOV1yVvezjNnS89D+VR08+Szt2mz3YB2Dck/+w5tfIq/RoUAFqJJGM2yw==
+ dependencies:
+ call-bind "^1.0.2"
+ es-to-primitive "^1.2.1"
+ function-bind "^1.1.1"
+ get-intrinsic "^1.1.1"
+ has "^1.0.3"
+ has-symbols "^1.0.2"
+ is-callable "^1.2.3"
+ is-negative-zero "^2.0.1"
+ is-regex "^1.1.2"
+ is-string "^1.0.5"
+ object-inspect "^1.9.0"
+ object-keys "^1.1.1"
+ object.assign "^4.1.2"
+ string.prototype.trimend "^1.0.4"
+ string.prototype.trimstart "^1.0.4"
+ unbox-primitive "^1.0.0"
+
+es-abstract@^1.19.0, es-abstract@^1.19.1:
+ version "1.19.1"
+ resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.19.1.tgz#d4885796876916959de78edaa0df456627115ec3"
+ integrity sha512-2vJ6tjA/UfqLm2MPs7jxVybLoB8i1t1Jd9R3kISld20sIxPcTbLuggQOUxeWeAvIUkduv/CfMjuh4WmiXr2v9w==
+ dependencies:
+ call-bind "^1.0.2"
+ es-to-primitive "^1.2.1"
+ function-bind "^1.1.1"
+ get-intrinsic "^1.1.1"
+ get-symbol-description "^1.0.0"
+ has "^1.0.3"
+ has-symbols "^1.0.2"
+ internal-slot "^1.0.3"
+ is-callable "^1.2.4"
+ is-negative-zero "^2.0.1"
+ is-regex "^1.1.4"
+ is-shared-array-buffer "^1.0.1"
+ is-string "^1.0.7"
+ is-weakref "^1.0.1"
+ object-inspect "^1.11.0"
+ object-keys "^1.1.1"
+ object.assign "^4.1.2"
+ string.prototype.trimend "^1.0.4"
+ string.prototype.trimstart "^1.0.4"
+ unbox-primitive "^1.0.1"
+
+es-to-primitive@^1.2.1:
+ version "1.2.1"
+ resolved "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz"
+ integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==
+ dependencies:
+ is-callable "^1.1.4"
+ is-date-object "^1.0.1"
+ is-symbol "^1.0.2"
+
+escalade@^3.1.1:
+ version "3.1.1"
+ resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz"
+ integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==
+
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
+ integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=
+
+escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz"
+ integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
+
+escape-string-regexp@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
+ integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
+
+escodegen@^1.6.1:
+ version "1.14.3"
+ resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503"
+ integrity sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==
+ dependencies:
+ esprima "^4.0.1"
+ estraverse "^4.2.0"
+ esutils "^2.0.2"
+ optionator "^0.8.1"
+ optionalDependencies:
+ source-map "~0.6.1"
+
+esdoc-coverage-plugin@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/esdoc-coverage-plugin/-/esdoc-coverage-plugin-1.1.0.tgz#3869869cd7f87891f972625787695a299aece45c"
+ integrity sha1-OGmGnNf4eJH5cmJXh2laKZrs5Fw=
+
+esdoc-type-inference-plugin@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/esdoc-type-inference-plugin/-/esdoc-type-inference-plugin-1.0.2.tgz#916e3f756de1d81d9c0dbe1c008e8dafd322cfaf"
+ integrity sha512-tMIcEHNe1uhUGA7lT1UTWc9hs2dzthnTgmqXpmeUhurk7fL2tinvoH+IVvG/sLROzwOGZQS9zW/F9KWnpMzLIQ==
+
+esdoc@^1.0.3:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/esdoc/-/esdoc-1.1.0.tgz#07d40ebf791764cd537929c29111e20a857624f3"
+ integrity sha512-vsUcp52XJkOWg9m1vDYplGZN2iDzvmjDL5M/Mp8qkoDG3p2s0yIQCIjKR5wfPBaM3eV14a6zhQNYiNTCVzPnxA==
+ dependencies:
+ babel-generator "6.26.1"
+ babel-traverse "6.26.0"
+ babylon "6.18.0"
+ cheerio "1.0.0-rc.2"
+ color-logger "0.0.6"
+ escape-html "1.0.3"
+ fs-extra "5.0.0"
+ ice-cap "0.0.4"
+ marked "0.3.19"
+ minimist "1.2.0"
+ taffydb "2.7.3"
+
+ version "12.1.0"
+ resolved "https://registry.yarnpkg.com/eslint-config-next/-/eslint-config-next-12.1.0.tgz#8ace680dc5207e6ab6c915f3989adec122f582e7"
+ integrity sha512-tBhuUgoDITcdcM7xFvensi9I5WTI4dnvH4ETGRg1U8ZKpXrZsWQFdOKIDzR3RLP5HR3xXrLviaMM4c3zVoE/pA==
+ dependencies:
+ "@next/eslint-plugin-next" "12.1.0"
+ "@rushstack/eslint-patch" "^1.0.8"
+ "@typescript-eslint/parser" "^5.0.0"
+ eslint-import-resolver-node "^0.3.4"
+ eslint-import-resolver-typescript "^2.4.0"
+ eslint-plugin-import "^2.25.2"
+ eslint-plugin-jsx-a11y "^6.5.1"
+ eslint-plugin-react "^7.27.0"
+ eslint-plugin-react-hooks "^4.3.0"
+
+eslint-import-resolver-node@^0.3.4:
+ version "0.3.4"
+ resolved "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz"
+ integrity sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA==
+ dependencies:
+ debug "^2.6.9"
+ resolve "^1.13.1"
+
+eslint-import-resolver-node@^0.3.6:
+ version "0.3.6"
+ resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz#4048b958395da89668252001dbd9eca6b83bacbd"
+ integrity sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==
+ dependencies:
+ debug "^3.2.7"
+ resolve "^1.20.0"
+
+eslint-import-resolver-typescript@^2.4.0, eslint-import-resolver-typescript@^2.7.0:
+ version "2.7.0"
+ resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-2.7.0.tgz#1f9d391b636dccdbaa4a3b1a87eb9a8237e23963"
+ integrity sha512-MNHS3u5pebvROX4MjGP9coda589ZGfL1SqdxUV4kSrcclfDRWvNE2D+eljbnWVMvWDVRgT89nhscMHPKYGcObQ==
+ dependencies:
+ debug "^4.3.4"
+ glob "^7.2.0"
+ is-glob "^4.0.3"
+ resolve "^1.22.0"
+ tsconfig-paths "^3.14.1"
+
+eslint-module-utils@^2.6.0:
+ version "2.6.0"
+ resolved "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.0.tgz"
+ integrity sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA==
+ dependencies:
+ debug "^2.6.9"
+ pkg-dir "^2.0.0"
+
+eslint-module-utils@^2.7.2:
+ version "2.7.3"
+ resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.7.3.tgz#ad7e3a10552fdd0642e1e55292781bd6e34876ee"
+ integrity sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==
+ dependencies:
+ debug "^3.2.7"
+ find-up "^2.1.0"
+
+eslint-plugin-import@^2.22.1:
+ version "2.22.1"
+ resolved "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.22.1.tgz"
+ integrity sha512-8K7JjINHOpH64ozkAhpT3sd+FswIZTfMZTjdx052pnWrgRCVfp8op9tbjpAk3DdUeI/Ba4C8OjdC0r90erHEOw==
+ dependencies:
+ array-includes "^3.1.1"
+ array.prototype.flat "^1.2.3"
+ contains-path "^0.1.0"
+ debug "^2.6.9"
+ doctrine "1.5.0"
+ eslint-import-resolver-node "^0.3.4"
+ eslint-module-utils "^2.6.0"
+ has "^1.0.3"
+ minimatch "^3.0.4"
+ object.values "^1.1.1"
+ read-pkg-up "^2.0.0"
+ resolve "^1.17.0"
+ tsconfig-paths "^3.9.0"
+
+eslint-plugin-import@^2.25.2:
+ version "2.25.4"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.25.4.tgz#322f3f916a4e9e991ac7af32032c25ce313209f1"
+ integrity sha512-/KJBASVFxpu0xg1kIBn9AUa8hQVnszpwgE7Ld0lKAlx7Ie87yzEzCgSkekt+le/YVhiaosO4Y14GDAOc41nfxA==
+ dependencies:
+ array-includes "^3.1.4"
+ array.prototype.flat "^1.2.5"
+ debug "^2.6.9"
+ doctrine "^2.1.0"
+ eslint-import-resolver-node "^0.3.6"
+ eslint-module-utils "^2.7.2"
+ has "^1.0.3"
+ is-core-module "^2.8.0"
+ is-glob "^4.0.3"
+ minimatch "^3.0.4"
+ object.values "^1.1.5"
+ resolve "^1.20.0"
+ tsconfig-paths "^3.12.0"
+
+eslint-plugin-jsx-a11y@^6.5.1:
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.5.1.tgz#cdbf2df901040ca140b6ec14715c988889c2a6d8"
+ integrity sha512-sVCFKX9fllURnXT2JwLN5Qgo24Ug5NF6dxhkmxsMEUZhXRcGg+X3e1JbJ84YePQKBl5E0ZjAH5Q4rkdcGY99+g==
+ dependencies:
+ "@babel/runtime" "^7.16.3"
+ aria-query "^4.2.2"
+ array-includes "^3.1.4"
+ ast-types-flow "^0.0.7"
+ axe-core "^4.3.5"
+ axobject-query "^2.2.0"
+ damerau-levenshtein "^1.0.7"
+ emoji-regex "^9.2.2"
+ has "^1.0.3"
+ jsx-ast-utils "^3.2.1"
+ language-tags "^1.0.5"
+ minimatch "^3.0.4"
+
+eslint-plugin-react-hooks@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz"
+ integrity sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ==
+
+eslint-plugin-react-hooks@^4.3.0:
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.3.0.tgz#318dbf312e06fab1c835a4abef00121751ac1172"
+ integrity sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA==
+
+eslint-plugin-react@^7.23.2:
+ version "7.23.2"
+ resolved "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.23.2.tgz"
+ integrity sha512-AfjgFQB+nYszudkxRkTFu0UR1zEQig0ArVMPloKhxwlwkzaw/fBiH0QWcBBhZONlXqQC51+nfqFrkn4EzHcGBw==
+ dependencies:
+ array-includes "^3.1.3"
+ array.prototype.flatmap "^1.2.4"
+ doctrine "^2.1.0"
+ has "^1.0.3"
+ jsx-ast-utils "^2.4.1 || ^3.0.0"
+ minimatch "^3.0.4"
+ object.entries "^1.1.3"
+ object.fromentries "^2.0.4"
+ object.values "^1.1.3"
+ prop-types "^15.7.2"
+ resolve "^2.0.0-next.3"
+ string.prototype.matchall "^4.0.4"
+
+eslint-plugin-react@^7.27.0:
+ version "7.29.4"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.29.4.tgz#4717de5227f55f3801a5fd51a16a4fa22b5914d2"
+ integrity sha512-CVCXajliVh509PcZYRFyu/BoUEz452+jtQJq2b3Bae4v3xBUWPLCmtmBM+ZinG4MzwmxJgJ2M5rMqhqLVn7MtQ==
+ dependencies:
+ array-includes "^3.1.4"
+ array.prototype.flatmap "^1.2.5"
+ doctrine "^2.1.0"
+ estraverse "^5.3.0"
+ jsx-ast-utils "^2.4.1 || ^3.0.0"
+ minimatch "^3.1.2"
+ object.entries "^1.1.5"
+ object.fromentries "^2.0.5"
+ object.hasown "^1.1.0"
+ object.values "^1.1.5"
+ prop-types "^15.8.1"
+ resolve "^2.0.0-next.3"
+ semver "^6.3.0"
+ string.prototype.matchall "^4.0.6"
+
+eslint-plugin-simple-import-sort@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.npmjs.org/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-7.0.0.tgz"
+ integrity sha512-U3vEDB5zhYPNfxT5TYR7u01dboFZp+HNpnGhkDB2g/2E4wZ/g1Q9Ton8UwCLfRV9yAKyYqDh62oHOamvkFxsvw==
+
+eslint-scope@^5.0.0, eslint-scope@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz"
+ integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==
+ dependencies:
+ esrecurse "^4.3.0"
+ estraverse "^4.1.1"
+
+eslint-utils@^2.0.0, eslint-utils@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz"
+ integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==
+ dependencies:
+ eslint-visitor-keys "^1.1.0"
+
+eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0:
+ version "1.3.0"
+ resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz"
+ integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==
+
+eslint-visitor-keys@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz"
+ integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==
+
+eslint-visitor-keys@^3.0.0:
+ version "3.3.0"
+ resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
+ integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==
+
+eslint@^7.26.0:
+ version "7.26.0"
+ resolved "https://registry.npmjs.org/eslint/-/eslint-7.26.0.tgz"
+ integrity sha512-4R1ieRf52/izcZE7AlLy56uIHHDLT74Yzz2Iv2l6kDaYvEu9x+wMB5dZArVL8SYGXSYV2YAg70FcW5Y5nGGNIg==
+ dependencies:
+ "@babel/code-frame" "7.12.11"
+ "@eslint/eslintrc" "^0.4.1"
+ ajv "^6.10.0"
+ chalk "^4.0.0"
+ cross-spawn "^7.0.2"
+ debug "^4.0.1"
+ doctrine "^3.0.0"
+ enquirer "^2.3.5"
+ eslint-scope "^5.1.1"
+ eslint-utils "^2.1.0"
+ eslint-visitor-keys "^2.0.0"
+ espree "^7.3.1"
+ esquery "^1.4.0"
+ esutils "^2.0.2"
+ file-entry-cache "^6.0.1"
+ functional-red-black-tree "^1.0.1"
+ glob-parent "^5.0.0"
+ globals "^13.6.0"
+ ignore "^4.0.6"
+ import-fresh "^3.0.0"
+ imurmurhash "^0.1.4"
+ is-glob "^4.0.0"
+ js-yaml "^3.13.1"
+ json-stable-stringify-without-jsonify "^1.0.1"
+ levn "^0.4.1"
+ lodash "^4.17.21"
+ minimatch "^3.0.4"
+ natural-compare "^1.4.0"
+ optionator "^0.9.1"
+ progress "^2.0.0"
+ regexpp "^3.1.0"
+ semver "^7.2.1"
+ strip-ansi "^6.0.0"
+ strip-json-comments "^3.1.0"
+ table "^6.0.4"
+ text-table "^0.2.0"
+ v8-compile-cache "^2.0.3"
+
+espree@^7.3.0, espree@^7.3.1:
+ version "7.3.1"
+ resolved "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz"
+ integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==
+ dependencies:
+ acorn "^7.4.0"
+ acorn-jsx "^5.3.1"
+ eslint-visitor-keys "^1.3.0"
+
+esprima@^4.0.0, esprima@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz"
+ integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==
+
+esquery@^1.4.0:
+ version "1.4.0"
+ resolved "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz"
+ integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==
+ dependencies:
+ estraverse "^5.1.0"
+
+esrecurse@^4.3.0:
+ version "4.3.0"
+ resolved "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz"
+ integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==
+ dependencies:
+ estraverse "^5.2.0"
+
+estraverse@^4.1.1, estraverse@^4.2.0:
+ version "4.3.0"
+ resolved "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz"
+ integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==
+
+estraverse@^5.1.0, estraverse@^5.2.0:
+ version "5.2.0"
+ resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz"
+ integrity sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==
+
+estraverse@^5.3.0:
+ version "5.3.0"
+ resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123"
+ integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==
+
+esutils@^2.0.2:
+ version "2.0.3"
+ resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz"
+ integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
+
+eta@^1.12.3:
+ version "1.12.3"
+ resolved "https://registry.yarnpkg.com/eta/-/eta-1.12.3.tgz#2982d08adfbef39f9fa50e2fbd42d7337e7338b1"
+ integrity sha512-qHixwbDLtekO/d51Yr4glcaUJCIjGVJyTzuqV4GPlgZo1YpgOKG+avQynErZIYrfM6JIJdtiG2Kox8tbb+DoGg==
+
+ version "27.2.5"
+ resolved "https://registry.yarnpkg.com/expect/-/expect-27.2.5.tgz#16154aaa60b4d9a5b0adacfea3e4d6178f4b93fd"
+ integrity sha512-ZrO0w7bo8BgGoP/bLz+HDCI+0Hfei9jUSZs5yI/Wyn9VkG9w8oJ7rHRgYj+MA7yqqFa0IwHA3flJzZtYugShJA==
+ dependencies:
+ "@jest/types" "^27.2.5"
+ ansi-styles "^5.0.0"
+ jest-get-type "^27.0.6"
+ jest-matcher-utils "^27.2.5"
+ jest-message-util "^27.2.5"
+ jest-regex-util "^27.0.6"
+
+extend@~3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa"
+ integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==
+
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-2.0.1.tgz#663dca56fe46df890d5f131ef4a06d22bb8ba13a"
+ integrity sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==
+ dependencies:
+ debug "^4.1.1"
+ get-stream "^5.1.0"
+ yauzl "^2.10.0"
+ optionalDependencies:
+ "@types/yauzl" "^2.9.1"
+
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05"
+ integrity sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=
+
+extsprintf@^1.2.0:
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07"
+ integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==
+
+fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
+ version "3.1.3"
+ resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz"
+ integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
+
+fast-glob@^3.1.1:
+ version "3.2.5"
+ resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.5.tgz"
+ integrity sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==
+ dependencies:
+ "@nodelib/fs.stat" "^2.0.2"
+ "@nodelib/fs.walk" "^1.2.3"
+ glob-parent "^5.1.0"
+ merge2 "^1.3.0"
+ micromatch "^4.0.2"
+ picomatch "^2.2.1"
+
+fast-glob@^3.2.11, fast-glob@^3.2.9:
+ version "3.2.11"
+ resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz"
+ integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==
+ dependencies:
+ "@nodelib/fs.stat" "^2.0.2"
+ "@nodelib/fs.walk" "^1.2.3"
+ glob-parent "^5.1.2"
+ merge2 "^1.3.0"
+ micromatch "^4.0.4"
+
+fast-json-stable-stringify@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz"
+ integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==
+
+fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6:
+ version "2.0.6"
+ resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz"
+ integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=
+
+fast-shallow-equal@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/fast-shallow-equal/-/fast-shallow-equal-1.0.0.tgz"
+ integrity sha512-HPtaa38cPgWvaCFmRNhlc6NG7pv6NUHqjPgVAkWGoB9mQMwYB27/K0CvOM5Czy+qpT3e8XJ6Q4aPAnzpNpzNaw==
+
+fastest-stable-stringify@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.npmjs.org/fastest-stable-stringify/-/fastest-stable-stringify-2.0.2.tgz"
+ integrity sha512-bijHueCGd0LqqNK9b5oCMHc0MluJAx0cwqASgbWMvkO01lCYgIhacVRLcaDz3QnyYIRNJRDwMb41VuT6pHJ91Q==
+
+fastq@^1.6.0:
+ version "1.11.0"
+ resolved "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz"
+ integrity sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==
+ dependencies:
+ reusify "^1.0.4"
+
+fd-slicer@~1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e"
+ integrity sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=
+ dependencies:
+ pend "~1.2.0"
+
+file-entry-cache@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz"
+ integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==
+ dependencies:
+ flat-cache "^3.0.4"
+
+fill-range@^7.0.1:
+ version "7.0.1"
+ resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz"
+ integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==
+ dependencies:
+ to-regex-range "^5.0.1"
+
+find-up@^2.0.0, find-up@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz"
+ integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c=
+ dependencies:
+ locate-path "^2.0.0"
+
+flat-cache@^3.0.4:
+ version "3.0.4"
+ resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz"
+ integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==
+ dependencies:
+ flatted "^3.1.0"
+ rimraf "^3.0.2"
+
+flatted@^3.1.0:
+ version "3.1.1"
+ resolved "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz"
+ integrity sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==
+
+follow-redirects@^1.14.4:
+ version "1.14.5"
+ resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.5.tgz"
+ integrity sha512-wtphSXy7d4/OR+MvIFbCVBDzZ5520qV8XfPklSN5QtxuMUJZ+b0Wnst1e1lCDocfzuCkHqj8k0FpZqO+UIaKNA==
+
+follow-redirects@^1.14.7:
+ version "1.14.9"
+ resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.9.tgz#dd4ea157de7bfaf9ea9b3fbd85aa16951f78d8d7"
+ integrity sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==
+
+forever-agent@~0.6.1:
+ version "0.6.1"
+ resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
+ integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=
+
+form-data@~2.3.2:
+ version "2.3.3"
+ resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6"
+ integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==
+ dependencies:
+ asynckit "^0.4.0"
+ combined-stream "^1.0.6"
+ mime-types "^2.1.12"
+
+fraction.js@^4.1.2:
+ version "4.1.2"
+ resolved "https://registry.npmjs.org/fraction.js/-/fraction.js-4.1.2.tgz"
+ integrity sha512-o2RiJQ6DZaR/5+Si0qJUIy637QMRudSi9kU/FFzx9EZazrIdnBgpU+3sEWCxAVhH2RtxW2Oz+T4p2o8uOPVcgA==
+
+framer-motion@^6.2.9:
+ version "6.2.9"
+ resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-6.2.9.tgz#7de11140f57141ebaad4c99d6a492f00cb733d04"
+ integrity sha512-XMP4Z5j9KlGw8aeo7n8BXTJFbt1Vv5XRzHVOKiAna1yBG4SPwTdk/8bJRfztYb0Jmw90hzBTC/3Q2dhfdtXisQ==
+ dependencies:
+ framesync "6.0.1"
+ hey-listen "^1.0.8"
+ popmotion "11.0.3"
+ style-value-types "5.0.0"
+ tslib "^2.1.0"
+ optionalDependencies:
+ "@emotion/is-prop-valid" "^0.8.2"
+
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/framesync/-/framesync-6.0.1.tgz#5e32fc01f1c42b39c654c35b16440e07a25d6f20"
+ integrity sha512-fUY88kXvGiIItgNC7wcTOl0SNRCVXMKSWW2Yzfmn7EKNc+MpCzcz9DhdHcdjbrtN3c6R4H5dTY2jiCpPdysEjA==
+ dependencies:
+ tslib "^2.1.0"
+
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-5.0.0.tgz#414d0110cdd06705734d055652c5411260c31abd"
+ integrity sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==
+ dependencies:
+ graceful-fs "^4.1.2"
+ jsonfile "^4.0.0"
+ universalify "^0.1.0"
+
+fs.realpath@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
+ integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8=
+
+fsevents@~2.3.2:
+ version "2.3.2"
+ resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
+ integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
+
+function-bind@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"
+ integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
+
+functional-red-black-tree@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz"
+ integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=
+
+gauge@~2.7.3:
+ version "2.7.4"
+ resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7"
+ integrity sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=
+ dependencies:
+ aproba "^1.0.3"
+ console-control-strings "^1.0.0"
+ has-unicode "^2.0.0"
+ object-assign "^4.1.0"
+ signal-exit "^3.0.0"
+ string-width "^1.0.1"
+ strip-ansi "^3.0.1"
+ wide-align "^1.1.0"
+
+gensync@^1.0.0-beta.2:
+ version "1.0.0-beta.2"
+ resolved "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz"
+ integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==
+
+get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz"
+ integrity sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==
+ dependencies:
+ function-bind "^1.1.1"
+ has "^1.0.3"
+ has-symbols "^1.0.1"
+
+get-stream@^5.1.0:
+ version "5.2.0"
+ resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3"
+ integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==
+ dependencies:
+ pump "^3.0.0"
+
+get-symbol-description@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6"
+ integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==
+ dependencies:
+ call-bind "^1.0.2"
+ get-intrinsic "^1.1.1"
+
+getpass@^0.1.1:
+ version "0.1.7"
+ resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa"
+ integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=
+ dependencies:
+ assert-plus "^1.0.0"
+
+github-buttons@^2.21.1:
+ version "2.21.1"
+ resolved "https://registry.yarnpkg.com/github-buttons/-/github-buttons-2.21.1.tgz#9e55eb83b70c9149a21c235db2e971c53d4d98a2"
+ integrity sha512-n9bCQ8sj+5oX1YH5NeyWGbAclRDtHEhMBzqw2ctsWpdEHOwVgfruRu0VIVy01Ah10dd/iFajMHYU71L7IBWBOw==
+
+glob-parent@^5.0.0, glob-parent@^5.1.0, glob-parent@^5.1.2, glob-parent@~5.1.2:
+ version "5.1.2"
+ resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz"
+ integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
+ dependencies:
+ is-glob "^4.0.1"
+
+glob-parent@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz"
+ integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==
+ dependencies:
+ is-glob "^4.0.3"
+
[email protected], glob@^7.1.3:
+ version "7.1.7"
+ resolved "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz"
+ integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==
+ dependencies:
+ fs.realpath "^1.0.0"
+ inflight "^1.0.4"
+ inherits "2"
+ minimatch "^3.0.4"
+ once "^1.3.0"
+ path-is-absolute "^1.0.0"
+
+glob@^7.2.0:
+ version "7.2.0"
+ resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023"
+ integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==
+ dependencies:
+ fs.realpath "^1.0.0"
+ inflight "^1.0.4"
+ inherits "2"
+ minimatch "^3.0.4"
+ once "^1.3.0"
+ path-is-absolute "^1.0.0"
+
+globals@^11.1.0:
+ version "11.12.0"
+ resolved "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz"
+ integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
+
+globals@^12.1.0:
+ version "12.4.0"
+ resolved "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz"
+ integrity sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==
+ dependencies:
+ type-fest "^0.8.1"
+
+globals@^13.6.0:
+ version "13.8.0"
+ resolved "https://registry.npmjs.org/globals/-/globals-13.8.0.tgz"
+ integrity sha512-rHtdA6+PDBIjeEvA91rpqzEvk/k3/i7EeNQiryiWuJH0Hw9cpyJMAt2jtbAwUaRdhD+573X4vWw6IcjKPasi9Q==
+ dependencies:
+ type-fest "^0.20.2"
+
+globals@^9.18.0:
+ version "9.18.0"
+ resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a"
+ integrity sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==
+
+globby@^11.0.1:
+ version "11.0.3"
+ resolved "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz"
+ integrity sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==
+ dependencies:
+ array-union "^2.1.0"
+ dir-glob "^3.0.1"
+ fast-glob "^3.1.1"
+ ignore "^5.1.4"
+ merge2 "^1.3.0"
+ slash "^3.0.0"
+
+globby@^11.0.4:
+ version "11.1.0"
+ resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b"
+ integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==
+ dependencies:
+ array-union "^2.1.0"
+ dir-glob "^3.0.1"
+ fast-glob "^3.2.9"
+ ignore "^5.2.0"
+ merge2 "^1.4.1"
+ slash "^3.0.0"
+
+goober@^2.1.1:
+ version "2.1.8"
+ resolved "https://registry.yarnpkg.com/goober/-/goober-2.1.8.tgz#e592c04d093cb38f77b38cfcb012b7811c85765e"
+ integrity sha512-S0C85gCzcfFCMSdjD/CxyQMt1rbf2qEg6hmDzxk2FfD7+7Ogk55m8ZFUMtqNaZM4VVX/qaU9AzSORG+Gf4ZpAQ==
+
+graceful-fs@^4.1.2:
+ version "4.2.6"
+ resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz"
+ integrity sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==
+
+graceful-fs@^4.1.6, graceful-fs@^4.2.4, graceful-fs@^4.2.9:
+ version "4.2.9"
+ resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.9.tgz#041b05df45755e587a24942279b9d113146e1c96"
+ integrity sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==
+
+gzip-size@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-6.0.0.tgz#065367fd50c239c0671cbcbad5be3e2eeb10e462"
+ integrity sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==
+ dependencies:
+ duplexer "^0.1.2"
+
+har-schema@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92"
+ integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=
+
+har-validator@~5.1.3:
+ version "5.1.5"
+ resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.5.tgz#1f0803b9f8cb20c0fa13822df1ecddb36bde1efd"
+ integrity sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==
+ dependencies:
+ ajv "^6.12.3"
+ har-schema "^2.0.0"
+
+has-ansi@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
+ integrity sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=
+ dependencies:
+ ansi-regex "^2.0.0"
+
+has-bigints@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz"
+ integrity sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==
+
+has-flag@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz"
+ integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0=
+
+has-flag@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
+ integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
+
+has-symbols@^1.0.1, has-symbols@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz"
+ integrity sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==
+
+has-symbols@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8"
+ integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==
+
+has-tostringtag@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25"
+ integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==
+ dependencies:
+ has-symbols "^1.0.2"
+
+has-unicode@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9"
+ integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=
+
+has@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.npmjs.org/has/-/has-1.0.3.tgz"
+ integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==
+ dependencies:
+ function-bind "^1.1.1"
+
+hey-listen@^1.0.8:
+ version "1.0.8"
+ resolved "https://registry.yarnpkg.com/hey-listen/-/hey-listen-1.0.8.tgz#8e59561ff724908de1aa924ed6ecc84a56a9aa68"
+ integrity sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==
+
+hoist-non-react-statics@^3.2.0, hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.2:
+ version "3.3.2"
+ resolved "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz"
+ integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==
+ dependencies:
+ react-is "^16.7.0"
+
+hosted-git-info@^2.1.4:
+ version "2.8.9"
+ resolved "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz"
+ integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==
+
+html-escaper@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz"
+ integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==
+
+html-parse-stringify@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-3.0.1.tgz"
+ integrity sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==
+ dependencies:
+ void-elements "3.1.0"
+
+htmlparser2@^3.9.1:
+ version "3.10.1"
+ resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.10.1.tgz#bd679dc3f59897b6a34bb10749c855bb53a9392f"
+ integrity sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==
+ dependencies:
+ domelementtype "^1.3.1"
+ domhandler "^2.3.0"
+ domutils "^1.5.1"
+ entities "^1.1.1"
+ inherits "^2.0.1"
+ readable-stream "^3.1.1"
+
+htmlparser2@~3.8.1:
+ version "3.8.3"
+ resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.8.3.tgz#996c28b191516a8be86501a7d79757e5c70c1068"
+ integrity sha1-mWwosZFRaovoZQGn15dX5ccMEGg=
+ dependencies:
+ domelementtype "1"
+ domhandler "2.3"
+ domutils "1.5"
+ entities "1.0"
+ readable-stream "1.1"
+
+http-signature@~1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1"
+ integrity sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=
+ dependencies:
+ assert-plus "^1.0.0"
+ jsprim "^1.2.2"
+ sshpk "^1.7.0"
+
[email protected], https-proxy-agent@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz#e2a90542abb68a762e0a0850f6c9edadfd8506b2"
+ integrity sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==
+ dependencies:
+ agent-base "6"
+ debug "4"
+
+hyphenate-style-name@^1.0.2:
+ version "1.0.4"
+ resolved "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz"
+ integrity sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==
+
+i18next-fs-backend@^1.0.7:
+ version "1.1.1"
+ resolved "https://registry.npmjs.org/i18next-fs-backend/-/i18next-fs-backend-1.1.1.tgz"
+ integrity sha512-RFkfy10hNxJqc7MVAp5iAZq0Tum6msBCNebEe3OelOBvrROvzHUPaR8Qe10RQrOGokTm0W4vJGEJzruFkEt+hQ==
+
+i18next@^21.6.12:
+ version "21.6.14"
+ resolved "https://registry.yarnpkg.com/i18next/-/i18next-21.6.14.tgz#2bc199fba7f4da44b5952d7df0a3814a6e5c3943"
+ integrity sha512-XL6WyD+xlwQwbieXRlXhKWoLb/rkch50/rA+vl6untHnJ+aYnkQ0YDZciTWE78PPhOpbi2gR0LTJCJpiAhA+uQ==
+ dependencies:
+ "@babel/runtime" "^7.17.2"
+
+ version "0.0.4"
+ resolved "https://registry.yarnpkg.com/ice-cap/-/ice-cap-0.0.4.tgz#8a6d31ab4cac8d4b56de4fa946df3352561b6e18"
+ integrity sha1-im0xq0ysjUtW3k+pRt8zUlYbbhg=
+ dependencies:
+ cheerio "0.20.0"
+ color-logger "0.0.3"
+
+ieee754@^1.1.13:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
+ integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
+
+ignore@^4.0.6:
+ version "4.0.6"
+ resolved "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz"
+ integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==
+
+ignore@^5.1.4:
+ version "5.1.8"
+ resolved "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz"
+ integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==
+
+ignore@^5.2.0:
+ version "5.2.0"
+ resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a"
+ integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==
+
+immediate@~3.0.5:
+ version "3.0.6"
+ resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b"
+ integrity sha1-nbHb0Pr43m++D13V5Wu2BigN5ps=
+
+import-cwd@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/import-cwd/-/import-cwd-3.0.0.tgz"
+ integrity sha512-4pnzH16plW+hgvRECbDWpQl3cqtvSofHWh44met7ESfZ8UZOWWddm8hEyDTqREJ9RbYHY8gi8DqmaelApoOGMg==
+ dependencies:
+ import-from "^3.0.0"
+
+import-fresh@^3.0.0, import-fresh@^3.2.1:
+ version "3.3.0"
+ resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz"
+ integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==
+ dependencies:
+ parent-module "^1.0.0"
+ resolve-from "^4.0.0"
+
+import-from@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/import-from/-/import-from-3.0.0.tgz"
+ integrity sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ==
+ dependencies:
+ resolve-from "^5.0.0"
+
+imurmurhash@^0.1.4:
+ version "0.1.4"
+ resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz"
+ integrity sha1-khi5srkoojixPcT7a21XbyMUU+o=
+
+inflight@^1.0.4:
+ version "1.0.6"
+ resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz"
+ integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=
+ dependencies:
+ once "^1.3.0"
+ wrappy "1"
+
+inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3:
+ version "2.0.4"
+ resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz"
+ integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
+
+inline-style-prefixer@^6.0.0:
+ version "6.0.1"
+ resolved "https://registry.npmjs.org/inline-style-prefixer/-/inline-style-prefixer-6.0.1.tgz"
+ integrity sha512-AsqazZ8KcRzJ9YPN1wMH2aNM7lkWQ8tSPrW5uDk1ziYwiAPWSZnUsC7lfZq+BDqLqz0B4Pho5wscWcJzVvRzDQ==
+ dependencies:
+ css-in-js-utils "^2.0.0"
+
+internal-slot@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz"
+ integrity sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==
+ dependencies:
+ get-intrinsic "^1.1.0"
+ has "^1.0.3"
+ side-channel "^1.0.4"
+
+invariant@^2.2.2, invariant@^2.2.4:
+ version "2.2.4"
+ resolved "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz"
+ integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
+ dependencies:
+ loose-envify "^1.0.0"
+
+ip@^1.1.5:
+ version "1.1.5"
+ resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a"
+ integrity sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=
+
+is-arrayish@^0.2.1:
+ version "0.2.1"
+ resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz"
+ integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=
+
+is-bigint@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.2.tgz"
+ integrity sha512-0JV5+SOCQkIdzjBK9buARcV804Ddu7A0Qet6sHi3FimE9ne6m4BGQZfRn+NZiXbBk4F4XmHfDZIipLj9pX8dSA==
+
+is-binary-path@~2.1.0:
+ version "2.1.0"
+ resolved "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz"
+ integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
+ dependencies:
+ binary-extensions "^2.0.0"
+
+is-boolean-object@^1.1.0:
+ version "1.1.1"
+ resolved "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.1.tgz"
+ integrity sha512-bXdQWkECBUIAcCkeH1unwJLIpZYaa5VvuygSyS/c2lf719mTKZDU5UdDRlpd01UjADgmW8RfqaP+mRaVPdr/Ng==
+ dependencies:
+ call-bind "^1.0.2"
+
+is-callable@^1.1.4, is-callable@^1.2.3:
+ version "1.2.3"
+ resolved "https://registry.npmjs.org/is-callable/-/is-callable-1.2.3.tgz"
+ integrity sha512-J1DcMe8UYTBSrKezuIUTUwjXsho29693unXM2YhJUTR2txK/eG47bvNa/wipPFmZFgr/N6f1GA66dv0mEyTIyQ==
+
+is-callable@^1.2.4:
+ version "1.2.4"
+ resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945"
+ integrity sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==
+
+is-core-module@^2.2.0:
+ version "2.4.0"
+ resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.4.0.tgz"
+ integrity sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A==
+ dependencies:
+ has "^1.0.3"
+
+is-core-module@^2.8.0, is-core-module@^2.8.1:
+ version "2.8.1"
+ resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz"
+ integrity sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==
+ dependencies:
+ has "^1.0.3"
+
+is-date-object@^1.0.1:
+ version "1.0.4"
+ resolved "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.4.tgz"
+ integrity sha512-/b4ZVsG7Z5XVtIxs/h9W8nvfLgSAyKYdtGWQLbqy6jA1icmgjf8WCoTKgeS4wy5tYaPePouzFMANbnj94c2Z+A==
+
+is-docker@^2.0.0, is-docker@^2.1.1:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa"
+ integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==
+
+is-extglob@^2.1.1:
+ version "2.1.1"
+ resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz"
+ integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=
+
+is-finite@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.1.0.tgz#904135c77fb42c0641d6aa1bcdbc4daa8da082f3"
+ integrity sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w==
+
+is-fullwidth-code-point@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb"
+ integrity sha1-754xOG8DGn8NZDr4L95QxFfvAMs=
+ dependencies:
+ number-is-nan "^1.0.0"
+
+is-fullwidth-code-point@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz"
+ integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==
+
+is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1:
+ version "4.0.1"
+ resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz"
+ integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==
+ dependencies:
+ is-extglob "^2.1.1"
+
+is-glob@^4.0.3:
+ version "4.0.3"
+ resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz"
+ integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
+ dependencies:
+ is-extglob "^2.1.1"
+
+is-negative-zero@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.1.tgz"
+ integrity sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w==
+
+is-number-object@^1.0.4:
+ version "1.0.5"
+ resolved "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.5.tgz"
+ integrity sha512-RU0lI/n95pMoUKu9v1BZP5MBcZuNSVJkMkAG2dJqC4z2GlkGUNeH68SuHuBKBD/XFe+LHZ+f9BKkLET60Niedw==
+
+is-number@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz"
+ integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
+
+is-regex@^1.1.2:
+ version "1.1.3"
+ resolved "https://registry.npmjs.org/is-regex/-/is-regex-1.1.3.tgz"
+ integrity sha512-qSVXFz28HM7y+IWX6vLCsexdlvzT1PJNFSBuaQLQ5o0IEw8UDYW6/2+eCMVyIsbM8CNLX2a/QWmSpyxYEHY7CQ==
+ dependencies:
+ call-bind "^1.0.2"
+ has-symbols "^1.0.2"
+
+is-regex@^1.1.4:
+ version "1.1.4"
+ resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958"
+ integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==
+ dependencies:
+ call-bind "^1.0.2"
+ has-tostringtag "^1.0.0"
+
+is-shared-array-buffer@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz#97b0c85fbdacb59c9c446fe653b82cf2b5b7cfe6"
+ integrity sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA==
+
+is-string@^1.0.5:
+ version "1.0.6"
+ resolved "https://registry.npmjs.org/is-string/-/is-string-1.0.6.tgz"
+ integrity sha512-2gdzbKUuqtQ3lYNrUTQYoClPhm7oQu4UdpSZMp1/DGgkHBT8E2Z1l0yMdb6D4zNAxwDiMv8MdulKROJGNl0Q0w==
+
+is-string@^1.0.7:
+ version "1.0.7"
+ resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd"
+ integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==
+ dependencies:
+ has-tostringtag "^1.0.0"
+
+is-symbol@^1.0.2, is-symbol@^1.0.3:
+ version "1.0.4"
+ resolved "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz"
+ integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==
+ dependencies:
+ has-symbols "^1.0.2"
+
+is-typedarray@~1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
+ integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=
+
+is-weakref@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2"
+ integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==
+ dependencies:
+ call-bind "^1.0.2"
+
+is-wsl@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271"
+ integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==
+ dependencies:
+ is-docker "^2.0.0"
+
+ version "0.0.1"
+ resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
+ integrity sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=
+
+isarray@^1.0.0, isarray@~1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"
+ integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=
+
+isexe@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz"
+ integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=
+
+isobject@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz"
+ integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8=
+
+isstream@~0.1.2:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
+ integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=
+
+jest-diff@^27.2.5, jest-diff@^27.5.1:
+ version "27.5.1"
+ resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.5.1.tgz#a07f5011ac9e6643cf8a95a462b7b1ecf6680def"
+ integrity sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==
+ dependencies:
+ chalk "^4.0.0"
+ diff-sequences "^27.5.1"
+ jest-get-type "^27.5.1"
+ pretty-format "^27.5.1"
+
+jest-get-type@^27.0.6, jest-get-type@^27.5.1:
+ version "27.5.1"
+ resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-27.5.1.tgz#3cd613c507b0f7ace013df407a1c1cd578bcb4f1"
+ integrity sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==
+
+ version "27.2.5"
+ resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.2.5.tgz#4684faaa8eb32bf15e6edaead6834031897e2980"
+ integrity sha512-qNR/kh6bz0Dyv3m68Ck2g1fLW5KlSOUNcFQh87VXHZwWc/gY6XwnKofx76Qytz3x5LDWT09/2+yXndTkaG4aWg==
+ dependencies:
+ chalk "^4.0.0"
+ jest-diff "^27.2.5"
+ jest-get-type "^27.0.6"
+ pretty-format "^27.2.5"
+
+jest-matcher-utils@^27.2.5:
+ version "27.5.1"
+ resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz#9c0cdbda8245bc22d2331729d1091308b40cf8ab"
+ integrity sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==
+ dependencies:
+ chalk "^4.0.0"
+ jest-diff "^27.5.1"
+ jest-get-type "^27.5.1"
+ pretty-format "^27.5.1"
+
+jest-message-util@^27.2.5:
+ version "27.5.1"
+ resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-27.5.1.tgz#bdda72806da10d9ed6425e12afff38cd1458b6cf"
+ integrity sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==
+ dependencies:
+ "@babel/code-frame" "^7.12.13"
+ "@jest/types" "^27.5.1"
+ "@types/stack-utils" "^2.0.0"
+ chalk "^4.0.0"
+ graceful-fs "^4.2.9"
+ micromatch "^4.0.4"
+ pretty-format "^27.5.1"
+ slash "^3.0.0"
+ stack-utils "^2.0.3"
+
+jest-regex-util@^27.0.6:
+ version "27.5.1"
+ resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-27.5.1.tgz#4da143f7e9fd1e542d4aa69617b38e4a78365b95"
+ integrity sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==
+
+joi@^17.6.0:
+ version "17.6.0"
+ resolved "https://registry.yarnpkg.com/joi/-/joi-17.6.0.tgz#0bb54f2f006c09a96e75ce687957bd04290054b2"
+ integrity sha512-OX5dG6DTbcr/kbMFj0KGYxuew69HPcAE3K/sZpEV2nP6e/j/C0HV+HNiBPCASxdx5T7DMoa0s8UeHWMnb6n2zw==
+ dependencies:
+ "@hapi/hoek" "^9.0.0"
+ "@hapi/topo" "^5.0.0"
+ "@sideway/address" "^4.1.3"
+ "@sideway/formula" "^3.0.0"
+ "@sideway/pinpoint" "^2.0.0"
+
+jose@^4.5.1:
+ version "4.5.1"
+ resolved "https://registry.yarnpkg.com/jose/-/jose-4.5.1.tgz#1531d491fafe567338fd517f118293cce27aa0aa"
+ integrity sha512-uhjuzZjKGKmi5DVJ/eghN8hJklLhwZRLRAaaG9MkkMAdfRYlHvZ10i4z/4WSN1hSTMffCet+k7iRHvbdGwmZPw==
+
+ version "0.4.3"
+ resolved "https://registry.yarnpkg.com/jpeg-js/-/jpeg-js-0.4.3.tgz#6158e09f1983ad773813704be80680550eff977b"
+ integrity sha512-ru1HWKek8octvUHFHvE5ZzQ1yAsJmIvRdGWvSoKV52XKyuyYA437QWDttXT8eZXDSbuMpHlLzPDZUPd6idIz+Q==
+
+js-cookie@^2.2.1:
+ version "2.2.1"
+ resolved "https://registry.npmjs.org/js-cookie/-/js-cookie-2.2.1.tgz"
+ integrity sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ==
+
+js-cookie@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/js-cookie/-/js-cookie-3.0.1.tgz#9e39b4c6c2f56563708d7d31f6f5f21873a92414"
+ integrity sha512-+0rgsUXZu4ncpPxRL+lNEptWMOWl9etvPHc/koSRp6MPwpRYAhmk0dUG00J4bxVV3r9uUzfo24wW0knS07SKSw==
+
+ version "0.8.0"
+ resolved "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz"
+ integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==
+
+"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz"
+ integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
+
+js-tokens@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
+ integrity sha1-mGbfOVECEw449/mWvOtlRDIJwls=
+
+js-yaml@^3.13.1:
+ version "3.14.1"
+ resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz"
+ integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==
+ dependencies:
+ argparse "^1.0.7"
+ esprima "^4.0.0"
+
+jsbn@~0.1.0:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513"
+ integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM=
+
+jsdom@^7.0.2:
+ version "7.2.2"
+ resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-7.2.2.tgz#40b402770c2bda23469096bee91ab675e3b1fc6e"
+ integrity sha1-QLQCdwwr2iNGkJa+6Rq2deOx/G4=
+ dependencies:
+ abab "^1.0.0"
+ acorn "^2.4.0"
+ acorn-globals "^1.0.4"
+ cssom ">= 0.3.0 < 0.4.0"
+ cssstyle ">= 0.2.29 < 0.3.0"
+ escodegen "^1.6.1"
+ nwmatcher ">= 1.3.7 < 2.0.0"
+ parse5 "^1.5.1"
+ request "^2.55.0"
+ sax "^1.1.4"
+ symbol-tree ">= 3.1.0 < 4.0.0"
+ tough-cookie "^2.2.0"
+ webidl-conversions "^2.0.0"
+ whatwg-url-compat "~0.6.5"
+ xml-name-validator ">= 2.0.1 < 3.0.0"
+
+jsesc@^1.3.0:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b"
+ integrity sha1-RsP+yMGJKxKwgz25vHYiF226s0s=
+
+jsesc@^2.5.1:
+ version "2.5.2"
+ resolved "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz"
+ integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==
+
+jsesc@~0.5.0:
+ version "0.5.0"
+ resolved "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz"
+ integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=
+
+json-parse-even-better-errors@^2.3.0:
+ version "2.3.1"
+ resolved "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz"
+ integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==
+
+json-schema-traverse@^0.4.1:
+ version "0.4.1"
+ resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz"
+ integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==
+
+json-schema-traverse@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz"
+ integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==
+
+ version "0.4.0"
+ resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5"
+ integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==
+
+json-stable-stringify-without-jsonify@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz"
+ integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=
+
+json-stringify-safe@~5.0.1:
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
+ integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=
+
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c"
+ integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==
+
+json5@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz"
+ integrity sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==
+ dependencies:
+ minimist "^1.2.0"
+
+json5@^2.1.2:
+ version "2.2.0"
+ resolved "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz"
+ integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==
+ dependencies:
+ minimist "^1.2.5"
+
+jsonfile@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
+ integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=
+ optionalDependencies:
+ graceful-fs "^4.1.6"
+
+jsprim@^1.2.2:
+ version "1.4.2"
+ resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.2.tgz#712c65533a15c878ba59e9ed5f0e26d5b77c5feb"
+ integrity sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==
+ dependencies:
+ assert-plus "1.0.0"
+ extsprintf "1.3.0"
+ json-schema "0.4.0"
+ verror "1.10.0"
+
+"jsx-ast-utils@^2.4.1 || ^3.0.0":
+ version "3.2.0"
+ resolved "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.2.0.tgz"
+ integrity sha512-EIsmt3O3ljsU6sot/J4E1zDRxfBNrhjyf/OKjlydwgEimQuznlM4Wv7U+ueONJMyEn1WRE0K8dhi3dVAXYT24Q==
+ dependencies:
+ array-includes "^3.1.2"
+ object.assign "^4.1.2"
+
+jsx-ast-utils@^3.2.1:
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.2.1.tgz#720b97bfe7d901b927d87c3773637ae8ea48781b"
+ integrity sha512-uP5vu8xfy2F9A6LGC22KO7e2/vGTS1MhP+18f++ZNlf0Ohaxbc9nIEwHAsejlJKyzfZzU5UIhe5ItYkitcZnZA==
+ dependencies:
+ array-includes "^3.1.3"
+ object.assign "^4.1.2"
+
+language-subtag-registry@~0.3.2:
+ version "0.3.21"
+ resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.21.tgz#04ac218bea46f04cb039084602c6da9e788dd45a"
+ integrity sha512-L0IqwlIXjilBVVYKFT37X9Ih11Um5NEl9cbJIuU/SwP/zEEAbBPOnEeeuxVMf45ydWQRDQN3Nqc96OgbH1K+Pg==
+
+language-tags@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/language-tags/-/language-tags-1.0.5.tgz#d321dbc4da30ba8bf3024e040fa5c14661f9193a"
+ integrity sha1-0yHbxNowuovzAk4ED6XBRmH5GTo=
+ dependencies:
+ language-subtag-registry "~0.3.2"
+
+levn@^0.4.1:
+ version "0.4.1"
+ resolved "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz"
+ integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==
+ dependencies:
+ prelude-ls "^1.2.1"
+ type-check "~0.4.0"
+
+levn@~0.3.0:
+ version "0.3.0"
+ resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee"
+ integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=
+ dependencies:
+ prelude-ls "~1.1.2"
+ type-check "~0.3.2"
+
+ version "3.1.1"
+ resolved "https://registry.yarnpkg.com/lie/-/lie-3.1.1.tgz#9a436b2cc7746ca59de7a41fa469b3efb76bd87e"
+ integrity sha1-mkNrLMd0bKWd56QfpGmz77dr2H4=
+ dependencies:
+ immediate "~3.0.5"
+
+lilconfig@^2.0.3:
+ version "2.0.4"
+ resolved "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.4.tgz"
+ integrity sha512-bfTIN7lEsiooCocSISTWXkiWJkRqtL9wYtYy+8EK3Y41qh3mpwPU0ycTOgjdY9ErwXCc8QyrQp82bdL0Xkm9yA==
+
+lines-and-columns@^1.1.6:
+ version "1.1.6"
+ resolved "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz"
+ integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=
+
+load-json-file@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz"
+ integrity sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=
+ dependencies:
+ graceful-fs "^4.1.2"
+ parse-json "^2.2.0"
+ pify "^2.0.0"
+ strip-bom "^3.0.0"
+
+localforage@^1.8.1:
+ version "1.10.0"
+ resolved "https://registry.yarnpkg.com/localforage/-/localforage-1.10.0.tgz#5c465dc5f62b2807c3a84c0c6a1b1b3212781dd4"
+ integrity sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==
+ dependencies:
+ lie "3.1.1"
+
+locate-path@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz"
+ integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=
+ dependencies:
+ p-locate "^2.0.0"
+ path-exists "^3.0.0"
+
+lodash-es@^4.17.11, lodash-es@^4.17.20:
+ version "4.17.21"
+ resolved "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz"
+ integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==
+
+lodash.castarray@^4.4.0:
+ version "4.4.0"
+ resolved "https://registry.yarnpkg.com/lodash.castarray/-/lodash.castarray-4.4.0.tgz#c02513515e309daddd4c24c60cfddcf5976d9115"
+ integrity sha1-wCUTUV4wna3dTCTGDP3c9ZdtkRU=
+
+lodash.clonedeep@^4.5.0:
+ version "4.5.0"
+ resolved "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz"
+ integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=
+
+lodash.debounce@^4.0.8:
+ version "4.0.8"
+ resolved "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz"
+ integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168=
+
+lodash.isplainobject@^4.0.6:
+ version "4.0.6"
+ resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb"
+ integrity sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=
+
+lodash.merge@^4.6.2:
+ version "4.6.2"
+ resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
+ integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
+
+lodash.truncate@^4.4.2:
+ version "4.4.2"
+ resolved "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz"
+ integrity sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=
+
+"lodash@^3.0.1 || ^2.0.0":
+ version "3.10.1"
+ resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
+ integrity sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=
+
+lodash@^4.1.0, lodash@^4.15.0, lodash@^4.17.11, lodash@^4.17.15, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4:
+ version "4.17.21"
+ resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz"
+ integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
+
+loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0:
+ version "1.4.0"
+ resolved "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz"
+ integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
+ dependencies:
+ js-tokens "^3.0.0 || ^4.0.0"
+
+lru-cache@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz"
+ integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==
+ dependencies:
+ yallist "^4.0.0"
+
+lru_map@^0.3.3:
+ version "0.3.3"
+ resolved "https://registry.yarnpkg.com/lru_map/-/lru_map-0.3.3.tgz#b5c8351b9464cbd750335a79650a0ec0e56118dd"
+ integrity sha1-tcg1G5Rky9dQM1p5ZQoOwOVhGN0=
+
+ version "0.3.19"
+ resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.19.tgz#5d47f709c4c9fc3c216b6d46127280f40b39d790"
+ integrity sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg==
+
+match-sorter@^6.0.2:
+ version "6.3.1"
+ resolved "https://registry.npmjs.org/match-sorter/-/match-sorter-6.3.1.tgz"
+ integrity sha512-mxybbo3pPNuA+ZuCUhm5bwNkXrJTbsk5VWbR5wiwz/GC6LIiegBGn2w3O08UG/jdbYLinw51fSQ5xNU1U3MgBw==
+ dependencies:
+ "@babel/runtime" "^7.12.5"
+ remove-accents "0.4.2"
+
+ version "2.0.14"
+ resolved "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz"
+ integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==
+
+memoize-one@^5.1.1:
+ version "5.2.1"
+ resolved "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz"
+ integrity sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==
+
+memory-pager@^1.0.2:
+ version "1.5.0"
+ resolved "https://registry.yarnpkg.com/memory-pager/-/memory-pager-1.5.0.tgz#d8751655d22d384682741c972f2c3d6dfa3e66b5"
+ integrity sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==
+
+merge2@^1.3.0, merge2@^1.4.1:
+ version "1.4.1"
+ resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz"
+ integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==
+
+micromatch@^4.0.2, micromatch@^4.0.4:
+ version "4.0.4"
+ resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz"
+ integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==
+ dependencies:
+ braces "^3.0.1"
+ picomatch "^2.2.3"
+
+ version "0.2.0"
+ resolved "https://registry.npmjs.org/microseconds/-/microseconds-0.2.0.tgz"
+ integrity sha512-n7DHHMjR1avBbSpsTBj6fmMGh2AGrifVV4e+WYc3Q9lO+xnSZ3NyhcBND3vzzatt05LFhoKFRxrIyklmLlUtyA==
+
+ version "1.51.0"
+ resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.51.0.tgz#d9ff62451859b18342d960850dc3cfb77e63fb0c"
+ integrity sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==
+
+mime-types@^2.1.12, mime-types@~2.1.19:
+ version "2.1.34"
+ resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.34.tgz#5a712f9ec1503511a945803640fafe09d3793c24"
+ integrity sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==
+ dependencies:
+ mime-db "1.51.0"
+
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/mime/-/mime-3.0.0.tgz#b374550dca3a0c18443b0c950a6a58f1931cf7a7"
+ integrity sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==
+
+mime@^1.2.9:
+ version "1.6.0"
+ resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
+ integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==
+
+mini-svg-data-uri@^1.2.3:
+ version "1.4.3"
+ resolved "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.3.tgz"
+ integrity sha512-gSfqpMRC8IxghvMcxzzmMnWpXAChSA+vy4cia33RgerMS8Fex95akUyQZPbxJJmeBGiGmK7n/1OpUX8ksRjIdA==
+
[email protected], minimatch@^3.0.4:
+ version "3.0.4"
+ resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz"
+ integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
+ dependencies:
+ brace-expansion "^1.1.7"
+
+minimatch@^3.1.2:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
+ integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
+ dependencies:
+ brace-expansion "^1.1.7"
+
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
+ integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=
+
+minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5:
+ version "1.2.5"
+ resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz"
+ integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
+
+minimist@^1.2.6:
+ version "1.2.6"
+ resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
+ integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
+
+mkdirp@^0.5.5:
+ version "0.5.5"
+ resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def"
+ integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==
+ dependencies:
+ minimist "^1.2.5"
+
+mongodb-connection-string-url@^2.5.2:
+ version "2.5.2"
+ resolved "https://registry.yarnpkg.com/mongodb-connection-string-url/-/mongodb-connection-string-url-2.5.2.tgz#f075c8d529e8d3916386018b8a396aed4f16e5ed"
+ integrity sha512-tWDyIG8cQlI5k3skB6ywaEA5F9f5OntrKKsT/Lteub2zgwSUlhqEN2inGgBTm8bpYJf8QYBdA/5naz65XDpczA==
+ dependencies:
+ "@types/whatwg-url" "^8.2.1"
+ whatwg-url "^11.0.0"
+
+mongodb@^4.5.0:
+ version "4.5.0"
+ resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-4.5.0.tgz#d74c2008567b606dccef220f62a44cd7b934eb92"
+ integrity sha512-A2l8MjEpKojnhbCM0MK3+UOGUSGvTNNSv7AkP1fsT7tkambrkkqN/5F2y+PhzsV0Nbv58u04TETpkaSEdI2zKA==
+ dependencies:
+ bson "^4.6.2"
+ denque "^2.0.1"
+ mongodb-connection-string-url "^2.5.2"
+ socks "^2.6.2"
+ optionalDependencies:
+ saslprep "^1.0.3"
+
+mrmime@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/mrmime/-/mrmime-1.0.0.tgz#14d387f0585a5233d291baba339b063752a2398b"
+ integrity sha512-a70zx7zFfVO7XpnQ2IX1Myh9yY4UYvfld/dikWRnsXxbyvMcfz+u6UfgNAtH+k2QqtJuzVpv6eLTx1G2+WKZbQ==
+
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz"
+ integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=
+
+ version "2.1.2"
+ resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
+ integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
+
[email protected], ms@^2.1.1:
+ version "2.1.3"
+ resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
+ integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
+
+nano-css@^5.3.1:
+ version "5.3.4"
+ resolved "https://registry.npmjs.org/nano-css/-/nano-css-5.3.4.tgz"
+ integrity sha512-wfcviJB6NOxDIDfr7RFn/GlaN7I/Bhe4d39ZRCJ3xvZX60LVe2qZ+rDqM49nm4YT81gAjzS+ZklhKP/Gnfnubg==
+ dependencies:
+ css-tree "^1.1.2"
+ csstype "^3.0.6"
+ fastest-stable-stringify "^2.0.2"
+ inline-style-prefixer "^6.0.0"
+ rtl-css-js "^1.14.0"
+ sourcemap-codec "^1.4.8"
+ stacktrace-js "^2.0.2"
+ stylis "^4.0.6"
+
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/nano-time/-/nano-time-1.0.0.tgz"
+ integrity sha1-sFVPaa2J4i0JB/ehKwmTpdlhN+8=
+ dependencies:
+ big-integer "^1.6.16"
+
+nanoid@^3.1.30:
+ version "3.1.30"
+ resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.1.30.tgz"
+ integrity sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==
+
+nanoid@^3.2.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.2.0.tgz#62667522da6673971cca916a6d3eff3f415ff80c"
+ integrity sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA==
+
+natural-compare@^1.4.0:
+ version "1.4.0"
+ resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz"
+ integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=
+
+next-i18next@^10.5.0:
+ version "10.5.0"
+ resolved "https://registry.yarnpkg.com/next-i18next/-/next-i18next-10.5.0.tgz#cf9f5f1cb01cc5e900807630bcf01ac3b3d58f28"
+ integrity sha512-+Xj/v5gqpEUBKKAaFCZ76+Ps6OGAaIgGowJTF67wTcmIQbHrcHMPjHwPTbnpXy7uHrH8os7i4eAfRENAv/6xwg==
+ dependencies:
+ "@babel/runtime" "^7.13.17"
+ "@types/hoist-non-react-statics" "^3.3.1"
+ core-js "^3"
+ hoist-non-react-statics "^3.2.0"
+ i18next "^21.6.12"
+ i18next-fs-backend "^1.0.7"
+ react-i18next "^11.15.5"
+
+next-plausible@^3.1.9:
+ version "3.1.9"
+ resolved "https://registry.yarnpkg.com/next-plausible/-/next-plausible-3.1.9.tgz#4795df2e83a6ca14495d2fa0d31a92649c42425f"
+ integrity sha512-6Ro6lVnuXAtqbbBQfuKuu0cpZHWWvJWbOE1G+Rx6i42T6lLYtbQzbu09Cutv3vc/wD/4ySHzJkuTnxsqnlArGA==
+
+next@^12.1.4:
+ version "12.1.4"
+ resolved "https://registry.yarnpkg.com/next/-/next-12.1.4.tgz#597a9bdec7aec778b442c4f6d41afd2c64a54b23"
+ integrity sha512-DA4g97BM4Z0nKtDvCTm58RxdvoQyYzeg0AeVbh0N4Y/D8ELrNu47lQeEgRGF8hV4eQ+Sal90zxrJQQG/mPQ8CQ==
+ dependencies:
+ "@next/env" "12.1.4"
+ caniuse-lite "^1.0.30001283"
+ postcss "8.4.5"
+ styled-jsx "5.0.1"
+ optionalDependencies:
+ "@next/swc-android-arm-eabi" "12.1.4"
+ "@next/swc-android-arm64" "12.1.4"
+ "@next/swc-darwin-arm64" "12.1.4"
+ "@next/swc-darwin-x64" "12.1.4"
+ "@next/swc-linux-arm-gnueabihf" "12.1.4"
+ "@next/swc-linux-arm64-gnu" "12.1.4"
+ "@next/swc-linux-arm64-musl" "12.1.4"
+ "@next/swc-linux-x64-gnu" "12.1.4"
+ "@next/swc-linux-x64-musl" "12.1.4"
+ "@next/swc-win32-arm64-msvc" "12.1.4"
+ "@next/swc-win32-ia32-msvc" "12.1.4"
+ "@next/swc-win32-x64-msvc" "12.1.4"
+
+node-fetch@^2.6.7:
+ version "2.6.7"
+ resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
+ integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
+ dependencies:
+ whatwg-url "^5.0.0"
+
+node-releases@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.1.tgz"
+ integrity sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==
+
+nodemailer-sendgrid-transport@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/nodemailer-sendgrid-transport/-/nodemailer-sendgrid-transport-0.2.0.tgz#a516593bfe3d1f278cfe17060e1db23658a8f4fc"
+ integrity sha1-pRZZO/49HyeM/hcGDh2yNlio9Pw=
+ dependencies:
+ sendgrid "^1.8.0"
+
+nodemailer@^6.7.2:
+ version "6.7.2"
+ resolved "https://registry.yarnpkg.com/nodemailer/-/nodemailer-6.7.2.tgz#44b2ad5f7ed71b7067f7a21c4fedabaec62b85e0"
+ integrity sha512-Dz7zVwlef4k5R71fdmxwR8Q39fiboGbu3xgswkzGwczUfjp873rVxt1O46+Fh0j1ORnAC6L9+heI8uUpO6DT7Q==
+
+normalize-package-data@^2.3.2:
+ version "2.5.0"
+ resolved "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz"
+ integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==
+ dependencies:
+ hosted-git-info "^2.1.4"
+ resolve "^1.10.0"
+ semver "2 || 3 || 4 || 5"
+ validate-npm-package-license "^3.0.1"
+
+normalize-path@^3.0.0, normalize-path@~3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz"
+ integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
+
+normalize-range@^0.1.2:
+ version "0.1.2"
+ resolved "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz"
+ integrity sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=
+
+npmlog@^4.1.2:
+ version "4.1.2"
+ resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b"
+ integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==
+ dependencies:
+ are-we-there-yet "~1.1.2"
+ console-control-strings "~1.1.0"
+ gauge "~2.7.3"
+ set-blocking "~2.0.0"
+
+nth-check@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz"
+ integrity sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==
+ dependencies:
+ boolbase "^1.0.0"
+
+nth-check@~1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c"
+ integrity sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==
+ dependencies:
+ boolbase "~1.0.0"
+
+number-is-nan@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
+ integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=
+
+"nwmatcher@>= 1.3.7 < 2.0.0":
+ version "1.4.4"
+ resolved "https://registry.yarnpkg.com/nwmatcher/-/nwmatcher-1.4.4.tgz#2285631f34a95f0d0395cd900c96ed39b58f346e"
+ integrity sha512-3iuY4N5dhgMpCUrOVnuAdGrgxVqV2cJpM+XNccjR2DKOB1RUP0aA+wGXEiNziG/UKboFyGBIoKOaNlJxx8bciQ==
+
+oauth-sign@~0.9.0:
+ version "0.9.0"
+ resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455"
+ integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==
+
+object-assign@^4.1.0, object-assign@^4.1.1:
+ version "4.1.1"
+ resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz"
+ integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=
+
+object-hash@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.npmjs.org/object-hash/-/object-hash-2.2.0.tgz"
+ integrity sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw==
+
+object-inspect@^1.11.0:
+ version "1.12.0"
+ resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.0.tgz#6e2c120e868fd1fd18cb4f18c31741d0d6e776f0"
+ integrity sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g==
+
+object-inspect@^1.9.0:
+ version "1.10.3"
+ resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.10.3.tgz"
+ integrity sha512-e5mCJlSH7poANfC8z8S9s9S2IN5/4Zb3aZ33f5s8YqoazCFzNLloLU8r5VCG+G7WoqLvAAZoVMcy3tp/3X0Plw==
+
+object-keys@^1.0.12, object-keys@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz"
+ integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==
+
+object.assign@^4.1.0, object.assign@^4.1.2:
+ version "4.1.2"
+ resolved "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz"
+ integrity sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==
+ dependencies:
+ call-bind "^1.0.0"
+ define-properties "^1.1.3"
+ has-symbols "^1.0.1"
+ object-keys "^1.1.1"
+
+object.entries@^1.1.3:
+ version "1.1.3"
+ resolved "https://registry.npmjs.org/object.entries/-/object.entries-1.1.3.tgz"
+ integrity sha512-ym7h7OZebNS96hn5IJeyUmaWhaSM4SVtAPPfNLQEI2MYWCO2egsITb9nab2+i/Pwibx+R0mtn+ltKJXRSeTMGg==
+ dependencies:
+ call-bind "^1.0.0"
+ define-properties "^1.1.3"
+ es-abstract "^1.18.0-next.1"
+ has "^1.0.3"
+
+object.entries@^1.1.5:
+ version "1.1.5"
+ resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861"
+ integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.1"
+
+object.fromentries@^2.0.4:
+ version "2.0.4"
+ resolved "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.4.tgz"
+ integrity sha512-EsFBshs5RUUpQEY1D4q/m59kMfz4YJvxuNCJcv/jWwOJr34EaVnG11ZrZa0UHB3wnzV1wx8m58T4hQL8IuNXlQ==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.18.0-next.2"
+ has "^1.0.3"
+
+object.fromentries@^2.0.5:
+ version "2.0.5"
+ resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251"
+ integrity sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.1"
+
+object.hasown@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.0.tgz#7232ed266f34d197d15cac5880232f7a4790afe5"
+ integrity sha512-MhjYRfj3GBlhSkDHo6QmvgjRLXQ2zndabdf3nX0yTyZK9rPfxb6uRpAac8HXNLy1GpqWtZ81Qh4v3uOls2sRAg==
+ dependencies:
+ define-properties "^1.1.3"
+ es-abstract "^1.19.1"
+
+object.values@^1.1.1, object.values@^1.1.3:
+ version "1.1.3"
+ resolved "https://registry.npmjs.org/object.values/-/object.values-1.1.3.tgz"
+ integrity sha512-nkF6PfDB9alkOUxpf1HNm/QlkeW3SReqL5WXeBLpEJJnlPSvRaDQpW3gQTksTN3fgJX4hL42RzKyOin6ff3tyw==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.18.0-next.2"
+ has "^1.0.3"
+
+object.values@^1.1.5:
+ version "1.1.5"
+ resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac"
+ integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.1"
+
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/oblivious-set/-/oblivious-set-1.0.0.tgz"
+ integrity sha512-z+pI07qxo4c2CulUHCDf9lcqDlMSo72N/4rLUpRXf6fu+q8vjt8y0xS+Tlf8NTJDdTXHbdeO1n3MlbctwEoXZw==
+
+once@^1.3.0, once@^1.3.1, once@^1.4.0:
+ version "1.4.0"
+ resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz"
+ integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E=
+ dependencies:
+ wrappy "1"
+
+ version "8.4.0"
+ resolved "https://registry.yarnpkg.com/open/-/open-8.4.0.tgz#345321ae18f8138f82565a910fdc6b39e8c244f8"
+ integrity sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==
+ dependencies:
+ define-lazy-prop "^2.0.0"
+ is-docker "^2.1.1"
+ is-wsl "^2.2.0"
+
+opener@^1.5.2:
+ version "1.5.2"
+ resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598"
+ integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==
+
+optionator@^0.8.1:
+ version "0.8.3"
+ resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495"
+ integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==
+ dependencies:
+ deep-is "~0.1.3"
+ fast-levenshtein "~2.0.6"
+ levn "~0.3.0"
+ prelude-ls "~1.1.2"
+ type-check "~0.3.2"
+ word-wrap "~1.2.3"
+
+optionator@^0.9.1:
+ version "0.9.1"
+ resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz"
+ integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==
+ dependencies:
+ deep-is "^0.1.3"
+ fast-levenshtein "^2.0.6"
+ levn "^0.4.1"
+ prelude-ls "^1.2.1"
+ type-check "^0.4.0"
+ word-wrap "^1.2.3"
+
+p-limit@^1.1.0:
+ version "1.3.0"
+ resolved "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz"
+ integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==
+ dependencies:
+ p-try "^1.0.0"
+
+p-locate@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz"
+ integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=
+ dependencies:
+ p-limit "^1.1.0"
+
+p-try@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz"
+ integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=
+
+parent-module@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz"
+ integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==
+ dependencies:
+ callsites "^3.0.0"
+
+parse-json@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz"
+ integrity sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=
+ dependencies:
+ error-ex "^1.2.0"
+
+parse-json@^5.0.0:
+ version "5.2.0"
+ resolved "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz"
+ integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==
+ dependencies:
+ "@babel/code-frame" "^7.0.0"
+ error-ex "^1.3.1"
+ json-parse-even-better-errors "^2.3.0"
+ lines-and-columns "^1.1.6"
+
+parse5@^1.5.1:
+ version "1.5.1"
+ resolved "https://registry.yarnpkg.com/parse5/-/parse5-1.5.1.tgz#9b7f3b0de32be78dc2401b17573ccaf0f6f59d94"
+ integrity sha1-m387DeMr543CQBsXVzzK8Pb1nZQ=
+
+parse5@^3.0.1:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/parse5/-/parse5-3.0.3.tgz#042f792ffdd36851551cf4e9e066b3874ab45b5c"
+ integrity sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==
+ dependencies:
+ "@types/node" "*"
+
+path-exists@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz"
+ integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=
+
+path-is-absolute@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz"
+ integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=
+
+path-key@^3.1.0:
+ version "3.1.1"
+ resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz"
+ integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
+
+path-parse@^1.0.6:
+ version "1.0.6"
+ resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz"
+ integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==
+
+path-parse@^1.0.7:
+ version "1.0.7"
+ resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz"
+ integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
+
+path-type@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz"
+ integrity sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=
+ dependencies:
+ pify "^2.0.0"
+
+path-type@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz"
+ integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
+
+pend@~1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
+ integrity sha1-elfrVQpng/kRUzH89GY9XI4AelA=
+
+performance-now@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
+ integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=
+
+picocolors@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz"
+ integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
+
+picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3:
+ version "2.2.3"
+ resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.2.3.tgz"
+ integrity sha512-KpELjfwcCDUb9PeigTs2mBJzXUPzAuP2oPcA989He8Rte0+YUAjw1JVedDhuTKPkHjSYzMN3npC9luThGYEKdg==
+
+pify@^2.0.0:
+ version "2.3.0"
+ resolved "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz"
+ integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw=
+
+ version "4.0.4"
+ resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.4.tgz#07df81e61028e402735cdd49db701e4885b4e6e6"
+ integrity sha512-ZIrVPH+A52Dw84R0L3/VS9Op04PuQ2SEoJL6bkshmiTic/HldyW9Tf7oH5mhJZBK7NmDx27vSMrYEXPXclpDKw==
+
+ version "5.2.1"
+ resolved "https://registry.yarnpkg.com/pixelmatch/-/pixelmatch-5.2.1.tgz#9e4e4f4aa59648208a31310306a5bed5522b0d65"
+ integrity sha512-WjcAdYSnKrrdDdqTcVEY7aB7UhhwjYQKYhHiBXdJef0MOaQeYpUdQ+iVyBLa5YBKS8MPVPPMX7rpOByISLpeEQ==
+ dependencies:
+ pngjs "^4.0.1"
+
+pkg-dir@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz"
+ integrity sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=
+ dependencies:
+ find-up "^2.1.0"
+
+ version "1.20.1"
+ resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.20.1.tgz#2d892964dd3ddc93f6e185be4b59621f3a339d4c"
+ integrity sha512-A8ZsZ09gaSbxP0UijoLyzp3LJc0kWMxDooLPi+mm4/5iYnTbd6PF5nKjoFw1a7KwjZIEgdhJduah4BcUIh+IPA==
+ dependencies:
+ colors "1.4.0"
+ commander "8.3.0"
+ debug "4.3.3"
+ extract-zip "2.0.1"
+ https-proxy-agent "5.0.0"
+ jpeg-js "0.4.3"
+ mime "3.0.0"
+ pixelmatch "5.2.1"
+ pngjs "6.0.0"
+ progress "2.0.3"
+ proper-lockfile "4.1.2"
+ proxy-from-env "1.1.0"
+ rimraf "3.0.2"
+ socks-proxy-agent "6.1.1"
+ stack-utils "2.0.5"
+ ws "8.4.2"
+ yauzl "2.10.0"
+ yazl "2.5.1"
+
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-6.0.0.tgz#ca9e5d2aa48db0228a52c419c3308e87720da821"
+ integrity sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==
+
+pngjs@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-4.0.1.tgz#f803869bb2fc1bfe1bf99aa4ec21c108117cfdbe"
+ integrity sha512-rf5+2/ioHeQxR6IxuYNYGFytUyG3lma/WW1nsmjeHlWwtb2aByla6dkVc8pmJ9nplzkTA0q2xx7mMWrOTqT4Gg==
+
+ version "11.0.3"
+ resolved "https://registry.yarnpkg.com/popmotion/-/popmotion-11.0.3.tgz#565c5f6590bbcddab7a33a074bb2ba97e24b0cc9"
+ integrity sha512-Y55FLdj3UxkR7Vl3s7Qr4e9m0onSnP8W7d/xQLsoJM40vs6UKHFdygs6SWryasTZYqugMjm3BepCF4CWXDiHgA==
+ dependencies:
+ framesync "6.0.1"
+ hey-listen "^1.0.8"
+ style-value-types "5.0.0"
+ tslib "^2.1.0"
+
+postcss-js@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.0.tgz"
+ integrity sha512-77QESFBwgX4irogGVPgQ5s07vLvFqWr228qZY+w6lW599cRlK/HmnlivnnVUxkjHnCu4J16PDMHcH+e+2HbvTQ==
+ dependencies:
+ camelcase-css "^2.0.1"
+
+postcss-load-config@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.0.tgz"
+ integrity sha512-ipM8Ds01ZUophjDTQYSVP70slFSYg3T0/zyfII5vzhN6V57YSxMgG5syXuwi5VtS8wSf3iL30v0uBdoIVx4Q0g==
+ dependencies:
+ import-cwd "^3.0.0"
+ lilconfig "^2.0.3"
+ yaml "^1.10.2"
+
+ version "5.0.6"
+ resolved "https://registry.npmjs.org/postcss-nested/-/postcss-nested-5.0.6.tgz"
+ integrity sha512-rKqm2Fk0KbA8Vt3AdGN0FB9OBOMDVajMG6ZCf/GoHgdxUJ4sBFp0A/uMIRm+MJUdo33YXEtjqIz8u7DAp8B7DA==
+ dependencies:
+ postcss-selector-parser "^6.0.6"
+
+postcss-selector-parser@^6.0.6:
+ version "6.0.6"
+ resolved "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.6.tgz"
+ integrity sha512-9LXrvaaX3+mcv5xkg5kFwqSzSH1JIObIx51PrndZwlmznwXRfxMddDvo9gve3gVR8ZTKgoFDdWkbRFmEhT4PMg==
+ dependencies:
+ cssesc "^3.0.0"
+ util-deprecate "^1.0.2"
+
+postcss-selector-parser@^6.0.9:
+ version "6.0.9"
+ resolved "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.9.tgz"
+ integrity sha512-UO3SgnZOVTwu4kyLR22UQ1xZh086RyNZppb7lLAKBFK8a32ttG5i87Y/P3+2bRSjZNyJ1B7hfFNo273tKe9YxQ==
+ dependencies:
+ cssesc "^3.0.0"
+ util-deprecate "^1.0.2"
+
+postcss-value-parser@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz"
+ integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
+
+ version "8.4.5"
+ resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.5.tgz"
+ integrity sha512-jBDboWM8qpaqwkMwItqTQTiFikhs/67OYVvblFFTM7MrZjt6yMKd6r2kgXizEbTTljacm4NldIlZnhbjr84QYg==
+ dependencies:
+ nanoid "^3.1.30"
+ picocolors "^1.0.0"
+ source-map-js "^1.0.1"
+
+postcss@^8.4.6:
+ version "8.4.6"
+ resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.6.tgz#c5ff3c3c457a23864f32cb45ac9b741498a09ae1"
+ integrity sha512-OovjwIzs9Te46vlEx7+uXB0PLijpwjXGKXjVGGPIGubGpq7uh5Xgf6D6FiJ/SzJMBosHDp6a2hiXOS97iBXcaA==
+ dependencies:
+ nanoid "^3.2.0"
+ picocolors "^1.0.0"
+ source-map-js "^1.0.2"
+
+prelude-ls@^1.2.1:
+ version "1.2.1"
+ resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz"
+ integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
+
+prelude-ls@~1.1.2:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
+ integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
+
+prettier@^2.3.0:
+ version "2.3.0"
+ resolved "https://registry.npmjs.org/prettier/-/prettier-2.3.0.tgz"
+ integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==
+
+pretty-format@^27.2.5, pretty-format@^27.5.1:
+ version "27.5.1"
+ resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e"
+ integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==
+ dependencies:
+ ansi-regex "^5.0.1"
+ ansi-styles "^5.0.0"
+ react-is "^17.0.1"
+
+prisma@^3.11.0:
+ version "3.11.0"
+ resolved "https://registry.yarnpkg.com/prisma/-/prisma-3.11.0.tgz#0e384e9d36785711b579fda60117a2d41f79c72c"
+ integrity sha512-8SdsLPhKR3mOfoo2o73h9mNn3v5kA/RqGA26Sv6qDS78Eh2uepPqt5e8/nwj5EOblYm5HEGuitaXQrOCLb6uTw==
+ dependencies:
+ "@prisma/engines" "3.11.0-48.b371888aaf8f51357c7457d836b86d12da91658b"
+
+process-nextick-args@~2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
+ integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==
+
[email protected], progress@^2.0.0, progress@^2.0.3:
+ version "2.0.3"
+ resolved "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz"
+ integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
+
+prop-types@^15.7.2:
+ version "15.7.2"
+ resolved "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz"
+ integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
+ dependencies:
+ loose-envify "^1.4.0"
+ object-assign "^4.1.1"
+ react-is "^16.8.1"
+
+prop-types@^15.8.1:
+ version "15.8.1"
+ resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
+ integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
+ dependencies:
+ loose-envify "^1.4.0"
+ object-assign "^4.1.1"
+ react-is "^16.13.1"
+
+ version "4.1.2"
+ resolved "https://registry.yarnpkg.com/proper-lockfile/-/proper-lockfile-4.1.2.tgz#c8b9de2af6b2f1601067f98e01ac66baa223141f"
+ integrity sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==
+ dependencies:
+ graceful-fs "^4.2.4"
+ retry "^0.12.0"
+ signal-exit "^3.0.2"
+
[email protected], proxy-from-env@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2"
+ integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
+
+psl@^1.1.28:
+ version "1.8.0"
+ resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24"
+ integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==
+
+pump@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64"
+ integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==
+ dependencies:
+ end-of-stream "^1.1.0"
+ once "^1.3.1"
+
+punycode@^2.1.0, punycode@^2.1.1:
+ version "2.1.1"
+ resolved "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz"
+ integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
+
+qs@~6.5.2:
+ version "6.5.3"
+ resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad"
+ integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==
+
+queue-microtask@^1.2.2:
+ version "1.2.3"
+ resolved "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz"
+ integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
+
+quick-lru@^5.1.1:
+ version "5.1.1"
+ resolved "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz"
+ integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==
+
+react-big-calendar@^0.38.9:
+ version "0.38.9"
+ resolved "https://registry.yarnpkg.com/react-big-calendar/-/react-big-calendar-0.38.9.tgz#71a4fb578ddaaea2f65c664dbdeca0063be7b1f2"
+ integrity sha512-Z0yviu6ah5njVfRZxOwM2qnPRJCVuywk68jtjLr6GcCJj5bzhgc9+rkP/FSgbH6aBIWsvcTWw6kGTg5CClX6Ww==
+ dependencies:
+ "@babel/runtime" "^7.1.5"
+ clsx "^1.0.4"
+ date-arithmetic "^4.1.0"
+ dom-helpers "^5.1.0"
+ invariant "^2.2.4"
+ lodash "^4.17.11"
+ lodash-es "^4.17.11"
+ memoize-one "^5.1.1"
+ prop-types "^15.7.2"
+ react-overlays "^4.1.1"
+ uncontrollable "^7.0.0"
+
+ version "17.0.2"
+ resolved "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz"
+ integrity sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==
+ dependencies:
+ loose-envify "^1.1.0"
+ object-assign "^4.1.1"
+ scheduler "^0.20.2"
+
+react-fast-compare@^3.0.1:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb"
+ integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==
+
+react-github-btn@^1.2.2:
+ version "1.2.2"
+ resolved "https://registry.yarnpkg.com/react-github-btn/-/react-github-btn-1.2.2.tgz#9aab2498ff311b9f9c448a2d2b902d0277037d5c"
+ integrity sha512-X4IcX2qwaLciSa4wcUsrFgF2PcT+ukMbZZRBT50ZvO2HJMyqQJNYNHErCN2R0sgZfSFQHUuUHlGndF15VQUhPA==
+ dependencies:
+ github-buttons "^2.21.1"
+
+react-hook-form@^7.27.0:
+ version "7.27.0"
+ resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.27.0.tgz#2c05e54ca557f71c55f645311ff612ec936c6c7c"
+ integrity sha512-NEh3Qbz1Rg3w95SRZv0kHorHN3frtMKasplznMBr8RkFrE4pVxjd/zo3clnFXpD0FppUVHBMfsTMtTsa6wyQrA==
+
+react-hot-toast@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/react-hot-toast/-/react-hot-toast-2.2.0.tgz#ab6f4caed4214b9534f94bb8cfaaf21b051e62b9"
+ integrity sha512-248rXw13uhf/6TNDVzagX+y7R8J183rp7MwUMNkcrBRyHj/jWOggfXTGlM8zAOuh701WyVW+eUaWG2LeSufX9g==
+ dependencies:
+ goober "^2.1.1"
+
+react-i18next@^11.15.4:
+ version "11.15.4"
+ resolved "https://registry.yarnpkg.com/react-i18next/-/react-i18next-11.15.4.tgz#fe0c792ea93f038548e838cecae3ed4173822937"
+ integrity sha512-jKJNAcVcbPGK+yrTcXhLblgPY16n6NbpZZL3Mk8nswj1v3ayIiUBVDU09SgqnT+DluyQBS97hwSvPU5yVFG0yg==
+ dependencies:
+ "@babel/runtime" "^7.14.5"
+ html-escaper "^2.0.2"
+ html-parse-stringify "^3.0.1"
+
+react-i18next@^11.15.5:
+ version "11.16.1"
+ resolved "https://registry.yarnpkg.com/react-i18next/-/react-i18next-11.16.1.tgz#707e6ce56e97df97a271a2274d401ba8bec4b679"
+ integrity sha512-6Wf/YtPqANloFmnN5ol0ANeweFPzDWGykRq/dk4wU3ZkjWBR3d5iH210gMg8e8AgLQ1Dq7suUIL7WGfu08OehQ==
+ dependencies:
+ "@babel/runtime" "^7.14.5"
+ html-escaper "^2.0.2"
+ html-parse-stringify "^3.0.1"
+
+react-is@^16.13.1, react-is@^16.7.0, react-is@^16.8.1:
+ version "16.13.1"
+ resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz"
+ integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
+
+react-is@^17.0.1:
+ version "17.0.2"
+ resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0"
+ integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==
+
+react-lifecycles-compat@^3.0.4:
+ version "3.0.4"
+ resolved "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz"
+ integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==
+
+react-overlays@^4.1.1:
+ version "4.1.1"
+ resolved "https://registry.npmjs.org/react-overlays/-/react-overlays-4.1.1.tgz"
+ integrity sha512-WtJifh081e6M24KnvTQoNjQEpz7HoLxqt8TwZM7LOYIkYJ8i/Ly1Xi7RVte87ZVnmqQ4PFaFiNHZhSINPSpdBQ==
+ dependencies:
+ "@babel/runtime" "^7.12.1"
+ "@popperjs/core" "^2.5.3"
+ "@restart/hooks" "^0.3.25"
+ "@types/warning" "^3.0.0"
+ dom-helpers "^5.2.0"
+ prop-types "^15.7.2"
+ uncontrollable "^7.0.0"
+ warning "^4.0.3"
+
+react-popper@^2.2.5:
+ version "2.2.5"
+ resolved "https://registry.yarnpkg.com/react-popper/-/react-popper-2.2.5.tgz#1214ef3cec86330a171671a4fbcbeeb65ee58e96"
+ integrity sha512-kxGkS80eQGtLl18+uig1UIf9MKixFSyPxglsgLBxlYnyDf65BiY9B3nZSc6C9XUNDgStROB0fMQlTEz1KxGddw==
+ dependencies:
+ react-fast-compare "^3.0.1"
+ warning "^4.0.2"
+
+react-query@^3.34.12:
+ version "3.34.12"
+ resolved "https://registry.npmjs.org/react-query/-/react-query-3.34.12.tgz"
+ integrity sha512-flDdudQVH4CqE+kNYYYyo4g2Yjek3H/36G3b9bK5oe26jD5gFnx+PPwnq0gayq5z2dcSfr2z4+drvuyeZ3A5QQ==
+ dependencies:
+ "@babel/runtime" "^7.5.5"
+ broadcast-channel "^3.4.1"
+ match-sorter "^6.0.2"
+
+react-universal-interface@^0.6.2:
+ version "0.6.2"
+ resolved "https://registry.npmjs.org/react-universal-interface/-/react-universal-interface-0.6.2.tgz"
+ integrity sha512-dg8yXdcQmvgR13RIlZbTRQOoUrDciFVoSBZILwjE2LFISxZZ8loVJKAkuzswl5js8BHda79bIb2b84ehU8IjXw==
+
+react-use@^17.3.2:
+ version "17.3.2"
+ resolved "https://registry.npmjs.org/react-use/-/react-use-17.3.2.tgz"
+ integrity sha512-bj7OD0/1wL03KyWmzFXAFe425zziuTf7q8olwCYBfOeFHY1qfO1FAMjROQLsLZYwG4Rx63xAfb7XAbBrJsZmEw==
+ dependencies:
+ "@types/js-cookie" "^2.2.6"
+ "@xobotyi/scrollbar-width" "^1.9.5"
+ copy-to-clipboard "^3.3.1"
+ fast-deep-equal "^3.1.3"
+ fast-shallow-equal "^1.0.0"
+ js-cookie "^2.2.1"
+ nano-css "^5.3.1"
+ react-universal-interface "^0.6.2"
+ resize-observer-polyfill "^1.5.1"
+ screenfull "^5.1.0"
+ set-harmonic-interval "^1.0.1"
+ throttle-debounce "^3.0.1"
+ ts-easing "^0.2.0"
+ tslib "^2.1.0"
+
+ version "17.0.2"
+ resolved "https://registry.npmjs.org/react/-/react-17.0.2.tgz"
+ integrity sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==
+ dependencies:
+ loose-envify "^1.1.0"
+ object-assign "^4.1.1"
+
+read-pkg-up@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz"
+ integrity sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=
+ dependencies:
+ find-up "^2.0.0"
+ read-pkg "^2.0.0"
+
+read-pkg@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz"
+ integrity sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=
+ dependencies:
+ load-json-file "^2.0.0"
+ normalize-package-data "^2.3.2"
+ path-type "^2.0.0"
+
+ version "1.1.13"
+ resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.1.13.tgz#f6eef764f514c89e2b9e23146a75ba106756d23e"
+ integrity sha1-9u73ZPUUyJ4rniMUanW6EGdW0j4=
+ dependencies:
+ core-util-is "~1.0.0"
+ inherits "~2.0.1"
+ isarray "0.0.1"
+ string_decoder "~0.10.x"
+
+readable-stream@^2.0.6:
+ version "2.3.7"
+ resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57"
+ integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==
+ dependencies:
+ core-util-is "~1.0.0"
+ inherits "~2.0.3"
+ isarray "~1.0.0"
+ process-nextick-args "~2.0.0"
+ safe-buffer "~5.1.1"
+ string_decoder "~1.1.1"
+ util-deprecate "~1.0.1"
+
+readable-stream@^3.1.1:
+ version "3.6.0"
+ resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198"
+ integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==
+ dependencies:
+ inherits "^2.0.3"
+ string_decoder "^1.1.1"
+ util-deprecate "^1.0.1"
+
+readdirp@~3.6.0:
+ version "3.6.0"
+ resolved "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz"
+ integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
+ dependencies:
+ picomatch "^2.2.1"
+
+regenerate-unicode-properties@^10.0.1:
+ version "10.0.1"
+ resolved "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.0.1.tgz"
+ integrity sha512-vn5DU6yg6h8hP/2OkQo3K7uVILvY4iu0oI4t3HFa81UPkhGJwkRwM10JEc3upjdhHjs/k8GJY1sRBhk5sr69Bw==
+ dependencies:
+ regenerate "^1.4.2"
+
+regenerate@^1.4.2:
+ version "1.4.2"
+ resolved "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz"
+ integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==
+
+regenerator-runtime@^0.11.0:
+ version "0.11.1"
+ resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
+ integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==
+
+regenerator-runtime@^0.13.4:
+ version "0.13.7"
+ resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz"
+ integrity sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==
+
+regenerator-transform@^0.14.2:
+ version "0.14.5"
+ resolved "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz"
+ integrity sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw==
+ dependencies:
+ "@babel/runtime" "^7.8.4"
+
+regexp.prototype.flags@^1.3.1:
+ version "1.3.1"
+ resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.1.tgz"
+ integrity sha512-JiBdRBq91WlY7uRJ0ds7R+dU02i6LKi8r3BuQhNXn+kmeLN+EfHhfjqMRis1zJxnlu88hq/4dx0P2OP3APRTOA==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+
+regexp.prototype.flags@^1.4.1:
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz#b3f4c0059af9e47eca9f3f660e51d81307e72307"
+ integrity sha512-pMR7hBVUUGI7PMA37m2ofIdQCsomVnas+Jn5UPGAHQ+/LlwKm/aTLJHdasmHRzlfeZwHiAOaRSo2rbBDm3nNUQ==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+
+regexpp@^3.0.0, regexpp@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz"
+ integrity sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==
+
+regexpu-core@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.0.1.tgz"
+ integrity sha512-CriEZlrKK9VJw/xQGJpQM5rY88BtuL8DM+AEwvcThHilbxiTAy8vq4iJnd2tqq8wLmjbGZzP7ZcKFjbGkmEFrw==
+ dependencies:
+ regenerate "^1.4.2"
+ regenerate-unicode-properties "^10.0.1"
+ regjsgen "^0.6.0"
+ regjsparser "^0.8.2"
+ unicode-match-property-ecmascript "^2.0.0"
+ unicode-match-property-value-ecmascript "^2.0.0"
+
+regjsgen@^0.6.0:
+ version "0.6.0"
+ resolved "https://registry.npmjs.org/regjsgen/-/regjsgen-0.6.0.tgz"
+ integrity sha512-ozE883Uigtqj3bx7OhL1KNbCzGyW2NQZPl6Hs09WTvCuZD5sTI4JY58bkbQWa/Y9hxIsvJ3M8Nbf7j54IqeZbA==
+
+regjsparser@^0.8.2:
+ version "0.8.4"
+ resolved "https://registry.npmjs.org/regjsparser/-/regjsparser-0.8.4.tgz"
+ integrity sha512-J3LABycON/VNEu3abOviqGHuB/LOtOQj8SKmfP9anY5GfAVw/SPjwzSjxGjbZXIxbGfqTHtJw58C2Li/WkStmA==
+ dependencies:
+ jsesc "~0.5.0"
+
+ version "0.4.2"
+ resolved "https://registry.npmjs.org/remove-accents/-/remove-accents-0.4.2.tgz"
+ integrity sha1-CkPTqq4egNuRngeuJUsoXZ4ce7U=
+
+repeating@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda"
+ integrity sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=
+ dependencies:
+ is-finite "^1.0.0"
+
+request@^2.55.0, request@^2.60.0:
+ version "2.88.2"
+ resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3"
+ integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==
+ dependencies:
+ aws-sign2 "~0.7.0"
+ aws4 "^1.8.0"
+ caseless "~0.12.0"
+ combined-stream "~1.0.6"
+ extend "~3.0.2"
+ forever-agent "~0.6.1"
+ form-data "~2.3.2"
+ har-validator "~5.1.3"
+ http-signature "~1.2.0"
+ is-typedarray "~1.0.0"
+ isstream "~0.1.2"
+ json-stringify-safe "~5.0.1"
+ mime-types "~2.1.19"
+ oauth-sign "~0.9.0"
+ performance-now "^2.1.0"
+ qs "~6.5.2"
+ safe-buffer "^5.1.2"
+ tough-cookie "~2.5.0"
+ tunnel-agent "^0.6.0"
+ uuid "^3.3.2"
+
+require-from-string@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz"
+ integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==
+
+resize-observer-polyfill@^1.5.1:
+ version "1.5.1"
+ resolved "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz"
+ integrity sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==
+
+resolve-from@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz"
+ integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
+
+resolve-from@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz"
+ integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==
+
+resolve@^1.10.0, resolve@^1.13.1, resolve@^1.17.0:
+ version "1.20.0"
+ resolved "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz"
+ integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==
+ dependencies:
+ is-core-module "^2.2.0"
+ path-parse "^1.0.6"
+
+resolve@^1.14.2, resolve@^1.20.0, resolve@^1.22.0:
+ version "1.22.0"
+ resolved "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz"
+ integrity sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==
+ dependencies:
+ is-core-module "^2.8.1"
+ path-parse "^1.0.7"
+ supports-preserve-symlinks-flag "^1.0.0"
+
+resolve@^2.0.0-next.3:
+ version "2.0.0-next.3"
+ resolved "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.3.tgz"
+ integrity sha512-W8LucSynKUIDu9ylraa7ueVZ7hc0uAgJBxVsQSKOXOyle8a93qXhcz+XAXZ8bIq2d6i4Ehddn6Evt+0/UwKk6Q==
+ dependencies:
+ is-core-module "^2.2.0"
+ path-parse "^1.0.6"
+
+retry@^0.12.0:
+ version "0.12.0"
+ resolved "https://registry.yarnpkg.com/retry/-/retry-0.12.0.tgz#1b42a6266a21f07421d1b0b54b7dc167b01c013b"
+ integrity sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=
+
+reusify@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz"
+ integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==
+
[email protected], rimraf@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz"
+ integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
+ dependencies:
+ glob "^7.1.3"
+
+rtl-css-js@^1.14.0:
+ version "1.15.0"
+ resolved "https://registry.npmjs.org/rtl-css-js/-/rtl-css-js-1.15.0.tgz"
+ integrity sha512-99Cu4wNNIhrI10xxUaABHsdDqzalrSRTie4GeCmbGVuehm4oj+fIy8fTzB+16pmKe8Bv9rl+hxIBez6KxExTew==
+ dependencies:
+ "@babel/runtime" "^7.1.2"
+
+run-parallel@^1.1.9:
+ version "1.2.0"
+ resolved "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz"
+ integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==
+ dependencies:
+ queue-microtask "^1.2.2"
+
+rxjs@^7.5.4:
+ version "7.5.5"
+ resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.5.tgz#2ebad89af0f560f460ad5cc4213219e1f7dd4e9f"
+ integrity sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==
+ dependencies:
+ tslib "^2.1.0"
+
+safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@~5.2.0:
+ version "5.2.1"
+ resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
+ integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
+
+safe-buffer@~5.1.0, safe-buffer@~5.1.1:
+ version "5.1.2"
+ resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz"
+ integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==
+
+safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0:
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
+ integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
+
+saslprep@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/saslprep/-/saslprep-1.0.3.tgz#4c02f946b56cf54297e347ba1093e7acac4cf226"
+ integrity sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==
+ dependencies:
+ sparse-bitfield "^3.0.3"
+
+sax@^1.1.4:
+ version "1.2.4"
+ resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
+ integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==
+
+scheduler@^0.20.2:
+ version "0.20.2"
+ resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz"
+ integrity sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==
+ dependencies:
+ loose-envify "^1.1.0"
+ object-assign "^4.1.1"
+
+screenfull@^5.1.0:
+ version "5.2.0"
+ resolved "https://registry.npmjs.org/screenfull/-/screenfull-5.2.0.tgz"
+ integrity sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==
+
+"semver@2 || 3 || 4 || 5":
+ version "5.7.1"
+ resolved "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz"
+ integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
+
+ version "7.0.0"
+ resolved "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz"
+ integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==
+
+semver@^6.1.1, semver@^6.1.2, semver@^6.3.0:
+ version "6.3.0"
+ resolved "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz"
+ integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
+
+semver@^7.2.1, semver@^7.3.2, semver@^7.3.5:
+ version "7.3.5"
+ resolved "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz"
+ integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==
+ dependencies:
+ lru-cache "^6.0.0"
+
+sendgrid@^1.8.0:
+ version "1.9.2"
+ resolved "https://registry.yarnpkg.com/sendgrid/-/sendgrid-1.9.2.tgz#d407e6a206b0a2a6964246dd9c0641c10bf02f19"
+ integrity sha1-1AfmogawoqaWQkbdnAZBwQvwLxk=
+ dependencies:
+ lodash "^3.0.1 || ^2.0.0"
+ mime "^1.2.9"
+ request "^2.60.0"
+ smtpapi "^1.2.0"
+
+set-blocking@~2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
+ integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc=
+
+set-harmonic-interval@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.npmjs.org/set-harmonic-interval/-/set-harmonic-interval-1.0.1.tgz"
+ integrity sha512-AhICkFV84tBP1aWqPwLZqFvAwqEoVA9kxNMniGEUvzOlm4vLmOFLiTT3UZ6bziJTy4bOVpzWGTfSCbmaayGx8g==
+
+shebang-command@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz"
+ integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==
+ dependencies:
+ shebang-regex "^3.0.0"
+
+shebang-regex@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz"
+ integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
+
+side-channel@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz"
+ integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==
+ dependencies:
+ call-bind "^1.0.0"
+ get-intrinsic "^1.0.2"
+ object-inspect "^1.9.0"
+
+signal-exit@^3.0.0, signal-exit@^3.0.2:
+ version "3.0.7"
+ resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9"
+ integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==
+
+sirv@^1.0.7:
+ version "1.0.19"
+ resolved "https://registry.yarnpkg.com/sirv/-/sirv-1.0.19.tgz#1d73979b38c7fe91fcba49c85280daa9c2363b49"
+ integrity sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==
+ dependencies:
+ "@polka/url" "^1.0.0-next.20"
+ mrmime "^1.0.0"
+ totalist "^1.0.0"
+
+slash@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz"
+ integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
+
+slice-ansi@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz"
+ integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==
+ dependencies:
+ ansi-styles "^4.0.0"
+ astral-regex "^2.0.0"
+ is-fullwidth-code-point "^3.0.0"
+
+smart-buffer@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.2.0.tgz#6e1d71fa4f18c05f7d0ff216dd16a481d0e8d9ae"
+ integrity sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==
+
+smoothscroll-polyfill@^0.4.4:
+ version "0.4.4"
+ resolved "https://registry.yarnpkg.com/smoothscroll-polyfill/-/smoothscroll-polyfill-0.4.4.tgz#3a259131dc6930e6ca80003e1cb03b603b69abf8"
+ integrity sha512-TK5ZA9U5RqCwMpfoMq/l1mrH0JAR7y7KRvOBx0n2869aLxch+gT9GhN3yUfjiw+d/DiF1mKo14+hd62JyMmoBg==
+
+smtpapi@^1.2.0:
+ version "1.4.6"
+ resolved "https://registry.yarnpkg.com/smtpapi/-/smtpapi-1.4.6.tgz#188eb1c3b10dff8ebc69a16da052cc71e5bf9168"
+ integrity sha512-OuRhUbaeBwUDl3NQLUS720E/Gx0mC8jzQdSE9Jg1cFmelNsYZ21vM+QPL6vhpXdXr6AHPXokWBwsC5K52BnBGQ==
+ dependencies:
+ chai "^2.3.0"
+ esdoc "^1.0.3"
+ esdoc-coverage-plugin "^1.1.0"
+ esdoc-type-inference-plugin "^1.0.1"
+
+ version "6.1.1"
+ resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-6.1.1.tgz#e664e8f1aaf4e1fb3df945f09e3d94f911137f87"
+ integrity sha512-t8J0kG3csjA4g6FTbsMOWws+7R7vuRC8aQ/wy3/1OWmsgwA68zs/+cExQ0koSitUDXqhufF/YJr9wtNMZHw5Ew==
+ dependencies:
+ agent-base "^6.0.2"
+ debug "^4.3.1"
+ socks "^2.6.1"
+
+socks@^2.6.1, socks@^2.6.2:
+ version "2.6.2"
+ resolved "https://registry.yarnpkg.com/socks/-/socks-2.6.2.tgz#ec042d7960073d40d94268ff3bb727dc685f111a"
+ integrity sha512-zDZhHhZRY9PxRruRMR7kMhnf3I8hDs4S3f9RecfnGxvcBHQcKcIH/oUcEWffsfl1XxdYlA7nnlGbbTvPz9D8gA==
+ dependencies:
+ ip "^1.1.5"
+ smart-buffer "^4.2.0"
+
+source-map-js@^1.0.1, source-map-js@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz"
+ integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
+
+ version "0.4.18"
+ resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f"
+ integrity sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==
+ dependencies:
+ source-map "^0.5.6"
+
+ version "0.5.6"
+ resolved "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz"
+ integrity sha1-dc449SvwczxafwwRjYEzSiu19BI=
+
+source-map@^0.5.0, source-map@^0.5.6, source-map@^0.5.7:
+ version "0.5.7"
+ resolved "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz"
+ integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=
+
+source-map@^0.6.1, source-map@~0.6.1:
+ version "0.6.1"
+ resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz"
+ integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
+
[email protected], sourcemap-codec@^1.4.8:
+ version "1.4.8"
+ resolved "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz"
+ integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==
+
+spacetime@^7.1.2:
+ version "7.1.2"
+ resolved "https://registry.yarnpkg.com/spacetime/-/spacetime-7.1.2.tgz#73a94f0ba7f0c0b2230259b5ccf78dd9fd34cd16"
+ integrity sha512-MUTgK9KU9gMXhZddwe0nlgFnCJXT4RfuIRqyo8VcUexZa94zkxk1WpVv3THgvMFz1+Hq9okoNiGTvj6qBdN4Cg==
+
+sparse-bitfield@^3.0.3:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz#ff4ae6e68656056ba4b3e792ab3334d38273ca11"
+ integrity sha1-/0rm5oZWBWuks+eSqzM004JzyhE=
+ dependencies:
+ memory-pager "^1.0.2"
+
+spdx-correct@^3.0.0:
+ version "3.1.1"
+ resolved "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz"
+ integrity sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==
+ dependencies:
+ spdx-expression-parse "^3.0.0"
+ spdx-license-ids "^3.0.0"
+
+spdx-exceptions@^2.1.0:
+ version "2.3.0"
+ resolved "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz"
+ integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==
+
+spdx-expression-parse@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz"
+ integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==
+ dependencies:
+ spdx-exceptions "^2.1.0"
+ spdx-license-ids "^3.0.0"
+
+spdx-license-ids@^3.0.0:
+ version "3.0.7"
+ resolved "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz"
+ integrity sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ==
+
+sprintf-js@~1.0.2:
+ version "1.0.3"
+ resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz"
+ integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=
+
+sshpk@^1.7.0:
+ version "1.17.0"
+ resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.17.0.tgz#578082d92d4fe612b13007496e543fa0fbcbe4c5"
+ integrity sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==
+ dependencies:
+ asn1 "~0.2.3"
+ assert-plus "^1.0.0"
+ bcrypt-pbkdf "^1.0.0"
+ dashdash "^1.12.0"
+ ecc-jsbn "~0.1.1"
+ getpass "^0.1.1"
+ jsbn "~0.1.0"
+ safer-buffer "^2.0.2"
+ tweetnacl "~0.14.0"
+
+stable@^0.1.8:
+ version "0.1.8"
+ resolved "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz"
+ integrity sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==
+
+stack-generator@^2.0.5:
+ version "2.0.5"
+ resolved "https://registry.npmjs.org/stack-generator/-/stack-generator-2.0.5.tgz"
+ integrity sha512-/t1ebrbHkrLrDuNMdeAcsvynWgoH/i4o8EGGfX7dEYDoTXOYVAkEpFdtshlvabzc6JlJ8Kf9YdFEoz7JkzGN9Q==
+ dependencies:
+ stackframe "^1.1.1"
+
[email protected], stack-utils@^2.0.3:
+ version "2.0.5"
+ resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.5.tgz#d25265fca995154659dbbfba3b49254778d2fdd5"
+ integrity sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA==
+ dependencies:
+ escape-string-regexp "^2.0.0"
+
+stackframe@^1.1.1:
+ version "1.2.0"
+ resolved "https://registry.npmjs.org/stackframe/-/stackframe-1.2.0.tgz"
+ integrity sha512-GrdeshiRmS1YLMYgzF16olf2jJ/IzxXY9lhKOskuVziubpTYcYqyOwYeJKzQkwy7uN0fYSsbsC4RQaXf9LCrYA==
+
+stacktrace-gps@^3.0.4:
+ version "3.0.4"
+ resolved "https://registry.npmjs.org/stacktrace-gps/-/stacktrace-gps-3.0.4.tgz"
+ integrity sha512-qIr8x41yZVSldqdqe6jciXEaSCKw1U8XTXpjDuy0ki/apyTn/r3w9hDAAQOhZdxvsC93H+WwwEu5cq5VemzYeg==
+ dependencies:
+ source-map "0.5.6"
+ stackframe "^1.1.1"
+
+stacktrace-js@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.npmjs.org/stacktrace-js/-/stacktrace-js-2.0.2.tgz"
+ integrity sha512-Je5vBeY4S1r/RnLydLl0TBTi3F2qdfWmYsGvtfZgEI+SCprPppaIhQf5nGcal4gI4cGpCV/duLcAzT1np6sQqg==
+ dependencies:
+ error-stack-parser "^2.0.6"
+ stack-generator "^2.0.5"
+ stacktrace-gps "^3.0.4"
+
+string-width@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
+ integrity sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=
+ dependencies:
+ code-point-at "^1.0.0"
+ is-fullwidth-code-point "^1.0.0"
+ strip-ansi "^3.0.0"
+
+"string-width@^1.0.2 || 2 || 3 || 4":
+ version "4.2.3"
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
+ integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
+ dependencies:
+ emoji-regex "^8.0.0"
+ is-fullwidth-code-point "^3.0.0"
+ strip-ansi "^6.0.1"
+
+string-width@^4.2.0:
+ version "4.2.2"
+ resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz"
+ integrity sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==
+ dependencies:
+ emoji-regex "^8.0.0"
+ is-fullwidth-code-point "^3.0.0"
+ strip-ansi "^6.0.0"
+
+string.prototype.matchall@^4.0.4:
+ version "4.0.4"
+ resolved "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.4.tgz"
+ integrity sha512-pknFIWVachNcyqRfaQSeu/FUfpvJTe4uskUSZ9Wc1RijsPuzbZ8TyYT8WCNnntCjUEqQ3vUHMAfVj2+wLAisPQ==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.18.0-next.2"
+ has-symbols "^1.0.1"
+ internal-slot "^1.0.3"
+ regexp.prototype.flags "^1.3.1"
+ side-channel "^1.0.4"
+
+string.prototype.matchall@^4.0.6:
+ version "4.0.7"
+ resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz#8e6ecb0d8a1fb1fda470d81acecb2dba057a481d"
+ integrity sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+ es-abstract "^1.19.1"
+ get-intrinsic "^1.1.1"
+ has-symbols "^1.0.3"
+ internal-slot "^1.0.3"
+ regexp.prototype.flags "^1.4.1"
+ side-channel "^1.0.4"
+
+string.prototype.trimend@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz"
+ integrity sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+
+string.prototype.trimstart@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz"
+ integrity sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==
+ dependencies:
+ call-bind "^1.0.2"
+ define-properties "^1.1.3"
+
+string_decoder@^1.1.1:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e"
+ integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==
+ dependencies:
+ safe-buffer "~5.2.0"
+
+string_decoder@~0.10.x:
+ version "0.10.31"
+ resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
+ integrity sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=
+
+string_decoder@~1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8"
+ integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==
+ dependencies:
+ safe-buffer "~5.1.0"
+
+strip-ansi@^3.0.0, strip-ansi@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
+ integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=
+ dependencies:
+ ansi-regex "^2.0.0"
+
+strip-ansi@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz"
+ integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==
+ dependencies:
+ ansi-regex "^5.0.0"
+
+strip-ansi@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
+ integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
+ dependencies:
+ ansi-regex "^5.0.1"
+
+strip-bom@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz"
+ integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=
+
+strip-json-comments@^3.1.0, strip-json-comments@^3.1.1:
+ version "3.1.1"
+ resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz"
+ integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
+
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/style-value-types/-/style-value-types-5.0.0.tgz#76c35f0e579843d523187989da866729411fc8ad"
+ integrity sha512-08yq36Ikn4kx4YU6RD7jWEv27v4V+PUsOGa4n/as8Et3CuODMJQ00ENeAVXAeydX4Z2j1XHZF1K2sX4mGl18fA==
+ dependencies:
+ hey-listen "^1.0.8"
+ tslib "^2.1.0"
+
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-5.0.1.tgz#78fecbbad2bf95ce6cd981a08918ce4696f5fc80"
+ integrity sha512-+PIZ/6Uk40mphiQJJI1202b+/dYeTVd9ZnMPR80pgiWbjIwvN2zIp4r9et0BgqBuShh48I0gttPlAXA7WVvBxw==
+
+stylis@^4.0.6:
+ version "4.0.13"
+ resolved "https://registry.npmjs.org/stylis/-/stylis-4.0.13.tgz"
+ integrity sha512-xGPXiFVl4YED9Jh7Euv2V220mriG9u4B2TA6Ybjc1catrstKD2PpIdU3U0RKpkVBC2EhmL/F0sPCr9vrFTNRag==
+
+supports-color@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
+ integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=
+
+supports-color@^5.3.0:
+ version "5.5.0"
+ resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz"
+ integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==
+ dependencies:
+ has-flag "^3.0.0"
+
+supports-color@^7.1.0:
+ version "7.2.0"
+ resolved "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
+ integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==
+ dependencies:
+ has-flag "^4.0.0"
+
+supports-preserve-symlinks-flag@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz"
+ integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
+
+svg-parser@^2.0.2:
+ version "2.0.4"
+ resolved "https://registry.npmjs.org/svg-parser/-/svg-parser-2.0.4.tgz"
+ integrity sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==
+
+svgo@^2.5.0:
+ version "2.8.0"
+ resolved "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz"
+ integrity sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==
+ dependencies:
+ "@trysound/sax" "0.2.0"
+ commander "^7.2.0"
+ css-select "^4.1.3"
+ css-tree "^1.1.3"
+ csso "^4.2.0"
+ picocolors "^1.0.0"
+ stable "^0.1.8"
+
+"symbol-tree@>= 3.1.0 < 4.0.0":
+ version "3.2.4"
+ resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2"
+ integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==
+
+table@^6.0.4:
+ version "6.7.0"
+ resolved "https://registry.npmjs.org/table/-/table-6.7.0.tgz"
+ integrity sha512-SAM+5p6V99gYiiy2gT5ArdzgM1dLDed0nkrWmG6Fry/bUS/m9x83BwpJUOf1Qj/x2qJd+thL6IkIx7qPGRxqBw==
+ dependencies:
+ ajv "^8.0.1"
+ lodash.clonedeep "^4.5.0"
+ lodash.truncate "^4.4.2"
+ slice-ansi "^4.0.0"
+ string-width "^4.2.0"
+ strip-ansi "^6.0.0"
+
+ version "2.7.3"
+ resolved "https://registry.yarnpkg.com/taffydb/-/taffydb-2.7.3.tgz#2ad37169629498fca5bc84243096d3cde0ec3a34"
+ integrity sha1-KtNxaWKUmPylvIQkMJbTzeDsOjQ=
+
+tailwindcss@^3.0.23:
+ version "3.0.23"
+ resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.0.23.tgz#c620521d53a289650872a66adfcb4129d2200d10"
+ integrity sha512-+OZOV9ubyQ6oI2BXEhzw4HrqvgcARY38xv3zKcjnWtMIZstEsXdI9xftd1iB7+RbOnj2HOEzkA0OyB5BaSxPQA==
+ dependencies:
+ arg "^5.0.1"
+ chalk "^4.1.2"
+ chokidar "^3.5.3"
+ color-name "^1.1.4"
+ cosmiconfig "^7.0.1"
+ detective "^5.2.0"
+ didyoumean "^1.2.2"
+ dlv "^1.1.3"
+ fast-glob "^3.2.11"
+ glob-parent "^6.0.2"
+ is-glob "^4.0.3"
+ normalize-path "^3.0.0"
+ object-hash "^2.2.0"
+ postcss "^8.4.6"
+ postcss-js "^4.0.0"
+ postcss-load-config "^3.1.0"
+ postcss-nested "5.0.6"
+ postcss-selector-parser "^6.0.9"
+ postcss-value-parser "^4.2.0"
+ quick-lru "^5.1.1"
+ resolve "^1.22.0"
+
+text-table@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz"
+ integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=
+
+throttle-debounce@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-3.0.1.tgz"
+ integrity sha512-dTEWWNu6JmeVXY0ZYoPuH5cRIwc0MeGbJwah9KUNYSJwommQpCzTySTpEe8Gs1J23aeWEuAobe4Ag7EHVt/LOg==
+
+timezone-soft@^1.3.1:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/timezone-soft/-/timezone-soft-1.3.1.tgz#0e994067cbccc76a9c16b71fd8f2f94394be5b0d"
+ integrity sha512-mphMogFJzQy6UIpl/UgKLSNbhmLtdgbz866TnqJ/CnWnc+7dsNyAe8nPwVdOW3Mf8nT0lA32MW/gYhAl4/RkVg==
+
+to-fast-properties@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47"
+ integrity sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=
+
+to-fast-properties@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz"
+ integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=
+
+to-regex-range@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz"
+ integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==
+ dependencies:
+ is-number "^7.0.0"
+
+toggle-selection@^1.0.6:
+ version "1.0.6"
+ resolved "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz"
+ integrity sha1-bkWxJj8gF/oKzH2J14sVuL932jI=
+
+totalist@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/totalist/-/totalist-1.1.0.tgz#a4d65a3e546517701e3e5c37a47a70ac97fe56df"
+ integrity sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==
+
+tough-cookie@^2.2.0, tough-cookie@~2.5.0:
+ version "2.5.0"
+ resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2"
+ integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==
+ dependencies:
+ psl "^1.1.28"
+ punycode "^2.1.1"
+
+tr46@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/tr46/-/tr46-3.0.0.tgz#555c4e297a950617e8eeddef633c87d4d9d6cbf9"
+ integrity sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==
+ dependencies:
+ punycode "^2.1.1"
+
+tr46@~0.0.1, tr46@~0.0.3:
+ version "0.0.3"
+ resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
+ integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=
+
+trim-right@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003"
+ integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=
+
+ts-easing@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.npmjs.org/ts-easing/-/ts-easing-0.2.0.tgz"
+ integrity sha512-Z86EW+fFFh/IFB1fqQ3/+7Zpf9t2ebOAxNI/V6Wo7r5gqiqtxmgTlQ1qbqQcjLKYeSHPTsEmvlJUDg/EuL0uHQ==
+
+tsconfig-paths@^3.12.0, tsconfig-paths@^3.14.1:
+ version "3.14.1"
+ resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz#ba0734599e8ea36c862798e920bcf163277b137a"
+ integrity sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==
+ dependencies:
+ "@types/json5" "^0.0.29"
+ json5 "^1.0.1"
+ minimist "^1.2.6"
+ strip-bom "^3.0.0"
+
+tsconfig-paths@^3.9.0:
+ version "3.9.0"
+ resolved "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz"
+ integrity sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==
+ dependencies:
+ "@types/json5" "^0.0.29"
+ json5 "^1.0.1"
+ minimist "^1.2.0"
+ strip-bom "^3.0.0"
+
+tslib@^1.8.1, tslib@^1.9.3:
+ version "1.14.1"
+ resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz"
+ integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
+
+tslib@^2.1.0:
+ version "2.3.1"
+ resolved "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz"
+ integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
+
+tsutils@^3.17.1, tsutils@^3.21.0:
+ version "3.21.0"
+ resolved "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz"
+ integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==
+ dependencies:
+ tslib "^1.8.1"
+
+tunnel-agent@^0.6.0:
+ version "0.6.0"
+ resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"
+ integrity sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=
+ dependencies:
+ safe-buffer "^5.0.1"
+
+tweetnacl@^0.14.3, tweetnacl@~0.14.0:
+ version "0.14.5"
+ resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
+ integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=
+
+type-check@^0.4.0, type-check@~0.4.0:
+ version "0.4.0"
+ resolved "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz"
+ integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==
+ dependencies:
+ prelude-ls "^1.2.1"
+
+type-check@~0.3.2:
+ version "0.3.2"
+ resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72"
+ integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=
+ dependencies:
+ prelude-ls "~1.1.2"
+
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-0.1.1.tgz#0ba5ec2a885640e470ea4e8505971900dac58822"
+ integrity sha1-C6XsKohWQORw6k6FBZcZANrFiCI=
+
+type-fest@^0.20.2:
+ version "0.20.2"
+ resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz"
+ integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==
+
+type-fest@^0.8.1:
+ version "0.8.1"
+ resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz"
+ integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==
+
+typescript@^4.5.2:
+ version "4.5.2"
+ resolved "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz"
+ integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==
+
+unbox-primitive@^1.0.0, unbox-primitive@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz"
+ integrity sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==
+ dependencies:
+ function-bind "^1.1.1"
+ has-bigints "^1.0.1"
+ has-symbols "^1.0.2"
+ which-boxed-primitive "^1.0.2"
+
+uncontrollable@^7.0.0:
+ version "7.2.1"
+ resolved "https://registry.npmjs.org/uncontrollable/-/uncontrollable-7.2.1.tgz"
+ integrity sha512-svtcfoTADIB0nT9nltgjujTi7BzVmwjZClOmskKu/E8FW9BXzg9os8OLr4f8Dlnk0rYWJIWr4wv9eKUXiQvQwQ==
+ dependencies:
+ "@babel/runtime" "^7.6.3"
+ "@types/react" ">=16.9.11"
+ invariant "^2.2.4"
+ react-lifecycles-compat "^3.0.4"
+
+unicode-canonical-property-names-ecmascript@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz"
+ integrity sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==
+
+unicode-match-property-ecmascript@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz"
+ integrity sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==
+ dependencies:
+ unicode-canonical-property-names-ecmascript "^2.0.0"
+ unicode-property-aliases-ecmascript "^2.0.0"
+
+unicode-match-property-value-ecmascript@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz"
+ integrity sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==
+
+unicode-property-aliases-ecmascript@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz"
+ integrity sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ==
+
+universalify@^0.1.0:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
+ integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==
+
+ version "2.2.0"
+ resolved "https://registry.npmjs.org/unload/-/unload-2.2.0.tgz"
+ integrity sha512-B60uB5TNBLtN6/LsgAf3udH9saB5p7gqJwcFfbOEZ8BcBHnGwCf6G/TGiEqkRAxX7zAFIUtzdrXQSdL3Q/wqNA==
+ dependencies:
+ "@babel/runtime" "^7.6.2"
+ detect-node "^2.0.4"
+
+uri-js@^4.2.2:
+ version "4.4.1"
+ resolved "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz"
+ integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==
+ dependencies:
+ punycode "^2.1.0"
+
+util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1:
+ version "1.0.2"
+ resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
+ integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=
+
+uuid@^3.3.2:
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
+ integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
+
+v8-compile-cache@^2.0.3:
+ version "2.3.0"
+ resolved "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz"
+ integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==
+
+validate-npm-package-license@^3.0.1:
+ version "3.0.4"
+ resolved "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz"
+ integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==
+ dependencies:
+ spdx-correct "^3.0.0"
+ spdx-expression-parse "^3.0.0"
+
+ version "1.10.0"
+ resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400"
+ integrity sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=
+ dependencies:
+ assert-plus "^1.0.0"
+ core-util-is "1.0.2"
+ extsprintf "^1.2.0"
+
+ version "3.1.0"
+ resolved "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz"
+ integrity sha1-YU9/v42AHwu18GYfWy9XhXUOTwk=
+
+wait-on@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/wait-on/-/wait-on-6.0.1.tgz#16bbc4d1e4ebdd41c5b4e63a2e16dbd1f4e5601e"
+ integrity sha512-zht+KASY3usTY5u2LgaNqn/Cd8MukxLGjdcZxT2ns5QzDmTFc4XoWBgC+C/na+sMRZTuVygQoMYwdcVjHnYIVw==
+ dependencies:
+ axios "^0.25.0"
+ joi "^17.6.0"
+ lodash "^4.17.21"
+ minimist "^1.2.5"
+ rxjs "^7.5.4"
+
+warning@^4.0.2, warning@^4.0.3:
+ version "4.0.3"
+ resolved "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz"
+ integrity sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==
+ dependencies:
+ loose-envify "^1.0.0"
+
+webidl-conversions@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-2.0.1.tgz#3bf8258f7d318c7443c36f2e169402a1a6703506"
+ integrity sha1-O/glj30xjHRDw28uFpQCoaZwNQY=
+
+webidl-conversions@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
+ integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=
+
+webidl-conversions@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-7.0.0.tgz#256b4e1882be7debbf01d05f0aa2039778ea080a"
+ integrity sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==
+
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.3.0.tgz#2f3c0ca9041d5ee47fa418693cf56b4a518b578b"
+ integrity sha512-J3TPm54bPARx6QG8z4cKBszahnUglcv70+N+8gUqv2I5KOFHJbzBiLx+pAp606so0X004fxM7hqRu10MLjJifA==
+ dependencies:
+ acorn "^8.0.4"
+ acorn-walk "^8.0.0"
+ chalk "^4.1.0"
+ commander "^6.2.0"
+ gzip-size "^6.0.0"
+ lodash "^4.17.20"
+ opener "^1.5.2"
+ sirv "^1.0.7"
+ ws "^7.3.1"
+
+whatwg-url-compat@~0.6.5:
+ version "0.6.5"
+ resolved "https://registry.yarnpkg.com/whatwg-url-compat/-/whatwg-url-compat-0.6.5.tgz#00898111af689bb097541cd5a45ca6c8798445bf"
+ integrity sha1-AImBEa9om7CXVBzVpFymyHmERb8=
+ dependencies:
+ tr46 "~0.0.1"
+
+whatwg-url@^11.0.0:
+ version "11.0.0"
+ resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-11.0.0.tgz#0a849eebb5faf2119b901bb76fd795c2848d4018"
+ integrity sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==
+ dependencies:
+ tr46 "^3.0.0"
+ webidl-conversions "^7.0.0"
+
+whatwg-url@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
+ integrity sha1-lmRU6HZUYuN2RNNib2dCzotwll0=
+ dependencies:
+ tr46 "~0.0.3"
+ webidl-conversions "^3.0.0"
+
+which-boxed-primitive@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz"
+ integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==
+ dependencies:
+ is-bigint "^1.0.1"
+ is-boolean-object "^1.1.0"
+ is-number-object "^1.0.4"
+ is-string "^1.0.5"
+ is-symbol "^1.0.3"
+
+which@^2.0.1, which@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz"
+ integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
+ dependencies:
+ isexe "^2.0.0"
+
+wide-align@^1.1.0:
+ version "1.1.5"
+ resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.5.tgz#df1d4c206854369ecf3c9a4898f1b23fbd9d15d3"
+ integrity sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==
+ dependencies:
+ string-width "^1.0.2 || 2 || 3 || 4"
+
+word-wrap@^1.2.3, word-wrap@~1.2.3:
+ version "1.2.3"
+ resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz"
+ integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==
+
+wrappy@1:
+ version "1.0.2"
+ resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz"
+ integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
+
+ version "8.4.2"
+ resolved "https://registry.yarnpkg.com/ws/-/ws-8.4.2.tgz#18e749868d8439f2268368829042894b6907aa0b"
+ integrity sha512-Kbk4Nxyq7/ZWqr/tarI9yIt/+iNNFOjBXEWgTb4ydaNHBNGgvf2QHbS9fdfsndfjFlFwEd4Al+mw83YkaD10ZA==
+
+ws@^7.3.1:
+ version "7.5.7"
+ resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.7.tgz#9e0ac77ee50af70d58326ecff7e85eb3fa375e67"
+ integrity sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A==
+
+"xml-name-validator@>= 2.0.1 < 3.0.0":
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-2.0.1.tgz#4d8b8f1eccd3419aa362061becef515e1e559635"
+ integrity sha1-TYuPHszTQZqjYgYb7O9RXh5VljU=
+
+xtend@^4.0.2:
+ version "4.0.2"
+ resolved "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz"
+ integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==
+
+yallist@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz"
+ integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
+
+yaml@^1.10.0, yaml@^1.10.2:
+ version "1.10.2"
+ resolved "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz"
+ integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==
+
[email protected], yauzl@^2.10.0:
+ version "2.10.0"
+ resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9"
+ integrity sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=
+ dependencies:
+ buffer-crc32 "~0.2.3"
+ fd-slicer "~1.1.0"
+
+ version "2.5.1"
+ resolved "https://registry.yarnpkg.com/yazl/-/yazl-2.5.1.tgz#a3d65d3dd659a5b0937850e8609f22fffa2b5c35"
+ integrity sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==
+ dependencies:
+ buffer-crc32 "~0.2.3"