├── .eslintrc.js ├── .github └── workflows │ └── lint_js.yml ├── .gitignore ├── LICENSE ├── README.md ├── assets ├── icon-128x128.png ├── screenshot-video.png ├── social-preview-1400x560.png ├── social-preview-440x280.png ├── social-preview-920x680.png ├── social-preview.png ├── tac-screenshot-channel.jpg ├── tac-screenshot-search.jpg ├── tac-screenshot.png └── tube-archivist-companion-banner.png ├── deploy.sh ├── extension ├── background.js ├── images │ ├── icon.png │ ├── icon128.png │ ├── icon16.png │ ├── logo.png │ ├── question.svg │ └── social │ │ ├── discord.svg │ │ ├── github.svg │ │ └── reddit.svg ├── index.html ├── manifest-chrome.json ├── manifest-firefox.json ├── popup.js ├── script.js └── style.css ├── package-lock.json └── package.json /.eslintrc.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = { 3 | extends: ['eslint:recommended', 'eslint-config-prettier'], 4 | parserOptions: { 5 | ecmaVersion: 2020, 6 | }, 7 | env: { 8 | browser: true, 9 | es6: true, 10 | }, 11 | globals: { 12 | browser: 'readonly', 13 | chrome: 'readonly', 14 | }, 15 | rules: { 16 | strict: ['error', 'global'], 17 | 'no-unused-vars': ['error', { vars: 'local' }], 18 | eqeqeq: ['error', 'always', { null: 'ignore' }], 19 | curly: ['error', 'multi-line'], 20 | 'no-var': 'error', 21 | 'no-func-assign': 'off', 22 | 'no-inner-declarations': 'off', 23 | }, 24 | }; 25 | -------------------------------------------------------------------------------- /.github/workflows/lint_js.yml: -------------------------------------------------------------------------------- 1 | name: lint_js 2 | 3 | on: [pull_request, push] 4 | 5 | jobs: 6 | check: 7 | name: lint_js 8 | runs-on: ubuntu-latest 9 | steps: 10 | - uses: actions/checkout@v2 11 | - uses: actions/setup-node@v3 12 | with: 13 | node-version: '16' 14 | - run: npm ci 15 | - run: npm run lint 16 | - run: npm run format -- --check 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # linked or copied real manifest 2 | extension/manifest.json 3 | 4 | # release builds 5 | release/* 6 | 7 | # JavaScript stuff 8 | node_modules 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![Tube Archivist Companion](assets/tube-archivist-companion-banner.png?raw=true "Tube Archivist Companion Banner") 2 | 3 |

Browser Extension for Tube Archivist

4 |
5 | tubearchivist-firefox 6 | tubearchivist-chrome 7 |
8 | 9 | ## Core Functionality 10 | This is a browser extension to bridge YouTube with [Tube Archivist](https://github.com/tubearchivist/tubearchivist), your self hosted YouTube media server. 11 | - Add your Tube Archivist connection details in the addon popup. 12 | - On YouTube video pages, inject a download button to download that video and a subscribe button to subscribe to that channel. 13 | - On YouTube channel pages, inject a button to subscribe to the channel or download the complete channel. Regarding the channel subpages, this follows the same rules as adding to the queue over the form. 14 | - Throughout most places, hover over the video title to reveal a download button for that video. 15 | - Sync your cookies for yt-dlp. 16 | 17 | ## Screenshots 18 | ![popup screenshot](assets/tac-screenshot.png?raw=true "Tube Archivist Companion Popup") 19 | Popup to enter your connection details. 20 |

21 | 22 | ![video page](assets/screenshot-video.png?raw=true "Tube Archivist Companion Video Page") 23 | Button injected on video page to download the video or subscribe to the channel. 24 |

25 | 26 | ![search page](assets/tac-screenshot-search.jpg?raw=true "Tube Archivist Companion Search Page") 27 | Download button injected showing when hovering over the video title. 28 |

29 | 30 | ![channel page](assets/tac-screenshot-channel.jpg?raw=true "Tube Archivist Companion Channel Page") 31 | Channel button injected to subscribe or download whole channel, video download button showing when hovering over the video title. 32 |
33 | 34 | ## Install 35 | - Firefox: The addon is available on the [Extension store](https://addons.mozilla.org/addon/tubearchivist-companion/). 36 | - Chrome: The addon is available on the [Chrome Web Store](https://chrome.google.com/webstore/detail/tubearchivist-companion/jjnkmicfnfojkkgobdfeieblocadmcie). 37 | 38 | ## Update 39 | After a new release here on GitHub, you'll get updates automatically in your browser. Due to the verification process, for Firefox this usually takes 1-2 hours, for Chrome 2-3 days. 40 | 41 | ## Permissions 42 | - **Access your data for www.youtube.com**: Needed to inject download and subscribe buttons directly into the page. 43 | - **Storage**: Needed to store your connection details. 44 | - **Cookie**: Needed to read your cookies for youtube.com to access restricted videos. 45 | 46 | ## Setup 47 | - **URL**: This is where your Tube Archivist instance is located. Can be a host name or an IP address. Add the port if needed at the end, e.g. `:8000`. 48 | - **API key**: You can find your API key on the settings page (Settings -> Application -> Integrations section -> API token) of your Tube Archivist instance. 49 | 50 | A green checkmark will appear next to the *Save* button if your connection is working. 51 | 52 | ## Options 53 | - **Continuous Cookie Sync**: Automatically and continuously update the cookie on change. 54 | - **Copy Now**: Copy the cookie now to TA. 55 | - **Show Cookie**: Show the cookie on click, for copy paste. 56 | - **Autostart**: Autostart and prioritize videos send from this extension. 57 | 58 | ## Test this extension 59 | Before continuing loading the temporary extension here, make sure to deactivate/delete the main extension first. 60 | 61 | Symlink/copy the correct manifest file for your browser to the expected location, e.g. `ln -s manifest-firefox.json manifest.json`. 62 | 63 | - Firefox 64 | - Open `about:debugging#/runtime/this-firefox` 65 | - Click on *Load Temporary Add-on* 66 | - Select the *manifest.json* file to load the addon. 67 | - You can *inspect* background.js by lunching the debug tools from there. 68 | - Chrome / Chromium 69 | - Open `chrome://extensions/` 70 | - Toggle *Developer mode* on top right 71 | - Click on *Load unpacked* 72 | - Open the folder containing the *manifest.json* file. 73 | - Click on *Service Worker* to open the dev tools at background.js. 74 | 75 | Note: 76 | - If you are running your TA dev setup outside of the container, you need to point the URL to the backend and _not_ the frontend. E.g. localhost:8000 and not localhost:3000. 77 | 78 | ## Compatibility 79 | - Verify that you are running the [latest version](https://github.com/tubearchivist/tubearchivist/releases/latest) of Tube Archivist as the API is under development and will change. 80 | - For testing this extension between releases, use the *unstable* builds of Tube Archivist, only for your testing environment. 81 | 82 | ## Roadmap 83 | Join us on [Discord](https://www.tubearchivist.com/discord) and help us improve and extend this project. This is a list of planned features, in no particular order: 84 | - [ ] Implement download/subscribe button for playlists 85 | - [ ] Add download buttons to the `/shorts/` pages 86 | - [X] Get download and subscribe status from TA to show on the injected buttons 87 | - [X] Implement download button for videos on the YouTube homepage over inline preview 88 | - [X] Implement download button for videos on playlist 89 | - [X] Error handling for connection errors 90 | - [X] Dynamically inject buttons with mutation observer 91 | 92 | ## Making changes to the JavaScript 93 | The JavaScript does not require any build step; you just edit the files directly. However, there is config for eslint and prettier (a linter and formatter respectively); their use is recommended but not required. To use them, install `node`, run `npm i` from the root directory of this repository to install dependencies, then run `npm run lint` and `npm run format` to run eslint and prettier respectively. 94 | 95 | ## Updating Artwork 96 | Google listing is *very* picky. Screenshots need to be exactly **1280x800** in resolution and need to be in *jpg* or *png* without alpha canal. 97 | -------------------------------------------------------------------------------- /assets/icon-128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/assets/icon-128x128.png -------------------------------------------------------------------------------- /assets/screenshot-video.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/assets/screenshot-video.png -------------------------------------------------------------------------------- /assets/social-preview-1400x560.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/assets/social-preview-1400x560.png -------------------------------------------------------------------------------- /assets/social-preview-440x280.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/assets/social-preview-440x280.png -------------------------------------------------------------------------------- /assets/social-preview-920x680.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/assets/social-preview-920x680.png -------------------------------------------------------------------------------- /assets/social-preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/assets/social-preview.png -------------------------------------------------------------------------------- /assets/tac-screenshot-channel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/assets/tac-screenshot-channel.jpg -------------------------------------------------------------------------------- /assets/tac-screenshot-search.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/assets/tac-screenshot-search.jpg -------------------------------------------------------------------------------- /assets/tac-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/assets/tac-screenshot.png -------------------------------------------------------------------------------- /assets/tube-archivist-companion-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/assets/tube-archivist-companion-banner.png -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # build package 3 | 4 | set -e 5 | 6 | if [[ $(basename "$(pwd)") != 'browser-extension' ]]; then 7 | echo 'not in browser-extension folder' 8 | exit 1 9 | fi 10 | 11 | echo "latest tags:" 12 | git tag | tail -n 5 | sort -r 13 | 14 | printf "\ncreate new version:\n" 15 | read -r VERSION 16 | 17 | 18 | # build release zip files 19 | function create_zip { 20 | cd extension 21 | 22 | # firefox 23 | rm manifest.json 24 | cp manifest-firefox.json manifest.json 25 | zip -rq ../release/ta-companion-"$VERSION"-firefox.zip . \ 26 | -x manifest-chrome.json -x manifest-firefox.json 27 | 28 | # chrome 29 | rm manifest.json 30 | cp manifest-chrome.json manifest.json 31 | zip -rq ../release/ta-companion-"$VERSION"-chrome.zip . \ 32 | -x manifest-chrome.json -x manifest-firefox.json 33 | 34 | rm manifest.json 35 | cd .. 36 | 37 | } 38 | 39 | 40 | # create release tag 41 | function create_release { 42 | 43 | git tag -a "$VERSION" -m "new release version $VERSION" 44 | git push origin "$VERSION" 45 | 46 | } 47 | 48 | 49 | create_zip 50 | create_release 51 | 52 | 53 | ## 54 | exit 0 55 | -------------------------------------------------------------------------------- /extension/background.js: -------------------------------------------------------------------------------- 1 | /* 2 | extension background script listening for events 3 | */ 4 | 5 | 'use strict'; 6 | 7 | console.log('running background.js'); 8 | 9 | let browserType = getBrowser(); 10 | 11 | // boilerplate to dedect browser type api 12 | function getBrowser() { 13 | if (typeof chrome !== 'undefined') { 14 | if (typeof browser !== 'undefined') { 15 | return browser; 16 | } else { 17 | return chrome; 18 | } 19 | } else { 20 | console.log('failed to detect browser'); 21 | throw 'browser detection error'; 22 | } 23 | } 24 | 25 | // send get request to API backend 26 | async function sendGet(path) { 27 | let access = await getAccess(); 28 | const url = `${access.url}:${access.port}/${path}`; 29 | console.log('GET: ' + url); 30 | 31 | const rawResponse = await fetch(url, { 32 | method: 'GET', 33 | headers: { 34 | Accept: 'application/json', 35 | 'Content-Type': 'application/json', 36 | Authorization: 'Token ' + access.apiKey, 37 | mode: 'no-cors', 38 | }, 39 | }); 40 | 41 | const content = await rawResponse.json(); 42 | return content; 43 | } 44 | 45 | // send post/put request to API backend 46 | async function sendData(path, payload, method) { 47 | let access = await getAccess(); 48 | const url = `${access.url}:${access.port}/${path}`; 49 | console.log(`${method}: ${url}`); 50 | if (!path.endsWith('cookie/')) console.log(`${method}: ${JSON.stringify(payload)}`); 51 | 52 | try { 53 | const rawResponse = await fetch(url, { 54 | method: method, 55 | headers: { 56 | Accept: 'application/json', 57 | 'Content-Type': 'application/json', 58 | Authorization: 'Token ' + access.apiKey, 59 | mode: 'no-cors', 60 | }, 61 | body: JSON.stringify(payload), 62 | }); 63 | const content = await rawResponse.json(); 64 | return content; 65 | } catch (e) { 66 | console.error(e); 67 | return null; 68 | } 69 | } 70 | 71 | // read access details from storage.local 72 | async function getAccess() { 73 | let storage = await browserType.storage.local.get('access'); 74 | 75 | return storage.access; 76 | } 77 | 78 | // check if cookie is valid 79 | async function getCookieState() { 80 | const path = 'api/appsettings/cookie/'; 81 | let response = await sendGet(path); 82 | console.log('cookie state: ' + JSON.stringify(response)); 83 | 84 | return response; 85 | } 86 | 87 | // send ping to server 88 | async function verifyConnection() { 89 | const path = 'api/ping/'; 90 | let message = await sendGet(path); 91 | console.log('verify connection: ' + JSON.stringify(message)); 92 | 93 | if (message?.response === 'pong') { 94 | return true; 95 | } else if (message?.detail) { 96 | throw new Error(message.detail); 97 | } else { 98 | throw new Error(`got unknown message ${JSON.stringify(message)}`); 99 | } 100 | } 101 | 102 | // send youtube link from injected buttons 103 | async function download(url) { 104 | let apiURL = 'api/download/'; 105 | let autostart = await browserType.storage.local.get('autostart'); 106 | if (Object.keys(autostart).length > 0 && autostart.autostart.checked) { 107 | apiURL += '?autostart=true'; 108 | } 109 | return await sendData( 110 | apiURL, 111 | { 112 | data: [ 113 | { 114 | youtube_id: url, 115 | status: 'pending', 116 | }, 117 | ], 118 | }, 119 | 'POST' 120 | ); 121 | } 122 | 123 | async function subscribe(url, subscribed) { 124 | return await sendData( 125 | 'api/channel/', 126 | { 127 | data: [ 128 | { 129 | channel_id: url, 130 | channel_subscribed: subscribed, 131 | }, 132 | ], 133 | }, 134 | 'POST' 135 | ); 136 | } 137 | 138 | async function videoExists(id) { 139 | const path = `api/video/${id}/`; 140 | let response = await sendGet(path); 141 | if (response?.error) return false; 142 | let access = await getAccess(); 143 | return new URL(`video/${id}/`, `${access.url}:${access.port}/`).href; 144 | } 145 | 146 | async function getChannel(channelHandle) { 147 | const path = `api/channel/search/?q=${channelHandle}`; 148 | try { 149 | return await sendGet(path); 150 | } catch { 151 | return false; 152 | } 153 | } 154 | 155 | async function cookieStr(cookieLines) { 156 | const path = 'api/appsettings/cookie/'; 157 | let payload = { 158 | cookie: cookieLines.join('\n'), 159 | }; 160 | let response = await sendData(path, payload, 'PUT'); 161 | 162 | return response; 163 | } 164 | 165 | function buildCookieLine(cookie) { 166 | // 2nd argument controls subdomains, and must match leading dot in domain 167 | let includeSubdomains = cookie.domain.startsWith('.') ? 'TRUE' : 'FALSE'; 168 | 169 | return [ 170 | cookie.domain, 171 | includeSubdomains, 172 | cookie.path, 173 | cookie.httpOnly.toString().toUpperCase(), 174 | Math.trunc(cookie.expirationDate) || 0, 175 | cookie.name, 176 | cookie.value, 177 | ].join('\t'); 178 | } 179 | 180 | async function getCookieLines() { 181 | const acceptableDomains = ['.youtube.com', 'youtube.com', 'www.youtube.com']; 182 | let cookieStores = await browserType.cookies.getAllCookieStores(); 183 | let cookieLines = [ 184 | '# Netscape HTTP Cookie File', 185 | '# https://curl.haxx.se/rfc/cookie_spec.html', 186 | '# This is a generated file! Do not edit.\n', 187 | ]; 188 | for (let i = 0; i < cookieStores.length; i++) { 189 | const cookieStore = cookieStores[i]; 190 | let allCookiesStore = await browserType.cookies.getAll({ 191 | domain: '.youtube.com', 192 | storeId: cookieStore['id'], 193 | }); 194 | for (let j = 0; j < allCookiesStore.length; j++) { 195 | const cookie = allCookiesStore[j]; 196 | if (acceptableDomains.includes(cookie.domain)) { 197 | cookieLines.push(buildCookieLine(cookie)); 198 | } 199 | } 200 | } 201 | return cookieLines; 202 | } 203 | 204 | async function sendCookies() { 205 | console.log('function sendCookies'); 206 | let cookieLines = await getCookieLines(); 207 | let response = cookieStr(cookieLines); 208 | 209 | return response; 210 | } 211 | 212 | let listenerEnabled = false; 213 | let isThrottled = false; 214 | 215 | async function handleContinuousCookie(checked) { 216 | if (checked === true) { 217 | browserType.cookies.onChanged.addListener(onCookieChange); 218 | listenerEnabled = true; 219 | console.log('Cookie listener enabled'); 220 | } else { 221 | browserType.cookies.onChanged.removeListener(onCookieChange); 222 | listenerEnabled = false; 223 | console.log('Cookie listener disabled'); 224 | } 225 | } 226 | 227 | function onCookieChange(changeInfo) { 228 | if (!isThrottled) { 229 | isThrottled = true; 230 | 231 | console.log('Cookie event detected:', changeInfo); 232 | 233 | sendCookies(); 234 | 235 | setTimeout(() => { 236 | isThrottled = false; 237 | }, 10000); 238 | } 239 | } 240 | 241 | /* 242 | process and return message if needed 243 | the following messages are supported: 244 | type Message = 245 | | { type: 'verify' } 246 | | { type: 'cookieState' } 247 | | { type: 'sendCookie' } 248 | | { type: 'getCookieLines' } 249 | | { type: 'continuousSync', checked: boolean } 250 | | { type: 'download', url: string } 251 | | { type: 'subscribe', url: string } 252 | | { type: 'unsubscribe', url: string } 253 | | { type: 'videoExists', id: string } 254 | | { type: 'getChannel', url: string } 255 | */ 256 | function handleMessage(request, sender, sendResponse) { 257 | console.log('message background.js listener got message', request); 258 | 259 | // this function must return the value `true` in chrome to signal the response will be async; 260 | // it cannot return a promise 261 | // so in order to use async/await, we need a wrapper 262 | (async () => { 263 | switch (request.type) { 264 | case 'verify': { 265 | return await verifyConnection(); 266 | } 267 | case 'cookieState': { 268 | return await getCookieState(); 269 | } 270 | case 'sendCookie': { 271 | return await sendCookies(); 272 | } 273 | case 'getCookieLines': { 274 | return await getCookieLines(); 275 | } 276 | case 'continuousSync': { 277 | return await handleContinuousCookie(request.checked); 278 | } 279 | case 'download': { 280 | return await download(request.url); 281 | } 282 | case 'subscribe': { 283 | return await subscribe(request.url, true); 284 | } 285 | case 'unsubscribe': { 286 | let channel = await getChannel(request.url); 287 | return await subscribe(channel.channel_id, false); 288 | } 289 | case 'videoExists': { 290 | return await videoExists(request.videoId); 291 | } 292 | case 'getChannel': { 293 | return await getChannel(request.channelHandle); 294 | } 295 | default: { 296 | let err = new Error(`unknown message type ${JSON.stringify(request.type)}`); 297 | console.log(err); 298 | throw err; 299 | } 300 | } 301 | })() 302 | .then(value => sendResponse({ success: true, value })) 303 | .catch(e => { 304 | console.log(e); 305 | let message = e?.message ?? e; 306 | if (message === 'Failed to fetch') { 307 | // chrome's error message for failed `fetch` is not very user-friendly 308 | message = 'Could not connect to server'; 309 | } 310 | sendResponse({ success: false, value: message }); 311 | }); 312 | return true; 313 | } 314 | 315 | browserType.runtime.onMessage.addListener(handleMessage); 316 | 317 | browserType.runtime.onStartup.addListener(() => { 318 | browserType.storage.local.get('continuousSync', data => { 319 | handleContinuousCookie(data?.continuousSync?.checked || false); 320 | }); 321 | }); 322 | -------------------------------------------------------------------------------- /extension/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/extension/images/icon.png -------------------------------------------------------------------------------- /extension/images/icon128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/extension/images/icon128.png -------------------------------------------------------------------------------- /extension/images/icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/extension/images/icon16.png -------------------------------------------------------------------------------- /extension/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tubearchivist/browser-extension/017b789fe205849f152f5862498f520e118763db/extension/images/logo.png -------------------------------------------------------------------------------- /extension/images/question.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 16 | 17 | -------------------------------------------------------------------------------- /extension/images/social/discord.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 9 | 19 | 21 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /extension/images/social/github.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 9 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /extension/images/social/reddit.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 9 | 15 | 30 | 32 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /extension/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | TubeArchivist Companion 8 | 9 | 10 | 11 | 12 |
13 | 19 |
20 | 26 |
27 | 28 |
29 |
30 |
31 |

Cookies:

32 |
33 |
34 |

TA cookies:

35 |
36 |
37 | 38 | Continuous Cookie Sync 39 |
40 | 41 |
42 | 43 |
44 |

Download:

45 |
46 |
47 | 48 | Autostart Downloads 49 |
50 |
51 |
52 |
53 |
54 | 55 | reddit-icon 56 | 57 | discord-icon 58 | 59 | github-icon 60 | 61 |
62 |
63 | 64 | question-icon 65 | 66 |
67 |
68 |
69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /extension/manifest-chrome.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 3, 3 | "name": "TubeArchivist Companion", 4 | "description": "Interact with your selfhosted TA server.", 5 | "version": "0.4.1", 6 | "icons": { 7 | "48": "/images/icon.png", 8 | "128": "/images/icon128.png" 9 | }, 10 | "action": { 11 | "default_popup": "index.html" 12 | }, 13 | "permissions": [ 14 | "storage", 15 | "cookies" 16 | ], 17 | "host_permissions": [ 18 | "https://*.youtube.com/*" 19 | ], 20 | "content_scripts": [ 21 | { 22 | "matches": ["https://www.youtube.com/*"], 23 | "js": ["script.js"] 24 | } 25 | ], 26 | "background": { 27 | "service_worker": "background.js" 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /extension/manifest-firefox.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 2, 3 | "name": "TubeArchivist Companion", 4 | "description": "Interact with your selfhosted TA server.", 5 | "version": "0.4.1", 6 | "icons": { 7 | "128": "/images/icon128.png" 8 | }, 9 | "browser_action": { 10 | "default_icon": "/images/icon.png", 11 | "default_popup": "index.html" 12 | }, 13 | "permissions": [ 14 | "storage", 15 | "cookies", 16 | "https://*.youtube.com/*" 17 | ], 18 | "content_scripts": [ 19 | { 20 | "matches": ["https://www.youtube.com/*"], 21 | "js": ["script.js"] 22 | } 23 | ], 24 | "background": { 25 | "scripts": ["background.js"] 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /extension/popup.js: -------------------------------------------------------------------------------- 1 | /* 2 | Loaded into popup index.html 3 | */ 4 | 5 | 'use strict'; 6 | 7 | let browserType = getBrowser(); 8 | 9 | // boilerplate to dedect browser type api 10 | function getBrowser() { 11 | if (typeof chrome !== 'undefined') { 12 | if (typeof browser !== 'undefined') { 13 | return browser; 14 | } else { 15 | return chrome; 16 | } 17 | } else { 18 | console.log('failed to detect browser'); 19 | throw 'browser detection error'; 20 | } 21 | } 22 | 23 | async function sendMessage(message) { 24 | let { success, value } = await browserType.runtime.sendMessage(message); 25 | if (!success) { 26 | throw value; 27 | } 28 | return value; 29 | } 30 | 31 | let errorOut = document.getElementById('error-out'); 32 | function setError(message) { 33 | errorOut.style.display = 'initial'; 34 | errorOut.innerText = message; 35 | } 36 | 37 | function clearError() { 38 | errorOut.style.display = 'none'; 39 | } 40 | 41 | function clearTempLocalStorage() { 42 | browserType.storage.local.remove('popupApiKey'); 43 | browserType.storage.local.remove('popupFullUrl'); 44 | } 45 | 46 | // store access details 47 | document.getElementById('save-login').addEventListener('click', function () { 48 | let url = document.getElementById('full-url').value; 49 | if (!url.includes('://')) { 50 | url = 'http://' + url; 51 | } 52 | try { 53 | clearError(); 54 | let parsed = new URL(url); 55 | let toStore = { 56 | access: { 57 | url: `${parsed.protocol}//${parsed.hostname}`, 58 | port: parsed.port || (parsed.protocol === 'https:' ? '443' : '80'), 59 | apiKey: document.getElementById('api-key').value, 60 | }, 61 | }; 62 | browserType.storage.local.set(toStore, function () { 63 | console.log('Stored connection details: ' + JSON.stringify(toStore)); 64 | pingBackend(); 65 | }); 66 | } catch (e) { 67 | setError(e.message); 68 | } 69 | }); 70 | 71 | // verify connection status 72 | document.getElementById('status-icon').addEventListener('click', function () { 73 | pingBackend(); 74 | }); 75 | 76 | // send cookie 77 | document.getElementById('sendCookies').addEventListener('click', function () { 78 | sendCookie(); 79 | }); 80 | 81 | // show cookies 82 | document.getElementById('showCookies').addEventListener('click', function () { 83 | showCookies(); 84 | }); 85 | 86 | // continuous sync 87 | document.getElementById('continuous-sync').addEventListener('click', function () { 88 | toggleContinuousSync(); 89 | }); 90 | 91 | // autostart 92 | document.getElementById('autostart').addEventListener('click', function () { 93 | toggleAutostart(); 94 | }); 95 | 96 | let fullUrlInput = document.getElementById('full-url'); 97 | fullUrlInput.addEventListener('change', () => { 98 | browserType.storage.local.set({ 99 | popupFullUrl: fullUrlInput.value, 100 | }); 101 | }); 102 | 103 | let apiKeyInput = document.getElementById('api-key'); 104 | apiKeyInput.addEventListener('change', () => { 105 | browserType.storage.local.set({ 106 | popupApiKey: apiKeyInput.value, 107 | }); 108 | }); 109 | 110 | function sendCookie() { 111 | console.log('popup send cookie'); 112 | clearError(); 113 | 114 | function handleResponse(message) { 115 | console.log('handle cookie response: ' + JSON.stringify(message)); 116 | let validattionMessage = `enabled, last verified ${message.validated_str}`; 117 | document.getElementById('sendCookiesStatus').innerText = validattionMessage; 118 | } 119 | 120 | function handleError(error) { 121 | console.log(`Error: ${error}`); 122 | setError(error); 123 | } 124 | 125 | let sending = sendMessage({ type: 'sendCookie' }); 126 | sending.then(handleResponse, handleError); 127 | } 128 | 129 | function showCookies() { 130 | console.log('popup show cookies'); 131 | const textArea = document.getElementById('cookieLinesResponse'); 132 | 133 | function handleResponse(message) { 134 | textArea.value = message.join('\n'); 135 | textArea.style.display = 'initial'; 136 | } 137 | function handleError(error) { 138 | console.log(`Error: ${error}`); 139 | } 140 | 141 | if (textArea.value) { 142 | textArea.value = ''; 143 | textArea.style.display = 'none'; 144 | document.getElementById('showCookies').textContent = 'Show Cookie'; 145 | } else { 146 | let sending = sendMessage({ type: 'getCookieLines' }); 147 | sending.then(handleResponse, handleError); 148 | document.getElementById('showCookies').textContent = 'Hide Cookie'; 149 | } 150 | } 151 | 152 | function toggleContinuousSync() { 153 | const checked = document.getElementById('continuous-sync').checked; 154 | let toStore = { 155 | continuousSync: { 156 | checked: checked, 157 | }, 158 | }; 159 | browserType.storage.local.set(toStore, function () { 160 | console.log('stored option: ' + JSON.stringify(toStore)); 161 | }); 162 | sendMessage({ type: 'continuousSync', checked }); 163 | } 164 | 165 | function toggleAutostart() { 166 | let checked = document.getElementById('autostart').checked; 167 | let toStore = { 168 | autostart: { 169 | checked: checked, 170 | }, 171 | }; 172 | browserType.storage.local.set(toStore, function () { 173 | console.log('stored option: ' + JSON.stringify(toStore)); 174 | }); 175 | } 176 | 177 | // send ping message to TA backend 178 | async function pingBackend() { 179 | clearError(); 180 | clearTempLocalStorage(); 181 | function handleResponse() { 182 | console.log('connection validated'); 183 | setStatusIcon(true); 184 | } 185 | 186 | function handleError(error) { 187 | console.log(`Verify got error: ${error}`); 188 | setStatusIcon(false); 189 | setError(error); 190 | } 191 | 192 | console.log('ping TA server'); 193 | let sending = sendMessage({ type: 'verify' }); 194 | sending.then(handleResponse, handleError); 195 | } 196 | 197 | // add url to image 198 | function addUrl(access) { 199 | const url = `${access.url}:${access.port}`; 200 | document.getElementById('ta-url').setAttribute('href', url); 201 | } 202 | 203 | function setCookieState() { 204 | clearError(); 205 | function handleResponse(message) { 206 | console.log(message); 207 | if (!message.cookie_enabled) { 208 | document.getElementById('sendCookiesStatus').innerText = 'disabled'; 209 | } else { 210 | let validattionMessage = 'enabled'; 211 | if (message.validated_str) { 212 | validattionMessage += `, last verified ${message.validated_str}`; 213 | } 214 | document.getElementById('sendCookiesStatus').innerText = validattionMessage; 215 | } 216 | } 217 | 218 | function handleError(error) { 219 | console.log(`Error: ${error}`); 220 | setError(error); 221 | } 222 | 223 | console.log('set cookie state'); 224 | let sending = sendMessage({ type: 'cookieState' }); 225 | sending.then(handleResponse, handleError); 226 | document.getElementById('sendCookies').checked = true; 227 | } 228 | 229 | // change status icon based on connection status 230 | function setStatusIcon(connected) { 231 | let statusIcon = document.getElementById('status-icon'); 232 | if (connected) { 233 | statusIcon.innerHTML = '☑'; 234 | statusIcon.style.color = 'green'; 235 | } else { 236 | statusIcon.innerHTML = '☒'; 237 | statusIcon.style.color = 'red'; 238 | } 239 | } 240 | 241 | // fill in form 242 | document.addEventListener('DOMContentLoaded', async () => { 243 | async function onGot(item) { 244 | if (!item.access) { 245 | console.log('no access details found'); 246 | if (item.popupFullUrl != null && fullUrlInput.value === '') { 247 | fullUrlInput.value = item.popupFullUrl; 248 | } 249 | if (item.popupApiKey != null && apiKeyInput.value === '') { 250 | apiKeyInput.value = item.popupApiKey; 251 | } 252 | setStatusIcon(false); 253 | return; 254 | } 255 | let { url, port } = item.access; 256 | let fullUrl = url; 257 | if (!(url.startsWith('http://') && port === '80')) { 258 | fullUrl += `:${port}`; 259 | } 260 | document.getElementById('full-url').value = fullUrl; 261 | document.getElementById('api-key').value = item.access.apiKey; 262 | pingBackend(); 263 | addUrl(item.access); 264 | setCookieState(); 265 | } 266 | 267 | async function setContinuousCookiesOptions(result) { 268 | if (!result.continuousSync || result.continuousSync.checked === false) { 269 | console.log('continuous cookie sync not set'); 270 | return; 271 | } 272 | console.log('set options: ' + JSON.stringify(result)); 273 | document.getElementById('continuous-sync').checked = true; 274 | } 275 | 276 | async function setAutostartOption(result) { 277 | console.log(result); 278 | if (!result.autostart || result.autostart.checked === false) { 279 | console.log('autostart not set'); 280 | return; 281 | } 282 | console.log('set options: ' + JSON.stringify(result)); 283 | document.getElementById('autostart').checked = true; 284 | } 285 | 286 | browserType.storage.local.get(['access', 'popupFullUrl', 'popupApiKey'], function (result) { 287 | onGot(result); 288 | }); 289 | 290 | browserType.storage.local.get('continuousSync', function (result) { 291 | setContinuousCookiesOptions(result); 292 | }); 293 | 294 | browserType.storage.local.get('autostart', function (result) { 295 | setAutostartOption(result); 296 | }); 297 | }); 298 | -------------------------------------------------------------------------------- /extension/script.js: -------------------------------------------------------------------------------- 1 | /* 2 | content script running on youtube.com 3 | */ 4 | 5 | 'use strict'; 6 | 7 | const downloadIcon = ` 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 38 | 42 | 43 | 44 | 45 | `; 46 | 47 | const checkmarkIcon = ` 49 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 79 | 83 | 84 | 85 | 86 | `; 87 | 88 | const defaultIcon = `minus-thick`; 89 | 90 | let browserType = getBrowser(); 91 | 92 | // boilerplate to dedect browser type api 93 | function getBrowser() { 94 | if (typeof chrome !== 'undefined') { 95 | if (typeof browser !== 'undefined') { 96 | console.log('detected firefox'); 97 | return browser; 98 | } else { 99 | console.log('detected chrome'); 100 | return chrome; 101 | } 102 | } else { 103 | console.log('failed to dedect browser'); 104 | throw 'browser detection error'; 105 | } 106 | } 107 | 108 | function getChannelContainers() { 109 | const elements = document.querySelectorAll( 110 | '.page-header-view-model-wiz__page-header-flexible-actions, #owner' 111 | ); 112 | const channelContainerNodes = []; 113 | 114 | elements.forEach(element => { 115 | if (isElementVisible(element) && window.location.pathname !== '/playlist') { 116 | channelContainerNodes.push(element); 117 | } 118 | }); 119 | 120 | return channelContainerNodes; 121 | } 122 | 123 | function isElementVisible(element) { 124 | return element.offsetWidth > 0 || element.offsetHeight > 0 || element.getClientRects().length > 0; 125 | } 126 | 127 | function ensureTALinks() { 128 | let channelContainerNodes = getChannelContainers(); 129 | 130 | for (let channelContainer of channelContainerNodes) { 131 | channelContainer = adjustOwner(channelContainer); 132 | if (channelContainer.hasTA) continue; 133 | let channelButton = buildChannelButton(channelContainer); 134 | channelContainer.appendChild(channelButton); 135 | channelContainer.hasTA = true; 136 | } 137 | 138 | let titleContainerNodes = getTitleContainers(); 139 | for (let titleContainer of titleContainerNodes) { 140 | let parent = getNearestH3(titleContainer); 141 | if (!parent) continue; 142 | if (parent.hasTA) continue; 143 | let videoButton = buildVideoButton(titleContainer); 144 | if (videoButton == null) continue; 145 | processTitle(parent); 146 | parent.appendChild(videoButton); 147 | parent.hasTA = true; 148 | } 149 | } 150 | ensureTALinks = throttled(ensureTALinks, 700); 151 | 152 | function adjustOwner(channelContainer) { 153 | return channelContainer.querySelector('#buttons') || channelContainer; 154 | } 155 | 156 | function buildChannelButton(channelContainer) { 157 | let channelHandle = getChannelHandle(channelContainer); 158 | channelContainer.taDerivedHandle = channelHandle; 159 | 160 | let buttonDiv = buildChannelButtonDiv(); 161 | 162 | let channelSubButton = buildChannelSubButton(channelHandle); 163 | buttonDiv.appendChild(channelSubButton); 164 | channelContainer.taSubButton = channelSubButton; 165 | 166 | let spacer = buildSpacer(); 167 | buttonDiv.appendChild(spacer); 168 | 169 | let channelDownloadButton = buildChannelDownloadButton(); 170 | buttonDiv.appendChild(channelDownloadButton); 171 | channelContainer.taDownloadButton = channelDownloadButton; 172 | 173 | if (!channelContainer.taObserver) { 174 | function updateButtonsIfNecessary() { 175 | let newHandle = getChannelHandle(channelContainer); 176 | if (channelContainer.taDerivedHandle === newHandle) return; 177 | console.log(`updating handle from ${channelContainer.taDerivedHandle} to ${newHandle}`); 178 | channelContainer.taDerivedHandle = newHandle; 179 | let channelSubButton = buildChannelSubButton(newHandle); 180 | channelContainer.taSubButton.replaceWith(channelSubButton); 181 | channelContainer.taSubButton = channelSubButton; 182 | 183 | let channelDownloadButton = buildChannelDownloadButton(); 184 | channelContainer.taDownloadButton.replaceWith(channelDownloadButton); 185 | channelContainer.taDownloadButton = channelDownloadButton; 186 | } 187 | channelContainer.taObserver = new MutationObserver(throttled(updateButtonsIfNecessary, 100)); 188 | channelContainer.taObserver.observe(channelContainer, { 189 | attributes: true, 190 | childList: true, 191 | subtree: true, 192 | }); 193 | } 194 | 195 | return buttonDiv; 196 | } 197 | 198 | function getChannelHandle(channelContainer) { 199 | function findeHandleString(container) { 200 | let result = null; 201 | 202 | function recursiveTraversal(element) { 203 | for (let child of element.children) { 204 | if (child.tagName === 'A' && child.hasAttribute('href')) { 205 | const href = child.getAttribute('href'); 206 | const match = href.match(/\/@[^/]+/); // Match the path starting with "@" 207 | if (match) { 208 | // handle is in channel link 209 | result = match[0].substring(1); 210 | return; 211 | } 212 | } 213 | 214 | if (child.children.length === 0 && child.textContent.trim().startsWith('@')) { 215 | // handle is in channel description text 216 | result = child.textContent.trim(); 217 | return; 218 | } 219 | 220 | recursiveTraversal(child); 221 | if (result) return; 222 | } 223 | } 224 | 225 | recursiveTraversal(container); 226 | return result; 227 | } 228 | 229 | let channelHandle = findeHandleString(channelContainer.parentElement); 230 | 231 | return channelHandle; 232 | } 233 | 234 | function buildChannelButtonDiv() { 235 | let buttonDiv = document.createElement('div'); 236 | buttonDiv.classList.add('ta-channel-button'); 237 | Object.assign(buttonDiv.style, { 238 | display: 'flex', 239 | alignItems: 'center', 240 | backgroundColor: '#00202f', 241 | color: '#fff', 242 | fontSize: '14px', 243 | padding: '5px', 244 | 'margin-left': '8px', 245 | borderRadius: '18px', 246 | }); 247 | return buttonDiv; 248 | } 249 | 250 | function buildChannelSubButton(channelHandle) { 251 | let channelSubButton = document.createElement('span'); 252 | channelSubButton.innerText = 'Checking...'; 253 | channelSubButton.title = `TA Subscribe: ${channelHandle}`; 254 | channelSubButton.setAttribute('data-id', channelHandle); 255 | channelSubButton.setAttribute('data-type', 'channel'); 256 | 257 | channelSubButton.addEventListener('click', e => { 258 | e.preventDefault(); 259 | if (channelSubButton.innerText === 'Subscribe') { 260 | console.log(`subscribe to: ${channelHandle}`); 261 | sendUrl(channelHandle, 'subscribe', channelSubButton); 262 | } else if (channelSubButton.innerText === 'Unsubscribe') { 263 | console.log(`unsubscribe from: ${channelHandle}`); 264 | sendUrl(channelHandle, 'unsubscribe', channelSubButton); 265 | } else { 266 | console.log('Unknown state'); 267 | } 268 | e.stopPropagation(); 269 | }); 270 | Object.assign(channelSubButton.style, { 271 | padding: '5px', 272 | cursor: 'pointer', 273 | }); 274 | checkChannelSubscribed(channelSubButton); 275 | 276 | return channelSubButton; 277 | } 278 | 279 | function checkChannelSubscribed(channelSubButton) { 280 | function handleResponse(message) { 281 | if (!message || (typeof message === 'object' && message.channel_subscribed === false)) { 282 | channelSubButton.innerText = 'Subscribe'; 283 | } else if (typeof message === 'object' && message.channel_subscribed === true) { 284 | channelSubButton.innerText = 'Unsubscribe'; 285 | } else { 286 | console.log('Unknown state'); 287 | } 288 | } 289 | function handleError(e) { 290 | buttonError(channelSubButton); 291 | channelSubButton.innerText = 'Error'; 292 | console.error('error', e); 293 | } 294 | 295 | let channelHandle = channelSubButton.dataset.id; 296 | let message = { type: 'getChannel', channelHandle }; 297 | let sending = sendMessage(message); 298 | sending.then(handleResponse, handleError); 299 | } 300 | 301 | function buildSpacer() { 302 | let spacer = document.createElement('span'); 303 | spacer.innerText = '|'; 304 | 305 | return spacer; 306 | } 307 | 308 | function buildChannelDownloadButton() { 309 | let channelDownloadButton = document.createElement('span'); 310 | let currentLocation = window.location.href; 311 | let urlObj = new URL(currentLocation); 312 | 313 | if (urlObj.pathname.startsWith('/watch')) { 314 | let params = new URLSearchParams(document.location.search); 315 | let videoId = params.get('v'); 316 | channelDownloadButton.setAttribute('data-type', 'video'); 317 | channelDownloadButton.setAttribute('data-id', videoId); 318 | channelDownloadButton.title = `TA download video: ${videoId}`; 319 | checkVideoExists(channelDownloadButton); 320 | } else { 321 | channelDownloadButton.setAttribute('data-id', currentLocation); 322 | channelDownloadButton.setAttribute('data-type', 'channel'); 323 | channelDownloadButton.title = `TA download channel ${currentLocation}`; 324 | } 325 | channelDownloadButton.innerHTML = downloadIcon; 326 | channelDownloadButton.addEventListener('click', e => { 327 | e.preventDefault(); 328 | console.log(`download: ${currentLocation}`); 329 | sendDownload(channelDownloadButton); 330 | e.stopPropagation(); 331 | }); 332 | Object.assign(channelDownloadButton.style, { 333 | filter: 'invert()', 334 | width: '20px', 335 | padding: '0 5px', 336 | cursor: 'pointer', 337 | }); 338 | 339 | return channelDownloadButton; 340 | } 341 | 342 | function getTitleContainers() { 343 | let elements = document.querySelectorAll('#video-title'); 344 | let videoNodes = []; 345 | elements.forEach(element => { 346 | if (isElementVisible(element)) { 347 | videoNodes.push(element); 348 | } 349 | }); 350 | return elements; 351 | } 352 | 353 | function getVideoId(titleContainer) { 354 | if (!titleContainer) return undefined; 355 | 356 | let href = getNearestLink(titleContainer); 357 | if (!href) return; 358 | 359 | let videoId; 360 | if (href.startsWith('/watch?v')) { 361 | let params = new URLSearchParams(href); 362 | videoId = params.get('/watch?v'); 363 | } else if (href.startsWith('/shorts/')) { 364 | videoId = href.split('/')[2]; 365 | } 366 | return videoId; 367 | } 368 | 369 | function buildVideoButton(titleContainer) { 370 | let videoId = getVideoId(titleContainer); 371 | if (!videoId) return; 372 | 373 | const dlButton = document.createElement('a'); 374 | dlButton.classList.add('ta-button'); 375 | dlButton.href = '#'; 376 | 377 | Object.assign(dlButton.style, { 378 | display: 'flex', 379 | alignItems: 'center', 380 | justifyContent: 'center', 381 | backgroundColor: '#00202f', 382 | color: '#fff', 383 | fontSize: '1.4rem', 384 | textDecoration: 'none', 385 | borderRadius: '8px', 386 | cursor: 'pointer', 387 | height: 'fit-content', 388 | opacity: 0, 389 | }); 390 | 391 | let dlIcon = document.createElement('span'); 392 | dlIcon.innerHTML = defaultIcon; 393 | Object.assign(dlIcon.style, { 394 | filter: 'invert()', 395 | width: '15px', 396 | height: '15px', 397 | padding: '7px 8px', 398 | }); 399 | 400 | dlButton.appendChild(dlIcon); 401 | 402 | dlButton.addEventListener('click', e => { 403 | e.preventDefault(); 404 | sendDownload(dlButton); 405 | e.stopPropagation(); 406 | }); 407 | 408 | return dlButton; 409 | } 410 | 411 | function getNearestLink(element) { 412 | // Check siblings 413 | let sibling = element; 414 | while (sibling) { 415 | sibling = sibling.previousElementSibling; 416 | if (sibling && sibling.tagName === 'A' && sibling.getAttribute('href') !== '#') { 417 | return sibling.getAttribute('href'); 418 | } 419 | } 420 | 421 | sibling = element; 422 | while (sibling) { 423 | sibling = sibling.nextElementSibling; 424 | if (sibling && sibling.tagName === 'A' && sibling.getAttribute('href') !== '#') { 425 | return sibling.getAttribute('href'); 426 | } 427 | } 428 | 429 | // Check parent elements 430 | for (let i = 0; i < 5 && element && element !== document; i++) { 431 | if (element.tagName === 'A' && element.getAttribute('href') !== '#') { 432 | return element.getAttribute('href'); 433 | } 434 | element = element.parentNode; 435 | } 436 | return null; 437 | } 438 | 439 | function getNearestH3(element) { 440 | for (let i = 0; i < 5 && element && element !== document; i++) { 441 | if (element.tagName === 'H3') { 442 | return element; 443 | } 444 | element = element.parentNode; 445 | } 446 | return null; 447 | } 448 | 449 | function processTitle(titleContainer) { 450 | if (titleContainer.hasListener) return; 451 | Object.assign(titleContainer.style, { 452 | display: 'flex', 453 | gap: '15px', 454 | }); 455 | 456 | titleContainer.classList.add('title-container'); 457 | titleContainer.addEventListener('mouseenter', () => { 458 | const taButton = titleContainer.querySelector('.ta-button'); 459 | if (!taButton) return; 460 | if (!taButton.isChecked) checkVideoExists(taButton); 461 | taButton.style.opacity = 1; 462 | }); 463 | 464 | titleContainer.addEventListener('mouseleave', () => { 465 | const taButton = titleContainer.querySelector('.ta-button'); 466 | if (!taButton) return; 467 | taButton.style.opacity = 0; 468 | }); 469 | titleContainer.hasListener = true; 470 | } 471 | 472 | function checkVideoExists(taButton) { 473 | function handleResponse(message) { 474 | let buttonSpan = taButton.querySelector('span') || taButton; 475 | if (message !== false) { 476 | buttonSpan.innerHTML = checkmarkIcon; 477 | buttonSpan.title = 'Open in TA'; 478 | buttonSpan.addEventListener('click', () => { 479 | let win = window.open(message, '_blank'); 480 | win.focus(); 481 | }); 482 | } else { 483 | buttonSpan.innerHTML = downloadIcon; 484 | } 485 | taButton.isChecked = true; 486 | } 487 | function handleError(e) { 488 | buttonError(taButton); 489 | let videoId = taButton.dataset.id; 490 | console.log(`error: failed to get info from TA for video ${videoId}`); 491 | console.error(e); 492 | } 493 | 494 | let videoId = taButton.dataset.id; 495 | if (!videoId) { 496 | videoId = getVideoId(taButton); 497 | if (videoId) { 498 | taButton.setAttribute('data-id', videoId); 499 | taButton.setAttribute('data-type', 'video'); 500 | taButton.title = `TA download video: ${taButton.parentElement.innerText} [${videoId}]`; 501 | } 502 | } 503 | 504 | let message = { type: 'videoExists', videoId }; 505 | let sending = sendMessage(message); 506 | sending.then(handleResponse, handleError); 507 | } 508 | 509 | function sendDownload(button) { 510 | let url = button.dataset.id; 511 | if (!url) return; 512 | sendUrl(url, 'download', button); 513 | } 514 | 515 | function buttonError(button) { 516 | let buttonSpan = button.querySelector('span'); 517 | if (buttonSpan === null) { 518 | buttonSpan = button; 519 | } 520 | buttonSpan.style.filter = 521 | 'invert(19%) sepia(93%) saturate(7472%) hue-rotate(359deg) brightness(105%) contrast(113%)'; 522 | buttonSpan.style.color = 'red'; 523 | 524 | button.style.opacity = 1; 525 | button.addEventListener('mouseout', () => { 526 | Object.assign(button.style, { 527 | opacity: 1, 528 | }); 529 | }); 530 | } 531 | 532 | function buttonSuccess(button) { 533 | let buttonSpan = button.querySelector('span'); 534 | if (buttonSpan === null) { 535 | buttonSpan = button; 536 | } 537 | if (buttonSpan.innerHTML === 'Subscribe') { 538 | buttonSpan.innerHTML = 'Success'; 539 | setTimeout(() => { 540 | buttonSpan.innerHTML = 'Unsubscribe'; 541 | }, 2000); 542 | } else { 543 | buttonSpan.innerHTML = checkmarkIcon; 544 | } 545 | } 546 | 547 | function sendUrl(url, action, button) { 548 | function handleResponse(message) { 549 | console.log('sendUrl response: ' + JSON.stringify(message)); 550 | if (message === null || message.detail === 'Invalid token.') { 551 | buttonError(button); 552 | } else { 553 | buttonSuccess(button); 554 | } 555 | } 556 | 557 | function handleError(e) { 558 | console.log('error', e); 559 | buttonError(button); 560 | } 561 | 562 | let message = { type: action, url }; 563 | 564 | console.log('youtube link: ' + JSON.stringify(message)); 565 | 566 | let sending = sendMessage(message); 567 | sending.then(handleResponse, handleError); 568 | } 569 | 570 | async function sendMessage(message) { 571 | let { success, value } = await browserType.runtime.sendMessage(message); 572 | if (!success) { 573 | throw value; 574 | } 575 | return value; 576 | } 577 | 578 | function cleanButtons() { 579 | console.log('trigger clean buttons'); 580 | document.querySelectorAll('.ta-button').forEach(button => { 581 | button.parentElement.hasTA = false; 582 | button.remove(); 583 | }); 584 | document.querySelectorAll('.ta-channel-button').forEach(button => { 585 | button.parentElement.hasTA = false; 586 | button.remove(); 587 | }); 588 | } 589 | 590 | let oldHref = document.location.href; 591 | 592 | function throttled(callback, time) { 593 | let throttleBlock = false; 594 | let lastArgs; 595 | return (...args) => { 596 | lastArgs = args; 597 | if (throttleBlock) return; 598 | throttleBlock = true; 599 | setTimeout(() => { 600 | throttleBlock = false; 601 | callback(...lastArgs); 602 | }, time); 603 | }; 604 | } 605 | 606 | let observer = new MutationObserver(list => { 607 | const currentHref = document.location.href; 608 | if (currentHref !== oldHref) { 609 | cleanButtons(); 610 | oldHref = currentHref; 611 | } 612 | if (list.some(i => i.type === 'childList' && i.addedNodes.length > 0)) { 613 | ensureTALinks(); 614 | } 615 | }); 616 | 617 | observer.observe(document.body, { attributes: false, childList: true, subtree: true }); 618 | -------------------------------------------------------------------------------- /extension/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Sen-Regular, sans-serif; 3 | background-color: #00202f; 4 | color: #97d4c8; 5 | } 6 | .container { 7 | padding: 10px; 8 | min-width: 350px; 9 | max-width: 450px; 10 | } 11 | .h3 { 12 | font-family: Sen-bold, sans-serif; 13 | text-transform: capitalize; 14 | } 15 | hr { 16 | height: 1px; 17 | color: white; 18 | background-color: white; 19 | margin: 10px 0; 20 | } 21 | button { 22 | margin: 10px; 23 | border-radius: 0; 24 | padding: 5px 13px; 25 | border: none; 26 | cursor: pointer; 27 | background-color: #259485; 28 | color: #ffffff; 29 | } 30 | button:hover { 31 | background-color: #97d4c8; 32 | transform: scale(1.05); 33 | color: #00202f; 34 | } 35 | #download { 36 | text-align: center 37 | } 38 | #status-icon { 39 | font-size: 1.5em; 40 | } 41 | .logo { 42 | position: relative; 43 | } 44 | .logo img { 45 | width: 400px; 46 | } 47 | .logo span { 48 | position: absolute; 49 | bottom: 10px; 50 | right: 0; 51 | } 52 | .login-form { 53 | display: grid; 54 | grid-template-columns: 1fr 1fr; 55 | } 56 | .login-form label, 57 | .login-form input { 58 | margin: 3px 0; 59 | } 60 | .submit { 61 | display: flex; 62 | align-items: center; 63 | justify-content: center; 64 | } 65 | .options { 66 | display: block; 67 | padding-bottom: 10px; 68 | } 69 | .options span { 70 | margin-left: 10px; 71 | } 72 | .icons { 73 | display: flex; 74 | grid-template-columns: 1fr 1fr; 75 | justify-content: space-between; 76 | } 77 | .icons img { 78 | width: 25px; 79 | } 80 | #error-out { 81 | color: red; 82 | display: none; /* will be made visible when an error occurs */ 83 | } 84 | #cookieLinesResponse { 85 | display: none; 86 | width: 100%; 87 | height: 50px; 88 | } 89 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tubearchivist-browser-extension", 3 | "lockfileVersion": 2, 4 | "requires": true, 5 | "packages": { 6 | "": { 7 | "name": "tubearchivist-browser-extension", 8 | "devDependencies": { 9 | "eslint": "^8.26.0", 10 | "eslint-config-prettier": "^8.5.0", 11 | "prettier": "^2.7.1" 12 | } 13 | }, 14 | "node_modules/@eslint/eslintrc": { 15 | "version": "1.3.3", 16 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.3.tgz", 17 | "integrity": "sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==", 18 | "dev": true, 19 | "dependencies": { 20 | "ajv": "^6.12.4", 21 | "debug": "^4.3.2", 22 | "espree": "^9.4.0", 23 | "globals": "^13.15.0", 24 | "ignore": "^5.2.0", 25 | "import-fresh": "^3.2.1", 26 | "js-yaml": "^4.1.0", 27 | "minimatch": "^3.1.2", 28 | "strip-json-comments": "^3.1.1" 29 | }, 30 | "engines": { 31 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 32 | }, 33 | "funding": { 34 | "url": "https://opencollective.com/eslint" 35 | } 36 | }, 37 | "node_modules/@humanwhocodes/config-array": { 38 | "version": "0.11.7", 39 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.7.tgz", 40 | "integrity": "sha512-kBbPWzN8oVMLb0hOUYXhmxggL/1cJE6ydvjDIGi9EnAGUyA7cLVKQg+d/Dsm+KZwx2czGHrCmMVLiyg8s5JPKw==", 41 | "dev": true, 42 | "dependencies": { 43 | "@humanwhocodes/object-schema": "^1.2.1", 44 | "debug": "^4.1.1", 45 | "minimatch": "^3.0.5" 46 | }, 47 | "engines": { 48 | "node": ">=10.10.0" 49 | } 50 | }, 51 | "node_modules/@humanwhocodes/module-importer": { 52 | "version": "1.0.1", 53 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 54 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 55 | "dev": true, 56 | "engines": { 57 | "node": ">=12.22" 58 | }, 59 | "funding": { 60 | "type": "github", 61 | "url": "https://github.com/sponsors/nzakas" 62 | } 63 | }, 64 | "node_modules/@humanwhocodes/object-schema": { 65 | "version": "1.2.1", 66 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", 67 | "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", 68 | "dev": true 69 | }, 70 | "node_modules/@nodelib/fs.scandir": { 71 | "version": "2.1.5", 72 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 73 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 74 | "dev": true, 75 | "dependencies": { 76 | "@nodelib/fs.stat": "2.0.5", 77 | "run-parallel": "^1.1.9" 78 | }, 79 | "engines": { 80 | "node": ">= 8" 81 | } 82 | }, 83 | "node_modules/@nodelib/fs.stat": { 84 | "version": "2.0.5", 85 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 86 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 87 | "dev": true, 88 | "engines": { 89 | "node": ">= 8" 90 | } 91 | }, 92 | "node_modules/@nodelib/fs.walk": { 93 | "version": "1.2.8", 94 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 95 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 96 | "dev": true, 97 | "dependencies": { 98 | "@nodelib/fs.scandir": "2.1.5", 99 | "fastq": "^1.6.0" 100 | }, 101 | "engines": { 102 | "node": ">= 8" 103 | } 104 | }, 105 | "node_modules/acorn": { 106 | "version": "8.8.1", 107 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", 108 | "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", 109 | "dev": true, 110 | "bin": { 111 | "acorn": "bin/acorn" 112 | }, 113 | "engines": { 114 | "node": ">=0.4.0" 115 | } 116 | }, 117 | "node_modules/acorn-jsx": { 118 | "version": "5.3.2", 119 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 120 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 121 | "dev": true, 122 | "peerDependencies": { 123 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 124 | } 125 | }, 126 | "node_modules/ajv": { 127 | "version": "6.12.6", 128 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 129 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 130 | "dev": true, 131 | "dependencies": { 132 | "fast-deep-equal": "^3.1.1", 133 | "fast-json-stable-stringify": "^2.0.0", 134 | "json-schema-traverse": "^0.4.1", 135 | "uri-js": "^4.2.2" 136 | }, 137 | "funding": { 138 | "type": "github", 139 | "url": "https://github.com/sponsors/epoberezkin" 140 | } 141 | }, 142 | "node_modules/ansi-regex": { 143 | "version": "5.0.1", 144 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 145 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 146 | "dev": true, 147 | "engines": { 148 | "node": ">=8" 149 | } 150 | }, 151 | "node_modules/ansi-styles": { 152 | "version": "4.3.0", 153 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 154 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 155 | "dev": true, 156 | "dependencies": { 157 | "color-convert": "^2.0.1" 158 | }, 159 | "engines": { 160 | "node": ">=8" 161 | }, 162 | "funding": { 163 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 164 | } 165 | }, 166 | "node_modules/argparse": { 167 | "version": "2.0.1", 168 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 169 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 170 | "dev": true 171 | }, 172 | "node_modules/balanced-match": { 173 | "version": "1.0.2", 174 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 175 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 176 | "dev": true 177 | }, 178 | "node_modules/brace-expansion": { 179 | "version": "1.1.11", 180 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 181 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 182 | "dev": true, 183 | "dependencies": { 184 | "balanced-match": "^1.0.0", 185 | "concat-map": "0.0.1" 186 | } 187 | }, 188 | "node_modules/callsites": { 189 | "version": "3.1.0", 190 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 191 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 192 | "dev": true, 193 | "engines": { 194 | "node": ">=6" 195 | } 196 | }, 197 | "node_modules/chalk": { 198 | "version": "4.1.2", 199 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 200 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 201 | "dev": true, 202 | "dependencies": { 203 | "ansi-styles": "^4.1.0", 204 | "supports-color": "^7.1.0" 205 | }, 206 | "engines": { 207 | "node": ">=10" 208 | }, 209 | "funding": { 210 | "url": "https://github.com/chalk/chalk?sponsor=1" 211 | } 212 | }, 213 | "node_modules/color-convert": { 214 | "version": "2.0.1", 215 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 216 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 217 | "dev": true, 218 | "dependencies": { 219 | "color-name": "~1.1.4" 220 | }, 221 | "engines": { 222 | "node": ">=7.0.0" 223 | } 224 | }, 225 | "node_modules/color-name": { 226 | "version": "1.1.4", 227 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 228 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 229 | "dev": true 230 | }, 231 | "node_modules/concat-map": { 232 | "version": "0.0.1", 233 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 234 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 235 | "dev": true 236 | }, 237 | "node_modules/cross-spawn": { 238 | "version": "7.0.3", 239 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 240 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 241 | "dev": true, 242 | "dependencies": { 243 | "path-key": "^3.1.0", 244 | "shebang-command": "^2.0.0", 245 | "which": "^2.0.1" 246 | }, 247 | "engines": { 248 | "node": ">= 8" 249 | } 250 | }, 251 | "node_modules/debug": { 252 | "version": "4.3.4", 253 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 254 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 255 | "dev": true, 256 | "dependencies": { 257 | "ms": "2.1.2" 258 | }, 259 | "engines": { 260 | "node": ">=6.0" 261 | }, 262 | "peerDependenciesMeta": { 263 | "supports-color": { 264 | "optional": true 265 | } 266 | } 267 | }, 268 | "node_modules/deep-is": { 269 | "version": "0.1.4", 270 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 271 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 272 | "dev": true 273 | }, 274 | "node_modules/doctrine": { 275 | "version": "3.0.0", 276 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 277 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 278 | "dev": true, 279 | "dependencies": { 280 | "esutils": "^2.0.2" 281 | }, 282 | "engines": { 283 | "node": ">=6.0.0" 284 | } 285 | }, 286 | "node_modules/escape-string-regexp": { 287 | "version": "4.0.0", 288 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 289 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 290 | "dev": true, 291 | "engines": { 292 | "node": ">=10" 293 | }, 294 | "funding": { 295 | "url": "https://github.com/sponsors/sindresorhus" 296 | } 297 | }, 298 | "node_modules/eslint": { 299 | "version": "8.29.0", 300 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.29.0.tgz", 301 | "integrity": "sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==", 302 | "dev": true, 303 | "dependencies": { 304 | "@eslint/eslintrc": "^1.3.3", 305 | "@humanwhocodes/config-array": "^0.11.6", 306 | "@humanwhocodes/module-importer": "^1.0.1", 307 | "@nodelib/fs.walk": "^1.2.8", 308 | "ajv": "^6.10.0", 309 | "chalk": "^4.0.0", 310 | "cross-spawn": "^7.0.2", 311 | "debug": "^4.3.2", 312 | "doctrine": "^3.0.0", 313 | "escape-string-regexp": "^4.0.0", 314 | "eslint-scope": "^7.1.1", 315 | "eslint-utils": "^3.0.0", 316 | "eslint-visitor-keys": "^3.3.0", 317 | "espree": "^9.4.0", 318 | "esquery": "^1.4.0", 319 | "esutils": "^2.0.2", 320 | "fast-deep-equal": "^3.1.3", 321 | "file-entry-cache": "^6.0.1", 322 | "find-up": "^5.0.0", 323 | "glob-parent": "^6.0.2", 324 | "globals": "^13.15.0", 325 | "grapheme-splitter": "^1.0.4", 326 | "ignore": "^5.2.0", 327 | "import-fresh": "^3.0.0", 328 | "imurmurhash": "^0.1.4", 329 | "is-glob": "^4.0.0", 330 | "is-path-inside": "^3.0.3", 331 | "js-sdsl": "^4.1.4", 332 | "js-yaml": "^4.1.0", 333 | "json-stable-stringify-without-jsonify": "^1.0.1", 334 | "levn": "^0.4.1", 335 | "lodash.merge": "^4.6.2", 336 | "minimatch": "^3.1.2", 337 | "natural-compare": "^1.4.0", 338 | "optionator": "^0.9.1", 339 | "regexpp": "^3.2.0", 340 | "strip-ansi": "^6.0.1", 341 | "strip-json-comments": "^3.1.0", 342 | "text-table": "^0.2.0" 343 | }, 344 | "bin": { 345 | "eslint": "bin/eslint.js" 346 | }, 347 | "engines": { 348 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 349 | }, 350 | "funding": { 351 | "url": "https://opencollective.com/eslint" 352 | } 353 | }, 354 | "node_modules/eslint-config-prettier": { 355 | "version": "8.5.0", 356 | "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", 357 | "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", 358 | "dev": true, 359 | "bin": { 360 | "eslint-config-prettier": "bin/cli.js" 361 | }, 362 | "peerDependencies": { 363 | "eslint": ">=7.0.0" 364 | } 365 | }, 366 | "node_modules/eslint-scope": { 367 | "version": "7.1.1", 368 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", 369 | "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", 370 | "dev": true, 371 | "dependencies": { 372 | "esrecurse": "^4.3.0", 373 | "estraverse": "^5.2.0" 374 | }, 375 | "engines": { 376 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 377 | } 378 | }, 379 | "node_modules/eslint-utils": { 380 | "version": "3.0.0", 381 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", 382 | "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", 383 | "dev": true, 384 | "dependencies": { 385 | "eslint-visitor-keys": "^2.0.0" 386 | }, 387 | "engines": { 388 | "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" 389 | }, 390 | "funding": { 391 | "url": "https://github.com/sponsors/mysticatea" 392 | }, 393 | "peerDependencies": { 394 | "eslint": ">=5" 395 | } 396 | }, 397 | "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { 398 | "version": "2.1.0", 399 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", 400 | "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", 401 | "dev": true, 402 | "engines": { 403 | "node": ">=10" 404 | } 405 | }, 406 | "node_modules/eslint-visitor-keys": { 407 | "version": "3.3.0", 408 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", 409 | "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", 410 | "dev": true, 411 | "engines": { 412 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 413 | } 414 | }, 415 | "node_modules/espree": { 416 | "version": "9.4.1", 417 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", 418 | "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", 419 | "dev": true, 420 | "dependencies": { 421 | "acorn": "^8.8.0", 422 | "acorn-jsx": "^5.3.2", 423 | "eslint-visitor-keys": "^3.3.0" 424 | }, 425 | "engines": { 426 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 427 | }, 428 | "funding": { 429 | "url": "https://opencollective.com/eslint" 430 | } 431 | }, 432 | "node_modules/esquery": { 433 | "version": "1.4.0", 434 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", 435 | "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", 436 | "dev": true, 437 | "dependencies": { 438 | "estraverse": "^5.1.0" 439 | }, 440 | "engines": { 441 | "node": ">=0.10" 442 | } 443 | }, 444 | "node_modules/esrecurse": { 445 | "version": "4.3.0", 446 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 447 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 448 | "dev": true, 449 | "dependencies": { 450 | "estraverse": "^5.2.0" 451 | }, 452 | "engines": { 453 | "node": ">=4.0" 454 | } 455 | }, 456 | "node_modules/estraverse": { 457 | "version": "5.3.0", 458 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 459 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 460 | "dev": true, 461 | "engines": { 462 | "node": ">=4.0" 463 | } 464 | }, 465 | "node_modules/esutils": { 466 | "version": "2.0.3", 467 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 468 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 469 | "dev": true, 470 | "engines": { 471 | "node": ">=0.10.0" 472 | } 473 | }, 474 | "node_modules/fast-deep-equal": { 475 | "version": "3.1.3", 476 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 477 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 478 | "dev": true 479 | }, 480 | "node_modules/fast-json-stable-stringify": { 481 | "version": "2.1.0", 482 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 483 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 484 | "dev": true 485 | }, 486 | "node_modules/fast-levenshtein": { 487 | "version": "2.0.6", 488 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 489 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 490 | "dev": true 491 | }, 492 | "node_modules/fastq": { 493 | "version": "1.14.0", 494 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.14.0.tgz", 495 | "integrity": "sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg==", 496 | "dev": true, 497 | "dependencies": { 498 | "reusify": "^1.0.4" 499 | } 500 | }, 501 | "node_modules/file-entry-cache": { 502 | "version": "6.0.1", 503 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 504 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 505 | "dev": true, 506 | "dependencies": { 507 | "flat-cache": "^3.0.4" 508 | }, 509 | "engines": { 510 | "node": "^10.12.0 || >=12.0.0" 511 | } 512 | }, 513 | "node_modules/find-up": { 514 | "version": "5.0.0", 515 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 516 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 517 | "dev": true, 518 | "dependencies": { 519 | "locate-path": "^6.0.0", 520 | "path-exists": "^4.0.0" 521 | }, 522 | "engines": { 523 | "node": ">=10" 524 | }, 525 | "funding": { 526 | "url": "https://github.com/sponsors/sindresorhus" 527 | } 528 | }, 529 | "node_modules/flat-cache": { 530 | "version": "3.0.4", 531 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", 532 | "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", 533 | "dev": true, 534 | "dependencies": { 535 | "flatted": "^3.1.0", 536 | "rimraf": "^3.0.2" 537 | }, 538 | "engines": { 539 | "node": "^10.12.0 || >=12.0.0" 540 | } 541 | }, 542 | "node_modules/flatted": { 543 | "version": "3.2.7", 544 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", 545 | "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", 546 | "dev": true 547 | }, 548 | "node_modules/fs.realpath": { 549 | "version": "1.0.0", 550 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 551 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 552 | "dev": true 553 | }, 554 | "node_modules/glob": { 555 | "version": "7.2.3", 556 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 557 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 558 | "dev": true, 559 | "dependencies": { 560 | "fs.realpath": "^1.0.0", 561 | "inflight": "^1.0.4", 562 | "inherits": "2", 563 | "minimatch": "^3.1.1", 564 | "once": "^1.3.0", 565 | "path-is-absolute": "^1.0.0" 566 | }, 567 | "engines": { 568 | "node": "*" 569 | }, 570 | "funding": { 571 | "url": "https://github.com/sponsors/isaacs" 572 | } 573 | }, 574 | "node_modules/glob-parent": { 575 | "version": "6.0.2", 576 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 577 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 578 | "dev": true, 579 | "dependencies": { 580 | "is-glob": "^4.0.3" 581 | }, 582 | "engines": { 583 | "node": ">=10.13.0" 584 | } 585 | }, 586 | "node_modules/globals": { 587 | "version": "13.18.0", 588 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.18.0.tgz", 589 | "integrity": "sha512-/mR4KI8Ps2spmoc0Ulu9L7agOF0du1CZNQ3dke8yItYlyKNmGrkONemBbd6V8UTc1Wgcqn21t3WYB7dbRmh6/A==", 590 | "dev": true, 591 | "dependencies": { 592 | "type-fest": "^0.20.2" 593 | }, 594 | "engines": { 595 | "node": ">=8" 596 | }, 597 | "funding": { 598 | "url": "https://github.com/sponsors/sindresorhus" 599 | } 600 | }, 601 | "node_modules/grapheme-splitter": { 602 | "version": "1.0.4", 603 | "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", 604 | "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", 605 | "dev": true 606 | }, 607 | "node_modules/has-flag": { 608 | "version": "4.0.0", 609 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 610 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 611 | "dev": true, 612 | "engines": { 613 | "node": ">=8" 614 | } 615 | }, 616 | "node_modules/ignore": { 617 | "version": "5.2.1", 618 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.1.tgz", 619 | "integrity": "sha512-d2qQLzTJ9WxQftPAuEQpSPmKqzxePjzVbpAVv62AQ64NTL+wR4JkrVqR/LqFsFEUsHDAiId52mJteHDFuDkElA==", 620 | "dev": true, 621 | "engines": { 622 | "node": ">= 4" 623 | } 624 | }, 625 | "node_modules/import-fresh": { 626 | "version": "3.3.0", 627 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 628 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 629 | "dev": true, 630 | "dependencies": { 631 | "parent-module": "^1.0.0", 632 | "resolve-from": "^4.0.0" 633 | }, 634 | "engines": { 635 | "node": ">=6" 636 | }, 637 | "funding": { 638 | "url": "https://github.com/sponsors/sindresorhus" 639 | } 640 | }, 641 | "node_modules/imurmurhash": { 642 | "version": "0.1.4", 643 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 644 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 645 | "dev": true, 646 | "engines": { 647 | "node": ">=0.8.19" 648 | } 649 | }, 650 | "node_modules/inflight": { 651 | "version": "1.0.6", 652 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 653 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 654 | "dev": true, 655 | "dependencies": { 656 | "once": "^1.3.0", 657 | "wrappy": "1" 658 | } 659 | }, 660 | "node_modules/inherits": { 661 | "version": "2.0.4", 662 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 663 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 664 | "dev": true 665 | }, 666 | "node_modules/is-extglob": { 667 | "version": "2.1.1", 668 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 669 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 670 | "dev": true, 671 | "engines": { 672 | "node": ">=0.10.0" 673 | } 674 | }, 675 | "node_modules/is-glob": { 676 | "version": "4.0.3", 677 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 678 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 679 | "dev": true, 680 | "dependencies": { 681 | "is-extglob": "^2.1.1" 682 | }, 683 | "engines": { 684 | "node": ">=0.10.0" 685 | } 686 | }, 687 | "node_modules/is-path-inside": { 688 | "version": "3.0.3", 689 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 690 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 691 | "dev": true, 692 | "engines": { 693 | "node": ">=8" 694 | } 695 | }, 696 | "node_modules/isexe": { 697 | "version": "2.0.0", 698 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 699 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 700 | "dev": true 701 | }, 702 | "node_modules/js-sdsl": { 703 | "version": "4.2.0", 704 | "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.2.0.tgz", 705 | "integrity": "sha512-dyBIzQBDkCqCu+0upx25Y2jGdbTGxE9fshMsCdK0ViOongpV+n5tXRcZY9v7CaVQ79AGS9KA1KHtojxiM7aXSQ==", 706 | "dev": true, 707 | "funding": { 708 | "type": "opencollective", 709 | "url": "https://opencollective.com/js-sdsl" 710 | } 711 | }, 712 | "node_modules/js-yaml": { 713 | "version": "4.1.0", 714 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 715 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 716 | "dev": true, 717 | "dependencies": { 718 | "argparse": "^2.0.1" 719 | }, 720 | "bin": { 721 | "js-yaml": "bin/js-yaml.js" 722 | } 723 | }, 724 | "node_modules/json-schema-traverse": { 725 | "version": "0.4.1", 726 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 727 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 728 | "dev": true 729 | }, 730 | "node_modules/json-stable-stringify-without-jsonify": { 731 | "version": "1.0.1", 732 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 733 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 734 | "dev": true 735 | }, 736 | "node_modules/levn": { 737 | "version": "0.4.1", 738 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 739 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 740 | "dev": true, 741 | "dependencies": { 742 | "prelude-ls": "^1.2.1", 743 | "type-check": "~0.4.0" 744 | }, 745 | "engines": { 746 | "node": ">= 0.8.0" 747 | } 748 | }, 749 | "node_modules/locate-path": { 750 | "version": "6.0.0", 751 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 752 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 753 | "dev": true, 754 | "dependencies": { 755 | "p-locate": "^5.0.0" 756 | }, 757 | "engines": { 758 | "node": ">=10" 759 | }, 760 | "funding": { 761 | "url": "https://github.com/sponsors/sindresorhus" 762 | } 763 | }, 764 | "node_modules/lodash.merge": { 765 | "version": "4.6.2", 766 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 767 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 768 | "dev": true 769 | }, 770 | "node_modules/minimatch": { 771 | "version": "3.1.2", 772 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 773 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 774 | "dev": true, 775 | "dependencies": { 776 | "brace-expansion": "^1.1.7" 777 | }, 778 | "engines": { 779 | "node": "*" 780 | } 781 | }, 782 | "node_modules/ms": { 783 | "version": "2.1.2", 784 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 785 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 786 | "dev": true 787 | }, 788 | "node_modules/natural-compare": { 789 | "version": "1.4.0", 790 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 791 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 792 | "dev": true 793 | }, 794 | "node_modules/once": { 795 | "version": "1.4.0", 796 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 797 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 798 | "dev": true, 799 | "dependencies": { 800 | "wrappy": "1" 801 | } 802 | }, 803 | "node_modules/optionator": { 804 | "version": "0.9.1", 805 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", 806 | "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", 807 | "dev": true, 808 | "dependencies": { 809 | "deep-is": "^0.1.3", 810 | "fast-levenshtein": "^2.0.6", 811 | "levn": "^0.4.1", 812 | "prelude-ls": "^1.2.1", 813 | "type-check": "^0.4.0", 814 | "word-wrap": "^1.2.3" 815 | }, 816 | "engines": { 817 | "node": ">= 0.8.0" 818 | } 819 | }, 820 | "node_modules/p-limit": { 821 | "version": "3.1.0", 822 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 823 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 824 | "dev": true, 825 | "dependencies": { 826 | "yocto-queue": "^0.1.0" 827 | }, 828 | "engines": { 829 | "node": ">=10" 830 | }, 831 | "funding": { 832 | "url": "https://github.com/sponsors/sindresorhus" 833 | } 834 | }, 835 | "node_modules/p-locate": { 836 | "version": "5.0.0", 837 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 838 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 839 | "dev": true, 840 | "dependencies": { 841 | "p-limit": "^3.0.2" 842 | }, 843 | "engines": { 844 | "node": ">=10" 845 | }, 846 | "funding": { 847 | "url": "https://github.com/sponsors/sindresorhus" 848 | } 849 | }, 850 | "node_modules/parent-module": { 851 | "version": "1.0.1", 852 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 853 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 854 | "dev": true, 855 | "dependencies": { 856 | "callsites": "^3.0.0" 857 | }, 858 | "engines": { 859 | "node": ">=6" 860 | } 861 | }, 862 | "node_modules/path-exists": { 863 | "version": "4.0.0", 864 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 865 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 866 | "dev": true, 867 | "engines": { 868 | "node": ">=8" 869 | } 870 | }, 871 | "node_modules/path-is-absolute": { 872 | "version": "1.0.1", 873 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 874 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 875 | "dev": true, 876 | "engines": { 877 | "node": ">=0.10.0" 878 | } 879 | }, 880 | "node_modules/path-key": { 881 | "version": "3.1.1", 882 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 883 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 884 | "dev": true, 885 | "engines": { 886 | "node": ">=8" 887 | } 888 | }, 889 | "node_modules/prelude-ls": { 890 | "version": "1.2.1", 891 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 892 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 893 | "dev": true, 894 | "engines": { 895 | "node": ">= 0.8.0" 896 | } 897 | }, 898 | "node_modules/prettier": { 899 | "version": "2.8.0", 900 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.0.tgz", 901 | "integrity": "sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==", 902 | "dev": true, 903 | "bin": { 904 | "prettier": "bin-prettier.js" 905 | }, 906 | "engines": { 907 | "node": ">=10.13.0" 908 | }, 909 | "funding": { 910 | "url": "https://github.com/prettier/prettier?sponsor=1" 911 | } 912 | }, 913 | "node_modules/punycode": { 914 | "version": "2.1.1", 915 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 916 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", 917 | "dev": true, 918 | "engines": { 919 | "node": ">=6" 920 | } 921 | }, 922 | "node_modules/queue-microtask": { 923 | "version": "1.2.3", 924 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 925 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 926 | "dev": true, 927 | "funding": [ 928 | { 929 | "type": "github", 930 | "url": "https://github.com/sponsors/feross" 931 | }, 932 | { 933 | "type": "patreon", 934 | "url": "https://www.patreon.com/feross" 935 | }, 936 | { 937 | "type": "consulting", 938 | "url": "https://feross.org/support" 939 | } 940 | ] 941 | }, 942 | "node_modules/regexpp": { 943 | "version": "3.2.0", 944 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", 945 | "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", 946 | "dev": true, 947 | "engines": { 948 | "node": ">=8" 949 | }, 950 | "funding": { 951 | "url": "https://github.com/sponsors/mysticatea" 952 | } 953 | }, 954 | "node_modules/resolve-from": { 955 | "version": "4.0.0", 956 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 957 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 958 | "dev": true, 959 | "engines": { 960 | "node": ">=4" 961 | } 962 | }, 963 | "node_modules/reusify": { 964 | "version": "1.0.4", 965 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 966 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 967 | "dev": true, 968 | "engines": { 969 | "iojs": ">=1.0.0", 970 | "node": ">=0.10.0" 971 | } 972 | }, 973 | "node_modules/rimraf": { 974 | "version": "3.0.2", 975 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 976 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 977 | "dev": true, 978 | "dependencies": { 979 | "glob": "^7.1.3" 980 | }, 981 | "bin": { 982 | "rimraf": "bin.js" 983 | }, 984 | "funding": { 985 | "url": "https://github.com/sponsors/isaacs" 986 | } 987 | }, 988 | "node_modules/run-parallel": { 989 | "version": "1.2.0", 990 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 991 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 992 | "dev": true, 993 | "funding": [ 994 | { 995 | "type": "github", 996 | "url": "https://github.com/sponsors/feross" 997 | }, 998 | { 999 | "type": "patreon", 1000 | "url": "https://www.patreon.com/feross" 1001 | }, 1002 | { 1003 | "type": "consulting", 1004 | "url": "https://feross.org/support" 1005 | } 1006 | ], 1007 | "dependencies": { 1008 | "queue-microtask": "^1.2.2" 1009 | } 1010 | }, 1011 | "node_modules/shebang-command": { 1012 | "version": "2.0.0", 1013 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1014 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1015 | "dev": true, 1016 | "dependencies": { 1017 | "shebang-regex": "^3.0.0" 1018 | }, 1019 | "engines": { 1020 | "node": ">=8" 1021 | } 1022 | }, 1023 | "node_modules/shebang-regex": { 1024 | "version": "3.0.0", 1025 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1026 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1027 | "dev": true, 1028 | "engines": { 1029 | "node": ">=8" 1030 | } 1031 | }, 1032 | "node_modules/strip-ansi": { 1033 | "version": "6.0.1", 1034 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1035 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1036 | "dev": true, 1037 | "dependencies": { 1038 | "ansi-regex": "^5.0.1" 1039 | }, 1040 | "engines": { 1041 | "node": ">=8" 1042 | } 1043 | }, 1044 | "node_modules/strip-json-comments": { 1045 | "version": "3.1.1", 1046 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 1047 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 1048 | "dev": true, 1049 | "engines": { 1050 | "node": ">=8" 1051 | }, 1052 | "funding": { 1053 | "url": "https://github.com/sponsors/sindresorhus" 1054 | } 1055 | }, 1056 | "node_modules/supports-color": { 1057 | "version": "7.2.0", 1058 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 1059 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1060 | "dev": true, 1061 | "dependencies": { 1062 | "has-flag": "^4.0.0" 1063 | }, 1064 | "engines": { 1065 | "node": ">=8" 1066 | } 1067 | }, 1068 | "node_modules/text-table": { 1069 | "version": "0.2.0", 1070 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 1071 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", 1072 | "dev": true 1073 | }, 1074 | "node_modules/type-check": { 1075 | "version": "0.4.0", 1076 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 1077 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 1078 | "dev": true, 1079 | "dependencies": { 1080 | "prelude-ls": "^1.2.1" 1081 | }, 1082 | "engines": { 1083 | "node": ">= 0.8.0" 1084 | } 1085 | }, 1086 | "node_modules/type-fest": { 1087 | "version": "0.20.2", 1088 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", 1089 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 1090 | "dev": true, 1091 | "engines": { 1092 | "node": ">=10" 1093 | }, 1094 | "funding": { 1095 | "url": "https://github.com/sponsors/sindresorhus" 1096 | } 1097 | }, 1098 | "node_modules/uri-js": { 1099 | "version": "4.4.1", 1100 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 1101 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 1102 | "dev": true, 1103 | "dependencies": { 1104 | "punycode": "^2.1.0" 1105 | } 1106 | }, 1107 | "node_modules/which": { 1108 | "version": "2.0.2", 1109 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 1110 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 1111 | "dev": true, 1112 | "dependencies": { 1113 | "isexe": "^2.0.0" 1114 | }, 1115 | "bin": { 1116 | "node-which": "bin/node-which" 1117 | }, 1118 | "engines": { 1119 | "node": ">= 8" 1120 | } 1121 | }, 1122 | "node_modules/word-wrap": { 1123 | "version": "1.2.3", 1124 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", 1125 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", 1126 | "dev": true, 1127 | "engines": { 1128 | "node": ">=0.10.0" 1129 | } 1130 | }, 1131 | "node_modules/wrappy": { 1132 | "version": "1.0.2", 1133 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1134 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 1135 | "dev": true 1136 | }, 1137 | "node_modules/yocto-queue": { 1138 | "version": "0.1.0", 1139 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 1140 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 1141 | "dev": true, 1142 | "engines": { 1143 | "node": ">=10" 1144 | }, 1145 | "funding": { 1146 | "url": "https://github.com/sponsors/sindresorhus" 1147 | } 1148 | } 1149 | }, 1150 | "dependencies": { 1151 | "@eslint/eslintrc": { 1152 | "version": "1.3.3", 1153 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.3.tgz", 1154 | "integrity": "sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==", 1155 | "dev": true, 1156 | "requires": { 1157 | "ajv": "^6.12.4", 1158 | "debug": "^4.3.2", 1159 | "espree": "^9.4.0", 1160 | "globals": "^13.15.0", 1161 | "ignore": "^5.2.0", 1162 | "import-fresh": "^3.2.1", 1163 | "js-yaml": "^4.1.0", 1164 | "minimatch": "^3.1.2", 1165 | "strip-json-comments": "^3.1.1" 1166 | } 1167 | }, 1168 | "@humanwhocodes/config-array": { 1169 | "version": "0.11.7", 1170 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.7.tgz", 1171 | "integrity": "sha512-kBbPWzN8oVMLb0hOUYXhmxggL/1cJE6ydvjDIGi9EnAGUyA7cLVKQg+d/Dsm+KZwx2czGHrCmMVLiyg8s5JPKw==", 1172 | "dev": true, 1173 | "requires": { 1174 | "@humanwhocodes/object-schema": "^1.2.1", 1175 | "debug": "^4.1.1", 1176 | "minimatch": "^3.0.5" 1177 | } 1178 | }, 1179 | "@humanwhocodes/module-importer": { 1180 | "version": "1.0.1", 1181 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 1182 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 1183 | "dev": true 1184 | }, 1185 | "@humanwhocodes/object-schema": { 1186 | "version": "1.2.1", 1187 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", 1188 | "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", 1189 | "dev": true 1190 | }, 1191 | "@nodelib/fs.scandir": { 1192 | "version": "2.1.5", 1193 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 1194 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 1195 | "dev": true, 1196 | "requires": { 1197 | "@nodelib/fs.stat": "2.0.5", 1198 | "run-parallel": "^1.1.9" 1199 | } 1200 | }, 1201 | "@nodelib/fs.stat": { 1202 | "version": "2.0.5", 1203 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 1204 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 1205 | "dev": true 1206 | }, 1207 | "@nodelib/fs.walk": { 1208 | "version": "1.2.8", 1209 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 1210 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 1211 | "dev": true, 1212 | "requires": { 1213 | "@nodelib/fs.scandir": "2.1.5", 1214 | "fastq": "^1.6.0" 1215 | } 1216 | }, 1217 | "acorn": { 1218 | "version": "8.8.1", 1219 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", 1220 | "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", 1221 | "dev": true 1222 | }, 1223 | "acorn-jsx": { 1224 | "version": "5.3.2", 1225 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 1226 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 1227 | "dev": true, 1228 | "requires": {} 1229 | }, 1230 | "ajv": { 1231 | "version": "6.12.6", 1232 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 1233 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 1234 | "dev": true, 1235 | "requires": { 1236 | "fast-deep-equal": "^3.1.1", 1237 | "fast-json-stable-stringify": "^2.0.0", 1238 | "json-schema-traverse": "^0.4.1", 1239 | "uri-js": "^4.2.2" 1240 | } 1241 | }, 1242 | "ansi-regex": { 1243 | "version": "5.0.1", 1244 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1245 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 1246 | "dev": true 1247 | }, 1248 | "ansi-styles": { 1249 | "version": "4.3.0", 1250 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 1251 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 1252 | "dev": true, 1253 | "requires": { 1254 | "color-convert": "^2.0.1" 1255 | } 1256 | }, 1257 | "argparse": { 1258 | "version": "2.0.1", 1259 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 1260 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 1261 | "dev": true 1262 | }, 1263 | "balanced-match": { 1264 | "version": "1.0.2", 1265 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 1266 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 1267 | "dev": true 1268 | }, 1269 | "brace-expansion": { 1270 | "version": "1.1.11", 1271 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 1272 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 1273 | "dev": true, 1274 | "requires": { 1275 | "balanced-match": "^1.0.0", 1276 | "concat-map": "0.0.1" 1277 | } 1278 | }, 1279 | "callsites": { 1280 | "version": "3.1.0", 1281 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 1282 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 1283 | "dev": true 1284 | }, 1285 | "chalk": { 1286 | "version": "4.1.2", 1287 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 1288 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 1289 | "dev": true, 1290 | "requires": { 1291 | "ansi-styles": "^4.1.0", 1292 | "supports-color": "^7.1.0" 1293 | } 1294 | }, 1295 | "color-convert": { 1296 | "version": "2.0.1", 1297 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 1298 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 1299 | "dev": true, 1300 | "requires": { 1301 | "color-name": "~1.1.4" 1302 | } 1303 | }, 1304 | "color-name": { 1305 | "version": "1.1.4", 1306 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 1307 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 1308 | "dev": true 1309 | }, 1310 | "concat-map": { 1311 | "version": "0.0.1", 1312 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 1313 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 1314 | "dev": true 1315 | }, 1316 | "cross-spawn": { 1317 | "version": "7.0.3", 1318 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 1319 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 1320 | "dev": true, 1321 | "requires": { 1322 | "path-key": "^3.1.0", 1323 | "shebang-command": "^2.0.0", 1324 | "which": "^2.0.1" 1325 | } 1326 | }, 1327 | "debug": { 1328 | "version": "4.3.4", 1329 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 1330 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 1331 | "dev": true, 1332 | "requires": { 1333 | "ms": "2.1.2" 1334 | } 1335 | }, 1336 | "deep-is": { 1337 | "version": "0.1.4", 1338 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 1339 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 1340 | "dev": true 1341 | }, 1342 | "doctrine": { 1343 | "version": "3.0.0", 1344 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 1345 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 1346 | "dev": true, 1347 | "requires": { 1348 | "esutils": "^2.0.2" 1349 | } 1350 | }, 1351 | "escape-string-regexp": { 1352 | "version": "4.0.0", 1353 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 1354 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 1355 | "dev": true 1356 | }, 1357 | "eslint": { 1358 | "version": "8.29.0", 1359 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.29.0.tgz", 1360 | "integrity": "sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==", 1361 | "dev": true, 1362 | "requires": { 1363 | "@eslint/eslintrc": "^1.3.3", 1364 | "@humanwhocodes/config-array": "^0.11.6", 1365 | "@humanwhocodes/module-importer": "^1.0.1", 1366 | "@nodelib/fs.walk": "^1.2.8", 1367 | "ajv": "^6.10.0", 1368 | "chalk": "^4.0.0", 1369 | "cross-spawn": "^7.0.2", 1370 | "debug": "^4.3.2", 1371 | "doctrine": "^3.0.0", 1372 | "escape-string-regexp": "^4.0.0", 1373 | "eslint-scope": "^7.1.1", 1374 | "eslint-utils": "^3.0.0", 1375 | "eslint-visitor-keys": "^3.3.0", 1376 | "espree": "^9.4.0", 1377 | "esquery": "^1.4.0", 1378 | "esutils": "^2.0.2", 1379 | "fast-deep-equal": "^3.1.3", 1380 | "file-entry-cache": "^6.0.1", 1381 | "find-up": "^5.0.0", 1382 | "glob-parent": "^6.0.2", 1383 | "globals": "^13.15.0", 1384 | "grapheme-splitter": "^1.0.4", 1385 | "ignore": "^5.2.0", 1386 | "import-fresh": "^3.0.0", 1387 | "imurmurhash": "^0.1.4", 1388 | "is-glob": "^4.0.0", 1389 | "is-path-inside": "^3.0.3", 1390 | "js-sdsl": "^4.1.4", 1391 | "js-yaml": "^4.1.0", 1392 | "json-stable-stringify-without-jsonify": "^1.0.1", 1393 | "levn": "^0.4.1", 1394 | "lodash.merge": "^4.6.2", 1395 | "minimatch": "^3.1.2", 1396 | "natural-compare": "^1.4.0", 1397 | "optionator": "^0.9.1", 1398 | "regexpp": "^3.2.0", 1399 | "strip-ansi": "^6.0.1", 1400 | "strip-json-comments": "^3.1.0", 1401 | "text-table": "^0.2.0" 1402 | } 1403 | }, 1404 | "eslint-config-prettier": { 1405 | "version": "8.5.0", 1406 | "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", 1407 | "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", 1408 | "dev": true, 1409 | "requires": {} 1410 | }, 1411 | "eslint-scope": { 1412 | "version": "7.1.1", 1413 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", 1414 | "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", 1415 | "dev": true, 1416 | "requires": { 1417 | "esrecurse": "^4.3.0", 1418 | "estraverse": "^5.2.0" 1419 | } 1420 | }, 1421 | "eslint-utils": { 1422 | "version": "3.0.0", 1423 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", 1424 | "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", 1425 | "dev": true, 1426 | "requires": { 1427 | "eslint-visitor-keys": "^2.0.0" 1428 | }, 1429 | "dependencies": { 1430 | "eslint-visitor-keys": { 1431 | "version": "2.1.0", 1432 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", 1433 | "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", 1434 | "dev": true 1435 | } 1436 | } 1437 | }, 1438 | "eslint-visitor-keys": { 1439 | "version": "3.3.0", 1440 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", 1441 | "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", 1442 | "dev": true 1443 | }, 1444 | "espree": { 1445 | "version": "9.4.1", 1446 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", 1447 | "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", 1448 | "dev": true, 1449 | "requires": { 1450 | "acorn": "^8.8.0", 1451 | "acorn-jsx": "^5.3.2", 1452 | "eslint-visitor-keys": "^3.3.0" 1453 | } 1454 | }, 1455 | "esquery": { 1456 | "version": "1.4.0", 1457 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", 1458 | "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", 1459 | "dev": true, 1460 | "requires": { 1461 | "estraverse": "^5.1.0" 1462 | } 1463 | }, 1464 | "esrecurse": { 1465 | "version": "4.3.0", 1466 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 1467 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 1468 | "dev": true, 1469 | "requires": { 1470 | "estraverse": "^5.2.0" 1471 | } 1472 | }, 1473 | "estraverse": { 1474 | "version": "5.3.0", 1475 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1476 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1477 | "dev": true 1478 | }, 1479 | "esutils": { 1480 | "version": "2.0.3", 1481 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 1482 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 1483 | "dev": true 1484 | }, 1485 | "fast-deep-equal": { 1486 | "version": "3.1.3", 1487 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1488 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1489 | "dev": true 1490 | }, 1491 | "fast-json-stable-stringify": { 1492 | "version": "2.1.0", 1493 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1494 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1495 | "dev": true 1496 | }, 1497 | "fast-levenshtein": { 1498 | "version": "2.0.6", 1499 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1500 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1501 | "dev": true 1502 | }, 1503 | "fastq": { 1504 | "version": "1.14.0", 1505 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.14.0.tgz", 1506 | "integrity": "sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg==", 1507 | "dev": true, 1508 | "requires": { 1509 | "reusify": "^1.0.4" 1510 | } 1511 | }, 1512 | "file-entry-cache": { 1513 | "version": "6.0.1", 1514 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 1515 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 1516 | "dev": true, 1517 | "requires": { 1518 | "flat-cache": "^3.0.4" 1519 | } 1520 | }, 1521 | "find-up": { 1522 | "version": "5.0.0", 1523 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1524 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1525 | "dev": true, 1526 | "requires": { 1527 | "locate-path": "^6.0.0", 1528 | "path-exists": "^4.0.0" 1529 | } 1530 | }, 1531 | "flat-cache": { 1532 | "version": "3.0.4", 1533 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", 1534 | "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", 1535 | "dev": true, 1536 | "requires": { 1537 | "flatted": "^3.1.0", 1538 | "rimraf": "^3.0.2" 1539 | } 1540 | }, 1541 | "flatted": { 1542 | "version": "3.2.7", 1543 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", 1544 | "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", 1545 | "dev": true 1546 | }, 1547 | "fs.realpath": { 1548 | "version": "1.0.0", 1549 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1550 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1551 | "dev": true 1552 | }, 1553 | "glob": { 1554 | "version": "7.2.3", 1555 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 1556 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1557 | "dev": true, 1558 | "requires": { 1559 | "fs.realpath": "^1.0.0", 1560 | "inflight": "^1.0.4", 1561 | "inherits": "2", 1562 | "minimatch": "^3.1.1", 1563 | "once": "^1.3.0", 1564 | "path-is-absolute": "^1.0.0" 1565 | } 1566 | }, 1567 | "glob-parent": { 1568 | "version": "6.0.2", 1569 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 1570 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1571 | "dev": true, 1572 | "requires": { 1573 | "is-glob": "^4.0.3" 1574 | } 1575 | }, 1576 | "globals": { 1577 | "version": "13.18.0", 1578 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.18.0.tgz", 1579 | "integrity": "sha512-/mR4KI8Ps2spmoc0Ulu9L7agOF0du1CZNQ3dke8yItYlyKNmGrkONemBbd6V8UTc1Wgcqn21t3WYB7dbRmh6/A==", 1580 | "dev": true, 1581 | "requires": { 1582 | "type-fest": "^0.20.2" 1583 | } 1584 | }, 1585 | "grapheme-splitter": { 1586 | "version": "1.0.4", 1587 | "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", 1588 | "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", 1589 | "dev": true 1590 | }, 1591 | "has-flag": { 1592 | "version": "4.0.0", 1593 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1594 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1595 | "dev": true 1596 | }, 1597 | "ignore": { 1598 | "version": "5.2.1", 1599 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.1.tgz", 1600 | "integrity": "sha512-d2qQLzTJ9WxQftPAuEQpSPmKqzxePjzVbpAVv62AQ64NTL+wR4JkrVqR/LqFsFEUsHDAiId52mJteHDFuDkElA==", 1601 | "dev": true 1602 | }, 1603 | "import-fresh": { 1604 | "version": "3.3.0", 1605 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1606 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1607 | "dev": true, 1608 | "requires": { 1609 | "parent-module": "^1.0.0", 1610 | "resolve-from": "^4.0.0" 1611 | } 1612 | }, 1613 | "imurmurhash": { 1614 | "version": "0.1.4", 1615 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1616 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1617 | "dev": true 1618 | }, 1619 | "inflight": { 1620 | "version": "1.0.6", 1621 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1622 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1623 | "dev": true, 1624 | "requires": { 1625 | "once": "^1.3.0", 1626 | "wrappy": "1" 1627 | } 1628 | }, 1629 | "inherits": { 1630 | "version": "2.0.4", 1631 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1632 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1633 | "dev": true 1634 | }, 1635 | "is-extglob": { 1636 | "version": "2.1.1", 1637 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1638 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1639 | "dev": true 1640 | }, 1641 | "is-glob": { 1642 | "version": "4.0.3", 1643 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1644 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1645 | "dev": true, 1646 | "requires": { 1647 | "is-extglob": "^2.1.1" 1648 | } 1649 | }, 1650 | "is-path-inside": { 1651 | "version": "3.0.3", 1652 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 1653 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 1654 | "dev": true 1655 | }, 1656 | "isexe": { 1657 | "version": "2.0.0", 1658 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1659 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1660 | "dev": true 1661 | }, 1662 | "js-sdsl": { 1663 | "version": "4.2.0", 1664 | "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.2.0.tgz", 1665 | "integrity": "sha512-dyBIzQBDkCqCu+0upx25Y2jGdbTGxE9fshMsCdK0ViOongpV+n5tXRcZY9v7CaVQ79AGS9KA1KHtojxiM7aXSQ==", 1666 | "dev": true 1667 | }, 1668 | "js-yaml": { 1669 | "version": "4.1.0", 1670 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1671 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1672 | "dev": true, 1673 | "requires": { 1674 | "argparse": "^2.0.1" 1675 | } 1676 | }, 1677 | "json-schema-traverse": { 1678 | "version": "0.4.1", 1679 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1680 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1681 | "dev": true 1682 | }, 1683 | "json-stable-stringify-without-jsonify": { 1684 | "version": "1.0.1", 1685 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1686 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 1687 | "dev": true 1688 | }, 1689 | "levn": { 1690 | "version": "0.4.1", 1691 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1692 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1693 | "dev": true, 1694 | "requires": { 1695 | "prelude-ls": "^1.2.1", 1696 | "type-check": "~0.4.0" 1697 | } 1698 | }, 1699 | "locate-path": { 1700 | "version": "6.0.0", 1701 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1702 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1703 | "dev": true, 1704 | "requires": { 1705 | "p-locate": "^5.0.0" 1706 | } 1707 | }, 1708 | "lodash.merge": { 1709 | "version": "4.6.2", 1710 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1711 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1712 | "dev": true 1713 | }, 1714 | "minimatch": { 1715 | "version": "3.1.2", 1716 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1717 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1718 | "dev": true, 1719 | "requires": { 1720 | "brace-expansion": "^1.1.7" 1721 | } 1722 | }, 1723 | "ms": { 1724 | "version": "2.1.2", 1725 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1726 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1727 | "dev": true 1728 | }, 1729 | "natural-compare": { 1730 | "version": "1.4.0", 1731 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1732 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 1733 | "dev": true 1734 | }, 1735 | "once": { 1736 | "version": "1.4.0", 1737 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1738 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1739 | "dev": true, 1740 | "requires": { 1741 | "wrappy": "1" 1742 | } 1743 | }, 1744 | "optionator": { 1745 | "version": "0.9.1", 1746 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", 1747 | "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", 1748 | "dev": true, 1749 | "requires": { 1750 | "deep-is": "^0.1.3", 1751 | "fast-levenshtein": "^2.0.6", 1752 | "levn": "^0.4.1", 1753 | "prelude-ls": "^1.2.1", 1754 | "type-check": "^0.4.0", 1755 | "word-wrap": "^1.2.3" 1756 | } 1757 | }, 1758 | "p-limit": { 1759 | "version": "3.1.0", 1760 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1761 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1762 | "dev": true, 1763 | "requires": { 1764 | "yocto-queue": "^0.1.0" 1765 | } 1766 | }, 1767 | "p-locate": { 1768 | "version": "5.0.0", 1769 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1770 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1771 | "dev": true, 1772 | "requires": { 1773 | "p-limit": "^3.0.2" 1774 | } 1775 | }, 1776 | "parent-module": { 1777 | "version": "1.0.1", 1778 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1779 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1780 | "dev": true, 1781 | "requires": { 1782 | "callsites": "^3.0.0" 1783 | } 1784 | }, 1785 | "path-exists": { 1786 | "version": "4.0.0", 1787 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1788 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1789 | "dev": true 1790 | }, 1791 | "path-is-absolute": { 1792 | "version": "1.0.1", 1793 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1794 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1795 | "dev": true 1796 | }, 1797 | "path-key": { 1798 | "version": "3.1.1", 1799 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1800 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1801 | "dev": true 1802 | }, 1803 | "prelude-ls": { 1804 | "version": "1.2.1", 1805 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 1806 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 1807 | "dev": true 1808 | }, 1809 | "prettier": { 1810 | "version": "2.8.0", 1811 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.0.tgz", 1812 | "integrity": "sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==", 1813 | "dev": true 1814 | }, 1815 | "punycode": { 1816 | "version": "2.1.1", 1817 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 1818 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", 1819 | "dev": true 1820 | }, 1821 | "queue-microtask": { 1822 | "version": "1.2.3", 1823 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 1824 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 1825 | "dev": true 1826 | }, 1827 | "regexpp": { 1828 | "version": "3.2.0", 1829 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", 1830 | "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", 1831 | "dev": true 1832 | }, 1833 | "resolve-from": { 1834 | "version": "4.0.0", 1835 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1836 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1837 | "dev": true 1838 | }, 1839 | "reusify": { 1840 | "version": "1.0.4", 1841 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 1842 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 1843 | "dev": true 1844 | }, 1845 | "rimraf": { 1846 | "version": "3.0.2", 1847 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 1848 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 1849 | "dev": true, 1850 | "requires": { 1851 | "glob": "^7.1.3" 1852 | } 1853 | }, 1854 | "run-parallel": { 1855 | "version": "1.2.0", 1856 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 1857 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 1858 | "dev": true, 1859 | "requires": { 1860 | "queue-microtask": "^1.2.2" 1861 | } 1862 | }, 1863 | "shebang-command": { 1864 | "version": "2.0.0", 1865 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1866 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1867 | "dev": true, 1868 | "requires": { 1869 | "shebang-regex": "^3.0.0" 1870 | } 1871 | }, 1872 | "shebang-regex": { 1873 | "version": "3.0.0", 1874 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1875 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1876 | "dev": true 1877 | }, 1878 | "strip-ansi": { 1879 | "version": "6.0.1", 1880 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1881 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1882 | "dev": true, 1883 | "requires": { 1884 | "ansi-regex": "^5.0.1" 1885 | } 1886 | }, 1887 | "strip-json-comments": { 1888 | "version": "3.1.1", 1889 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 1890 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 1891 | "dev": true 1892 | }, 1893 | "supports-color": { 1894 | "version": "7.2.0", 1895 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 1896 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1897 | "dev": true, 1898 | "requires": { 1899 | "has-flag": "^4.0.0" 1900 | } 1901 | }, 1902 | "text-table": { 1903 | "version": "0.2.0", 1904 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 1905 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", 1906 | "dev": true 1907 | }, 1908 | "type-check": { 1909 | "version": "0.4.0", 1910 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 1911 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 1912 | "dev": true, 1913 | "requires": { 1914 | "prelude-ls": "^1.2.1" 1915 | } 1916 | }, 1917 | "type-fest": { 1918 | "version": "0.20.2", 1919 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", 1920 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 1921 | "dev": true 1922 | }, 1923 | "uri-js": { 1924 | "version": "4.4.1", 1925 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 1926 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 1927 | "dev": true, 1928 | "requires": { 1929 | "punycode": "^2.1.0" 1930 | } 1931 | }, 1932 | "which": { 1933 | "version": "2.0.2", 1934 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 1935 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 1936 | "dev": true, 1937 | "requires": { 1938 | "isexe": "^2.0.0" 1939 | } 1940 | }, 1941 | "word-wrap": { 1942 | "version": "1.2.3", 1943 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", 1944 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", 1945 | "dev": true 1946 | }, 1947 | "wrappy": { 1948 | "version": "1.0.2", 1949 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1950 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 1951 | "dev": true 1952 | }, 1953 | "yocto-queue": { 1954 | "version": "0.1.0", 1955 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 1956 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 1957 | "dev": true 1958 | } 1959 | } 1960 | } 1961 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tubearchivist-browser-extension", 3 | "private": true, 4 | "scripts": { 5 | "lint": "eslint 'extension/**/*.js'", 6 | "format": "prettier --write 'extension/**/*.js'" 7 | }, 8 | "devDependencies": { 9 | "eslint": "^8.26.0", 10 | "prettier": "^2.7.1", 11 | "eslint-config-prettier": "^8.5.0" 12 | }, 13 | "prettier": { 14 | "singleQuote": true, 15 | "arrowParens": "avoid", 16 | "printWidth": 100 17 | } 18 | } 19 | --------------------------------------------------------------------------------