├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── index.html ├── package.json ├── pnpm-lock.yaml ├── src ├── assets │ ├── app.scss │ ├── fonts.scss │ ├── fonts │ │ ├── Calibri_Regular.ttf │ │ ├── Lexend-Light.ttf │ │ ├── Lexend-Regular.ttf │ │ ├── Lexend-SemiBold.ttf │ │ ├── OpenDyslexic-Regular.otf │ │ └── Roboto-Regular.ttf │ ├── languages.json │ ├── rtl_languages.json │ └── vars.scss ├── components │ ├── Captions.svelte │ ├── Config.svelte │ ├── DropdownIcon.svelte │ ├── InputButton.svelte │ ├── LanguageSelect.svelte │ ├── NumberInput.svelte │ ├── Overlay.svelte │ ├── Settings.svelte │ ├── Transcript.svelte │ └── Warning.svelte ├── lib │ ├── captions.ts │ ├── settings.ts │ ├── stores │ │ ├── persistedStore.ts │ │ ├── resetablePersisted.ts │ │ └── smoothText.ts │ ├── twitch.ts │ └── utils.ts ├── main.ts └── vite-env.d.ts ├── svelte.config.js ├── tsconfig.json ├── tsconfig.node.json └── vite.config.ts /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | data 3 | secrets 4 | cert 5 | .env 6 | docker-compose.override.yml 7 | dist 8 | build 9 | extension*.zip -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:18-alpine3.18 AS base 2 | 3 | ENV PNPM_HOME="/pnpm" 4 | ENV PATH="$PNPM_HOME:$PATH" 5 | 6 | WORKDIR /app 7 | 8 | RUN npm install -g corepack@latest 9 | RUN corepack enable 10 | 11 | #copy config 12 | COPY *.json vite.config.ts svelte.config.js pnpm-lock.yaml ./ 13 | RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm i --frozen-lockfile 14 | 15 | #copy src files 16 | COPY index.html ./ 17 | COPY src ./src/ 18 | 19 | CMD [ "pnpm", "dev", "--host" ] 20 | -------------------------------------------------------------------------------- /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 | # UltimateClosedCaptions 2 | 3 | Closed captions extension for Twitch. 4 | 5 | https://ultimatecc.net 6 | 7 | Join our discord: https://discord.gg/f8fUqHwtHx 8 | 9 | ## Dev 10 | - Go to https://dev.twitch.tv/console/ and create an extension 11 | - Config asset hosting: 12 | - Base test uri: https://localhost:5174/ 13 | - Configure all pages to `index.html` 14 | - Whitelist accounts for testing 15 | - Activate the extension on your channel 16 | - Install libs: `pnpm install` 17 | - Start local dev server: `pnpm dev` 18 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "extension", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite dev", 8 | "build": "vite build && pnpm copysource && npm-build-zip --source=dist/", 9 | "copysource": "shx mkdir -p dist/source-code && shx cp -r src index.html package.json pnpm-lock.yaml svelte.config.js tsconfig.json tsconfig.node.json vite.config.ts dist/source-code", 10 | "preview": "vite preview", 11 | "check": "svelte-check --tsconfig ./tsconfig.json" 12 | }, 13 | "devDependencies": { 14 | "@sveltejs/vite-plugin-svelte": "^2.4.2", 15 | "@tsconfig/svelte": "^5.0.0", 16 | "@types/node": "^20.8.1", 17 | "@types/twitch-ext": "^1.24.5", 18 | "@vitejs/plugin-basic-ssl": "^1.1.0", 19 | "npm-build-zip": "^1.0.4", 20 | "sass": "^1.69.5", 21 | "shx": "^0.3.4", 22 | "svelte": "^4.0.5", 23 | "svelte-check": "^3.4.6", 24 | "svelte-preprocess": "^5.0.4", 25 | "tslib": "^2.6.0", 26 | "typescript": "^5.0.2", 27 | "vite": "^4.5.1" 28 | }, 29 | "dependencies": { 30 | "simplebar": "^6.2.5" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- 1 | lockfileVersion: '9.0' 2 | 3 | settings: 4 | autoInstallPeers: true 5 | excludeLinksFromLockfile: false 6 | 7 | importers: 8 | 9 | .: 10 | dependencies: 11 | simplebar: 12 | specifier: ^6.2.5 13 | version: 6.2.5 14 | devDependencies: 15 | '@sveltejs/vite-plugin-svelte': 16 | specifier: ^2.4.2 17 | version: 2.4.6(svelte@4.2.2)(vite@4.5.1) 18 | '@tsconfig/svelte': 19 | specifier: ^5.0.0 20 | version: 5.0.2 21 | '@types/node': 22 | specifier: ^20.8.1 23 | version: 20.8.10 24 | '@types/twitch-ext': 25 | specifier: ^1.24.5 26 | version: 1.24.6 27 | '@vitejs/plugin-basic-ssl': 28 | specifier: ^1.1.0 29 | version: 1.1.0(vite@4.5.1) 30 | npm-build-zip: 31 | specifier: ^1.0.4 32 | version: 1.0.4 33 | sass: 34 | specifier: ^1.69.5 35 | version: 1.69.5 36 | shx: 37 | specifier: ^0.3.4 38 | version: 0.3.4 39 | svelte: 40 | specifier: ^4.0.5 41 | version: 4.2.2 42 | svelte-check: 43 | specifier: ^3.4.6 44 | version: 3.5.2(sass@1.69.5)(svelte@4.2.2) 45 | svelte-preprocess: 46 | specifier: ^5.0.4 47 | version: 5.0.4(sass@1.69.5)(svelte@4.2.2)(typescript@5.2.2) 48 | tslib: 49 | specifier: ^2.6.0 50 | version: 2.6.2 51 | typescript: 52 | specifier: ^5.0.2 53 | version: 5.2.2 54 | vite: 55 | specifier: ^4.5.1 56 | version: 4.5.1(@types/node@20.8.10)(sass@1.69.5) 57 | 58 | packages: 59 | 60 | '@ampproject/remapping@2.2.1': 61 | resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==} 62 | engines: {node: '>=6.0.0'} 63 | 64 | '@esbuild/android-arm64@0.18.20': 65 | resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} 66 | engines: {node: '>=12'} 67 | cpu: [arm64] 68 | os: [android] 69 | 70 | '@esbuild/android-arm@0.18.20': 71 | resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} 72 | engines: {node: '>=12'} 73 | cpu: [arm] 74 | os: [android] 75 | 76 | '@esbuild/android-x64@0.18.20': 77 | resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} 78 | engines: {node: '>=12'} 79 | cpu: [x64] 80 | os: [android] 81 | 82 | '@esbuild/darwin-arm64@0.18.20': 83 | resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} 84 | engines: {node: '>=12'} 85 | cpu: [arm64] 86 | os: [darwin] 87 | 88 | '@esbuild/darwin-x64@0.18.20': 89 | resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} 90 | engines: {node: '>=12'} 91 | cpu: [x64] 92 | os: [darwin] 93 | 94 | '@esbuild/freebsd-arm64@0.18.20': 95 | resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} 96 | engines: {node: '>=12'} 97 | cpu: [arm64] 98 | os: [freebsd] 99 | 100 | '@esbuild/freebsd-x64@0.18.20': 101 | resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} 102 | engines: {node: '>=12'} 103 | cpu: [x64] 104 | os: [freebsd] 105 | 106 | '@esbuild/linux-arm64@0.18.20': 107 | resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} 108 | engines: {node: '>=12'} 109 | cpu: [arm64] 110 | os: [linux] 111 | 112 | '@esbuild/linux-arm@0.18.20': 113 | resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} 114 | engines: {node: '>=12'} 115 | cpu: [arm] 116 | os: [linux] 117 | 118 | '@esbuild/linux-ia32@0.18.20': 119 | resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} 120 | engines: {node: '>=12'} 121 | cpu: [ia32] 122 | os: [linux] 123 | 124 | '@esbuild/linux-loong64@0.18.20': 125 | resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} 126 | engines: {node: '>=12'} 127 | cpu: [loong64] 128 | os: [linux] 129 | 130 | '@esbuild/linux-mips64el@0.18.20': 131 | resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} 132 | engines: {node: '>=12'} 133 | cpu: [mips64el] 134 | os: [linux] 135 | 136 | '@esbuild/linux-ppc64@0.18.20': 137 | resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} 138 | engines: {node: '>=12'} 139 | cpu: [ppc64] 140 | os: [linux] 141 | 142 | '@esbuild/linux-riscv64@0.18.20': 143 | resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} 144 | engines: {node: '>=12'} 145 | cpu: [riscv64] 146 | os: [linux] 147 | 148 | '@esbuild/linux-s390x@0.18.20': 149 | resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} 150 | engines: {node: '>=12'} 151 | cpu: [s390x] 152 | os: [linux] 153 | 154 | '@esbuild/linux-x64@0.18.20': 155 | resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} 156 | engines: {node: '>=12'} 157 | cpu: [x64] 158 | os: [linux] 159 | 160 | '@esbuild/netbsd-x64@0.18.20': 161 | resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} 162 | engines: {node: '>=12'} 163 | cpu: [x64] 164 | os: [netbsd] 165 | 166 | '@esbuild/openbsd-x64@0.18.20': 167 | resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} 168 | engines: {node: '>=12'} 169 | cpu: [x64] 170 | os: [openbsd] 171 | 172 | '@esbuild/sunos-x64@0.18.20': 173 | resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} 174 | engines: {node: '>=12'} 175 | cpu: [x64] 176 | os: [sunos] 177 | 178 | '@esbuild/win32-arm64@0.18.20': 179 | resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} 180 | engines: {node: '>=12'} 181 | cpu: [arm64] 182 | os: [win32] 183 | 184 | '@esbuild/win32-ia32@0.18.20': 185 | resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} 186 | engines: {node: '>=12'} 187 | cpu: [ia32] 188 | os: [win32] 189 | 190 | '@esbuild/win32-x64@0.18.20': 191 | resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} 192 | engines: {node: '>=12'} 193 | cpu: [x64] 194 | os: [win32] 195 | 196 | '@jridgewell/gen-mapping@0.3.3': 197 | resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} 198 | engines: {node: '>=6.0.0'} 199 | 200 | '@jridgewell/resolve-uri@3.1.1': 201 | resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==} 202 | engines: {node: '>=6.0.0'} 203 | 204 | '@jridgewell/set-array@1.1.2': 205 | resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} 206 | engines: {node: '>=6.0.0'} 207 | 208 | '@jridgewell/sourcemap-codec@1.4.15': 209 | resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} 210 | 211 | '@jridgewell/trace-mapping@0.3.20': 212 | resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==} 213 | 214 | '@nodelib/fs.scandir@2.1.5': 215 | resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} 216 | engines: {node: '>= 8'} 217 | 218 | '@nodelib/fs.stat@2.0.5': 219 | resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} 220 | engines: {node: '>= 8'} 221 | 222 | '@nodelib/fs.walk@1.2.8': 223 | resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} 224 | engines: {node: '>= 8'} 225 | 226 | '@sveltejs/vite-plugin-svelte-inspector@1.0.4': 227 | resolution: {integrity: sha512-zjiuZ3yydBtwpF3bj0kQNV0YXe+iKE545QGZVTaylW3eAzFr+pJ/cwK8lZEaRp4JtaJXhD5DyWAV4AxLh6DgaQ==} 228 | engines: {node: ^14.18.0 || >= 16} 229 | peerDependencies: 230 | '@sveltejs/vite-plugin-svelte': ^2.2.0 231 | svelte: ^3.54.0 || ^4.0.0 232 | vite: ^4.0.0 233 | 234 | '@sveltejs/vite-plugin-svelte@2.4.6': 235 | resolution: {integrity: sha512-zO79p0+DZnXPnF0ltIigWDx/ux7Ni+HRaFOw720Qeivc1azFUrJxTl0OryXVibYNx1hCboGia1NRV3x8RNv4cA==} 236 | engines: {node: ^14.18.0 || >= 16} 237 | peerDependencies: 238 | svelte: ^3.54.0 || ^4.0.0 239 | vite: ^4.0.0 240 | 241 | '@tsconfig/svelte@5.0.2': 242 | resolution: {integrity: sha512-BRbo1fOtyVbhfLyuCWw6wAWp+U8UQle+ZXu84MYYWzYSEB28dyfnRBIE99eoG+qdAC0po6L2ScIEivcT07UaMA==} 243 | 244 | '@types/estree@1.0.4': 245 | resolution: {integrity: sha512-2JwWnHK9H+wUZNorf2Zr6ves96WHoWDJIftkcxPKsS7Djta6Zu519LarhRNljPXkpsZR2ZMwNCPeW7omW07BJw==} 246 | 247 | '@types/lodash-es@4.17.11': 248 | resolution: {integrity: sha512-eCw8FYAWHt2DDl77s+AMLLzPn310LKohruumpucZI4oOFJkIgnlaJcy23OKMJxx4r9PeTF13Gv6w+jqjWQaYUg==} 249 | 250 | '@types/lodash@4.14.201': 251 | resolution: {integrity: sha512-y9euML0cim1JrykNxADLfaG0FgD1g/yTHwUs/Jg9ZIU7WKj2/4IW9Lbb1WZbvck78W/lfGXFfe+u2EGfIJXdLQ==} 252 | 253 | '@types/node@20.8.10': 254 | resolution: {integrity: sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==} 255 | 256 | '@types/pug@2.0.8': 257 | resolution: {integrity: sha512-QzhsZ1dMGyJbn/D9V80zp4GIA4J4rfAjCCxc3MP+new0E8dyVdSkR735Lx+n3LIaHNFcjHL5+TbziccuT+fdoQ==} 258 | 259 | '@types/twitch-ext@1.24.6': 260 | resolution: {integrity: sha512-1JgjjgtxJ51EtF0trsKpY9kACOPAE/K4Df8rHC6zPZ5abDeEJwqB8URGy4TiDaeezRhjwKIY1QrTiYwdytmn5A==} 261 | 262 | '@vitejs/plugin-basic-ssl@1.1.0': 263 | resolution: {integrity: sha512-wO4Dk/rm8u7RNhOf95ZzcEmC9rYOncYgvq4z3duaJrCgjN8BxAnDVyndanfcJZ0O6XZzHz6Q0hTimxTg8Y9g/A==} 264 | engines: {node: '>=14.6.0'} 265 | peerDependencies: 266 | vite: ^3.0.0 || ^4.0.0 || ^5.0.0 267 | 268 | acorn@8.11.2: 269 | resolution: {integrity: sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==} 270 | engines: {node: '>=0.4.0'} 271 | hasBin: true 272 | 273 | ansi-regex@4.1.1: 274 | resolution: {integrity: sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==} 275 | engines: {node: '>=6'} 276 | 277 | ansi-styles@3.2.1: 278 | resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} 279 | engines: {node: '>=4'} 280 | 281 | anymatch@3.1.3: 282 | resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} 283 | engines: {node: '>= 8'} 284 | 285 | archiver-promise@1.0.0: 286 | resolution: {integrity: sha512-6/vW4PWUKyc1KsuacbRh7a7W2s8BBRwL6IM2zNCRUESWks22tMAMr1h45pGbMzzeyNi5XIlniuubcxuc5sBkxQ==} 287 | 288 | archiver-utils@1.3.0: 289 | resolution: {integrity: sha512-h+hTREBXcW5e1L9RihGXdH4PHHdGipG/jE2sMZrqIH6BmZAxeGU5IWjVsKhokdCSWX7km6Kkh406zZNEElHFPQ==} 290 | engines: {node: '>= 0.10.0'} 291 | 292 | archiver@1.3.0: 293 | resolution: {integrity: sha512-4q/CtGPNVyC5aT9eYHhFP7SAEjKYzQIDIJWXfexUIPNxitNs1y6hORdX+sYxERSZ6qPeNNBJ5UolFsJdWTU02g==} 294 | engines: {node: '>= 0.10.0'} 295 | 296 | aria-query@5.3.0: 297 | resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==} 298 | 299 | async@2.6.4: 300 | resolution: {integrity: sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==} 301 | 302 | axobject-query@3.2.1: 303 | resolution: {integrity: sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==} 304 | 305 | balanced-match@1.0.2: 306 | resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} 307 | 308 | base64-js@1.5.1: 309 | resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} 310 | 311 | binary-extensions@2.2.0: 312 | resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} 313 | engines: {node: '>=8'} 314 | 315 | bl@1.2.3: 316 | resolution: {integrity: sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==} 317 | 318 | brace-expansion@1.1.11: 319 | resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} 320 | 321 | braces@3.0.2: 322 | resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} 323 | engines: {node: '>=8'} 324 | 325 | buffer-alloc-unsafe@1.1.0: 326 | resolution: {integrity: sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==} 327 | 328 | buffer-alloc@1.2.0: 329 | resolution: {integrity: sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==} 330 | 331 | buffer-crc32@0.2.13: 332 | resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} 333 | 334 | buffer-fill@1.0.0: 335 | resolution: {integrity: sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==} 336 | 337 | buffer@5.7.1: 338 | resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} 339 | 340 | callsites@3.1.0: 341 | resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} 342 | engines: {node: '>=6'} 343 | 344 | camelcase@5.3.1: 345 | resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} 346 | engines: {node: '>=6'} 347 | 348 | can-use-dom@0.1.0: 349 | resolution: {integrity: sha512-ceOhN1DL7Y4O6M0j9ICgmTYziV89WMd96SvSl0REd8PMgrY0B/WBOPoed5S1KUmJqXgUXh8gzSe6E3ae27upsQ==} 350 | 351 | chokidar@3.5.3: 352 | resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} 353 | engines: {node: '>= 8.10.0'} 354 | 355 | cliui@5.0.0: 356 | resolution: {integrity: sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==} 357 | 358 | code-red@1.0.4: 359 | resolution: {integrity: sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==} 360 | 361 | color-convert@1.9.3: 362 | resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} 363 | 364 | color-name@1.1.3: 365 | resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} 366 | 367 | compress-commons@1.2.2: 368 | resolution: {integrity: sha512-SLTU8iWWmcORfUN+4351Z2aZXKJe1tr0jSilPMCZlLPzpdTXnkBW1LevW/MfuANBKJek8Xu9ggqrtVmQrChLtg==} 369 | engines: {node: '>= 0.10.0'} 370 | 371 | concat-map@0.0.1: 372 | resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} 373 | 374 | core-util-is@1.0.3: 375 | resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} 376 | 377 | crc32-stream@2.0.0: 378 | resolution: {integrity: sha512-UjZSqFCbn+jZUHJIh6Y3vMF7EJLcJWNm4tKDf2peJRwlZKHvkkvOMTvAei6zjU9gO1xONVr3rRFw0gixm2eUng==} 379 | engines: {node: '>= 0.10.0'} 380 | 381 | crc@3.8.0: 382 | resolution: {integrity: sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==} 383 | 384 | css-tree@2.3.1: 385 | resolution: {integrity: sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==} 386 | engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0} 387 | 388 | debug@4.3.4: 389 | resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} 390 | engines: {node: '>=6.0'} 391 | peerDependencies: 392 | supports-color: '*' 393 | peerDependenciesMeta: 394 | supports-color: 395 | optional: true 396 | 397 | decamelize@1.2.0: 398 | resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} 399 | engines: {node: '>=0.10.0'} 400 | 401 | deepmerge@4.3.1: 402 | resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} 403 | engines: {node: '>=0.10.0'} 404 | 405 | dequal@2.0.3: 406 | resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} 407 | engines: {node: '>=6'} 408 | 409 | detect-indent@6.1.0: 410 | resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==} 411 | engines: {node: '>=8'} 412 | 413 | emoji-regex@7.0.3: 414 | resolution: {integrity: sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==} 415 | 416 | end-of-stream@1.4.4: 417 | resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} 418 | 419 | es6-promise@3.3.1: 420 | resolution: {integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==} 421 | 422 | esbuild@0.18.20: 423 | resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} 424 | engines: {node: '>=12'} 425 | hasBin: true 426 | 427 | estree-walker@3.0.3: 428 | resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} 429 | 430 | fast-glob@3.3.1: 431 | resolution: {integrity: sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==} 432 | engines: {node: '>=8.6.0'} 433 | 434 | fastq@1.15.0: 435 | resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==} 436 | 437 | fill-range@7.0.1: 438 | resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} 439 | engines: {node: '>=8'} 440 | 441 | find-up@3.0.0: 442 | resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==} 443 | engines: {node: '>=6'} 444 | 445 | fs-constants@1.0.0: 446 | resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} 447 | 448 | fs.realpath@1.0.0: 449 | resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} 450 | 451 | fsevents@2.3.3: 452 | resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} 453 | engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} 454 | os: [darwin] 455 | 456 | function-bind@1.1.2: 457 | resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} 458 | 459 | get-caller-file@2.0.5: 460 | resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} 461 | engines: {node: 6.* || 8.* || >= 10.*} 462 | 463 | glob-parent@5.1.2: 464 | resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} 465 | engines: {node: '>= 6'} 466 | 467 | glob@7.2.3: 468 | resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} 469 | 470 | graceful-fs@4.2.11: 471 | resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} 472 | 473 | hasown@2.0.0: 474 | resolution: {integrity: sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==} 475 | engines: {node: '>= 0.4'} 476 | 477 | ieee754@1.2.1: 478 | resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} 479 | 480 | ignore-walk@3.0.4: 481 | resolution: {integrity: sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ==} 482 | 483 | immutable@4.3.4: 484 | resolution: {integrity: sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==} 485 | 486 | import-fresh@3.3.0: 487 | resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} 488 | engines: {node: '>=6'} 489 | 490 | inflight@1.0.6: 491 | resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} 492 | 493 | inherits@2.0.4: 494 | resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} 495 | 496 | interpret@1.4.0: 497 | resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==} 498 | engines: {node: '>= 0.10'} 499 | 500 | is-binary-path@2.1.0: 501 | resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} 502 | engines: {node: '>=8'} 503 | 504 | is-core-module@2.13.1: 505 | resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} 506 | 507 | is-extglob@2.1.1: 508 | resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} 509 | engines: {node: '>=0.10.0'} 510 | 511 | is-fullwidth-code-point@2.0.0: 512 | resolution: {integrity: sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==} 513 | engines: {node: '>=4'} 514 | 515 | is-glob@4.0.3: 516 | resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} 517 | engines: {node: '>=0.10.0'} 518 | 519 | is-number@7.0.0: 520 | resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} 521 | engines: {node: '>=0.12.0'} 522 | 523 | is-reference@3.0.2: 524 | resolution: {integrity: sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==} 525 | 526 | isarray@1.0.0: 527 | resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} 528 | 529 | kleur@4.1.5: 530 | resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} 531 | engines: {node: '>=6'} 532 | 533 | lazystream@1.0.1: 534 | resolution: {integrity: sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==} 535 | engines: {node: '>= 0.6.3'} 536 | 537 | locate-character@3.0.0: 538 | resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==} 539 | 540 | locate-path@3.0.0: 541 | resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==} 542 | engines: {node: '>=6'} 543 | 544 | lodash-es@4.17.21: 545 | resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} 546 | 547 | lodash@4.17.21: 548 | resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} 549 | 550 | magic-string@0.27.0: 551 | resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==} 552 | engines: {node: '>=12'} 553 | 554 | magic-string@0.30.5: 555 | resolution: {integrity: sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==} 556 | engines: {node: '>=12'} 557 | 558 | mdn-data@2.0.30: 559 | resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==} 560 | 561 | merge2@1.4.1: 562 | resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} 563 | engines: {node: '>= 8'} 564 | 565 | micromatch@4.0.5: 566 | resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} 567 | engines: {node: '>=8.6'} 568 | 569 | min-indent@1.0.1: 570 | resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} 571 | engines: {node: '>=4'} 572 | 573 | minimatch@3.1.2: 574 | resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} 575 | 576 | minimist@1.2.8: 577 | resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} 578 | 579 | mkdirp@0.5.6: 580 | resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} 581 | hasBin: true 582 | 583 | mri@1.2.0: 584 | resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} 585 | engines: {node: '>=4'} 586 | 587 | ms@2.1.2: 588 | resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} 589 | 590 | nanoid@3.3.6: 591 | resolution: {integrity: sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==} 592 | engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} 593 | hasBin: true 594 | 595 | normalize-path@2.1.1: 596 | resolution: {integrity: sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==} 597 | engines: {node: '>=0.10.0'} 598 | 599 | normalize-path@3.0.0: 600 | resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} 601 | engines: {node: '>=0.10.0'} 602 | 603 | npm-build-zip@1.0.4: 604 | resolution: {integrity: sha512-mn4IPDkB+LlJiIaXMJ+vFa1yFrWhT4MGo0AeNN3Blyc+pIdqJzL1mQBvk+qnVT6tP+FbohnYvWFyNaTYEHtpZg==} 605 | hasBin: true 606 | 607 | npm-bundled@1.1.2: 608 | resolution: {integrity: sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ==} 609 | 610 | npm-normalize-package-bin@1.0.1: 611 | resolution: {integrity: sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==} 612 | 613 | npm-packlist@1.4.4: 614 | resolution: {integrity: sha512-zTLo8UcVYtDU3gdeaFu2Xu0n0EvelfHDGuqtNIn5RO7yQj4H1TqNdBc/yZjxnWA0PVB8D3Woyp0i5B43JwQ6Vw==} 615 | 616 | once@1.4.0: 617 | resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} 618 | 619 | p-limit@2.3.0: 620 | resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} 621 | engines: {node: '>=6'} 622 | 623 | p-locate@3.0.0: 624 | resolution: {integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==} 625 | engines: {node: '>=6'} 626 | 627 | p-try@2.2.0: 628 | resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} 629 | engines: {node: '>=6'} 630 | 631 | parent-module@1.0.1: 632 | resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} 633 | engines: {node: '>=6'} 634 | 635 | path-exists@3.0.0: 636 | resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==} 637 | engines: {node: '>=4'} 638 | 639 | path-is-absolute@1.0.1: 640 | resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} 641 | engines: {node: '>=0.10.0'} 642 | 643 | path-parse@1.0.7: 644 | resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} 645 | 646 | periscopic@3.1.0: 647 | resolution: {integrity: sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==} 648 | 649 | picocolors@1.0.0: 650 | resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} 651 | 652 | picomatch@2.3.1: 653 | resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} 654 | engines: {node: '>=8.6'} 655 | 656 | postcss@8.4.31: 657 | resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==} 658 | engines: {node: ^10 || ^12 || >=14} 659 | 660 | process-nextick-args@2.0.1: 661 | resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} 662 | 663 | queue-microtask@1.2.3: 664 | resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} 665 | 666 | readable-stream@2.3.8: 667 | resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} 668 | 669 | readdirp@3.6.0: 670 | resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} 671 | engines: {node: '>=8.10.0'} 672 | 673 | rechoir@0.6.2: 674 | resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==} 675 | engines: {node: '>= 0.10'} 676 | 677 | remove-trailing-separator@1.1.0: 678 | resolution: {integrity: sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==} 679 | 680 | require-directory@2.1.1: 681 | resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} 682 | engines: {node: '>=0.10.0'} 683 | 684 | require-main-filename@2.0.0: 685 | resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} 686 | 687 | resolve-from@4.0.0: 688 | resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} 689 | engines: {node: '>=4'} 690 | 691 | resolve@1.22.8: 692 | resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} 693 | hasBin: true 694 | 695 | reusify@1.0.4: 696 | resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} 697 | engines: {iojs: '>=1.0.0', node: '>=0.10.0'} 698 | 699 | rimraf@2.7.1: 700 | resolution: {integrity: sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==} 701 | hasBin: true 702 | 703 | rollup@3.29.4: 704 | resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==} 705 | engines: {node: '>=14.18.0', npm: '>=8.0.0'} 706 | hasBin: true 707 | 708 | run-parallel@1.2.0: 709 | resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} 710 | 711 | sade@1.8.1: 712 | resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==} 713 | engines: {node: '>=6'} 714 | 715 | safe-buffer@5.1.2: 716 | resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} 717 | 718 | safe-buffer@5.2.1: 719 | resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} 720 | 721 | sander@0.5.1: 722 | resolution: {integrity: sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==} 723 | 724 | sanitize-filename@1.6.3: 725 | resolution: {integrity: sha512-y/52Mcy7aw3gRm7IrcGDFx/bCk4AhRh2eI9luHOQM86nZsqwiRkkq2GekHXBBD+SmPidc8i2PqtYZl+pWJ8Oeg==} 726 | 727 | sass@1.69.5: 728 | resolution: {integrity: sha512-qg2+UCJibLr2LCVOt3OlPhr/dqVHWOa9XtZf2OjbLs/T4VPSJ00udtgJxH3neXZm+QqX8B+3cU7RaLqp1iVfcQ==} 729 | engines: {node: '>=14.0.0'} 730 | hasBin: true 731 | 732 | set-blocking@2.0.0: 733 | resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} 734 | 735 | shelljs@0.8.5: 736 | resolution: {integrity: sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==} 737 | engines: {node: '>=4'} 738 | hasBin: true 739 | 740 | shx@0.3.4: 741 | resolution: {integrity: sha512-N6A9MLVqjxZYcVn8hLmtneQWIJtp8IKzMP4eMnx+nqkvXoqinUPCbUFLp2UcWTEIUONhlk0ewxr/jaVGlc+J+g==} 742 | engines: {node: '>=6'} 743 | hasBin: true 744 | 745 | simplebar-core@1.2.4: 746 | resolution: {integrity: sha512-P+Sqshef4fq3++gQ82TgNYcgl3qZFSCP5jS2/8NMmw18oagXOijMzs1G+vm6RUY3oMvpwH3wGoqh9u6SyDjHfQ==} 747 | 748 | simplebar@6.2.5: 749 | resolution: {integrity: sha512-vfxKR6KNBsPx7+sZnqO7T8VuCvi4px6OlycrrkNgyjvoHhRW7LIyVkHhUfXxbz33Gw99Wb9UMMsnEZv35wtLSw==} 750 | 751 | sorcery@0.11.0: 752 | resolution: {integrity: sha512-J69LQ22xrQB1cIFJhPfgtLuI6BpWRiWu1Y3vSsIwK/eAScqJxd/+CJlUuHQRdX2C9NGFamq+KqNywGgaThwfHw==} 753 | hasBin: true 754 | 755 | source-map-js@1.0.2: 756 | resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} 757 | engines: {node: '>=0.10.0'} 758 | 759 | string-width@3.1.0: 760 | resolution: {integrity: sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==} 761 | engines: {node: '>=6'} 762 | 763 | string_decoder@1.1.1: 764 | resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} 765 | 766 | strip-ansi@5.2.0: 767 | resolution: {integrity: sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==} 768 | engines: {node: '>=6'} 769 | 770 | strip-indent@3.0.0: 771 | resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} 772 | engines: {node: '>=8'} 773 | 774 | supports-preserve-symlinks-flag@1.0.0: 775 | resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} 776 | engines: {node: '>= 0.4'} 777 | 778 | svelte-check@3.5.2: 779 | resolution: {integrity: sha512-5a/YWbiH4c+AqAUP+0VneiV5bP8YOk9JL3jwvN+k2PEPLgpu85bjQc5eE67+eIZBBwUEJzmO3I92OqKcqbp3fw==} 780 | hasBin: true 781 | peerDependencies: 782 | svelte: ^3.55.0 || ^4.0.0-next.0 || ^4.0.0 783 | 784 | svelte-hmr@0.15.3: 785 | resolution: {integrity: sha512-41snaPswvSf8TJUhlkoJBekRrABDXDMdpNpT2tfHIv4JuhgvHqLMhEPGtaQn0BmbNSTkuz2Ed20DF2eHw0SmBQ==} 786 | engines: {node: ^12.20 || ^14.13.1 || >= 16} 787 | peerDependencies: 788 | svelte: ^3.19.0 || ^4.0.0 789 | 790 | svelte-preprocess@5.0.4: 791 | resolution: {integrity: sha512-ABia2QegosxOGsVlsSBJvoWeXy1wUKSfF7SWJdTjLAbx/Y3SrVevvvbFNQqrSJw89+lNSsM58SipmZJ5SRi5iw==} 792 | engines: {node: '>= 14.10.0'} 793 | peerDependencies: 794 | '@babel/core': ^7.10.2 795 | coffeescript: ^2.5.1 796 | less: ^3.11.3 || ^4.0.0 797 | postcss: ^7 || ^8 798 | postcss-load-config: ^2.1.0 || ^3.0.0 || ^4.0.0 799 | pug: ^3.0.0 800 | sass: ^1.26.8 801 | stylus: ^0.55.0 802 | sugarss: ^2.0.0 || ^3.0.0 || ^4.0.0 803 | svelte: ^3.23.0 || ^4.0.0-next.0 || ^4.0.0 804 | typescript: '>=3.9.5 || ^4.0.0 || ^5.0.0' 805 | peerDependenciesMeta: 806 | '@babel/core': 807 | optional: true 808 | coffeescript: 809 | optional: true 810 | less: 811 | optional: true 812 | postcss: 813 | optional: true 814 | postcss-load-config: 815 | optional: true 816 | pug: 817 | optional: true 818 | sass: 819 | optional: true 820 | stylus: 821 | optional: true 822 | sugarss: 823 | optional: true 824 | typescript: 825 | optional: true 826 | 827 | svelte@4.2.2: 828 | resolution: {integrity: sha512-My2tytF2e2NnHSpn2M7/3VdXT4JdTglYVUuSuK/mXL2XtulPYbeBfl8Dm1QiaKRn0zoULRnL+EtfZHHP0k4H3A==} 829 | engines: {node: '>=16'} 830 | 831 | tar-stream@1.6.2: 832 | resolution: {integrity: sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==} 833 | engines: {node: '>= 0.8.0'} 834 | 835 | to-buffer@1.1.1: 836 | resolution: {integrity: sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==} 837 | 838 | to-regex-range@5.0.1: 839 | resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} 840 | engines: {node: '>=8.0'} 841 | 842 | truncate-utf8-bytes@1.0.2: 843 | resolution: {integrity: sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==} 844 | 845 | tslib@2.6.2: 846 | resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} 847 | 848 | typescript@5.2.2: 849 | resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} 850 | engines: {node: '>=14.17'} 851 | hasBin: true 852 | 853 | undici-types@5.26.5: 854 | resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} 855 | 856 | utf8-byte-length@1.0.4: 857 | resolution: {integrity: sha512-4+wkEYLBbWxqTahEsWrhxepcoVOJ+1z5PGIjPZxRkytcdSUaNjIjBM7Xn8E+pdSuV7SzvWovBFA54FO0JSoqhA==} 858 | 859 | util-deprecate@1.0.2: 860 | resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} 861 | 862 | vite@4.5.1: 863 | resolution: {integrity: sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==} 864 | engines: {node: ^14.18.0 || >=16.0.0} 865 | hasBin: true 866 | peerDependencies: 867 | '@types/node': '>= 14' 868 | less: '*' 869 | lightningcss: ^1.21.0 870 | sass: '*' 871 | stylus: '*' 872 | sugarss: '*' 873 | terser: ^5.4.0 874 | peerDependenciesMeta: 875 | '@types/node': 876 | optional: true 877 | less: 878 | optional: true 879 | lightningcss: 880 | optional: true 881 | sass: 882 | optional: true 883 | stylus: 884 | optional: true 885 | sugarss: 886 | optional: true 887 | terser: 888 | optional: true 889 | 890 | vitefu@0.2.5: 891 | resolution: {integrity: sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==} 892 | peerDependencies: 893 | vite: ^3.0.0 || ^4.0.0 || ^5.0.0 894 | peerDependenciesMeta: 895 | vite: 896 | optional: true 897 | 898 | walkdir@0.0.11: 899 | resolution: {integrity: sha512-lMFYXGpf7eg+RInVL021ZbJJT4hqsvsBvq5sZBp874jfhs3IWlA7OPoG0ojQrYcXHuUSi+Nqp6qGN+pPGaMgPQ==} 900 | engines: {node: '>=0.6.0'} 901 | 902 | which-module@2.0.1: 903 | resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} 904 | 905 | wrap-ansi@5.1.0: 906 | resolution: {integrity: sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==} 907 | engines: {node: '>=6'} 908 | 909 | wrappy@1.0.2: 910 | resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} 911 | 912 | xtend@4.0.2: 913 | resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} 914 | engines: {node: '>=0.4'} 915 | 916 | y18n@4.0.3: 917 | resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} 918 | 919 | yargs-parser@13.1.2: 920 | resolution: {integrity: sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==} 921 | 922 | yargs@13.3.0: 923 | resolution: {integrity: sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA==} 924 | 925 | zip-stream@1.2.0: 926 | resolution: {integrity: sha512-2olrDUuPM4NvRIgGPhvrp84f7/HmWR6RiQrgwFF2VctmnssFiogtYL3DcA8Vl2bsSmju79sVXe38TsII7JleUg==} 927 | engines: {node: '>= 0.10.0'} 928 | 929 | snapshots: 930 | 931 | '@ampproject/remapping@2.2.1': 932 | dependencies: 933 | '@jridgewell/gen-mapping': 0.3.3 934 | '@jridgewell/trace-mapping': 0.3.20 935 | 936 | '@esbuild/android-arm64@0.18.20': 937 | optional: true 938 | 939 | '@esbuild/android-arm@0.18.20': 940 | optional: true 941 | 942 | '@esbuild/android-x64@0.18.20': 943 | optional: true 944 | 945 | '@esbuild/darwin-arm64@0.18.20': 946 | optional: true 947 | 948 | '@esbuild/darwin-x64@0.18.20': 949 | optional: true 950 | 951 | '@esbuild/freebsd-arm64@0.18.20': 952 | optional: true 953 | 954 | '@esbuild/freebsd-x64@0.18.20': 955 | optional: true 956 | 957 | '@esbuild/linux-arm64@0.18.20': 958 | optional: true 959 | 960 | '@esbuild/linux-arm@0.18.20': 961 | optional: true 962 | 963 | '@esbuild/linux-ia32@0.18.20': 964 | optional: true 965 | 966 | '@esbuild/linux-loong64@0.18.20': 967 | optional: true 968 | 969 | '@esbuild/linux-mips64el@0.18.20': 970 | optional: true 971 | 972 | '@esbuild/linux-ppc64@0.18.20': 973 | optional: true 974 | 975 | '@esbuild/linux-riscv64@0.18.20': 976 | optional: true 977 | 978 | '@esbuild/linux-s390x@0.18.20': 979 | optional: true 980 | 981 | '@esbuild/linux-x64@0.18.20': 982 | optional: true 983 | 984 | '@esbuild/netbsd-x64@0.18.20': 985 | optional: true 986 | 987 | '@esbuild/openbsd-x64@0.18.20': 988 | optional: true 989 | 990 | '@esbuild/sunos-x64@0.18.20': 991 | optional: true 992 | 993 | '@esbuild/win32-arm64@0.18.20': 994 | optional: true 995 | 996 | '@esbuild/win32-ia32@0.18.20': 997 | optional: true 998 | 999 | '@esbuild/win32-x64@0.18.20': 1000 | optional: true 1001 | 1002 | '@jridgewell/gen-mapping@0.3.3': 1003 | dependencies: 1004 | '@jridgewell/set-array': 1.1.2 1005 | '@jridgewell/sourcemap-codec': 1.4.15 1006 | '@jridgewell/trace-mapping': 0.3.20 1007 | 1008 | '@jridgewell/resolve-uri@3.1.1': {} 1009 | 1010 | '@jridgewell/set-array@1.1.2': {} 1011 | 1012 | '@jridgewell/sourcemap-codec@1.4.15': {} 1013 | 1014 | '@jridgewell/trace-mapping@0.3.20': 1015 | dependencies: 1016 | '@jridgewell/resolve-uri': 3.1.1 1017 | '@jridgewell/sourcemap-codec': 1.4.15 1018 | 1019 | '@nodelib/fs.scandir@2.1.5': 1020 | dependencies: 1021 | '@nodelib/fs.stat': 2.0.5 1022 | run-parallel: 1.2.0 1023 | 1024 | '@nodelib/fs.stat@2.0.5': {} 1025 | 1026 | '@nodelib/fs.walk@1.2.8': 1027 | dependencies: 1028 | '@nodelib/fs.scandir': 2.1.5 1029 | fastq: 1.15.0 1030 | 1031 | '@sveltejs/vite-plugin-svelte-inspector@1.0.4(@sveltejs/vite-plugin-svelte@2.4.6)(svelte@4.2.2)(vite@4.5.1)': 1032 | dependencies: 1033 | '@sveltejs/vite-plugin-svelte': 2.4.6(svelte@4.2.2)(vite@4.5.1) 1034 | debug: 4.3.4 1035 | svelte: 4.2.2 1036 | vite: 4.5.1(@types/node@20.8.10)(sass@1.69.5) 1037 | transitivePeerDependencies: 1038 | - supports-color 1039 | 1040 | '@sveltejs/vite-plugin-svelte@2.4.6(svelte@4.2.2)(vite@4.5.1)': 1041 | dependencies: 1042 | '@sveltejs/vite-plugin-svelte-inspector': 1.0.4(@sveltejs/vite-plugin-svelte@2.4.6)(svelte@4.2.2)(vite@4.5.1) 1043 | debug: 4.3.4 1044 | deepmerge: 4.3.1 1045 | kleur: 4.1.5 1046 | magic-string: 0.30.5 1047 | svelte: 4.2.2 1048 | svelte-hmr: 0.15.3(svelte@4.2.2) 1049 | vite: 4.5.1(@types/node@20.8.10)(sass@1.69.5) 1050 | vitefu: 0.2.5(vite@4.5.1) 1051 | transitivePeerDependencies: 1052 | - supports-color 1053 | 1054 | '@tsconfig/svelte@5.0.2': {} 1055 | 1056 | '@types/estree@1.0.4': {} 1057 | 1058 | '@types/lodash-es@4.17.11': 1059 | dependencies: 1060 | '@types/lodash': 4.14.201 1061 | 1062 | '@types/lodash@4.14.201': {} 1063 | 1064 | '@types/node@20.8.10': 1065 | dependencies: 1066 | undici-types: 5.26.5 1067 | 1068 | '@types/pug@2.0.8': {} 1069 | 1070 | '@types/twitch-ext@1.24.6': {} 1071 | 1072 | '@vitejs/plugin-basic-ssl@1.1.0(vite@4.5.1)': 1073 | dependencies: 1074 | vite: 4.5.1(@types/node@20.8.10)(sass@1.69.5) 1075 | 1076 | acorn@8.11.2: {} 1077 | 1078 | ansi-regex@4.1.1: {} 1079 | 1080 | ansi-styles@3.2.1: 1081 | dependencies: 1082 | color-convert: 1.9.3 1083 | 1084 | anymatch@3.1.3: 1085 | dependencies: 1086 | normalize-path: 3.0.0 1087 | picomatch: 2.3.1 1088 | 1089 | archiver-promise@1.0.0: 1090 | dependencies: 1091 | archiver: 1.3.0 1092 | 1093 | archiver-utils@1.3.0: 1094 | dependencies: 1095 | glob: 7.2.3 1096 | graceful-fs: 4.2.11 1097 | lazystream: 1.0.1 1098 | lodash: 4.17.21 1099 | normalize-path: 2.1.1 1100 | readable-stream: 2.3.8 1101 | 1102 | archiver@1.3.0: 1103 | dependencies: 1104 | archiver-utils: 1.3.0 1105 | async: 2.6.4 1106 | buffer-crc32: 0.2.13 1107 | glob: 7.2.3 1108 | lodash: 4.17.21 1109 | readable-stream: 2.3.8 1110 | tar-stream: 1.6.2 1111 | walkdir: 0.0.11 1112 | zip-stream: 1.2.0 1113 | 1114 | aria-query@5.3.0: 1115 | dependencies: 1116 | dequal: 2.0.3 1117 | 1118 | async@2.6.4: 1119 | dependencies: 1120 | lodash: 4.17.21 1121 | 1122 | axobject-query@3.2.1: 1123 | dependencies: 1124 | dequal: 2.0.3 1125 | 1126 | balanced-match@1.0.2: {} 1127 | 1128 | base64-js@1.5.1: {} 1129 | 1130 | binary-extensions@2.2.0: {} 1131 | 1132 | bl@1.2.3: 1133 | dependencies: 1134 | readable-stream: 2.3.8 1135 | safe-buffer: 5.2.1 1136 | 1137 | brace-expansion@1.1.11: 1138 | dependencies: 1139 | balanced-match: 1.0.2 1140 | concat-map: 0.0.1 1141 | 1142 | braces@3.0.2: 1143 | dependencies: 1144 | fill-range: 7.0.1 1145 | 1146 | buffer-alloc-unsafe@1.1.0: {} 1147 | 1148 | buffer-alloc@1.2.0: 1149 | dependencies: 1150 | buffer-alloc-unsafe: 1.1.0 1151 | buffer-fill: 1.0.0 1152 | 1153 | buffer-crc32@0.2.13: {} 1154 | 1155 | buffer-fill@1.0.0: {} 1156 | 1157 | buffer@5.7.1: 1158 | dependencies: 1159 | base64-js: 1.5.1 1160 | ieee754: 1.2.1 1161 | 1162 | callsites@3.1.0: {} 1163 | 1164 | camelcase@5.3.1: {} 1165 | 1166 | can-use-dom@0.1.0: {} 1167 | 1168 | chokidar@3.5.3: 1169 | dependencies: 1170 | anymatch: 3.1.3 1171 | braces: 3.0.2 1172 | glob-parent: 5.1.2 1173 | is-binary-path: 2.1.0 1174 | is-glob: 4.0.3 1175 | normalize-path: 3.0.0 1176 | readdirp: 3.6.0 1177 | optionalDependencies: 1178 | fsevents: 2.3.3 1179 | 1180 | cliui@5.0.0: 1181 | dependencies: 1182 | string-width: 3.1.0 1183 | strip-ansi: 5.2.0 1184 | wrap-ansi: 5.1.0 1185 | 1186 | code-red@1.0.4: 1187 | dependencies: 1188 | '@jridgewell/sourcemap-codec': 1.4.15 1189 | '@types/estree': 1.0.4 1190 | acorn: 8.11.2 1191 | estree-walker: 3.0.3 1192 | periscopic: 3.1.0 1193 | 1194 | color-convert@1.9.3: 1195 | dependencies: 1196 | color-name: 1.1.3 1197 | 1198 | color-name@1.1.3: {} 1199 | 1200 | compress-commons@1.2.2: 1201 | dependencies: 1202 | buffer-crc32: 0.2.13 1203 | crc32-stream: 2.0.0 1204 | normalize-path: 2.1.1 1205 | readable-stream: 2.3.8 1206 | 1207 | concat-map@0.0.1: {} 1208 | 1209 | core-util-is@1.0.3: {} 1210 | 1211 | crc32-stream@2.0.0: 1212 | dependencies: 1213 | crc: 3.8.0 1214 | readable-stream: 2.3.8 1215 | 1216 | crc@3.8.0: 1217 | dependencies: 1218 | buffer: 5.7.1 1219 | 1220 | css-tree@2.3.1: 1221 | dependencies: 1222 | mdn-data: 2.0.30 1223 | source-map-js: 1.0.2 1224 | 1225 | debug@4.3.4: 1226 | dependencies: 1227 | ms: 2.1.2 1228 | 1229 | decamelize@1.2.0: {} 1230 | 1231 | deepmerge@4.3.1: {} 1232 | 1233 | dequal@2.0.3: {} 1234 | 1235 | detect-indent@6.1.0: {} 1236 | 1237 | emoji-regex@7.0.3: {} 1238 | 1239 | end-of-stream@1.4.4: 1240 | dependencies: 1241 | once: 1.4.0 1242 | 1243 | es6-promise@3.3.1: {} 1244 | 1245 | esbuild@0.18.20: 1246 | optionalDependencies: 1247 | '@esbuild/android-arm': 0.18.20 1248 | '@esbuild/android-arm64': 0.18.20 1249 | '@esbuild/android-x64': 0.18.20 1250 | '@esbuild/darwin-arm64': 0.18.20 1251 | '@esbuild/darwin-x64': 0.18.20 1252 | '@esbuild/freebsd-arm64': 0.18.20 1253 | '@esbuild/freebsd-x64': 0.18.20 1254 | '@esbuild/linux-arm': 0.18.20 1255 | '@esbuild/linux-arm64': 0.18.20 1256 | '@esbuild/linux-ia32': 0.18.20 1257 | '@esbuild/linux-loong64': 0.18.20 1258 | '@esbuild/linux-mips64el': 0.18.20 1259 | '@esbuild/linux-ppc64': 0.18.20 1260 | '@esbuild/linux-riscv64': 0.18.20 1261 | '@esbuild/linux-s390x': 0.18.20 1262 | '@esbuild/linux-x64': 0.18.20 1263 | '@esbuild/netbsd-x64': 0.18.20 1264 | '@esbuild/openbsd-x64': 0.18.20 1265 | '@esbuild/sunos-x64': 0.18.20 1266 | '@esbuild/win32-arm64': 0.18.20 1267 | '@esbuild/win32-ia32': 0.18.20 1268 | '@esbuild/win32-x64': 0.18.20 1269 | 1270 | estree-walker@3.0.3: 1271 | dependencies: 1272 | '@types/estree': 1.0.4 1273 | 1274 | fast-glob@3.3.1: 1275 | dependencies: 1276 | '@nodelib/fs.stat': 2.0.5 1277 | '@nodelib/fs.walk': 1.2.8 1278 | glob-parent: 5.1.2 1279 | merge2: 1.4.1 1280 | micromatch: 4.0.5 1281 | 1282 | fastq@1.15.0: 1283 | dependencies: 1284 | reusify: 1.0.4 1285 | 1286 | fill-range@7.0.1: 1287 | dependencies: 1288 | to-regex-range: 5.0.1 1289 | 1290 | find-up@3.0.0: 1291 | dependencies: 1292 | locate-path: 3.0.0 1293 | 1294 | fs-constants@1.0.0: {} 1295 | 1296 | fs.realpath@1.0.0: {} 1297 | 1298 | fsevents@2.3.3: 1299 | optional: true 1300 | 1301 | function-bind@1.1.2: {} 1302 | 1303 | get-caller-file@2.0.5: {} 1304 | 1305 | glob-parent@5.1.2: 1306 | dependencies: 1307 | is-glob: 4.0.3 1308 | 1309 | glob@7.2.3: 1310 | dependencies: 1311 | fs.realpath: 1.0.0 1312 | inflight: 1.0.6 1313 | inherits: 2.0.4 1314 | minimatch: 3.1.2 1315 | once: 1.4.0 1316 | path-is-absolute: 1.0.1 1317 | 1318 | graceful-fs@4.2.11: {} 1319 | 1320 | hasown@2.0.0: 1321 | dependencies: 1322 | function-bind: 1.1.2 1323 | 1324 | ieee754@1.2.1: {} 1325 | 1326 | ignore-walk@3.0.4: 1327 | dependencies: 1328 | minimatch: 3.1.2 1329 | 1330 | immutable@4.3.4: {} 1331 | 1332 | import-fresh@3.3.0: 1333 | dependencies: 1334 | parent-module: 1.0.1 1335 | resolve-from: 4.0.0 1336 | 1337 | inflight@1.0.6: 1338 | dependencies: 1339 | once: 1.4.0 1340 | wrappy: 1.0.2 1341 | 1342 | inherits@2.0.4: {} 1343 | 1344 | interpret@1.4.0: {} 1345 | 1346 | is-binary-path@2.1.0: 1347 | dependencies: 1348 | binary-extensions: 2.2.0 1349 | 1350 | is-core-module@2.13.1: 1351 | dependencies: 1352 | hasown: 2.0.0 1353 | 1354 | is-extglob@2.1.1: {} 1355 | 1356 | is-fullwidth-code-point@2.0.0: {} 1357 | 1358 | is-glob@4.0.3: 1359 | dependencies: 1360 | is-extglob: 2.1.1 1361 | 1362 | is-number@7.0.0: {} 1363 | 1364 | is-reference@3.0.2: 1365 | dependencies: 1366 | '@types/estree': 1.0.4 1367 | 1368 | isarray@1.0.0: {} 1369 | 1370 | kleur@4.1.5: {} 1371 | 1372 | lazystream@1.0.1: 1373 | dependencies: 1374 | readable-stream: 2.3.8 1375 | 1376 | locate-character@3.0.0: {} 1377 | 1378 | locate-path@3.0.0: 1379 | dependencies: 1380 | p-locate: 3.0.0 1381 | path-exists: 3.0.0 1382 | 1383 | lodash-es@4.17.21: {} 1384 | 1385 | lodash@4.17.21: {} 1386 | 1387 | magic-string@0.27.0: 1388 | dependencies: 1389 | '@jridgewell/sourcemap-codec': 1.4.15 1390 | 1391 | magic-string@0.30.5: 1392 | dependencies: 1393 | '@jridgewell/sourcemap-codec': 1.4.15 1394 | 1395 | mdn-data@2.0.30: {} 1396 | 1397 | merge2@1.4.1: {} 1398 | 1399 | micromatch@4.0.5: 1400 | dependencies: 1401 | braces: 3.0.2 1402 | picomatch: 2.3.1 1403 | 1404 | min-indent@1.0.1: {} 1405 | 1406 | minimatch@3.1.2: 1407 | dependencies: 1408 | brace-expansion: 1.1.11 1409 | 1410 | minimist@1.2.8: {} 1411 | 1412 | mkdirp@0.5.6: 1413 | dependencies: 1414 | minimist: 1.2.8 1415 | 1416 | mri@1.2.0: {} 1417 | 1418 | ms@2.1.2: {} 1419 | 1420 | nanoid@3.3.6: {} 1421 | 1422 | normalize-path@2.1.1: 1423 | dependencies: 1424 | remove-trailing-separator: 1.1.0 1425 | 1426 | normalize-path@3.0.0: {} 1427 | 1428 | npm-build-zip@1.0.4: 1429 | dependencies: 1430 | archiver-promise: 1.0.0 1431 | npm-packlist: 1.4.4 1432 | sanitize-filename: 1.6.3 1433 | yargs: 13.3.0 1434 | 1435 | npm-bundled@1.1.2: 1436 | dependencies: 1437 | npm-normalize-package-bin: 1.0.1 1438 | 1439 | npm-normalize-package-bin@1.0.1: {} 1440 | 1441 | npm-packlist@1.4.4: 1442 | dependencies: 1443 | ignore-walk: 3.0.4 1444 | npm-bundled: 1.1.2 1445 | 1446 | once@1.4.0: 1447 | dependencies: 1448 | wrappy: 1.0.2 1449 | 1450 | p-limit@2.3.0: 1451 | dependencies: 1452 | p-try: 2.2.0 1453 | 1454 | p-locate@3.0.0: 1455 | dependencies: 1456 | p-limit: 2.3.0 1457 | 1458 | p-try@2.2.0: {} 1459 | 1460 | parent-module@1.0.1: 1461 | dependencies: 1462 | callsites: 3.1.0 1463 | 1464 | path-exists@3.0.0: {} 1465 | 1466 | path-is-absolute@1.0.1: {} 1467 | 1468 | path-parse@1.0.7: {} 1469 | 1470 | periscopic@3.1.0: 1471 | dependencies: 1472 | '@types/estree': 1.0.4 1473 | estree-walker: 3.0.3 1474 | is-reference: 3.0.2 1475 | 1476 | picocolors@1.0.0: {} 1477 | 1478 | picomatch@2.3.1: {} 1479 | 1480 | postcss@8.4.31: 1481 | dependencies: 1482 | nanoid: 3.3.6 1483 | picocolors: 1.0.0 1484 | source-map-js: 1.0.2 1485 | 1486 | process-nextick-args@2.0.1: {} 1487 | 1488 | queue-microtask@1.2.3: {} 1489 | 1490 | readable-stream@2.3.8: 1491 | dependencies: 1492 | core-util-is: 1.0.3 1493 | inherits: 2.0.4 1494 | isarray: 1.0.0 1495 | process-nextick-args: 2.0.1 1496 | safe-buffer: 5.1.2 1497 | string_decoder: 1.1.1 1498 | util-deprecate: 1.0.2 1499 | 1500 | readdirp@3.6.0: 1501 | dependencies: 1502 | picomatch: 2.3.1 1503 | 1504 | rechoir@0.6.2: 1505 | dependencies: 1506 | resolve: 1.22.8 1507 | 1508 | remove-trailing-separator@1.1.0: {} 1509 | 1510 | require-directory@2.1.1: {} 1511 | 1512 | require-main-filename@2.0.0: {} 1513 | 1514 | resolve-from@4.0.0: {} 1515 | 1516 | resolve@1.22.8: 1517 | dependencies: 1518 | is-core-module: 2.13.1 1519 | path-parse: 1.0.7 1520 | supports-preserve-symlinks-flag: 1.0.0 1521 | 1522 | reusify@1.0.4: {} 1523 | 1524 | rimraf@2.7.1: 1525 | dependencies: 1526 | glob: 7.2.3 1527 | 1528 | rollup@3.29.4: 1529 | optionalDependencies: 1530 | fsevents: 2.3.3 1531 | 1532 | run-parallel@1.2.0: 1533 | dependencies: 1534 | queue-microtask: 1.2.3 1535 | 1536 | sade@1.8.1: 1537 | dependencies: 1538 | mri: 1.2.0 1539 | 1540 | safe-buffer@5.1.2: {} 1541 | 1542 | safe-buffer@5.2.1: {} 1543 | 1544 | sander@0.5.1: 1545 | dependencies: 1546 | es6-promise: 3.3.1 1547 | graceful-fs: 4.2.11 1548 | mkdirp: 0.5.6 1549 | rimraf: 2.7.1 1550 | 1551 | sanitize-filename@1.6.3: 1552 | dependencies: 1553 | truncate-utf8-bytes: 1.0.2 1554 | 1555 | sass@1.69.5: 1556 | dependencies: 1557 | chokidar: 3.5.3 1558 | immutable: 4.3.4 1559 | source-map-js: 1.0.2 1560 | 1561 | set-blocking@2.0.0: {} 1562 | 1563 | shelljs@0.8.5: 1564 | dependencies: 1565 | glob: 7.2.3 1566 | interpret: 1.4.0 1567 | rechoir: 0.6.2 1568 | 1569 | shx@0.3.4: 1570 | dependencies: 1571 | minimist: 1.2.8 1572 | shelljs: 0.8.5 1573 | 1574 | simplebar-core@1.2.4: 1575 | dependencies: 1576 | '@types/lodash-es': 4.17.11 1577 | can-use-dom: 0.1.0 1578 | lodash: 4.17.21 1579 | lodash-es: 4.17.21 1580 | 1581 | simplebar@6.2.5: 1582 | dependencies: 1583 | can-use-dom: 0.1.0 1584 | simplebar-core: 1.2.4 1585 | 1586 | sorcery@0.11.0: 1587 | dependencies: 1588 | '@jridgewell/sourcemap-codec': 1.4.15 1589 | buffer-crc32: 0.2.13 1590 | minimist: 1.2.8 1591 | sander: 0.5.1 1592 | 1593 | source-map-js@1.0.2: {} 1594 | 1595 | string-width@3.1.0: 1596 | dependencies: 1597 | emoji-regex: 7.0.3 1598 | is-fullwidth-code-point: 2.0.0 1599 | strip-ansi: 5.2.0 1600 | 1601 | string_decoder@1.1.1: 1602 | dependencies: 1603 | safe-buffer: 5.1.2 1604 | 1605 | strip-ansi@5.2.0: 1606 | dependencies: 1607 | ansi-regex: 4.1.1 1608 | 1609 | strip-indent@3.0.0: 1610 | dependencies: 1611 | min-indent: 1.0.1 1612 | 1613 | supports-preserve-symlinks-flag@1.0.0: {} 1614 | 1615 | svelte-check@3.5.2(sass@1.69.5)(svelte@4.2.2): 1616 | dependencies: 1617 | '@jridgewell/trace-mapping': 0.3.20 1618 | chokidar: 3.5.3 1619 | fast-glob: 3.3.1 1620 | import-fresh: 3.3.0 1621 | picocolors: 1.0.0 1622 | sade: 1.8.1 1623 | svelte: 4.2.2 1624 | svelte-preprocess: 5.0.4(sass@1.69.5)(svelte@4.2.2)(typescript@5.2.2) 1625 | typescript: 5.2.2 1626 | transitivePeerDependencies: 1627 | - '@babel/core' 1628 | - coffeescript 1629 | - less 1630 | - postcss 1631 | - postcss-load-config 1632 | - pug 1633 | - sass 1634 | - stylus 1635 | - sugarss 1636 | 1637 | svelte-hmr@0.15.3(svelte@4.2.2): 1638 | dependencies: 1639 | svelte: 4.2.2 1640 | 1641 | svelte-preprocess@5.0.4(sass@1.69.5)(svelte@4.2.2)(typescript@5.2.2): 1642 | dependencies: 1643 | '@types/pug': 2.0.8 1644 | detect-indent: 6.1.0 1645 | magic-string: 0.27.0 1646 | sass: 1.69.5 1647 | sorcery: 0.11.0 1648 | strip-indent: 3.0.0 1649 | svelte: 4.2.2 1650 | typescript: 5.2.2 1651 | 1652 | svelte@4.2.2: 1653 | dependencies: 1654 | '@ampproject/remapping': 2.2.1 1655 | '@jridgewell/sourcemap-codec': 1.4.15 1656 | '@jridgewell/trace-mapping': 0.3.20 1657 | acorn: 8.11.2 1658 | aria-query: 5.3.0 1659 | axobject-query: 3.2.1 1660 | code-red: 1.0.4 1661 | css-tree: 2.3.1 1662 | estree-walker: 3.0.3 1663 | is-reference: 3.0.2 1664 | locate-character: 3.0.0 1665 | magic-string: 0.30.5 1666 | periscopic: 3.1.0 1667 | 1668 | tar-stream@1.6.2: 1669 | dependencies: 1670 | bl: 1.2.3 1671 | buffer-alloc: 1.2.0 1672 | end-of-stream: 1.4.4 1673 | fs-constants: 1.0.0 1674 | readable-stream: 2.3.8 1675 | to-buffer: 1.1.1 1676 | xtend: 4.0.2 1677 | 1678 | to-buffer@1.1.1: {} 1679 | 1680 | to-regex-range@5.0.1: 1681 | dependencies: 1682 | is-number: 7.0.0 1683 | 1684 | truncate-utf8-bytes@1.0.2: 1685 | dependencies: 1686 | utf8-byte-length: 1.0.4 1687 | 1688 | tslib@2.6.2: {} 1689 | 1690 | typescript@5.2.2: {} 1691 | 1692 | undici-types@5.26.5: {} 1693 | 1694 | utf8-byte-length@1.0.4: {} 1695 | 1696 | util-deprecate@1.0.2: {} 1697 | 1698 | vite@4.5.1(@types/node@20.8.10)(sass@1.69.5): 1699 | dependencies: 1700 | '@types/node': 20.8.10 1701 | esbuild: 0.18.20 1702 | postcss: 8.4.31 1703 | rollup: 3.29.4 1704 | sass: 1.69.5 1705 | optionalDependencies: 1706 | fsevents: 2.3.3 1707 | 1708 | vitefu@0.2.5(vite@4.5.1): 1709 | dependencies: 1710 | vite: 4.5.1(@types/node@20.8.10)(sass@1.69.5) 1711 | 1712 | walkdir@0.0.11: {} 1713 | 1714 | which-module@2.0.1: {} 1715 | 1716 | wrap-ansi@5.1.0: 1717 | dependencies: 1718 | ansi-styles: 3.2.1 1719 | string-width: 3.1.0 1720 | strip-ansi: 5.2.0 1721 | 1722 | wrappy@1.0.2: {} 1723 | 1724 | xtend@4.0.2: {} 1725 | 1726 | y18n@4.0.3: {} 1727 | 1728 | yargs-parser@13.1.2: 1729 | dependencies: 1730 | camelcase: 5.3.1 1731 | decamelize: 1.2.0 1732 | 1733 | yargs@13.3.0: 1734 | dependencies: 1735 | cliui: 5.0.0 1736 | find-up: 3.0.0 1737 | get-caller-file: 2.0.5 1738 | require-directory: 2.1.1 1739 | require-main-filename: 2.0.0 1740 | set-blocking: 2.0.0 1741 | string-width: 3.1.0 1742 | which-module: 2.0.1 1743 | y18n: 4.0.3 1744 | yargs-parser: 13.1.2 1745 | 1746 | zip-stream@1.2.0: 1747 | dependencies: 1748 | archiver-utils: 1.3.0 1749 | compress-commons: 1.2.2 1750 | lodash: 4.17.21 1751 | readable-stream: 2.3.8 1752 | -------------------------------------------------------------------------------- /src/assets/app.scss: -------------------------------------------------------------------------------- 1 | @import 'fonts'; 2 | @import 'vars'; 3 | 4 | * { box-sizing: border-box; margin: 0; padding: 0; } 5 | html, body { 6 | height: 100%; 7 | font-family: $settings-font-family; 8 | } 9 | #app { height: 100%; } 10 | 11 | body #ultimate-closed-caption { 12 | // Lock scroll 13 | max-width: 100vw; 14 | max-height: 100vh; 15 | height: 100%; 16 | padding: $caption-movable-Y $caption-movable-X; // Advice by twitch 5rem 7rem 5rem 0 17 | position: relative; // Not necessary, just to show what is the container of position: absolute 18 | font-size: $settings-font-size; 19 | 20 | // Caption container 21 | #caption-movable-area { 22 | // Do calc only if needed 23 | width: if($caption-movable-X == 0, 100vw, calc(100vw - #{$caption-movable-X} * 2)); 24 | height: if($caption-movable-Y == 0, 100vh, calc(100vh - #{$caption-movable-Y} * 2)); 25 | position: relative; 26 | 27 | // Caption box container 28 | #caption-container { 29 | position: absolute; // To be able to move it 30 | 31 | // Use variables 32 | color: var(--captions-text-color); 33 | font-family: var(--captions-font-family); 34 | font-size: var(--captions-font-size); 35 | text-align: var(--captions-text-align); 36 | text-transform: var(--captions-text-transform); 37 | -webkit-text-stroke: var(--captions-stroke-color) var(--captions-stroke-size); 38 | 39 | &:not(.locked) { 40 | cursor: move; 41 | user-select: none; 42 | } 43 | 44 | border-radius: 0.1em; 45 | display: flex; 46 | flex-direction: column-reverse; 47 | 48 | // Transition for all border radius 49 | transition: border-top-left-radius 2.2s ease-in-out; 50 | &.have-empty-box { 51 | backdrop-filter: blur(var(--captions-background-opacity)); 52 | 53 | .caption-container-box { 54 | backdrop-filter: none; 55 | border-top-left-radius: initial; 56 | border-top-right-radius: initial; 57 | } 58 | } 59 | 60 | .empty-box { 61 | background-color: var(--captions-background-color); 62 | height: 100%; 63 | border-top-left-radius: inherit; 64 | border-top-right-radius: inherit; 65 | } 66 | 67 | .caption-container-box { 68 | padding: $caption-container-padding; 69 | background-color: var(--captions-background-color); 70 | backdrop-filter: blur(var(--captions-background-opacity)); 71 | border-radius: inherit; 72 | 73 | .caption-content-box { 74 | display: flex; 75 | flex-direction: column-reverse; 76 | 77 | overflow: hidden; // Don't show the rest of the text 78 | 79 | font-size: 1em; 80 | max-height: 100%; 81 | 82 | p { // Apply text settings 83 | line-height: $caption-line-height; 84 | font-size: 1em; 85 | color: inherit; 86 | font-family: inherit; 87 | } 88 | } 89 | } 90 | } 91 | } 92 | 93 | // Settings box 94 | #settings-container { 95 | position: absolute; 96 | left: 0; 97 | top: $settings-movable-top; 98 | z-index: 10; 99 | 100 | display: flex; 101 | flex-direction: column; 102 | align-items: center; 103 | gap: 0.5em; 104 | 105 | $button-container-height: calc($buttons-height * $buttons-font-size + $buttons-padding-Y*2); 106 | /* 107 | 100vh = 100% of the height of the screen 108 | - $settings-movable-top = the top of the settings box 109 | - $settings-movable-bottom = the bottom of the settings box 110 | - $button-container-height = the height of the buttons container 111 | - $buttons-settings-gap = the minimum gap between the settings wheel and the settings box 112 | */ 113 | max-height: calc(100vh - #{$settings-movable-top + $settings-movable-bottom} - #{$button-container-height} - #{$buttons-settings-gap}); 114 | 115 | .settings-box { 116 | background-color: rgba($settings-background-color, $settings-background-opacity); 117 | backdrop-filter: blur(7px); 118 | color: $settings-text-color; 119 | border-radius: 0.2em; 120 | box-shadow: 0 0 2em 0.25em $settings-darken-area; 121 | } 122 | 123 | #close-settings-button { 124 | position: absolute; 125 | top: -0.75em; 126 | right: -0.75em; 127 | border: none; 128 | background-color: $theme-background-color; 129 | 130 | font-size: 1em; 131 | padding: 0.5em; 132 | border-radius: 50%; 133 | line-height: 0.5em; 134 | z-index: 11; 135 | box-shadow: -0.1em 0.1em 10px 2px $settings-darken-area; 136 | 137 | svg > * { 138 | fill: $settings-text-color; 139 | } 140 | transition: transform 0.2s ease-in-out; 141 | 142 | &:hover { 143 | transform: scale(1.1); 144 | } 145 | } 146 | 147 | #settings-main { 148 | width: $settings-width; 149 | padding: 0.5em; 150 | 151 | z-index: 1; 152 | 153 | border-top-left-radius: 0; 154 | border-bottom-left-radius: 0; 155 | 156 | display: flex; 157 | flex-direction: column; 158 | justify-content: space-between; 159 | 160 | overflow: hidden auto; 161 | 162 | // Scrollbar with simplebar lib 163 | .simplebar-scrollbar::before { 164 | background-color: $settings-text-color; 165 | } 166 | 167 | // Main content 168 | .caption-settings-container { 169 | display: flex; 170 | justify-content: space-between; 171 | align-items: center; 172 | flex-direction: column; 173 | gap: $settings-main-gap; 174 | 175 | .caption-group { 176 | width: 100%; 177 | display: flex; 178 | justify-content: space-between; 179 | flex-direction: column; 180 | background-color: $settings-darken-area; 181 | border-radius: $settings-border-radius; 182 | box-shadow: 0 0 0.5em 0.1em $settings-darken-area inset; 183 | 184 | // If it's open, change the rotation 185 | &.isOpen .caption-group-header .dropdown-icon svg { 186 | transform: rotate(90deg); 187 | } 188 | 189 | .caption-group-header { 190 | display: flex; 191 | justify-content: space-between; 192 | align-items: center; 193 | gap: 0.5em; 194 | width: 100%; 195 | padding-top: .5em; 196 | padding-bottom: .5em; 197 | border: none; 198 | background-color: transparent; 199 | font-size: 1em; 200 | 201 | #language-input { 202 | font-size: 0.9em; 203 | padding-left: 0.5em; 204 | color: $settings-text-color; 205 | height: 2.21em; 206 | border-radius: 0.75em; 207 | background-color: $settings-button-color; 208 | background-image: url('data:image/svg+xml;utf8,'); 209 | } 210 | 211 | h3 { 212 | color: $settings-text-color; 213 | text-align: left; 214 | } 215 | 216 | .dropdown-icon { 217 | font-size: 1.25em; 218 | background-color: $settings-button-color; 219 | border-radius: 50%; 220 | margin: 0; 221 | width: 1.5em; 222 | height: 1.5em; 223 | display: flex; 224 | justify-content: center; 225 | align-items: center; 226 | 227 | svg { 228 | width: 1em; 229 | height: 1em; 230 | fill: $settings-text-color; 231 | transform: rotate(180deg); 232 | transition: transform 0.2s ease-in-out; 233 | } 234 | } 235 | } 236 | 237 | > * { 238 | padding-right: $settings-inside-padding; 239 | padding-left: $settings-inside-padding; 240 | } 241 | } 242 | } 243 | } 244 | 245 | #settings-details-navbar { 246 | display: flex; 247 | justify-content: space-around; 248 | align-items: center; 249 | width: 90%; 250 | 251 | svg { 252 | fill: $settings-text-color; 253 | stroke: $settings-text-color; 254 | } 255 | 256 | .navbar-button-open { 257 | font-size: 1.75em; 258 | line-height: 0.75em; 259 | margin-top: $settings-details-button-spacing - $settings-details-padding-top; 260 | padding: $settings-details-padding-top 0.25em $settings-details-button-spacing; 261 | } 262 | 263 | .navbar-button { 264 | border: none; 265 | background-color: transparent; 266 | font-size: 1em; 267 | padding: 0.2em 0.4em; 268 | line-height: 0.75em; 269 | 270 | &#guide-link { 271 | margin: $settings-details-button-spacing 0; 272 | font-size: 1.75em; 273 | } 274 | 275 | transition: transform 0.2s ease-in-out; 276 | 277 | &:hover { 278 | transform: scale(1.1); 279 | } 280 | } 281 | 282 | .navbar-button-container.isOpen { 283 | position: relative; 284 | 285 | .navbar-button-open { 286 | background-color: $settings-details-background; 287 | border-top-left-radius: 0.5em; 288 | border-top-right-radius: 0.5em; 289 | } 290 | 291 | .binder { 292 | position: absolute; 293 | width: 100%; 294 | height: calc($settings-main-gap + 0.75px); 295 | display: block; 296 | background-color: $settings-details-background; 297 | backdrop-filter: blur(7px); 298 | box-shadow: -5px 0 0 0 $settings-details-shadow-color, 299 | 5px 0 0 0 $settings-details-shadow-color, 300 | 0 0 4em 2em $settings-darken-area; 301 | z-index: -10; 302 | } 303 | } 304 | } 305 | 306 | #settings-details { 307 | width: 100%; 308 | border-top-left-radius: 0; 309 | border-bottom-left-radius: 0; 310 | padding: 0.5em; 311 | background-color: rgba($settings-details-background, 0.9); 312 | 313 | .settings-details-container { 314 | background-color: $settings-darken-area; 315 | border-radius: $settings-border-radius; 316 | 317 | .settings-details-header { 318 | padding: 0.5em $settings-inside-padding; 319 | } 320 | 321 | .caption-group-content-container { 322 | padding: 0 $settings-inside-padding 0.25em; 323 | margin-bottom: 0.25em; 324 | 325 | .caption-group-content { 326 | padding-bottom: 0.25em; 327 | } 328 | } 329 | 330 | .settings-details-selector-container { 331 | display: flex; 332 | justify-content: space-between; 333 | padding: 0 2em 0.5em 0.8em; 334 | margin-left: 0.2em; 335 | 336 | .settings-details-selector { 337 | display: flex; 338 | gap: 0.3em; 339 | } 340 | 341 | .input-button { 342 | background-color: transparent; 343 | border: none; 344 | font-size: 1.5em; 345 | line-height: 0.75em; 346 | 347 | svg { 348 | fill: $settings-text-color; 349 | } 350 | 351 | &.active { 352 | background-color: $settings-text-color; 353 | 354 | svg { 355 | fill: $settings-text-secondary; 356 | } 357 | } 358 | 359 | padding: 0.1em; 360 | border-radius: 0.1em; 361 | } 362 | } 363 | } 364 | } 365 | 366 | .caption-group-content-container { 367 | display: flex; 368 | align-items: stretch; 369 | padding-bottom: 0.5em; 370 | 371 | .vertical-bar { 372 | width: 0.2em; 373 | background-color: $settings-text-color; 374 | border-radius: 0.2em; 375 | } 376 | 377 | .caption-group-content { 378 | display: flex; 379 | flex-direction: column; 380 | justify-content: space-between; 381 | align-items: center; 382 | width: 100%; 383 | gap: $settings-gap-between-group; 384 | padding: 0.5em 1em; 385 | 386 | .caption-group-content-item { 387 | display: flex; 388 | justify-content: space-between; 389 | width: 100%; 390 | font-size: 0.9em; 391 | 392 | &.group-opacity, &.group-font-size, &.group-font-family { 393 | flex-direction: column; 394 | 395 | &:not(.group-font-family) { 396 | gap: 0.25em; 397 | } 398 | 399 | > div { 400 | display: flex; 401 | justify-content: space-between; 402 | } 403 | 404 | > select { 405 | margin-top: calc($settings-gap-between-group / 2); 406 | } 407 | 408 | > input[type="range"] { 409 | margin-top: $settings-gap-between-group; 410 | margin-bottom: calc((1em - 0.3em)/2); // 1em = height of thumb, 0.3em = height of range 411 | width: 100%; 412 | appearance: none; 413 | height: 0.3em; 414 | box-shadow: none; 415 | cursor: pointer; 416 | 417 | &::-webkit-slider-thumb { 418 | appearance: none; 419 | width: 1em; 420 | height: 1em; 421 | border-radius: 50%; 422 | background-color: $settings-text-color; 423 | box-shadow: 0 0 0.5em 0.5em $settings-button-color; 424 | } 425 | } 426 | } 427 | 428 | .caption-number-container { 429 | position: relative; 430 | color: $settings-text-secondary; 431 | 432 | input { 433 | padding-right: 1.2em; 434 | } 435 | 436 | .units { 437 | position: absolute; 438 | right: 0; 439 | top: 0; 440 | font-size: 1em; 441 | height: 1.5em; 442 | width: $settings-input-size; 443 | line-height: 1.5em; 444 | display: inline-flex; 445 | justify-content: center; 446 | align-items: center; 447 | gap: 0.1em; 448 | pointer-events: none; 449 | 450 | .invisible { 451 | visibility: hidden; 452 | } 453 | } 454 | } 455 | 456 | label { 457 | font-size: 1em; 458 | } 459 | 460 | input { 461 | height: 1.5em; 462 | width: $settings-input-size; 463 | border: 0; 464 | border-radius: $settings-input-border-radius; 465 | padding: 0; 466 | margin: 0; 467 | background-color: $settings-text-color; 468 | 469 | font-family: inherit; 470 | font-weight: normal; 471 | font-size: 1em; 472 | line-height: 1em; 473 | color: $settings-text-secondary; 474 | text-align: center; 475 | box-shadow: $settings-input-shadow; 476 | 477 | // Remove arrows on number input 478 | &::-webkit-outer-spin-button, 479 | &::-webkit-inner-spin-button { 480 | -webkit-appearance: none; 481 | margin: 0; 482 | } 483 | 484 | // Remove arrows on Firefox 485 | &[type=number] { 486 | appearance: textfield; 487 | -moz-appearance: textfield; 488 | } 489 | 490 | // Border radius on color picker on Firefox 491 | &[type=color] { 492 | cursor: pointer; 493 | box-shadow: none; 494 | 495 | &::-moz-color-swatch { 496 | border-radius: $settings-input-border-radius; 497 | } 498 | } 499 | 500 | &:focus, &:active { 501 | box-shadow: $settings-input-shadow-out; 502 | transition: box-shadow 0.5s; 503 | } 504 | 505 | &:not(input[type="range"]) { 506 | &::-webkit-color-swatch { 507 | border: none; 508 | border-radius: $settings-input-border-radius; 509 | } 510 | 511 | &::-webkit-color-swatch-wrapper { 512 | padding: 0; 513 | } 514 | } 515 | } 516 | 517 | @each $font in $font-families { 518 | option[value="#{$font}"] { 519 | font-family: #{$font}; 520 | } 521 | } 522 | } 523 | } 524 | } 525 | } 526 | 527 | // Buttons 528 | .caption-button-container { 529 | display: flex; 530 | flex-direction: column; 531 | padding: 0; 532 | gap: 0.5em; 533 | 534 | div { 535 | display: flex; 536 | justify-content: space-between; 537 | align-items: center; 538 | width: 100%; 539 | gap: 0.5em; 540 | margin-top: 0.5em; 541 | } 542 | 543 | button { 544 | padding: 0.5em 0.3em; 545 | border: 0; 546 | border-radius: 0.75em; 547 | font-size: 1em; 548 | font-family: inherit; 549 | line-height: 1em; 550 | background-color: $settings-button-color; 551 | color: inherit; 552 | width: 100%; 553 | box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.5); 554 | 555 | transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; 556 | 557 | &:hover, &:active { 558 | background-color: $settings-text-color; 559 | color: $settings-button-color; 560 | } 561 | 562 | &:active { 563 | box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.5) inset; 564 | } 565 | } 566 | } 567 | 568 | #buttons-container { 569 | position: absolute; 570 | left: 0; 571 | bottom: $settings-movable-bottom; 572 | z-index: 15; 573 | 574 | font-size: $buttons-font-size; 575 | padding: $buttons-padding-Y $buttons-padding-X; 576 | background-color: $buttons-color; 577 | border-top-right-radius: 0.25em; 578 | border-bottom-right-radius: 0.25em; 579 | 580 | display: flex; 581 | align-items: center; 582 | gap: $buttons-min-gap; 583 | 584 | // Settings wheel 585 | > button { 586 | height: #{$buttons-height}em; 587 | border: none; 588 | background-color: transparent; 589 | 590 | padding: 0.12em 0.15em; 591 | font-size: 1em; 592 | 593 | &:after { 594 | font-size: 0.75em; 595 | } 596 | 597 | svg { 598 | transition: transform 0.2s ease-in-out; 599 | 600 | & > * { 601 | fill: $settings-text-color; 602 | } 603 | } 604 | 605 | &:hover svg { 606 | transform: scale(1.1); 607 | } 608 | } 609 | } 610 | } 611 | 612 | // Button 613 | button { 614 | cursor: pointer; 615 | } 616 | 617 | // Select 618 | select { 619 | height: 1.5em; 620 | border: 0; 621 | border-radius: $settings-input-border-radius; 622 | padding-left: 1em; 623 | padding-right: 2em; 624 | font-family: inherit; 625 | font-weight: lighter; 626 | font-size: 1em; 627 | line-height: 1.5em; 628 | text-align: left; 629 | color: $settings-text-secondary; 630 | background-color: $settings-text-color; 631 | box-shadow: $settings-input-shadow; 632 | width: 100%; 633 | max-width: 100%; 634 | 635 | &#language-input { 636 | font-size: 0.9em; 637 | padding-left: 0.5em; 638 | } 639 | 640 | &:disabled { 641 | background-color: $settings-disabled-color; 642 | } 643 | 644 | &:not(:disabled) { 645 | cursor: pointer; 646 | 647 | &:focus, &:active { 648 | box-shadow: $settings-input-shadow-out; 649 | transition: box-shadow 0.5s; 650 | } 651 | } 652 | 653 | /* Remove arrow */ 654 | appearance: none; 655 | 656 | /* Add my customisable arrow */ 657 | background-image: url('data:image/svg+xml;utf8,'); 658 | background-repeat: no-repeat; 659 | background-position-x: 95%; 660 | background-position-y: 50%; 661 | background-size: 1rem; 662 | } 663 | 664 | // Tooltip 665 | [data-tooltip] { 666 | position: relative; 667 | 668 | &:hover:before, 669 | &:hover:after { 670 | visibility: visible; 671 | opacity: 1; 672 | } 673 | 674 | &:before, 675 | &:after { 676 | position: absolute; 677 | transform: translate(-50%, -5px); 678 | font-size: 1.2em; 679 | line-height: 1em; 680 | 681 | transition: opacity ease-in-out .1s; 682 | 683 | // Hide default 684 | visibility: hidden; 685 | opacity: 0; 686 | } 687 | 688 | &[data-tooltip-content="left"]:after { 689 | left: 0; 690 | transform: translate(0, -5px); 691 | } 692 | 693 | &:after { 694 | // Tooltip content 695 | content: attr(data-tooltip); 696 | text-align: center; 697 | white-space: nowrap; 698 | 699 | background: $theme-text-color; 700 | color: $theme-background-color; 701 | padding: 0.4em 0.5em; 702 | border-radius: 0.1em; 703 | 704 | bottom: 100%; 705 | left: 50%; 706 | z-index: 20; 707 | } 708 | 709 | &::before { 710 | // Create arrow 711 | content: ""; 712 | border: 0.5em solid transparent; 713 | border-bottom-width: 0; 714 | 715 | border-top-color: $theme-text-color; 716 | 717 | bottom: calc(100% - (0.5em - 5px)); 718 | left: 50%; 719 | z-index: 30; 720 | } 721 | } -------------------------------------------------------------------------------- /src/assets/fonts.scss: -------------------------------------------------------------------------------- 1 | // Calibri_Regular.ttf 2 | @font-face { 3 | font-family: "Calibri"; 4 | src: url('fonts/Calibri_Regular.ttf') format('truetype'); 5 | font-weight: normal; 6 | font-style: normal; 7 | } 8 | 9 | // OpenDyslexic-Regular.otf 10 | @font-face { 11 | font-family: "OpenDyslexic"; 12 | src: url('fonts/OpenDyslexic-Regular.otf') format('opentype'); 13 | font-weight: normal; 14 | font-style: normal; 15 | } 16 | 17 | // Roboto-Regular.ttf 18 | @font-face { 19 | font-family: "Roboto"; 20 | src: url('fonts/Roboto-Regular.ttf') format('truetype'); 21 | font-weight: normal; 22 | font-style: normal; 23 | } 24 | 25 | // Lexend-Regular.ttf 26 | @font-face { 27 | font-family: "Lexend"; 28 | src: url('fonts/Lexend-Regular.ttf') format('truetype'); 29 | font-weight: normal; 30 | font-style: normal; 31 | } 32 | 33 | // Lexend-SemiBold.ttf 34 | @font-face { 35 | font-family: "Lexend"; 36 | src: url('fonts/Lexend-SemiBold.ttf') format('truetype'); 37 | font-weight: bold; 38 | font-style: normal; 39 | } 40 | 41 | // Lexend-Light.ttf 42 | @font-face { 43 | font-family: "Lexend"; 44 | src: url('fonts/Lexend-Light.ttf') format('truetype'); 45 | font-weight: lighter; 46 | font-style: normal; 47 | } 48 | 49 | $font-families: "Arial, Helvetica, sans-serif", "Calibri, sans-serif", "Courier New, Courier, monospace", "OpenDyslexic, sans-serif", "Roboto, sans-serif", "Times New Roman, Times, serif", "Verdana, sans-serif"; -------------------------------------------------------------------------------- /src/assets/fonts/Calibri_Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UltimateCC/extension/5f65891c50de21e7b267d0acf6d10ea18910d9e4/src/assets/fonts/Calibri_Regular.ttf -------------------------------------------------------------------------------- /src/assets/fonts/Lexend-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UltimateCC/extension/5f65891c50de21e7b267d0acf6d10ea18910d9e4/src/assets/fonts/Lexend-Light.ttf -------------------------------------------------------------------------------- /src/assets/fonts/Lexend-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UltimateCC/extension/5f65891c50de21e7b267d0acf6d10ea18910d9e4/src/assets/fonts/Lexend-Regular.ttf -------------------------------------------------------------------------------- /src/assets/fonts/Lexend-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UltimateCC/extension/5f65891c50de21e7b267d0acf6d10ea18910d9e4/src/assets/fonts/Lexend-SemiBold.ttf -------------------------------------------------------------------------------- /src/assets/fonts/OpenDyslexic-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UltimateCC/extension/5f65891c50de21e7b267d0acf6d10ea18910d9e4/src/assets/fonts/OpenDyslexic-Regular.otf -------------------------------------------------------------------------------- /src/assets/fonts/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UltimateCC/extension/5f65891c50de21e7b267d0acf6d10ea18910d9e4/src/assets/fonts/Roboto-Regular.ttf -------------------------------------------------------------------------------- /src/assets/languages.json: -------------------------------------------------------------------------------- 1 | { 2 | "af": "Afrikaans", 3 | "sq": "Albanian", 4 | "am": "Amharic", 5 | "ar": "Arabic", 6 | "hy": "Armenian", 7 | "as": "Assamese", 8 | "ay": "Aymara", 9 | "az": "Azerbaijani", 10 | "bm": "Bambara", 11 | "eu": "Basque", 12 | "be": "Belarusian", 13 | "bn": "Bengali", 14 | "bho": "Bhojpuri", 15 | "bs": "Bosnian", 16 | "bg": "Bulgarian", 17 | "ca": "Catalan", 18 | "ceb": "Cebuano", 19 | "zh-CN": "Chinese (Simplified)", 20 | "zh-TW": "Chinese (Traditional)", 21 | "co": "Corsican", 22 | "hr": "Croatian", 23 | "cs": "Czech", 24 | "da": "Danish", 25 | "dv": "Dhivehi", 26 | "doi": "Dogri", 27 | "nl": "Dutch", 28 | "en": "English", 29 | "eo": "Esperanto", 30 | "et": "Estonian", 31 | "ee": "Ewe", 32 | "fil": "Filipino (Tagalog)", 33 | "fi": "Finnish", 34 | "fr": "French", 35 | "fy": "Frisian", 36 | "gl": "Galician", 37 | "ka": "Georgian", 38 | "de": "German", 39 | "el": "Greek", 40 | "gn": "Guarani", 41 | "gu": "Gujarati", 42 | "ht": "Haitian Creole", 43 | "ha": "Hausa", 44 | "haw": "Hawaiian", 45 | "he": "Hebrew", 46 | "hi": "Hindi", 47 | "hmn": "Hmong", 48 | "hu": "Hungarian", 49 | "is": "Icelandic", 50 | "ig": "Igbo", 51 | "ilo": "Ilocano", 52 | "id": "Indonesian", 53 | "ga": "Irish", 54 | "it": "Italian", 55 | "ja": "Japanese", 56 | "jv": "Javanese", 57 | "kn": "Kannada", 58 | "kk": "Kazakh", 59 | "km": "Khmer", 60 | "rw": "Kinyarwanda", 61 | "gom": "Konkani", 62 | "ko": "Korean", 63 | "kri": "Krio", 64 | "ku": "Kurdish", 65 | "ckb": "Kurdish (Sorani)", 66 | "ky": "Kyrgyz", 67 | "lo": "Lao", 68 | "la": "Latin", 69 | "lv": "Latvian", 70 | "ln": "Lingala", 71 | "lt": "Lithuanian", 72 | "lg": "Luganda", 73 | "lb": "Luxembourgish", 74 | "mk": "Macedonian", 75 | "mai": "Maithili", 76 | "mg": "Malagasy", 77 | "ms": "Malay", 78 | "ml": "Malayalam", 79 | "mt": "Maltese", 80 | "mi": "Maori", 81 | "mr": "Marathi", 82 | "mni-Mtei": "Meiteilon (Manipuri)", 83 | "lus": "Mizo", 84 | "mn": "Mongolian", 85 | "my": "Myanmar (Burmese)", 86 | "ne": "Nepali", 87 | "no": "Norwegian", 88 | "ny": "Nyanja (Chichewa)", 89 | "or": "Odia (Oriya)", 90 | "om": "Oromo", 91 | "ps": "Pashto", 92 | "fa": "Persian", 93 | "pl": "Polish", 94 | "pt": "Portuguese", 95 | "pa": "Punjabi", 96 | "qu": "Quechua", 97 | "ro": "Romanian", 98 | "ru": "Russian", 99 | "sm": "Samoan", 100 | "sa": "Sanskrit", 101 | "gd": "Scots Gaelic", 102 | "nso": "Sepedi", 103 | "sr": "Serbian", 104 | "st": "Sesotho", 105 | "sn": "Shona", 106 | "sd": "Sindhi", 107 | "si": "Sinhala (Sinhalese)", 108 | "sk": "Slovak", 109 | "sl": "Slovenian", 110 | "so": "Somali", 111 | "es": "Spanish", 112 | "su": "Sundanese", 113 | "sw": "Swahili", 114 | "sv": "Swedish", 115 | "tl": "Tagalog (Filipino)", 116 | "tg": "Tajik", 117 | "ta": "Tamil", 118 | "tt": "Tatar", 119 | "te": "Telugu", 120 | "th": "Thai", 121 | "ti": "Tigrinya", 122 | "ts": "Tsonga", 123 | "tr": "Turkish", 124 | "tk": "Turkmen", 125 | "ak": "Twi (Akan)", 126 | "uk": "Ukrainian", 127 | "ur": "Urdu", 128 | "ug": "Uyghur", 129 | "uz": "Uzbek", 130 | "vi": "Vietnamese", 131 | "cy": "Welsh", 132 | "xh": "Xhosa", 133 | "yi": "Yiddish", 134 | "yo": "Yoruba", 135 | "zu": "Zulu" 136 | } -------------------------------------------------------------------------------- /src/assets/rtl_languages.json: -------------------------------------------------------------------------------- 1 | [ 2 | "ar", 3 | "fa", 4 | "he", 5 | "ckb", 6 | "ps", 7 | "ug", 8 | "ur", 9 | "yi", 10 | "test" 11 | ] -------------------------------------------------------------------------------- /src/assets/vars.scss: -------------------------------------------------------------------------------- 1 | // Ultimate CC theme 2 | $theme-font-family: "Lexend", Arial, sans-serif; 3 | $theme-font-size: 1.25em; /*clamp(1em, 2.25vh, 2em);*/ 4 | $theme-text-color: #DFDCFF; 5 | $theme-background-color: #364FD9; 6 | $theme-background-darken: #0A0D21; 7 | 8 | // Caption variables 9 | $caption-line-height: 1.25em; 10 | $caption-container-padding: .25em .5em; 11 | $caption-movable-Y: 0; 12 | $caption-movable-X: 0; 13 | 14 | // Settings variables 15 | $settings-text-color: $theme-text-color; 16 | $settings-text-secondary: #1F1F23; 17 | $settings-background-color: $theme-background-color; 18 | $settings-background-opacity: 0.80; 19 | $settings-darken-area: #00000099; 20 | $settings-movable-top: 6rem; 21 | $settings-movable-bottom: 5rem; 22 | $settings-font-size: clamp(1em, 2vh, 1.75em); 23 | $settings-width: 18.75em; 24 | $settings-border-radius: 0.25em; 25 | $settings-font-family: $theme-font-family; 26 | $settings-inside-padding: 0.8em; 27 | $settings-gap-between-group: 0.75em; 28 | $settings-input-border-radius: 0.25em; 29 | $settings-input-size: 7em; 30 | $settings-input-shadow: 0 3.3px 3.3px 0 rgba($settings-background-color, 0.25) inset; 31 | $settings-input-shadow-out: 0 0 3px 2px rgba($settings-text-color, 0.4); 32 | $settings-inner-shadow: 0 0 5px 2px $settings-darken-area inset; 33 | $settings-disabled-color: #707075; 34 | $settings-main-gap: 0.5em; 35 | $settings-button-color: $theme-background-darken; 36 | $settings-details-background: $theme-background-color; 37 | $settings-details-shadow-color: rgba($settings-background-color, 0.5); 38 | $settings-details-button-spacing: 0.3em; 39 | $settings-details-padding-top: 0.1em; 40 | 41 | // Transcript variables 42 | // $transcript-background-color: #222F75; 43 | // $transcript-background-color: #0D1334; 44 | $transcript-background-color: $theme-background-darken; 45 | $transcript-top-color: #00000099; 46 | 47 | // Buttons variables 48 | $buttons-font-size: 1.35rem; 49 | $buttons-height: 1.7; 50 | $buttons-padding-X: .25em; 51 | $buttons-padding-Y: .2em; 52 | $buttons-min-gap: .1em; 53 | $buttons-settings-gap: 1em; 54 | $buttons-color: $theme-background-color; -------------------------------------------------------------------------------- /src/components/Captions.svelte: -------------------------------------------------------------------------------- 1 | 201 | 202 | {#if settingsShown || $transcript.length } 203 | {@const mustShowEmptyBox = $transcript.length < $position.maxLines && !resizing && !settingsShown && (captionHovered || moving) } 204 |
205 | 206 | 207 |
221 | 222 | {#if !$position.locked && (captionHovered || resizing)} 223 |
224 | {#each ALL_ANGLES as side} 225 | {@const acronym = side.split(' ').map(s=>s[0]).join('') } 226 |
startResizing(acronym, e) } 230 | > 231 | {#if acronym === "br"} 232 | 233 | 234 | 235 | {/if} 236 |
237 | {/each} 238 | 239 | {#each ALL_SIDES as side} 240 |
startResizing(side[0], e) } 244 | > 245 |
246 | {/each} 247 |
248 | {/if} 249 |
250 |
251 |

252 | {#if $transcript.length < MAX_LINES && (resizing || settingsShown)} 253 | {#each {length: MAX_LINES - $transcript.length} as _} 254 | This is a sample caption to show you how it looks like
255 | {/each} 256 | {/if} 257 | {#each $transcript as line, i } 258 | {#if i!==0} 259 |
260 | {/if} 261 | {#if line[0]?.speaker} 262 | {line[0].speaker}: 263 | {/if} 264 | {#each line as part } 265 | { ( part.captions.find(alt=>alt.lang === $language) ?? part.captions[0] ).text } 266 | {/each} 267 | {/each} 268 |

269 |
270 |
271 | {#if mustShowEmptyBox} 272 |
273 | {/if} 274 |
275 |
276 | {/if} 277 | 278 | 435 | 436 | 437 | 438 | -------------------------------------------------------------------------------- /src/components/Config.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 |
7 |
8 |

Thanks for installing Ultimate Closed Captions

9 |

10 | For a better viewer experience, install this extension as an overlay 11 |

12 |

13 | To work correctly, this extension requires you to use the dashboard at 14 | { dashboardUrl } 15 |

16 |
17 |
18 | 19 | -------------------------------------------------------------------------------- /src/components/DropdownIcon.svelte: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/InputButton.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /src/components/LanguageSelect.svelte: -------------------------------------------------------------------------------- 1 | 27 | 28 | -------------------------------------------------------------------------------- /src/components/NumberInput.svelte: -------------------------------------------------------------------------------- 1 | 14 | 15 | -------------------------------------------------------------------------------- /src/components/Overlay.svelte: -------------------------------------------------------------------------------- 1 | 37 | 38 |
39 | {#if captionsShown || settingsShown } 40 | 41 | {/if} 42 | 43 | {#if settingsShown} 44 | 45 | {/if} 46 | 47 | {#if $twitchContext.arePlayerControlsVisible} 48 |
49 | 69 | 81 |
82 | {/if} 83 |
84 | -------------------------------------------------------------------------------- /src/components/Settings.svelte: -------------------------------------------------------------------------------- 1 | 35 | 36 | 37 | 38 |
39 | 45 |
46 |
47 | {#if $lastReceivedCaptions.length !== 1} 48 | 49 |
50 | {#if $lastReceivedCaptions.length === 0} 51 | Waiting for broadcaster speech 52 | {:else} 53 |
54 |

Language

55 | 56 |
57 | {/if} 58 |
59 | {/if} 60 | 61 | 62 |
63 | 67 | {#if current === 'text'} 68 |
69 |
70 |
71 |
72 | 73 | 82 |
83 |
84 | 85 | 86 |
87 |
88 |
89 | 90 |
91 | 95 |
96 | 97 | px 98 |
99 |
100 | 101 |
102 | 103 |
104 |
105 |
106 | {/if} 107 |
108 | 109 | 110 |
111 | 115 | {#if current === 'background'} 116 |
117 |
118 |
119 |
120 | 121 | 122 |
123 |
124 |
125 | 126 |
127 | 131 |
132 | 133 | % 134 |
135 |
136 |
137 | 138 |
139 |
140 |
141 | 142 | {/if} 143 |
144 |
145 | 146 |
147 | 148 |
149 | 153 | 157 |
158 | 161 |
162 |
163 |
164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 184 |
185 | {#if current === 'details'} 186 |
187 |
188 |
189 |

Other settings

190 |
191 |
192 |
193 |
194 |
195 |
196 | 197 | 198 |
199 |
200 |
201 | 202 |
203 | 207 |
208 | 209 | px 210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 | 218 |
219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 |
241 | 242 | 243 |
244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 |
263 |
264 |
265 |
266 |
267 | {/if} 268 |
-------------------------------------------------------------------------------- /src/components/Transcript.svelte: -------------------------------------------------------------------------------- 1 | 22 | 23 |
24 |
25 |

Live transcript

26 | {#if $lastReceivedCaptions.length > 1} 27 |
28 | 29 |
30 | 31 |
32 |
33 | {/if} 34 |
35 | 36 |
37 | {#if $lastReceivedCaptions.length === 0} 38 |
39 | Waiting for broadcaster speech 40 |
41 | {/if} 42 | 43 | {#each $transcript as line } 44 |
45 | {#if line[0]?.speaker} 46 | {line[0].speaker}: 47 | {/if} 48 | {#each line as part } 49 | {(part.captions.find(alt => alt.lang === $language) ?? part.captions[0]).text} 50 | {/each} 51 |
52 | {/each} 53 |
54 |
55 | 56 | -------------------------------------------------------------------------------- /src/components/Warning.svelte: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 |
11 |
12 | 13 | -------------------------------------------------------------------------------- /src/lib/captions.ts: -------------------------------------------------------------------------------- 1 | import { get, writable } from "svelte/store"; 2 | import { twitchContext } from "./twitch"; 3 | import type { LangCode } from "./utils"; 4 | 5 | export interface Caption { 6 | lang: LangCode 7 | text: string 8 | } 9 | 10 | export type CaptionsData = { 11 | delay: number 12 | duration: number 13 | } & CaptionLine 14 | 15 | interface CaptionLine { 16 | speaker?: string 17 | lineEnd: boolean 18 | final: boolean 19 | captions: Caption[] 20 | } 21 | 22 | /** Complete transcript, each array is a line (may be separated in multiple part) */ 23 | export const transcript = writable([]); 24 | 25 | /** Last received captions (used for language list) */ 26 | export const lastReceivedCaptions = writable([]); 27 | 28 | // Handle received captions 29 | export async function handleCaptions(data: CaptionsData) { 30 | lastReceivedCaptions.set(data.captions); 31 | 32 | const { delay, duration, ...newText } = data; 33 | 34 | // Delay captions for stream latency minus accumulated processing delay 35 | const waitTime = (( get(twitchContext)?.hlsLatencyBroadcaster || 4 ) * 1000) - delay; 36 | await new Promise(res => setTimeout(res, waitTime)); 37 | 38 | transcript.update((transcript) => { 39 | 40 | // Index of last line from speaker 41 | const lastLine = transcript.findLast(l => l[0].speaker===data.speaker); 42 | 43 | if(lastLine && !lastLine[lastLine.length-1].lineEnd) { 44 | // Last line from speaker not finished 45 | 46 | if(lastLine[lastLine.length-1].final) { 47 | // Last text was final: append after it 48 | lastLine.push(newText); 49 | }else{ 50 | // Last text was not final: replace it 51 | lastLine[lastLine.length-1] = newText; 52 | } 53 | }else{ 54 | // Add text as a new line 55 | transcript.push([newText]); 56 | } 57 | if(transcript.length > 50) transcript.shift(); 58 | return transcript; 59 | }); 60 | } 61 | -------------------------------------------------------------------------------- /src/lib/settings.ts: -------------------------------------------------------------------------------- 1 | import { persisted } from "./stores/persistedStore"; 2 | import { resetablePersisted } from "./stores/resetablePersisted"; 3 | 4 | const defaultSettings = { 5 | fontSize: 20, 6 | textColor: '#E0E0E0', 7 | fontFamily: 'Arial, Helvetica, sans-serif', 8 | backgroundColor: '#37373E', 9 | backgroundOpacity: 50, 10 | strokeColor: '#E0E0E0', 11 | strokeSize: 0, 12 | textAlign: 'left', 13 | textTransform: 'none', 14 | } 15 | 16 | export type SettingsType = typeof defaultSettings; 17 | 18 | const defaultPosition = { 19 | bottom: 8, // % 20 | left: 25, // % 21 | width: 50, // % 22 | maxLines: 2, // lines 23 | locked: false, 24 | } 25 | 26 | export type PositionType = typeof defaultPosition; 27 | 28 | // General settings 29 | export const settings = resetablePersisted('ucc_config', () => { return {...defaultSettings}; }); 30 | 31 | // Position/size 32 | export const position = resetablePersisted('ucc_position', () => { return {...defaultPosition}; }); 33 | 34 | // Reset position if format from old version is found 35 | position.subscribe((val: any)=>{ 36 | if(val.width === undefined || val.top !== undefined) { 37 | position.reset(); 38 | } 39 | }); 40 | 41 | export function initContext(channelId: string) { 42 | const context = new Map(); 43 | 44 | // Store setting for captions shown or not when user updated it 45 | context.set('showCaptions', persisted(`ucc_showCaptions_${channelId}`, undefined)); 46 | 47 | // Store setting for captions language (different between streamers) 48 | context.set('language', resetablePersisted(`ucc_language_${channelId}`, () => '')); 49 | 50 | return context; 51 | } 52 | -------------------------------------------------------------------------------- /src/lib/stores/persistedStore.ts: -------------------------------------------------------------------------------- 1 | // Based on https://github.com/joshnuss/svelte-persisted-store 2 | // Writable store persisted to localstorage 3 | 4 | import { writable, type Writable } from 'svelte/store'; 5 | 6 | type StoreDict = { [key: string]: Writable } 7 | 8 | function getStorage() { 9 | try{ 10 | // Access to local storage only on browser 11 | const browser = typeof(window) !== 'undefined' && typeof(document) !== 'undefined'; 12 | const storage = browser ? localStorage : null; 13 | 14 | // Ensure storage access is allowed 15 | storage?.setItem('test', 'test'); 16 | storage?.getItem('test'); 17 | storage?.removeItem('test'); 18 | return storage; 19 | }catch(e) { 20 | console.error('Error accessing local storage', e); 21 | return null; 22 | } 23 | } 24 | const storage = getStorage(); 25 | 26 | /* 27 | Listening for storage events would allow to handle settings update accross different tabs 28 | But needs to be fixed to avoid infinite loops 29 | 30 | if (storage) { 31 | // Listen for storage events to handle updates in other tabs 32 | window.addEventListener("storage", (event: StorageEvent) => { 33 | if ( event.key !== null ) { 34 | stores[event.key]?.set(event.newValue ? JSON.parse(event.newValue) : null); 35 | } 36 | }); 37 | }*/ 38 | 39 | const stores: StoreDict = {}; 40 | 41 | export function persisted(storageKey: string, initialValue: T): Writable { 42 | let store = stores[storageKey]; 43 | 44 | if (!store) { 45 | const baseStore = writable(initialValue, (set) => { 46 | const json = storage?.getItem(storageKey); 47 | if(json) set(JSON.parse(json)); 48 | }); 49 | 50 | function updateStorage(key: string, value: T) { 51 | storage?.setItem(key, JSON.stringify(value)); 52 | } 53 | 54 | const { subscribe } = baseStore; 55 | 56 | store = { 57 | set(value: T) { 58 | updateStorage(storageKey, value); 59 | baseStore.set(value); 60 | }, 61 | update(callback: (value: T) => T) { 62 | return baseStore.update((last) => { 63 | const value = callback(last); 64 | updateStorage(storageKey, value); 65 | return value; 66 | }) 67 | }, 68 | subscribe 69 | } 70 | 71 | stores[storageKey] = store; 72 | } 73 | return store; 74 | } 75 | -------------------------------------------------------------------------------- /src/lib/stores/resetablePersisted.ts: -------------------------------------------------------------------------------- 1 | import { persisted } from "./persistedStore"; 2 | 3 | /** Utility to get a resetable store persisted to local storage */ 4 | export function resetablePersisted(storageKey: string, getDefault: () => T) { 5 | const { set, subscribe, update } = persisted(storageKey, getDefault()); 6 | 7 | function reset() { 8 | set(getDefault()); 9 | } 10 | 11 | return { set, subscribe, update, reset } 12 | } 13 | 14 | export type Resetable = ReturnType>; 15 | -------------------------------------------------------------------------------- /src/lib/stores/smoothText.ts: -------------------------------------------------------------------------------- 1 | import { writable } from "svelte/store"; 2 | 3 | /** Update text smoothly along a known duration, 4 | * when all text is shown, run callback 5 | * 6 | * @returns Readable store for current text state 7 | */ 8 | export function smoothText() { 9 | const store = writable(''); 10 | 11 | let current = ''; 12 | let interval = 0; 13 | let parts: string[] = []; 14 | let x: ReturnType; 15 | 16 | let active = false; 17 | let callback: (()=>void) | undefined; 18 | 19 | function tick() { 20 | // Add next part if available 21 | if(parts.length > 0) { 22 | current = `${current} ${parts.shift()}`; 23 | store.set(current); 24 | } 25 | 26 | if(parts.length > 0) { 27 | x = setTimeout(tick, interval); 28 | }else{ 29 | end(); 30 | } 31 | } 32 | 33 | function end() { 34 | if(active) { 35 | active = false; 36 | clearTimeout(x); 37 | if(callback) { 38 | callback(); 39 | callback = undefined; 40 | } 41 | } 42 | } 43 | 44 | const { subscribe } = store; 45 | 46 | return { 47 | subscribe, 48 | clear: () => { 49 | end(); 50 | current = ''; 51 | store.set(current); 52 | }, 53 | setText: (text: string, duration: number) => { 54 | end(); 55 | active = true; 56 | const oldLength = current.length; 57 | 58 | if(text.length < oldLength || !duration) { 59 | store.set(text); 60 | current = text; 61 | }else{ 62 | current = text.slice(0, oldLength); 63 | parts = text.slice(oldLength).split(' '); 64 | 65 | // Apply first part of text directly (prevent text splitted between words) 66 | current += parts.shift(); 67 | store.set(current); 68 | 69 | interval = duration / parts.length; 70 | x = setTimeout(tick, interval); 71 | } 72 | 73 | return new Promise((res) => { 74 | callback = res; 75 | }); 76 | } 77 | } 78 | 79 | } 80 | -------------------------------------------------------------------------------- /src/lib/twitch.ts: -------------------------------------------------------------------------------- 1 | import { readable, writable } from "svelte/store"; 2 | import { handleCaptions, type CaptionsData } from "./captions"; 3 | 4 | 5 | Twitch.ext.onError(err => { 6 | console.error('Ultimate CC : Extension helper error', err); 7 | }); 8 | 9 | Twitch.ext.onAuthorized(auth => { 10 | twitchChannel.set(auth.channelId); 11 | }); 12 | export const twitchChannel = writable(undefined); 13 | 14 | export const twitchContext = readable>({}, (set)=>{ 15 | Twitch.ext.onContext(context=>{ 16 | set(context); 17 | }); 18 | }); 19 | 20 | // Type for configuration stored in broadcaster config segment 21 | type BroadcasterConfig = { 22 | showCaptions?: boolean 23 | } 24 | 25 | export const broadcasterConfig = readable(undefined, (set)=>{ 26 | Twitch.ext.configuration.onChanged(()=>{ 27 | try{ 28 | set(JSON.parse(Twitch.ext.configuration.broadcaster?.content || '{}' )); 29 | }catch(e) { 30 | console.error('Ultimate CC : Error parsing broadcaster configuration', e); 31 | } 32 | }); 33 | }); 34 | 35 | let lastMessage = ''; 36 | Twitch.ext.listen('broadcast', (_: string, contentType: string, message: string)=>{ 37 | // Ignore if exactly same message is received twice 38 | if(lastMessage === message) { 39 | return; 40 | } 41 | lastMessage = message; 42 | 43 | if (contentType !== 'application/json') { 44 | console.error('Ultimate CC : Pubsub content-type is not JSON'); 45 | return; 46 | } 47 | 48 | const obj: CaptionsData = JSON.parse(message); 49 | if(Array.isArray(obj.captions) && obj.captions.length) { 50 | handleCaptions(obj) 51 | .catch(e => { 52 | console.error('Ultimate CC : Error handling captions', e); 53 | }); 54 | } 55 | }); 56 | -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- 1 | import languages from "../assets/languages.json"; 2 | import rtl_languages from "../assets/rtl_languages.json"; 3 | 4 | export function hexToRGB(hex: string) { 5 | if (!hex) return ""; 6 | hex = hex.replace('#', ''); 7 | return parseInt(hex.substring(0, 2), 16) + ", " + parseInt(hex.substring(2, 4), 16) + ", " + parseInt(hex.substring(4, 6), 16); 8 | } 9 | 10 | export function isRTL(lang: LangCode) { 11 | return rtl_languages.includes(lang); 12 | } 13 | 14 | export type LangCode = keyof typeof languages; -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import 'simplebar' 2 | import 'simplebar/dist/simplebar.css' 3 | import './assets/app.scss' 4 | import Config from './components/Config.svelte' 5 | import Overlay from './components/Overlay.svelte' 6 | import Transcript from './components/Transcript.svelte' 7 | import { initContext } from './lib/settings' 8 | import { twitchChannel } from './lib/twitch' 9 | 10 | // Channel id is needed to start extension 11 | let starting = true; 12 | twitchChannel.subscribe((channelId)=>{ 13 | if(starting && channelId) { 14 | starting = false; 15 | init(channelId); 16 | } 17 | }); 18 | 19 | function init(channelId: string) { 20 | // Load correct component 21 | // https://dev.twitch.tv/docs/extensions/reference/#client-query-parameters 22 | 23 | const params = new URLSearchParams(location.search); 24 | 25 | // Default: Show only transcript 26 | let component: any = Transcript; 27 | 28 | // Config page 29 | if( ['config', 'dashboard'].includes(params.get('mode') ?? '') ) { 30 | component = Config; 31 | 32 | // Overlay 33 | }else if( (params.get('platform') === 'web' && params.get('anchor') === 'video_overlay' ) ) { 34 | component = Overlay; 35 | } 36 | 37 | const context = initContext(channelId); 38 | 39 | app = new component({ 40 | target: document.getElementById('app'), 41 | context 42 | }); 43 | 44 | } 45 | 46 | let app; 47 | export default app; -------------------------------------------------------------------------------- /src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /svelte.config.js: -------------------------------------------------------------------------------- 1 | 2 | import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; 3 | //import preprocess from 'svelte-preprocess'; 4 | 5 | export default { 6 | // Consult https://svelte.dev/docs#compile-time-svelte-preprocess 7 | // for more information about preprocessors 8 | preprocess: vitePreprocess(), 9 | } 10 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@tsconfig/svelte/tsconfig.json", 3 | "compilerOptions": { 4 | "target": "ESNext", 5 | "useDefineForClassFields": true, 6 | "module": "ESNext", 7 | "resolveJsonModule": true, 8 | /** 9 | * Typecheck JS in `.svelte` and `.js` files by default. 10 | * Disable checkJs if you'd like to use dynamic types in JS. 11 | * Note that setting allowJs false does not prevent the use 12 | * of JS in `.svelte` files. 13 | */ 14 | "allowJs": true, 15 | "checkJs": true, 16 | "isolatedModules": true 17 | }, 18 | "include": ["src/**/*.d.ts", "src/**/*.ts", "src/**/*.js", "src/**/*.svelte"], 19 | "references": [{ "path": "./tsconfig.node.json" }] 20 | } 21 | -------------------------------------------------------------------------------- /tsconfig.node.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "composite": true, 4 | "skipLibCheck": true, 5 | "module": "ESNext", 6 | "moduleResolution": "bundler" 7 | }, 8 | "include": ["vite.config.ts"] 9 | } 10 | -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- 1 | import { svelte } from '@sveltejs/vite-plugin-svelte'; 2 | import basicSsl from '@vitejs/plugin-basic-ssl'; 3 | import { defineConfig } from 'vite'; 4 | 5 | // https://vitejs.dev/config/ 6 | export default defineConfig({ 7 | plugins: [svelte(), basicSsl({ certDir: './cert' })], 8 | server: { 9 | port: 5174, 10 | watch: { 11 | usePolling: true 12 | } 13 | }, 14 | base: './', 15 | build: { 16 | minify: false, 17 | sourcemap: true, 18 | } 19 | }) 20 | --------------------------------------------------------------------------------