fix: 修复关闭SSH终端标签页时会话状态未更新的问题

This commit is contained in:
2026-04-18 02:35:38 +08:00
commit 6e2e2f9387
43467 changed files with 5489040 additions and 0 deletions
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2011-2021 Marcin Kulik
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+120
View File
@@ -0,0 +1,120 @@
# asciinema player
[![Build status](https://github.com/asciinema/asciinema-player/actions/workflows/build.yml/badge.svg)](https://github.com/asciinema/asciinema-player/actions/workflows/build.yml)
__asciinema player__ is a web player for terminal sessions recordings.
Unlike typical web _video_ players, which play heavyweight video files (`.mp4`,
`.mov`), asciinema player plays lightweight terminal session recordings in the
text-based [asciicast](https://docs.asciinema.org/manual/asciicast/v3/) format
(`.cast`), such as those produced by the [asciinema
recorder](https://docs.asciinema.org/manual/cli/).
The player is built from the ground up with JavaScript and
[Rust](https://www.rust-lang.org/) ([WASM](https://webassembly.org/)), and is
available as [npm package](https://www.npmjs.com/package/asciinema-player) and a
[standalone JS
bundle](https://github.com/asciinema/asciinema-player/releases/latest).
You can use it on any HTML page - in a project documentation, on a blog, or in a
conference talk presentation.
It's as easy as adding a single line of Javascript code to your web page:
```javascript
AsciinemaPlayer.create('demo.cast', document.getElementById('demo'));
```
Check out the [quick start
guide](https://docs.asciinema.org/manual/player/quick-start/) for basic setup
overview.
You can see the player in action in [asciinema
documentation](https://docs.asciinema.org/manual/player/).
Notable features:
* ability to copy-paste terminal content - it's just text after all!
* smooth, timing-accurate playback,
* [idle time optimization](https://docs.asciinema.org/manual/player/options/#idletimelimit) to skip periods of inactivity,
* [posters](https://docs.asciinema.org/manual/player/options/#poster),
* [markers](https://docs.asciinema.org/manual/player/markers/) for navigation or auto-pause,
* configurable [font families](https://docs.asciinema.org/manual/player/fonts/) and [line height](https://docs.asciinema.org/manual/player/options/#terminallineheight),
* [automatic terminal scaling](https://docs.asciinema.org/manual/player/options/#fit) to fit into container element in most efficient way,
* full-screen mode,
* [multiple color themes for standard 16 colors](https://docs.asciinema.org/manual/player/options/#theme) + support for 256 color palette and 24-bit true color (ISO-8613-3),
* [adjustable playback speed](https://docs.asciinema.org/manual/player/options/#speed),
* [looped playback](https://docs.asciinema.org/manual/player/options/#loop), infinite or finite,
* [starting playback at specific time](https://docs.asciinema.org/manual/player/options/#startat),
* [API for programmatic control](https://docs.asciinema.org/manual/player/api/),
* [keyboard shortcuts](https://docs.asciinema.org/manual/player/shortcuts/),
* [support for other recording formats](https://docs.asciinema.org/manual/player/parsers/) like ttyrec, typescript.
## Building
Building asciinema player from source requires:
- [Node.js](https://nodejs.org/) and [npm](https://www.npmjs.com/),
- [Rust](https://www.rust-lang.org/) compiler (1.77 or later) and [Cargo package
manager](https://doc.rust-lang.org/cargo/).
To build the project run:
git clone https://github.com/asciinema/asciinema-player
cd asciinema-player
rustup target add wasm32-unknown-unknown
npm install
npm run build
This produces following output files:
- `dist/index.js` - monolithic ES module, to be `import`-ed in your JS bundle
- `dist/bundle/asciinema-player.js` - standalone monolithic player script (IIFE), to be linked directly from a website
- `dist/bundle/asciinema-player.min.js` - minimized version of the above
- `dist/bundle/asciinema-player.css` - stylesheet, to be linked directly from a website or included in a CSS bundle
The monolithic version of the player covers majority of use cases, and it's all
you need to use the player.
In addition, the split version of the player is built with `npm run build`,
producing the following files:
- `dist/ui.js` - UI ES module, to be `import`-ed in your JS bundle
- `dist/bundle/asciinema-player-ui.js` - standalone UI script (IIFE), to be linked directly from a website
- `dist/bundle/asciinema-player-ui.min.js` - minimized version of the above
- `dist/bundle/asciinema-player-worker.js` - standalone web worker script (IIFE), to be linked directly from a website
- `dist/bundle/asciinema-player-worker.min.js` - minimized version of the above
The split version runs the UI and data crunching (parsing, terminal emulation)
in separate OS threads, which improves UI's responsiveness during playback. In
this setup the UI code runs in the window context, while the processing code
runs in a
[WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API).
The benefit of this configuration is typically observed only for high
frame-rate / high bandwidth recordings. For typical demos/sessions it's
not worth the setup hassle.
## Donations
Sustainability of asciinema development relies on donations and sponsorships.
Please help the software project you use and love. Become a
[supporter](https://docs.asciinema.org/donations/#individuals) or a [corporate
sponsor](https://docs.asciinema.org/donations/#corporate-sponsorship).
asciinema is sponsored by:
- [Brightbox](https://www.brightbox.com/)
## Consulting
If you're interested in integration or customization of asciinema player to suit
your needs, check [asciinema consulting
services](https://docs.asciinema.org/consulting/).
## License
© 2011 Marcin Kulik.
All code is licensed under the Apache License, Version 2.0. See
[LICENSE](./LICENSE) file for details.
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+711
View File
@@ -0,0 +1,711 @@
.ap-default-term-ff {
--term-font-family: "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace, "Symbols Nerd Font";
}
div.ap-wrapper {
outline: none;
height: 100%;
display: flex;
justify-content: center;
}
div.ap-wrapper .title-bar {
display: none;
top: -78px;
transition: top 0.15s linear;
position: absolute;
left: 0;
right: 0;
box-sizing: content-box;
font-size: 20px;
line-height: 1em;
padding: 15px;
font-family: sans-serif;
color: white;
background-color: rgba(0, 0, 0, 0.8);
}
div.ap-wrapper .title-bar img {
vertical-align: middle;
height: 48px;
margin-right: 16px;
}
div.ap-wrapper .title-bar a {
color: white;
text-decoration: underline;
}
div.ap-wrapper .title-bar a:hover {
text-decoration: none;
}
div.ap-wrapper:fullscreen {
background-color: #000;
width: 100%;
align-items: center;
}
div.ap-wrapper:fullscreen .title-bar {
display: initial;
}
div.ap-wrapper:fullscreen.hud .title-bar {
top: 0;
}
div.ap-wrapper div.ap-player {
text-align: left;
display: inline-block;
padding: 0px;
position: relative;
box-sizing: content-box;
overflow: hidden;
max-width: 100%;
border-radius: 4px;
font-size: 15px;
background-color: var(--term-color-background);
}
.ap-player {
--term-color-foreground: #ffffff;
--term-color-background: #000000;
--term-color-0: var(--term-color-foreground);
--term-color-1: var(--term-color-foreground);
--term-color-2: var(--term-color-foreground);
--term-color-3: var(--term-color-foreground);
--term-color-4: var(--term-color-foreground);
--term-color-5: var(--term-color-foreground);
--term-color-6: var(--term-color-foreground);
--term-color-7: var(--term-color-foreground);
--term-color-8: var(--term-color-0);
--term-color-9: var(--term-color-1);
--term-color-10: var(--term-color-2);
--term-color-11: var(--term-color-3);
--term-color-12: var(--term-color-4);
--term-color-13: var(--term-color-5);
--term-color-14: var(--term-color-6);
--term-color-15: var(--term-color-7);
}
div.ap-term {
position: relative;
font-family: var(--term-font-family);
border-width: 0.75em;
border-radius: 0;
border-style: solid;
border-color: var(--term-color-background);
box-sizing: content-box;
}
div.ap-term canvas {
position: absolute;
inset: 0;
display: block;
width: 100%;
height: 100%;
}
div.ap-term svg.ap-term-symbols {
position: absolute;
inset: 0;
display: block;
width: 100%;
height: 100%;
overflow: hidden;
pointer-events: none;
}
div.ap-term svg.ap-term-symbols use {
color: var(--term-color-foreground);
}
div.ap-term svg.ap-term-symbols:not(.ap-blink) .ap-blink {
opacity: 0;
}
div.ap-term pre.ap-term-text {
position: absolute;
inset: 0;
box-sizing: content-box;
overflow: hidden;
padding: 0;
margin: 0px;
display: block;
white-space: pre;
word-wrap: normal;
word-break: normal;
cursor: text;
color: var(--term-color-foreground);
outline: none;
line-height: var(--term-line-height);
font-family: inherit;
font-size: inherit;
font-variant-ligatures: none;
border: 0;
border-radius: 0;
background-color: transparent !important;
}
pre.ap-term-text .ap-line {
display: block;
width: 100%;
height: var(--term-line-height);
position: absolute;
top: calc(100% * var(--row) / var(--term-rows));
letter-spacing: normal;
overflow: hidden;
}
pre.ap-term-text .ap-line span {
position: absolute;
left: calc(100% * var(--offset) / var(--term-cols));
padding: 0;
display: inline-block;
height: 100%;
}
pre.ap-term-text:not(.ap-blink) .ap-line .ap-blink {
color: transparent;
border-color: transparent;
}
pre.ap-term-text .ap-bold {
font-weight: bold;
}
pre.ap-term-text .ap-faint {
opacity: 0.5;
}
pre.ap-term-text .ap-underline {
text-decoration: underline;
}
pre.ap-term-text .ap-italic {
font-style: italic;
}
pre.ap-term-text .ap-strike {
text-decoration: line-through;
}
.ap-line span {
color: var(--term-color-foreground);
}
div.ap-player div.ap-control-bar {
width: 100%;
height: 32px;
display: flex;
justify-content: space-between;
align-items: stretch;
color: var(--term-color-foreground);
box-sizing: content-box;
line-height: 1;
position: absolute;
bottom: 0;
left: 0;
opacity: 0;
transition: opacity 0.15s linear;
user-select: none;
border-top: 2px solid color-mix(in oklab, var(--term-color-background) 80%, var(--term-color-foreground));
z-index: 30;
}
div.ap-player div.ap-control-bar * {
box-sizing: inherit;
}
div.ap-control-bar svg.ap-icon path {
fill: var(--term-color-foreground);
}
div.ap-control-bar span.ap-button {
display: flex;
flex: 0 0 auto;
cursor: pointer;
}
div.ap-control-bar span.ap-playback-button {
width: 12px;
height: 12px;
padding: 10px;
margin: 0 0 0 2px;
}
div.ap-control-bar span.ap-playback-button svg {
height: 12px;
width: 12px;
}
div.ap-control-bar span.ap-timer {
display: flex;
flex: 0 0 auto;
min-width: 50px;
margin: 0 10px;
height: 100%;
text-align: center;
font-size: 13px;
line-height: 100%;
cursor: default;
}
div.ap-control-bar span.ap-timer span {
font-family: var(--term-font-family);
font-size: inherit;
font-weight: 600;
margin: auto;
}
div.ap-control-bar span.ap-timer .ap-time-remaining {
display: none;
}
div.ap-control-bar span.ap-timer:hover .ap-time-elapsed {
display: none;
}
div.ap-control-bar span.ap-timer:hover .ap-time-remaining {
display: flex;
}
div.ap-control-bar .ap-progressbar {
display: block;
flex: 1 1 auto;
height: 100%;
padding: 0 10px;
}
div.ap-control-bar .ap-progressbar .ap-bar {
display: block;
position: relative;
cursor: default;
height: 100%;
font-size: 0;
}
div.ap-control-bar .ap-progressbar .ap-bar .ap-gutter {
display: block;
position: absolute;
top: 15px;
left: 0;
right: 0;
height: 3px;
}
div.ap-control-bar .ap-progressbar .ap-bar .ap-gutter-empty {
background-color: color-mix(in oklab, var(--term-color-foreground) 20%, var(--term-color-background));
}
div.ap-control-bar .ap-progressbar .ap-bar .ap-gutter-full {
width: 100%;
transform-origin: left center;
background-color: var(--term-color-foreground);
border-radius: 3px;
}
div.ap-control-bar.ap-seekable .ap-progressbar .ap-bar {
cursor: pointer;
}
div.ap-control-bar .ap-fullscreen-button {
width: 14px;
height: 14px;
padding: 9px;
margin: 0 2px 0 4px;
}
div.ap-control-bar .ap-fullscreen-button svg {
width: 14px;
height: 14px;
}
div.ap-control-bar .ap-fullscreen-button svg.ap-icon-fullscreen-on {
display: inline;
}
div.ap-control-bar .ap-fullscreen-button svg.ap-icon-fullscreen-off {
display: none;
}
div.ap-control-bar .ap-fullscreen-button .ap-tooltip {
right: 5px;
left: initial;
transform: none;
}
div.ap-control-bar .ap-kbd-button {
height: 14px;
padding: 9px;
margin: 0 0 0 4px;
}
div.ap-control-bar .ap-kbd-button svg {
width: 26px;
height: 14px;
}
div.ap-control-bar .ap-kbd-button .ap-tooltip {
right: 5px;
left: initial;
transform: none;
}
div.ap-control-bar .ap-speaker-button {
width: 19px;
padding: 6px 9px;
margin: 0 0 0 4px;
position: relative;
}
div.ap-control-bar .ap-speaker-button svg {
width: 19px;
}
div.ap-control-bar .ap-speaker-button .ap-tooltip {
left: -50%;
transform: none;
}
div.ap-wrapper.ap-hud .ap-control-bar {
opacity: 1;
}
div.ap-wrapper:fullscreen .ap-fullscreen-button svg.ap-icon-fullscreen-on {
display: none;
}
div.ap-wrapper:fullscreen .ap-fullscreen-button svg.ap-icon-fullscreen-off {
display: inline;
}
span.ap-progressbar span.ap-marker-container {
display: block;
top: 0;
bottom: 0;
width: 21px;
position: absolute;
margin-left: -10px;
}
span.ap-marker-container span.ap-marker {
display: block;
top: 13px;
bottom: 12px;
left: 7px;
right: 7px;
background-color: color-mix(in oklab, var(--term-color-foreground) 33%, var(--term-color-background));
position: absolute;
transition: top 0.1s, bottom 0.1s, left 0.1s, right 0.1s, background-color 0.1s;
border-radius: 50%;
}
span.ap-marker-container span.ap-marker.ap-marker-past {
background-color: var(--term-color-foreground);
}
span.ap-marker-container span.ap-marker:hover,
span.ap-marker-container:hover span.ap-marker {
background-color: var(--term-color-foreground);
top: 11px;
bottom: 10px;
left: 5px;
right: 5px;
}
.ap-tooltip-container span.ap-tooltip {
visibility: hidden;
background-color: var(--term-color-foreground);
color: var(--term-color-background);
font-family: var(--term-font-family);
font-weight: bold;
text-align: center;
padding: 0 0.5em;
border-radius: 4px;
position: absolute;
z-index: 1;
white-space: nowrap;
/* Prevents the text from wrapping and makes sure the tooltip width adapts to the text length */
font-size: 13px;
line-height: 2em;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
}
.ap-tooltip-container:hover span.ap-tooltip {
visibility: visible;
}
.ap-player .ap-overlay {
z-index: 10;
background-repeat: no-repeat;
background-position: center;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
}
.ap-player .ap-overlay-start {
cursor: pointer;
}
.ap-player .ap-overlay-start .ap-play-button {
font-size: 0px;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
text-align: center;
color: white;
height: 80px;
max-height: 66%;
margin: auto;
}
.ap-player .ap-overlay-start .ap-play-button div {
height: 100%;
}
.ap-player .ap-overlay-start .ap-play-button div span {
height: 100%;
display: block;
}
.ap-player .ap-overlay-start .ap-play-button div span svg {
height: 100%;
display: inline-block;
}
.ap-player .ap-overlay-start .ap-play-button svg {
filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.4));
}
.ap-player .ap-overlay-loading .ap-loader {
width: 48px;
height: 48px;
border-radius: 50%;
display: inline-block;
position: relative;
border: 10px solid;
border-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.7) #ffffff;
border-color: color-mix(in srgb, var(--term-color-foreground) 30%, var(--term-color-background)) color-mix(in srgb, var(--term-color-foreground) 50%, var(--term-color-background)) color-mix(in srgb, var(--term-color-foreground) 70%, var(--term-color-background)) color-mix(in srgb, var(--term-color-foreground) 100%, var(--term-color-background));
box-sizing: border-box;
animation: ap-loader-rotation 1s linear infinite;
}
.ap-player .ap-overlay-info {
background-color: var(--term-color-background);
}
.ap-player .ap-overlay-info span {
font-family: var(--term-font-family);
font-size: 2em;
font-weight: bold;
color: var(--term-color-background);
background-color: var(--term-color-foreground);
padding: 0.5em 0.75em;
text-transform: uppercase;
}
.ap-player .ap-overlay-help {
background-color: rgba(0, 0, 0, 0.8);
container-type: inline-size;
}
.ap-player .ap-overlay-help > div {
font-family: var(--term-font-family);
max-width: 85%;
max-height: 85%;
font-size: 18px;
color: var(--term-color-foreground);
box-sizing: border-box;
margin-bottom: 32px;
}
.ap-player .ap-overlay-help > div div {
padding: calc(min(4cqw, 40px));
font-size: calc(min(1.9cqw, 18px));
background-color: var(--term-color-background);
border: 1px solid color-mix(in oklab, var(--term-color-background) 90%, var(--term-color-foreground));
border-radius: 6px;
}
.ap-player .ap-overlay-help > div div p {
font-weight: bold;
margin: 0 0 2em 0;
}
.ap-player .ap-overlay-help > div div ul {
list-style: none;
padding: 0;
}
.ap-player .ap-overlay-help > div div ul li {
margin: 0 0 0.75em 0;
}
.ap-player .ap-overlay-help > div div kbd {
color: var(--term-color-background);
background-color: var(--term-color-foreground);
padding: 0.2em 0.5em;
border-radius: 0.2em;
font-family: inherit;
font-size: 0.85em;
border: none;
margin: 0;
}
.ap-player .ap-overlay-error span {
font-size: 8em;
}
.ap-player .slide-enter-active {
transition: opacity 0.2s;
}
.ap-player .slide-enter-active.ap-was-playing {
transition: top 0.2s ease-out, opacity 0.2s;
}
.ap-player .slide-exit-active {
transition: top 0.2s ease-in, opacity 0.2s;
}
.ap-player .slide-enter {
top: -50%;
opacity: 0;
}
.ap-player .slide-enter-to {
top: 0%;
}
.ap-player .slide-enter,
.ap-player .slide-enter-to,
.ap-player .slide-exit,
.ap-player .slide-exit-to {
bottom: auto;
height: 100%;
}
.ap-player .slide-exit {
top: 0%;
}
.ap-player .slide-exit-to {
top: -50%;
opacity: 0;
}
@keyframes ap-loader-rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.asciinema-player-theme-asciinema {
--term-color-foreground: #cccccc;
--term-color-background: #121314;
--term-color-0: #000000;
--term-color-1: #dd3c69;
--term-color-2: #4ebf22;
--term-color-3: #ddaf3c;
--term-color-4: #26b0d7;
--term-color-5: #b954e1;
--term-color-6: #54e1b9;
--term-color-7: #d9d9d9;
--term-color-8: #4d4d4d;
--term-color-9: #dd3c69;
--term-color-10: #4ebf22;
--term-color-11: #ddaf3c;
--term-color-12: #26b0d7;
--term-color-13: #b954e1;
--term-color-14: #54e1b9;
--term-color-15: #ffffff;
}
/*
Based on Dracula: https://draculatheme.com
*/
.asciinema-player-theme-dracula {
--term-color-foreground: #f8f8f2;
--term-color-background: #282a36;
--term-color-0: #21222c;
--term-color-1: #ff5555;
--term-color-2: #50fa7b;
--term-color-3: #f1fa8c;
--term-color-4: #bd93f9;
--term-color-5: #ff79c6;
--term-color-6: #8be9fd;
--term-color-7: #f8f8f2;
--term-color-8: #6272a4;
--term-color-9: #ff6e6e;
--term-color-10: #69ff94;
--term-color-11: #ffffa5;
--term-color-12: #d6acff;
--term-color-13: #ff92df;
--term-color-14: #a4ffff;
--term-color-15: #ffffff;
}
/* Based on Monokai from base16 collection - https://github.com/chriskempson/base16 */
.asciinema-player-theme-monokai {
--term-color-foreground: #f8f8f2;
--term-color-background: #272822;
--term-color-0: #272822;
--term-color-1: #f92672;
--term-color-2: #a6e22e;
--term-color-3: #f4bf75;
--term-color-4: #66d9ef;
--term-color-5: #ae81ff;
--term-color-6: #a1efe4;
--term-color-7: #f8f8f2;
--term-color-8: #75715e;
--term-color-15: #f9f8f5;
}
/*
Based on Nord: https://github.com/arcticicestudio/nord
Via: https://github.com/neilotoole/asciinema-theme-nord
*/
.asciinema-player-theme-nord {
--term-color-foreground: #eceff4;
--term-color-background: #2e3440;
--term-color-0: #3b4252;
--term-color-1: #bf616a;
--term-color-2: #a3be8c;
--term-color-3: #ebcb8b;
--term-color-4: #81a1c1;
--term-color-5: #b48ead;
--term-color-6: #88c0d0;
--term-color-7: #eceff4;
}
.asciinema-player-theme-seti {
--term-color-foreground: #cacecd;
--term-color-background: #111213;
--term-color-0: #323232;
--term-color-1: #c22832;
--term-color-2: #8ec43d;
--term-color-3: #e0c64f;
--term-color-4: #43a5d5;
--term-color-5: #8b57b5;
--term-color-6: #8ec43d;
--term-color-7: #eeeeee;
--term-color-15: #ffffff;
}
/*
Based on Solarized Dark: https://ethanschoonover.com/solarized/
*/
.asciinema-player-theme-solarized-dark {
--term-color-foreground: #839496;
--term-color-background: #002b36;
--term-color-0: #073642;
--term-color-1: #dc322f;
--term-color-2: #859900;
--term-color-3: #b58900;
--term-color-4: #268bd2;
--term-color-5: #d33682;
--term-color-6: #2aa198;
--term-color-7: #eee8d5;
--term-color-8: #002b36;
--term-color-9: #cb4b16;
--term-color-10: #586e75;
--term-color-11: #657b83;
--term-color-12: #839496;
--term-color-13: #6c71c4;
--term-color-14: #93a1a1;
--term-color-15: #fdf6e3;
}
/*
Based on Solarized Light: https://ethanschoonover.com/solarized/
*/
.asciinema-player-theme-solarized-light {
--term-color-foreground: #657b83;
--term-color-background: #fdf6e3;
--term-color-0: #073642;
--term-color-1: #dc322f;
--term-color-2: #859900;
--term-color-3: #b58900;
--term-color-4: #268bd2;
--term-color-5: #d33682;
--term-color-6: #2aa198;
--term-color-7: #eee8d5;
--term-color-8: #002b36;
--term-color-9: #cb4b16;
--term-color-10: #586e75;
--term-color-11: #657c83;
--term-color-12: #839496;
--term-color-13: #6c71c4;
--term-color-14: #93a1a1;
--term-color-15: #fdf6e3;
}
.asciinema-player-theme-solarized-light .ap-overlay-start .ap-play-button svg .ap-play-btn-fill {
fill: var(--term-color-1);
}
.asciinema-player-theme-solarized-light .ap-overlay-start .ap-play-button svg .ap-play-btn-stroke {
stroke: var(--term-color-1);
}
/*
Based on Tango: https://en.wikipedia.org/wiki/Tango_Desktop_Project
*/
.asciinema-player-theme-tango {
--term-color-foreground: #cccccc;
--term-color-background: #121314;
--term-color-0: #000000;
--term-color-1: #cc0000;
--term-color-2: #4e9a06;
--term-color-3: #c4a000;
--term-color-4: #3465a4;
--term-color-5: #75507b;
--term-color-6: #06989a;
--term-color-7: #d3d7cf;
--term-color-8: #555753;
--term-color-9: #ef2929;
--term-color-10: #8ae234;
--term-color-11: #fce94f;
--term-color-12: #729fcf;
--term-color-13: #ad7fa8;
--term-color-14: #34e2e2;
--term-color-15: #eeeeec;
}
/*
Based on gruvbox: https://github.com/morhetz/gruvbox
*/
.asciinema-player-theme-gruvbox-dark {
--term-color-foreground: #fbf1c7;
--term-color-background: #282828;
--term-color-0: #282828;
--term-color-1: #cc241d;
--term-color-2: #98971a;
--term-color-3: #d79921;
--term-color-4: #458588;
--term-color-5: #b16286;
--term-color-6: #689d6a;
--term-color-7: #a89984;
--term-color-8: #7c6f65;
--term-color-9: #fb4934;
--term-color-10: #b8bb26;
--term-color-11: #fabd2f;
--term-color-12: #83a598;
--term-color-13: #d3869b;
--term-color-14: #8ec07c;
--term-color-15: #fbf1c7;
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+33
View File
@@ -0,0 +1,33 @@
import { C as Core } from './core-DnNOMtZn.js';
import { c as coreOpts, m as mount, u as uiOpts } from './opts-BtLxsM_6.js';
import { D as DummyLogger } from './logging--P0CsEu_.js';
function create(src, elem) {
let opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
const logger = opts.logger ?? new DummyLogger();
const core = new Core(src, coreOpts(opts, {
logger
}));
const {
el,
dispose
} = mount(core, elem, uiOpts(opts, {
logger
}));
const ready = core.init();
const player = {
el,
dispose,
getCurrentTime: () => ready.then(core.getCurrentTime.bind(core)),
getDuration: () => ready.then(core.getDuration.bind(core)),
play: () => ready.then(core.play.bind(core)),
pause: () => ready.then(core.pause.bind(core)),
seek: pos => ready.then(() => core.seek(pos))
};
player.addEventListener = (name, callback) => {
return core.addEventListener(name, callback.bind(player));
};
return player;
}
export { create };
+173
View File
@@ -0,0 +1,173 @@
function parseNpt(time) {
if (typeof time === "number") {
return time;
} else if (typeof time === "string") {
return time.split(":").reverse().map(parseFloat).reduce((sum, n, i) => sum + n * Math.pow(60, i));
} else {
return undefined;
}
}
function debounce(f, delay) {
let timeout;
return function () {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
clearTimeout(timeout);
timeout = setTimeout(() => f.apply(this, args), delay);
};
}
function throttle(f, interval) {
let enableCall = true;
return function () {
if (!enableCall) return;
enableCall = false;
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
f.apply(this, args);
setTimeout(() => enableCall = true, interval);
};
}
const FULL_HEX_COLOR_REGEX = /^#[0-9a-f]{6}$/;
const SHORT_HEX_COLOR_REGEX = /^#[0-9a-f]{3}$/;
function normalizeHexColor(color) {
let fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
if (typeof color !== "string") return fallback;
const normalized = color.trim().toLowerCase();
if (FULL_HEX_COLOR_REGEX.test(normalized)) {
return normalized;
}
if (SHORT_HEX_COLOR_REGEX.test(normalized)) {
return `#${normalized[1]}${normalized[1]}${normalized[2]}${normalized[2]}${normalized[3]}${normalized[3]}`;
}
return fallback;
}
function lerpOklab(t, c1, c2) {
return [c1[0] + t * (c2[0] - c1[0]), c1[1] + t * (c2[1] - c1[1]), c1[2] + t * (c2[2] - c1[2])];
}
function hexToOklab(hex) {
const [r, g, b] = hexToSrgb(hex).map(srgbToLinear);
const l = 0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b;
const m = 0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b;
const s = 0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b;
const l_ = Math.cbrt(l);
const m_ = Math.cbrt(m);
const s_ = Math.cbrt(s);
return [0.2104542553 * l_ + 0.793617785 * m_ - 0.0040720468 * s_, 1.9779984951 * l_ - 2.428592205 * m_ + 0.4505937099 * s_, 0.0259040371 * l_ + 0.7827717662 * m_ - 0.808675766 * s_];
}
function oklabToHex(lab) {
const rgb = oklabToSrgb(lab);
if (isSrgbInGamut(rgb)) return srgbToHex(rgb);
const [L, C, h] = oklabToOklch(lab);
let low = 0;
let high = C;
let best = [L, 0, h];
for (let i = 0; i < 24; i += 1) {
const mid = (low + high) / 2;
const candidate = [L, mid, h];
const candidateRgb = oklabToSrgb(oklchToOklab(candidate));
if (isSrgbInGamut(candidateRgb)) {
low = mid;
best = candidate;
} else {
high = mid;
}
}
return srgbToHex(oklabToSrgb(oklchToOklab(best)));
}
function oklabToSrgb(lab) {
const L = clamp(lab[0], 0, 1);
const a = lab[1];
const b = lab[2];
const l_ = L + 0.3963377774 * a + 0.2158037573 * b;
const m_ = L - 0.1055613458 * a - 0.0638541728 * b;
const s_ = L - 0.0894841775 * a - 1.291485548 * b;
const l = l_ ** 3;
const m = m_ ** 3;
const s = s_ ** 3;
const r = 4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s;
const g = -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s;
const blue = -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s;
return [linearToSrgb(r), linearToSrgb(g), linearToSrgb(blue)];
}
function oklabToOklch(_ref) {
let [L, a, b] = _ref;
return [L, Math.hypot(a, b), Math.atan2(b, a)];
}
function oklchToOklab(_ref2) {
let [L, C, h] = _ref2;
return [L, C * Math.cos(h), C * Math.sin(h)];
}
function hexToSrgb(hex) {
return [Number.parseInt(hex.slice(1, 3), 16) / 255, Number.parseInt(hex.slice(3, 5), 16) / 255, Number.parseInt(hex.slice(5, 7), 16) / 255];
}
function srgbToHex(rgb) {
const toHex = value => {
const byte = Math.round(clamp(value, 0, 1) * 255);
return byte.toString(16).padStart(2, "0");
};
return `#${toHex(rgb[0])}${toHex(rgb[1])}${toHex(rgb[2])}`;
}
function srgbToLinear(c) {
if (c <= 0.04045) return c / 12.92;
return ((c + 0.055) / 1.055) ** 2.4;
}
function linearToSrgb(c) {
if (c <= 0.0031308) return c * 12.92;
return 1.055 * c ** (1 / 2.4) - 0.055;
}
function isSrgbInGamut(_ref3) {
let [r, g, b] = _ref3;
return r >= 0 && r <= 1 && g >= 0 && g <= 1 && b >= 0 && b <= 1;
}
function clamp(value, min, max) {
return Math.max(min, Math.min(max, value));
}
class DummyLogger {
log() {}
debug() {}
info() {}
warn() {}
error() {}
}
class PrefixedLogger {
constructor(logger, prefix) {
this.logger = logger;
this.prefix = prefix;
}
log(message) {
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
this.logger.log(`${this.prefix}${message}`, ...args);
}
debug(message) {
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
args[_key2 - 1] = arguments[_key2];
}
this.logger.debug(`${this.prefix}${message}`, ...args);
}
info(message) {
for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
args[_key3 - 1] = arguments[_key3];
}
this.logger.info(`${this.prefix}${message}`, ...args);
}
warn(message) {
for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
args[_key4 - 1] = arguments[_key4];
}
this.logger.warn(`${this.prefix}${message}`, ...args);
}
error(message) {
for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
args[_key5 - 1] = arguments[_key5];
}
this.logger.error(`${this.prefix}${message}`, ...args);
}
}
export { DummyLogger as D, PrefixedLogger as P, debounce as d, hexToOklab as h, lerpOklab as l, normalizeHexColor as n, oklabToHex as o, parseNpt as p, throttle as t };
File diff suppressed because it is too large Load Diff
+120
View File
@@ -0,0 +1,120 @@
import { c as coreOpts, m as mount, u as uiOpts } from './opts-BtLxsM_6.js';
import { D as DummyLogger } from './logging--P0CsEu_.js';
function create(src, elem, workerUrl) {
let opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
const coreLogger = opts.logger === console ? true : undefined;
const core = new CoreWorkerProxy(workerUrl, src, coreOpts(opts, {
logger: coreLogger
}));
const uiLogger = opts.logger ?? new DummyLogger();
const {
el,
dispose
} = mount(core, elem, uiOpts(opts, {
logger: uiLogger
}));
const ready = core.init();
const player = {
el,
dispose,
getCurrentTime: () => ready.then(core.getCurrentTime.bind(core)),
getDuration: () => ready.then(core.getDuration.bind(core)),
play: () => ready.then(core.play.bind(core)),
pause: () => ready.then(core.pause.bind(core)),
seek: pos => ready.then(() => core.seek(pos))
};
player.addEventListener = (name, callback) => {
return core.addEventListener(name, callback.bind(player));
};
return player;
}
class CoreWorkerProxy {
constructor(workerUrl, src, opts) {
this.worker = new Worker(workerUrl);
this.worker.onmessage = this._onMessage.bind(this);
this.nextId = 1;
this.eventHandlers = new Map([["ended", []], ["errored", []], ["idle", []], ["input", []], ["loading", []], ["marker", []], ["metadata", []], ["offline", []], ["pause", []], ["play", []], ["playing", []], ["ready", []], ["reset", []], ["resize", []], ["seeked", []], ["vtUpdate", []]]);
this.resolves = new Map();
this._sendCommand("new", [src, opts]);
}
async init() {
return this._sendCommand("init");
}
play() {
return this._sendCommand('play');
}
pause() {
return this._sendCommand('pause');
}
togglePlay() {
return this._sendCommand('togglePlay');
}
seek(where) {
return this._sendCommand('seek', where);
}
step(n) {
return this._sendCommand('step', n);
}
stop() {
return this._sendCommand('stop');
}
getChanges() {
return this._sendCommand('getChanges');
}
getCurrentTime() {
return this._sendCommand('getCurrentTime');
}
getRemainingTime() {
return this._sendCommand('getRemainingTime');
}
getProgress() {
return this._sendCommand('getProgress');
}
getDuration() {
return this._sendCommand('getDuration');
}
addEventListener(eventName, handler) {
const handlers = this.eventHandlers.get(eventName);
if (handlers.length === 0) {
this._sendNotification("addEventListener", [eventName]);
}
handlers.push(handler);
}
_dispatchEvent(eventName) {
let data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
for (const h of this.eventHandlers.get(eventName)) {
h(data);
}
}
_sendCommand(name, args) {
let resolve_;
const promise = new Promise(resolve => {
resolve_ = resolve;
});
this.resolves.set(this.nextId, resolve_);
this.worker.postMessage({
method: name,
params: args,
id: this.nextId
});
this.nextId++;
return promise;
}
_sendNotification(name, args) {
this.worker.postMessage({
method: name,
params: args
});
}
_onMessage(e) {
if (e.data.id !== undefined) {
this.resolves.get(e.data.id)(e.data.result);
this.resolves.delete(e.data.id);
} else if (e.data.method === "onEvent") {
this._dispatchEvent(e.data.params.name, e.data.params.event);
}
}
}
export { create };
+62
View File
@@ -0,0 +1,62 @@
import { C as Core } from './core-DnNOMtZn.js';
import { D as DummyLogger } from './logging--P0CsEu_.js';
let logger = new DummyLogger();
let core;
onmessage = async function (e) {
const promise = invoke(e.data.method, e.data.params);
if (e.data.id !== undefined) {
const result = await promise;
postMessage({
result,
id: e.data.id
});
}
};
function invoke(method, params) {
switch (method) {
case "getChanges":
return core.getChanges();
case "new":
const opts = params[1];
if (opts.logger === true) {
logger = console;
}
opts.logger = logger;
core = new Core(params[0], opts);
return;
case "init":
return core.init();
case "play":
return core.play();
case "pause":
return core.pause();
case "togglePlay":
return core.togglePlay();
case "stop":
return core.stop();
case "seek":
return core.seek(params);
case "step":
return core.step(params);
case "getCurrentTime":
return core.getCurrentTime();
case "getRemainingTime":
return core.getRemainingTime();
case "getProgress":
return core.getProgress();
case "addEventListener":
core.addEventListener(params[0], e => {
postMessage({
method: "onEvent",
params: {
name: params[0],
event: e
}
});
});
return;
default:
throw new Error(`invalid method ${method}`);
}
}
+62
View File
@@ -0,0 +1,62 @@
{
"name": "asciinema-player",
"description": "Web player for terminal session recordings.",
"version": "3.15.1",
"author": "Marcin Kulik",
"homepage": "https://github.com/asciinema/asciinema-player",
"repository": {
"type": "git",
"url": "https://github.com/asciinema/asciinema-player.git"
},
"license": "Apache-2.0",
"main": "dist/index.js",
"exports": {
".": "./dist/index.js",
"./ui.js": "./dist/ui.js",
"./dist/bundle/asciinema-player.css": "./dist/bundle/asciinema-player.css",
"./dist/bundle/asciinema-player.min.js": "./dist/bundle/asciinema-player.min.js",
"./dist/bundle/asciinema-player-ui.min.js": "./dist/bundle/asciinema-player-ui.min.js",
"./dist/bundle/asciinema-player-worker.min.js": "./dist/bundle/asciinema-player-worker.min.js"
},
"files": [
"dist"
],
"type": "module",
"scripts": {
"build": "rollup -c --environment production && lessc src/less/asciinema-player.less >dist/bundle/asciinema-player.css",
"test": "playwright test",
"format": "prettier src/**/*.js tests/**/*.spec.js --write"
},
"browserslist": [
"defaults and supports wasm"
],
"prettier": {
"printWidth": 100
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"solid-js": "^1.3.0",
"solid-transition-group": "^0.2.3"
},
"devDependencies": {
"@babel/core": "^7.21.3",
"@babel/plugin-transform-runtime": "^7.21.0",
"@babel/preset-env": "^7.20.2",
"@playwright/test": "^1.56.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.5",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@wasm-tool/rollup-plugin-rust": "^3.1.4",
"babel-preset-solid": "^1.6.13",
"eslint": "^7.27.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.3",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-prettier": "^3.4.0",
"less": "^4.1.1",
"prettier": "3.2.5",
"rollup": "^4.43.0"
}
}