From 3009e06f885cb1cbea71868f58fbbbf7b93fd4fe Mon Sep 17 00:00:00 2001 From: Steve-xmh Date: Wed, 8 Feb 2023 18:25:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=B8=93=E8=BE=91?= =?UTF-8?q?=E5=9B=BE=E5=B1=85=E5=B7=A6=E8=AE=BE=E7=BD=AE=20=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E4=BA=86=E6=AD=8C=E5=90=8D=E3=80=81=E5=88=AB=E5=90=8D?= =?UTF-8?q?=E3=80=81=E6=AD=8C=E6=89=8B=E3=80=81=E4=B8=93=E8=BE=91=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E5=B1=85=E5=B7=A6=E7=9A=84=E9=97=AE=E9=A2=98=20?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E6=AF=94=E8=BE=83=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.css | 2 +- dist/index.js | 58 +++++++++++++++++----------------- dist/manifest.json | 2 +- manifest.json | 2 +- package.json | 3 +- src/api/react.ts | 3 +- src/config/index.tsx | 7 ++-- src/config/song-info-style.tsx | 4 +++ src/index.tsx | 1 - src/main-view.sass | 12 ++++--- 10 files changed, 51 insertions(+), 43 deletions(-) diff --git a/dist/index.css b/dist/index.css index e005d00fb..da39deebc 100644 --- a/dist/index.css +++ b/dist/index.css @@ -1 +1 @@ -code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px white;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}pre[class*=language-]::selection,pre[class*=language-] ::selection,code[class*=language-]::selection,code[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#905}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#690}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.function,.token.class-name{color:#dd4a68}.token.regex,.token.important,.token.variable{color:#e90}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.appkit-menu{z-index:999;background:rgba(40,40,40,.6);border:.5px solid rgba(0,0,0,.7);box-shadow:0 4px 20px #00000040;border-radius:6px;max-height:80vh;width:fit-content;pointer-events:none;overflow-y:scroll}.appkit-menu::-webkit-scrollbar{display:none}.appkit-menu:before{content:"";position:absolute;z-index:-1;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-radius:6px;top:0;left:0;right:0;bottom:0}.appkit-menu>*{border:1px solid rgba(255,255,255,.3);padding:5px 0;border-radius:6px;cursor:default}.appkit-menu.is-submenu{position:fixed}.appkit-menu.hide{visibility:hidden}.appkit-menu.with-checkbox>*>.appkit-menu-item{padding-left:22px}.appkit-menu.with-checkbox>*>.appkit-menu-item.checked{background-image:url("data:image/svg+xml,%3Csvg width='13' height='14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23prefix__filter0_d_416_340)'%3E%3Cpath d='M3 8l2.25 2.5L9.5 4' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='prefix__filter0_d_416_340' x='1.75' y='3.25' width='9' height='9' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='.5'/%3E%3CfeGaussianBlur stdDeviation='.25'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0'/%3E%3CfeBlend in2='BackgroundImageFix' result='effect1_dropShadow_416_340'/%3E%3CfeBlend in='SourceGraphic' in2='effect1_dropShadow_416_340' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E");background-repeat:no-repeat;background-position-y:center;background-position-x:8px}.appkit-menu.with-checkbox>*>.appkit-menu-item-devider{margin-left:11px}.appkit-menu-item{padding:2px 14px;box-sizing:border-box;display:block;width:100%;text-align:left;background:transparent;border:none;font-size:13px;line-height:18px;color:#fff;font-family:PingFang SC,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;font-style:normal;font-weight:400;user-select:none;cursor:default;pointer-events:visibleFill}.appkit-menu-item.has-submenu{position:relative}.appkit-menu-item.label-only{opacity:.75}.appkit-menu-item:hover:not(.label-only):before{content:" ";position:absolute;z-index:-1;width:calc(100% - 10px);left:5px;margin-top:-3px;height:23px;background:#0A84FF;border-radius:4px;pointer-events:none}.appkit-menu-item-devider{margin:5px 9px;height:1px;background:rgba(255,255,255,.3)}.am-lyrics-settings{background:rgb(43,43,43);min-height:100%;margin:-1rem;padding:1rem;color:#fff;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.am-lyrics-settings *{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.am-lyrics-settings>*{max-width:min(100%,700px)}.am-lyrics-settings svg{width:unset;height:unset}.am-lyrics-settings code{font-family:Courier New,Courier,monospace}.am-lyrics-settings .am-lyric-func-body{user-select:text;overflow-wrap:break-word;word-break:break-word;white-space:break-spaces;text-overflow:ellipsis}.m-fm{width:100%}.m-fm .fmcmt{width:820px;margin-left:auto;margin-right:auto}#applemusic-like-lyrics-view-fm{display:flex;height:100%;width:80%;margin:0 10%;z-index:1}#applemusic-like-lyrics-view-fm svg{width:unset;height:unset}#applemusic-like-lyrics-view-fm .amll-error-boundary{margin:60px 0}#applemusic-like-lyrics-view-fm .amll-error-boundary *{white-space:pre-wrap;user-select:text}#applemusic-like-lyrics-view-fm .am-lyric-view-loading{flex:1}#applemusic-like-lyrics-view-fm .am-player-song-info{flex:1;z-index:2;display:flex;flex-direction:column;overflow:hidden;align-items:center;justify-content:center}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info-spacer{flex:1}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-album-image{width:70%;aspect-ratio:1/1;max-height:45vh;flex:0;position:relative}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-album-image>*{width:100%;height:100%;aspect-ratio:1/1}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-album-image img{border-radius:3%;box-shadow:0 0 1rem #0004;width:100%;height:100%;aspect-ratio:1/1;object-fit:cover}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info{flex:1;width:100%}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:1.5rem;line-height:normal;margin:1rem 0 .25rem;cursor:text;user-select:text;text-align:center}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-alias{overflow:hidden;font-size:1.2rem;line-height:normal;margin-top:.1rem;opacity:.75;cursor:text;text-align:center;user-select:text;white-space:nowrap;text-overflow:ellipsis}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-artists{width:100%;font-size:1rem;line-height:normal;margin:.25rem 0;display:flex;align-items:baseline;flex-wrap:nowrap;justify-content:center}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-artists .am-artists-label{line-height:normal;white-space:nowrap}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-artists .am-artists{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-artists .am-artists a{line-height:normal;opacity:.8;user-select:text}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-artists .am-artists a:after{content:var(--applemusic-like-lyrics-music-artists-separator, " - ");opacity:.5}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-artists .am-artists a:last-child:after{content:""}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-album{max-width:100%;font-size:1rem;line-height:normal;margin:.25rem 0;display:flex;align-items:baseline;justify-content:center}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-album .am-album-label{white-space:nowrap}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-album .am-album{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-album a{opacity:.8;user-select:text}#applemusic-like-lyrics-view-fm .am-lyric{flex:1;z-index:2;display:flex;flex-direction:column}#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line{filter:blur(0)!important;opacity:1!important;visibility:visible!important}#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line>.am-lyric-line-original{opacity:.75}#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line>.am-lyric-line-dynamic>*{opacity:.75}#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line.am-lyric-line-o0,#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line.am-lyric-line-selected{opacity:1}#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line.am-lyric-line-o0>.am-lyric-line-dynamic>*,#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line.am-lyric-line-selected>.am-lyric-line-dynamic>*{opacity:1}#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-options{opacity:1}#applemusic-like-lyrics-view-fm .am-lyric-view-error{flex:1}#applemusic-like-lyrics-view-fm .am-lyric-view-error *{overflow-wrap:break-word;white-space:pre-wrap;margin-bottom:1rem}#applemusic-like-lyrics-view-fm .am-lyric-options{opacity:0;transition:opacity .75s cubic-bezier(.65,0,.35,1);position:absolute;right:10%;top:100px;z-index:1}#applemusic-like-lyrics-view-fm .am-lyric-view{flex:1;overflow:hidden scroll;position:relative;-webkit-mask-image:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0) 5%,#000 10%,#000 90%,rgba(0,0,0,0) 95%,rgba(0,0,0,0))}#applemusic-like-lyrics-view-fm .am-lyric-view::-webkit-scrollbar{display:none}#applemusic-like-lyrics-view-fm .am-lyric-view>*{padding:50vh 0;position:absolute;padding-left:2rem;padding-right:min(30%,5vw,600px)}#applemusic-like-lyrics-view-fm .am-lyric-view-no-lyric{height:100%;overflow:hidden;flex:1;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:baseline}#applemusic-like-lyrics-view-fm.lyric-scale-effect .am-lyric-line{transform:scale(.85)}#applemusic-like-lyrics-view-fm.lyric-scale-effect .am-lyric-line.am-lyric-line-o0,#applemusic-like-lyrics-view-fm.lyric-scale-effect .am-lyric-line.am-lyric-line-selected{transform:scale(1)}#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line{opacity:.5}#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before{opacity:0;visibility:hidden}#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-5,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-4,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-3,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-2,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-1,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o1,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o2,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o3,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o4,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o5{visibility:visible}#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-selected{opacity:1}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line,#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-after,#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-before{filter:blur(4px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-after.am-lyric-line-selected,#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-before.am-lyric-line-selected{filter:blur(0px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o-5{filter:blur(5px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o-4{filter:blur(4px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o-3{filter:blur(3px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o-2{filter:blur(2px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o-1,#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o1{filter:blur(1px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o2{filter:blur(2px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o3{filter:blur(3px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o4{filter:blur(4px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o5{filter:blur(5px)}#applemusic-like-lyrics-view-fm.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-after{opacity:.1}#applemusic-like-lyrics-view-fm.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-o1{opacity:.4}#applemusic-like-lyrics-view-fm.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-o2{opacity:.3}#applemusic-like-lyrics-view-fm.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-o3{opacity:.2}#applemusic-like-lyrics-view-fm.lyric-blur-fade-in-effect .am-lyric-line>.am-lyric-line-dynamic>*>.am-lyric-real-word{opacity:1}#applemusic-like-lyrics-view-fm.lyric-fixed-font-size .am-lyric-line{font-size:max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))}#applemusic-like-lyrics-view-fm.lyric-fixed-font-size .am-lyric-dots.am-lyric-dots-selected{height:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))/.4)}#applemusic-like-lyrics-view-fm.lyric-fixed-font-size .am-lyric-dots>*{margin-right:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px)) * .8333333333);width:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))/.8);height:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))/.8)}#applemusic-like-lyrics-view-fm.use-ping-fang-font *{font-family:San Francisco,Helvetica,PingFang SC!important}#applemusic-like-lyrics-view-fm.align-left-music-name .am-music-name,#applemusic-like-lyrics-view-fm.align-left-music-alias .am-music-alias{text-align:left}#applemusic-like-lyrics-view-fm.align-left-music-artists .am-music-artists,#applemusic-like-lyrics-view-fm.align-left-music-album .am-music-album{justify-content:left}#applemusic-like-lyrics-view-fm.hide-music-artists-label .am-artists-label,#applemusic-like-lyrics-view-fm.hide-music-album-label .am-album-label{display:none}#applemusic-like-lyrics-view-fm.align-top-selected-lyric .am-lyric-view>*{padding-bottom:100vh}#applemusic-like-lyrics-view-fm.font-shadow .am-lyric-view,#applemusic-like-lyrics-view-fm.font-shadow .am-music-info{filter:drop-shadow(0 0 var(--applemusic-like-lyrics-font-shadow-size, 2px) rgba(119,119,119,.2666666667))}#applemusic-like-lyrics-view-fm .am-lyric-line{font-weight:700;font-size:clamp(32px,3vw,4vh);padding:max(1rem,1vh) 0;transform-origin:left;color:var(--applemusic-like-lyrics-font-color, unset);transition:all .75s cubic-bezier(.65,0,.35,1);line-break:loose;word-break:break-word}#applemusic-like-lyrics-view-fm .am-lyric-line>.am-lyric-line-translated,#applemusic-like-lyrics-view-fm .am-lyric-line>.am-lyric-line-roman{opacity:.5;font-size:max(16px,65%);margin-top:.5rem}#applemusic-like-lyrics-view-fm .am-lyric-line>.am-lyric-line-dynamic>*{position:relative;display:inline-block;white-space:break-spaces}#applemusic-like-lyrics-view-fm .am-lyric-line>.am-lyric-line-dynamic>*>.am-lyric-fake-word{animation-name:am-lyric-word-animation;animation-timing-function:linear;animation-fill-mode:both;width:0%;right:0%;position:absolute;white-space:nowrap;overflow:hidden}#applemusic-like-lyrics-view-fm .am-lyric-line>.am-lyric-line-dynamic>*>.am-lyric-real-word{opacity:.75;transition:opacity .75s cubic-bezier(.65,0,.35,1)}#applemusic-like-lyrics-view-fm .am-lyric-line:hover{opacity:1!important}#applemusic-like-lyrics-view-fm .am-lyric-line:hover>.am-lyric-line-original{opacity:1!important}#applemusic-like-lyrics-view-fm .am-lyric-line:hover>.am-lyric-line-dynamic>*{opacity:1!important}#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-after{opacity:.5}#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-after>.am-lyric-line-dynamic>*>.am-lyric-fake-word{opacity:.5;animation-name:unset;animation-fill-mode:unset;animation-play-state:unset}#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-before{opacity:.5}#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-before>.am-lyric-line-dynamic>*>.am-lyric-fake-word{opacity:1;width:100%;animation-name:unset;animation-fill-mode:unset;animation-play-state:unset}#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-o0,#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-selected{filter:blur(0px);opacity:1}#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-o0>.am-lyric-line-dynamic>*>.am-lyric-real-word,#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-selected>.am-lyric-line-dynamic>*>.am-lyric-real-word{animation-play-state:running;opacity:.5}#applemusic-like-lyrics-view-fm .am-lyric-dots{height:0px;transition:opacity .75s cubic-bezier(.65,0,.35,1),height .75s cubic-bezier(.65,0,.35,1);transform-origin:left;opacity:0}#applemusic-like-lyrics-view-fm .am-lyric-dots>*{display:inline-block;margin-right:2vh;width:3vh;height:3vh;background-color:var(--applemusic-like-lyrics-font-color, white);box-shadow:0 2px 5px #0008;border-radius:50%}#applemusic-like-lyrics-view-fm .am-lyric-dots.am-lyric-dots-selected{height:6vh;opacity:1;animation-name:am-lyric-dot-show-animation;animation-fill-mode:both;animation-delay:.75s;animation-duration:1.5s}#applemusic-like-lyrics-view-fm .am-lyric-dots.am-lyric-line-before{opacity:0;animation-name:am-lyric-dot-hide-animation;animation-fill-mode:both;animation-duration:.25s}#applemusic-like-lyrics-view-fm .am-album-hide-sidebar{width:12px;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:stretch}#applemusic-like-lyrics-view-fm .am-album-hide-sidebar>*{height:10vh;background-color:#000}#applemusic-like-lyrics-view-fm .am-fm-player-ctl{margin-top:1rem;display:flex;align-items:center;justify-content:space-evenly}#applemusic-like-lyrics-view-fm .am-lyric-background{z-index:-1}#applemusic-like-lyrics-view-fm>*{height:100%;width:100%;display:flex;flex-direction:row}#applemusic-like-lyrics-view{display:flex;height:100%;width:80%;margin:0 10%;z-index:1}#applemusic-like-lyrics-view svg{width:unset;height:unset}#applemusic-like-lyrics-view .amll-error-boundary{margin:60px 0}#applemusic-like-lyrics-view .amll-error-boundary *{white-space:pre-wrap;user-select:text}#applemusic-like-lyrics-view .am-lyric-background{z-index:-1}#applemusic-like-lyrics-view .am-lyric-view-loading{flex:1}#applemusic-like-lyrics-view .am-player-song-info{flex:1;z-index:2;display:flex;flex-direction:column;overflow:hidden;align-items:center;justify-content:center}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info-spacer{flex:1}#applemusic-like-lyrics-view .am-player-song-info>.am-album-image{width:70%;aspect-ratio:1/1;max-height:45vh;flex:0;position:relative}#applemusic-like-lyrics-view .am-player-song-info>.am-album-image>*{width:100%;height:100%;aspect-ratio:1/1}#applemusic-like-lyrics-view .am-player-song-info>.am-album-image img{border-radius:3%;box-shadow:0 0 1rem #0004;width:100%;height:100%;aspect-ratio:1/1;object-fit:cover}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info{flex:1;width:100%}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:1.5rem;line-height:normal;margin:1rem 0 .25rem;cursor:text;user-select:text;text-align:center}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-alias{overflow:hidden;font-size:1.2rem;line-height:normal;margin-top:.1rem;opacity:.75;cursor:text;text-align:center;user-select:text;white-space:nowrap;text-overflow:ellipsis}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-artists{width:100%;font-size:1rem;line-height:normal;margin:.25rem 0;display:flex;align-items:baseline;flex-wrap:nowrap;justify-content:center}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-artists .am-artists-label{line-height:normal;white-space:nowrap}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-artists .am-artists{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-artists .am-artists a{line-height:normal;opacity:.8;user-select:text}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-artists .am-artists a:after{content:var(--applemusic-like-lyrics-music-artists-separator, " - ");opacity:.5}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-artists .am-artists a:last-child:after{content:""}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-album{max-width:100%;font-size:1rem;line-height:normal;margin:.25rem 0;display:flex;align-items:baseline;justify-content:center}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-album .am-album-label{white-space:nowrap}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-album .am-album{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-album a{opacity:.8;user-select:text}#applemusic-like-lyrics-view .am-lyric{flex:1;z-index:2;display:flex;flex-direction:column}#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line{filter:blur(0)!important;opacity:1!important;visibility:visible!important}#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line>.am-lyric-line-original{opacity:.75}#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line>.am-lyric-line-dynamic>*{opacity:.75}#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line.am-lyric-line-o0,#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line.am-lyric-line-selected{opacity:1}#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line.am-lyric-line-o0>.am-lyric-line-dynamic>*,#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line.am-lyric-line-selected>.am-lyric-line-dynamic>*{opacity:1}#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-options{opacity:1}#applemusic-like-lyrics-view .am-lyric-view-error{flex:1}#applemusic-like-lyrics-view .am-lyric-view-error *{overflow-wrap:break-word;white-space:pre-wrap;margin-bottom:1rem}#applemusic-like-lyrics-view .am-lyric-options{opacity:0;transition:opacity .75s cubic-bezier(.65,0,.35,1);position:absolute;right:10%;top:100px;z-index:1}#applemusic-like-lyrics-view .am-lyric-view{flex:1;overflow:hidden scroll;position:relative;-webkit-mask-image:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0) 5%,#000 10%,#000 90%,rgba(0,0,0,0) 95%,rgba(0,0,0,0))}#applemusic-like-lyrics-view .am-lyric-view::-webkit-scrollbar{display:none}#applemusic-like-lyrics-view .am-lyric-view>*{padding:50vh 0;position:absolute;padding-left:2rem;padding-right:min(30%,5vw,600px)}#applemusic-like-lyrics-view .am-lyric-view-no-lyric{height:100%;overflow:hidden;flex:1;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:baseline}#applemusic-like-lyrics-view.lyric-scale-effect .am-lyric-line{transform:scale(.85)}#applemusic-like-lyrics-view.lyric-scale-effect .am-lyric-line.am-lyric-line-o0,#applemusic-like-lyrics-view.lyric-scale-effect .am-lyric-line.am-lyric-line-selected{transform:scale(1)}#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line{opacity:.5}#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before{opacity:0;visibility:hidden}#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-5,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-4,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-3,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-2,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-1,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o1,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o2,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o3,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o4,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o5{visibility:visible}#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-selected{opacity:1}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line,#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-after,#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-before{filter:blur(4px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-after.am-lyric-line-selected,#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-before.am-lyric-line-selected{filter:blur(0px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o-5{filter:blur(5px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o-4{filter:blur(4px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o-3{filter:blur(3px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o-2{filter:blur(2px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o-1,#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o1{filter:blur(1px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o2{filter:blur(2px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o3{filter:blur(3px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o4{filter:blur(4px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o5{filter:blur(5px)}#applemusic-like-lyrics-view.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-after{opacity:.1}#applemusic-like-lyrics-view.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-o1{opacity:.4}#applemusic-like-lyrics-view.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-o2{opacity:.3}#applemusic-like-lyrics-view.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-o3{opacity:.2}#applemusic-like-lyrics-view.lyric-blur-fade-in-effect .am-lyric-line>.am-lyric-line-dynamic>*>.am-lyric-real-word{opacity:1}#applemusic-like-lyrics-view.lyric-fixed-font-size .am-lyric-line{font-size:max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))}#applemusic-like-lyrics-view.lyric-fixed-font-size .am-lyric-dots.am-lyric-dots-selected{height:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))/.4)}#applemusic-like-lyrics-view.lyric-fixed-font-size .am-lyric-dots>*{margin-right:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px)) * .8333333333);width:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))/.8);height:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))/.8)}#applemusic-like-lyrics-view.use-ping-fang-font *{font-family:San Francisco,Helvetica,PingFang SC!important}#applemusic-like-lyrics-view.align-left-music-name .am-music-name,#applemusic-like-lyrics-view.align-left-music-alias .am-music-alias{text-align:left}#applemusic-like-lyrics-view.align-left-music-artists .am-music-artists,#applemusic-like-lyrics-view.align-left-music-album .am-music-album{justify-content:left}#applemusic-like-lyrics-view.hide-music-artists-label .am-artists-label,#applemusic-like-lyrics-view.hide-music-album-label .am-album-label{display:none}#applemusic-like-lyrics-view.align-top-selected-lyric .am-lyric-view>*{padding-bottom:100vh}#applemusic-like-lyrics-view.font-shadow .am-lyric-view,#applemusic-like-lyrics-view.font-shadow .am-music-info{filter:drop-shadow(0 0 var(--applemusic-like-lyrics-font-shadow-size, 2px) rgba(119,119,119,.2666666667))}#applemusic-like-lyrics-view .am-lyric-line{font-weight:700;font-size:clamp(32px,3vw,4vh);padding:max(1rem,1vh) 0;transform-origin:left;color:var(--applemusic-like-lyrics-font-color, unset);transition:all .75s cubic-bezier(.65,0,.35,1);line-break:loose;word-break:break-word}#applemusic-like-lyrics-view .am-lyric-line>.am-lyric-line-translated,#applemusic-like-lyrics-view .am-lyric-line>.am-lyric-line-roman{opacity:.5;font-size:max(16px,65%);margin-top:.5rem}#applemusic-like-lyrics-view .am-lyric-line>.am-lyric-line-dynamic>*{position:relative;display:inline-block;white-space:break-spaces}#applemusic-like-lyrics-view .am-lyric-line>.am-lyric-line-dynamic>*>.am-lyric-fake-word{animation-name:am-lyric-word-animation;animation-timing-function:linear;animation-fill-mode:both;width:0%;right:0%;position:absolute;white-space:nowrap;overflow:hidden}#applemusic-like-lyrics-view .am-lyric-line>.am-lyric-line-dynamic>*>.am-lyric-real-word{opacity:.75;transition:opacity .75s cubic-bezier(.65,0,.35,1)}#applemusic-like-lyrics-view .am-lyric-line:hover{opacity:1!important}#applemusic-like-lyrics-view .am-lyric-line:hover>.am-lyric-line-original{opacity:1!important}#applemusic-like-lyrics-view .am-lyric-line:hover>.am-lyric-line-dynamic>*{opacity:1!important}#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-after{opacity:.5}#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-after>.am-lyric-line-dynamic>*>.am-lyric-fake-word{opacity:.5;animation-name:unset;animation-fill-mode:unset;animation-play-state:unset}#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-before{opacity:.5}#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-before>.am-lyric-line-dynamic>*>.am-lyric-fake-word{opacity:1;width:100%;animation-name:unset;animation-fill-mode:unset;animation-play-state:unset}#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-o0,#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-selected{filter:blur(0px);opacity:1}#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-o0>.am-lyric-line-dynamic>*>.am-lyric-real-word,#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-selected>.am-lyric-line-dynamic>*>.am-lyric-real-word{animation-play-state:running;opacity:.5}@keyframes am-lyric-word-animation{0%{width:0%;right:100%}to{width:100%;right:0%}}#applemusic-like-lyrics-view .am-lyric-dots{height:0px;transition:opacity .75s cubic-bezier(.65,0,.35,1),height .75s cubic-bezier(.65,0,.35,1);transform-origin:left;opacity:0}#applemusic-like-lyrics-view .am-lyric-dots>*{display:inline-block;margin-right:2vh;width:3vh;height:3vh;background-color:var(--applemusic-like-lyrics-font-color, white);box-shadow:0 2px 5px #0008;border-radius:50%}#applemusic-like-lyrics-view .am-lyric-dots.am-lyric-dots-selected{height:6vh;opacity:1;animation-name:am-lyric-dot-show-animation;animation-fill-mode:both;animation-delay:.75s;animation-duration:1.5s}#applemusic-like-lyrics-view .am-lyric-dots.am-lyric-line-before{opacity:0;animation-name:am-lyric-dot-hide-animation;animation-fill-mode:both;animation-duration:.25s}@keyframes am-lyric-dot-show-animation{0%{opacity:0}to{opacity:1}}@keyframes am-lyric-dot-hide-animation{0%{opacity:1}to{opacity:0}}.m-player.z-shadow{background:transparent!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}body .mq-playing .g-hd,body .m-winctrl,body #main-player,body .g-singlec-comment-detail.z-show,body .m-pinfo,body .m-topbox,body .m-tool,body header .m-zoom svg,body .m-leftbox:after{opacity:1;transition:opacity .5s}body.amll-hide-controls .mq-playing .g-hd,body.amll-hide-controls .m-winctrl,body.amll-hide-controls #main-player,body.amll-hide-controls .g-singlec-comment-detail.z-show,body.amll-hide-controls .m-pinfo,body.amll-hide-controls .m-topbox,body.amll-hide-controls .m-tool,body.amll-hide-controls header .m-zoom svg,body.amll-hide-controls .m-leftbox:after{opacity:0!important}.m-winctrl.disabled,.m-singlebg{display:none}.g-singlec-ct{top:0}.g-single,#id-single{bottom:0;height:100vh;top:0}.g-single .g-bd2,#id-single .g-bd2{margin-bottom:60px}.g-singlec-comment,.g-singlec-comment-detail,.g-singlec-comment-top{bottom:80px}.g-bds-fix,.g-single{bottom:0!important}body.amll-lyric-page-open #x-g-mn>.g-sd,body.amll-lyric-page-open #x-g-mn>.g-mn{display:none!important} +code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px white;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}pre[class*=language-]::selection,pre[class*=language-] ::selection,code[class*=language-]::selection,code[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#905}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#690}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.function,.token.class-name{color:#dd4a68}.token.regex,.token.important,.token.variable{color:#e90}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.appkit-menu{z-index:999;background:rgba(40,40,40,.6);border:.5px solid rgba(0,0,0,.7);box-shadow:0 4px 20px #00000040;border-radius:6px;max-height:80vh;width:fit-content;pointer-events:none;overflow-y:scroll}.appkit-menu::-webkit-scrollbar{display:none}.appkit-menu:before{content:"";position:absolute;z-index:-1;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-radius:6px;top:0;left:0;right:0;bottom:0}.appkit-menu>*{border:1px solid rgba(255,255,255,.3);padding:5px 0;border-radius:6px;cursor:default}.appkit-menu.is-submenu{position:fixed}.appkit-menu.hide{visibility:hidden}.appkit-menu.with-checkbox>*>.appkit-menu-item{padding-left:22px}.appkit-menu.with-checkbox>*>.appkit-menu-item.checked{background-image:url("data:image/svg+xml,%3Csvg width='13' height='14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23prefix__filter0_d_416_340)'%3E%3Cpath d='M3 8l2.25 2.5L9.5 4' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='prefix__filter0_d_416_340' x='1.75' y='3.25' width='9' height='9' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='.5'/%3E%3CfeGaussianBlur stdDeviation='.25'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0'/%3E%3CfeBlend in2='BackgroundImageFix' result='effect1_dropShadow_416_340'/%3E%3CfeBlend in='SourceGraphic' in2='effect1_dropShadow_416_340' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E");background-repeat:no-repeat;background-position-y:center;background-position-x:8px}.appkit-menu.with-checkbox>*>.appkit-menu-item-devider{margin-left:11px}.appkit-menu-item{padding:2px 14px;box-sizing:border-box;display:block;width:100%;text-align:left;background:transparent;border:none;font-size:13px;line-height:18px;color:#fff;font-family:PingFang SC,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;font-style:normal;font-weight:400;user-select:none;cursor:default;pointer-events:visibleFill}.appkit-menu-item.has-submenu{position:relative}.appkit-menu-item.label-only{opacity:.75}.appkit-menu-item:hover:not(.label-only):before{content:" ";position:absolute;z-index:-1;width:calc(100% - 10px);left:5px;margin-top:-3px;height:23px;background:#0A84FF;border-radius:4px;pointer-events:none}.appkit-menu-item-devider{margin:5px 9px;height:1px;background:rgba(255,255,255,.3)}.am-lyrics-settings{background:rgb(43,43,43);min-height:100%;margin:-1rem;padding:1rem;color:#fff;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.am-lyrics-settings *{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.am-lyrics-settings>*{max-width:min(100%,700px)}.am-lyrics-settings svg{width:unset;height:unset}.am-lyrics-settings code{font-family:Courier New,Courier,monospace}.am-lyrics-settings .am-lyric-func-body{user-select:text;overflow-wrap:break-word;word-break:break-word;white-space:break-spaces;text-overflow:ellipsis}.m-fm{width:100%}.m-fm .fmcmt{width:820px;margin-left:auto;margin-right:auto}#applemusic-like-lyrics-view-fm{display:flex;height:100%;width:80%;margin:0 10%;z-index:1}#applemusic-like-lyrics-view-fm svg{width:unset;height:unset}#applemusic-like-lyrics-view-fm .amll-error-boundary{margin:60px 0}#applemusic-like-lyrics-view-fm .amll-error-boundary *{white-space:pre-wrap;user-select:text}#applemusic-like-lyrics-view-fm .am-lyric-view-loading{flex:1}#applemusic-like-lyrics-view-fm .am-player-song-info{flex:1;z-index:2;display:flex;flex-direction:column;overflow:hidden;align-items:center;justify-content:center}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info-spacer{flex:1}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-album-image{width:70%;aspect-ratio:1/1;max-height:45vh;flex:0;position:relative}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-album-image>*{width:100%;height:100%;aspect-ratio:1/1}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-album-image img{border-radius:3%;box-shadow:0 0 1rem #0004;width:100%;height:100%;aspect-ratio:1/1;object-fit:cover}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info{flex:1;width:100%}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:1.5rem;line-height:normal;margin:1rem 0 .25rem;cursor:text;user-select:text;text-align:center}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-alias{overflow:hidden;font-size:1.2rem;line-height:normal;margin-top:.1rem;opacity:.75;cursor:text;text-align:center;user-select:text;white-space:nowrap;text-overflow:ellipsis}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-artists{width:100%;font-size:1rem;line-height:normal;margin:.25rem 0;display:flex;align-items:baseline;flex-wrap:nowrap;justify-content:center}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-artists .am-artists-label{line-height:normal;white-space:nowrap}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-artists .am-artists{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-artists .am-artists a{line-height:normal;opacity:.8;user-select:text}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-artists .am-artists a:after{content:var(--applemusic-like-lyrics-music-artists-separator, " - ");opacity:.5}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-artists .am-artists a:last-child:after{content:""}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-album{max-width:100%;font-size:1rem;line-height:normal;margin:.25rem 0;display:flex;align-items:baseline;justify-content:center}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-album .am-album-label{white-space:nowrap}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-album .am-album{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}#applemusic-like-lyrics-view-fm .am-player-song-info>.am-music-info .am-music-album a{opacity:.8;user-select:text}#applemusic-like-lyrics-view-fm .am-lyric{flex:1;z-index:2;display:flex;flex-direction:column}#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line{filter:blur(0)!important;opacity:1!important;visibility:visible!important}#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line>.am-lyric-line-original{opacity:.75}#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line>.am-lyric-line-dynamic>*{opacity:.75}#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line.am-lyric-line-o0,#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line.am-lyric-line-selected{opacity:1}#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line.am-lyric-line-o0>.am-lyric-line-dynamic>*,#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-line.am-lyric-line-selected>.am-lyric-line-dynamic>*{opacity:1}#applemusic-like-lyrics-view-fm .am-lyric:hover .am-lyric-options{opacity:1}#applemusic-like-lyrics-view-fm .am-lyric-view-error{flex:1}#applemusic-like-lyrics-view-fm .am-lyric-view-error *{overflow-wrap:break-word;white-space:pre-wrap;margin-bottom:1rem}#applemusic-like-lyrics-view-fm .am-lyric-options{opacity:0;transition:opacity .75s cubic-bezier(.65,0,.35,1);position:absolute;right:10%;top:100px;z-index:1}#applemusic-like-lyrics-view-fm .am-lyric-view{flex:1;overflow:hidden scroll;position:relative;-webkit-mask-image:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0) 5%,#000 10%,#000 90%,rgba(0,0,0,0) 95%,rgba(0,0,0,0))}#applemusic-like-lyrics-view-fm .am-lyric-view::-webkit-scrollbar{display:none}#applemusic-like-lyrics-view-fm .am-lyric-view>*{padding:50vh 0;position:absolute;padding-left:2rem;padding-right:min(30%,5vw,600px)}#applemusic-like-lyrics-view-fm .am-lyric-view-no-lyric{height:100%;overflow:hidden;flex:1;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:baseline}#applemusic-like-lyrics-view-fm.lyric-scale-effect .am-lyric-line{transform:scale(.85)}#applemusic-like-lyrics-view-fm.lyric-scale-effect .am-lyric-line.am-lyric-line-o0,#applemusic-like-lyrics-view-fm.lyric-scale-effect .am-lyric-line.am-lyric-line-selected{transform:scale(1)}#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line{opacity:.5}#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before{opacity:0;visibility:hidden}#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-5,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-4,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-3,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-2,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-1,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o1,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o2,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o3,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o4,#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o5{visibility:visible}#applemusic-like-lyrics-view-fm.lyric-hide-passed .am-lyric-line.am-lyric-line-selected{opacity:1}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line,#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-after,#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-before{filter:blur(4px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-after.am-lyric-line-selected,#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-before.am-lyric-line-selected{filter:blur(0px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o-5{filter:blur(5px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o-4{filter:blur(4px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o-3{filter:blur(3px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o-2{filter:blur(2px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o-1,#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o1{filter:blur(1px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o2{filter:blur(2px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o3{filter:blur(3px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o4{filter:blur(4px)}#applemusic-like-lyrics-view-fm.lyric-blur-effect .am-lyric-line.am-lyric-line-o5{filter:blur(5px)}#applemusic-like-lyrics-view-fm.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-after{opacity:.1}#applemusic-like-lyrics-view-fm.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-o1{opacity:.4}#applemusic-like-lyrics-view-fm.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-o2{opacity:.3}#applemusic-like-lyrics-view-fm.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-o3{opacity:.2}#applemusic-like-lyrics-view-fm.lyric-blur-fade-in-effect .am-lyric-line>.am-lyric-line-dynamic>*>.am-lyric-real-word{opacity:1}#applemusic-like-lyrics-view-fm.lyric-fixed-font-size .am-lyric-line{font-size:max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))}#applemusic-like-lyrics-view-fm.lyric-fixed-font-size .am-lyric-dots.am-lyric-dots-selected{height:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))/.4)}#applemusic-like-lyrics-view-fm.lyric-fixed-font-size .am-lyric-dots>*{margin-right:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px)) * .8333333333);width:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))/.8);height:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))/.8)}#applemusic-like-lyrics-view-fm.use-ping-fang-font *{font-family:San Francisco,Helvetica,PingFang SC!important}#applemusic-like-lyrics-view-fm.align-left-album-image .am-album-image{align-self:flex-start!important}#applemusic-like-lyrics-view-fm.align-left-music-name .am-music-name,#applemusic-like-lyrics-view-fm.align-left-music-alias .am-music-alias{text-align:left!important}#applemusic-like-lyrics-view-fm.align-left-music-artists .am-music-artists,#applemusic-like-lyrics-view-fm.align-left-music-album .am-music-album{justify-content:left!important}#applemusic-like-lyrics-view-fm.hide-music-artists-label .am-artists-label,#applemusic-like-lyrics-view-fm.hide-music-album-label .am-album-label{display:none}#applemusic-like-lyrics-view-fm.align-top-selected-lyric .am-lyric-view>*{padding-bottom:100vh}#applemusic-like-lyrics-view-fm.font-shadow .am-lyric-view,#applemusic-like-lyrics-view-fm.font-shadow .am-music-info{filter:drop-shadow(0 0 var(--applemusic-like-lyrics-font-shadow-size, 2px) rgba(119,119,119,.2666666667))}#applemusic-like-lyrics-view-fm .am-lyric-line{font-weight:700;font-size:clamp(32px,3vw,4vh);padding:max(1rem,1vh) 0;transform-origin:left;color:var(--applemusic-like-lyrics-font-color, unset);transition:all .75s cubic-bezier(.65,0,.35,1);line-break:loose;word-break:break-word}#applemusic-like-lyrics-view-fm .am-lyric-line>.am-lyric-line-translated,#applemusic-like-lyrics-view-fm .am-lyric-line>.am-lyric-line-roman{opacity:.5;font-size:max(16px,65%);margin-top:.5rem}#applemusic-like-lyrics-view-fm .am-lyric-line>.am-lyric-line-dynamic>*{position:relative;display:inline-block;white-space:break-spaces}#applemusic-like-lyrics-view-fm .am-lyric-line>.am-lyric-line-dynamic>*>.am-lyric-fake-word{animation-name:am-lyric-word-animation;animation-timing-function:linear;animation-fill-mode:both;width:0%;right:0%;position:absolute;white-space:nowrap;overflow:hidden}#applemusic-like-lyrics-view-fm .am-lyric-line>.am-lyric-line-dynamic>*>.am-lyric-real-word{opacity:.75;transition:opacity .75s cubic-bezier(.65,0,.35,1)}#applemusic-like-lyrics-view-fm .am-lyric-line:hover{opacity:1!important}#applemusic-like-lyrics-view-fm .am-lyric-line:hover>.am-lyric-line-original{opacity:1!important}#applemusic-like-lyrics-view-fm .am-lyric-line:hover>.am-lyric-line-dynamic>*{opacity:1!important}#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-after{opacity:.5}#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-after>.am-lyric-line-dynamic>*>.am-lyric-fake-word{opacity:.5;animation-name:unset;animation-fill-mode:unset;animation-play-state:unset}#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-before{opacity:.5}#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-before>.am-lyric-line-dynamic>*>.am-lyric-fake-word{opacity:1;width:100%;animation-name:unset;animation-fill-mode:unset;animation-play-state:unset}#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-o0,#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-selected{filter:blur(0px);opacity:1}#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-o0>.am-lyric-line-dynamic>*>.am-lyric-real-word,#applemusic-like-lyrics-view-fm .am-lyric-line.am-lyric-line-selected>.am-lyric-line-dynamic>*>.am-lyric-real-word{animation-play-state:running;opacity:.5}#applemusic-like-lyrics-view-fm .am-lyric-dots{height:0px;transition:opacity .75s cubic-bezier(.65,0,.35,1),height .75s cubic-bezier(.65,0,.35,1);transform-origin:left;opacity:0}#applemusic-like-lyrics-view-fm .am-lyric-dots>*{display:inline-block;margin-right:2vh;width:3vh;height:3vh;background-color:var(--applemusic-like-lyrics-font-color, white);box-shadow:0 2px 5px #0008;border-radius:50%}#applemusic-like-lyrics-view-fm .am-lyric-dots.am-lyric-dots-selected{height:6vh;opacity:1;animation-name:am-lyric-dot-show-animation;animation-fill-mode:both;animation-delay:.75s;animation-duration:1.5s}#applemusic-like-lyrics-view-fm .am-lyric-dots.am-lyric-line-before{opacity:0;animation-name:am-lyric-dot-hide-animation;animation-fill-mode:both;animation-duration:.25s}#applemusic-like-lyrics-view-fm .am-album-hide-sidebar{width:12px;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:stretch}#applemusic-like-lyrics-view-fm .am-album-hide-sidebar>*{height:10vh;background-color:#000}#applemusic-like-lyrics-view-fm .am-fm-player-ctl{margin-top:1rem;display:flex;align-items:center;justify-content:space-evenly}#applemusic-like-lyrics-view-fm .am-lyric-background{z-index:-1}#applemusic-like-lyrics-view-fm>*{height:100%;width:100%;display:flex;flex-direction:row}#applemusic-like-lyrics-view{display:flex;height:100%;width:80%;margin:0 10%;z-index:1}#applemusic-like-lyrics-view svg{width:unset;height:unset}#applemusic-like-lyrics-view .amll-error-boundary{margin:60px 0}#applemusic-like-lyrics-view .amll-error-boundary *{white-space:pre-wrap;user-select:text}#applemusic-like-lyrics-view .am-lyric-background{z-index:-1}#applemusic-like-lyrics-view .am-lyric-view-loading{flex:1}#applemusic-like-lyrics-view .am-player-song-info{flex:1;z-index:2;display:flex;flex-direction:column;overflow:hidden;align-items:center;justify-content:center}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info-spacer{flex:1}#applemusic-like-lyrics-view .am-player-song-info>.am-album-image{width:70%;aspect-ratio:1/1;max-height:45vh;flex:0;position:relative}#applemusic-like-lyrics-view .am-player-song-info>.am-album-image>*{width:100%;height:100%;aspect-ratio:1/1}#applemusic-like-lyrics-view .am-player-song-info>.am-album-image img{border-radius:3%;box-shadow:0 0 1rem #0004;width:100%;height:100%;aspect-ratio:1/1;object-fit:cover}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info{flex:1;width:100%}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:1.5rem;line-height:normal;margin:1rem 0 .25rem;cursor:text;user-select:text;text-align:center}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-alias{overflow:hidden;font-size:1.2rem;line-height:normal;margin-top:.1rem;opacity:.75;cursor:text;text-align:center;user-select:text;white-space:nowrap;text-overflow:ellipsis}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-artists{width:100%;font-size:1rem;line-height:normal;margin:.25rem 0;display:flex;align-items:baseline;flex-wrap:nowrap;justify-content:center}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-artists .am-artists-label{line-height:normal;white-space:nowrap}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-artists .am-artists{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-artists .am-artists a{line-height:normal;opacity:.8;user-select:text}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-artists .am-artists a:after{content:var(--applemusic-like-lyrics-music-artists-separator, " - ");opacity:.5}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-artists .am-artists a:last-child:after{content:""}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-album{max-width:100%;font-size:1rem;line-height:normal;margin:.25rem 0;display:flex;align-items:baseline;justify-content:center}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-album .am-album-label{white-space:nowrap}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-album .am-album{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}#applemusic-like-lyrics-view .am-player-song-info>.am-music-info .am-music-album a{opacity:.8;user-select:text}#applemusic-like-lyrics-view .am-lyric{flex:1;z-index:2;display:flex;flex-direction:column}#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line{filter:blur(0)!important;opacity:1!important;visibility:visible!important}#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line>.am-lyric-line-original{opacity:.75}#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line>.am-lyric-line-dynamic>*{opacity:.75}#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line.am-lyric-line-o0,#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line.am-lyric-line-selected{opacity:1}#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line.am-lyric-line-o0>.am-lyric-line-dynamic>*,#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-line.am-lyric-line-selected>.am-lyric-line-dynamic>*{opacity:1}#applemusic-like-lyrics-view .am-lyric:hover .am-lyric-options{opacity:1}#applemusic-like-lyrics-view .am-lyric-view-error{flex:1}#applemusic-like-lyrics-view .am-lyric-view-error *{overflow-wrap:break-word;white-space:pre-wrap;margin-bottom:1rem}#applemusic-like-lyrics-view .am-lyric-options{opacity:0;transition:opacity .75s cubic-bezier(.65,0,.35,1);position:absolute;right:10%;top:100px;z-index:1}#applemusic-like-lyrics-view .am-lyric-view{flex:1;overflow:hidden scroll;position:relative;-webkit-mask-image:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0) 5%,#000 10%,#000 90%,rgba(0,0,0,0) 95%,rgba(0,0,0,0))}#applemusic-like-lyrics-view .am-lyric-view::-webkit-scrollbar{display:none}#applemusic-like-lyrics-view .am-lyric-view>*{padding:50vh 0;position:absolute;padding-left:2rem;padding-right:min(30%,5vw,600px)}#applemusic-like-lyrics-view .am-lyric-view-no-lyric{height:100%;overflow:hidden;flex:1;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:baseline}#applemusic-like-lyrics-view.lyric-scale-effect .am-lyric-line{transform:scale(.85)}#applemusic-like-lyrics-view.lyric-scale-effect .am-lyric-line.am-lyric-line-o0,#applemusic-like-lyrics-view.lyric-scale-effect .am-lyric-line.am-lyric-line-selected{transform:scale(1)}#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line{opacity:.5}#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before{opacity:0;visibility:hidden}#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-5,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-4,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-3,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-2,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o-1,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o1,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o2,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o3,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o4,#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-before.am-lyric-line-o5{visibility:visible}#applemusic-like-lyrics-view.lyric-hide-passed .am-lyric-line.am-lyric-line-selected{opacity:1}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line,#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-after,#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-before{filter:blur(4px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-after.am-lyric-line-selected,#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-before.am-lyric-line-selected{filter:blur(0px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o-5{filter:blur(5px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o-4{filter:blur(4px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o-3{filter:blur(3px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o-2{filter:blur(2px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o-1,#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o1{filter:blur(1px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o2{filter:blur(2px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o3{filter:blur(3px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o4{filter:blur(4px)}#applemusic-like-lyrics-view.lyric-blur-effect .am-lyric-line.am-lyric-line-o5{filter:blur(5px)}#applemusic-like-lyrics-view.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-after{opacity:.1}#applemusic-like-lyrics-view.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-o1{opacity:.4}#applemusic-like-lyrics-view.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-o2{opacity:.3}#applemusic-like-lyrics-view.lyric-blur-fade-in-effect .am-lyric-line.am-lyric-line-o3{opacity:.2}#applemusic-like-lyrics-view.lyric-blur-fade-in-effect .am-lyric-line>.am-lyric-line-dynamic>*>.am-lyric-real-word{opacity:1}#applemusic-like-lyrics-view.lyric-fixed-font-size .am-lyric-line{font-size:max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))}#applemusic-like-lyrics-view.lyric-fixed-font-size .am-lyric-dots.am-lyric-dots-selected{height:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))/.4)}#applemusic-like-lyrics-view.lyric-fixed-font-size .am-lyric-dots>*{margin-right:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px)) * .8333333333);width:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))/.8);height:calc(max(8px,var(--applemusic-like-lyrics-lyric-font-size, 16px))/.8)}#applemusic-like-lyrics-view.use-ping-fang-font *{font-family:San Francisco,Helvetica,PingFang SC!important}#applemusic-like-lyrics-view.align-left-album-image .am-album-image{align-self:flex-start!important}#applemusic-like-lyrics-view.align-left-music-name .am-music-name,#applemusic-like-lyrics-view.align-left-music-alias .am-music-alias{text-align:left!important}#applemusic-like-lyrics-view.align-left-music-artists .am-music-artists,#applemusic-like-lyrics-view.align-left-music-album .am-music-album{justify-content:left!important}#applemusic-like-lyrics-view.hide-music-artists-label .am-artists-label,#applemusic-like-lyrics-view.hide-music-album-label .am-album-label{display:none}#applemusic-like-lyrics-view.align-top-selected-lyric .am-lyric-view>*{padding-bottom:100vh}#applemusic-like-lyrics-view.font-shadow .am-lyric-view,#applemusic-like-lyrics-view.font-shadow .am-music-info{filter:drop-shadow(0 0 var(--applemusic-like-lyrics-font-shadow-size, 2px) rgba(119,119,119,.2666666667))}#applemusic-like-lyrics-view .am-lyric-line{font-weight:700;font-size:clamp(32px,3vw,4vh);padding:max(1rem,1vh) 0;transform-origin:left;color:var(--applemusic-like-lyrics-font-color, unset);transition:all .75s cubic-bezier(.65,0,.35,1);line-break:loose;word-break:break-word}#applemusic-like-lyrics-view .am-lyric-line>.am-lyric-line-translated,#applemusic-like-lyrics-view .am-lyric-line>.am-lyric-line-roman{opacity:.5;font-size:max(16px,65%);margin-top:.5rem}#applemusic-like-lyrics-view .am-lyric-line>.am-lyric-line-dynamic>*{position:relative;display:inline-block;white-space:break-spaces}#applemusic-like-lyrics-view .am-lyric-line>.am-lyric-line-dynamic>*>.am-lyric-fake-word{animation-name:am-lyric-word-animation;animation-timing-function:linear;animation-fill-mode:both;width:0%;right:0%;position:absolute;white-space:nowrap;overflow:hidden}#applemusic-like-lyrics-view .am-lyric-line>.am-lyric-line-dynamic>*>.am-lyric-real-word{opacity:.75;transition:opacity .75s cubic-bezier(.65,0,.35,1)}#applemusic-like-lyrics-view .am-lyric-line:hover{opacity:1!important}#applemusic-like-lyrics-view .am-lyric-line:hover>.am-lyric-line-original{opacity:1!important}#applemusic-like-lyrics-view .am-lyric-line:hover>.am-lyric-line-dynamic>*{opacity:1!important}#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-after{opacity:.5}#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-after>.am-lyric-line-dynamic>*>.am-lyric-fake-word{opacity:.5;animation-name:unset;animation-fill-mode:unset;animation-play-state:unset}#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-before{opacity:.5}#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-before>.am-lyric-line-dynamic>*>.am-lyric-fake-word{opacity:1;width:100%;animation-name:unset;animation-fill-mode:unset;animation-play-state:unset}#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-o0,#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-selected{filter:blur(0px);opacity:1}#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-o0>.am-lyric-line-dynamic>*>.am-lyric-real-word,#applemusic-like-lyrics-view .am-lyric-line.am-lyric-line-selected>.am-lyric-line-dynamic>*>.am-lyric-real-word{animation-play-state:running;opacity:.5}@keyframes am-lyric-word-animation{0%{width:0%;right:100%}to{width:100%;right:0%}}#applemusic-like-lyrics-view .am-lyric-dots{height:0px;transition:opacity .75s cubic-bezier(.65,0,.35,1),height .75s cubic-bezier(.65,0,.35,1);transform-origin:left;opacity:0}#applemusic-like-lyrics-view .am-lyric-dots>*{display:inline-block;margin-right:2vh;width:3vh;height:3vh;background-color:var(--applemusic-like-lyrics-font-color, white);box-shadow:0 2px 5px #0008;border-radius:50%}#applemusic-like-lyrics-view .am-lyric-dots.am-lyric-dots-selected{height:6vh;opacity:1;animation-name:am-lyric-dot-show-animation;animation-fill-mode:both;animation-delay:.75s;animation-duration:1.5s}#applemusic-like-lyrics-view .am-lyric-dots.am-lyric-line-before{opacity:0;animation-name:am-lyric-dot-hide-animation;animation-fill-mode:both;animation-duration:.25s}@keyframes am-lyric-dot-show-animation{0%{opacity:0}to{opacity:1}}@keyframes am-lyric-dot-hide-animation{0%{opacity:1}to{opacity:0}}.m-player.z-shadow{background:transparent!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}body .mq-playing .g-hd,body .m-winctrl,body #main-player,body .g-singlec-comment-detail.z-show,body .m-pinfo,body .m-topbox,body .m-tool,body header .m-zoom svg,body .m-leftbox:after{opacity:1;transition:opacity .5s}body.amll-hide-controls .mq-playing .g-hd,body.amll-hide-controls .m-winctrl,body.amll-hide-controls #main-player,body.amll-hide-controls .g-singlec-comment-detail.z-show,body.amll-hide-controls .m-pinfo,body.amll-hide-controls .m-topbox,body.amll-hide-controls .m-tool,body.amll-hide-controls header .m-zoom svg,body.amll-hide-controls .m-leftbox:after{opacity:0!important}.m-winctrl.disabled,.m-singlebg{display:none}.g-singlec-ct{top:0}.g-single,#id-single{bottom:0;height:100vh;top:0}.g-single .g-bd2,#id-single .g-bd2{margin-bottom:60px}.g-singlec-comment,.g-singlec-comment-detail,.g-singlec-comment-top{bottom:80px}.g-bds-fix,.g-single{bottom:0!important}body.amll-lyric-page-open #x-g-mn>.g-sd,body.amll-lyric-page-open #x-g-mn>.g-mn{display:none!important} diff --git a/dist/index.js b/dist/index.js index f2e418832..272c10fa8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,15 +1,15 @@ -(()=>{var vI=Object.create;var vm=Object.defineProperty,mI=Object.defineProperties,uI=Object.getOwnPropertyDescriptor,pI=Object.getOwnPropertyDescriptors,fI=Object.getOwnPropertyNames,j0=Object.getOwnPropertySymbols,kI=Object.getPrototypeOf,mm=Object.prototype.hasOwnProperty,Hk=Object.prototype.propertyIsEnumerable;var hm=(e,t,o)=>t in e?vm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,K=(e,t)=>{for(var o in t||(t={}))mm.call(t,o)&&hm(e,o,t[o]);if(j0)for(var o of j0(t))Hk.call(t,o)&&hm(e,o,t[o]);return e},ke=(e,t)=>mI(e,pI(t));var we=(e,t)=>{var o={};for(var n in e)mm.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&j0)for(var n of j0(e))t.indexOf(n)<0&&Hk.call(e,n)&&(o[n]=e[n]);return o};var vt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var wI=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of fI(t))!mm.call(e,r)&&r!==o&&vm(e,r,{get:()=>t[r],enumerable:!(n=uI(t,r))||n.enumerable});return e};var y=(e,t,o)=>(o=e!=null?vI(kI(e)):{},wI(t||!e||!e.__esModule?vm(o,"default",{value:e,enumerable:!0}):o,e));var P=(e,t,o)=>(hm(e,typeof t!="symbol"?t+"":t,o),o);var $k=vt(fe=>{"use strict";var hc=Symbol.for("react.element"),gI=Symbol.for("react.portal"),EI=Symbol.for("react.fragment"),xI=Symbol.for("react.strict_mode"),MI=Symbol.for("react.profiler"),zI=Symbol.for("react.provider"),bI=Symbol.for("react.context"),yI=Symbol.for("react.forward_ref"),LI=Symbol.for("react.suspense"),CI=Symbol.for("react.memo"),II=Symbol.for("react.lazy"),Wk=Symbol.iterator;function NI(e){return e===null||typeof e!="object"?null:(e=Wk&&e[Wk]||e["@@iterator"],typeof e=="function"?e:null)}var Pk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ok=Object.assign,Rk={};function Ei(e,t,o){this.props=e,this.context=t,this.refs=Rk,this.updater=o||Pk}Ei.prototype.isReactComponent={};Ei.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ei.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tk(){}Tk.prototype=Ei.prototype;function pm(e,t,o){this.props=e,this.context=t,this.refs=Rk,this.updater=o||Pk}var fm=pm.prototype=new Tk;fm.constructor=pm;Ok(fm,Ei.prototype);fm.isPureReactComponent=!0;var Sk=Array.isArray,Ak=Object.prototype.hasOwnProperty,km={current:null},Dk={key:!0,ref:!0,__self:!0,__source:!0};function Fk(e,t,o){var n,r={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)Ak.call(t,n)&&!Dk.hasOwnProperty(n)&&(r[n]=t[n]);var l=arguments.length-2;if(l===1)r.children=o;else if(1{"use strict";Vk.exports=$k()});var ew=vt(Se=>{"use strict";function Mm(e,t){var o=e.length;e.push(t);e:for(;0>>1,r=e[n];if(0<_0(r,t))e[n]=t,e[o]=r,o=n;else break e}}function mn(e){return e.length===0?null:e[0]}function O0(e){if(e.length===0)return null;var t=e[0],o=e.pop();if(o!==t){e[0]=o;e:for(var n=0,r=e.length,a=r>>>1;n_0(l,o))c_0(s,l)?(e[n]=s,e[c]=o,n=c):(e[n]=l,e[i]=o,n=i);else if(c_0(s,o))e[n]=s,e[c]=o,n=c;else break e}}return t}function _0(e,t){var o=e.sortIndex-t.sortIndex;return o!==0?o:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Uk=performance,Se.unstable_now=function(){return Uk.now()}):(gm=Date,qk=gm.now(),Se.unstable_now=function(){return gm.now()-qk});var Uk,gm,qk,Hn=[],Lr=[],SI=1,Go=null,Vt=3,R0=!1,ja=!1,mc=!1,Yk=typeof setTimeout=="function"?setTimeout:null,Xk=typeof clearTimeout=="function"?clearTimeout:null,Gk=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function zm(e){for(var t=mn(Lr);t!==null;){if(t.callback===null)O0(Lr);else if(t.startTime<=e)O0(Lr),t.sortIndex=t.expirationTime,Mm(Hn,t);else break;t=mn(Lr)}}function bm(e){if(mc=!1,zm(e),!ja)if(mn(Hn)!==null)ja=!0,Lm(ym);else{var t=mn(Lr);t!==null&&Cm(bm,t.startTime-e)}}function ym(e,t){ja=!1,mc&&(mc=!1,Xk(uc),uc=-1),R0=!0;var o=Vt;try{for(zm(t),Go=mn(Hn);Go!==null&&(!(Go.expirationTime>t)||e&&!Jk());){var n=Go.callback;if(typeof n=="function"){Go.callback=null,Vt=Go.priorityLevel;var r=n(Go.expirationTime<=t);t=Se.unstable_now(),typeof r=="function"?Go.callback=r:Go===mn(Hn)&&O0(Hn),zm(t)}else O0(Hn);Go=mn(Hn)}if(Go!==null)var a=!0;else{var i=mn(Lr);i!==null&&Cm(bm,i.startTime-t),a=!1}return a}finally{Go=null,Vt=o,R0=!1}}var T0=!1,P0=null,uc=-1,Qk=5,Zk=-1;function Jk(){return!(Se.unstable_now()-Zke||125n?(e.sortIndex=o,Mm(Lr,e),mn(Hn)===null&&e===mn(Lr)&&(mc?(Xk(uc),uc=-1):mc=!0,Cm(bm,o-n))):(e.sortIndex=r,Mm(Hn,e),ja||R0||(ja=!0,Lm(ym))),e};Se.unstable_shouldYield=Jk;Se.unstable_wrapCallback=function(e){var t=Vt;return function(){var o=Vt;Vt=t;try{return e.apply(this,arguments)}finally{Vt=o}}}});var ow=vt((rq,tw)=>{"use strict";tw.exports=ew()});var cE=vt(_o=>{"use strict";var s3=I(),Wo=ow();function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xm=Object.prototype.hasOwnProperty,_I=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,nw={},rw={};function PI(e){return Xm.call(rw,e)?!0:Xm.call(nw,e)?!1:_I.test(e)?rw[e]=!0:(nw[e]=!0,!1)}function OI(e,t,o,n){if(o!==null&&o.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function RI(e,t,o,n){if(t===null||typeof t>"u"||OI(e,t,o,n))return!0;if(n)return!1;if(o!==null)switch(o.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lo(e,t,o,n,r,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=r,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var _t={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_t[e]=new lo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_t[t]=new lo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_t[e]=new lo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_t[e]=new lo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_t[e]=new lo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_t[e]=new lo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_t[e]=new lo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_t[e]=new lo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_t[e]=new lo(e,5,!1,e.toLowerCase(),null,!1,!1)});var F4=/[\-:]([a-z])/g;function $4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(F4,$4);_t[t]=new lo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(F4,$4);_t[t]=new lo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(F4,$4);_t[t]=new lo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_t[e]=new lo(e,1,!1,e.toLowerCase(),null,!1,!1)});_t.xlinkHref=new lo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_t[e]=new lo(e,1,!1,e.toLowerCase(),null,!0,!0)});function V4(e,t,o,n){var r=_t.hasOwnProperty(t)?_t[t]:null;(r!==null?r.type!==0:n||!(2{var VI=Object.create;var gm=Object.defineProperty,UI=Object.defineProperties,qI=Object.getOwnPropertyDescriptor,GI=Object.getOwnPropertyDescriptors,KI=Object.getOwnPropertyNames,_0=Object.getOwnPropertySymbols,XI=Object.getPrototypeOf,xm=Object.prototype.hasOwnProperty,Vk=Object.prototype.propertyIsEnumerable;var Em=(e,t,o)=>t in e?gm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Y=(e,t)=>{for(var o in t||(t={}))xm.call(t,o)&&Em(e,o,t[o]);if(_0)for(var o of _0(t))Vk.call(t,o)&&Em(e,o,t[o]);return e},ge=(e,t)=>UI(e,GI(t));var xe=(e,t)=>{var o={};for(var n in e)xm.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&_0)for(var n of _0(e))t.indexOf(n)<0&&Vk.call(e,n)&&(o[n]=e[n]);return o};var _e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var YI=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of KI(t))!xm.call(e,r)&&r!==o&&gm(e,r,{get:()=>t[r],enumerable:!(n=qI(t,r))||n.enumerable});return e};var y=(e,t,o)=>(o=e!=null?VI(XI(e)):{},YI(t||!e||!e.__esModule?gm(o,"default",{value:e,enumerable:!0}):o,e));var O=(e,t,o)=>(Em(e,typeof t!="symbol"?t+"":t,o),o);var tw=_e(Ee=>{"use strict";var fc=Symbol.for("react.element"),QI=Symbol.for("react.portal"),ZI=Symbol.for("react.fragment"),JI=Symbol.for("react.strict_mode"),eN=Symbol.for("react.profiler"),tN=Symbol.for("react.provider"),oN=Symbol.for("react.context"),nN=Symbol.for("react.forward_ref"),rN=Symbol.for("react.suspense"),aN=Symbol.for("react.memo"),iN=Symbol.for("react.lazy"),Uk=Symbol.iterator;function lN(e){return e===null||typeof e!="object"?null:(e=Uk&&e[Uk]||e["@@iterator"],typeof e=="function"?e:null)}var Kk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xk=Object.assign,Yk={};function yi(e,t,o){this.props=e,this.context=t,this.refs=Yk,this.updater=o||Kk}yi.prototype.isReactComponent={};yi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};yi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qk(){}Qk.prototype=yi.prototype;function zm(e,t,o){this.props=e,this.context=t,this.refs=Yk,this.updater=o||Kk}var bm=zm.prototype=new Qk;bm.constructor=zm;Xk(bm,yi.prototype);bm.isPureReactComponent=!0;var qk=Array.isArray,Zk=Object.prototype.hasOwnProperty,ym={current:null},Jk={key:!0,ref:!0,__self:!0,__source:!0};function ew(e,t,o){var n,r={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)Zk.call(t,n)&&!Jk.hasOwnProperty(n)&&(r[n]=t[n]);var l=arguments.length-2;if(l===1)r.children=o;else if(1{"use strict";ow.exports=tw()});var vw=_e(Re=>{"use strict";function Bm(e,t){var o=e.length;e.push(t);e:for(;0>>1,r=e[n];if(0>>1;nT0(l,o))cT0(s,l)?(e[n]=s,e[c]=o,n=c):(e[n]=l,e[i]=o,n=i);else if(cT0(s,o))e[n]=s,e[c]=o,n=c;else break e}}return t}function T0(e,t){var o=e.sortIndex-t.sortIndex;return o!==0?o:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(nw=performance,Re.unstable_now=function(){return nw.now()}):(Cm=Date,rw=Cm.now(),Re.unstable_now=function(){return Cm.now()-rw});var nw,Cm,rw,On=[],Br=[],vN=1,Qo=null,Gt=3,F0=!1,Oa=!1,wc=!1,lw=typeof setTimeout=="function"?setTimeout:null,cw=typeof clearTimeout=="function"?clearTimeout:null,aw=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function jm(e){for(var t=kn(Br);t!==null;){if(t.callback===null)D0(Br);else if(t.startTime<=e)D0(Br),t.sortIndex=t.expirationTime,Bm(On,t);else break;t=kn(Br)}}function Hm(e){if(wc=!1,jm(e),!Oa)if(kn(On)!==null)Oa=!0,Sm(Wm);else{var t=kn(Br);t!==null&&_m(Hm,t.startTime-e)}}function Wm(e,t){Oa=!1,wc&&(wc=!1,cw(Ec),Ec=-1),F0=!0;var o=Gt;try{for(jm(t),Qo=kn(On);Qo!==null&&(!(Qo.expirationTime>t)||e&&!hw());){var n=Qo.callback;if(typeof n=="function"){Qo.callback=null,Gt=Qo.priorityLevel;var r=n(Qo.expirationTime<=t);t=Re.unstable_now(),typeof r=="function"?Qo.callback=r:Qo===kn(On)&&D0(On),jm(t)}else D0(On);Qo=kn(On)}if(Qo!==null)var a=!0;else{var i=kn(Br);i!==null&&_m(Hm,i.startTime-t),a=!1}return a}finally{Qo=null,Gt=o,F0=!1}}var $0=!1,A0=null,Ec=-1,sw=5,dw=-1;function hw(){return!(Re.unstable_now()-dwe||125n?(e.sortIndex=o,Bm(Br,e),kn(On)===null&&e===kn(Br)&&(wc?(cw(Ec),Ec=-1):wc=!0,_m(Hm,o-n))):(e.sortIndex=r,Bm(On,e),Oa||F0||(Oa=!0,Sm(Wm))),e};Re.unstable_shouldYield=hw;Re.unstable_wrapCallback=function(e){var t=Gt;return function(){var o=Gt;Gt=t;try{return e.apply(this,arguments)}finally{Gt=o}}}});var uw=_e((Yq,mw)=>{"use strict";mw.exports=vw()});var gg=_e(Ro=>{"use strict";var x3=I(),Oo=uw();function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),r4=Object.prototype.hasOwnProperty,mN=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pw={},fw={};function uN(e){return r4.call(fw,e)?!0:r4.call(pw,e)?!1:mN.test(e)?fw[e]=!0:(pw[e]=!0,!1)}function pN(e,t,o,n){if(o!==null&&o.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fN(e,t,o,n){if(t===null||typeof t>"u"||pN(e,t,o,n))return!0;if(n)return!1;if(o!==null)switch(o.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ho(e,t,o,n,r,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=r,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rt[e]=new ho(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rt[t]=new ho(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rt[e]=new ho(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rt[e]=new ho(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Rt[e]=new ho(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rt[e]=new ho(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rt[e]=new ho(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rt[e]=new ho(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rt[e]=new ho(e,5,!1,e.toLowerCase(),null,!1,!1)});var Y4=/[\-:]([a-z])/g;function Q4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Y4,Q4);Rt[t]=new ho(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Y4,Q4);Rt[t]=new ho(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Y4,Q4);Rt[t]=new ho(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rt[e]=new ho(e,1,!1,e.toLowerCase(),null,!1,!1)});Rt.xlinkHref=new ho("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rt[e]=new ho(e,1,!1,e.toLowerCase(),null,!0,!0)});function Z4(e,t,o,n){var r=Rt.hasOwnProperty(t)?Rt[t]:null;(r!==null?r.type!==0:n||!(2l||r[i]!==a[l]){var c=` -`+r[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{Nm=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?zc(e):""}function TI(e){switch(e.tag){case 5:return zc(e.type);case 16:return zc("Lazy");case 13:return zc("Suspense");case 19:return zc("SuspenseList");case 0:case 2:case 15:return e=Bm(e.type,!1),e;case 11:return e=Bm(e.type.render,!1),e;case 1:return e=Bm(e.type,!0),e;default:return""}}function e4(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bi:return"Fragment";case zi:return"Portal";case Qm:return"Profiler";case U4:return"StrictMode";case Zm:return"Suspense";case Jm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v3:return(e.displayName||"Context")+".Consumer";case h3:return(e._context.displayName||"Context")+".Provider";case q4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G4:return t=e.displayName||null,t!==null?t:e4(e.type)||"Memo";case Ir:t=e._payload,e=e._init;try{return e4(e(t))}catch(o){}}return null}function AI(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return e4(t);case 8:return t===U4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function u3(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function DI(e){var t=u3(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var r=o.get,a=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function D0(e){e._valueTracker||(e._valueTracker=DI(e))}function p3(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),n="";return e&&(n=u3(e)?e.checked?"true":"false":e.value),e=n,e!==o?(t.setValue(e),!0):!1}function p2(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function t4(e,t){var o=t.checked;return Ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o!=null?o:e._wrapperState.initialChecked})}function iw(e,t){var o=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;o=Fr(t.value!=null?t.value:o),e._wrapperState={initialChecked:n,initialValue:o,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function f3(e,t){t=t.checked,t!=null&&V4(e,"checked",t,!1)}function o4(e,t){f3(e,t);var o=Fr(t.value),n=t.type;if(o!=null)n==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?n4(e,t.type,o):t.hasOwnProperty("defaultValue")&&n4(e,t.type,Fr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lw(e,t,o){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,o||t===e.value||(e.value=t),e.defaultValue=t}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function n4(e,t,o){(t!=="number"||p2(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var bc=Array.isArray;function _i(e,t,o,n){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=F0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Oc(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}var Cc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},FI=["Webkit","ms","Moz","O"];Object.keys(Cc).forEach(function(e){FI.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cc[t]=Cc[e]})});function E3(e,t,o){return t==null||typeof t=="boolean"||t===""?"":o||typeof t!="number"||t===0||Cc.hasOwnProperty(e)&&Cc[e]?(""+t).trim():t+"px"}function x3(e,t){e=e.style;for(var o in t)if(t.hasOwnProperty(o)){var n=o.indexOf("--")===0,r=E3(o,t[o],n);o==="float"&&(o="cssFloat"),n?e.setProperty(o,r):e[o]=r}}var $I=Ue({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function i4(e,t){if(t){if($I[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function l4(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var c4=null;function K4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var s4=null,Pi=null,Oi=null;function dw(e){if(e=ts(e)){if(typeof s4!="function")throw Error(O(280));var t=e.stateNode;t&&(t=$2(t),s4(e.stateNode,e.type,t))}}function M3(e){Pi?Oi?Oi.push(e):Oi=[e]:Pi=e}function z3(){if(Pi){var e=Pi,t=Oi;if(Oi=Pi=null,dw(e),t)for(e=0;e>>=0,e===0?32:31-(eN(e)/tN|0)|0}var $0=64,V0=4194304;function yc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function g2(e,t){var o=e.pendingLanes;if(o===0)return 0;var n=0,r=e.suspendedLanes,a=e.pingedLanes,i=o&268435455;if(i!==0){var l=i&~r;l!==0?n=yc(l):(a&=i,a!==0&&(n=yc(a)))}else i=o&~r,i!==0?n=yc(i):a!==0&&(n=yc(a));if(n===0)return 0;if(t!==0&&t!==n&&(t&r)===0&&(r=n&-n,a=t&-t,r>=a||r===16&&(a&4194240)!==0))return t;if((n&4)!==0&&(n|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0o;o++)t.push(e);return t}function Jc(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wn(t),e[t]=o}function aN(e,t){var o=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Nc),gw=String.fromCharCode(32),Ew=!1;function $3(e,t){switch(e){case"keyup":return WN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function V3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yi=!1;function _N(e,t){switch(e){case"compositionend":return V3(t);case"keypress":return t.which!==32?null:(Ew=!0,gw);case"textInput":return e=t.data,e===gw&&Ew?null:e;default:return null}}function PN(e,t){if(yi)return e==="compositionend"||!ou&&$3(e,t)?(e=D3(),i2=J4=Hr=null,yi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=zw(o)}}function K3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?K3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Y3(){for(var e=window,t=p2();t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href=="string"}catch(n){o=!1}if(o)e=t.contentWindow;else break;t=p2(e.document)}return t}function nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function UN(e){var t=Y3(),o=e.focusedElem,n=e.selectionRange;if(t!==o&&o&&o.ownerDocument&&K3(o.ownerDocument.documentElement,o)){if(n!==null&&nu(o)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in o)o.selectionStart=t,o.selectionEnd=Math.min(e,o.value.length);else if(e=(t=o.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=o.textContent.length,a=Math.min(n.start,r);n=n.end===void 0?a:Math.min(n.end,r),!e.extend&&a>n&&(r=n,n=a,a=r),r=bw(o,a);var i=bw(o,n);r&&i&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=o;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o=document.documentMode,Li=null,p4=null,jc=null,f4=!1;function yw(e,t,o){var n=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;f4||Li==null||Li!==p2(n)||(n=Li,"selectionStart"in n&&nu(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),jc&&$c(jc,n)||(jc=n,n=M2(p4,"onSelect"),0Ni||(e.current=M4[Ni],M4[Ni]=null,Ni--)}function _e(e,t){Ni++,M4[Ni]=e.current,e.current=t}var $r={},Kt=Ur($r),ko=Ur(!1),Ta=$r;function Fi(e,t){var o=e.type.contextTypes;if(!o)return $r;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var r={},a;for(a in o)r[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function wo(e){return e=e.childContextTypes,e!=null}function b2(){Ae(ko),Ae(Kt)}function Sw(e,t,o){if(Kt.current!==$r)throw Error(O(168));_e(Kt,t),_e(ko,o)}function rg(e,t,o){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return o;n=n.getChildContext();for(var r in n)if(!(r in t))throw Error(O(108,AI(e)||"Unknown",r));return Ue({},o,n)}function y2(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$r,Ta=Kt.current,_e(Kt,e),_e(ko,ko.current),!0}function _w(e,t,o){var n=e.stateNode;if(!n)throw Error(O(169));o?(e=rg(e,t,Ta),n.__reactInternalMemoizedMergedChildContext=e,Ae(ko),Ae(Kt),_e(Kt,e)):Ae(ko),_e(ko,o)}var lr=null,V2=!1,Dm=!1;function ag(e){lr===null?lr=[e]:lr.push(e)}function tB(e){V2=!0,ag(e)}function qr(){if(!Dm&&lr!==null){Dm=!0;var e=0,t=ye;try{var o=lr;for(ye=1;e>=i,r-=i,cr=1<<32-wn(t)+r|o<b?(L=x,x=null):L=x.sibling;var C=v(p,x,f[b],E);if(C===null){x===null&&(x=L);break}e&&x&&C.alternate===null&&t(p,x),m=a(C,m,b),z===null?M=C:z.sibling=C,z=C,x=L}if(b===f.length)return o(p,x),De&&Ha(p,b),M;if(x===null){for(;bb?(L=x,x=null):L=x.sibling;var B=v(p,x,C.value,E);if(B===null){x===null&&(x=L);break}e&&x&&B.alternate===null&&t(p,x),m=a(B,m,b),z===null?M=B:z.sibling=B,z=B,x=L}if(C.done)return o(p,x),De&&Ha(p,b),M;if(x===null){for(;!C.done;b++,C=f.next())C=h(p,C.value,E),C!==null&&(m=a(C,m,b),z===null?M=C:z.sibling=C,z=C);return De&&Ha(p,b),M}for(x=n(p,x);!C.done;b++,C=f.next())C=u(x,p,b,C.value,E),C!==null&&(e&&C.alternate!==null&&x.delete(C.key===null?b:C.key),m=a(C,m,b),z===null?M=C:z.sibling=C,z=C);return e&&x.forEach(function(N){return t(p,N)}),De&&Ha(p,b),M}function g(p,m,f,E){if(typeof f=="object"&&f!==null&&f.type===bi&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case A0:e:{for(var M=f.key,z=m;z!==null;){if(z.key===M){if(M=f.type,M===bi){if(z.tag===7){o(p,z.sibling),m=r(z,f.props.children),m.return=p,p=m;break e}}else if(z.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Ir&&Fw(M)===z.type){o(p,z.sibling),m=r(z,f.props),m.ref=gc(p,z,f),m.return=p,p=m;break e}o(p,z);break}else t(p,z);z=z.sibling}f.type===bi?(m=Ra(f.props.children,p.mode,E,f.key),m.return=p,p=m):(E=u2(f.type,f.key,f.props,null,p.mode,E),E.ref=gc(p,m,f),E.return=p,p=E)}return i(p);case zi:e:{for(z=f.key;m!==null;){if(m.key===z)if(m.tag===4&&m.stateNode.containerInfo===f.containerInfo&&m.stateNode.implementation===f.implementation){o(p,m.sibling),m=r(m,f.children||[]),m.return=p,p=m;break e}else{o(p,m);break}else t(p,m);m=m.sibling}m=Ym(f,p.mode,E),m.return=p,p=m}return i(p);case Ir:return z=f._init,g(p,m,z(f._payload),E)}if(bc(f))return w(p,m,f,E);if(pc(f))return k(p,m,f,E);t2(p,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,m!==null&&m.tag===6?(o(p,m.sibling),m=r(m,f),m.return=p,p=m):(o(p,m),m=Km(f,p.mode,E),m.return=p,p=m),i(p)):o(p,m)}return g}var Vi=mg(!0),ug=mg(!1),os={},On=Ur(os),Gc=Ur(os),Kc=Ur(os);function Pa(e){if(e===os)throw Error(O(174));return e}function vu(e,t){switch(_e(Kc,t),_e(Gc,e),_e(On,os),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:a4(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=a4(t,e)}Ae(On),_e(On,t)}function Ui(){Ae(On),Ae(Gc),Ae(Kc)}function pg(e){Pa(Kc.current);var t=Pa(On.current),o=a4(t,e.type);t!==o&&(_e(Gc,e),_e(On,o))}function mu(e){Gc.current===e&&(Ae(On),Ae(Gc))}var $e=Ur(0);function j2(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fm=[];function uu(){for(var e=0;eo?o:4,e(!0);var n=$m.transition;$m.transition={};try{e(!1),t()}finally{ye=o,$m.transition=n}}function jg(){return Jo().memoizedState}function aB(e,t,o){var n=Ar(e);if(o={lane:n,action:o,hasEagerState:!1,eagerState:null,next:null},Hg(e))Wg(t,o);else if(o=sg(e,t,o,n),o!==null){var r=io();gn(o,e,n,r),Sg(o,t,n)}}function iB(e,t,o){var n=Ar(e),r={lane:n,action:o,hasEagerState:!1,eagerState:null,next:null};if(Hg(e))Wg(t,r);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,l=a(i,o);if(r.hasEagerState=!0,r.eagerState=l,En(l,i)){var c=t.interleaved;c===null?(r.next=r,du(t)):(r.next=c.next,c.next=r),t.interleaved=r;return}}catch(s){}finally{}o=sg(e,t,r,n),o!==null&&(r=io(),gn(o,e,n,r),Sg(o,t,n))}}function Hg(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function Wg(e,t){Hc=H2=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function Sg(e,t,o){if((o&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,o|=n,t.lanes=o,X4(e,o)}}var W2={readContext:Zo,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useInsertionEffect:Ut,useLayoutEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useMutableSource:Ut,useSyncExternalStore:Ut,useId:Ut,unstable_isNewReconciler:!1},lB={readContext:Zo,useCallback:function(e,t){return Sn().memoizedState=[e,t===void 0?null:t],e},useContext:Zo,useEffect:Vw,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,d2(4194308,4,Lg.bind(null,t,e),o)},useLayoutEffect:function(e,t){return d2(4194308,4,e,t)},useInsertionEffect:function(e,t){return d2(4,2,e,t)},useMemo:function(e,t){var o=Sn();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var n=Sn();return t=o!==void 0?o(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=aB.bind(null,Ve,e),[n.memoizedState,e]},useRef:function(e){var t=Sn();return e={current:e},t.memoizedState=e},useState:$w,useDebugValue:gu,useDeferredValue:function(e){return Sn().memoizedState=e},useTransition:function(){var e=$w(!1),t=e[0];return e=rB.bind(null,e[1]),Sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var n=Ve,r=Sn();if(De){if(o===void 0)throw Error(O(407));o=o()}else{if(o=t(),Et===null)throw Error(O(349));(Da&30)!==0||wg(n,t,o)}r.memoizedState=o;var a={value:o,getSnapshot:t};return r.queue=a,Vw(Eg.bind(null,n,a,e),[e]),n.flags|=2048,Qc(9,gg.bind(null,n,a,o,t),void 0,null),o},useId:function(){var e=Sn(),t=Et.identifierPrefix;if(De){var o=sr,n=cr;o=(n&~(1<<32-wn(n)-1)).toString(32)+o,t=":"+t+"R"+o,o=Yc++,0")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{Pm=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?Ic(e):""}function kN(e){switch(e.tag){case 5:return Ic(e.type);case 16:return Ic("Lazy");case 13:return Ic("Suspense");case 19:return Ic("SuspenseList");case 0:case 2:case 15:return e=Rm(e.type,!1),e;case 11:return e=Rm(e.type.render,!1),e;case 1:return e=Rm(e.type,!0),e;default:return""}}function c4(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ni:return"Fragment";case Ii:return"Portal";case a4:return"Profiler";case J4:return"StrictMode";case i4:return"Suspense";case l4:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b3:return(e.displayName||"Context")+".Consumer";case z3:return(e._context.displayName||"Context")+".Provider";case eu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tu:return t=e.displayName||null,t!==null?t:c4(e.type)||"Memo";case Hr:t=e._payload,e=e._init;try{return c4(e(t))}catch(o){}}return null}function wN(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return c4(t);case 8:return t===J4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function L3(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function EN(e){var t=L3(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var r=o.get,a=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function U0(e){e._valueTracker||(e._valueTracker=EN(e))}function C3(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),n="";return e&&(n=L3(e)?e.checked?"true":"false":e.value),e=n,e!==o?(t.setValue(e),!0):!1}function E2(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function s4(e,t){var o=t.checked;return Xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o!=null?o:e._wrapperState.initialChecked})}function ww(e,t){var o=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;o=qr(t.value!=null?t.value:o),e._wrapperState={initialChecked:n,initialValue:o,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function I3(e,t){t=t.checked,t!=null&&Z4(e,"checked",t,!1)}function d4(e,t){I3(e,t);var o=qr(t.value),n=t.type;if(o!=null)n==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?h4(e,t.type,o):t.hasOwnProperty("defaultValue")&&h4(e,t.type,qr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ew(e,t,o){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,o||t===e.value||(e.value=t),e.defaultValue=t}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function h4(e,t,o){(t!=="number"||E2(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Nc=Array.isArray;function Ai(e,t,o,n){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=q0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fc(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}var Hc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},gN=["Webkit","ms","Moz","O"];Object.keys(Hc).forEach(function(e){gN.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hc[t]=Hc[e]})});function H3(e,t,o){return t==null||typeof t=="boolean"||t===""?"":o||typeof t!="number"||t===0||Hc.hasOwnProperty(e)&&Hc[e]?(""+t).trim():t+"px"}function W3(e,t){e=e.style;for(var o in t)if(t.hasOwnProperty(o)){var n=o.indexOf("--")===0,r=H3(o,t[o],n);o==="float"&&(o="cssFloat"),n?e.setProperty(o,r):e[o]=r}}var xN=Xe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function u4(e,t){if(t){if(xN[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function p4(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var f4=null;function ou(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var k4=null,Di=null,Fi=null;function Mw(e){if(e=is(e)){if(typeof k4!="function")throw Error(P(280));var t=e.stateNode;t&&(t=G2(t),k4(e.stateNode,e.type,t))}}function S3(e){Di?Fi?Fi.push(e):Fi=[e]:Di=e}function _3(){if(Di){var e=Di,t=Fi;if(Fi=Di=null,Mw(e),t)for(e=0;e>>=0,e===0?32:31-(HN(e)/WN|0)|0}var G0=64,K0=4194304;function Bc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function z2(e,t){var o=e.pendingLanes;if(o===0)return 0;var n=0,r=e.suspendedLanes,a=e.pingedLanes,i=o&268435455;if(i!==0){var l=i&~r;l!==0?n=Bc(l):(a&=i,a!==0&&(n=Bc(a)))}else i=o&~r,i!==0?n=Bc(i):a!==0&&(n=Bc(a));if(n===0)return 0;if(t!==0&&t!==n&&(t&r)===0&&(r=n&-n,a=t&-t,r>=a||r===16&&(a&4194240)!==0))return t;if((n&4)!==0&&(n|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0o;o++)t.push(e);return t}function rs(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mn(t),e[t]=o}function PN(e,t){var o=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Sc),jw=String.fromCharCode(32),Hw=!1;function tE(e,t){switch(e){case"keyup":return hB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bi=!1;function mB(e,t){switch(e){case"compositionend":return oE(t);case"keypress":return t.which!==32?null:(Hw=!0,jw);case"textInput":return e=t.data,e===jw&&Hw?null:e;default:return null}}function uB(e,t){if(Bi)return e==="compositionend"||!du&&tE(e,t)?(e=J3(),d2=lu=Or=null,Bi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=_w(o)}}function iE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?iE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lE(){for(var e=window,t=E2();t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href=="string"}catch(n){o=!1}if(o)e=t.contentWindow;else break;t=E2(e.document)}return t}function hu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function zB(e){var t=lE(),o=e.focusedElem,n=e.selectionRange;if(t!==o&&o&&o.ownerDocument&&iE(o.ownerDocument.documentElement,o)){if(n!==null&&hu(o)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in o)o.selectionStart=t,o.selectionEnd=Math.min(e,o.value.length);else if(e=(t=o.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=o.textContent.length,a=Math.min(n.start,r);n=n.end===void 0?a:Math.min(n.end,r),!e.extend&&a>n&&(r=n,n=a,a=r),r=Ow(o,a);var i=Ow(o,n);r&&i&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=o;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o=document.documentMode,ji=null,z4=null,Oc=null,b4=!1;function Pw(e,t,o){var n=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;b4||ji==null||ji!==E2(n)||(n=ji,"selectionStart"in n&&hu(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Oc&&Kc(Oc,n)||(Oc=n,n=L2(z4,"onSelect"),0Si||(e.current=B4[Si],B4[Si]=null,Si--)}function Te(e,t){Si++,B4[Si]=e.current,e.current=t}var Gr={},Qt=Xr(Gr),go=Xr(!1),Va=Gr;function Gi(e,t){var o=e.type.contextTypes;if(!o)return Gr;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var r={},a;for(a in o)r[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function xo(e){return e=e.childContextTypes,e!=null}function I2(){Ve(go),Ve(Qt)}function qw(e,t,o){if(Qt.current!==Gr)throw Error(P(168));Te(Qt,t),Te(go,o)}function fE(e,t,o){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return o;n=n.getChildContext();for(var r in n)if(!(r in t))throw Error(P(108,wN(e)||"Unknown",r));return Xe({},o,n)}function N2(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gr,Va=Qt.current,Te(Qt,e),Te(go,go.current),!0}function Gw(e,t,o){var n=e.stateNode;if(!n)throw Error(P(169));o?(e=fE(e,t,Va),n.__reactInternalMemoizedMergedChildContext=e,Ve(go),Ve(Qt),Te(Qt,e)):Ve(go),Te(go,o)}var hr=null,K2=!1,Xm=!1;function kE(e){hr===null?hr=[e]:hr.push(e)}function WB(e){K2=!0,kE(e)}function Yr(){if(!Xm&&hr!==null){Xm=!0;var e=0,t=Ie;try{var o=hr;for(Ie=1;e>=i,r-=i,vr=1<<32-Mn(t)+r|o<b?(L=x,x=null):L=x.sibling;var C=v(p,x,f[b],g);if(C===null){x===null&&(x=L);break}e&&x&&C.alternate===null&&t(p,x),m=a(C,m,b),z===null?M=C:z.sibling=C,z=C,x=L}if(b===f.length)return o(p,x),Ue&&Pa(p,b),M;if(x===null){for(;bb?(L=x,x=null):L=x.sibling;var B=v(p,x,C.value,g);if(B===null){x===null&&(x=L);break}e&&x&&B.alternate===null&&t(p,x),m=a(B,m,b),z===null?M=B:z.sibling=B,z=B,x=L}if(C.done)return o(p,x),Ue&&Pa(p,b),M;if(x===null){for(;!C.done;b++,C=f.next())C=h(p,C.value,g),C!==null&&(m=a(C,m,b),z===null?M=C:z.sibling=C,z=C);return Ue&&Pa(p,b),M}for(x=n(p,x);!C.done;b++,C=f.next())C=u(x,p,b,C.value,g),C!==null&&(e&&C.alternate!==null&&x.delete(C.key===null?b:C.key),m=a(C,m,b),z===null?M=C:z.sibling=C,z=C);return e&&x.forEach(function(N){return t(p,N)}),Ue&&Pa(p,b),M}function E(p,m,f,g){if(typeof f=="object"&&f!==null&&f.type===Ni&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case V0:e:{for(var M=f.key,z=m;z!==null;){if(z.key===M){if(M=f.type,M===Ni){if(z.tag===7){o(p,z.sibling),m=r(z,f.props.children),m.return=p,p=m;break e}}else if(z.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Hr&&e3(M)===z.type){o(p,z.sibling),m=r(z,f.props),m.ref=bc(p,z,f),m.return=p,p=m;break e}o(p,z);break}else t(p,z);z=z.sibling}f.type===Ni?(m=$a(f.props.children,p.mode,g,f.key),m.return=p,p=m):(g=w2(f.type,f.key,f.props,null,p.mode,g),g.ref=bc(p,m,f),g.return=p,p=g)}return i(p);case Ii:e:{for(z=f.key;m!==null;){if(m.key===z)if(m.tag===4&&m.stateNode.containerInfo===f.containerInfo&&m.stateNode.implementation===f.implementation){o(p,m.sibling),m=r(m,f.children||[]),m.return=p,p=m;break e}else{o(p,m);break}else t(p,m);m=m.sibling}m=n4(f,p.mode,g),m.return=p,p=m}return i(p);case Hr:return z=f._init,E(p,m,z(f._payload),g)}if(Nc(f))return w(p,m,f,g);if(gc(f))return k(p,m,f,g);a2(p,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,m!==null&&m.tag===6?(o(p,m.sibling),m=r(m,f),m.return=p,p=m):(o(p,m),m=o4(f,p.mode,g),m.return=p,p=m),i(p)):o(p,m)}return E}var Xi=yE(!0),LE=yE(!1),ls={},Dn=Xr(ls),Zc=Xr(ls),Jc=Xr(ls);function Da(e){if(e===ls)throw Error(P(174));return e}function gu(e,t){switch(Te(Jc,t),Te(Zc,e),Te(Dn,ls),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:m4(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=m4(t,e)}Ve(Dn),Te(Dn,t)}function Yi(){Ve(Dn),Ve(Zc),Ve(Jc)}function CE(e){Da(Jc.current);var t=Da(Dn.current),o=m4(t,e.type);t!==o&&(Te(Zc,e),Te(Dn,o))}function xu(e){Zc.current===e&&(Ve(Dn),Ve(Zc))}var Ge=Xr(0);function _2(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ym=[];function Mu(){for(var e=0;eo?o:4,e(!0);var n=Qm.transition;Qm.transition={};try{e(!1),t()}finally{Ie=o,Qm.transition=n}}function $E(){return nn().memoizedState}function PB(e,t,o){var n=Vr(e);if(o={lane:n,action:o,hasEagerState:!1,eagerState:null,next:null},VE(e))UE(t,o);else if(o=xE(e,t,o,n),o!==null){var r=so();zn(o,e,n,r),qE(o,t,n)}}function RB(e,t,o){var n=Vr(e),r={lane:n,action:o,hasEagerState:!1,eagerState:null,next:null};if(VE(e))UE(t,r);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,l=a(i,o);if(r.hasEagerState=!0,r.eagerState=l,bn(l,i)){var c=t.interleaved;c===null?(r.next=r,wu(t)):(r.next=c.next,c.next=r),t.interleaved=r;return}}catch(s){}finally{}o=xE(e,t,r,n),o!==null&&(r=so(),zn(o,e,n,r),qE(o,t,n))}}function VE(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function UE(e,t){Pc=O2=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function qE(e,t,o){if((o&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,o|=n,t.lanes=o,ru(e,o)}}var P2={readContext:on,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useInsertionEffect:Kt,useLayoutEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useMutableSource:Kt,useSyncExternalStore:Kt,useId:Kt,unstable_isNewReconciler:!1},TB={readContext:on,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:on,useEffect:o3,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,u2(4194308,4,RE.bind(null,t,e),o)},useLayoutEffect:function(e,t){return u2(4194308,4,e,t)},useInsertionEffect:function(e,t){return u2(4,2,e,t)},useMemo:function(e,t){var o=Rn();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var n=Rn();return t=o!==void 0?o(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=PB.bind(null,Ke,e),[n.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:t3,useDebugValue:Cu,useDeferredValue:function(e){return Rn().memoizedState=e},useTransition:function(){var e=t3(!1),t=e[0];return e=OB.bind(null,e[1]),Rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var n=Ke,r=Rn();if(Ue){if(o===void 0)throw Error(P(407));o=o()}else{if(o=t(),bt===null)throw Error(P(349));(qa&30)!==0||BE(n,t,o)}r.memoizedState=o;var a={value:o,getSnapshot:t};return r.queue=a,o3(HE.bind(null,n,a,e),[e]),n.flags|=2048,os(9,jE.bind(null,n,a,o,t),void 0,null),o},useId:function(){var e=Rn(),t=bt.identifierPrefix;if(Ue){var o=mr,n=vr;o=(n&~(1<<32-Mn(n)-1)).toString(32)+o,t=":"+t+"R"+o,o=es++,0",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(o,{is:n.is}):(e=i.createElement(o),o==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,o),e[_n]=t,e[qc]=n,$g(e,t,!1,!1),t.stateNode=e;e:{switch(i=l4(o,n),o){case"dialog":Te("cancel",e),Te("close",e),r=n;break;case"iframe":case"object":case"embed":Te("load",e),r=n;break;case"video":case"audio":for(r=0;rGi&&(t.flags|=128,n=!0,Ec(a,!1),t.lanes=4194304)}else{if(!n)if(e=j2(i),e!==null){if(t.flags|=128,n=!0,o=e.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),Ec(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!De)return qt(t),null}else 2*Qe()-a.renderingStartTime>Gi&&o!==1073741824&&(t.flags|=128,n=!0,Ec(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(o=a.last,o!==null?o.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,o=$e.current,_e($e,n?o&1|2:o&1),t):(qt(t),null);case 22:case 23:return yu(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Bo&1073741824)!==0&&(qt(t),t.subtreeFlags&6&&(t.flags|=8192)):qt(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function pB(e,t){switch(au(t),t.tag){case 1:return wo(t.type)&&b2(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(),Ae(ko),Ae(Kt),uu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return mu(t),null;case 13:if(Ae($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae($e),null;case 4:return Ui(),null;case 10:return su(t.type._context),null;case 22:case 23:return yu(),null;case 24:return null;default:return null}}var n2=!1,Gt=!1,fB=typeof WeakSet=="function"?WeakSet:Set,q=null;function Wi(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(n){Ge(e,t,n)}else o.current=null}function S4(e,t,o){try{o()}catch(n){Ge(e,t,n)}}var Jw=!1;function kB(e,t){if(k4=E2,e=Y3(),nu(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var n=o.getSelection&&o.getSelection();if(n&&n.rangeCount!==0){o=n.anchorNode;var r=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{o.nodeType,a.nodeType}catch(E){o=null;break e}var i=0,l=-1,c=-1,s=0,d=0,h=e,v=null;t:for(;;){for(var u;h!==o||r!==0&&h.nodeType!==3||(l=i+r),h!==a||n!==0&&h.nodeType!==3||(c=i+n),h.nodeType===3&&(i+=h.nodeValue.length),(u=h.firstChild)!==null;)v=h,h=u;for(;;){if(h===e)break t;if(v===o&&++s===r&&(l=i),v===a&&++d===n&&(c=i),(u=h.nextSibling)!==null)break;h=v,v=h.parentNode}h=u}o=l===-1||c===-1?null:{start:l,end:c}}else o=null}o=o||{start:0,end:0}}else o=null;for(w4={focusedElem:e,selectionRange:o},E2=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var w=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,g=w.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?k:pn(t.type,k),g);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(E){Ge(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return w=Jw,Jw=!1,w}function Wc(e,t,o){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do{if((r.tag&e)===e){var a=r.destroy;r.destroy=void 0,a!==void 0&&S4(t,o,a)}r=r.next}while(r!==n)}}function G2(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var n=o.create;o.destroy=n()}o=o.next}while(o!==t)}}function _4(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof t=="function"?t(e):t.current=e}}function qg(e){var t=e.alternate;t!==null&&(e.alternate=null,qg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_n],delete t[qc],delete t[x4],delete t[JN],delete t[eB])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gg(e){return e.tag===5||e.tag===3||e.tag===4}function e3(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function P4(e,t,o){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?o.nodeType===8?o.parentNode.insertBefore(e,t):o.insertBefore(e,t):(o.nodeType===8?(t=o.parentNode,t.insertBefore(e,o)):(t=o,t.appendChild(e)),o=o._reactRootContainer,o!=null||t.onclick!==null||(t.onclick=z2));else if(n!==4&&(e=e.child,e!==null))for(P4(e,t,o),e=e.sibling;e!==null;)P4(e,t,o),e=e.sibling}function O4(e,t,o){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(O4(e,t,o),e=e.sibling;e!==null;)O4(e,t,o),e=e.sibling}var Wt=null,fn=!1;function Cr(e,t,o){for(o=o.child;o!==null;)Kg(e,t,o),o=o.sibling}function Kg(e,t,o){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(T2,o)}catch(l){}switch(o.tag){case 5:Gt||Wi(o,t);case 6:var n=Wt,r=fn;Wt=null,Cr(e,t,o),Wt=n,fn=r,Wt!==null&&(fn?(e=Wt,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):Wt.removeChild(o.stateNode));break;case 18:Wt!==null&&(fn?(e=Wt,o=o.stateNode,e.nodeType===8?Am(e.parentNode,o):e.nodeType===1&&Am(e,o),Dc(e)):Am(Wt,o.stateNode));break;case 4:n=Wt,r=fn,Wt=o.stateNode.containerInfo,fn=!0,Cr(e,t,o),Wt=n,fn=r;break;case 0:case 11:case 14:case 15:if(!Gt&&(n=o.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){r=n=n.next;do{var a=r,i=a.destroy;a=a.tag,i!==void 0&&((a&2)!==0||(a&4)!==0)&&S4(o,t,i),r=r.next}while(r!==n)}Cr(e,t,o);break;case 1:if(!Gt&&(Wi(o,t),n=o.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=o.memoizedProps,n.state=o.memoizedState,n.componentWillUnmount()}catch(l){Ge(o,t,l)}Cr(e,t,o);break;case 21:Cr(e,t,o);break;case 22:o.mode&1?(Gt=(n=Gt)||o.memoizedState!==null,Cr(e,t,o),Gt=n):Cr(e,t,o);break;default:Cr(e,t,o)}}function t3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new fB),t.forEach(function(n){var r=LB.bind(null,e,n);o.has(n)||(o.add(n),n.then(r,r))})}}function un(e,t){var o=t.deletions;if(o!==null)for(var n=0;nr&&(r=i),n&=~a}if(n=r,n=Qe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*gB(n/1960))-n,10e?16:e,Wr===null)var n=!1;else{if(e=Wr,Wr=null,P2=0,(ge&6)!==0)throw Error(O(331));var r=ge;for(ge|=4,q=e.current;q!==null;){var a=q,i=a.child;if((q.flags&16)!==0){var l=a.deletions;if(l!==null){for(var c=0;cQe()-zu?Oa(e,0):Mu|=o),go(e,t)}function oE(e,t){t===0&&((e.mode&1)===0?t=1:(t=V0,V0<<=1,(V0&130023424)===0&&(V0=4194304)));var o=io();e=mr(e,t),e!==null&&(Jc(e,t,o),go(e,o))}function yB(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),oE(e,o)}function LB(e,t){var o=0;switch(e.tag){case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(o=r.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(O(314))}n!==null&&n.delete(t),oE(e,o)}var nE;nE=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||ko.current)fo=!0;else{if((e.lanes&o)===0&&(t.flags&128)===0)return fo=!1,mB(e,t,o);fo=(e.flags&131072)!==0}else fo=!1,De&&(t.flags&1048576)!==0&&ig(t,C2,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;h2(e,t),e=t.pendingProps;var r=Fi(t,Kt.current);Ti(t,o),r=fu(null,t,n,e,r,o);var a=ku();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wo(n)?(a=!0,y2(t)):a=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,hu(t),r.updater=U2,t.stateNode=r,r._reactInternals=t,C4(t,n,e,o),t=B4(null,t,n,!0,a,o)):(t.tag=0,De&&a&&ru(t),ao(null,t,r,o),t=t.child),t;case 16:n=t.elementType;e:{switch(h2(e,t),e=t.pendingProps,r=n._init,n=r(n._payload),t.type=n,r=t.tag=IB(n),e=pn(n,e),r){case 0:t=N4(null,t,n,e,o);break e;case 1:t=Xw(null,t,n,e,o);break e;case 11:t=Kw(null,t,n,e,o);break e;case 14:t=Yw(null,t,n,pn(n.type,e),o);break e}throw Error(O(306,n,""))}return t;case 0:return n=t.type,r=t.pendingProps,r=t.elementType===n?r:pn(n,r),N4(e,t,n,r,o);case 1:return n=t.type,r=t.pendingProps,r=t.elementType===n?r:pn(n,r),Xw(e,t,n,r,o);case 3:e:{if(Ag(t),e===null)throw Error(O(387));n=t.pendingProps,a=t.memoizedState,r=a.element,dg(e,t),B2(t,n,null,o);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){r=qi(Error(O(423)),t),t=Qw(e,t,n,o,r);break e}else if(n!==r){r=qi(Error(O(424)),t),t=Qw(e,t,n,o,r);break e}else for(jo=Or(t.stateNode.containerInfo.firstChild),Ho=t,De=!0,kn=null,o=ug(t,null,n,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if($i(),n===r){t=ur(e,t,o);break e}ao(e,t,n,o)}t=t.child}return t;case 5:return pg(t),e===null&&b4(t),n=t.type,r=t.pendingProps,a=e!==null?e.memoizedProps:null,i=r.children,g4(n,r)?i=null:a!==null&&g4(n,a)&&(t.flags|=32),Tg(e,t),ao(e,t,i,o),t.child;case 6:return e===null&&b4(t),null;case 13:return Dg(e,t,o);case 4:return vu(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Vi(t,null,n,o):ao(e,t,n,o),t.child;case 11:return n=t.type,r=t.pendingProps,r=t.elementType===n?r:pn(n,r),Kw(e,t,n,r,o);case 7:return ao(e,t,t.pendingProps,o),t.child;case 8:return ao(e,t,t.pendingProps.children,o),t.child;case 12:return ao(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(n=t.type._context,r=t.pendingProps,a=t.memoizedProps,i=r.value,_e(I2,n._currentValue),n._currentValue=i,a!==null)if(En(a.value,i)){if(a.children===r.children&&!ko.current){t=ur(e,t,o);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(a.tag===1){c=dr(-1,o&-o),c.tag=2;var s=a.updateQueue;if(s!==null){s=s.shared;var d=s.pending;d===null?c.next=c:(c.next=d.next,d.next=c),s.pending=c}}a.lanes|=o,c=a.alternate,c!==null&&(c.lanes|=o),y4(a.return,o,t),l.lanes|=o;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(O(341));i.lanes|=o,l=i.alternate,l!==null&&(l.lanes|=o),y4(i,o,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}ao(e,t,r.children,o),t=t.child}return t;case 9:return r=t.type,n=t.pendingProps.children,Ti(t,o),r=Zo(r),n=n(r),t.flags|=1,ao(e,t,n,o),t.child;case 14:return n=t.type,r=pn(n,t.pendingProps),r=pn(n.type,r),Yw(e,t,n,r,o);case 15:return Og(e,t,t.type,t.pendingProps,o);case 17:return n=t.type,r=t.pendingProps,r=t.elementType===n?r:pn(n,r),h2(e,t),t.tag=1,wo(n)?(e=!0,y2(t)):e=!1,Ti(t,o),vg(t,n,r),C4(t,n,r,o),B4(null,t,n,!0,e,o);case 19:return Fg(e,t,o);case 22:return Rg(e,t,o)}throw Error(O(156,t.tag))};function rE(e,t){return B3(e,t)}function CB(e,t,o,n){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xo(e,t,o,n){return new CB(e,t,o,n)}function Cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function IB(e){if(typeof e=="function")return Cu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===q4)return 11;if(e===G4)return 14}return 2}function Dr(e,t){var o=e.alternate;return o===null?(o=Xo(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function u2(e,t,o,n,r,a){var i=2;if(n=e,typeof e=="function")Cu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case bi:return Ra(o.children,r,a,t);case U4:i=8,r|=8;break;case Qm:return e=Xo(12,o,t,r|2),e.elementType=Qm,e.lanes=a,e;case Zm:return e=Xo(13,o,t,r),e.elementType=Zm,e.lanes=a,e;case Jm:return e=Xo(19,o,t,r),e.elementType=Jm,e.lanes=a,e;case m3:return Y2(o,r,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case h3:i=10;break e;case v3:i=9;break e;case q4:i=11;break e;case G4:i=14;break e;case Ir:i=16,n=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=Xo(i,o,t,r),t.elementType=e,t.type=n,t.lanes=a,t}function Ra(e,t,o,n){return e=Xo(7,e,n,t),e.lanes=o,e}function Y2(e,t,o,n){return e=Xo(22,e,n,t),e.elementType=m3,e.lanes=o,e.stateNode={isHidden:!1},e}function Km(e,t,o){return e=Xo(6,e,null,t),e.lanes=o,e}function Ym(e,t,o){return t=Xo(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function NB(e,t,o,n,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hm(0),this.expirationTimes=Hm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hm(0),this.identifierPrefix=n,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Iu(e,t,o,n,r,a,i,l,c){return e=new NB(e,t,o,l,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Xo(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},hu(a),e}function BB(e,t,o){var n=3{"use strict";function sE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sE)}catch(e){console.error(e)}}sE(),dE.exports=cE()});var Wu=vt(Hu=>{"use strict";var hE=qa();Hu.createRoot=hE.createRoot,Hu.hydrateRoot=hE.hydrateRoot;var lq});var t5=vt(Ce=>{"use strict";var xt=typeof Symbol=="function"&&Symbol.for,$u=xt?Symbol.for("react.element"):60103,Vu=xt?Symbol.for("react.portal"):60106,v1=xt?Symbol.for("react.fragment"):60107,m1=xt?Symbol.for("react.strict_mode"):60108,u1=xt?Symbol.for("react.profiler"):60114,p1=xt?Symbol.for("react.provider"):60109,f1=xt?Symbol.for("react.context"):60110,Uu=xt?Symbol.for("react.async_mode"):60111,k1=xt?Symbol.for("react.concurrent_mode"):60111,w1=xt?Symbol.for("react.forward_ref"):60112,g1=xt?Symbol.for("react.suspense"):60113,vj=xt?Symbol.for("react.suspense_list"):60120,E1=xt?Symbol.for("react.memo"):60115,x1=xt?Symbol.for("react.lazy"):60116,mj=xt?Symbol.for("react.block"):60121,uj=xt?Symbol.for("react.fundamental"):60117,pj=xt?Symbol.for("react.responder"):60118,fj=xt?Symbol.for("react.scope"):60119;function Po(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $u:switch(e=e.type,e){case Uu:case k1:case v1:case u1:case m1:case g1:return e;default:switch(e=e&&e.$$typeof,e){case f1:case w1:case x1:case E1:case p1:return e;default:return t}}case Vu:return t}}}function e5(e){return Po(e)===k1}Ce.AsyncMode=Uu;Ce.ConcurrentMode=k1;Ce.ContextConsumer=f1;Ce.ContextProvider=p1;Ce.Element=$u;Ce.ForwardRef=w1;Ce.Fragment=v1;Ce.Lazy=x1;Ce.Memo=E1;Ce.Portal=Vu;Ce.Profiler=u1;Ce.StrictMode=m1;Ce.Suspense=g1;Ce.isAsyncMode=function(e){return e5(e)||Po(e)===Uu};Ce.isConcurrentMode=e5;Ce.isContextConsumer=function(e){return Po(e)===f1};Ce.isContextProvider=function(e){return Po(e)===p1};Ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$u};Ce.isForwardRef=function(e){return Po(e)===w1};Ce.isFragment=function(e){return Po(e)===v1};Ce.isLazy=function(e){return Po(e)===x1};Ce.isMemo=function(e){return Po(e)===E1};Ce.isPortal=function(e){return Po(e)===Vu};Ce.isProfiler=function(e){return Po(e)===u1};Ce.isStrictMode=function(e){return Po(e)===m1};Ce.isSuspense=function(e){return Po(e)===g1};Ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===v1||e===k1||e===u1||e===m1||e===g1||e===vj||typeof e=="object"&&e!==null&&(e.$$typeof===x1||e.$$typeof===E1||e.$$typeof===p1||e.$$typeof===f1||e.$$typeof===w1||e.$$typeof===uj||e.$$typeof===pj||e.$$typeof===fj||e.$$typeof===mj)};Ce.typeOf=Po});var n5=vt((oK,o5)=>{"use strict";o5.exports=t5()});var d5=vt((nK,s5)=>{"use strict";var qu=n5(),kj={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},wj={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},gj={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Gu={};Gu[qu.ForwardRef]=gj;Gu[qu.Memo]=l5;function r5(e){return qu.isMemo(e)?l5:Gu[e.$$typeof]||kj}var Ej=Object.defineProperty,xj=Object.getOwnPropertyNames,a5=Object.getOwnPropertySymbols,Mj=Object.getOwnPropertyDescriptor,zj=Object.getPrototypeOf,i5=Object.prototype;function c5(e,t,o){if(typeof t!="string"){if(i5){var n=zj(t);n&&n!==i5&&c5(e,n,o)}var r=xj(t);a5&&(r=r.concat(a5(t)));for(var a=r5(e),i=r5(t),l=0;l{"use strict";var CV=I(),IV=Symbol.for("react.element"),NV=Symbol.for("react.fragment"),BV=Object.prototype.hasOwnProperty,jV=CV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,HV={key:!0,ref:!0,__self:!0,__source:!0};function yL(e,t,o){var n,r={},a=null,i=null;o!==void 0&&(a=""+o),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)BV.call(t,n)&&!HV.hasOwnProperty(n)&&(r[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)r[n]===void 0&&(r[n]=t[n]);return{$$typeof:IV,type:e,key:a,ref:i,props:r,_owner:jV.current}}yv.Fragment=NV;yv.jsx=yL;yv.jsxs=yL});var G=vt((Xse,CL)=>{"use strict";CL.exports=LL()});var EC=vt(mo=>{"use strict";var lU=mo&&mo.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Bt=mo&&mo.__assign||function(){return Bt=Object.assign||function(e){for(var t,o=1,n=arguments.length;o",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(o,{is:n.is}):(e=i.createElement(o),o==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,o),e[Tn]=t,e[Qc]=n,tg(e,t,!1,!1),t.stateNode=e;e:{switch(i=p4(o,n),o){case"dialog":$e("cancel",e),$e("close",e),r=n;break;case"iframe":case"object":case"embed":$e("load",e),r=n;break;case"video":case"audio":for(r=0;rZi&&(t.flags|=128,n=!0,yc(a,!1),t.lanes=4194304)}else{if(!n)if(e=_2(i),e!==null){if(t.flags|=128,n=!0,o=e.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),yc(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Ue)return Xt(t),null}else 2*tt()-a.renderingStartTime>Zi&&o!==1073741824&&(t.flags|=128,n=!0,yc(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(o=a.last,o!==null?o.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=tt(),t.sibling=null,o=Ge.current,Te(Ge,n?o&1|2:o&1),t):(Xt(t),null);case 22:case 23:return Wu(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Wo&1073741824)!==0&&(Xt(t),t.subtreeFlags&6&&(t.flags|=8192)):Xt(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function GB(e,t){switch(mu(t),t.tag){case 1:return xo(t.type)&&I2(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(),Ve(go),Ve(Qt),Mu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return xu(t),null;case 13:if(Ve(Ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ve(Ge),null;case 4:return Yi(),null;case 10:return ku(t.type._context),null;case 22:case 23:return Wu(),null;case 24:return null;default:return null}}var l2=!1,Yt=!1,KB=typeof WeakSet=="function"?WeakSet:Set,q=null;function Ri(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(n){Qe(e,t,n)}else o.current=null}function F4(e,t,o){try{o()}catch(n){Qe(e,t,n)}}var h3=!1;function XB(e,t){if(y4=b2,e=lE(),hu(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var n=o.getSelection&&o.getSelection();if(n&&n.rangeCount!==0){o=n.anchorNode;var r=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{o.nodeType,a.nodeType}catch(g){o=null;break e}var i=0,l=-1,c=-1,s=0,d=0,h=e,v=null;t:for(;;){for(var u;h!==o||r!==0&&h.nodeType!==3||(l=i+r),h!==a||n!==0&&h.nodeType!==3||(c=i+n),h.nodeType===3&&(i+=h.nodeValue.length),(u=h.firstChild)!==null;)v=h,h=u;for(;;){if(h===e)break t;if(v===o&&++s===r&&(l=i),v===a&&++d===n&&(c=i),(u=h.nextSibling)!==null)break;h=v,v=h.parentNode}h=u}o=l===-1||c===-1?null:{start:l,end:c}}else o=null}o=o||{start:0,end:0}}else o=null;for(L4={focusedElem:e,selectionRange:o},b2=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var w=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,E=w.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?k:En(t.type,k),E);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(g){Qe(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return w=h3,h3=!1,w}function Rc(e,t,o){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do{if((r.tag&e)===e){var a=r.destroy;r.destroy=void 0,a!==void 0&&F4(t,o,a)}r=r.next}while(r!==n)}}function Q2(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var n=o.create;o.destroy=n()}o=o.next}while(o!==t)}}function $4(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof t=="function"?t(e):t.current=e}}function rg(e){var t=e.alternate;t!==null&&(e.alternate=null,rg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tn],delete t[Qc],delete t[N4],delete t[jB],delete t[HB])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ag(e){return e.tag===5||e.tag===3||e.tag===4}function v3(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ag(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function V4(e,t,o){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?o.nodeType===8?o.parentNode.insertBefore(e,t):o.insertBefore(e,t):(o.nodeType===8?(t=o.parentNode,t.insertBefore(e,o)):(t=o,t.appendChild(e)),o=o._reactRootContainer,o!=null||t.onclick!==null||(t.onclick=C2));else if(n!==4&&(e=e.child,e!==null))for(V4(e,t,o),e=e.sibling;e!==null;)V4(e,t,o),e=e.sibling}function U4(e,t,o){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(U4(e,t,o),e=e.sibling;e!==null;)U4(e,t,o),e=e.sibling}var Ot=null,gn=!1;function jr(e,t,o){for(o=o.child;o!==null;)ig(e,t,o),o=o.sibling}function ig(e,t,o){if(An&&typeof An.onCommitFiberUnmount=="function")try{An.onCommitFiberUnmount($2,o)}catch(l){}switch(o.tag){case 5:Yt||Ri(o,t);case 6:var n=Ot,r=gn;Ot=null,jr(e,t,o),Ot=n,gn=r,Ot!==null&&(gn?(e=Ot,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):Ot.removeChild(o.stateNode));break;case 18:Ot!==null&&(gn?(e=Ot,o=o.stateNode,e.nodeType===8?Km(e.parentNode,o):e.nodeType===1&&Km(e,o),qc(e)):Km(Ot,o.stateNode));break;case 4:n=Ot,r=gn,Ot=o.stateNode.containerInfo,gn=!0,jr(e,t,o),Ot=n,gn=r;break;case 0:case 11:case 14:case 15:if(!Yt&&(n=o.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){r=n=n.next;do{var a=r,i=a.destroy;a=a.tag,i!==void 0&&((a&2)!==0||(a&4)!==0)&&F4(o,t,i),r=r.next}while(r!==n)}jr(e,t,o);break;case 1:if(!Yt&&(Ri(o,t),n=o.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=o.memoizedProps,n.state=o.memoizedState,n.componentWillUnmount()}catch(l){Qe(o,t,l)}jr(e,t,o);break;case 21:jr(e,t,o);break;case 22:o.mode&1?(Yt=(n=Yt)||o.memoizedState!==null,jr(e,t,o),Yt=n):jr(e,t,o);break;default:jr(e,t,o)}}function m3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new KB),t.forEach(function(n){var r=rj.bind(null,e,n);o.has(n)||(o.add(n),n.then(r,r))})}}function wn(e,t){var o=t.deletions;if(o!==null)for(var n=0;nr&&(r=i),n&=~a}if(n=r,n=tt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*QB(n/1960))-n,10e?16:e,Pr===null)var n=!1;else{if(e=Pr,Pr=null,A2=0,(Me&6)!==0)throw Error(P(331));var r=Me;for(Me|=4,q=e.current;q!==null;){var a=q,i=a.child;if((q.flags&16)!==0){var l=a.deletions;if(l!==null){for(var c=0;ctt()-ju?Fa(e,0):Bu|=o),Mo(e,t)}function ug(e,t){t===0&&((e.mode&1)===0?t=1:(t=K0,K0<<=1,(K0&130023424)===0&&(K0=4194304)));var o=so();e=kr(e,t),e!==null&&(rs(e,t,o),Mo(e,o))}function nj(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),ug(e,o)}function rj(e,t){var o=0;switch(e.tag){case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(o=r.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(P(314))}n!==null&&n.delete(t),ug(e,o)}var pg;pg=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||go.current)Eo=!0;else{if((e.lanes&o)===0&&(t.flags&128)===0)return Eo=!1,UB(e,t,o);Eo=(e.flags&131072)!==0}else Eo=!1,Ue&&(t.flags&1048576)!==0&&wE(t,j2,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;p2(e,t),e=t.pendingProps;var r=Gi(t,Qt.current);Vi(t,o),r=bu(null,t,n,e,r,o);var a=yu();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xo(n)?(a=!0,N2(t)):a=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Eu(t),r.updater=X2,t.stateNode=r,r._reactInternals=t,_4(t,n,e,o),t=R4(null,t,n,!0,a,o)):(t.tag=0,Ue&&a&&vu(t),co(null,t,r,o),t=t.child),t;case 16:n=t.elementType;e:{switch(p2(e,t),e=t.pendingProps,r=n._init,n=r(n._payload),t.type=n,r=t.tag=ij(n),e=En(n,e),r){case 0:t=P4(null,t,n,e,o);break e;case 1:t=c3(null,t,n,e,o);break e;case 11:t=i3(null,t,n,e,o);break e;case 14:t=l3(null,t,n,En(n.type,e),o);break e}throw Error(P(306,n,""))}return t;case 0:return n=t.type,r=t.pendingProps,r=t.elementType===n?r:En(n,r),P4(e,t,n,r,o);case 1:return n=t.type,r=t.pendingProps,r=t.elementType===n?r:En(n,r),c3(e,t,n,r,o);case 3:e:{if(ZE(t),e===null)throw Error(P(387));n=t.pendingProps,a=t.memoizedState,r=a.element,ME(e,t),S2(t,n,null,o);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){r=Qi(Error(P(423)),t),t=s3(e,t,n,o,r);break e}else if(n!==r){r=Qi(Error(P(424)),t),t=s3(e,t,n,o,r);break e}else for(So=Dr(t.stateNode.containerInfo.firstChild),_o=t,Ue=!0,xn=null,o=LE(t,null,n,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Ki(),n===r){t=wr(e,t,o);break e}co(e,t,n,o)}t=t.child}return t;case 5:return CE(t),e===null&&H4(t),n=t.type,r=t.pendingProps,a=e!==null?e.memoizedProps:null,i=r.children,C4(n,r)?i=null:a!==null&&C4(n,a)&&(t.flags|=32),QE(e,t),co(e,t,i,o),t.child;case 6:return e===null&&H4(t),null;case 13:return JE(e,t,o);case 4:return gu(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Xi(t,null,n,o):co(e,t,n,o),t.child;case 11:return n=t.type,r=t.pendingProps,r=t.elementType===n?r:En(n,r),i3(e,t,n,r,o);case 7:return co(e,t,t.pendingProps,o),t.child;case 8:return co(e,t,t.pendingProps.children,o),t.child;case 12:return co(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(n=t.type._context,r=t.pendingProps,a=t.memoizedProps,i=r.value,Te(H2,n._currentValue),n._currentValue=i,a!==null)if(bn(a.value,i)){if(a.children===r.children&&!go.current){t=wr(e,t,o);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(a.tag===1){c=ur(-1,o&-o),c.tag=2;var s=a.updateQueue;if(s!==null){s=s.shared;var d=s.pending;d===null?c.next=c:(c.next=d.next,d.next=c),s.pending=c}}a.lanes|=o,c=a.alternate,c!==null&&(c.lanes|=o),W4(a.return,o,t),l.lanes|=o;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(P(341));i.lanes|=o,l=i.alternate,l!==null&&(l.lanes|=o),W4(i,o,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}co(e,t,r.children,o),t=t.child}return t;case 9:return r=t.type,n=t.pendingProps.children,Vi(t,o),r=on(r),n=n(r),t.flags|=1,co(e,t,n,o),t.child;case 14:return n=t.type,r=En(n,t.pendingProps),r=En(n.type,r),l3(e,t,n,r,o);case 15:return XE(e,t,t.type,t.pendingProps,o);case 17:return n=t.type,r=t.pendingProps,r=t.elementType===n?r:En(n,r),p2(e,t),t.tag=1,xo(n)?(e=!0,N2(t)):e=!1,Vi(t,o),bE(t,n,r),_4(t,n,r,o),R4(null,t,n,!0,e,o);case 19:return eg(e,t,o);case 22:return YE(e,t,o)}throw Error(P(156,t.tag))};function fg(e,t){return F3(e,t)}function aj(e,t,o,n){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(e,t,o,n){return new aj(e,t,o,n)}function _u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ij(e){if(typeof e=="function")return _u(e)?1:0;if(e!=null){if(e=e.$$typeof,e===eu)return 11;if(e===tu)return 14}return 2}function Ur(e,t){var o=e.alternate;return o===null?(o=en(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function w2(e,t,o,n,r,a){var i=2;if(n=e,typeof e=="function")_u(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ni:return $a(o.children,r,a,t);case J4:i=8,r|=8;break;case a4:return e=en(12,o,t,r|2),e.elementType=a4,e.lanes=a,e;case i4:return e=en(13,o,t,r),e.elementType=i4,e.lanes=a,e;case l4:return e=en(19,o,t,r),e.elementType=l4,e.lanes=a,e;case y3:return J2(o,r,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z3:i=10;break e;case b3:i=9;break e;case eu:i=11;break e;case tu:i=14;break e;case Hr:i=16,n=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=en(i,o,t,r),t.elementType=e,t.type=n,t.lanes=a,t}function $a(e,t,o,n){return e=en(7,e,n,t),e.lanes=o,e}function J2(e,t,o,n){return e=en(22,e,n,t),e.elementType=y3,e.lanes=o,e.stateNode={isHidden:!1},e}function o4(e,t,o){return e=en(6,e,null,t),e.lanes=o,e}function n4(e,t,o){return t=en(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lj(e,t,o,n,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Am(0),this.expirationTimes=Am(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Am(0),this.identifierPrefix=n,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Ou(e,t,o,n,r,a,i,l,c){return e=new lj(e,t,o,l,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=en(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Eu(a),e}function cj(e,t,o){var n=3{"use strict";function xg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xg)}catch(e){console.error(e)}}xg(),Mg.exports=gg()});var Du=_e(Au=>{"use strict";var zg=Qa();Au.createRoot=zg.createRoot,Au.hydrateRoot=zg.hydrateRoot;var Jq});var m5=_e(Be=>{"use strict";var yt=typeof Symbol=="function"&&Symbol.for,Qu=yt?Symbol.for("react.element"):60103,Zu=yt?Symbol.for("react.portal"):60106,f1=yt?Symbol.for("react.fragment"):60107,k1=yt?Symbol.for("react.strict_mode"):60108,w1=yt?Symbol.for("react.profiler"):60114,E1=yt?Symbol.for("react.provider"):60109,g1=yt?Symbol.for("react.context"):60110,Ju=yt?Symbol.for("react.async_mode"):60111,x1=yt?Symbol.for("react.concurrent_mode"):60111,M1=yt?Symbol.for("react.forward_ref"):60112,z1=yt?Symbol.for("react.suspense"):60113,Vj=yt?Symbol.for("react.suspense_list"):60120,b1=yt?Symbol.for("react.memo"):60115,y1=yt?Symbol.for("react.lazy"):60116,Uj=yt?Symbol.for("react.block"):60121,qj=yt?Symbol.for("react.fundamental"):60117,Gj=yt?Symbol.for("react.responder"):60118,Kj=yt?Symbol.for("react.scope"):60119;function To(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Qu:switch(e=e.type,e){case Ju:case x1:case f1:case w1:case k1:case z1:return e;default:switch(e=e&&e.$$typeof,e){case g1:case M1:case y1:case b1:case E1:return e;default:return t}}case Zu:return t}}}function v5(e){return To(e)===x1}Be.AsyncMode=Ju;Be.ConcurrentMode=x1;Be.ContextConsumer=g1;Be.ContextProvider=E1;Be.Element=Qu;Be.ForwardRef=M1;Be.Fragment=f1;Be.Lazy=y1;Be.Memo=b1;Be.Portal=Zu;Be.Profiler=w1;Be.StrictMode=k1;Be.Suspense=z1;Be.isAsyncMode=function(e){return v5(e)||To(e)===Ju};Be.isConcurrentMode=v5;Be.isContextConsumer=function(e){return To(e)===g1};Be.isContextProvider=function(e){return To(e)===E1};Be.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qu};Be.isForwardRef=function(e){return To(e)===M1};Be.isFragment=function(e){return To(e)===f1};Be.isLazy=function(e){return To(e)===y1};Be.isMemo=function(e){return To(e)===b1};Be.isPortal=function(e){return To(e)===Zu};Be.isProfiler=function(e){return To(e)===w1};Be.isStrictMode=function(e){return To(e)===k1};Be.isSuspense=function(e){return To(e)===z1};Be.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===f1||e===x1||e===w1||e===k1||e===z1||e===Vj||typeof e=="object"&&e!==null&&(e.$$typeof===y1||e.$$typeof===b1||e.$$typeof===E1||e.$$typeof===g1||e.$$typeof===M1||e.$$typeof===qj||e.$$typeof===Gj||e.$$typeof===Kj||e.$$typeof===Uj)};Be.typeOf=To});var p5=_e((KK,u5)=>{"use strict";u5.exports=m5()});var M5=_e((XK,x5)=>{"use strict";var ep=p5(),Xj={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Yj={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Qj={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tp={};tp[ep.ForwardRef]=Qj;tp[ep.Memo]=E5;function f5(e){return ep.isMemo(e)?E5:tp[e.$$typeof]||Xj}var Zj=Object.defineProperty,Jj=Object.getOwnPropertyNames,k5=Object.getOwnPropertySymbols,eH=Object.getOwnPropertyDescriptor,tH=Object.getPrototypeOf,w5=Object.prototype;function g5(e,t,o){if(typeof t!="string"){if(w5){var n=tH(t);n&&n!==w5&&g5(e,n,o)}var r=Jj(t);k5&&(r=r.concat(k5(t)));for(var a=f5(e),i=f5(t),l=0;l{"use strict";var aU=I(),iU=Symbol.for("react.element"),lU=Symbol.for("react.fragment"),cU=Object.prototype.hasOwnProperty,sU=aU.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dU={key:!0,ref:!0,__self:!0,__source:!0};function PL(e,t,o){var n,r={},a=null,i=null;o!==void 0&&(a=""+o),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)cU.call(t,n)&&!dU.hasOwnProperty(n)&&(r[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)r[n]===void 0&&(r[n]=t[n]);return{$$typeof:iU,type:e,key:a,ref:i,props:r,_owner:sU.current}}Bv.Fragment=lU;Bv.jsx=PL;Bv.jsxs=PL});var G=_e((F0e,TL)=>{"use strict";TL.exports=RL()});var fk=_e((r2e,qL)=>{var kU=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};qL.exports=kU});var kk=_e((a2e,GL)=>{var wU="2.0.0",EU=Number.MAX_SAFE_INTEGER||9007199254740991,gU=16;GL.exports={SEMVER_SPEC_VERSION:wU,MAX_LENGTH:256,MAX_SAFE_INTEGER:EU,MAX_SAFE_COMPONENT_LENGTH:gU}});var XL=_e((Ma,KL)=>{var{MAX_SAFE_COMPONENT_LENGTH:wk}=kk(),xU=fk();Ma=KL.exports={};var MU=Ma.re=[],K=Ma.src=[],X=Ma.t={},zU=0,pe=(e,t,o)=>{let n=zU++;xU(e,n,t),X[e]=n,K[n]=t,MU[n]=new RegExp(t,o?"g":void 0)};pe("NUMERICIDENTIFIER","0|[1-9]\\d*");pe("NUMERICIDENTIFIERLOOSE","[0-9]+");pe("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");pe("MAINVERSION",`(${K[X.NUMERICIDENTIFIER]})\\.(${K[X.NUMERICIDENTIFIER]})\\.(${K[X.NUMERICIDENTIFIER]})`);pe("MAINVERSIONLOOSE",`(${K[X.NUMERICIDENTIFIERLOOSE]})\\.(${K[X.NUMERICIDENTIFIERLOOSE]})\\.(${K[X.NUMERICIDENTIFIERLOOSE]})`);pe("PRERELEASEIDENTIFIER",`(?:${K[X.NUMERICIDENTIFIER]}|${K[X.NONNUMERICIDENTIFIER]})`);pe("PRERELEASEIDENTIFIERLOOSE",`(?:${K[X.NUMERICIDENTIFIERLOOSE]}|${K[X.NONNUMERICIDENTIFIER]})`);pe("PRERELEASE",`(?:-(${K[X.PRERELEASEIDENTIFIER]}(?:\\.${K[X.PRERELEASEIDENTIFIER]})*))`);pe("PRERELEASELOOSE",`(?:-?(${K[X.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${K[X.PRERELEASEIDENTIFIERLOOSE]})*))`);pe("BUILDIDENTIFIER","[0-9A-Za-z-]+");pe("BUILD",`(?:\\+(${K[X.BUILDIDENTIFIER]}(?:\\.${K[X.BUILDIDENTIFIER]})*))`);pe("FULLPLAIN",`v?${K[X.MAINVERSION]}${K[X.PRERELEASE]}?${K[X.BUILD]}?`);pe("FULL",`^${K[X.FULLPLAIN]}$`);pe("LOOSEPLAIN",`[v=\\s]*${K[X.MAINVERSIONLOOSE]}${K[X.PRERELEASELOOSE]}?${K[X.BUILD]}?`);pe("LOOSE",`^${K[X.LOOSEPLAIN]}$`);pe("GTLT","((?:<|>)?=?)");pe("XRANGEIDENTIFIERLOOSE",`${K[X.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);pe("XRANGEIDENTIFIER",`${K[X.NUMERICIDENTIFIER]}|x|X|\\*`);pe("XRANGEPLAIN",`[v=\\s]*(${K[X.XRANGEIDENTIFIER]})(?:\\.(${K[X.XRANGEIDENTIFIER]})(?:\\.(${K[X.XRANGEIDENTIFIER]})(?:${K[X.PRERELEASE]})?${K[X.BUILD]}?)?)?`);pe("XRANGEPLAINLOOSE",`[v=\\s]*(${K[X.XRANGEIDENTIFIERLOOSE]})(?:\\.(${K[X.XRANGEIDENTIFIERLOOSE]})(?:\\.(${K[X.XRANGEIDENTIFIERLOOSE]})(?:${K[X.PRERELEASELOOSE]})?${K[X.BUILD]}?)?)?`);pe("XRANGE",`^${K[X.GTLT]}\\s*${K[X.XRANGEPLAIN]}$`);pe("XRANGELOOSE",`^${K[X.GTLT]}\\s*${K[X.XRANGEPLAINLOOSE]}$`);pe("COERCE",`(^|[^\\d])(\\d{1,${wk}})(?:\\.(\\d{1,${wk}}))?(?:\\.(\\d{1,${wk}}))?(?:$|[^\\d])`);pe("COERCERTL",K[X.COERCE],!0);pe("LONETILDE","(?:~>?)");pe("TILDETRIM",`(\\s*)${K[X.LONETILDE]}\\s+`,!0);Ma.tildeTrimReplace="$1~";pe("TILDE",`^${K[X.LONETILDE]}${K[X.XRANGEPLAIN]}$`);pe("TILDELOOSE",`^${K[X.LONETILDE]}${K[X.XRANGEPLAINLOOSE]}$`);pe("LONECARET","(?:\\^)");pe("CARETTRIM",`(\\s*)${K[X.LONECARET]}\\s+`,!0);Ma.caretTrimReplace="$1^";pe("CARET",`^${K[X.LONECARET]}${K[X.XRANGEPLAIN]}$`);pe("CARETLOOSE",`^${K[X.LONECARET]}${K[X.XRANGEPLAINLOOSE]}$`);pe("COMPARATORLOOSE",`^${K[X.GTLT]}\\s*(${K[X.LOOSEPLAIN]})$|^$`);pe("COMPARATOR",`^${K[X.GTLT]}\\s*(${K[X.FULLPLAIN]})$|^$`);pe("COMPARATORTRIM",`(\\s*)${K[X.GTLT]}\\s*(${K[X.LOOSEPLAIN]}|${K[X.XRANGEPLAIN]})`,!0);Ma.comparatorTrimReplace="$1$2$3";pe("HYPHENRANGE",`^\\s*(${K[X.XRANGEPLAIN]})\\s+-\\s+(${K[X.XRANGEPLAIN]})\\s*$`);pe("HYPHENRANGELOOSE",`^\\s*(${K[X.XRANGEPLAINLOOSE]})\\s+-\\s+(${K[X.XRANGEPLAINLOOSE]})\\s*$`);pe("STAR","(<|>)?=?\\s*\\*");pe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");pe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var QL=_e((i2e,YL)=>{var bU=["includePrerelease","loose","rtl"],yU=e=>e?typeof e!="object"?{loose:!0}:bU.filter(t=>e[t]).reduce((t,o)=>(t[o]=!0,t),{}):{};YL.exports=yU});var tC=_e((l2e,eC)=>{var ZL=/^[0-9]+$/,JL=(e,t)=>{let o=ZL.test(e),n=ZL.test(t);return o&&n&&(e=+e,t=+t),e===t?0:o&&!n?-1:n&&!o?1:eJL(t,e);eC.exports={compareIdentifiers:JL,rcompareIdentifiers:LU}});var iC=_e((c2e,aC)=>{var Fv=fk(),{MAX_LENGTH:oC,MAX_SAFE_INTEGER:$v}=kk(),{re:nC,t:rC}=XL(),CU=QL(),{compareIdentifiers:ec}=tC(),qo=class{constructor(t,o){if(o=CU(o),t instanceof qo){if(t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>oC)throw new TypeError(`version is longer than ${oC} characters`);Fv("SemVer",t,o),this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease;let n=t.trim().match(o.loose?nC[rC.LOOSE]:nC[rC.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>$v||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$v||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$v||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let a=+r;if(a>=0&&a<$v)return a}return r}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Fv("SemVer.compare",this.version,this.options,t),!(t instanceof qo)){if(typeof t=="string"&&t===this.version)return 0;t=new qo(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof qo||(t=new qo(t,this.options)),ec(this.major,t.major)||ec(this.minor,t.minor)||ec(this.patch,t.patch)}comparePre(t){if(t instanceof qo||(t=new qo(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let o=0;do{let n=this.prerelease[o],r=t.prerelease[o];if(Fv("prerelease compare",o,n,r),n===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(n===void 0)return-1;if(n===r)continue;return ec(n,r)}while(++o)}compareBuild(t){t instanceof qo||(t=new qo(t,this.options));let o=0;do{let n=this.build[o],r=t.build[o];if(Fv("prerelease compare",o,n,r),n===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(n===void 0)return-1;if(n===r)continue;return ec(n,r)}while(++o)}inc(t,o){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",o);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",o);break;case"prepatch":this.prerelease.length=0,this.inc("patch",o),this.inc("pre",o);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",o),this.inc("pre",o);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}o&&(ec(this.prerelease[0],o)===0?isNaN(this.prerelease[1])&&(this.prerelease=[o,0]):this.prerelease=[o,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};aC.exports=qo});var sC=_e((s2e,cC)=>{var lC=iC(),IU=(e,t,o)=>new lC(e,o).compare(new lC(t,o));cC.exports=IU});var hC=_e((d2e,dC)=>{var NU=sC(),BU=(e,t,o)=>NU(e,t,o)>0;dC.exports=BU});var ZC=_e(fo=>{"use strict";var JU=fo&&fo.__extends||function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Wt=fo&&fo.__assign||function(){return Wt=Object.assign||function(e){for(var t,o=1,n=arguments.length;o-1){o._history.stack=s.slice(0,d+1);var h=o._history.stack.length;if(h>gC){var v=h-gC;o._history.stack=s.slice(v,h),o._history.offset=Math.max(o._history.offset-v,0)}}var u=Date.now();if(r){var w=o._history.stack[o._history.offset];if(w&&u-w.timestamp=k&&j<=g&&N.startsWith(u)?N.substring(u.length):N}).join(` -`);if(d!==p){var m=w[k];o._applyEdits({value:p,selectionStart:m!=null&&m.startsWith(u)?h-u.length:h,selectionEnd:v-(d.length-p.length)})}}else if(h!==v){var w=o._getLines(d,h),f=w.length-1,E=o._getLines(d,v).length-1,m=w[f];o._applyEdits({value:d.split(` -`).map(function(T,H){return H>=f&&H<=E?u+T:T}).join(` -`),selectionStart:m&&/\S/.test(m)?h+u.length:h,selectionEnd:v+u.length*(E-f+1)})}else{var M=h+u.length;o._applyEdits({value:d.substring(0,h)+u+d.substring(v),selectionStart:M,selectionEnd:M})}else if(n.keyCode===uU){var z=h!==v,x=d.substring(0,h);if(x.endsWith(u)&&!z){n.preventDefault();var M=h-u.length;o._applyEdits({value:d.substring(0,h-u.length)+d.substring(v),selectionStart:M,selectionEnd:M})}}else if(n.keyCode===vU){if(h===v){var b=o._getLines(d,h).pop(),L=b==null?void 0:b.match(/^\s+/);if(L!=null&&L[0]){n.preventDefault();var C=` -`+L[0],M=h+C.length;o._applyEdits({value:d.substring(0,h)+C+d.substring(v),selectionStart:M,selectionEnd:M})}}}else if(n.keyCode===pC||n.keyCode===fC||n.keyCode===kC||n.keyCode===wC){var B=void 0;n.keyCode===pC&&n.shiftKey?B=["(",")"]:n.keyCode===fC?n.shiftKey?B=["{","}"]:B=["[","]"]:n.keyCode===kC?n.shiftKey?B=['"','"']:B=["'","'"]:n.keyCode===wC&&!n.shiftKey&&(B=["`","`"]),h!==v&&B&&(n.preventDefault(),o._applyEdits({value:d.substring(0,h)+B[0]+d.substring(h,v)+B[1]+d.substring(v),selectionStart:h,selectionEnd:v+2}))}else(uk?n.metaKey&&n.keyCode===Gv:n.ctrlKey&&n.keyCode===Gv)&&!n.shiftKey&&!n.altKey?(n.preventDefault(),o._undoEdit()):(uk?n.metaKey&&n.keyCode===Gv&&n.shiftKey:gU?n.ctrlKey&&n.keyCode===pU:n.ctrlKey&&n.keyCode===Gv&&n.shiftKey)&&!n.altKey?(n.preventDefault(),o._redoEdit()):n.keyCode===fU&&n.ctrlKey&&(uk?n.shiftKey:!0)&&(n.preventDefault(),o.setState(function(N){return{capture:!N.capture}}))}},o._handleChange=function(n){var r=n.currentTarget,a=r.value,i=r.selectionStart,l=r.selectionEnd;o._recordChange({value:a,selectionStart:i,selectionEnd:l},!0),o.props.onValueChange(a)},o._history={stack:[],offset:-1},o._input=null,o}return t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(o){this._history=o.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var o=this,n=this.props,r=n.value,a=n.style,i=n.padding,l=n.highlight,c=n.textareaId,s=n.textareaClassName,d=n.autoFocus,h=n.disabled,v=n.form,u=n.maxLength,w=n.minLength,k=n.name,g=n.placeholder,p=n.readOnly,m=n.required,f=n.onClick,E=n.onFocus,M=n.onBlur,z=n.onKeyUp,x=n.onKeyDown,b=n.onValueChange,L=n.tabSize,C=n.insertSpaces,B=n.ignoreTabKey,N=n.preClassName,j=hU(n,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),T={paddingTop:typeof i=="object"?i.top:i,paddingRight:typeof i=="object"?i.right:i,paddingBottom:typeof i=="object"?i.bottom:i,paddingLeft:typeof i=="object"?i.left:i},H=l(r);return x0.createElement("div",Bt({},j,{style:Bt(Bt({},M0.container),a)}),x0.createElement("pre",Bt({className:N,"aria-hidden":"true",style:Bt(Bt(Bt({},M0.editor),M0.highlight),T)},typeof H=="string"?{dangerouslySetInnerHTML:{__html:H+"
"}}:{children:H})),x0.createElement("textarea",{ref:function(_){return o._input=_},style:Bt(Bt(Bt({},M0.editor),M0.textarea),T),className:Kv+(s?" ".concat(s):""),id:c,value:r,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:f,onKeyUp:z,onFocus:E,onBlur:M,disabled:h,form:v,maxLength:u,minLength:w,name:k,placeholder:g,readOnly:p,required:m,autoFocus:d,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),x0.createElement("style",{dangerouslySetInnerHTML:{__html:EU}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(x0.Component);mo.default=xU;var M0={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}});var MC=vt((f1e,Yv)=>{var MU=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var xC=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,n={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function k(g){return g instanceof a?new a(g.type,k(g.content),g.alias):Array.isArray(g)?g.map(k):g.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(m){var k=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(m.stack)||[])[1];if(k){var g=document.getElementsByTagName("script");for(var p in g)if(g[p].src==k)return g[p]}return null}},isActive:function(k,g,p){for(var m="no-"+g;k;){var f=k.classList;if(f.contains(g))return!0;if(f.contains(m))return!1;k=k.parentElement}return!!p}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(k,g){var p=r.util.clone(r.languages[k]);for(var m in g)p[m]=g[m];return p},insertBefore:function(k,g,p,m){m=m||r.languages;var f=m[k],E={};for(var M in f)if(f.hasOwnProperty(M)){if(M==g)for(var z in p)p.hasOwnProperty(z)&&(E[z]=p[z]);p.hasOwnProperty(M)||(E[M]=f[M])}var x=m[k];return m[k]=E,r.languages.DFS(r.languages,function(b,L){L===x&&b!=k&&(this[b]=E)}),E},DFS:function k(g,p,m,f){f=f||{};var E=r.util.objId;for(var M in g)if(g.hasOwnProperty(M)){p.call(g,M,g[M],m||M);var z=g[M],x=r.util.type(z);x==="Object"&&!f[E(z)]?(f[E(z)]=!0,k(z,p,null,f)):x==="Array"&&!f[E(z)]&&(f[E(z)]=!0,k(z,p,M,f))}}},plugins:{},highlightAll:function(k,g){r.highlightAllUnder(document,k,g)},highlightAllUnder:function(k,g,p){var m={callback:p,container:k,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",m),m.elements=Array.prototype.slice.apply(m.container.querySelectorAll(m.selector)),r.hooks.run("before-all-elements-highlight",m);for(var f=0,E;E=m.elements[f++];)r.highlightElement(E,g===!0,m.callback)},highlightElement:function(k,g,p){var m=r.util.getLanguage(k),f=r.languages[m];r.util.setLanguage(k,m);var E=k.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&r.util.setLanguage(E,m);var M=k.textContent,z={element:k,language:m,grammar:f,code:M};function x(L){z.highlightedCode=L,r.hooks.run("before-insert",z),z.element.innerHTML=z.highlightedCode,r.hooks.run("after-highlight",z),r.hooks.run("complete",z),p&&p.call(z.element)}if(r.hooks.run("before-sanity-check",z),E=z.element.parentElement,E&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!z.code){r.hooks.run("complete",z),p&&p.call(z.element);return}if(r.hooks.run("before-highlight",z),!z.grammar){x(r.util.encode(z.code));return}if(g&&e.Worker){var b=new Worker(r.filename);b.onmessage=function(L){x(L.data)},b.postMessage(JSON.stringify({language:z.language,code:z.code,immediateClose:!0}))}else x(r.highlight(z.code,z.grammar,z.language))},highlight:function(k,g,p){var m={code:k,grammar:g,language:p};if(r.hooks.run("before-tokenize",m),!m.grammar)throw new Error('The language "'+m.language+'" has no grammar.');return m.tokens=r.tokenize(m.code,m.grammar),r.hooks.run("after-tokenize",m),a.stringify(r.util.encode(m.tokens),m.language)},tokenize:function(k,g){var p=g.rest;if(p){for(var m in p)g[m]=p[m];delete g.rest}var f=new c;return s(f,f.head,k),l(k,f,g,f.head,0),h(f)},hooks:{all:{},add:function(k,g){var p=r.hooks.all;p[k]=p[k]||[],p[k].push(g)},run:function(k,g){var p=r.hooks.all[k];if(!(!p||!p.length))for(var m=0,f;f=p[m++];)f(g)}},Token:a};e.Prism=r;function a(k,g,p,m){this.type=k,this.content=g,this.alias=p,this.length=(m||"").length|0}a.stringify=function k(g,p){if(typeof g=="string")return g;if(Array.isArray(g)){var m="";return g.forEach(function(x){m+=k(x,p)}),m}var f={type:g.type,content:k(g.content,p),tag:"span",classes:["token",g.type],attributes:{},language:p},E=g.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(f.classes,E):f.classes.push(E)),r.hooks.run("wrap",f);var M="";for(var z in f.attributes)M+=" "+z+'="'+(f.attributes[z]||"").replace(/"/g,""")+'"';return"<"+f.tag+' class="'+f.classes.join(" ")+'"'+M+">"+f.content+""};function i(k,g,p,m){k.lastIndex=g;var f=k.exec(p);if(f&&m&&f[1]){var E=f[1].length;f.index+=E,f[0]=f[0].slice(E)}return f}function l(k,g,p,m,f,E){for(var M in p)if(!(!p.hasOwnProperty(M)||!p[M])){var z=p[M];z=Array.isArray(z)?z:[z];for(var x=0;x=E.reach);_+=H.value.length,H=H.next){var A=H.value;if(g.length>k.length)return;if(!(A instanceof a)){var F=1,V;if(B){if(V=i(T,_,k,C),!V||V.index>=k.length)break;var de=V.index,$=V.index+V[0].length,U=_;for(U+=H.value.length;de>=U;)H=H.next,U+=H.value.length;if(U-=H.value.length,_=U,H.value instanceof a)continue;for(var ee=H;ee!==g.tail&&(U<$||typeof ee.value=="string");ee=ee.next)F++,U+=ee.value.length;F--,A=k.slice(_,U),V.index-=_}else if(V=i(T,0,A,C),!V)continue;var de=V.index,Q=V[0],se=A.slice(0,de),ve=A.slice(de+Q.length),re=_+A.length;E&&re>E.reach&&(E.reach=re);var ae=H.prev;se&&(ae=s(g,ae,se),_+=se.length),d(g,ae,F);var me=new a(M,L?r.tokenize(Q,L):Q,N,Q);if(H=s(g,ae,me),ve&&s(g,H,ve),F>1){var te={cause:M+","+x,reach:re};l(k,g,p,H.prev,_,te),E&&te.reach>E.reach&&(E.reach=te.reach)}}}}}}function c(){var k={value:null,prev:null,next:null},g={value:null,prev:k,next:null};k.next=g,this.head=k,this.tail=g,this.length=0}function s(k,g,p){var m=g.next,f={value:p,prev:g,next:m};return g.next=f,m.prev=f,k.length++,f}function d(k,g,p){for(var m=g.next,f=0;f{"use strict";WC.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var fk=vt((cde,PC)=>{var z0=SC(),_C={};for(let e of Object.keys(z0))_C[z0[e]]=e;var Y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};PC.exports=Y;for(let e of Object.keys(Y)){if(!("channels"in Y[e]))throw new Error("missing channels property: "+e);if(!("labels"in Y[e]))throw new Error("missing channel labels property: "+e);if(Y[e].labels.length!==Y[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:o}=Y[e];delete Y[e].channels,delete Y[e].labels,Object.defineProperty(Y[e],"channels",{value:t}),Object.defineProperty(Y[e],"labels",{value:o})}Y.rgb.hsl=function(e){let t=e[0]/255,o=e[1]/255,n=e[2]/255,r=Math.min(t,o,n),a=Math.max(t,o,n),i=a-r,l,c;a===r?l=0:t===a?l=(o-n)/i:o===a?l=2+(n-t)/i:n===a&&(l=4+(t-o)/i),l=Math.min(l*60,360),l<0&&(l+=360);let s=(r+a)/2;return a===r?c=0:s<=.5?c=i/(a+r):c=i/(2-a-r),[l,c*100,s*100]};Y.rgb.hsv=function(e){let t,o,n,r,a,i=e[0]/255,l=e[1]/255,c=e[2]/255,s=Math.max(i,l,c),d=s-Math.min(i,l,c),h=function(v){return(s-v)/6/d+1/2};return d===0?(r=0,a=0):(a=d/s,t=h(i),o=h(l),n=h(c),i===s?r=n-o:l===s?r=1/3+t-n:c===s&&(r=2/3+o-t),r<0?r+=1:r>1&&(r-=1)),[r*360,a*100,s*100]};Y.rgb.hwb=function(e){let t=e[0],o=e[1],n=e[2],r=Y.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(o,n));return n=1-1/255*Math.max(t,Math.max(o,n)),[r,a*100,n*100]};Y.rgb.cmyk=function(e){let t=e[0]/255,o=e[1]/255,n=e[2]/255,r=Math.min(1-t,1-o,1-n),a=(1-t-r)/(1-r)||0,i=(1-o-r)/(1-r)||0,l=(1-n-r)/(1-r)||0;return[a*100,i*100,l*100,r*100]};function jU(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Y.rgb.keyword=function(e){let t=_C[e];if(t)return t;let o=1/0,n;for(let r of Object.keys(z0)){let a=z0[r],i=jU(e,a);i.04045?((t+.055)/1.055)**2.4:t/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let r=t*.4124+o*.3576+n*.1805,a=t*.2126+o*.7152+n*.0722,i=t*.0193+o*.1192+n*.9505;return[r*100,a*100,i*100]};Y.rgb.lab=function(e){let t=Y.rgb.xyz(e),o=t[0],n=t[1],r=t[2];o/=95.047,n/=100,r/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let a=116*n-16,i=500*(o-n),l=200*(n-r);return[a,i,l]};Y.hsl.rgb=function(e){let t=e[0]/360,o=e[1]/100,n=e[2]/100,r,a,i;if(o===0)return i=n*255,[i,i,i];n<.5?r=n*(1+o):r=n+o-n*o;let l=2*n-r,c=[0,0,0];for(let s=0;s<3;s++)a=t+1/3*-(s-1),a<0&&a++,a>1&&a--,6*a<1?i=l+(r-l)*6*a:2*a<1?i=r:3*a<2?i=l+(r-l)*(2/3-a)*6:i=l,c[s]=i*255;return c};Y.hsl.hsv=function(e){let t=e[0],o=e[1]/100,n=e[2]/100,r=o,a=Math.max(n,.01);n*=2,o*=n<=1?n:2-n,r*=a<=1?a:2-a;let i=(n+o)/2,l=n===0?2*r/(a+r):2*o/(n+o);return[t,l*100,i*100]};Y.hsv.rgb=function(e){let t=e[0]/60,o=e[1]/100,n=e[2]/100,r=Math.floor(t)%6,a=t-Math.floor(t),i=255*n*(1-o),l=255*n*(1-o*a),c=255*n*(1-o*(1-a));switch(n*=255,r){case 0:return[n,c,i];case 1:return[l,n,i];case 2:return[i,n,c];case 3:return[i,l,n];case 4:return[c,i,n];case 5:return[n,i,l]}};Y.hsv.hsl=function(e){let t=e[0],o=e[1]/100,n=e[2]/100,r=Math.max(n,.01),a,i;i=(2-o)*n;let l=(2-o)*r;return a=o*r,a/=l<=1?l:2-l,a=a||0,i/=2,[t,a*100,i*100]};Y.hwb.rgb=function(e){let t=e[0]/360,o=e[1]/100,n=e[2]/100,r=o+n,a;r>1&&(o/=r,n/=r);let i=Math.floor(6*t),l=1-n;a=6*t-i,(i&1)!==0&&(a=1-a);let c=o+a*(l-o),s,d,h;switch(i){default:case 6:case 0:s=l,d=c,h=o;break;case 1:s=c,d=l,h=o;break;case 2:s=o,d=l,h=c;break;case 3:s=o,d=c,h=l;break;case 4:s=c,d=o,h=l;break;case 5:s=l,d=o,h=c;break}return[s*255,d*255,h*255]};Y.cmyk.rgb=function(e){let t=e[0]/100,o=e[1]/100,n=e[2]/100,r=e[3]/100,a=1-Math.min(1,t*(1-r)+r),i=1-Math.min(1,o*(1-r)+r),l=1-Math.min(1,n*(1-r)+r);return[a*255,i*255,l*255]};Y.xyz.rgb=function(e){let t=e[0]/100,o=e[1]/100,n=e[2]/100,r,a,i;return r=t*3.2406+o*-1.5372+n*-.4986,a=t*-.9689+o*1.8758+n*.0415,i=t*.0557+o*-.204+n*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,r=Math.min(Math.max(0,r),1),a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),[r*255,a*255,i*255]};Y.xyz.lab=function(e){let t=e[0],o=e[1],n=e[2];t/=95.047,o/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let r=116*o-16,a=500*(t-o),i=200*(o-n);return[r,a,i]};Y.lab.xyz=function(e){let t=e[0],o=e[1],n=e[2],r,a,i;a=(t+16)/116,r=o/500+a,i=a-n/200;let l=a**3,c=r**3,s=i**3;return a=l>.008856?l:(a-16/116)/7.787,r=c>.008856?c:(r-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,r*=95.047,a*=100,i*=108.883,[r,a,i]};Y.lab.lch=function(e){let t=e[0],o=e[1],n=e[2],r;r=Math.atan2(n,o)*360/2/Math.PI,r<0&&(r+=360);let i=Math.sqrt(o*o+n*n);return[t,i,r]};Y.lch.lab=function(e){let t=e[0],o=e[1],r=e[2]/360*2*Math.PI,a=o*Math.cos(r),i=o*Math.sin(r);return[t,a,i]};Y.rgb.ansi16=function(e,t=null){let[o,n,r]=e,a=t===null?Y.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(o/255));return a===2&&(i+=60),i};Y.hsv.ansi16=function(e){return Y.rgb.ansi16(Y.hsv.rgb(e),e[2])};Y.rgb.ansi256=function(e){let t=e[0],o=e[1],n=e[2];return t===o&&o===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(n/255*5)};Y.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let o=(~~(e>50)+1)*.5,n=(t&1)*o*255,r=(t>>1&1)*o*255,a=(t>>2&1)*o*255;return[n,r,a]};Y.ansi256.rgb=function(e){if(e>=232){let a=(e-232)*10+8;return[a,a,a]}e-=16;let t,o=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,r=t%6/5*255;return[o,n,r]};Y.rgb.hex=function(e){let o=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(o.length)+o};Y.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let o=t[0];t[0].length===3&&(o=o.split("").map(l=>l+l).join(""));let n=parseInt(o,16),r=n>>16&255,a=n>>8&255,i=n&255;return[r,a,i]};Y.rgb.hcg=function(e){let t=e[0]/255,o=e[1]/255,n=e[2]/255,r=Math.max(Math.max(t,o),n),a=Math.min(Math.min(t,o),n),i=r-a,l,c;return i<1?l=a/(1-i):l=0,i<=0?c=0:r===t?c=(o-n)/i%6:r===o?c=2+(n-t)/i:c=4+(t-o)/i,c/=6,c%=1,[c*360,i*100,l*100]};Y.hsl.hcg=function(e){let t=e[1]/100,o=e[2]/100,n=o<.5?2*t*o:2*t*(1-o),r=0;return n<1&&(r=(o-.5*n)/(1-n)),[e[0],n*100,r*100]};Y.hsv.hcg=function(e){let t=e[1]/100,o=e[2]/100,n=t*o,r=0;return n<1&&(r=(o-n)/(1-n)),[e[0],n*100,r*100]};Y.hcg.rgb=function(e){let t=e[0]/360,o=e[1]/100,n=e[2]/100;if(o===0)return[n*255,n*255,n*255];let r=[0,0,0],a=t%1*6,i=a%1,l=1-i,c=0;switch(Math.floor(a)){case 0:r[0]=1,r[1]=i,r[2]=0;break;case 1:r[0]=l,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=i;break;case 3:r[0]=0,r[1]=l,r[2]=1;break;case 4:r[0]=i,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=l}return c=(1-o)*n,[(o*r[0]+c)*255,(o*r[1]+c)*255,(o*r[2]+c)*255]};Y.hcg.hsv=function(e){let t=e[1]/100,o=e[2]/100,n=t+o*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]};Y.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]};Y.hcg.hwb=function(e){let t=e[1]/100,o=e[2]/100,n=t+o*(1-t);return[e[0],(n-t)*100,(1-n)*100]};Y.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],r*100,a*100]};Y.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Y.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Y.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Y.gray.hsl=function(e){return[0,0,e[0]]};Y.gray.hsv=Y.gray.hsl;Y.gray.hwb=function(e){return[0,100,e[0]]};Y.gray.cmyk=function(e){return[0,0,0,e[0]]};Y.gray.lab=function(e){return[e[0],0,0]};Y.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};Y.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var RC=vt((sde,OC)=>{var tm=fk();function HU(){let e={},t=Object.keys(tm);for(let o=t.length,n=0;n{var kk=fk(),PU=RC(),Ql={},OU=Object.keys(kk);function RU(e){let t=function(...o){let n=o[0];return n==null?n:(n.length>1&&(o=n),e(o))};return"conversion"in e&&(t.conversion=e.conversion),t}function TU(e){let t=function(...o){let n=o[0];if(n==null)return n;n.length>1&&(o=n);let r=e(o);if(typeof r=="object")for(let a=r.length,i=0;i{Ql[e]={},Object.defineProperty(Ql[e],"channels",{value:kk[e].channels}),Object.defineProperty(Ql[e],"labels",{value:kk[e].labels});let t=PU(e);Object.keys(t).forEach(n=>{let r=t[n];Ql[e][n]=TU(r),Ql[e][n].raw=RU(r)})});TC.exports=Ql});var eI=vt((im,gk)=>{(function(e,t){typeof im=="object"&&typeof gk=="object"?gk.exports=t():typeof define=="function"&&define.amd?define("pangu",[],t):typeof im=="object"?im.pangu=t():e.pangu=t()})(window,function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(n,r,a){o.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:a})},o.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.t=function(n,r){if(1&r&&(n=o(n)),8&r||4&r&&typeof n=="object"&&n&&n.__esModule)return n;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&r&&typeof n!="string")for(var i in n)o.d(a,i,function(l){return n[l]}.bind(null,i));return a},o.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(r,"a",r),r},o.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},o.p="",o(o.s=0)}([function(e,t,o){var n,r,a;r=[],(a=typeof(n=function(){"use strict";function i(u){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(u)}function l(u,w){for(var k=0;k=0}},{key:"isInsideSpecificTag",value:function(m,f){var E=arguments.length>2&&arguments[2]!==void 0&&arguments[2],M=m;if(E&&this.isSpecificTag(M,f))return!0;for(;M.parentNode;)if(M=M.parentNode,this.isSpecificTag(M,f))return!0;return!1}},{key:"canIgnoreNode",value:function(m){var f=m;if(f&&(this.isSpecificTag(f,this.ignoredTags)||this.isContentEditable(f)))return!0;for(;f.parentNode;)if((f=f.parentNode)&&(this.isSpecificTag(f,this.ignoredTags)||this.isContentEditable(f)))return!0;return!1}},{key:"isFirstTextChild",value:function(m,f){for(var E=m.childNodes,M=0;M-1;M--){var z=E[M];if(z.nodeType!==Node.COMMENT_NODE&&z.textContent)return z===f}return!1}},{key:"spacingNodeByXPath",value:function(m,f){if(f instanceof Node&&!(f instanceof DocumentFragment))for(var E,M,z=document.evaluate(m,f,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),x=z.snapshotLength-1;x>-1;--x){if(E=z.snapshotItem(x),this.isSpecificTag(E.parentNode,this.presentationalTags)&&!this.isInsideSpecificTag(E.parentNode,this.ignoredTags)){var b=E.parentNode;if(b.previousSibling){var L=b.previousSibling;if(L.nodeType===Node.TEXT_NODE){var C=L.data.substr(-1)+E.data.toString().charAt(0),B=this.spacing(C);C!==B&&(L.data="".concat(L.data," "))}}if(b.nextSibling){var N=b.nextSibling;if(N.nodeType===Node.TEXT_NODE){var j=E.data.substr(-1)+N.data.toString().charAt(0),T=this.spacing(j);j!==T&&(N.data=" ".concat(N.data))}}}if(this.canIgnoreNode(E))M=E;else{var H=this.spacing(E.data);if(E.data!==H&&(E.data=H),M){if(E.nextSibling&&E.nextSibling.nodeName.search(this.spaceLikeTags)>=0){M=E;continue}var _=E.data.toString().substr(-1)+M.data.toString().substr(0,1),A=this.spacing(_);if(A!==_){for(var F=M;F.parentNode&&F.nodeName.search(this.spaceSensitiveTags)===-1&&this.isFirstTextChild(F.parentNode,F);)F=F.parentNode;for(var V=E;V.parentNode&&V.nodeName.search(this.spaceSensitiveTags)===-1&&this.isLastTextChild(V.parentNode,V);)V=V.parentNode;if(V.nextSibling&&V.nextSibling.nodeName.search(this.spaceLikeTags)>=0){M=E;continue}if(V.nodeName.search(this.blockTags)===-1)if(F.nodeName.search(this.spaceSensitiveTags)===-1)F.nodeName.search(this.ignoredTags)===-1&&F.nodeName.search(this.blockTags)===-1&&(M.previousSibling?M.previousSibling.nodeName.search(this.spaceLikeTags)===-1&&(M.data=" ".concat(M.data)):this.canIgnoreNode(M)||(M.data=" ".concat(M.data)));else if(V.nodeName.search(this.spaceSensitiveTags)===-1)E.data="".concat(E.data," ");else{var $=document.createElement("pangu");$.innerHTML=" ",F.previousSibling?F.previousSibling.nodeName.search(this.spaceLikeTags)===-1&&F.parentNode.insertBefore($,F):F.parentNode.insertBefore($,F),$.previousElementSibling||$.parentNode&&$.parentNode.removeChild($)}}}M=E}}}},{key:"spacingNode",value:function(m){var f=".//*/text()[normalize-space(.)]";m.children&&m.children.length===0&&(f=".//text()[normalize-space(.)]"),this.spacingNodeByXPath(f,m)}},{key:"spacingElementById",value:function(m){var f='id("'.concat(m,'")//text()');this.spacingNodeByXPath(f,document)}},{key:"spacingElementByClassName",value:function(m){var f='//*[contains(concat(" ", normalize-space(@class), " "), "'.concat(m,'")]//text()');this.spacingNodeByXPath(f,document)}},{key:"spacingElementByTagName",value:function(m){var f="//".concat(m,"//text()");this.spacingNodeByXPath(f,document)}},{key:"spacingPageTitle",value:function(){this.spacingNodeByXPath("/html/head/title/text()",document)}},{key:"spacingPageBody",value:function(){var m="/html/body//*/text()[normalize-space(.)]";["script","style","textarea"].forEach(function(f){m="".concat(m,'[translate(name(..),"ABCDEFGHIJKLMNOPQRSTUVWXYZ","abcdefghijklmnopqrstuvwxyz")!="').concat(f,'"]')}),this.spacingNodeByXPath(m,document)}},{key:"spacingPage",value:function(){this.spacingPageTitle(),this.spacingPageBody()}},{key:"autoSpacingPage",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1e3,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2e3;if(document.body instanceof Node&&!this.isAutoSpacingPageExecuted){this.isAutoSpacingPageExecuted=!0;var M=this,z=function(j){var T=this,H=arguments,_=!1;return function(){if(!_){var A=T;_=!0,j.apply(A,H)}}}(function(){M.spacingPage()}),x=document.getElementsByTagName("video");if(x.length===0)setTimeout(function(){z()},m);else for(var b=0;b=H?(j.apply($,U),V=ee):F=setTimeout(function(){j.apply($,U)},T)}}(function(){for(;C.length;){var j=C.shift();j&&M.spacingNode(j)}},f,{maxWait:E}),N=new MutationObserver(function(j,T){j.forEach(function(H){switch(H.type){case"childList":H.addedNodes.forEach(function(A){A.nodeType===Node.ELEMENT_NODE?C.push(A):A.nodeType===Node.TEXT_NODE&&C.push(A.parentNode)});break;case"characterData":var _=H.target;_.nodeType===Node.TEXT_NODE&&C.push(_.parentNode)}}),B()});N.observe(document.body,{characterData:!0,childList:!0,subtree:!0})}}}])&&l(k.prototype,g),p&&l(k,p),w;var k,g,p}(o(1).Pangu),v=new h;e.exports=v,e.exports.default=v,e.exports.Pangu=h})=="function"?n.apply(t,r):n)===void 0||(e.exports=a)},function(e,t,o){var n,r,a;r=[],(a=typeof(n=function(){"use strict";function i(Q){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se})(Q)}function l(Q,se){for(var ve=0;ve])([A-Za-z0-9])"),"g"),b=new RegExp("([A-Za-z0-9])([\\+\\-\\*\\/=&\\|<>])([".concat(c,"])"),"g"),L=/([\/]) ([a-z\-_\.\/]+)/g,C=/([\/\.])([A-Za-z\-_\.\/]+) ([\/])/g,B=new RegExp("([".concat(c,"])([\\(\\[\\{<>“])"),"g"),N=new RegExp("([\\)\\]\\}<>”])([".concat(c,"])"),"g"),j=/([\(\[\{<\u201c]+)[ ]*(.+?)[ ]*([\)\]\}>\u201d]+)/,T=new RegExp("([A-Za-z0-9".concat(c,"])[ ]*([“])([A-Za-z0-9").concat(c,"\\-_ ]+)([”])"),"g"),H=new RegExp("([“])([A-Za-z0-9".concat(c,"\\-_ ]+)([”])[ ]*([A-Za-z0-9").concat(c,"])"),"g"),_=/([A-Za-z0-9])([\(\[\{])/g,A=/([\)\]\}])([A-Za-z0-9])/g,F=new RegExp("([".concat(c,"])([A-Za-zͰ-Ͽ0-9@\\$%\\^&\\*\\-\\+\\\\=\\|/¡-ÿ⅐-↏✀—➿])"),"g"),V=new RegExp("([A-Za-zͰ-Ͽ0-9~\\$%\\^&\\*\\-\\+\\\\=\\|/!;:,\\.\\?¡-ÿ⅐-↏✀—➿])([".concat(c,"])"),"g"),$=/(%)([A-Za-z])/g,U=/([ ]*)([\u00b7\u2022\u2027])([ ]*)/g,ee=function(){function Q(){(function(ae,me){if(!(ae instanceof me))throw new TypeError("Cannot call a class as a function")})(this,Q),this.version="4.0.7"}return se=Q,(ve=[{key:"convertToFullwidth",value:function(ae){return ae.replace(/~/g,"~").replace(/!/g,"!").replace(/;/g,";").replace(/:/g,":").replace(/,/g,",").replace(/\./g,"。").replace(/\?/g,"?")}},{key:"spacing",value:function(ae){if(typeof ae!="string")return console.warn("spacing(text) only accepts string but got ".concat(i(ae))),ae;if(ae.length<=1||!s.test(ae))return ae;var me=this,te=ae;return te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=(te=te.replace(d,function(le,ue,Oe,Be){var oo=me.convertToFullwidth(Oe);return"".concat(ue).concat(oo).concat(Be)})).replace(h,function(le,ue,Oe){var Be=me.convertToFullwidth(Oe);return"".concat(ue).concat(Be)})).replace(v,"$1 $2")).replace(u,"$1:$2")).replace(w,"$1 $2")).replace(k,"$1 $2")).replace(g,"$1$2$3")).replace(p,"$1 $2")).replace(m,"$1 $2")).replace(f,"$1's")).replace(E,"$1 $2$3$4 $5")).replace(M,"$1 $2")).replace(z,"$1 $3")).replace(x,"$1 $2 $3")).replace(b,"$1 $2 $3")).replace(L,"$1$2")).replace(C,"$1$2$3")).replace(B,"$1 $2")).replace(N,"$1 $2")).replace(j,"$1$2$3")).replace(T,"$1 $2$3$4")).replace(H,"$1$2$3 $4")).replace(_,"$1 $2")).replace(A,"$1 $2")).replace(F,"$1 $2")).replace(V,"$1 $2")).replace($,"$1 $2")).replace(U,"・")}},{key:"spacingText",value:function(ae){var me,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};try{me=this.spacing(ae)}catch(le){return void te(le)}te(null,me)}},{key:"spacingTextSync",value:function(ae){return this.spacing(ae)}}])&&l(se.prototype,ve),re&&l(se,re),Q;var se,ve,re}(),de=new ee;e.exports=de,e.exports.default=de,e.exports.Pangu=ee})=="function"?n.apply(t,r):n)===void 0||(e.exports=a)}])})});var BC=y(Wu());function e1(e,t){let o=e;for(;(o=o.parentElement)&&!o.matches(t););return o}function _B(e,t,o){for(let n=e-1;n>=0;n-=1)if(!t[n].disabled)return n;if(o){for(let n=t.length-1;n>-1;n-=1)if(!t[n].disabled)return n}return e}function PB(e,t,o){for(let n=e+1;n{var c;o==null||o(l);let s=Array.from(((c=e1(l.currentTarget,e))==null?void 0:c.querySelectorAll(t))||[]).filter(k=>OB(l.currentTarget,k,e)),d=s.findIndex(k=>l.currentTarget===k),h=PB(d,s,n),v=_B(d,s,n),u=a==="rtl"?v:h,w=a==="rtl"?h:v;switch(l.key){case"ArrowRight":{i==="horizontal"&&(l.stopPropagation(),l.preventDefault(),s[u].focus(),r&&s[u].click());break}case"ArrowLeft":{i==="horizontal"&&(l.stopPropagation(),l.preventDefault(),s[w].focus(),r&&s[w].click());break}case"ArrowUp":{i==="vertical"&&(l.stopPropagation(),l.preventDefault(),s[v].focus(),r&&s[v].click());break}case"ArrowDown":{i==="vertical"&&(l.stopPropagation(),l.preventDefault(),s[h].focus(),r&&s[h].click());break}case"Home":{l.stopPropagation(),l.preventDefault(),!s[0].disabled&&s[0].focus();break}case"End":{l.stopPropagation(),l.preventDefault();let k=s.length-1;!s[k].disabled&&s[k].focus();break}}}}var Xi=y(I());function ns(e){let t=(0,Xi.createContext)(null);return[({children:r,value:a})=>Xi.default.createElement(t.Provider,{value:a},r),()=>{let r=(0,Xi.useContext)(t);if(r===null)throw new Error(e);return r}]}function Eo(e){return Array.isArray(e)?e:[e]}function t1(e,t){return o=>{if(typeof o!="string"||o.trim().length===0)throw new Error(t);return`${e}-${o}`}}var rs=()=>{};function _u(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||rs:o=>{var n;o.key==="Escape"&&(e(o),(n=t.onTrigger)==null||n.call(t))}}function Pu({data:e}){let t=[],o=[],n=e.reduce((r,a,i)=>(a.group?r[a.group]?r[a.group].push(i):r[a.group]=[i]:o.push(i),r),{});return Object.keys(n).forEach(r=>{t.push(...n[r].map(a=>e[a]))}),t.push(...o.map(r=>e[r])),t}var vE=y(I());function as(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==vE.default.Fragment:!1}function mE(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t({fontFamily:e.fontFamily||"sans-serif"})}var RB=Object.defineProperty,pE=Object.getOwnPropertySymbols,TB=Object.prototype.hasOwnProperty,AB=Object.prototype.propertyIsEnumerable,fE=(e,t,o)=>t in e?RB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,kE=(e,t)=>{for(var o in t||(t={}))TB.call(t,o)&&fE(e,o,t[o]);if(pE)for(var o of pE(t))AB.call(t,o)&&fE(e,o,t[o]);return e};function wE(e){return t=>({WebkitTapHighlightColor:"transparent",[t||"&:focus"]:kE({},e.focusRing==="always"||e.focusRing==="auto"?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[t?t.replace(":focus",":focus:not(:focus-visible)"):"&:focus:not(:focus-visible)"]:kE({},e.focusRing==="auto"||e.focusRing==="never"?e.focusRingStyles.resetStyles(e):null)})}function Rn(e){return t=>typeof e.primaryShade=="number"?e.primaryShade:e.primaryShade[t||e.colorScheme]}function Qi(e){let t=Rn(e);return(o,n,r=!0,a=!0)=>{if(typeof o=="string"&&o.includes(".")){let[l,c]=o.split("."),s=parseInt(c,10);if(l in e.colors&&s>=0&&s<10)return e.colors[l][typeof n=="number"&&!a?n:s]}let i=typeof n=="number"?n:t();return o in e.colors?e.colors[o][i]:r?e.colors[e.primaryColor][i]:o}}function Ru(e){let t="";for(let o=1;o{let r={from:(n==null?void 0:n.from)||e.defaultGradient.from,to:(n==null?void 0:n.to)||e.defaultGradient.to,deg:(n==null?void 0:n.deg)||e.defaultGradient.deg};return`linear-gradient(${r.deg}deg, ${t(r.from,o(),!1)} 0%, ${t(r.to,o(),!1)} 100%)`}}function ls(e){if(typeof e.size=="number")return e.size;let t=e.sizes[e.size];return t!==void 0?t:e.size||e.sizes.md}function xE(e){return t=>`@media (min-width: ${ls({size:t,sizes:e.breakpoints})}px)`}function ME(e){return t=>`@media (max-width: ${ls({size:t,sizes:e.breakpoints})-1}px)`}function DB(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)}function FB(e){let t=e.replace("#","");if(t.length===3){let i=t.split("");t=[i[0],i[0],i[1],i[1],i[2],i[2]].join("")}let o=parseInt(t,16),n=o>>16&255,r=o>>8&255,a=o&255;return{r:n,g:r,b:a,a:1}}function $B(e){let[t,o,n,r]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:o,b:n,a:r||1}}function Zi(e){return DB(e)?FB(e):e.startsWith("rgb")?$B(e):{r:0,g:0,b:0,a:1}}function Gr(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";let{r:o,g:n,b:r}=Zi(e);return`rgba(${o}, ${n}, ${r}, ${t})`}function zE(e=0){return{position:"absolute",top:e,right:e,left:e,bottom:e}}function bE(e,t){let{r:o,g:n,b:r,a}=Zi(e),i=1-t,l=c=>Math.round(c*i);return`rgba(${l(o)}, ${l(n)}, ${l(r)}, ${a})`}function yE(e,t){let{r:o,g:n,b:r,a}=Zi(e),i=l=>Math.round(l+(255-l)*t);return`rgba(${i(o)}, ${i(n)}, ${i(r)}, ${a})`}function LE(e){return t=>{if(typeof t=="number")return t;let o=typeof e.defaultRadius=="number"?e.defaultRadius:e.radius[e.defaultRadius]||e.defaultRadius;return e.radius[t]||t||o}}function VB(e,t){if(typeof e=="string"&&e.includes(".")){let[o,n]=e.split("."),r=parseInt(n,10);if(o in t.colors&&r>=0&&r<10)return{isSplittedColor:!0,key:o,shade:r}}return{isSplittedColor:!1}}function CE(e){let t=Qi(e),o=Rn(e),n=o1(e);return({variant:r,color:a,gradient:i,primaryFallback:l})=>{let c=VB(a,e);switch(r){case"light":return{border:"transparent",background:Gr(t(a,e.colorScheme==="dark"?8:0,l,!1),e.colorScheme==="dark"?.2:1),color:a==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(a,e.colorScheme==="dark"?2:o("light")),hover:Gr(t(a,e.colorScheme==="dark"?7:1,l,!1),e.colorScheme==="dark"?.25:.65)};case"subtle":return{border:"transparent",background:"transparent",color:a==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(a,e.colorScheme==="dark"?2:o("light")),hover:Gr(t(a,e.colorScheme==="dark"?8:0,l,!1),e.colorScheme==="dark"?.2:1)};case"outline":return{border:t(a,e.colorScheme==="dark"?5:o("light")),background:"transparent",color:t(a,e.colorScheme==="dark"?5:o("light")),hover:e.colorScheme==="dark"?Gr(t(a,5,l,!1),.05):Gr(t(a,0,l,!1),.35)};case"default":return{border:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4],background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,color:e.colorScheme==="dark"?e.white:e.black,hover:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]};case"white":return{border:"transparent",background:e.white,color:t(a,o()),hover:null};case"transparent":return{border:"transparent",color:a==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(a,e.colorScheme==="dark"?2:o("light")),background:"transparent",hover:null};case"gradient":return{background:n(i),color:e.white,border:"transparent",hover:null};default:{let s=o(),d=c.isSplittedColor?c.shade:s,h=c.isSplittedColor?c.key:a;return{border:"transparent",background:t(h,d,l),color:e.white,hover:t(h,d===9?8:d+1)}}}}}function IE(e){return t=>{let o=Rn(e)(t);return e.colors[e.primaryColor][o]}}function NE(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}}function BE(e){return()=>({userSelect:"none",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]})}var at={fontStyles:uE,themeColor:Qi,focusStyles:wE,linearGradient:gE,radialGradient:EE,smallerThan:ME,largerThan:xE,rgba:Gr,size:ls,cover:zE,darken:bE,lighten:yE,radius:LE,variant:CE,primaryShade:Rn,hover:NE,gradient:o1,primaryColor:IE,placeholderStyles:BE};var UB=Object.defineProperty,qB=Object.defineProperties,GB=Object.getOwnPropertyDescriptors,jE=Object.getOwnPropertySymbols,KB=Object.prototype.hasOwnProperty,YB=Object.prototype.propertyIsEnumerable,HE=(e,t,o)=>t in e?UB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,XB=(e,t)=>{for(var o in t||(t={}))KB.call(t,o)&&HE(e,o,t[o]);if(jE)for(var o of jE(t))YB.call(t,o)&&HE(e,o,t[o]);return e},QB=(e,t)=>qB(e,GB(t));function n1(e){return QB(XB({},e),{fn:{fontStyles:at.fontStyles(e),themeColor:at.themeColor(e),focusStyles:at.focusStyles(e),largerThan:at.largerThan(e),smallerThan:at.smallerThan(e),radialGradient:at.radialGradient,linearGradient:at.linearGradient,gradient:at.gradient(e),rgba:at.rgba,size:at.size,cover:at.cover,lighten:at.lighten,darken:at.darken,primaryShade:at.primaryShade(e),radius:at.radius(e),variant:at.variant(e),hover:at.hover,primaryColor:at.primaryColor(e),placeholderStyles:at.placeholderStyles(e)}})}var BG=Object.keys(Ou);var ZB={dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",dateFormat:"MMMM D, YYYY",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:Ou,lineHeight:1.55,fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",primaryColor:"blue",respectReducedMotion:!0,cursorType:"default",defaultGradient:{from:"indigo",to:"cyan",deg:45},shadows:{xs:"0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)",sm:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 10px 15px -5px, rgba(0, 0, 0, 0.04) 0px 7px 7px -5px",md:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px",lg:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 28px 23px -7px, rgba(0, 0, 0, 0.04) 0px 12px 12px -7px",xl:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 36px 28px -7px, rgba(0, 0, 0, 0.04) 0px 17px 17px -7px"},fontSizes:{xs:12,sm:14,md:16,lg:18,xl:20},radius:{xs:2,sm:4,md:8,lg:16,xl:32},spacing:{xs:10,sm:12,md:16,lg:20,xl:24},breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1400},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:34,lineHeight:1.3,fontWeight:void 0},h2:{fontSize:26,lineHeight:1.35,fontWeight:void 0},h3:{fontSize:22,lineHeight:1.4,fontWeight:void 0},h4:{fontSize:18,lineHeight:1.45,fontWeight:void 0},h5:{fontSize:16,lineHeight:1.5,fontWeight:void 0},h6:{fontSize:14,lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(1px)"},datesLocale:"en",globalStyles:void 0,focusRingStyles:{styles:e=>({outlineOffset:2,outline:`2px solid ${e.colors[e.primaryColor][e.colorScheme==="dark"?7:5]}`}),resetStyles:()=>({outline:"none"}),inputStyles:e=>({outline:"none",borderColor:e.colors[e.primaryColor][typeof e.primaryShade=="object"?e.primaryShade[e.colorScheme]:e.primaryShade]})}},r1=n1(ZB);var Oo=y(I());var dl=y(I());function JB(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ze(al,--so):0,nl--,it===10&&(nl=1,c1--),it}function ho(){return it=so2||rl(it)>3?"":" "}function FE(e,t){for(;--t&&ho()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return ll(e,hs()+(t<6&&en()==32&&ho()==32))}function Du(e){for(;ho();)switch(it){case e:return so;case 34:case 39:e!==34&&e!==39&&Du(it);break;case 40:e===41&&Du(e);break;case 92:ho();break}return so}function $E(e,t){for(;ho()&&e+it!==47+10;)if(e+it===42+42&&en()===47)break;return"/*"+ll(t,so-1)+"*"+Ga(e===47?e:ho())}function VE(e){for(;!rl(en());)ho();return ll(e,so)}function GE(e){return d1(h1("",null,null,null,[""],e=s1(e),0,[0],e))}function h1(e,t,o,n,r,a,i,l,c){for(var s=0,d=0,h=i,v=0,u=0,w=0,k=1,g=1,p=1,m=0,f="",E=r,M=a,z=n,x=f;g;)switch(w=m,m=ho()){case 40:if(w!=108&&Ze(x,h-1)==58){ss(x+=Ee(cl(m),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:x+=cl(m);break;case 9:case 10:case 13:case 32:x+=DE(w);break;case 92:x+=FE(hs()-1,7);continue;case 47:switch(en()){case 42:case 47:ol(tj($E(ho(),hs()),t,o),c);break;default:x+="/"}break;case 123*k:l[s++]=co(x)*p;case 125*k:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+d:u>0&&co(x)-h&&ol(u>32?qE(x+";",n,o,h-1):qE(Ee(x," ","")+";",n,o,h-2),c);break;case 59:x+=";";default:if(ol(z=UE(x,t,o,s,d,r,l,f,E=[],M=[],h),a),m===123)if(d===0)h1(x,t,z,z,E,a,h,l,M);else switch(v===99&&Ze(x,3)===110?100:v){case 100:case 109:case 115:h1(e,z,z,n&&ol(UE(e,z,z,0,0,r,l,f,r,E=[],h),M),r,M,h,l,n?E:M);break;default:h1(x,z,z,z,[""],M,0,l,M)}}s=d=u=0,k=p=1,f=x="",h=i;break;case 58:h=1+co(x),u=w;default:if(k<1){if(m==123)--k;else if(m==125&&k++==0&&AE()==125)continue}switch(x+=Ga(m),m*k){case 38:p=d>0?1:(x+="\f",-1);break;case 44:l[s++]=(co(x)-1)*p,p=1;break;case 64:en()===45&&(x+=cl(ho())),v=en(),d=h=co(f=x+=VE(hs())),m++;break;case 45:w===45&&co(x)==2&&(k=0)}}return a}function UE(e,t,o,n,r,a,i,l,c,s,d){for(var h=r-1,v=r===0?a:[""],u=tl(v),w=0,k=0,g=0;w0?v[p]+" "+m:Ee(m,/&\f/g,v[p])))&&(c[g++]=f);return ds(e,t,o,r===0?Ji:l,c,s,d)}function tj(e,t,o){return ds(e,t,o,a1,Ga(TE()),Kr(e,2,-2),0)}function qE(e,t,o,n){return ds(e,t,o,el,Kr(e,0,n),Kr(e,n+1,-1),n)}function Ka(e,t){for(var o="",n=tl(e),r=0;r6)switch(Ze(e,t+1)){case 109:if(Ze(e,t+4)!==45)break;case 102:return Ee(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+cs+(Ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ss(e,"stretch")?JE(Ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ze(e,t+1)!==115)break;case 6444:switch(Ze(e,co(e)-3-(~ss(e,"!important")&&10))){case 107:return Ee(e,":",":"+Me)+e;case 101:return Ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Me+(Ze(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+Pt+"$2box$3")+e}break;case 5936:switch(Ze(e,t+11)){case 114:return Me+e+Pt+Ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+Pt+Ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+Pt+Ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Me+e+Pt+e+e}return e}var sj=function(t,o,n,r){if(t.length>-1&&!t.return)switch(t.type){case el:t.return=JE(t.value,t.length);break;case i1:return Ka([il(t,{value:Ee(t.value,"@","@"+Me)})],r);case Ji:if(t.length)return Au(t.props,function(a){switch(Tu(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ka([il(t,{props:[Ee(a,/:(read-\w+)/,":"+cs+"$1")]})],r);case"::placeholder":return Ka([il(t,{props:[Ee(a,/:(plac\w+)/,":"+Me+"input-$1")]}),il(t,{props:[Ee(a,/:(plac\w+)/,":"+cs+"$1")]}),il(t,{props:[Ee(a,/:(plac\w+)/,Pt+"input-$1")]})],r)}return""})}},dj=[sj],hj=function(t){var o=t.key;if(o==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(k){var g=k.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(k),k.setAttribute("data-s",""))})}var r=t.stylisPlugins||dj,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(k){for(var g=k.getAttribute("data-emotion").split(" "),p=1;p=4;++n,r-=4)o=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var h5=yj;var Lj={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},v5=Lj;var Cj=/[A-Z]|^ms/g,Ij=/_EMO_([^_]+?)_([^]*?)_EMO_/g,f5=function(t){return t.charCodeAt(1)===45},m5=function(t){return t!=null&&typeof t!="boolean"},Yu=QE(function(e){return f5(e)?e:e.replace(Cj,"-$&").toLowerCase()}),u5=function(t,o){switch(t){case"animation":case"animationName":if(typeof o=="string")return o.replace(Ij,function(n,r,a){return Tn={name:r,styles:a,next:Tn},r})}return v5[t]!==1&&!f5(t)&&typeof o=="number"&&o!==0?o+"px":o};function us(e,t,o){if(o==null)return"";if(o.__emotion_styles!==void 0)return o;switch(typeof o){case"boolean":return"";case"object":{if(o.anim===1)return Tn={name:o.name,styles:o.styles,next:Tn},o.name;if(o.styles!==void 0){var n=o.next;if(n!==void 0)for(;n!==void 0;)Tn={name:n.name,styles:n.styles,next:Tn},n=n.next;var r=o.styles+";";return r}return Nj(e,t,o)}case"function":{if(e!==void 0){var a=Tn,i=o(e);return Tn=a,us(e,t,i)}break}case"string":if(!1)var l,c;break}if(t==null)return o;var s=t[o];return s!==void 0?s:o}function Nj(e,t,o){var n="";if(Array.isArray(o))for(var r=0;rt in e?Oj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Fj=(e,t)=>{for(var o in t||(t={}))Aj.call(t,o)&&E5(e,o,t[o]);if(g5)for(var o of g5(t))Dj.call(t,o)&&E5(e,o,t[o]);return e},$j=(e,t)=>Rj(e,Tj(t));function M5({theme:e}){return x5.default.createElement(Yr,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},html:{colorScheme:e.colorScheme==="dark"?"dark":"light"},body:$j(Fj({},e.fn.fontStyles()),{backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,fontSize:e.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}var z5=y(I());function z1(e,t,o){Object.keys(t).forEach(n=>{e[`--mantine-${o}-${n}`]=typeof t[n]=="number"?`${t[n]}px`:t[n]})}function b5({theme:e}){let t={"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-transition-timing-function":e.transitionTimingFunction,"--mantine-line-height":`${e.lineHeight}`,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":`${e.headings.fontWeight}`};z1(t,e.shadows,"shadow"),z1(t,e.fontSizes,"font-size"),z1(t,e.radius,"radius"),z1(t,e.spacing,"spacing"),Object.keys(e.colors).forEach(n=>{e.colors[n].forEach((r,a)=>{t[`--mantine-color-${n}-${a}`]=r})});let o=e.headings.sizes;return Object.keys(o).forEach(n=>{t[`--mantine-${n}-font-size`]=`${o[n].fontSize}px`,t[`--mantine-${n}-line-height`]=`${o[n].lineHeight}`}),z5.default.createElement(Yr,{styles:{":root":t}})}var Vj=Object.defineProperty,Uj=Object.defineProperties,qj=Object.getOwnPropertyDescriptors,y5=Object.getOwnPropertySymbols,Gj=Object.prototype.hasOwnProperty,Kj=Object.prototype.propertyIsEnumerable,L5=(e,t,o)=>t in e?Vj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ya=(e,t)=>{for(var o in t||(t={}))Gj.call(t,o)&&L5(e,o,t[o]);if(y5)for(var o of y5(t))Kj.call(t,o)&&L5(e,o,t[o]);return e},C5=(e,t)=>Uj(e,qj(t));function Yj(e,t){if(!t)return e;let o=Object.keys(e).reduce((n,r)=>{if(r==="headings"&&t.headings){let a=t.headings.sizes?Object.keys(e.headings.sizes).reduce((i,l)=>(i[l]=Ya(Ya({},e.headings.sizes[l]),t.headings.sizes[l]),i),{}):e.headings.sizes;return C5(Ya({},n),{headings:C5(Ya(Ya({},e.headings),t.headings),{sizes:a})})}return n[r]=typeof t[r]=="object"?Ya(Ya({},e[r]),t[r]):typeof t[r]=="number"||typeof t[r]=="boolean"||typeof t[r]=="function"?t[r]:t[r]||e[r],n},{});if(!(o.primaryColor in o.colors))throw new Error("MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");return o}function I5(e,t){return n1(Yj(e,t))}function fs(e){return Object.keys(e).reduce((t,o)=>(e[o]!==void 0&&(t[o]=e[o]),t),{})}var N5=y(I());var Xj={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:"1px dotted ButtonText"},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"},"[hidden]":{display:"none"}};function B5(){return N5.default.createElement(Yr,{styles:Xj})}var Qj=Object.defineProperty,j5=Object.getOwnPropertySymbols,Zj=Object.prototype.hasOwnProperty,Jj=Object.prototype.propertyIsEnumerable,H5=(e,t,o)=>t in e?Qj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,ks=(e,t)=>{for(var o in t||(t={}))Zj.call(t,o)&&H5(e,o,t[o]);if(j5)for(var o of j5(t))Jj.call(t,o)&&H5(e,o,t[o]);return e},b1=(0,Oo.createContext)({theme:r1});function Ie(){var e;return((e=(0,Oo.useContext)(b1))==null?void 0:e.theme)||r1}function W5(e){let t=Ie(),o=n=>{var r,a;return{styles:((r=t.components[n])==null?void 0:r.styles)||{},classNames:((a=t.components[n])==null?void 0:a.classNames)||{}}};return Array.isArray(e)?e.map(o):[o(e)]}function y1(){var e;return(e=(0,Oo.useContext)(b1))==null?void 0:e.emotionCache}function S(e,t,o){var n;let r=Ie(),a=(n=r.components[e])==null?void 0:n.defaultProps,i=typeof a=="function"?a(r):a;return ks(ks(ks({},t),i),fs(o))}function L1({theme:e,emotionCache:t,withNormalizeCSS:o=!1,withGlobalStyles:n=!1,withCSSVariables:r=!1,inherit:a=!1,children:i}){let l=(0,Oo.useContext)(b1),c=I5(r1,a?ks(ks({},l.theme),e):e);return Oo.default.createElement(Ju,{theme:c},Oo.default.createElement(b1.Provider,{value:{theme:c,emotionCache:t}},o&&Oo.default.createElement(B5,null),n&&Oo.default.createElement(M5,{theme:c}),r&&Oo.default.createElement(b5,{theme:c}),typeof c.globalStyles=="function"&&Oo.default.createElement(Yr,{styles:c.globalStyles(c)}),i))}L1.displayName="@mantine/core/MantineProvider";var eH={app:100,modal:200,popover:300,overlay:400,max:9999};function vo(e){return eH[e]}var S5=y(I());function _5(e,t){let o=(0,S5.useRef)();return(!o.current||t.length!==o.current.prevDeps.length||o.current.prevDeps.map((n,r)=>n===t[r]).indexOf(!1)>=0)&&(o.current={v:e(),prevDeps:[...t]}),o.current.v}var P5=vs({key:"mantine",prepend:!0});function O5(){return y1()||P5}var tH=Object.defineProperty,R5=Object.getOwnPropertySymbols,oH=Object.prototype.hasOwnProperty,nH=Object.prototype.propertyIsEnumerable,T5=(e,t,o)=>t in e?tH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,rH=(e,t)=>{for(var o in t||(t={}))oH.call(t,o)&&T5(e,o,t[o]);if(R5)for(var o of R5(t))nH.call(t,o)&&T5(e,o,t[o]);return e},ep="ref";function aH(e){let t;if(e.length!==1)return{args:e,ref:t};let[o]=e;if(!(o instanceof Object))return{args:e,ref:t};if(!(ep in o))return{args:e,ref:t};t=o[ep];let n=rH({},o);return delete n[ep],{args:[n],ref:t}}var{cssFactory:iH}=(()=>{function e(o,n,r){let a=[],i=M1(o,a,r);return a.length<2?r:i+n(a)}function t(o){let{cache:n}=o,r=(...i)=>{let{ref:l,args:c}=aH(i),s=sl(c,n.registered);return ms(n,s,!1),`${n.key}-${s.name}${l===void 0?"":` ${l}`}`};return{css:r,cx:(...i)=>e(n.registered,r,is(i))}}return{cssFactory:t}})();function ws(){let e=O5();return _5(()=>iH({cache:e}),[e])}function A5({cx:e,classes:t,context:o,classNames:n,name:r,cache:a}){let i=o.reduce((l,c)=>(Object.keys(c.classNames).forEach(s=>{typeof l[s]!="string"?l[s]=`${c.classNames[s]}`:l[s]=`${l[s]} ${c.classNames[s]}`}),l),{});return Object.keys(t).reduce((l,c)=>(l[c]=e(t[c],i[c],n!=null&&n[c],Array.isArray(r)?r.filter(Boolean).map(s=>`${(a==null?void 0:a.key)||"mantine"}-${s}-${c}`).join(" "):r?`${(a==null?void 0:a.key)||"mantine"}-${r}-${c}`:null),l),{})}var lH=Object.defineProperty,D5=Object.getOwnPropertySymbols,cH=Object.prototype.hasOwnProperty,sH=Object.prototype.propertyIsEnumerable,F5=(e,t,o)=>t in e?lH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,tp=(e,t)=>{for(var o in t||(t={}))cH.call(t,o)&&F5(e,o,t[o]);if(D5)for(var o of D5(t))sH.call(t,o)&&F5(e,o,t[o]);return e};function dH(e){return`__mantine-ref-${e||""}`}function $5(e,t,o){let n=r=>typeof r=="function"?r(t,o||{}):r||{};return Array.isArray(e)?e.map(r=>n(r.styles)).reduce((r,a)=>(Object.keys(a).forEach(i=>{r[i]?r[i]=tp(tp({},r[i]),a[i]):r[i]=tp({},a[i])}),r),{}):n(e)}function W(e){let t=typeof e=="function"?e:()=>e;function o(n,r){let a=Ie(),i=W5(r==null?void 0:r.name),l=y1(),{css:c,cx:s}=ws(),d=t(a,n,dH),h=$5(r==null?void 0:r.styles,a,n),v=$5(i,a,n),u=Object.fromEntries(Object.keys(d).map(w=>{let k=s({[c(d[w])]:!(r!=null&&r.unstyled)},c(v[w]),c(h[w]));return[w,k]}));return{classes:A5({cx:s,classes:u,context:i,classNames:r==null?void 0:r.classNames,name:r==null?void 0:r.name,cache:l}),cx:s,theme:a}}return o}var hH=Object.defineProperty,vH=Object.defineProperties,mH=Object.getOwnPropertyDescriptors,V5=Object.getOwnPropertySymbols,uH=Object.prototype.hasOwnProperty,pH=Object.prototype.propertyIsEnumerable,U5=(e,t,o)=>t in e?hH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,gs=(e,t)=>{for(var o in t||(t={}))uH.call(t,o)&&U5(e,o,t[o]);if(V5)for(var o of V5(t))pH.call(t,o)&&U5(e,o,t[o]);return e},Es=(e,t)=>vH(e,mH(t)),xs={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(.9) translateY(10px)"},transitionProperty:"transform, opacity"},Ms={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:Es(gs({},xs),{common:{transformOrigin:"center center"}}),"pop-bottom-left":Es(gs({},xs),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":Es(gs({},xs),{common:{transformOrigin:"bottom right"}}),"pop-top-left":Es(gs({},xs),{common:{transformOrigin:"top left"}}),"pop-top-right":Es(gs({},xs),{common:{transformOrigin:"top right"}})};var C1=y(I()),q5=["mousedown","touchstart"];function op(e,t,o){let n=(0,C1.useRef)();return(0,C1.useEffect)(()=>{let r=a=>{let{target:i}=a!=null?a:{};if(Array.isArray(o)){let l=(i==null?void 0:i.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(i)&&i.tagName!=="HTML";o.every(s=>!!s&&!a.composedPath().includes(s))&&!l&&e()}else n.current&&!n.current.contains(i)&&e()};return(t||q5).forEach(a=>document.addEventListener(a,r)),()=>{(t||q5).forEach(a=>document.removeEventListener(a,r))}},[n,e,o]),n}var hl=y(I());function fH(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(o){return e.addListener(t),()=>e.removeListener(t)}}function kH(e,t){return typeof t=="boolean"?t:typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function G5(e,t,{getInitialValueInEffect:o}={getInitialValueInEffect:!0}){let[n,r]=(0,hl.useState)(o?t:kH(e,t)),a=(0,hl.useRef)();return(0,hl.useEffect)(()=>{if("matchMedia"in window)return a.current=window.matchMedia(e),r(a.current.matches),fH(a.current,i=>r(i.matches))},[e]),n}function xo(e,t,o){return Math.min(Math.max(e,t),o)}var I1=y(I()),Xa=typeof document<"u"?I1.useLayoutEffect:I1.useEffect;var K5=y(I());var zs=y(I());function Ke(e,t){let o=(0,zs.useRef)(!1);(0,zs.useEffect)(()=>()=>{o.current=!1},[]),(0,zs.useEffect)(()=>{if(o.current)return e();o.current=!0},t)}function bs({opened:e,shouldReturnFocus:t=!0}){let o=(0,K5.useRef)(),n=()=>{var r;o.current&&"focus"in o.current&&typeof o.current.focus=="function"&&((r=o.current)==null||r.focus({preventScroll:!0}))};return Ke(()=>{let r=-1,a=i=>{i.key==="Tab"&&window.clearTimeout(r)};return document.addEventListener("keydown",a),e?o.current=document.activeElement:t&&(r=window.setTimeout(n,10)),()=>{window.clearTimeout(r),document.removeEventListener("keydown",a)}},[e,t]),n}var Qa=y(I());var wH=/input|select|textarea|button|object/,np="a, input, select, textarea, button, object, [tabindex]";function gH(e){return e.style.display==="none"}function EH(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let o=e;for(;o&&!(o===document.body||o.nodeType===11);){if(gH(o))return!1;o=o.parentNode}return!0}function Y5(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function N1(e){let t=e.nodeName.toLowerCase(),o=!Number.isNaN(Y5(e));return(wH.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||o)&&EH(e)}function rp(e){let t=Y5(e);return(Number.isNaN(t)||t>=0)&&N1(e)}function X5(e){return Array.from(e.querySelectorAll(np)).filter(rp)}function Q5(e,t){let o=X5(e);if(!o.length){t.preventDefault();return}let n=o[t.shiftKey?0:o.length-1],r=e.getRootNode();if(!(n===r.activeElement||e===r.activeElement))return;t.preventDefault();let i=o[t.shiftKey?o.length-1:0];i&&i.focus()}function Z5(e,t="body > :not(script)"){let o=Array.from(document.querySelectorAll(t)).map(n=>{var r;if(((r=n==null?void 0:n.shadowRoot)==null?void 0:r.contains(e))||n.contains(e))return;let a=n.getAttribute("aria-hidden");return(a===null||a==="false")&&n.setAttribute("aria-hidden","true"),{node:n,ariaHidden:a}});return()=>{o.forEach(n=>{!n||(n.ariaHidden===null?n.node.removeAttribute("aria-hidden"):n.node.setAttribute("aria-hidden",n.ariaHidden))})}}function ys(e=!0){let t=(0,Qa.useRef)(),o=(0,Qa.useRef)(null),n=(0,Qa.useCallback)(r=>{if(!!e&&r!==null&&(o.current=Z5(r),t.current!==r))if(r){let a=()=>{let i=r.querySelector("[data-autofocus]");if(!i){let l=Array.from(r.querySelectorAll(np));i=l.find(rp)||l.find(N1)||null,!i&&N1(r)&&(i=r)}i&&i.focus({preventScroll:!0})};setTimeout(()=>{r.getRootNode()&&a()}),t.current=r}else t.current=null},[e]);return(0,Qa.useEffect)(()=>{if(!e)return;let r=a=>{a.key==="Tab"&&t.current&&Q5(t.current,a)};return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r),o.current&&o.current()}},[e]),n}var B1=y(I());var xH=()=>`mantine-${Math.random().toString(36).slice(2,11)}`,MH=B1.default["useId".toString()]||(()=>{});function zH(){let[e,t]=(0,B1.useState)("");return Xa(()=>{t(xH())},[]),e}function bH(){let e=MH();return e?`mantine-${e.replace(/:/g,"")}`:""}function Ro(e){return typeof e=="string"?e:bH()||zH()}var J5=y(I());function vl(e,t,o){(0,J5.useEffect)(()=>(window.addEventListener(e,t,o),()=>window.removeEventListener(e,t,o)),[e,t])}var e6=y(I());function Za(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function t6(...e){return t=>{e.forEach(o=>Za(o,t))}}function Ot(...e){return(0,e6.useCallback)(t6(...e),e)}var ml=y(I()),yH=Object.defineProperty,o6=Object.getOwnPropertySymbols,LH=Object.prototype.hasOwnProperty,CH=Object.prototype.propertyIsEnumerable,n6=(e,t,o)=>t in e?yH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,IH=(e,t)=>{for(var o in t||(t={}))LH.call(t,o)&&n6(e,o,t[o]);if(o6)for(var o of o6(t))CH.call(t,o)&&n6(e,o,t[o]);return e};function ap(e={resetOnExit:!1}){let[t,o]=(0,ml.useState)({x:0,y:0}),n=(0,ml.useRef)(),r=i=>{if(n.current){let l=i.currentTarget.getBoundingClientRect(),c=Math.max(0,Math.round(i.pageX-l.left-(window.pageXOffset||window.scrollX))),s=Math.max(0,Math.round(i.pageY-l.top-(window.pageYOffset||window.scrollY)));o({x:c,y:s})}else o({x:i.clientX,y:i.clientY})},a=()=>o({x:0,y:0});return(0,ml.useEffect)(()=>{let i=n!=null&&n.current?n.current:document;return i.addEventListener("mousemove",r),e.resetOnExit&&i.addEventListener("mouseleave",a),()=>{i.removeEventListener("mousemove",r),e.resetOnExit&&i.removeEventListener("mouseleave",a)}},[n.current]),IH({ref:n},t)}var An=y(I());var Ls=e=>({x:xo(e.x,0,1),y:xo(e.y,0,1)});function Ja(e,t,o="ltr"){let n=(0,An.useRef)(),r=(0,An.useRef)(!1),a=(0,An.useRef)(!1),i=(0,An.useRef)(0),[l,c]=(0,An.useState)(!1);return(0,An.useEffect)(()=>{r.current=!0},[]),(0,An.useEffect)(()=>{let s=({x:m,y:f})=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{if(r.current&&n.current){n.current.style.userSelect="none";let E=n.current.getBoundingClientRect();if(E.width&&E.height){let M=xo((m-E.left)/E.width,0,1);e({x:o==="ltr"?M:1-M,y:xo((f-E.top)/E.height,0,1)})}}})},d=()=>{document.addEventListener("mousemove",k),document.addEventListener("mouseup",u),document.addEventListener("touchmove",p),document.addEventListener("touchend",u)},h=()=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",u),document.removeEventListener("touchmove",p),document.removeEventListener("touchend",u)},v=()=>{!a.current&&r.current&&(a.current=!0,typeof(t==null?void 0:t.onScrubStart)=="function"&&t.onScrubStart(),c(!0),d())},u=()=>{a.current&&r.current&&(a.current=!1,c(!1),h(),setTimeout(()=>{typeof(t==null?void 0:t.onScrubEnd)=="function"&&t.onScrubEnd()},0))},w=m=>{v(),m.preventDefault(),k(m)},k=m=>s({x:m.clientX,y:m.clientY}),g=m=>{m.cancelable&&m.preventDefault(),v(),p(m)},p=m=>{m.cancelable&&m.preventDefault(),s({x:m.changedTouches[0].clientX,y:m.changedTouches[0].clientY})};return n.current.addEventListener("mousedown",w),n.current.addEventListener("touchstart",g,{passive:!1}),()=>{n.current&&(n.current.removeEventListener("mousedown",w),n.current.removeEventListener("touchstart",g))}},[o,e]),{ref:n,active:l}}var r6=y(I());function lt({value:e,defaultValue:t,finalValue:o,onChange:n=()=>{}}){let[r,a]=(0,r6.useState)(t!==void 0?t:o),i=l=>{a(l),n==null||n(l)};return e!==void 0?[e,n,!0]:[r,i,!1]}function Cs(e,t){return G5("(prefers-reduced-motion: reduce)",e,t)}var Dn=y(I());var a6=e=>e<.5?2*e*e:-1+(4-2*e)*e;var i6=({axis:e,target:t,parent:o,alignment:n,offset:r,isList:a})=>{if(!t||!o&&typeof document>"u")return 0;let i=!!o,c=(o||document.body).getBoundingClientRect(),s=t.getBoundingClientRect(),d=h=>s[h]-c[h];if(e==="y"){let h=d("top");if(h===0)return 0;if(n==="start"){let u=h-r;return u<=s.height*(a?0:1)||!a?u:0}let v=i?c.height:window.innerHeight;if(n==="end"){let u=h+r-v+s.height;return u>=-s.height*(a?0:1)||!a?u:0}return n==="center"?h-v/2+s.height/2:0}if(e==="x"){let h=d("left");if(h===0)return 0;if(n==="start"){let u=h-r;return u<=s.width||!a?u:0}let v=i?c.width:window.innerWidth;if(n==="end"){let u=h+r-v+s.width;return u>=-s.width||!a?u:0}return n==="center"?h-v/2+s.width/2:0}return 0};var l6=({axis:e,parent:t})=>{if(!t&&typeof document>"u")return 0;let o=e==="y"?"scrollTop":"scrollLeft";if(t)return t[o];let{body:n,documentElement:r}=document;return n[o]+r[o]};var c6=({axis:e,parent:t,distance:o})=>{if(!t&&typeof document>"u")return;let n=e==="y"?"scrollTop":"scrollLeft";if(t)t[n]=o;else{let{body:r,documentElement:a}=document;r[n]=o,a[n]=o}};function ip({duration:e=1250,axis:t="y",onScrollFinish:o,easing:n=a6,offset:r=0,cancelable:a=!0,isList:i=!1}={}){let l=(0,Dn.useRef)(0),c=(0,Dn.useRef)(0),s=(0,Dn.useRef)(!1),d=(0,Dn.useRef)(null),h=(0,Dn.useRef)(null),v=Cs(),u=()=>{l.current&&cancelAnimationFrame(l.current)},w=(0,Dn.useCallback)(({alignment:g="start"}={})=>{var p;s.current=!1,l.current&&u();let m=(p=l6({parent:d.current,axis:t}))!=null?p:0,f=i6({parent:d.current,target:h.current,axis:t,alignment:g,offset:r,isList:i})-(d.current?0:m);function E(){c.current===0&&(c.current=performance.now());let z=performance.now()-c.current,x=v||e===0?1:z/e,b=m+f*n(x);c6({parent:d.current,axis:t,distance:b}),!s.current&&x<1?l.current=requestAnimationFrame(E):(typeof o=="function"&&o(),c.current=0,l.current=0,u())}E()},[t,e,n,i,r,o,v]),k=()=>{a&&(s.current=!0)};return vl("wheel",k,{passive:!0}),vl("touchmove",k,{passive:!0}),(0,Dn.useEffect)(()=>u,[]),{scrollableRef:d,targetRef:h,scrollIntoView:w,cancel:u}}var fr=y(I());function s6(){if(typeof window>"u"||typeof document>"u")return 0;let e=parseInt(window.getComputedStyle(document.body).paddingRight,10),t=window.innerWidth-document.documentElement.clientWidth;return e+t}var d6=({disableBodyPadding:e})=>{let t=e?null:s6();return`body { +`),mq=function(e){JU(t,e);function t(){var o=e!==null&&e.apply(this,arguments)||this;return o.state={capture:!0},o._recordCurrentState=function(){var n=o._input;if(!!n){var r=n.value,a=n.selectionStart,i=n.selectionEnd;o._recordChange({value:r,selectionStart:a,selectionEnd:i})}},o._getLines=function(n,r){return n.substring(0,r).split(` +`)},o._recordChange=function(n,r){var a,i,l;r===void 0&&(r=!1);var c=o._history,s=c.stack,d=c.offset;if(s.length&&d>-1){o._history.stack=s.slice(0,d+1);var h=o._history.stack.length;if(h>QC){var v=h-QC;o._history.stack=s.slice(v,h),o._history.offset=Math.max(o._history.offset-v,0)}}var u=Date.now();if(r){var w=o._history.stack[o._history.offset];if(w&&u-w.timestamp=k&&j<=E&&N.startsWith(u)?N.substring(u.length):N}).join(` +`);if(d!==p){var m=w[k];o._applyEdits({value:p,selectionStart:m!=null&&m.startsWith(u)?h-u.length:h,selectionEnd:v-(d.length-p.length)})}}else if(h!==v){var w=o._getLines(d,h),f=w.length-1,g=o._getLines(d,v).length-1,m=w[f];o._applyEdits({value:d.split(` +`).map(function(T,H){return H>=f&&H<=g?u+T:T}).join(` +`),selectionStart:m&&/\S/.test(m)?h+u.length:h,selectionEnd:v+u.length*(g-f+1)})}else{var M=h+u.length;o._applyEdits({value:d.substring(0,h)+u+d.substring(v),selectionStart:M,selectionEnd:M})}else if(n.keyCode===iq){var z=h!==v,x=d.substring(0,h);if(x.endsWith(u)&&!z){n.preventDefault();var M=h-u.length;o._applyEdits({value:d.substring(0,h-u.length)+d.substring(v),selectionStart:M,selectionEnd:M})}}else if(n.keyCode===rq){if(h===v){var b=o._getLines(d,h).pop(),L=b==null?void 0:b.match(/^\s+/);if(L!=null&&L[0]){n.preventDefault();var C=` +`+L[0],M=h+C.length;o._applyEdits({value:d.substring(0,h)+C+d.substring(v),selectionStart:M,selectionEnd:M})}}}else if(n.keyCode===GC||n.keyCode===KC||n.keyCode===XC||n.keyCode===YC){var B=void 0;n.keyCode===GC&&n.shiftKey?B=["(",")"]:n.keyCode===KC?n.shiftKey?B=["{","}"]:B=["[","]"]:n.keyCode===XC?n.shiftKey?B=['"','"']:B=["'","'"]:n.keyCode===YC&&!n.shiftKey&&(B=["`","`"]),h!==v&&B&&(n.preventDefault(),o._applyEdits({value:d.substring(0,h)+B[0]+d.substring(h,v)+B[1]+d.substring(v),selectionStart:h,selectionEnd:v+2}))}else(Lk?n.metaKey&&n.keyCode===tm:n.ctrlKey&&n.keyCode===tm)&&!n.shiftKey&&!n.altKey?(n.preventDefault(),o._undoEdit()):(Lk?n.metaKey&&n.keyCode===tm&&n.shiftKey:hq?n.ctrlKey&&n.keyCode===lq:n.ctrlKey&&n.keyCode===tm&&n.shiftKey)&&!n.altKey?(n.preventDefault(),o._redoEdit()):n.keyCode===cq&&n.ctrlKey&&(Lk?n.shiftKey:!0)&&(n.preventDefault(),o.setState(function(N){return{capture:!N.capture}}))}},o._handleChange=function(n){var r=n.currentTarget,a=r.value,i=r.selectionStart,l=r.selectionEnd;o._recordChange({value:a,selectionStart:i,selectionEnd:l},!0),o.props.onValueChange(a)},o._history={stack:[],offset:-1},o._input=null,o}return t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(o){this._history=o.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var o=this,n=this.props,r=n.value,a=n.style,i=n.padding,l=n.highlight,c=n.textareaId,s=n.textareaClassName,d=n.autoFocus,h=n.disabled,v=n.form,u=n.maxLength,w=n.minLength,k=n.name,E=n.placeholder,p=n.readOnly,m=n.required,f=n.onClick,g=n.onFocus,M=n.onBlur,z=n.onKeyUp,x=n.onKeyDown,b=n.onValueChange,L=n.tabSize,C=n.insertSpaces,B=n.ignoreTabKey,N=n.preClassName,j=nq(n,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),T={paddingTop:typeof i=="object"?i.top:i,paddingRight:typeof i=="object"?i.right:i,paddingBottom:typeof i=="object"?i.bottom:i,paddingLeft:typeof i=="object"?i.left:i},H=l(r);return y0.createElement("div",Wt({},j,{style:Wt(Wt({},L0.container),a)}),y0.createElement("pre",Wt({className:N,"aria-hidden":"true",style:Wt(Wt(Wt({},L0.editor),L0.highlight),T)},typeof H=="string"?{dangerouslySetInnerHTML:{__html:H+"
"}}:{children:H})),y0.createElement("textarea",{ref:function(_){return o._input=_},style:Wt(Wt(Wt({},L0.editor),L0.textarea),T),className:om+(s?" ".concat(s):""),id:c,value:r,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:f,onKeyUp:z,onFocus:g,onBlur:M,disabled:h,form:v,maxLength:u,minLength:w,name:k,placeholder:E,readOnly:p,required:m,autoFocus:d,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),y0.createElement("style",{dangerouslySetInnerHTML:{__html:vq}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(y0.Component);fo.default=mq;var L0={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}});var eI=_e((pde,nm)=>{var uq=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var JC=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,n={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function k(E){return E instanceof a?new a(E.type,k(E.content),E.alias):Array.isArray(E)?E.map(k):E.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(m){var k=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(m.stack)||[])[1];if(k){var E=document.getElementsByTagName("script");for(var p in E)if(E[p].src==k)return E[p]}return null}},isActive:function(k,E,p){for(var m="no-"+E;k;){var f=k.classList;if(f.contains(E))return!0;if(f.contains(m))return!1;k=k.parentElement}return!!p}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(k,E){var p=r.util.clone(r.languages[k]);for(var m in E)p[m]=E[m];return p},insertBefore:function(k,E,p,m){m=m||r.languages;var f=m[k],g={};for(var M in f)if(f.hasOwnProperty(M)){if(M==E)for(var z in p)p.hasOwnProperty(z)&&(g[z]=p[z]);p.hasOwnProperty(M)||(g[M]=f[M])}var x=m[k];return m[k]=g,r.languages.DFS(r.languages,function(b,L){L===x&&b!=k&&(this[b]=g)}),g},DFS:function k(E,p,m,f){f=f||{};var g=r.util.objId;for(var M in E)if(E.hasOwnProperty(M)){p.call(E,M,E[M],m||M);var z=E[M],x=r.util.type(z);x==="Object"&&!f[g(z)]?(f[g(z)]=!0,k(z,p,null,f)):x==="Array"&&!f[g(z)]&&(f[g(z)]=!0,k(z,p,M,f))}}},plugins:{},highlightAll:function(k,E){r.highlightAllUnder(document,k,E)},highlightAllUnder:function(k,E,p){var m={callback:p,container:k,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",m),m.elements=Array.prototype.slice.apply(m.container.querySelectorAll(m.selector)),r.hooks.run("before-all-elements-highlight",m);for(var f=0,g;g=m.elements[f++];)r.highlightElement(g,E===!0,m.callback)},highlightElement:function(k,E,p){var m=r.util.getLanguage(k),f=r.languages[m];r.util.setLanguage(k,m);var g=k.parentElement;g&&g.nodeName.toLowerCase()==="pre"&&r.util.setLanguage(g,m);var M=k.textContent,z={element:k,language:m,grammar:f,code:M};function x(L){z.highlightedCode=L,r.hooks.run("before-insert",z),z.element.innerHTML=z.highlightedCode,r.hooks.run("after-highlight",z),r.hooks.run("complete",z),p&&p.call(z.element)}if(r.hooks.run("before-sanity-check",z),g=z.element.parentElement,g&&g.nodeName.toLowerCase()==="pre"&&!g.hasAttribute("tabindex")&&g.setAttribute("tabindex","0"),!z.code){r.hooks.run("complete",z),p&&p.call(z.element);return}if(r.hooks.run("before-highlight",z),!z.grammar){x(r.util.encode(z.code));return}if(E&&e.Worker){var b=new Worker(r.filename);b.onmessage=function(L){x(L.data)},b.postMessage(JSON.stringify({language:z.language,code:z.code,immediateClose:!0}))}else x(r.highlight(z.code,z.grammar,z.language))},highlight:function(k,E,p){var m={code:k,grammar:E,language:p};if(r.hooks.run("before-tokenize",m),!m.grammar)throw new Error('The language "'+m.language+'" has no grammar.');return m.tokens=r.tokenize(m.code,m.grammar),r.hooks.run("after-tokenize",m),a.stringify(r.util.encode(m.tokens),m.language)},tokenize:function(k,E){var p=E.rest;if(p){for(var m in p)E[m]=p[m];delete E.rest}var f=new c;return s(f,f.head,k),l(k,f,E,f.head,0),h(f)},hooks:{all:{},add:function(k,E){var p=r.hooks.all;p[k]=p[k]||[],p[k].push(E)},run:function(k,E){var p=r.hooks.all[k];if(!(!p||!p.length))for(var m=0,f;f=p[m++];)f(E)}},Token:a};e.Prism=r;function a(k,E,p,m){this.type=k,this.content=E,this.alias=p,this.length=(m||"").length|0}a.stringify=function k(E,p){if(typeof E=="string")return E;if(Array.isArray(E)){var m="";return E.forEach(function(x){m+=k(x,p)}),m}var f={type:E.type,content:k(E.content,p),tag:"span",classes:["token",E.type],attributes:{},language:p},g=E.alias;g&&(Array.isArray(g)?Array.prototype.push.apply(f.classes,g):f.classes.push(g)),r.hooks.run("wrap",f);var M="";for(var z in f.attributes)M+=" "+z+'="'+(f.attributes[z]||"").replace(/"/g,""")+'"';return"<"+f.tag+' class="'+f.classes.join(" ")+'"'+M+">"+f.content+""};function i(k,E,p,m){k.lastIndex=E;var f=k.exec(p);if(f&&m&&f[1]){var g=f[1].length;f.index+=g,f[0]=f[0].slice(g)}return f}function l(k,E,p,m,f,g){for(var M in p)if(!(!p.hasOwnProperty(M)||!p[M])){var z=p[M];z=Array.isArray(z)?z:[z];for(var x=0;x=g.reach);_+=H.value.length,H=H.next){var A=H.value;if(E.length>k.length)return;if(!(A instanceof a)){var F=1,V;if(B){if(V=i(T,_,k,C),!V||V.index>=k.length)break;var ve=V.index,$=V.index+V[0].length,U=_;for(U+=H.value.length;ve>=U;)H=H.next,U+=H.value.length;if(U-=H.value.length,_=U,H.value instanceof a)continue;for(var oe=H;oe!==E.tail&&(U<$||typeof oe.value=="string");oe=oe.next)F++,U+=oe.value.length;F--,A=k.slice(_,U),V.index-=_}else if(V=i(T,0,A,C),!V)continue;var ve=V.index,J=V[0],he=A.slice(0,ve),ue=A.slice(ve+J.length),ie=_+A.length;g&&ie>g.reach&&(g.reach=ie);var le=H.prev;he&&(le=s(E,le,he),_+=he.length),d(E,le,F);var fe=new a(M,L?r.tokenize(J,L):J,N,J);if(H=s(E,le,fe),ue&&s(E,H,ue),F>1){var ne={cause:M+","+x,reach:ie};l(k,E,p,H.prev,_,ne),g&&ne.reach>g.reach&&(g.reach=ne.reach)}}}}}}function c(){var k={value:null,prev:null,next:null},E={value:null,prev:k,next:null};k.next=E,this.head=k,this.tail=E,this.length=0}function s(k,E,p){var m=E.next,f={value:p,prev:E,next:m};return E.next=f,m.prev=f,k.length++,f}function d(k,E,p){for(var m=E.next,f=0;f{"use strict";hI.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Ik=_e((ihe,uI)=>{var C0=vI(),mI={};for(let e of Object.keys(C0))mI[C0[e]]=e;var Q={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};uI.exports=Q;for(let e of Object.keys(Q)){if(!("channels"in Q[e]))throw new Error("missing channels property: "+e);if(!("labels"in Q[e]))throw new Error("missing channel labels property: "+e);if(Q[e].labels.length!==Q[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:o}=Q[e];delete Q[e].channels,delete Q[e].labels,Object.defineProperty(Q[e],"channels",{value:t}),Object.defineProperty(Q[e],"labels",{value:o})}Q.rgb.hsl=function(e){let t=e[0]/255,o=e[1]/255,n=e[2]/255,r=Math.min(t,o,n),a=Math.max(t,o,n),i=a-r,l,c;a===r?l=0:t===a?l=(o-n)/i:o===a?l=2+(n-t)/i:n===a&&(l=4+(t-o)/i),l=Math.min(l*60,360),l<0&&(l+=360);let s=(r+a)/2;return a===r?c=0:s<=.5?c=i/(a+r):c=i/(2-a-r),[l,c*100,s*100]};Q.rgb.hsv=function(e){let t,o,n,r,a,i=e[0]/255,l=e[1]/255,c=e[2]/255,s=Math.max(i,l,c),d=s-Math.min(i,l,c),h=function(v){return(s-v)/6/d+1/2};return d===0?(r=0,a=0):(a=d/s,t=h(i),o=h(l),n=h(c),i===s?r=n-o:l===s?r=1/3+t-n:c===s&&(r=2/3+o-t),r<0?r+=1:r>1&&(r-=1)),[r*360,a*100,s*100]};Q.rgb.hwb=function(e){let t=e[0],o=e[1],n=e[2],r=Q.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(o,n));return n=1-1/255*Math.max(t,Math.max(o,n)),[r,a*100,n*100]};Q.rgb.cmyk=function(e){let t=e[0]/255,o=e[1]/255,n=e[2]/255,r=Math.min(1-t,1-o,1-n),a=(1-t-r)/(1-r)||0,i=(1-o-r)/(1-r)||0,l=(1-n-r)/(1-r)||0;return[a*100,i*100,l*100,r*100]};function zq(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Q.rgb.keyword=function(e){let t=mI[e];if(t)return t;let o=1/0,n;for(let r of Object.keys(C0)){let a=C0[r],i=zq(e,a);i.04045?((t+.055)/1.055)**2.4:t/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let r=t*.4124+o*.3576+n*.1805,a=t*.2126+o*.7152+n*.0722,i=t*.0193+o*.1192+n*.9505;return[r*100,a*100,i*100]};Q.rgb.lab=function(e){let t=Q.rgb.xyz(e),o=t[0],n=t[1],r=t[2];o/=95.047,n/=100,r/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let a=116*n-16,i=500*(o-n),l=200*(n-r);return[a,i,l]};Q.hsl.rgb=function(e){let t=e[0]/360,o=e[1]/100,n=e[2]/100,r,a,i;if(o===0)return i=n*255,[i,i,i];n<.5?r=n*(1+o):r=n+o-n*o;let l=2*n-r,c=[0,0,0];for(let s=0;s<3;s++)a=t+1/3*-(s-1),a<0&&a++,a>1&&a--,6*a<1?i=l+(r-l)*6*a:2*a<1?i=r:3*a<2?i=l+(r-l)*(2/3-a)*6:i=l,c[s]=i*255;return c};Q.hsl.hsv=function(e){let t=e[0],o=e[1]/100,n=e[2]/100,r=o,a=Math.max(n,.01);n*=2,o*=n<=1?n:2-n,r*=a<=1?a:2-a;let i=(n+o)/2,l=n===0?2*r/(a+r):2*o/(n+o);return[t,l*100,i*100]};Q.hsv.rgb=function(e){let t=e[0]/60,o=e[1]/100,n=e[2]/100,r=Math.floor(t)%6,a=t-Math.floor(t),i=255*n*(1-o),l=255*n*(1-o*a),c=255*n*(1-o*(1-a));switch(n*=255,r){case 0:return[n,c,i];case 1:return[l,n,i];case 2:return[i,n,c];case 3:return[i,l,n];case 4:return[c,i,n];case 5:return[n,i,l]}};Q.hsv.hsl=function(e){let t=e[0],o=e[1]/100,n=e[2]/100,r=Math.max(n,.01),a,i;i=(2-o)*n;let l=(2-o)*r;return a=o*r,a/=l<=1?l:2-l,a=a||0,i/=2,[t,a*100,i*100]};Q.hwb.rgb=function(e){let t=e[0]/360,o=e[1]/100,n=e[2]/100,r=o+n,a;r>1&&(o/=r,n/=r);let i=Math.floor(6*t),l=1-n;a=6*t-i,(i&1)!==0&&(a=1-a);let c=o+a*(l-o),s,d,h;switch(i){default:case 6:case 0:s=l,d=c,h=o;break;case 1:s=c,d=l,h=o;break;case 2:s=o,d=l,h=c;break;case 3:s=o,d=c,h=l;break;case 4:s=c,d=o,h=l;break;case 5:s=l,d=o,h=c;break}return[s*255,d*255,h*255]};Q.cmyk.rgb=function(e){let t=e[0]/100,o=e[1]/100,n=e[2]/100,r=e[3]/100,a=1-Math.min(1,t*(1-r)+r),i=1-Math.min(1,o*(1-r)+r),l=1-Math.min(1,n*(1-r)+r);return[a*255,i*255,l*255]};Q.xyz.rgb=function(e){let t=e[0]/100,o=e[1]/100,n=e[2]/100,r,a,i;return r=t*3.2406+o*-1.5372+n*-.4986,a=t*-.9689+o*1.8758+n*.0415,i=t*.0557+o*-.204+n*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,r=Math.min(Math.max(0,r),1),a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),[r*255,a*255,i*255]};Q.xyz.lab=function(e){let t=e[0],o=e[1],n=e[2];t/=95.047,o/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let r=116*o-16,a=500*(t-o),i=200*(o-n);return[r,a,i]};Q.lab.xyz=function(e){let t=e[0],o=e[1],n=e[2],r,a,i;a=(t+16)/116,r=o/500+a,i=a-n/200;let l=a**3,c=r**3,s=i**3;return a=l>.008856?l:(a-16/116)/7.787,r=c>.008856?c:(r-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,r*=95.047,a*=100,i*=108.883,[r,a,i]};Q.lab.lch=function(e){let t=e[0],o=e[1],n=e[2],r;r=Math.atan2(n,o)*360/2/Math.PI,r<0&&(r+=360);let i=Math.sqrt(o*o+n*n);return[t,i,r]};Q.lch.lab=function(e){let t=e[0],o=e[1],r=e[2]/360*2*Math.PI,a=o*Math.cos(r),i=o*Math.sin(r);return[t,a,i]};Q.rgb.ansi16=function(e,t=null){let[o,n,r]=e,a=t===null?Q.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(o/255));return a===2&&(i+=60),i};Q.hsv.ansi16=function(e){return Q.rgb.ansi16(Q.hsv.rgb(e),e[2])};Q.rgb.ansi256=function(e){let t=e[0],o=e[1],n=e[2];return t===o&&o===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(n/255*5)};Q.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let o=(~~(e>50)+1)*.5,n=(t&1)*o*255,r=(t>>1&1)*o*255,a=(t>>2&1)*o*255;return[n,r,a]};Q.ansi256.rgb=function(e){if(e>=232){let a=(e-232)*10+8;return[a,a,a]}e-=16;let t,o=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,r=t%6/5*255;return[o,n,r]};Q.rgb.hex=function(e){let o=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(o.length)+o};Q.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let o=t[0];t[0].length===3&&(o=o.split("").map(l=>l+l).join(""));let n=parseInt(o,16),r=n>>16&255,a=n>>8&255,i=n&255;return[r,a,i]};Q.rgb.hcg=function(e){let t=e[0]/255,o=e[1]/255,n=e[2]/255,r=Math.max(Math.max(t,o),n),a=Math.min(Math.min(t,o),n),i=r-a,l,c;return i<1?l=a/(1-i):l=0,i<=0?c=0:r===t?c=(o-n)/i%6:r===o?c=2+(n-t)/i:c=4+(t-o)/i,c/=6,c%=1,[c*360,i*100,l*100]};Q.hsl.hcg=function(e){let t=e[1]/100,o=e[2]/100,n=o<.5?2*t*o:2*t*(1-o),r=0;return n<1&&(r=(o-.5*n)/(1-n)),[e[0],n*100,r*100]};Q.hsv.hcg=function(e){let t=e[1]/100,o=e[2]/100,n=t*o,r=0;return n<1&&(r=(o-n)/(1-n)),[e[0],n*100,r*100]};Q.hcg.rgb=function(e){let t=e[0]/360,o=e[1]/100,n=e[2]/100;if(o===0)return[n*255,n*255,n*255];let r=[0,0,0],a=t%1*6,i=a%1,l=1-i,c=0;switch(Math.floor(a)){case 0:r[0]=1,r[1]=i,r[2]=0;break;case 1:r[0]=l,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=i;break;case 3:r[0]=0,r[1]=l,r[2]=1;break;case 4:r[0]=i,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=l}return c=(1-o)*n,[(o*r[0]+c)*255,(o*r[1]+c)*255,(o*r[2]+c)*255]};Q.hcg.hsv=function(e){let t=e[1]/100,o=e[2]/100,n=t+o*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]};Q.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]};Q.hcg.hwb=function(e){let t=e[1]/100,o=e[2]/100,n=t+o*(1-t);return[e[0],(n-t)*100,(1-n)*100]};Q.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],r*100,a*100]};Q.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Q.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Q.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Q.gray.hsl=function(e){return[0,0,e[0]]};Q.gray.hsv=Q.gray.hsl;Q.gray.hwb=function(e){return[0,100,e[0]]};Q.gray.cmyk=function(e){return[0,0,0,e[0]]};Q.gray.lab=function(e){return[e[0],0,0]};Q.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};Q.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var fI=_e((lhe,pI)=>{var sm=Ik();function bq(){let e={},t=Object.keys(sm);for(let o=t.length,n=0;n{var Nk=Ik(),Iq=fI(),oc={},Nq=Object.keys(Nk);function Bq(e){let t=function(...o){let n=o[0];return n==null?n:(n.length>1&&(o=n),e(o))};return"conversion"in e&&(t.conversion=e.conversion),t}function jq(e){let t=function(...o){let n=o[0];if(n==null)return n;n.length>1&&(o=n);let r=e(o);if(typeof r=="object")for(let a=r.length,i=0;i{oc[e]={},Object.defineProperty(oc[e],"channels",{value:Nk[e].channels}),Object.defineProperty(oc[e],"labels",{value:Nk[e].labels});let t=Iq(e);Object.keys(t).forEach(n=>{let r=t[n];oc[e][n]=jq(r),oc[e][n].raw=Bq(r)})});kI.exports=oc});var HI=_e((um,jk)=>{(function(e,t){typeof um=="object"&&typeof jk=="object"?jk.exports=t():typeof define=="function"&&define.amd?define("pangu",[],t):typeof um=="object"?um.pangu=t():e.pangu=t()})(window,function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(n,r,a){o.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:a})},o.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.t=function(n,r){if(1&r&&(n=o(n)),8&r||4&r&&typeof n=="object"&&n&&n.__esModule)return n;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:n}),2&r&&typeof n!="string")for(var i in n)o.d(a,i,function(l){return n[l]}.bind(null,i));return a},o.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(r,"a",r),r},o.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},o.p="",o(o.s=0)}([function(e,t,o){var n,r,a;r=[],(a=typeof(n=function(){"use strict";function i(u){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(u)}function l(u,w){for(var k=0;k=0}},{key:"isInsideSpecificTag",value:function(m,f){var g=arguments.length>2&&arguments[2]!==void 0&&arguments[2],M=m;if(g&&this.isSpecificTag(M,f))return!0;for(;M.parentNode;)if(M=M.parentNode,this.isSpecificTag(M,f))return!0;return!1}},{key:"canIgnoreNode",value:function(m){var f=m;if(f&&(this.isSpecificTag(f,this.ignoredTags)||this.isContentEditable(f)))return!0;for(;f.parentNode;)if((f=f.parentNode)&&(this.isSpecificTag(f,this.ignoredTags)||this.isContentEditable(f)))return!0;return!1}},{key:"isFirstTextChild",value:function(m,f){for(var g=m.childNodes,M=0;M-1;M--){var z=g[M];if(z.nodeType!==Node.COMMENT_NODE&&z.textContent)return z===f}return!1}},{key:"spacingNodeByXPath",value:function(m,f){if(f instanceof Node&&!(f instanceof DocumentFragment))for(var g,M,z=document.evaluate(m,f,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),x=z.snapshotLength-1;x>-1;--x){if(g=z.snapshotItem(x),this.isSpecificTag(g.parentNode,this.presentationalTags)&&!this.isInsideSpecificTag(g.parentNode,this.ignoredTags)){var b=g.parentNode;if(b.previousSibling){var L=b.previousSibling;if(L.nodeType===Node.TEXT_NODE){var C=L.data.substr(-1)+g.data.toString().charAt(0),B=this.spacing(C);C!==B&&(L.data="".concat(L.data," "))}}if(b.nextSibling){var N=b.nextSibling;if(N.nodeType===Node.TEXT_NODE){var j=g.data.substr(-1)+N.data.toString().charAt(0),T=this.spacing(j);j!==T&&(N.data=" ".concat(N.data))}}}if(this.canIgnoreNode(g))M=g;else{var H=this.spacing(g.data);if(g.data!==H&&(g.data=H),M){if(g.nextSibling&&g.nextSibling.nodeName.search(this.spaceLikeTags)>=0){M=g;continue}var _=g.data.toString().substr(-1)+M.data.toString().substr(0,1),A=this.spacing(_);if(A!==_){for(var F=M;F.parentNode&&F.nodeName.search(this.spaceSensitiveTags)===-1&&this.isFirstTextChild(F.parentNode,F);)F=F.parentNode;for(var V=g;V.parentNode&&V.nodeName.search(this.spaceSensitiveTags)===-1&&this.isLastTextChild(V.parentNode,V);)V=V.parentNode;if(V.nextSibling&&V.nextSibling.nodeName.search(this.spaceLikeTags)>=0){M=g;continue}if(V.nodeName.search(this.blockTags)===-1)if(F.nodeName.search(this.spaceSensitiveTags)===-1)F.nodeName.search(this.ignoredTags)===-1&&F.nodeName.search(this.blockTags)===-1&&(M.previousSibling?M.previousSibling.nodeName.search(this.spaceLikeTags)===-1&&(M.data=" ".concat(M.data)):this.canIgnoreNode(M)||(M.data=" ".concat(M.data)));else if(V.nodeName.search(this.spaceSensitiveTags)===-1)g.data="".concat(g.data," ");else{var $=document.createElement("pangu");$.innerHTML=" ",F.previousSibling?F.previousSibling.nodeName.search(this.spaceLikeTags)===-1&&F.parentNode.insertBefore($,F):F.parentNode.insertBefore($,F),$.previousElementSibling||$.parentNode&&$.parentNode.removeChild($)}}}M=g}}}},{key:"spacingNode",value:function(m){var f=".//*/text()[normalize-space(.)]";m.children&&m.children.length===0&&(f=".//text()[normalize-space(.)]"),this.spacingNodeByXPath(f,m)}},{key:"spacingElementById",value:function(m){var f='id("'.concat(m,'")//text()');this.spacingNodeByXPath(f,document)}},{key:"spacingElementByClassName",value:function(m){var f='//*[contains(concat(" ", normalize-space(@class), " "), "'.concat(m,'")]//text()');this.spacingNodeByXPath(f,document)}},{key:"spacingElementByTagName",value:function(m){var f="//".concat(m,"//text()");this.spacingNodeByXPath(f,document)}},{key:"spacingPageTitle",value:function(){this.spacingNodeByXPath("/html/head/title/text()",document)}},{key:"spacingPageBody",value:function(){var m="/html/body//*/text()[normalize-space(.)]";["script","style","textarea"].forEach(function(f){m="".concat(m,'[translate(name(..),"ABCDEFGHIJKLMNOPQRSTUVWXYZ","abcdefghijklmnopqrstuvwxyz")!="').concat(f,'"]')}),this.spacingNodeByXPath(m,document)}},{key:"spacingPage",value:function(){this.spacingPageTitle(),this.spacingPageBody()}},{key:"autoSpacingPage",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1e3,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2e3;if(document.body instanceof Node&&!this.isAutoSpacingPageExecuted){this.isAutoSpacingPageExecuted=!0;var M=this,z=function(j){var T=this,H=arguments,_=!1;return function(){if(!_){var A=T;_=!0,j.apply(A,H)}}}(function(){M.spacingPage()}),x=document.getElementsByTagName("video");if(x.length===0)setTimeout(function(){z()},m);else for(var b=0;b=H?(j.apply($,U),V=oe):F=setTimeout(function(){j.apply($,U)},T)}}(function(){for(;C.length;){var j=C.shift();j&&M.spacingNode(j)}},f,{maxWait:g}),N=new MutationObserver(function(j,T){j.forEach(function(H){switch(H.type){case"childList":H.addedNodes.forEach(function(A){A.nodeType===Node.ELEMENT_NODE?C.push(A):A.nodeType===Node.TEXT_NODE&&C.push(A.parentNode)});break;case"characterData":var _=H.target;_.nodeType===Node.TEXT_NODE&&C.push(_.parentNode)}}),B()});N.observe(document.body,{characterData:!0,childList:!0,subtree:!0})}}}])&&l(k.prototype,E),p&&l(k,p),w;var k,E,p}(o(1).Pangu),v=new h;e.exports=v,e.exports.default=v,e.exports.Pangu=h})=="function"?n.apply(t,r):n)===void 0||(e.exports=a)},function(e,t,o){var n,r,a;r=[],(a=typeof(n=function(){"use strict";function i(J){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(he){return typeof he}:function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he})(J)}function l(J,he){for(var ue=0;ue])([A-Za-z0-9])"),"g"),b=new RegExp("([A-Za-z0-9])([\\+\\-\\*\\/=&\\|<>])([".concat(c,"])"),"g"),L=/([\/]) ([a-z\-_\.\/]+)/g,C=/([\/\.])([A-Za-z\-_\.\/]+) ([\/])/g,B=new RegExp("([".concat(c,"])([\\(\\[\\{<>“])"),"g"),N=new RegExp("([\\)\\]\\}<>”])([".concat(c,"])"),"g"),j=/([\(\[\{<\u201c]+)[ ]*(.+?)[ ]*([\)\]\}>\u201d]+)/,T=new RegExp("([A-Za-z0-9".concat(c,"])[ ]*([“])([A-Za-z0-9").concat(c,"\\-_ ]+)([”])"),"g"),H=new RegExp("([“])([A-Za-z0-9".concat(c,"\\-_ ]+)([”])[ ]*([A-Za-z0-9").concat(c,"])"),"g"),_=/([A-Za-z0-9])([\(\[\{])/g,A=/([\)\]\}])([A-Za-z0-9])/g,F=new RegExp("([".concat(c,"])([A-Za-zͰ-Ͽ0-9@\\$%\\^&\\*\\-\\+\\\\=\\|/¡-ÿ⅐-↏✀—➿])"),"g"),V=new RegExp("([A-Za-zͰ-Ͽ0-9~\\$%\\^&\\*\\-\\+\\\\=\\|/!;:,\\.\\?¡-ÿ⅐-↏✀—➿])([".concat(c,"])"),"g"),$=/(%)([A-Za-z])/g,U=/([ ]*)([\u00b7\u2022\u2027])([ ]*)/g,oe=function(){function J(){(function(le,fe){if(!(le instanceof fe))throw new TypeError("Cannot call a class as a function")})(this,J),this.version="4.0.7"}return he=J,(ue=[{key:"convertToFullwidth",value:function(le){return le.replace(/~/g,"~").replace(/!/g,"!").replace(/;/g,";").replace(/:/g,":").replace(/,/g,",").replace(/\./g,"。").replace(/\?/g,"?")}},{key:"spacing",value:function(le){if(typeof le!="string")return console.warn("spacing(text) only accepts string but got ".concat(i(le))),le;if(le.length<=1||!s.test(le))return le;var fe=this,ne=le;return ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=(ne=ne.replace(d,function(se,ke,De,We){var ao=fe.convertToFullwidth(De);return"".concat(ke).concat(ao).concat(We)})).replace(h,function(se,ke,De){var We=fe.convertToFullwidth(De);return"".concat(ke).concat(We)})).replace(v,"$1 $2")).replace(u,"$1:$2")).replace(w,"$1 $2")).replace(k,"$1 $2")).replace(E,"$1$2$3")).replace(p,"$1 $2")).replace(m,"$1 $2")).replace(f,"$1's")).replace(g,"$1 $2$3$4 $5")).replace(M,"$1 $2")).replace(z,"$1 $3")).replace(x,"$1 $2 $3")).replace(b,"$1 $2 $3")).replace(L,"$1$2")).replace(C,"$1$2$3")).replace(B,"$1 $2")).replace(N,"$1 $2")).replace(j,"$1$2$3")).replace(T,"$1 $2$3$4")).replace(H,"$1$2$3 $4")).replace(_,"$1 $2")).replace(A,"$1 $2")).replace(F,"$1 $2")).replace(V,"$1 $2")).replace($,"$1 $2")).replace(U,"・")}},{key:"spacingText",value:function(le){var fe,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};try{fe=this.spacing(le)}catch(se){return void ne(se)}ne(null,fe)}},{key:"spacingTextSync",value:function(le){return this.spacing(le)}}])&&l(he.prototype,ue),ie&&l(he,ie),J;var he,ue,ie}(),ve=new oe;e.exports=ve,e.exports.default=ve,e.exports.Pangu=oe})=="function"?n.apply(t,r):n)===void 0||(e.exports=a)}])})});var cI=y(Du());function r1(e,t){let o=e;for(;(o=o.parentElement)&&!o.matches(t););return o}function mj(e,t,o){for(let n=e-1;n>=0;n-=1)if(!t[n].disabled)return n;if(o){for(let n=t.length-1;n>-1;n-=1)if(!t[n].disabled)return n}return e}function uj(e,t,o){for(let n=e+1;n{var c;o==null||o(l);let s=Array.from(((c=r1(l.currentTarget,e))==null?void 0:c.querySelectorAll(t))||[]).filter(k=>pj(l.currentTarget,k,e)),d=s.findIndex(k=>l.currentTarget===k),h=uj(d,s,n),v=mj(d,s,n),u=a==="rtl"?v:h,w=a==="rtl"?h:v;switch(l.key){case"ArrowRight":{i==="horizontal"&&(l.stopPropagation(),l.preventDefault(),s[u].focus(),r&&s[u].click());break}case"ArrowLeft":{i==="horizontal"&&(l.stopPropagation(),l.preventDefault(),s[w].focus(),r&&s[w].click());break}case"ArrowUp":{i==="vertical"&&(l.stopPropagation(),l.preventDefault(),s[v].focus(),r&&s[v].click());break}case"ArrowDown":{i==="vertical"&&(l.stopPropagation(),l.preventDefault(),s[h].focus(),r&&s[h].click());break}case"Home":{l.stopPropagation(),l.preventDefault(),!s[0].disabled&&s[0].focus();break}case"End":{l.stopPropagation(),l.preventDefault();let k=s.length-1;!s[k].disabled&&s[k].focus();break}}}}var tl=y(I());function cs(e){let t=(0,tl.createContext)(null);return[({children:r,value:a})=>tl.default.createElement(t.Provider,{value:a},r),()=>{let r=(0,tl.useContext)(t);if(r===null)throw new Error(e);return r}]}function zo(e){return Array.isArray(e)?e:[e]}function a1(e,t){return o=>{if(typeof o!="string"||o.trim().length===0)throw new Error(t);return`${e}-${o}`}}var ss=()=>{};function $u(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||ss:o=>{var n;o.key==="Escape"&&(e(o),(n=t.onTrigger)==null||n.call(t))}}function Vu({data:e}){let t=[],o=[],n=e.reduce((r,a,i)=>(a.group?r[a.group]?r[a.group].push(i):r[a.group]=[i]:o.push(i),r),{});return Object.keys(n).forEach(r=>{t.push(...n[r].map(a=>e[a]))}),t.push(...o.map(r=>e[r])),t}var bg=y(I());function ds(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==bg.default.Fragment:!1}function yg(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t({fontFamily:e.fontFamily||"sans-serif"})}var fj=Object.defineProperty,Cg=Object.getOwnPropertySymbols,kj=Object.prototype.hasOwnProperty,wj=Object.prototype.propertyIsEnumerable,Ig=(e,t,o)=>t in e?fj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ng=(e,t)=>{for(var o in t||(t={}))kj.call(t,o)&&Ig(e,o,t[o]);if(Cg)for(var o of Cg(t))wj.call(t,o)&&Ig(e,o,t[o]);return e};function Bg(e){return t=>({WebkitTapHighlightColor:"transparent",[t||"&:focus"]:Ng({},e.focusRing==="always"||e.focusRing==="auto"?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[t?t.replace(":focus",":focus:not(:focus-visible)"):"&:focus:not(:focus-visible)"]:Ng({},e.focusRing==="auto"||e.focusRing==="never"?e.focusRingStyles.resetStyles(e):null)})}function Fn(e){return t=>typeof e.primaryShade=="number"?e.primaryShade:e.primaryShade[t||e.colorScheme]}function ol(e){let t=Fn(e);return(o,n,r=!0,a=!0)=>{if(typeof o=="string"&&o.includes(".")){let[l,c]=o.split("."),s=parseInt(c,10);if(l in e.colors&&s>=0&&s<10)return e.colors[l][typeof n=="number"&&!a?n:s]}let i=typeof n=="number"?n:t();return o in e.colors?e.colors[o][i]:r?e.colors[e.primaryColor][i]:o}}function qu(e){let t="";for(let o=1;o{let r={from:(n==null?void 0:n.from)||e.defaultGradient.from,to:(n==null?void 0:n.to)||e.defaultGradient.to,deg:(n==null?void 0:n.deg)||e.defaultGradient.deg};return`linear-gradient(${r.deg}deg, ${t(r.from,o(),!1)} 0%, ${t(r.to,o(),!1)} 100%)`}}function vs(e){if(typeof e.size=="number")return e.size;let t=e.sizes[e.size];return t!==void 0?t:e.size||e.sizes.md}function Wg(e){return t=>`@media (min-width: ${vs({size:t,sizes:e.breakpoints})}px)`}function Sg(e){return t=>`@media (max-width: ${vs({size:t,sizes:e.breakpoints})-1}px)`}function Ej(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)}function gj(e){let t=e.replace("#","");if(t.length===3){let i=t.split("");t=[i[0],i[0],i[1],i[1],i[2],i[2]].join("")}let o=parseInt(t,16),n=o>>16&255,r=o>>8&255,a=o&255;return{r:n,g:r,b:a,a:1}}function xj(e){let[t,o,n,r]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:o,b:n,a:r||1}}function nl(e){return Ej(e)?gj(e):e.startsWith("rgb")?xj(e):{r:0,g:0,b:0,a:1}}function Qr(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";let{r:o,g:n,b:r}=nl(e);return`rgba(${o}, ${n}, ${r}, ${t})`}function _g(e=0){return{position:"absolute",top:e,right:e,left:e,bottom:e}}function Og(e,t){let{r:o,g:n,b:r,a}=nl(e),i=1-t,l=c=>Math.round(c*i);return`rgba(${l(o)}, ${l(n)}, ${l(r)}, ${a})`}function Pg(e,t){let{r:o,g:n,b:r,a}=nl(e),i=l=>Math.round(l+(255-l)*t);return`rgba(${i(o)}, ${i(n)}, ${i(r)}, ${a})`}function Rg(e){return t=>{if(typeof t=="number")return t;let o=typeof e.defaultRadius=="number"?e.defaultRadius:e.radius[e.defaultRadius]||e.defaultRadius;return e.radius[t]||t||o}}function Mj(e,t){if(typeof e=="string"&&e.includes(".")){let[o,n]=e.split("."),r=parseInt(n,10);if(o in t.colors&&r>=0&&r<10)return{isSplittedColor:!0,key:o,shade:r}}return{isSplittedColor:!1}}function Tg(e){let t=ol(e),o=Fn(e),n=i1(e);return({variant:r,color:a,gradient:i,primaryFallback:l})=>{let c=Mj(a,e);switch(r){case"light":return{border:"transparent",background:Qr(t(a,e.colorScheme==="dark"?8:0,l,!1),e.colorScheme==="dark"?.2:1),color:a==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(a,e.colorScheme==="dark"?2:o("light")),hover:Qr(t(a,e.colorScheme==="dark"?7:1,l,!1),e.colorScheme==="dark"?.25:.65)};case"subtle":return{border:"transparent",background:"transparent",color:a==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(a,e.colorScheme==="dark"?2:o("light")),hover:Qr(t(a,e.colorScheme==="dark"?8:0,l,!1),e.colorScheme==="dark"?.2:1)};case"outline":return{border:t(a,e.colorScheme==="dark"?5:o("light")),background:"transparent",color:t(a,e.colorScheme==="dark"?5:o("light")),hover:e.colorScheme==="dark"?Qr(t(a,5,l,!1),.05):Qr(t(a,0,l,!1),.35)};case"default":return{border:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4],background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,color:e.colorScheme==="dark"?e.white:e.black,hover:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]};case"white":return{border:"transparent",background:e.white,color:t(a,o()),hover:null};case"transparent":return{border:"transparent",color:a==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(a,e.colorScheme==="dark"?2:o("light")),background:"transparent",hover:null};case"gradient":return{background:n(i),color:e.white,border:"transparent",hover:null};default:{let s=o(),d=c.isSplittedColor?c.shade:s,h=c.isSplittedColor?c.key:a;return{border:"transparent",background:t(h,d,l),color:e.white,hover:t(h,d===9?8:d+1)}}}}}function Ag(e){return t=>{let o=Fn(e)(t);return e.colors[e.primaryColor][o]}}function Dg(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}}function Fg(e){return()=>({userSelect:"none",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]})}var st={fontStyles:Lg,themeColor:ol,focusStyles:Bg,linearGradient:jg,radialGradient:Hg,smallerThan:Sg,largerThan:Wg,rgba:Qr,size:vs,cover:_g,darken:Og,lighten:Pg,radius:Rg,variant:Tg,primaryShade:Fn,hover:Dg,gradient:i1,primaryColor:Ag,placeholderStyles:Fg};var zj=Object.defineProperty,bj=Object.defineProperties,yj=Object.getOwnPropertyDescriptors,$g=Object.getOwnPropertySymbols,Lj=Object.prototype.hasOwnProperty,Cj=Object.prototype.propertyIsEnumerable,Vg=(e,t,o)=>t in e?zj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ij=(e,t)=>{for(var o in t||(t={}))Lj.call(t,o)&&Vg(e,o,t[o]);if($g)for(var o of $g(t))Cj.call(t,o)&&Vg(e,o,t[o]);return e},Nj=(e,t)=>bj(e,yj(t));function l1(e){return Nj(Ij({},e),{fn:{fontStyles:st.fontStyles(e),themeColor:st.themeColor(e),focusStyles:st.focusStyles(e),largerThan:st.largerThan(e),smallerThan:st.smallerThan(e),radialGradient:st.radialGradient,linearGradient:st.linearGradient,gradient:st.gradient(e),rgba:st.rgba,size:st.size,cover:st.cover,lighten:st.lighten,darken:st.darken,primaryShade:st.primaryShade(e),radius:st.radius(e),variant:st.variant(e),hover:st.hover,primaryColor:st.primaryColor(e),placeholderStyles:st.placeholderStyles(e)}})}var MK=Object.keys(Uu);var Bj={dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",dateFormat:"MMMM D, YYYY",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:Uu,lineHeight:1.55,fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",primaryColor:"blue",respectReducedMotion:!0,cursorType:"default",defaultGradient:{from:"indigo",to:"cyan",deg:45},shadows:{xs:"0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)",sm:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 10px 15px -5px, rgba(0, 0, 0, 0.04) 0px 7px 7px -5px",md:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px",lg:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 28px 23px -7px, rgba(0, 0, 0, 0.04) 0px 12px 12px -7px",xl:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 36px 28px -7px, rgba(0, 0, 0, 0.04) 0px 17px 17px -7px"},fontSizes:{xs:12,sm:14,md:16,lg:18,xl:20},radius:{xs:2,sm:4,md:8,lg:16,xl:32},spacing:{xs:10,sm:12,md:16,lg:20,xl:24},breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1400},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:34,lineHeight:1.3,fontWeight:void 0},h2:{fontSize:26,lineHeight:1.35,fontWeight:void 0},h3:{fontSize:22,lineHeight:1.4,fontWeight:void 0},h4:{fontSize:18,lineHeight:1.45,fontWeight:void 0},h5:{fontSize:16,lineHeight:1.5,fontWeight:void 0},h6:{fontSize:14,lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(1px)"},datesLocale:"en",globalStyles:void 0,focusRingStyles:{styles:e=>({outlineOffset:2,outline:`2px solid ${e.colors[e.primaryColor][e.colorScheme==="dark"?7:5]}`}),resetStyles:()=>({outline:"none"}),inputStyles:e=>({outline:"none",borderColor:e.colors[e.primaryColor][typeof e.primaryShade=="object"?e.primaryShade[e.colorScheme]:e.primaryShade]})}},c1=l1(Bj);var Ao=y(I());var pl=y(I());function jj(e){if(e.sheet)return e.sheet;for(var t=0;t0?ot(dl,--mo):0,cl--,dt===10&&(cl=1,v1--),dt}function uo(){return dt=mo2||sl(dt)>3?"":" "}function e5(e,t){for(;--t&&uo()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););return vl(e,fs()+(t<6&&rn()==32&&uo()==32))}function Xu(e){for(;uo();)switch(dt){case e:return mo;case 34:case 39:e!==34&&e!==39&&Xu(dt);break;case 40:e===41&&Xu(e);break;case 92:uo();break}return mo}function t5(e,t){for(;uo()&&e+dt!==47+10;)if(e+dt===42+42&&rn()===47)break;return"/*"+vl(t,mo-1)+"*"+Za(e===47?e:uo())}function o5(e){for(;!sl(rn());)uo();return vl(e,mo)}function a5(e){return u1(p1("",null,null,null,[""],e=m1(e),0,[0],e))}function p1(e,t,o,n,r,a,i,l,c){for(var s=0,d=0,h=i,v=0,u=0,w=0,k=1,E=1,p=1,m=0,f="",g=r,M=a,z=n,x=f;E;)switch(w=m,m=uo()){case 40:if(w!=108&&ot(x,h-1)==58){us(x+=ze(ml(m),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:x+=ml(m);break;case 9:case 10:case 13:case 32:x+=Jg(w);break;case 92:x+=e5(fs()-1,7);continue;case 47:switch(rn()){case 42:case 47:ll(Wj(t5(uo(),fs()),t,o),c);break;default:x+="/"}break;case 123*k:l[s++]=vo(x)*p;case 125*k:case 59:case 0:switch(m){case 0:case 125:E=0;case 59+d:u>0&&vo(x)-h&&ll(u>32?r5(x+";",n,o,h-1):r5(ze(x," ","")+";",n,o,h-2),c);break;case 59:x+=";";default:if(ll(z=n5(x,t,o,s,d,r,l,f,g=[],M=[],h),a),m===123)if(d===0)p1(x,t,z,z,g,a,h,l,M);else switch(v===99&&ot(x,3)===110?100:v){case 100:case 109:case 115:p1(e,z,z,n&&ll(n5(e,z,z,0,0,r,l,f,r,g=[],h),M),r,M,h,l,n?g:M);break;default:p1(x,z,z,z,[""],M,0,l,M)}}s=d=u=0,k=p=1,f=x="",h=i;break;case 58:h=1+vo(x),u=w;default:if(k<1){if(m==123)--k;else if(m==125&&k++==0&&Zg()==125)continue}switch(x+=Za(m),m*k){case 38:p=d>0?1:(x+="\f",-1);break;case 44:l[s++]=(vo(x)-1)*p,p=1;break;case 64:rn()===45&&(x+=ml(uo())),v=rn(),d=h=vo(f=x+=o5(fs())),m++;break;case 45:w===45&&vo(x)==2&&(k=0)}}return a}function n5(e,t,o,n,r,a,i,l,c,s,d){for(var h=r-1,v=r===0?a:[""],u=il(v),w=0,k=0,E=0;w0?v[p]+" "+m:ze(m,/&\f/g,v[p])))&&(c[E++]=f);return ps(e,t,o,r===0?rl:l,c,s,d)}function Wj(e,t,o){return ps(e,t,o,s1,Za(Qg()),Zr(e,2,-2),0)}function r5(e,t,o,n){return ps(e,t,o,al,Zr(e,0,n),Zr(e,n+1,-1),n)}function Ja(e,t){for(var o="",n=il(e),r=0;r6)switch(ot(e,t+1)){case 109:if(ot(e,t+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+ye+"$2-$3$1"+ms+(ot(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~us(e,"stretch")?h5(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ot(e,t+1)!==115)break;case 6444:switch(ot(e,vo(e)-3-(~us(e,"!important")&&10))){case 107:return ze(e,":",":"+ye)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ye+(ot(e,14)===45?"inline-":"")+"box$3$1"+ye+"$2$3$1"+Tt+"$2box$3")+e}break;case 5936:switch(ot(e,t+11)){case 114:return ye+e+Tt+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ye+e+Tt+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ye+e+Tt+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ye+e+Tt+e+e}return e}var Dj=function(t,o,n,r){if(t.length>-1&&!t.return)switch(t.type){case al:t.return=h5(t.value,t.length);break;case d1:return Ja([hl(t,{value:ze(t.value,"@","@"+ye)})],r);case rl:if(t.length)return Ku(t.props,function(a){switch(Gu(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ja([hl(t,{props:[ze(a,/:(read-\w+)/,":"+ms+"$1")]})],r);case"::placeholder":return Ja([hl(t,{props:[ze(a,/:(plac\w+)/,":"+ye+"input-$1")]}),hl(t,{props:[ze(a,/:(plac\w+)/,":"+ms+"$1")]}),hl(t,{props:[ze(a,/:(plac\w+)/,Tt+"input-$1")]})],r)}return""})}},Fj=[Dj],$j=function(t){var o=t.key;if(o==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(k){var E=k.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(k),k.setAttribute("data-s",""))})}var r=t.stylisPlugins||Fj,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(k){for(var E=k.getAttribute("data-emotion").split(" "),p=1;p=4;++n,r-=4)o=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var z5=nH;var rH={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},b5=rH;var aH=/[A-Z]|^ms/g,iH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,I5=function(t){return t.charCodeAt(1)===45},y5=function(t){return t!=null&&typeof t!="boolean"},np=s5(function(e){return I5(e)?e:e.replace(aH,"-$&").toLowerCase()}),L5=function(t,o){switch(t){case"animation":case"animationName":if(typeof o=="string")return o.replace(iH,function(n,r,a){return $n={name:r,styles:a,next:$n},r})}return b5[t]!==1&&!I5(t)&&typeof o=="number"&&o!==0?o+"px":o};function Es(e,t,o){if(o==null)return"";if(o.__emotion_styles!==void 0)return o;switch(typeof o){case"boolean":return"";case"object":{if(o.anim===1)return $n={name:o.name,styles:o.styles,next:$n},o.name;if(o.styles!==void 0){var n=o.next;if(n!==void 0)for(;n!==void 0;)$n={name:n.name,styles:n.styles,next:$n},n=n.next;var r=o.styles+";";return r}return lH(e,t,o)}case"function":{if(e!==void 0){var a=$n,i=o(e);return $n=a,Es(e,t,i)}break}case"string":if(!1)var l,c;break}if(t==null)return o;var s=t[o];return s!==void 0?s:o}function lH(e,t,o){var n="";if(Array.isArray(o))for(var r=0;rt in e?pH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,gH=(e,t)=>{for(var o in t||(t={}))wH.call(t,o)&&H5(e,o,t[o]);if(j5)for(var o of j5(t))EH.call(t,o)&&H5(e,o,t[o]);return e},xH=(e,t)=>fH(e,kH(t));function S5({theme:e}){return W5.default.createElement(Jr,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},html:{colorScheme:e.colorScheme==="dark"?"dark":"light"},body:xH(gH({},e.fn.fontStyles()),{backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,fontSize:e.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}var _5=y(I());function C1(e,t,o){Object.keys(t).forEach(n=>{e[`--mantine-${o}-${n}`]=typeof t[n]=="number"?`${t[n]}px`:t[n]})}function O5({theme:e}){let t={"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-transition-timing-function":e.transitionTimingFunction,"--mantine-line-height":`${e.lineHeight}`,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":`${e.headings.fontWeight}`};C1(t,e.shadows,"shadow"),C1(t,e.fontSizes,"font-size"),C1(t,e.radius,"radius"),C1(t,e.spacing,"spacing"),Object.keys(e.colors).forEach(n=>{e.colors[n].forEach((r,a)=>{t[`--mantine-color-${n}-${a}`]=r})});let o=e.headings.sizes;return Object.keys(o).forEach(n=>{t[`--mantine-${n}-font-size`]=`${o[n].fontSize}px`,t[`--mantine-${n}-line-height`]=`${o[n].lineHeight}`}),_5.default.createElement(Jr,{styles:{":root":t}})}var MH=Object.defineProperty,zH=Object.defineProperties,bH=Object.getOwnPropertyDescriptors,P5=Object.getOwnPropertySymbols,yH=Object.prototype.hasOwnProperty,LH=Object.prototype.propertyIsEnumerable,R5=(e,t,o)=>t in e?MH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,ei=(e,t)=>{for(var o in t||(t={}))yH.call(t,o)&&R5(e,o,t[o]);if(P5)for(var o of P5(t))LH.call(t,o)&&R5(e,o,t[o]);return e},T5=(e,t)=>zH(e,bH(t));function CH(e,t){if(!t)return e;let o=Object.keys(e).reduce((n,r)=>{if(r==="headings"&&t.headings){let a=t.headings.sizes?Object.keys(e.headings.sizes).reduce((i,l)=>(i[l]=ei(ei({},e.headings.sizes[l]),t.headings.sizes[l]),i),{}):e.headings.sizes;return T5(ei({},n),{headings:T5(ei(ei({},e.headings),t.headings),{sizes:a})})}return n[r]=typeof t[r]=="object"?ei(ei({},e[r]),t[r]):typeof t[r]=="number"||typeof t[r]=="boolean"||typeof t[r]=="function"?t[r]:t[r]||e[r],n},{});if(!(o.primaryColor in o.colors))throw new Error("MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");return o}function A5(e,t){return l1(CH(e,t))}function xs(e){return Object.keys(e).reduce((t,o)=>(e[o]!==void 0&&(t[o]=e[o]),t),{})}var D5=y(I());var IH={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:"1px dotted ButtonText"},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"},"[hidden]":{display:"none"}};function F5(){return D5.default.createElement(Jr,{styles:IH})}var NH=Object.defineProperty,$5=Object.getOwnPropertySymbols,BH=Object.prototype.hasOwnProperty,jH=Object.prototype.propertyIsEnumerable,V5=(e,t,o)=>t in e?NH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ms=(e,t)=>{for(var o in t||(t={}))BH.call(t,o)&&V5(e,o,t[o]);if($5)for(var o of $5(t))jH.call(t,o)&&V5(e,o,t[o]);return e},I1=(0,Ao.createContext)({theme:c1});function je(){var e;return((e=(0,Ao.useContext)(I1))==null?void 0:e.theme)||c1}function U5(e){let t=je(),o=n=>{var r,a;return{styles:((r=t.components[n])==null?void 0:r.styles)||{},classNames:((a=t.components[n])==null?void 0:a.classNames)||{}}};return Array.isArray(e)?e.map(o):[o(e)]}function N1(){var e;return(e=(0,Ao.useContext)(I1))==null?void 0:e.emotionCache}function S(e,t,o){var n;let r=je(),a=(n=r.components[e])==null?void 0:n.defaultProps,i=typeof a=="function"?a(r):a;return Ms(Ms(Ms({},t),i),xs(o))}function B1({theme:e,emotionCache:t,withNormalizeCSS:o=!1,withGlobalStyles:n=!1,withCSSVariables:r=!1,inherit:a=!1,children:i}){let l=(0,Ao.useContext)(I1),c=A5(c1,a?Ms(Ms({},l.theme),e):e);return Ao.default.createElement(lp,{theme:c},Ao.default.createElement(I1.Provider,{value:{theme:c,emotionCache:t}},o&&Ao.default.createElement(F5,null),n&&Ao.default.createElement(S5,{theme:c}),r&&Ao.default.createElement(O5,{theme:c}),typeof c.globalStyles=="function"&&Ao.default.createElement(Jr,{styles:c.globalStyles(c)}),i))}B1.displayName="@mantine/core/MantineProvider";var HH={app:100,modal:200,popover:300,overlay:400,max:9999};function po(e){return HH[e]}var q5=y(I());function G5(e,t){let o=(0,q5.useRef)();return(!o.current||t.length!==o.current.prevDeps.length||o.current.prevDeps.map((n,r)=>n===t[r]).indexOf(!1)>=0)&&(o.current={v:e(),prevDeps:[...t]}),o.current.v}var K5=ks({key:"mantine",prepend:!0});function X5(){return N1()||K5}var WH=Object.defineProperty,Y5=Object.getOwnPropertySymbols,SH=Object.prototype.hasOwnProperty,_H=Object.prototype.propertyIsEnumerable,Q5=(e,t,o)=>t in e?WH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,OH=(e,t)=>{for(var o in t||(t={}))SH.call(t,o)&&Q5(e,o,t[o]);if(Y5)for(var o of Y5(t))_H.call(t,o)&&Q5(e,o,t[o]);return e},cp="ref";function PH(e){let t;if(e.length!==1)return{args:e,ref:t};let[o]=e;if(!(o instanceof Object))return{args:e,ref:t};if(!(cp in o))return{args:e,ref:t};t=o[cp];let n=OH({},o);return delete n[cp],{args:[n],ref:t}}var{cssFactory:RH}=(()=>{function e(o,n,r){let a=[],i=L1(o,a,r);return a.length<2?r:i+n(a)}function t(o){let{cache:n}=o,r=(...i)=>{let{ref:l,args:c}=PH(i),s=ul(c,n.registered);return ws(n,s,!1),`${n.key}-${s.name}${l===void 0?"":` ${l}`}`};return{css:r,cx:(...i)=>e(n.registered,r,hs(i))}}return{cssFactory:t}})();function zs(){let e=X5();return G5(()=>RH({cache:e}),[e])}function Z5({cx:e,classes:t,context:o,classNames:n,name:r,cache:a}){let i=o.reduce((l,c)=>(Object.keys(c.classNames).forEach(s=>{typeof l[s]!="string"?l[s]=`${c.classNames[s]}`:l[s]=`${l[s]} ${c.classNames[s]}`}),l),{});return Object.keys(t).reduce((l,c)=>(l[c]=e(t[c],i[c],n!=null&&n[c],Array.isArray(r)?r.filter(Boolean).map(s=>`${(a==null?void 0:a.key)||"mantine"}-${s}-${c}`).join(" "):r?`${(a==null?void 0:a.key)||"mantine"}-${r}-${c}`:null),l),{})}var TH=Object.defineProperty,J5=Object.getOwnPropertySymbols,AH=Object.prototype.hasOwnProperty,DH=Object.prototype.propertyIsEnumerable,e6=(e,t,o)=>t in e?TH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,sp=(e,t)=>{for(var o in t||(t={}))AH.call(t,o)&&e6(e,o,t[o]);if(J5)for(var o of J5(t))DH.call(t,o)&&e6(e,o,t[o]);return e};function FH(e){return`__mantine-ref-${e||""}`}function t6(e,t,o){let n=r=>typeof r=="function"?r(t,o||{}):r||{};return Array.isArray(e)?e.map(r=>n(r.styles)).reduce((r,a)=>(Object.keys(a).forEach(i=>{r[i]?r[i]=sp(sp({},r[i]),a[i]):r[i]=sp({},a[i])}),r),{}):n(e)}function W(e){let t=typeof e=="function"?e:()=>e;function o(n,r){let a=je(),i=U5(r==null?void 0:r.name),l=N1(),{css:c,cx:s}=zs(),d=t(a,n,FH),h=t6(r==null?void 0:r.styles,a,n),v=t6(i,a,n),u=Object.fromEntries(Object.keys(d).map(w=>{let k=s({[c(d[w])]:!(r!=null&&r.unstyled)},c(v[w]),c(h[w]));return[w,k]}));return{classes:Z5({cx:s,classes:u,context:i,classNames:r==null?void 0:r.classNames,name:r==null?void 0:r.name,cache:l}),cx:s,theme:a}}return o}var $H=Object.defineProperty,VH=Object.defineProperties,UH=Object.getOwnPropertyDescriptors,o6=Object.getOwnPropertySymbols,qH=Object.prototype.hasOwnProperty,GH=Object.prototype.propertyIsEnumerable,n6=(e,t,o)=>t in e?$H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,bs=(e,t)=>{for(var o in t||(t={}))qH.call(t,o)&&n6(e,o,t[o]);if(o6)for(var o of o6(t))GH.call(t,o)&&n6(e,o,t[o]);return e},ys=(e,t)=>VH(e,UH(t)),Ls={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(.9) translateY(10px)"},transitionProperty:"transform, opacity"},Cs={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:ys(bs({},Ls),{common:{transformOrigin:"center center"}}),"pop-bottom-left":ys(bs({},Ls),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":ys(bs({},Ls),{common:{transformOrigin:"bottom right"}}),"pop-top-left":ys(bs({},Ls),{common:{transformOrigin:"top left"}}),"pop-top-right":ys(bs({},Ls),{common:{transformOrigin:"top right"}})};var j1=y(I()),r6=["mousedown","touchstart"];function dp(e,t,o){let n=(0,j1.useRef)();return(0,j1.useEffect)(()=>{let r=a=>{let{target:i}=a!=null?a:{};if(Array.isArray(o)){let l=(i==null?void 0:i.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(i)&&i.tagName!=="HTML";o.every(s=>!!s&&!a.composedPath().includes(s))&&!l&&e()}else n.current&&!n.current.contains(i)&&e()};return(t||r6).forEach(a=>document.addEventListener(a,r)),()=>{(t||r6).forEach(a=>document.removeEventListener(a,r))}},[n,e,o]),n}var fl=y(I());function KH(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(o){return e.addListener(t),()=>e.removeListener(t)}}function XH(e,t){return typeof t=="boolean"?t:typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function a6(e,t,{getInitialValueInEffect:o}={getInitialValueInEffect:!0}){let[n,r]=(0,fl.useState)(o?t:XH(e,t)),a=(0,fl.useRef)();return(0,fl.useEffect)(()=>{if("matchMedia"in window)return a.current=window.matchMedia(e),r(a.current.matches),KH(a.current,i=>r(i.matches))},[e]),n}function bo(e,t,o){return Math.min(Math.max(e,t),o)}var H1=y(I()),ti=typeof document<"u"?H1.useLayoutEffect:H1.useEffect;var i6=y(I());var Is=y(I());function Ze(e,t){let o=(0,Is.useRef)(!1);(0,Is.useEffect)(()=>()=>{o.current=!1},[]),(0,Is.useEffect)(()=>{if(o.current)return e();o.current=!0},t)}function Ns({opened:e,shouldReturnFocus:t=!0}){let o=(0,i6.useRef)(),n=()=>{var r;o.current&&"focus"in o.current&&typeof o.current.focus=="function"&&((r=o.current)==null||r.focus({preventScroll:!0}))};return Ze(()=>{let r=-1,a=i=>{i.key==="Tab"&&window.clearTimeout(r)};return document.addEventListener("keydown",a),e?o.current=document.activeElement:t&&(r=window.setTimeout(n,10)),()=>{window.clearTimeout(r),document.removeEventListener("keydown",a)}},[e,t]),n}var oi=y(I());var YH=/input|select|textarea|button|object/,hp="a, input, select, textarea, button, object, [tabindex]";function QH(e){return e.style.display==="none"}function ZH(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let o=e;for(;o&&!(o===document.body||o.nodeType===11);){if(QH(o))return!1;o=o.parentNode}return!0}function l6(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function W1(e){let t=e.nodeName.toLowerCase(),o=!Number.isNaN(l6(e));return(YH.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||o)&&ZH(e)}function vp(e){let t=l6(e);return(Number.isNaN(t)||t>=0)&&W1(e)}function c6(e){return Array.from(e.querySelectorAll(hp)).filter(vp)}function s6(e,t){let o=c6(e);if(!o.length){t.preventDefault();return}let n=o[t.shiftKey?0:o.length-1],r=e.getRootNode();if(!(n===r.activeElement||e===r.activeElement))return;t.preventDefault();let i=o[t.shiftKey?o.length-1:0];i&&i.focus()}function d6(e,t="body > :not(script)"){let o=Array.from(document.querySelectorAll(t)).map(n=>{var r;if(((r=n==null?void 0:n.shadowRoot)==null?void 0:r.contains(e))||n.contains(e))return;let a=n.getAttribute("aria-hidden");return(a===null||a==="false")&&n.setAttribute("aria-hidden","true"),{node:n,ariaHidden:a}});return()=>{o.forEach(n=>{!n||(n.ariaHidden===null?n.node.removeAttribute("aria-hidden"):n.node.setAttribute("aria-hidden",n.ariaHidden))})}}function Bs(e=!0){let t=(0,oi.useRef)(),o=(0,oi.useRef)(null),n=(0,oi.useCallback)(r=>{if(!!e&&r!==null&&(o.current=d6(r),t.current!==r))if(r){let a=()=>{let i=r.querySelector("[data-autofocus]");if(!i){let l=Array.from(r.querySelectorAll(hp));i=l.find(vp)||l.find(W1)||null,!i&&W1(r)&&(i=r)}i&&i.focus({preventScroll:!0})};setTimeout(()=>{r.getRootNode()&&a()}),t.current=r}else t.current=null},[e]);return(0,oi.useEffect)(()=>{if(!e)return;let r=a=>{a.key==="Tab"&&t.current&&s6(t.current,a)};return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r),o.current&&o.current()}},[e]),n}var S1=y(I());var JH=()=>`mantine-${Math.random().toString(36).slice(2,11)}`,eW=S1.default["useId".toString()]||(()=>{});function tW(){let[e,t]=(0,S1.useState)("");return ti(()=>{t(JH())},[]),e}function oW(){let e=eW();return e?`mantine-${e.replace(/:/g,"")}`:""}function Do(e){return typeof e=="string"?e:oW()||tW()}var h6=y(I());function kl(e,t,o){(0,h6.useEffect)(()=>(window.addEventListener(e,t,o),()=>window.removeEventListener(e,t,o)),[e,t])}var v6=y(I());function ni(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function m6(...e){return t=>{e.forEach(o=>ni(o,t))}}function At(...e){return(0,v6.useCallback)(m6(...e),e)}var wl=y(I()),nW=Object.defineProperty,u6=Object.getOwnPropertySymbols,rW=Object.prototype.hasOwnProperty,aW=Object.prototype.propertyIsEnumerable,p6=(e,t,o)=>t in e?nW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,iW=(e,t)=>{for(var o in t||(t={}))rW.call(t,o)&&p6(e,o,t[o]);if(u6)for(var o of u6(t))aW.call(t,o)&&p6(e,o,t[o]);return e};function mp(e={resetOnExit:!1}){let[t,o]=(0,wl.useState)({x:0,y:0}),n=(0,wl.useRef)(),r=i=>{if(n.current){let l=i.currentTarget.getBoundingClientRect(),c=Math.max(0,Math.round(i.pageX-l.left-(window.pageXOffset||window.scrollX))),s=Math.max(0,Math.round(i.pageY-l.top-(window.pageYOffset||window.scrollY)));o({x:c,y:s})}else o({x:i.clientX,y:i.clientY})},a=()=>o({x:0,y:0});return(0,wl.useEffect)(()=>{let i=n!=null&&n.current?n.current:document;return i.addEventListener("mousemove",r),e.resetOnExit&&i.addEventListener("mouseleave",a),()=>{i.removeEventListener("mousemove",r),e.resetOnExit&&i.removeEventListener("mouseleave",a)}},[n.current]),iW({ref:n},t)}var Vn=y(I());var js=e=>({x:bo(e.x,0,1),y:bo(e.y,0,1)});function ri(e,t,o="ltr"){let n=(0,Vn.useRef)(),r=(0,Vn.useRef)(!1),a=(0,Vn.useRef)(!1),i=(0,Vn.useRef)(0),[l,c]=(0,Vn.useState)(!1);return(0,Vn.useEffect)(()=>{r.current=!0},[]),(0,Vn.useEffect)(()=>{let s=({x:m,y:f})=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{if(r.current&&n.current){n.current.style.userSelect="none";let g=n.current.getBoundingClientRect();if(g.width&&g.height){let M=bo((m-g.left)/g.width,0,1);e({x:o==="ltr"?M:1-M,y:bo((f-g.top)/g.height,0,1)})}}})},d=()=>{document.addEventListener("mousemove",k),document.addEventListener("mouseup",u),document.addEventListener("touchmove",p),document.addEventListener("touchend",u)},h=()=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",u),document.removeEventListener("touchmove",p),document.removeEventListener("touchend",u)},v=()=>{!a.current&&r.current&&(a.current=!0,typeof(t==null?void 0:t.onScrubStart)=="function"&&t.onScrubStart(),c(!0),d())},u=()=>{a.current&&r.current&&(a.current=!1,c(!1),h(),setTimeout(()=>{typeof(t==null?void 0:t.onScrubEnd)=="function"&&t.onScrubEnd()},0))},w=m=>{v(),m.preventDefault(),k(m)},k=m=>s({x:m.clientX,y:m.clientY}),E=m=>{m.cancelable&&m.preventDefault(),v(),p(m)},p=m=>{m.cancelable&&m.preventDefault(),s({x:m.changedTouches[0].clientX,y:m.changedTouches[0].clientY})};return n.current.addEventListener("mousedown",w),n.current.addEventListener("touchstart",E,{passive:!1}),()=>{n.current&&(n.current.removeEventListener("mousedown",w),n.current.removeEventListener("touchstart",E))}},[o,e]),{ref:n,active:l}}var f6=y(I());function ht({value:e,defaultValue:t,finalValue:o,onChange:n=()=>{}}){let[r,a]=(0,f6.useState)(t!==void 0?t:o),i=l=>{a(l),n==null||n(l)};return e!==void 0?[e,n,!0]:[r,i,!1]}function Hs(e,t){return a6("(prefers-reduced-motion: reduce)",e,t)}var Un=y(I());var k6=e=>e<.5?2*e*e:-1+(4-2*e)*e;var w6=({axis:e,target:t,parent:o,alignment:n,offset:r,isList:a})=>{if(!t||!o&&typeof document>"u")return 0;let i=!!o,c=(o||document.body).getBoundingClientRect(),s=t.getBoundingClientRect(),d=h=>s[h]-c[h];if(e==="y"){let h=d("top");if(h===0)return 0;if(n==="start"){let u=h-r;return u<=s.height*(a?0:1)||!a?u:0}let v=i?c.height:window.innerHeight;if(n==="end"){let u=h+r-v+s.height;return u>=-s.height*(a?0:1)||!a?u:0}return n==="center"?h-v/2+s.height/2:0}if(e==="x"){let h=d("left");if(h===0)return 0;if(n==="start"){let u=h-r;return u<=s.width||!a?u:0}let v=i?c.width:window.innerWidth;if(n==="end"){let u=h+r-v+s.width;return u>=-s.width||!a?u:0}return n==="center"?h-v/2+s.width/2:0}return 0};var E6=({axis:e,parent:t})=>{if(!t&&typeof document>"u")return 0;let o=e==="y"?"scrollTop":"scrollLeft";if(t)return t[o];let{body:n,documentElement:r}=document;return n[o]+r[o]};var g6=({axis:e,parent:t,distance:o})=>{if(!t&&typeof document>"u")return;let n=e==="y"?"scrollTop":"scrollLeft";if(t)t[n]=o;else{let{body:r,documentElement:a}=document;r[n]=o,a[n]=o}};function up({duration:e=1250,axis:t="y",onScrollFinish:o,easing:n=k6,offset:r=0,cancelable:a=!0,isList:i=!1}={}){let l=(0,Un.useRef)(0),c=(0,Un.useRef)(0),s=(0,Un.useRef)(!1),d=(0,Un.useRef)(null),h=(0,Un.useRef)(null),v=Hs(),u=()=>{l.current&&cancelAnimationFrame(l.current)},w=(0,Un.useCallback)(({alignment:E="start"}={})=>{var p;s.current=!1,l.current&&u();let m=(p=E6({parent:d.current,axis:t}))!=null?p:0,f=w6({parent:d.current,target:h.current,axis:t,alignment:E,offset:r,isList:i})-(d.current?0:m);function g(){c.current===0&&(c.current=performance.now());let z=performance.now()-c.current,x=v||e===0?1:z/e,b=m+f*n(x);g6({parent:d.current,axis:t,distance:b}),!s.current&&x<1?l.current=requestAnimationFrame(g):(typeof o=="function"&&o(),c.current=0,l.current=0,u())}g()},[t,e,n,i,r,o,v]),k=()=>{a&&(s.current=!0)};return kl("wheel",k,{passive:!0}),kl("touchmove",k,{passive:!0}),(0,Un.useEffect)(()=>u,[]),{scrollableRef:d,targetRef:h,scrollIntoView:w,cancel:u}}var gr=y(I());function x6(){if(typeof window>"u"||typeof document>"u")return 0;let e=parseInt(window.getComputedStyle(document.body).paddingRight,10),t=window.innerWidth-document.documentElement.clientWidth;return e+t}var M6=({disableBodyPadding:e})=>{let t=e?null:x6();return`body { --removed-scroll-width: ${t}px; touch-action: none; overflow: hidden !important; position: relative !important; ${t?"padding-right: var(--removed-scroll-width) !important;":""} - `};function h6(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function v6(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}function m6(){let e=document.createElement("style");return e.type="text/css",e.setAttribute("mantine-scroll-lock",""),e}function lp(e,t={disableBodyPadding:!1}){let[o,n]=(0,fr.useState)(e||!1),r=(0,fr.useRef)(0),{disableBodyPadding:a}=t,i=(0,fr.useRef)(null),l=()=>{r.current=window.scrollY;let s=d6({disableBodyPadding:a}),d=m6();h6(d,s),v6(d),i.current=d},c=()=>{!(i!=null&&i.current)||(i.current.parentNode.removeChild(i.current),i.current=null)};return(0,fr.useEffect)(()=>(o?l():c(),c),[o]),(0,fr.useEffect)(()=>{e!==void 0&&n(e)},[e]),(0,fr.useEffect)(()=>{e===void 0&&typeof window<"u"&&window.document.body.style.overflow==="hidden"&&n(!0)},[n]),[o,n]}function NH(){let{userAgent:e}=window.navigator,t=/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i,o=/(Win32)|(Win64)|(Windows)|(WinCE)/i,n=/(iPhone)|(iPad)|(iPod)/i;return t.test(e)?"macos":n.test(e)?"ios":o.test(e)?"windows":/Android/i.test(e)?"android":/Linux/i.test(e)?"linux":"undetermined"}function cp(){return typeof window<"u"?NH():"undetermined"}var j1=y(I());function Is(e){let t=(0,j1.useRef)();return(0,j1.useEffect)(()=>{t.current=e},[e]),t.current}var H1=y(I());function sp(){let[e,t]=(0,H1.useState)(!1);Xa(()=>{t(typeof window<"u"&&"EyeDropper"in window)},[]);let o=(0,H1.useCallback)((n={})=>{if(e)return new window.EyeDropper().open(n)},[e]);return{supported:e,open:o}}function dp(){return`mantine-${Math.random().toString(36).slice(2,11)}`}var S1=y(I());var u6=Object.getOwnPropertySymbols,BH=Object.prototype.hasOwnProperty,jH=Object.prototype.propertyIsEnumerable,HH=(e,t)=>{var o={};for(var n in e)BH.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&u6)for(var n of u6(e))t.indexOf(n)<0&&jH.call(e,n)&&(o[n]=e[n]);return o};function Qr(e){let t=e,{m:o,mx:n,my:r,mt:a,mb:i,ml:l,mr:c,p:s,px:d,py:h,pt:v,pb:u,pl:w,pr:k,bg:g,c:p,opacity:m,ff:f,fz:E,fw:M,lts:z,ta:x,lh:b,fs:L,tt:C,td:B,w:N,miw:j,maw:T,h:H,mih:_,mah:A,bgsz:F,bgp:V,bgr:$,bga:U,pos:ee,top:de,left:Q,bottom:se,right:ve,inset:re,display:ae}=t,me=HH(t,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display"]);return{systemStyles:fs({m:o,mx:n,my:r,mt:a,mb:i,ml:l,mr:c,p:s,px:d,py:h,pt:v,pb:u,pl:w,pr:k,bg:g,c:p,opacity:m,ff:f,fz:E,fw:M,lts:z,ta:x,lh:b,fs:L,tt:C,td:B,w:N,miw:j,maw:T,h:H,mih:_,mah:A,bgsz:F,bgp:V,bgr:$,bga:U,pos:ee,top:de,left:Q,bottom:se,right:ve,inset:re,display:ae}),rest:me}}function WH(e,t){let o=Object.keys(e).filter(n=>n!=="base").sort((n,r)=>t.fn.size({size:n,sizes:t.breakpoints})-t.fn.size({size:r,sizes:t.breakpoints}));return"base"in e?["base",...o]:o}function p6({value:e,theme:t,getValue:o,property:n}){if(e==null)return;if(typeof e=="object")return WH(e,t).reduce((i,l)=>{if(l==="base"&&e.base!==void 0){let s=o(e.base,t);return Array.isArray(n)?(n.forEach(d=>{i[d]=s}),i):(i[n]=s,i)}let c=o(e[l],t);return Array.isArray(n)?(i[t.fn.largerThan(l)]={},n.forEach(s=>{i[t.fn.largerThan(l)][s]=c}),i):(i[t.fn.largerThan(l)]={[n]:c},i)},{});let r=o(e,t);return Array.isArray(n)?n.reduce((a,i)=>(a[i]=r,a),{}):{[n]:r}}function f6(e,t){return e==="dimmed"?t.colorScheme==="dark"?t.colors.dark[2]:t.colors.gray[6]:t.fn.variant({variant:"filled",color:e,primaryFallback:!1}).background}function k6(e){return e}function w6(e,t){return t.fn.size({size:e,sizes:t.fontSizes})}var SH=["-xs","-sm","-md","-lg","-xl"];function g6(e,t){return SH.includes(e)?t.fn.size({size:e.replace("-",""),sizes:t.spacing})*-1:t.fn.size({size:e,sizes:t.spacing})}var E6={color:f6,default:k6,fontSize:w6,spacing:g6};var x6={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},mx:{type:"spacing",property:["marginRight","marginLeft"]},my:{type:"spacing",property:["marginTop","marginBottom"]},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},px:{type:"spacing",property:["paddingRight","paddingLeft"]},py:{type:"spacing",property:["paddingTop","paddingBottom"]},bg:{type:"color",property:"background"},c:{type:"color",property:"color"},opacity:{type:"default",property:"opacity"},ff:{type:"default",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"default",property:"fontWeight"},lts:{type:"default",property:"letterSpacing"},ta:{type:"default",property:"textAlign"},lh:{type:"default",property:"lineHeight"},fs:{type:"default",property:"fontStyle"},tt:{type:"default",property:"textTransform"},td:{type:"default",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"default",property:"background-size"},bgp:{type:"default",property:"background-position"},bgr:{type:"default",property:"background-repeat"},bga:{type:"default",property:"background-attachment"},pos:{type:"default",property:"position"},top:{type:"default",property:"top"},left:{type:"default",property:"left"},bottom:{type:"default",property:"bottom"},right:{type:"default",property:"right"},inset:{type:"default",property:"inset"},display:{type:"default",property:"display"}};var _H=Object.defineProperty,M6=Object.getOwnPropertySymbols,PH=Object.prototype.hasOwnProperty,OH=Object.prototype.propertyIsEnumerable,z6=(e,t,o)=>t in e?_H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,b6=(e,t)=>{for(var o in t||(t={}))PH.call(t,o)&&z6(e,o,t[o]);if(M6)for(var o of M6(t))OH.call(t,o)&&z6(e,o,t[o]);return e};function Ns(e,t,o=x6){return Object.keys(o).reduce((r,a)=>(a in e&&e[a]!==void 0&&r.push(p6({value:e[a],getValue:E6[o[a].type],property:o[a].property,theme:t})),r),[]).reduce((r,a)=>(Object.keys(a).forEach(i=>{typeof a[i]=="object"&&a[i]!==null&&i in r?r[i]=b6(b6({},r[i]),a[i]):r[i]=a[i]}),r),{})}function y6(e,t){return typeof e=="function"?e(t):e}function L6(e,t,o){let n=Ie(),{css:r,cx:a}=ws();return Array.isArray(e)?a(o,r(Ns(t,n)),e.map(i=>r(y6(i,n)))):a(o,r(y6(e,n)),r(Ns(t,n)))}var RH=Object.defineProperty,W1=Object.getOwnPropertySymbols,I6=Object.prototype.hasOwnProperty,N6=Object.prototype.propertyIsEnumerable,C6=(e,t,o)=>t in e?RH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,TH=(e,t)=>{for(var o in t||(t={}))I6.call(t,o)&&C6(e,o,t[o]);if(W1)for(var o of W1(t))N6.call(t,o)&&C6(e,o,t[o]);return e},AH=(e,t)=>{var o={};for(var n in e)I6.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&W1)for(var n of W1(e))t.indexOf(n)<0&&N6.call(e,n)&&(o[n]=e[n]);return o},B6=(0,S1.forwardRef)((e,t)=>{var o=e,{className:n,component:r,style:a,sx:i}=o,l=AH(o,["className","component","style","sx"]);let{systemStyles:c,rest:s}=Qr(l),d=r||"div";return S1.default.createElement(d,TH({ref:t,className:L6(i,c,n),style:a},s))});B6.displayName="@mantine/core/Box";var D=B6;var P1=y(I());var DH=Object.defineProperty,FH=Object.defineProperties,$H=Object.getOwnPropertyDescriptors,j6=Object.getOwnPropertySymbols,VH=Object.prototype.hasOwnProperty,UH=Object.prototype.propertyIsEnumerable,H6=(e,t,o)=>t in e?DH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,W6=(e,t)=>{for(var o in t||(t={}))VH.call(t,o)&&H6(e,o,t[o]);if(j6)for(var o of j6(t))UH.call(t,o)&&H6(e,o,t[o]);return e},qH=(e,t)=>FH(e,$H(t)),GH=W(e=>({root:qH(W6(W6({},e.fn.focusStyles()),e.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:e.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,textDecoration:"none",boxSizing:"border-box"})})),S6=GH;var KH=Object.defineProperty,_1=Object.getOwnPropertySymbols,P6=Object.prototype.hasOwnProperty,O6=Object.prototype.propertyIsEnumerable,_6=(e,t,o)=>t in e?KH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,YH=(e,t)=>{for(var o in t||(t={}))P6.call(t,o)&&_6(e,o,t[o]);if(_1)for(var o of _1(t))O6.call(t,o)&&_6(e,o,t[o]);return e},XH=(e,t)=>{var o={};for(var n in e)P6.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&_1)for(var n of _1(e))t.indexOf(n)<0&&O6.call(e,n)&&(o[n]=e[n]);return o},R6=(0,P1.forwardRef)((e,t)=>{let o=S("UnstyledButton",{},e),{className:n,component:r="button",unstyled:a}=o,i=XH(o,["className","component","unstyled"]),{classes:l,cx:c}=S6(null,{name:"UnstyledButton",unstyled:a});return P1.default.createElement(D,YH({component:r,ref:t,className:c(l.root,n),type:r==="button"?"button":void 0},i))});R6.displayName="@mantine/core/UnstyledButton";var ul=R6;var Bs=y(I());var QH=Object.defineProperty,ZH=Object.defineProperties,JH=Object.getOwnPropertyDescriptors,T6=Object.getOwnPropertySymbols,eW=Object.prototype.hasOwnProperty,tW=Object.prototype.propertyIsEnumerable,A6=(e,t,o)=>t in e?QH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,D6=(e,t)=>{for(var o in t||(t={}))eW.call(t,o)&&A6(e,o,t[o]);if(T6)for(var o of T6(t))tW.call(t,o)&&A6(e,o,t[o]);return e},oW=(e,t)=>ZH(e,JH(t)),pl={xs:18,sm:22,md:28,lg:34,xl:44};function nW({variant:e,theme:t,color:o,gradient:n}){let r=t.fn.variant({color:o,variant:e,gradient:n});return e==="gradient"?{border:0,backgroundImage:r.background,color:r.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:D6({border:`1px solid ${r.border}`,backgroundColor:r.background,color:r.color},t.fn.hover({backgroundColor:r.hover}))}var rW=W((e,{color:t,size:o,radius:n,variant:r,gradient:a})=>({root:oW(D6({},nW({variant:r,theme:e,color:t,gradient:a})),{position:"relative",height:e.fn.size({size:o,sizes:pl}),minHeight:e.fn.size({size:o,sizes:pl}),width:e.fn.size({size:o,sizes:pl}),minWidth:e.fn.size({size:o,sizes:pl}),borderRadius:e.fn.radius(n),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center","&:active":e.activeStyles,"&:disabled, &[data-disabled]":{color:e.colors.gray[e.colorScheme==="dark"?6:4],cursor:"not-allowed",backgroundColor:r==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),borderColor:r==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(n),cursor:"not-allowed"}}})})),F6=rW;var ox=y(I());var Rt=y(I()),aW=Object.defineProperty,O1=Object.getOwnPropertySymbols,V6=Object.prototype.hasOwnProperty,U6=Object.prototype.propertyIsEnumerable,$6=(e,t,o)=>t in e?aW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,iW=(e,t)=>{for(var o in t||(t={}))V6.call(t,o)&&$6(e,o,t[o]);if(O1)for(var o of O1(t))U6.call(t,o)&&$6(e,o,t[o]);return e},lW=(e,t)=>{var o={};for(var n in e)V6.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&O1)for(var n of O1(e))t.indexOf(n)<0&&U6.call(e,n)&&(o[n]=e[n]);return o};function q6(e){var t=e,{size:o,color:n}=t,r=lW(t,["size","color"]);return Rt.default.createElement("svg",iW({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:n,width:`${o}px`},r),Rt.default.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},Rt.default.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),Rt.default.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),Rt.default.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},Rt.default.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),Rt.default.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),Rt.default.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},Rt.default.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),Rt.default.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),Rt.default.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},Rt.default.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),Rt.default.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),Rt.default.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},Rt.default.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),Rt.default.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}var ei=y(I()),cW=Object.defineProperty,R1=Object.getOwnPropertySymbols,K6=Object.prototype.hasOwnProperty,Y6=Object.prototype.propertyIsEnumerable,G6=(e,t,o)=>t in e?cW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,sW=(e,t)=>{for(var o in t||(t={}))K6.call(t,o)&&G6(e,o,t[o]);if(R1)for(var o of R1(t))Y6.call(t,o)&&G6(e,o,t[o]);return e},dW=(e,t)=>{var o={};for(var n in e)K6.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&R1)for(var n of R1(e))t.indexOf(n)<0&&Y6.call(e,n)&&(o[n]=e[n]);return o};function X6(e){var t=e,{size:o,color:n}=t,r=dW(t,["size","color"]);return ei.default.createElement("svg",sW({width:`${o}px`,height:`${o}px`,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:n},r),ei.default.createElement("g",{fill:"none",fillRule:"evenodd"},ei.default.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},ei.default.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),ei.default.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},ei.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))}var Mn=y(I()),hW=Object.defineProperty,T1=Object.getOwnPropertySymbols,Z6=Object.prototype.hasOwnProperty,J6=Object.prototype.propertyIsEnumerable,Q6=(e,t,o)=>t in e?hW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,vW=(e,t)=>{for(var o in t||(t={}))Z6.call(t,o)&&Q6(e,o,t[o]);if(T1)for(var o of T1(t))J6.call(t,o)&&Q6(e,o,t[o]);return e},mW=(e,t)=>{var o={};for(var n in e)Z6.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&T1)for(var n of T1(e))t.indexOf(n)<0&&J6.call(e,n)&&(o[n]=e[n]);return o};function ex(e){var t=e,{size:o,color:n}=t,r=mW(t,["size","color"]);return Mn.default.createElement("svg",vW({width:`${o}px`,height:`${o/4}px`,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n},r),Mn.default.createElement("circle",{cx:"15",cy:"15",r:"15"},Mn.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),Mn.default.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),Mn.default.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},Mn.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),Mn.default.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),Mn.default.createElement("circle",{cx:"105",cy:"15",r:"15"},Mn.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),Mn.default.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var uW=Object.defineProperty,A1=Object.getOwnPropertySymbols,nx=Object.prototype.hasOwnProperty,rx=Object.prototype.propertyIsEnumerable,tx=(e,t,o)=>t in e?uW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,pW=(e,t)=>{for(var o in t||(t={}))nx.call(t,o)&&tx(e,o,t[o]);if(A1)for(var o of A1(t))rx.call(t,o)&&tx(e,o,t[o]);return e},fW=(e,t)=>{var o={};for(var n in e)nx.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&A1)for(var n of A1(e))t.indexOf(n)<0&&rx.call(e,n)&&(o[n]=e[n]);return o},hp={bars:q6,oval:X6,dots:ex},kW={xs:18,sm:22,md:36,lg:44,xl:58},wW={size:"md"};function tn(e){let t=S("Loader",wW,e),{size:o,color:n,variant:r}=t,a=fW(t,["size","color","variant"]),i=Ie(),l=r in hp?r:i.loader;return ox.default.createElement(D,pW({role:"presentation",component:hp[l]||hp.bars,size:i.fn.size({size:o,sizes:kW}),color:i.fn.variant({variant:"filled",primaryFallback:!1,color:n||i.primaryColor}).background},a))}tn.displayName="@mantine/core/Loader";var gW=Object.defineProperty,D1=Object.getOwnPropertySymbols,lx=Object.prototype.hasOwnProperty,cx=Object.prototype.propertyIsEnumerable,ax=(e,t,o)=>t in e?gW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,ix=(e,t)=>{for(var o in t||(t={}))lx.call(t,o)&&ax(e,o,t[o]);if(D1)for(var o of D1(t))cx.call(t,o)&&ax(e,o,t[o]);return e},EW=(e,t)=>{var o={};for(var n in e)lx.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&D1)for(var n of D1(e))t.indexOf(n)<0&&cx.call(e,n)&&(o[n]=e[n]);return o},xW={color:"gray",size:"md",variant:"subtle",loading:!1},sx=(0,Bs.forwardRef)((e,t)=>{let o=S("ActionIcon",xW,e),{className:n,color:r,children:a,radius:i,size:l,variant:c,gradient:s,disabled:d,loaderProps:h,loading:v,unstyled:u}=o,w=EW(o,["className","color","children","radius","size","variant","gradient","disabled","loaderProps","loading","unstyled"]),{classes:k,cx:g,theme:p}=F6({size:l,radius:i,color:r,variant:c,gradient:s},{name:"ActionIcon",unstyled:u}),m=p.fn.variant({color:r,variant:c}),f=Bs.default.createElement(tn,ix({color:m.color,size:p.fn.size({size:l,sizes:pl})-12},h));return Bs.default.createElement(ul,ix({className:g(k.root,n),ref:t,disabled:d,"data-disabled":d||void 0,"data-loading":v||void 0,unstyled:u},w),v?f:a)});sx.displayName="@mantine/core/ActionIcon";var on=sx;var F1=y(I());var fl=y(I()),dx=y(qa());function vp(e){let{children:t,target:o,className:n}=S("Portal",{},e),r=Ie(),[a,i]=(0,fl.useState)(!1),l=(0,fl.useRef)();return Xa(()=>(i(!0),l.current=o?typeof o=="string"?document.querySelector(o):o:document.createElement("div"),o||document.body.appendChild(l.current),()=>{!o&&document.body.removeChild(l.current)}),[o]),a?(0,dx.createPortal)(fl.default.createElement("div",{className:n,dir:r.dir},t),l.current):null}vp.displayName="@mantine/core/Portal";var MW=Object.defineProperty,$1=Object.getOwnPropertySymbols,vx=Object.prototype.hasOwnProperty,mx=Object.prototype.propertyIsEnumerable,hx=(e,t,o)=>t in e?MW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,zW=(e,t)=>{for(var o in t||(t={}))vx.call(t,o)&&hx(e,o,t[o]);if($1)for(var o of $1(t))mx.call(t,o)&&hx(e,o,t[o]);return e},bW=(e,t)=>{var o={};for(var n in e)vx.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&$1)for(var n of $1(e))t.indexOf(n)<0&&mx.call(e,n)&&(o[n]=e[n]);return o};function js(e){var t=e,{withinPortal:o=!0,children:n}=t,r=bW(t,["withinPortal","children"]);return o?F1.default.createElement(vp,zW({},r),n):F1.default.createElement(F1.default.Fragment,null,n)}js.displayName="@mantine/core/OptionalPortal";var zn=y(I());var yW=Object.defineProperty,LW=Object.defineProperties,CW=Object.getOwnPropertyDescriptors,ux=Object.getOwnPropertySymbols,IW=Object.prototype.hasOwnProperty,NW=Object.prototype.propertyIsEnumerable,px=(e,t,o)=>t in e?yW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,mp=(e,t)=>{for(var o in t||(t={}))IW.call(t,o)&&px(e,o,t[o]);if(ux)for(var o of ux(t))NW.call(t,o)&&px(e,o,t[o]);return e},fx=(e,t)=>LW(e,CW(t));function BW({variant:e,color:t,theme:o}){if(e==="filled")return{backgroundColor:o.fn.variant({variant:"filled",color:t}).background,color:o.white};if(e==="outline"){let r=o.fn.variant({variant:"outline",color:t});return{color:r.color,borderColor:r.border,backgroundColor:o.colorScheme==="dark"?o.colors.dark[6]:o.white}}let n=o.fn.variant({variant:"light",color:t});return{backgroundColor:n.background,color:n.color}}var jW=W((e,{color:t,radius:o,variant:n})=>({root:mp(fx(mp({},e.fn.fontStyles()),{position:"relative",overflow:"hidden",padding:`${e.spacing.sm}px ${e.spacing.md}px`,borderRadius:e.fn.radius(o),border:"1px solid transparent"}),BW({variant:n,color:t,theme:e})),wrapper:{display:"flex"},body:{flex:1},title:{boxSizing:"border-box",margin:0,marginBottom:7,display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,fontWeight:700,"&[data-with-close-button]":{paddingRight:e.spacing.md}},label:{display:"block",overflow:"hidden",textOverflow:"ellipsis"},icon:{lineHeight:1,width:20,height:20,display:"flex",alignItems:"center",justifyContent:"flex-start",marginRight:e.spacing.md,marginTop:1},message:fx(mp({},e.fn.fontStyles()),{lineHeight:e.lineHeight,textOverflow:"ellipsis",overflow:"hidden",fontSize:e.fontSizes.sm,color:n==="filled"?e.white:e.colorScheme==="dark"?n==="light"?e.white:e.colors.dark[0]:e.black}),closeButton:{position:"absolute",top:e.spacing.sm,right:e.spacing.sm,color:"inherit"}})),kx=jW;var Hs=y(I());var up=y(I()),HW=Object.defineProperty,wx=Object.getOwnPropertySymbols,WW=Object.prototype.hasOwnProperty,SW=Object.prototype.propertyIsEnumerable,gx=(e,t,o)=>t in e?HW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,_W=(e,t)=>{for(var o in t||(t={}))WW.call(t,o)&&gx(e,o,t[o]);if(wx)for(var o of wx(t))SW.call(t,o)&&gx(e,o,t[o]);return e};function pp(e){return up.default.createElement("svg",_W({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),up.default.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}pp.displayName="@mantine/core/CloseIcon";var PW=Object.defineProperty,V1=Object.getOwnPropertySymbols,xx=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,Ex=(e,t,o)=>t in e?PW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,OW=(e,t)=>{for(var o in t||(t={}))xx.call(t,o)&&Ex(e,o,t[o]);if(V1)for(var o of V1(t))Mx.call(t,o)&&Ex(e,o,t[o]);return e},RW=(e,t)=>{var o={};for(var n in e)xx.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&V1)for(var n of V1(e))t.indexOf(n)<0&&Mx.call(e,n)&&(o[n]=e[n]);return o},TW={xs:12,sm:14,md:16,lg:20,xl:24},AW={size:"md"},zx=(0,Hs.forwardRef)((e,t)=>{let o=S("CloseButton",AW,e),{iconSize:n,size:r="md"}=o,a=RW(o,["iconSize","size"]),i=Ie(),l=n||i.fn.size({size:r,sizes:TW});return Hs.default.createElement(on,OW({size:r,ref:t},a),Hs.default.createElement(pp,{width:l,height:l}))});zx.displayName="@mantine/core/CloseButton";var Zr=zx;var DW=Object.defineProperty,U1=Object.getOwnPropertySymbols,yx=Object.prototype.hasOwnProperty,Lx=Object.prototype.propertyIsEnumerable,bx=(e,t,o)=>t in e?DW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,FW=(e,t)=>{for(var o in t||(t={}))yx.call(t,o)&&bx(e,o,t[o]);if(U1)for(var o of U1(t))Lx.call(t,o)&&bx(e,o,t[o]);return e},$W=(e,t)=>{var o={};for(var n in e)yx.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&U1)for(var n of U1(e))t.indexOf(n)<0&&Lx.call(e,n)&&(o[n]=e[n]);return o},VW={variant:"light"},Ws=(0,zn.forwardRef)((e,t)=>{let o=S("Alert",VW,e),{id:n,className:r,title:a,variant:i,children:l,color:c,classNames:s,icon:d,styles:h,onClose:v,radius:u,withCloseButton:w,closeButtonLabel:k,unstyled:g}=o,p=$W(o,["id","className","title","variant","children","color","classNames","icon","styles","onClose","radius","withCloseButton","closeButtonLabel","unstyled"]),{classes:m,cx:f}=kx({color:c,radius:u,variant:i},{classNames:s,styles:h,unstyled:g,name:"Alert"}),E=Ro(n),M=a&&`${E}-title`,z=`${E}-body`;return zn.default.createElement(D,FW({id:E,role:"alert","aria-labelledby":M,"aria-describedby":z,className:f(m.root,m[i],r),ref:t},p),zn.default.createElement("div",{className:m.wrapper},d&&zn.default.createElement("div",{className:m.icon},d),zn.default.createElement("div",{className:m.body},a&&zn.default.createElement("div",{className:m.title,"data-with-close-button":w||void 0},zn.default.createElement("span",{id:M,className:m.label},a)),w&&zn.default.createElement(Zr,{className:m.closeButton,onClick:v,variant:"transparent",size:16,iconSize:16,"aria-label":k}),zn.default.createElement("div",{id:z,className:m.message},l))))});Ws.displayName="@mantine/core/Alert";var G1=y(I());var UW=Object.defineProperty,qW=Object.defineProperties,GW=Object.getOwnPropertyDescriptors,Cx=Object.getOwnPropertySymbols,KW=Object.prototype.hasOwnProperty,YW=Object.prototype.propertyIsEnumerable,Ix=(e,t,o)=>t in e?UW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ss=(e,t)=>{for(var o in t||(t={}))KW.call(t,o)&&Ix(e,o,t[o]);if(Cx)for(var o of Cx(t))YW.call(t,o)&&Ix(e,o,t[o]);return e},XW=(e,t)=>qW(e,GW(t));function QW({underline:e,strikethrough:t}){let o=[];return e&&o.push("underline"),t&&o.push("line-through"),o.length>0?o.join(" "):"none"}function ZW({theme:e,color:t,variant:o}){return t==="dimmed"?e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]:typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?e.fn.variant({variant:"filled",color:t}).background:o==="link"?e.colors[e.primaryColor][e.colorScheme==="dark"?4:7]:t||"inherit"}function JW(e){return typeof e=="number"?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:null}function eS(e){return e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:null}var tS=W((e,{color:t,variant:o,size:n,lineClamp:r,truncate:a,inline:i,inherit:l,underline:c,gradient:s,weight:d,transform:h,align:v,strikethrough:u,italic:w})=>{let k=e.fn.variant({variant:"gradient",gradient:s});return{root:Ss(XW(Ss(Ss(Ss(Ss({},e.fn.fontStyles()),e.fn.focusStyles()),JW(r)),eS(a)),{color:ZW({color:t,theme:e,variant:o}),fontFamily:l?"inherit":e.fontFamily,fontSize:l||n===void 0?"inherit":e.fn.size({size:n,sizes:e.fontSizes}),lineHeight:l?"inherit":i?1:e.lineHeight,textDecoration:QW({underline:c,strikethrough:u}),WebkitTapHighlightColor:"transparent",fontWeight:l?"inherit":d,textTransform:h,textAlign:v,fontStyle:w?"italic":void 0}),e.fn.hover(o==="link"&&c===void 0?{textDecoration:"underline"}:void 0)),gradient:{backgroundImage:k.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}}),Nx=tS;var oS=Object.defineProperty,q1=Object.getOwnPropertySymbols,jx=Object.prototype.hasOwnProperty,Hx=Object.prototype.propertyIsEnumerable,Bx=(e,t,o)=>t in e?oS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,nS=(e,t)=>{for(var o in t||(t={}))jx.call(t,o)&&Bx(e,o,t[o]);if(q1)for(var o of q1(t))Hx.call(t,o)&&Bx(e,o,t[o]);return e},rS=(e,t)=>{var o={};for(var n in e)jx.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&q1)for(var n of q1(e))t.indexOf(n)<0&&Hx.call(e,n)&&(o[n]=e[n]);return o},aS={variant:"text"},Wx=(0,G1.forwardRef)((e,t)=>{let o=S("Text",aS,e),{className:n,size:r,weight:a,transform:i,color:l,align:c,variant:s,lineClamp:d,truncate:h,gradient:v,inline:u,inherit:w,underline:k,strikethrough:g,italic:p,classNames:m,styles:f,unstyled:E,span:M}=o,z=rS(o,["className","size","weight","transform","color","align","variant","lineClamp","truncate","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span"]),{classes:x,cx:b}=Nx({variant:s,color:l,size:r,lineClamp:d,truncate:h,inline:u,inherit:w,underline:k,strikethrough:g,italic:p,weight:a,transform:i,align:c,gradient:v},{unstyled:E,name:"Text"});return G1.default.createElement(D,nS({ref:t,className:b(x.root,{[x.gradient]:s==="gradient"},n),component:M?"span":"div"},z))});Wx.displayName="@mantine/core/Text";var oe=Wx;var Fn=y(I());var _s=y(I());var K1={xs:1,sm:2,md:3,lg:4,xl:5};function Y1(e,t){let o=e.fn.variant({variant:"outline",color:t}).border;return typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?o:t===void 0?e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]:t}var iS=W((e,{size:t,variant:o,color:n})=>({root:{},withLabel:{borderTop:"0 !important"},left:{"&::before":{display:"none"}},right:{"&::after":{display:"none"}},label:{display:"flex",alignItems:"center","&::before":{content:'""',flex:1,height:1,borderTop:`${e.fn.size({size:t,sizes:K1})}px ${o} ${Y1(e,n)}`,marginRight:e.spacing.xs},"&::after":{content:'""',flex:1,borderTop:`${e.fn.size({size:t,sizes:K1})}px ${o} ${Y1(e,n)}`,marginLeft:e.spacing.xs}},labelDefaultStyles:{color:n==="dark"?e.colors.dark[1]:e.fn.themeColor(n,e.colorScheme==="dark"?5:e.fn.primaryShade(),!1)},horizontal:{border:0,borderTopWidth:e.fn.size({size:t,sizes:K1}),borderTopColor:Y1(e,n),borderTopStyle:o,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:e.fn.size({size:t,sizes:K1}),borderLeftColor:Y1(e,n),borderLeftStyle:o}})),Sx=iS;var lS=Object.defineProperty,cS=Object.defineProperties,sS=Object.getOwnPropertyDescriptors,X1=Object.getOwnPropertySymbols,Ox=Object.prototype.hasOwnProperty,Rx=Object.prototype.propertyIsEnumerable,_x=(e,t,o)=>t in e?lS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Px=(e,t)=>{for(var o in t||(t={}))Ox.call(t,o)&&_x(e,o,t[o]);if(X1)for(var o of X1(t))Rx.call(t,o)&&_x(e,o,t[o]);return e},dS=(e,t)=>cS(e,sS(t)),hS=(e,t)=>{var o={};for(var n in e)Ox.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&X1)for(var n of X1(e))t.indexOf(n)<0&&Rx.call(e,n)&&(o[n]=e[n]);return o},vS={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},Q1=(0,_s.forwardRef)((e,t)=>{let o=S("Divider",vS,e),{className:n,color:r,orientation:a,size:i,label:l,labelPosition:c,labelProps:s,variant:d,styles:h,classNames:v,unstyled:u}=o,w=hS(o,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),{classes:k,cx:g}=Sx({color:r,size:i,variant:d},{classNames:v,styles:h,unstyled:u,name:"Divider"}),p=a==="vertical",m=a==="horizontal",f=!!l&&m,E=!(s!=null&&s.color);return _s.default.createElement(D,Px({ref:t,className:g(k.root,{[k.vertical]:p,[k.horizontal]:m,[k.withLabel]:f},n),role:"separator"},w),f&&_s.default.createElement(oe,dS(Px({},s),{size:(s==null?void 0:s.size)||"xs",sx:{marginTop:2},className:g(k.label,k[c],{[k.labelDefaultStyles]:E})}),l))});Q1.displayName="@mantine/core/Divider";var mS=Object.defineProperty,uS=Object.defineProperties,pS=Object.getOwnPropertyDescriptors,Tx=Object.getOwnPropertySymbols,fS=Object.prototype.hasOwnProperty,kS=Object.prototype.propertyIsEnumerable,Ax=(e,t,o)=>t in e?mS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Dx=(e,t)=>{for(var o in t||(t={}))fS.call(t,o)&&Ax(e,o,t[o]);if(Tx)for(var o of Tx(t))kS.call(t,o)&&Ax(e,o,t[o]);return e},wS=(e,t)=>uS(e,pS(t)),gS=W((e,{size:t})=>({item:wS(Dx({},e.fn.fontStyles()),{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`${e.fn.size({size:t,sizes:e.spacing})/1.5}px ${e.fn.size({size:t,sizes:e.spacing})}px`,cursor:"pointer",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,borderRadius:e.fn.radius(),"&[data-hovered]":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[1]},"&[data-selected]":Dx({backgroundColor:e.fn.variant({variant:"filled"}).background,color:e.fn.variant({variant:"filled"}).color},e.fn.hover({backgroundColor:e.fn.variant({variant:"filled"}).hover})),"&[data-disabled]":{cursor:"default",color:e.colors.dark[2]}}),nothingFound:{boxSizing:"border-box",color:e.colors.gray[6],paddingTop:e.fn.size({size:t,sizes:e.spacing})/2,paddingBottom:e.fn.size({size:t,sizes:e.spacing})/2,textAlign:"center"},separator:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`${e.fn.size({size:t,sizes:e.spacing})/1.5}px ${e.fn.size({size:t,sizes:e.spacing})}px`},separatorLabel:{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}})),Fx=gS;var ES=Object.defineProperty,$x=Object.getOwnPropertySymbols,xS=Object.prototype.hasOwnProperty,MS=Object.prototype.propertyIsEnumerable,Vx=(e,t,o)=>t in e?ES(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,zS=(e,t)=>{for(var o in t||(t={}))xS.call(t,o)&&Vx(e,o,t[o]);if($x)for(var o of $x(t))MS.call(t,o)&&Vx(e,o,t[o]);return e};function fp({data:e,hovered:t,classNames:o,styles:n,isItemSelected:r,uuid:a,__staticSelector:i,onItemHover:l,onItemSelect:c,itemsRefs:s,itemComponent:d,size:h,nothingFound:v,creatable:u,createLabel:w,unstyled:k}){let{classes:g}=Fx({size:h},{classNames:o,styles:n,unstyled:k,name:i}),p=[],m=[],f=null,E=(z,x)=>{let b=typeof r=="function"?r(z.value):!1;return Fn.default.createElement(d,zS({key:z.value,className:g.item,"data-disabled":z.disabled||void 0,"data-hovered":!z.disabled&&t===x||void 0,"data-selected":!z.disabled&&b||void 0,onMouseEnter:()=>l(x),id:`${a}-${x}`,role:"option",tabIndex:-1,"aria-selected":t===x,ref:L=>{s&&s.current&&(s.current[z.value]=L)},onMouseDown:z.disabled?null:L=>{L.preventDefault(),c(z)},disabled:z.disabled},z))},M=null;if(e.forEach((z,x)=>{z.creatable?f=x:z.group?(M!==z.group&&(M=z.group,m.push(Fn.default.createElement("div",{className:g.separator,key:`__mantine-divider-${x}`},Fn.default.createElement(Q1,{classNames:{label:g.separatorLabel},label:z.group})))),m.push(E(z,x))):p.push(E(z,x))}),u){let z=e[f];p.push(Fn.default.createElement("div",{key:dp(),className:g.item,"data-hovered":t===f||void 0,onMouseEnter:()=>l(f),onMouseDown:x=>{x.preventDefault(),c(z)},tabIndex:-1,ref:x=>{s&&s.current&&(s.current[z.value]=x)}},w))}return m.length>0&&p.length>0&&p.unshift(Fn.default.createElement("div",{className:g.separator,key:"empty-group-separator"},Fn.default.createElement(Q1,null))),m.length>0||p.length>0?Fn.default.createElement(Fn.default.Fragment,null,m,p):Fn.default.createElement(oe,{size:h,unstyled:k,className:g.nothingFound},v)}fp.displayName="@mantine/core/SelectItems";var J1=y(I()),bS=Object.defineProperty,Z1=Object.getOwnPropertySymbols,qx=Object.prototype.hasOwnProperty,Gx=Object.prototype.propertyIsEnumerable,Ux=(e,t,o)=>t in e?bS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,yS=(e,t)=>{for(var o in t||(t={}))qx.call(t,o)&&Ux(e,o,t[o]);if(Z1)for(var o of Z1(t))Gx.call(t,o)&&Ux(e,o,t[o]);return e},LS=(e,t)=>{var o={};for(var n in e)qx.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Z1)for(var n of Z1(e))t.indexOf(n)<0&&Gx.call(e,n)&&(o[n]=e[n]);return o},kp=(0,J1.forwardRef)((e,t)=>{var o=e,{label:n,value:r}=o,a=LS(o,["label","value"]);return J1.default.createElement("div",yS({ref:t},a),n||r)});kp.displayName="@mantine/core/DefaultItem";var Nl=y(I());var ld=y(I());var Tt=y(I());var R=y(I());var kl=y(I()),jS=y(qa());var qe=y(I());var Kx=y(I());function CS(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function wp(...e){return t=>e.forEach(o=>CS(o,t))}function kr(...e){return(0,Kx.useCallback)(wp(...e),e)}var Ep=(0,qe.forwardRef)((e,t)=>{let i=e,{children:o}=i,n=we(i,["children"]),r=qe.Children.toArray(o),a=r.find(NS);if(a){let l=a.props.children,c=r.map(s=>s===a?qe.Children.count(l)>1?qe.Children.only(null):(0,qe.isValidElement)(l)?l.props.children:null:s);return(0,qe.createElement)(gp,Le({},n,{ref:t}),(0,qe.isValidElement)(l)?(0,qe.cloneElement)(l,void 0,c):null)}return(0,qe.createElement)(gp,Le({},n,{ref:t}),o)});Ep.displayName="Slot";var gp=(0,qe.forwardRef)((e,t)=>{let r=e,{children:o}=r,n=we(r,["children"]);return(0,qe.isValidElement)(o)?(0,qe.cloneElement)(o,ke(K({},BS(n,o.props)),{ref:wp(t,o.ref)})):qe.Children.count(o)>1?qe.Children.only(null):null});gp.displayName="SlotClone";var IS=({children:e})=>(0,qe.createElement)(qe.Fragment,null,e);function NS(e){return(0,qe.isValidElement)(e)&&e.type===IS}function BS(e,t){let o=K({},t);for(let n in t){let r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?o[n]=(...l)=>{a(...l),r(...l)}:r&&(o[n]=r):n==="style"?o[n]=K(K({},r),a):n==="className"&&(o[n]=[r,a].filter(Boolean).join(" "))}return K(K({},e),o)}var HS=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],wl=HS.reduce((e,t)=>{let o=(0,kl.forwardRef)((n,r)=>{let c=n,{asChild:a}=c,i=we(c,["asChild"]),l=a?Ep:t;return(0,kl.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,kl.createElement)(l,Le({},i,{ref:r}))});return o.displayName=`Primitive.${t}`,ke(K({},e),{[t]:o})},{});var Yt=y(I()),Xx=y(qa());var Yx=y(I()),Ps=Boolean(globalThis==null?void 0:globalThis.document)?Yx.useLayoutEffect:()=>{};function WS(e,t){return(0,Yt.useReducer)((o,n)=>{let r=t[o][n];return r!=null?r:o},e)}var gl=e=>{let{present:t,children:o}=e,n=SS(t),r=typeof o=="function"?o({present:n.isPresent}):Yt.Children.only(o),a=kr(n.ref,r.ref);return typeof o=="function"||n.isPresent?(0,Yt.cloneElement)(r,{ref:a}):null};gl.displayName="Presence";function SS(e){let[t,o]=(0,Yt.useState)(),n=(0,Yt.useRef)({}),r=(0,Yt.useRef)(e),a=(0,Yt.useRef)("none"),i=e?"mounted":"unmounted",[l,c]=WS(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,Yt.useEffect)(()=>{let s=ed(n.current);a.current=l==="mounted"?s:"none"},[l]),Ps(()=>{let s=n.current,d=r.current;if(d!==e){let v=a.current,u=ed(s);e?c("MOUNT"):u==="none"||(s==null?void 0:s.display)==="none"?c("UNMOUNT"):c(d&&v!==u?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),Ps(()=>{if(t){let s=h=>{let u=ed(n.current).includes(h.animationName);h.target===t&&u&&(0,Xx.flushSync)(()=>c("ANIMATION_END"))},d=h=>{h.target===t&&(a.current=ed(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,Yt.useCallback)(s=>{s&&(n.current=getComputedStyle(s)),o(s)},[])}}function ed(e){return(e==null?void 0:e.animationName)||"none"}var bn=y(I());function Qx(e,t=[]){let o=[];function n(a,i){let l=(0,bn.createContext)(i),c=o.length;o=[...o,i];function s(h){let p=h,{scope:v,children:u}=p,w=we(p,["scope","children"]),k=(v==null?void 0:v[e][c])||l,g=(0,bn.useMemo)(()=>w,Object.values(w));return(0,bn.createElement)(k.Provider,{value:g},u)}function d(h,v){let u=(v==null?void 0:v[e][c])||l,w=(0,bn.useContext)(u);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${a}\``)}return s.displayName=a+"Provider",[s,d]}let r=()=>{let a=o.map(i=>(0,bn.createContext)(i));return function(l){let c=(l==null?void 0:l[e])||a;return(0,bn.useMemo)(()=>({[`__scope${e}`]:ke(K({},l),{[e]:c})}),[l,c])}};return r.scopeName=e,[n,_S(r,...t)]}function _S(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){let i=n.reduce((l,{useScope:c,scopeName:s})=>{let h=c(a)[`__scope${s}`];return K(K({},l),h)},{});return(0,bn.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return o.scopeName=t.scopeName,o}var El=y(I());function Jr(e){let t=(0,El.useRef)(e);return(0,El.useEffect)(()=>{t.current=e}),(0,El.useMemo)(()=>(...o)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...o)},[])}var Os=y(I()),PS=(0,Os.createContext)(void 0);function Zx(e){let t=(0,Os.useContext)(PS);return e||t||"ltr"}function Jx(e,[t,o]){return Math.min(o,Math.max(t,e))}function ea(e,t,{checkForDefaultPrevented:o=!0}={}){return function(r){if(e==null||e(r),o===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function OS(e,t){return(0,R.useReducer)((o,n)=>{let r=t[o][n];return r!=null?r:o},e)}var t8="ScrollArea",[o8,QZ]=Qx(t8),[RS,nn]=o8(t8),TS=(0,R.forwardRef)((e,t)=>{let B=e,{__scopeScrollArea:o,type:n="hover",dir:r,scrollHideDelay:a=600}=B,i=we(B,["__scopeScrollArea","type","dir","scrollHideDelay"]),[l,c]=(0,R.useState)(null),[s,d]=(0,R.useState)(null),[h,v]=(0,R.useState)(null),[u,w]=(0,R.useState)(null),[k,g]=(0,R.useState)(null),[p,m]=(0,R.useState)(0),[f,E]=(0,R.useState)(0),[M,z]=(0,R.useState)(!1),[x,b]=(0,R.useState)(!1),L=kr(t,N=>c(N)),C=Zx(r);return(0,R.createElement)(RS,{scope:o,type:n,dir:C,scrollHideDelay:a,scrollArea:l,viewport:s,onViewportChange:d,content:h,onContentChange:v,scrollbarX:u,onScrollbarXChange:w,scrollbarXEnabled:M,onScrollbarXEnabledChange:z,scrollbarY:k,onScrollbarYChange:g,scrollbarYEnabled:x,onScrollbarYEnabledChange:b,onCornerWidthChange:m,onCornerHeightChange:E},(0,R.createElement)(wl.div,Le({dir:C},i,{ref:L,style:K({position:"relative",["--radix-scroll-area-corner-width"]:p+"px",["--radix-scroll-area-corner-height"]:f+"px"},e.style)})))}),AS="ScrollAreaViewport",DS=(0,R.forwardRef)((e,t)=>{let c=e,{__scopeScrollArea:o,children:n}=c,r=we(c,["__scopeScrollArea","children"]),a=nn(AS,o),i=(0,R.useRef)(null),l=kr(t,i,a.onViewportChange);return(0,R.createElement)(R.Fragment,null,(0,R.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,R.createElement)(wl.div,Le({"data-radix-scroll-area-viewport":""},r,{ref:l,style:K({overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden"},e.style)}),(0,R.createElement)("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),wr="ScrollAreaScrollbar",FS=(0,R.forwardRef)((e,t)=>{let c=e,{forceMount:o}=c,n=we(c,["forceMount"]),r=nn(wr,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=r,l=e.orientation==="horizontal";return(0,R.useEffect)(()=>(l?a(!0):i(!0),()=>{l?a(!1):i(!1)}),[l,a,i]),r.type==="hover"?(0,R.createElement)($S,Le({},n,{ref:t,forceMount:o})):r.type==="scroll"?(0,R.createElement)(VS,Le({},n,{ref:t,forceMount:o})):r.type==="auto"?(0,R.createElement)(n8,Le({},n,{ref:t,forceMount:o})):r.type==="always"?(0,R.createElement)(Mp,Le({},n,{ref:t})):null}),$S=(0,R.forwardRef)((e,t)=>{let l=e,{forceMount:o}=l,n=we(l,["forceMount"]),r=nn(wr,e.__scopeScrollArea),[a,i]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{let c=r.scrollArea,s=0;if(c){let d=()=>{window.clearTimeout(s),i(!0)},h=()=>{s=window.setTimeout(()=>i(!1),r.scrollHideDelay)};return c.addEventListener("pointerenter",d),c.addEventListener("pointerleave",h),()=>{window.clearTimeout(s),c.removeEventListener("pointerenter",d),c.removeEventListener("pointerleave",h)}}},[r.scrollArea,r.scrollHideDelay]),(0,R.createElement)(gl,{present:o||a},(0,R.createElement)(n8,Le({"data-state":a?"visible":"hidden"},n,{ref:t})))}),VS=(0,R.forwardRef)((e,t)=>{let s=e,{forceMount:o}=s,n=we(s,["forceMount"]),r=nn(wr,e.__scopeScrollArea),a=e.orientation==="horizontal",i=nd(()=>c("SCROLL_END"),100),[l,c]=OS("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return(0,R.useEffect)(()=>{if(l==="idle"){let d=window.setTimeout(()=>c("HIDE"),r.scrollHideDelay);return()=>window.clearTimeout(d)}},[l,r.scrollHideDelay,c]),(0,R.useEffect)(()=>{let d=r.viewport,h=a?"scrollLeft":"scrollTop";if(d){let v=d[h],u=()=>{let w=d[h];v!==w&&(c("SCROLL"),i()),v=w};return d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[r.viewport,a,c,i]),(0,R.createElement)(gl,{present:o||l!=="hidden"},(0,R.createElement)(Mp,Le({"data-state":l==="hidden"?"hidden":"visible"},n,{ref:t,onPointerEnter:ea(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:ea(e.onPointerLeave,()=>c("POINTER_LEAVE"))})))}),n8=(0,R.forwardRef)((e,t)=>{let o=nn(wr,e.__scopeScrollArea),s=e,{forceMount:n}=s,r=we(s,["forceMount"]),[a,i]=(0,R.useState)(!1),l=e.orientation==="horizontal",c=nd(()=>{if(o.viewport){let d=o.viewport.offsetWidth{let v=e,{orientation:o="vertical"}=v,n=we(v,["orientation"]),r=nn(wr,e.__scopeScrollArea),a=(0,R.useRef)(null),i=(0,R.useRef)(0),[l,c]=(0,R.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),s=l8(l.viewport,l.content),d=ke(K({},n),{sizes:l,onSizesChange:c,hasThumb:Boolean(s>0&&s<1),onThumbChange:u=>a.current=u,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:u=>i.current=u});function h(u,w){return ZS(u,i.current,l,w)}return o==="horizontal"?(0,R.createElement)(US,Le({},d,{ref:t,onThumbPositionChange:()=>{if(r.viewport&&a.current){let u=r.viewport.scrollLeft,w=e8(u,l,r.dir);a.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:u=>{r.viewport&&(r.viewport.scrollLeft=u)},onDragScroll:u=>{r.viewport&&(r.viewport.scrollLeft=h(u,r.dir))}})):o==="vertical"?(0,R.createElement)(qS,Le({},d,{ref:t,onThumbPositionChange:()=>{if(r.viewport&&a.current){let u=r.viewport.scrollTop,w=e8(u,l);a.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:u=>{r.viewport&&(r.viewport.scrollTop=u)},onDragScroll:u=>{r.viewport&&(r.viewport.scrollTop=h(u))}})):null}),US=(0,R.forwardRef)((e,t)=>{let d=e,{sizes:o,onSizesChange:n}=d,r=we(d,["sizes","onSizesChange"]),a=nn(wr,e.__scopeScrollArea),[i,l]=(0,R.useState)(),c=(0,R.useRef)(null),s=kr(t,c,a.onScrollbarXChange);return(0,R.useEffect)(()=>{c.current&&l(getComputedStyle(c.current))},[c]),(0,R.createElement)(a8,Le({"data-orientation":"horizontal"},r,{ref:s,sizes:o,style:K({bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,["--radix-scroll-area-thumb-width"]:od(o)+"px"},e.style),onThumbPointerDown:h=>e.onThumbPointerDown(h.x),onDragScroll:h=>e.onDragScroll(h.x),onWheelScroll:(h,v)=>{if(a.viewport){let u=a.viewport.scrollLeft+h.deltaX;e.onWheelScroll(u),s8(u,v)&&h.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:td(i.paddingLeft),paddingEnd:td(i.paddingRight)}})}}))}),qS=(0,R.forwardRef)((e,t)=>{let d=e,{sizes:o,onSizesChange:n}=d,r=we(d,["sizes","onSizesChange"]),a=nn(wr,e.__scopeScrollArea),[i,l]=(0,R.useState)(),c=(0,R.useRef)(null),s=kr(t,c,a.onScrollbarYChange);return(0,R.useEffect)(()=>{c.current&&l(getComputedStyle(c.current))},[c]),(0,R.createElement)(a8,Le({"data-orientation":"vertical"},r,{ref:s,sizes:o,style:K({top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)",["--radix-scroll-area-thumb-height"]:od(o)+"px"},e.style),onThumbPointerDown:h=>e.onThumbPointerDown(h.y),onDragScroll:h=>e.onDragScroll(h.y),onWheelScroll:(h,v)=>{if(a.viewport){let u=a.viewport.scrollTop+h.deltaY;e.onWheelScroll(u),s8(u,v)&&h.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:td(i.paddingTop),paddingEnd:td(i.paddingBottom)}})}}))}),[GS,r8]=o8(wr),a8=(0,R.forwardRef)((e,t)=>{let L=e,{__scopeScrollArea:o,sizes:n,hasThumb:r,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:s,onWheelScroll:d,onResize:h}=L,v=we(L,["__scopeScrollArea","sizes","hasThumb","onThumbChange","onThumbPointerUp","onThumbPointerDown","onThumbPositionChange","onDragScroll","onWheelScroll","onResize"]),u=nn(wr,o),[w,k]=(0,R.useState)(null),g=kr(t,C=>k(C)),p=(0,R.useRef)(null),m=(0,R.useRef)(""),f=u.viewport,E=n.content-n.viewport,M=Jr(d),z=Jr(c),x=nd(h,10);function b(C){if(p.current){let B=C.clientX-p.current.left,N=C.clientY-p.current.top;s({x:B,y:N})}}return(0,R.useEffect)(()=>{let C=B=>{let N=B.target;(w==null?void 0:w.contains(N))&&M(B,E)};return document.addEventListener("wheel",C,{passive:!1}),()=>document.removeEventListener("wheel",C,{passive:!1})},[f,w,E,M]),(0,R.useEffect)(z,[n,z]),xl(w,x),xl(u.content,x),(0,R.createElement)(GS,{scope:o,scrollbar:w,hasThumb:r,onThumbChange:Jr(a),onThumbPointerUp:Jr(i),onThumbPositionChange:z,onThumbPointerDown:Jr(l)},(0,R.createElement)(wl.div,Le({},v,{ref:g,style:K({position:"absolute"},v.style),onPointerDown:ea(e.onPointerDown,C=>{C.button===0&&(C.target.setPointerCapture(C.pointerId),p.current=w.getBoundingClientRect(),m.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b(C))}),onPointerMove:ea(e.onPointerMove,b),onPointerUp:ea(e.onPointerUp,C=>{let B=C.target;B.hasPointerCapture(C.pointerId)&&B.releasePointerCapture(C.pointerId),document.body.style.webkitUserSelect=m.current,p.current=null})})))}),xp="ScrollAreaThumb",KS=(0,R.forwardRef)((e,t)=>{let a=e,{forceMount:o}=a,n=we(a,["forceMount"]),r=r8(xp,e.__scopeScrollArea);return(0,R.createElement)(gl,{present:o||r.hasThumb},(0,R.createElement)(YS,Le({ref:t},n)))}),YS=(0,R.forwardRef)((e,t)=>{let h=e,{__scopeScrollArea:o,style:n}=h,r=we(h,["__scopeScrollArea","style"]),a=nn(xp,o),i=r8(xp,o),{onThumbPositionChange:l}=i,c=kr(t,v=>i.onThumbChange(v)),s=(0,R.useRef)(),d=nd(()=>{s.current&&(s.current(),s.current=void 0)},100);return(0,R.useEffect)(()=>{let v=a.viewport;if(v){let u=()=>{if(d(),!s.current){let w=JS(v,l);s.current=w,l()}};return l(),v.addEventListener("scroll",u),()=>v.removeEventListener("scroll",u)}},[a.viewport,d,l]),(0,R.createElement)(wl.div,Le({"data-state":i.hasThumb?"visible":"hidden"},r,{ref:c,style:K({width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)"},n),onPointerDownCapture:ea(e.onPointerDownCapture,v=>{let w=v.target.getBoundingClientRect(),k=v.clientX-w.left,g=v.clientY-w.top;i.onThumbPointerDown({x:k,y:g})}),onPointerUp:ea(e.onPointerUp,i.onThumbPointerUp)}))}),i8="ScrollAreaCorner",XS=(0,R.forwardRef)((e,t)=>{let o=nn(i8,e.__scopeScrollArea),n=Boolean(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&n?(0,R.createElement)(QS,Le({},e,{ref:t})):null}),QS=(0,R.forwardRef)((e,t)=>{let d=e,{__scopeScrollArea:o}=d,n=we(d,["__scopeScrollArea"]),r=nn(i8,o),[a,i]=(0,R.useState)(0),[l,c]=(0,R.useState)(0),s=Boolean(a&&l);return xl(r.scrollbarX,()=>{var h;let v=((h=r.scrollbarX)===null||h===void 0?void 0:h.offsetHeight)||0;r.onCornerHeightChange(v),c(v)}),xl(r.scrollbarY,()=>{var h;let v=((h=r.scrollbarY)===null||h===void 0?void 0:h.offsetWidth)||0;r.onCornerWidthChange(v),i(v)}),s?(0,R.createElement)(wl.div,Le({},n,{ref:t,style:K({width:a,height:l,position:"absolute",right:r.dir==="ltr"?0:void 0,left:r.dir==="rtl"?0:void 0,bottom:0},e.style)})):null});function td(e){return e?parseInt(e,10):0}function l8(e,t){let o=e/t;return isNaN(o)?0:o}function od(e){let t=l8(e.viewport,e.content),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-o)*t;return Math.max(n,18)}function ZS(e,t,o,n="ltr"){let r=od(o),a=r/2,i=t||a,l=r-i,c=o.scrollbar.paddingStart+i,s=o.scrollbar.size-o.scrollbar.paddingEnd-l,d=o.content-o.viewport,h=n==="ltr"?[0,d]:[d*-1,0];return c8([c,s],h)(e)}function e8(e,t,o="ltr"){let n=od(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-r,i=t.content-t.viewport,l=a-n,c=o==="ltr"?[0,i]:[i*-1,0],s=Jx(e,c);return c8([0,i],[0,l])(s)}function c8(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function s8(e,t){return e>0&&e{})=>{let o={left:e.scrollLeft,top:e.scrollTop},n=0;return function r(){let a={left:e.scrollLeft,top:e.scrollTop},i=o.left!==a.left,l=o.top!==a.top;(i||l)&&t(),o=a,n=window.requestAnimationFrame(r)}(),()=>window.cancelAnimationFrame(n)};function nd(e,t){let o=Jr(e),n=(0,R.useRef)(0);return(0,R.useEffect)(()=>()=>window.clearTimeout(n.current),[]),(0,R.useCallback)(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(o,t)},[o,t])}function xl(e,t){let o=Jr(t);Ps(()=>{let n=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(o)});return r.observe(e),()=>{window.cancelAnimationFrame(n),r.unobserve(e)}}},[e,o])}var d8=TS,h8=DS,zp=FS,bp=KS,v8=XS;var t_=W((e,{scrollbarSize:t,offsetScrollbars:o,scrollbarHovered:n,hidden:r},a)=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:o?t:void 0,paddingBottom:o?t:void 0},scrollbar:{display:r?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:t/5,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[8]:e.colors.gray[0],[`& .${a("thumb")}`]:{backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.5):e.fn.rgba(e.black,.5)}},'&[data-orientation="vertical"]':{width:t},'&[data-orientation="horizontal"]':{flexDirection:"column",height:t},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:a("thumb"),flex:1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.4):e.fn.rgba(e.black,.4),borderRadius:t,position:"relative",transition:"background-color 150ms ease",display:r?"none":void 0,overflow:"hidden","&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:44,minHeight:44}},corner:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],transition:"opacity 150ms ease",opacity:n?1:0,display:r?"none":void 0}})),m8=t_;var o_=Object.defineProperty,n_=Object.defineProperties,r_=Object.getOwnPropertyDescriptors,rd=Object.getOwnPropertySymbols,p8=Object.prototype.hasOwnProperty,f8=Object.prototype.propertyIsEnumerable,u8=(e,t,o)=>t in e?o_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,yp=(e,t)=>{for(var o in t||(t={}))p8.call(t,o)&&u8(e,o,t[o]);if(rd)for(var o of rd(t))f8.call(t,o)&&u8(e,o,t[o]);return e},k8=(e,t)=>n_(e,r_(t)),w8=(e,t)=>{var o={};for(var n in e)p8.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&rd)for(var n of rd(e))t.indexOf(n)<0&&f8.call(e,n)&&(o[n]=e[n]);return o},g8={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},ad=(0,Tt.forwardRef)((e,t)=>{let o=S("ScrollArea",g8,e),{children:n,className:r,classNames:a,styles:i,scrollbarSize:l,scrollHideDelay:c,type:s,dir:d,offsetScrollbars:h,viewportRef:v,onScrollPositionChange:u,unstyled:w,viewportProps:k}=o,g=w8(o,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","viewportProps"]),[p,m]=(0,Tt.useState)(!1),f=Ie(),{classes:E,cx:M}=m8({scrollbarSize:l,offsetScrollbars:h,scrollbarHovered:p,hidden:s==="never"},{name:"ScrollArea",classNames:a,styles:i,unstyled:w});return Tt.default.createElement(d8,{type:s==="never"?"always":s,scrollHideDelay:c,dir:d||f.dir,ref:t,asChild:!0},Tt.default.createElement(D,yp({className:M(E.root,r)},g),Tt.default.createElement(h8,k8(yp({},k),{className:E.viewport,ref:v,onScroll:typeof u=="function"?({currentTarget:z})=>u({x:z.scrollLeft,y:z.scrollTop}):void 0}),n),Tt.default.createElement(zp,{orientation:"horizontal",className:E.scrollbar,forceMount:!0,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},Tt.default.createElement(bp,{className:E.thumb})),Tt.default.createElement(zp,{orientation:"vertical",className:E.scrollbar,forceMount:!0,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},Tt.default.createElement(bp,{className:E.thumb})),Tt.default.createElement(v8,{className:E.corner})))}),E8=(0,Tt.forwardRef)((e,t)=>{let o=S("ScrollAreaAutosize",g8,e),{maxHeight:n,children:r,classNames:a,styles:i,scrollbarSize:l,scrollHideDelay:c,type:s,dir:d,offsetScrollbars:h,viewportRef:v,onScrollPositionChange:u,unstyled:w,sx:k}=o,g=w8(o,["maxHeight","children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx"]);return Tt.default.createElement(D,k8(yp({},g),{ref:t,sx:[{display:"flex",maxHeight:n},...Eo(k)]}),Tt.default.createElement(D,{sx:{display:"flex",flexDirection:"column",flex:1}},Tt.default.createElement(ad,{classNames:a,styles:i,scrollHideDelay:c,scrollbarSize:l,type:s,dir:d,offsetScrollbars:h,viewportRef:v,onScrollPositionChange:u,unstyled:w},r)))});E8.displayName="@mantine/core/ScrollAreaAutosize";ad.displayName="@mantine/core/ScrollArea";ad.Autosize=E8;var Rs=ad;var a_=Object.defineProperty,i_=Object.defineProperties,l_=Object.getOwnPropertyDescriptors,id=Object.getOwnPropertySymbols,z8=Object.prototype.hasOwnProperty,b8=Object.prototype.propertyIsEnumerable,x8=(e,t,o)=>t in e?a_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,M8=(e,t)=>{for(var o in t||(t={}))z8.call(t,o)&&x8(e,o,t[o]);if(id)for(var o of id(t))b8.call(t,o)&&x8(e,o,t[o]);return e},c_=(e,t)=>i_(e,l_(t)),s_=(e,t)=>{var o={};for(var n in e)z8.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&id)for(var n of id(e))t.indexOf(n)<0&&b8.call(e,n)&&(o[n]=e[n]);return o},Ts=(0,ld.forwardRef)((e,t)=>{var o=e,{style:n}=o,r=s_(o,["style"]);return ld.default.createElement(Rs,c_(M8({},r),{style:M8({width:"100%"},n),viewportRef:t}),r.children)});Ts.displayName="@mantine/core/SelectScrollArea";var d_=W(()=>({dropdown:{},itemsWrapper:{padding:4,display:"flex",width:"100%",boxSizing:"border-box"}})),y8=d_;var Vn=y(I());function zl(e){return e.split("-")[1]}function Ip(e){return e==="y"?"height":"width"}function yn(e){return e.split("-")[0]}function ti(e){return["top","bottom"].includes(yn(e))?"x":"y"}function L8(e,t,o){let{reference:n,floating:r}=e,a=n.x+n.width/2-r.width/2,i=n.y+n.height/2-r.height/2,l=ti(t),c=Ip(l),s=n[c]/2-r[c]/2,d=l==="x",h;switch(yn(t)){case"top":h={x:a,y:n.y-r.height};break;case"bottom":h={x:a,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:i};break;case"left":h={x:n.x-r.width,y:i};break;default:h={x:n.x,y:n.y}}switch(zl(t)){case"start":h[l]-=s*(o&&d?-1:1);break;case"end":h[l]+=s*(o&&d?-1:1)}return h}var C8=async(e,t,o)=>{let{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:i}=o,l=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t)),s=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:h}=L8(s,n,c),v=n,u={},w=0;for(let k=0;k({name:"arrow",options:e,async fn(t){let{element:o,padding:n=0}=e||{},{x:r,y:a,placement:i,rects:l,platform:c}=t;if(o==null)return{};let s=Np(n),d={x:r,y:a},h=ti(i),v=Ip(h),u=await c.getDimensions(o),w=h==="y"?"top":"left",k=h==="y"?"bottom":"right",g=l.reference[v]+l.reference[h]-d[h]-l.floating[v],p=d[h]-l.reference[h],m=await(c.getOffsetParent==null?void 0:c.getOffsetParent(o)),f=m?h==="y"?m.clientHeight||0:m.clientWidth||0:0;f===0&&(f=l.floating[v]);let E=g/2-p/2,M=s[w],z=f-u[v]-s[k],x=f/2-u[v]/2+E,b=Cp(M,x,z),L=zl(i)!=null&&x!=b&&l.reference[v]/2-(xe.concat(t,t+"-start",t+"-end"),[]),v_={left:"right",right:"left",bottom:"top",top:"bottom"};function cd(e){return e.replace(/left|right|bottom|top/g,t=>v_[t])}function m_(e,t,o){o===void 0&&(o=!1);let n=zl(e),r=ti(e),a=Ip(r),i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=cd(i)),{main:i,cross:cd(i)}}var u_={start:"end",end:"start"};function Lp(e){return e.replace(/start|end/g,t=>u_[t])}var Bp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o;let{placement:n,middlewareData:r,rects:a,initialPlacement:i,platform:l,elements:c}=t,C=e,{mainAxis:s=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:w=!0}=C,k=we(C,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]),g=yn(n),p=yn(i)===i,m=await(l.isRTL==null?void 0:l.isRTL(c.floating)),f=h||(p||!w?[cd(i)]:function(B){let N=cd(B);return[Lp(B),N,Lp(N)]}(i));h||u==="none"||f.push(...function(B,N,j,T){let H=zl(B),_=function(A,F,V){let $=["left","right"],U=["right","left"],ee=["top","bottom"],de=["bottom","top"];switch(A){case"top":case"bottom":return V?F?U:$:F?$:U;case"left":case"right":return F?ee:de;default:return[]}}(yn(B),j==="start",T);return H&&(_=_.map(A=>A+"-"+H),N&&(_=_.concat(_.map(Lp)))),_}(i,w,u,m));let E=[i,...f],M=await As(t,k),z=[],x=((o=r.flip)==null?void 0:o.overflows)||[];if(s&&z.push(M[g]),d){let{main:B,cross:N}=m_(n,a,m);z.push(M[B],M[N])}if(x=[...x,{placement:n,overflows:z}],!z.every(B=>B<=0)){var b;let B=(((b=r.flip)==null?void 0:b.index)||0)+1,N=E[B];if(N)return{data:{index:B,overflows:x},reset:{placement:N}};let j="bottom";switch(v){case"bestFit":{var L;let T=(L=x.map(H=>[H,H.overflows.filter(_=>_>0).reduce((_,A)=>_+A,0)]).sort((H,_)=>H[1]-_[1])[0])==null?void 0:L[0].placement;T&&(j=T);break}case"initialPlacement":j=i}if(n!==j)return{reset:{placement:j}}}return{}}}};var jp=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){let{placement:o,elements:n,rects:r,platform:a,strategy:i}=t,{padding:l=2,x:c,y:s}=e,d=Ml(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:r.reference,offsetParent:await(a.getOffsetParent==null?void 0:a.getOffsetParent(n.floating)),strategy:i}):r.reference),h=await(a.getClientRects==null?void 0:a.getClientRects(n.reference))||[],v=Np(l),u=await a.getElementRects({reference:{getBoundingClientRect:function(){if(h.length===2&&h[0].left>h[1].right&&c!=null&&s!=null)return h.find(w=>c>w.left-v.left&&cw.top-v.top&&s=2){if(ti(o)==="x"){let E=h[0],M=h[h.length-1],z=yn(o)==="top",x=E.top,b=M.bottom,L=z?E.left:M.left,C=z?E.right:M.right;return{top:x,bottom:b,left:L,right:C,width:C-L,height:b-x,x:L,y:x}}let w=yn(o)==="left",k=ta(...h.map(E=>E.right)),g=I8(...h.map(E=>E.left)),p=h.filter(E=>w?E.left===g:E.right===k),m=p[0].top,f=p[p.length-1].bottom;return{top:m,bottom:f,left:g,right:k,width:k-g,height:f-m,x:g,y:m}}return d}},floating:n.floating,strategy:i});return r.reference.x!==u.reference.x||r.reference.y!==u.reference.y||r.reference.width!==u.reference.width||r.reference.height!==u.reference.height?{reset:{rects:u}}:{}}}},dd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){let{x:o,y:n}=t,r=await async function(a,i){let{placement:l,platform:c,elements:s}=a,d=await(c.isRTL==null?void 0:c.isRTL(s.floating)),h=yn(l),v=zl(l),u=ti(l)==="x",w=["left","top"].includes(h)?-1:1,k=d&&u?-1:1,g=typeof i=="function"?i(a):i,{mainAxis:p,crossAxis:m,alignmentAxis:f}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:K({mainAxis:0,crossAxis:0,alignmentAxis:null},g);return v&&typeof f=="number"&&(m=v==="end"?-1*f:f),u?{x:m*k,y:p*w}:{x:p*w,y:m*k}}(t,e);return{x:o+r.x,y:n+r.y,data:r}}}};function N8(e){return e==="x"?"y":"x"}var Hp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:r}=t,g=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:p=>{let{x:m,y:f}=p;return{x:m,y:f}}}}=g,c=we(g,["mainAxis","crossAxis","limiter"]),s={x:o,y:n},d=await As(t,c),h=ti(yn(r)),v=N8(h),u=s[h],w=s[v];if(a){let p=h==="y"?"bottom":"right";u=Cp(u+d[h==="y"?"top":"left"],u,u-d[p])}if(i){let p=v==="y"?"bottom":"right";w=Cp(w+d[v==="y"?"top":"left"],w,w-d[p])}let k=l.fn(ke(K({},t),{[h]:u,[v]:w}));return ke(K({},k),{data:{x:k.x-o,y:k.y-n}})}}},Wp=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:n,placement:r,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:s=!0}=e,d={x:o,y:n},h=ti(r),v=N8(h),u=d[h],w=d[v],k=typeof l=="function"?l(t):l,g=typeof k=="number"?{mainAxis:k,crossAxis:0}:K({mainAxis:0,crossAxis:0},k);if(c){let f=h==="y"?"height":"width",E=a.reference[h]-a.floating[f]+g.mainAxis,M=a.reference[h]+a.reference[f]-g.mainAxis;uM&&(u=M)}if(s){var p,m;let f=h==="y"?"width":"height",E=["top","left"].includes(yn(r)),M=a.reference[v]-a.floating[f]+(E&&((p=i.offset)==null?void 0:p[v])||0)+(E?0:g.crossAxis),z=a.reference[v]+a.reference[f]+(E?0:((m=i.offset)==null?void 0:m[v])||0)-(E?g.crossAxis:0);wz&&(w=z)}return{[h]:u,[v]:w}}}},Sp=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:o,rects:n,platform:r,elements:a}=t,f=e,{apply:i=()=>{}}=f,l=we(f,["apply"]),c=await As(t,l),s=yn(o),d=zl(o),h,v;s==="top"||s==="bottom"?(h=s,v=d===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(v=s,h=d==="end"?"top":"bottom");let u=ta(c.left,0),w=ta(c.right,0),k=ta(c.top,0),g=ta(c.bottom,0),p={availableHeight:n.floating.height-(["left","right"].includes(o)?2*(k!==0||g!==0?k+g:ta(c.top,c.bottom)):c[h]),availableWidth:n.floating.width-(["top","bottom"].includes(o)?2*(u!==0||w!==0?u+w:ta(c.left,c.right)):c[v])};await i(K(K({},t),p));let m=await r.getDimensions(a.floating);return n.floating.width!==m.width||n.floating.height!==m.height?{reset:{rects:!0}}:{}}}};function rn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $n(e){return rn(e).getComputedStyle(e)}function na(e){return P8(e)?(e.nodeName||"").toLowerCase():""}var hd;function _8(){if(hd)return hd;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(hd=e.brands.map(t=>t.brand+"/"+t.version).join(" "),hd):navigator.userAgent}function gr(e){return e instanceof rn(e).HTMLElement}function Ln(e){return e instanceof rn(e).Element}function P8(e){return e instanceof rn(e).Node}function B8(e){return typeof ShadowRoot>"u"?!1:e instanceof rn(e).ShadowRoot||e instanceof ShadowRoot}function md(e){let{overflow:t,overflowX:o,overflowY:n,display:r}=$n(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!["inline","contents"].includes(r)}function p_(e){return["table","td","th"].includes(na(e))}function _p(e){let t=/firefox/i.test(_8()),o=$n(e),n=o.backdropFilter||o.WebkitBackdropFilter;return o.transform!=="none"||o.perspective!=="none"||!!n&&n!=="none"||t&&o.willChange==="filter"||t&&!!o.filter&&o.filter!=="none"||["transform","perspective"].some(r=>o.willChange.includes(r))||["paint","layout","strict","content"].some(r=>{let a=o.contain;return a!=null&&a.includes(r)})}function O8(){return!/^((?!chrome|android).)*safari/i.test(_8())}function Pp(e){return["html","body","#document"].includes(na(e))}var j8=Math.min,Ds=Math.max,vd=Math.round;function R8(e){let t=$n(e),o=parseFloat(t.width),n=parseFloat(t.height),r=e.offsetWidth,a=e.offsetHeight,i=vd(o)!==r||vd(n)!==a;return i&&(o=r,n=a),{width:o,height:n,fallback:i}}function T8(e){return Ln(e)?e:e.contextElement}var A8={x:1,y:1};function bl(e){let t=T8(e);if(!gr(t))return A8;let o=t.getBoundingClientRect(),{width:n,height:r,fallback:a}=R8(t),i=(a?vd(o.width):o.width)/n,l=(a?vd(o.height):o.height)/r;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}function oi(e,t,o,n){var r,a;t===void 0&&(t=!1),o===void 0&&(o=!1);let i=e.getBoundingClientRect(),l=T8(e),c=A8;t&&(n?Ln(n)&&(c=bl(n)):c=bl(e));let s=l?rn(l):window,d=!O8()&&o,h=(i.left+(d&&((r=s.visualViewport)==null?void 0:r.offsetLeft)||0))/c.x,v=(i.top+(d&&((a=s.visualViewport)==null?void 0:a.offsetTop)||0))/c.y,u=i.width/c.x,w=i.height/c.y;if(l){let k=rn(l),g=n&&Ln(n)?rn(n):n,p=k.frameElement;for(;p&&n&&g!==k;){let m=bl(p),f=p.getBoundingClientRect(),E=getComputedStyle(p);f.x+=(p.clientLeft+parseFloat(E.paddingLeft))*m.x,f.y+=(p.clientTop+parseFloat(E.paddingTop))*m.y,h*=m.x,v*=m.y,u*=m.x,w*=m.y,h+=f.x,v+=f.y,p=rn(p).frameElement}}return{width:u,height:w,top:v,right:h+u,bottom:v+w,left:h,x:h,y:v}}function oa(e){return((P8(e)?e.ownerDocument:e.document)||window.document).documentElement}function ud(e){return Ln(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function D8(e){return oi(oa(e)).left+ud(e).scrollLeft}function f_(e,t,o){let n=gr(t),r=oa(t),a=oi(e,!0,o==="fixed",t),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};if(n||!n&&o!=="fixed")if((na(t)!=="body"||md(r))&&(i=ud(t)),gr(t)){let c=oi(t,!0);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else r&&(l.x=D8(r));return{x:a.left+i.scrollLeft-l.x,y:a.top+i.scrollTop-l.y,width:a.width,height:a.height}}function Fs(e){if(na(e)==="html")return e;let t=e.assignedSlot||e.parentNode||(B8(e)?e.host:null)||oa(e);return B8(t)?t.host:t}function H8(e){return gr(e)&&$n(e).position!=="fixed"?e.offsetParent:null}function W8(e){let t=rn(e),o=H8(e);for(;o&&p_(o)&&$n(o).position==="static";)o=H8(o);return o&&(na(o)==="html"||na(o)==="body"&&$n(o).position==="static"&&!_p(o))?t:o||function(n){let r=Fs(n);for(;gr(r)&&!Pp(r);){if(_p(r))return r;r=Fs(r)}return null}(e)||t}function F8(e){let t=Fs(e);return Pp(t)?e.ownerDocument.body:gr(t)&&md(t)?t:F8(t)}function yl(e,t){var o;t===void 0&&(t=[]);let n=F8(e),r=n===((o=e.ownerDocument)==null?void 0:o.body),a=rn(n);return r?t.concat(a,a.visualViewport||[],md(n)?n:[]):t.concat(n,yl(n))}function S8(e,t,o){return t==="viewport"?Ml(function(n,r){let a=rn(n),i=oa(n),l=a.visualViewport,c=i.clientWidth,s=i.clientHeight,d=0,h=0;if(l){c=l.width,s=l.height;let v=O8();(v||!v&&r==="fixed")&&(d=l.offsetLeft,h=l.offsetTop)}return{width:c,height:s,x:d,y:h}}(e,o)):Ln(t)?function(n,r){let a=oi(n,!0,r==="fixed"),i=a.top+n.clientTop,l=a.left+n.clientLeft,c=gr(n)?bl(n):{x:1,y:1},s=n.clientWidth*c.x,d=n.clientHeight*c.y,h=l*c.x,v=i*c.y;return{top:v,left:h,right:h+s,bottom:v+d,x:h,y:v,width:s,height:d}}(t,o):Ml(function(n){var r;let a=oa(n),i=ud(n),l=(r=n.ownerDocument)==null?void 0:r.body,c=Ds(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),s=Ds(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-i.scrollLeft+D8(n),h=-i.scrollTop;return $n(l||a).direction==="rtl"&&(d+=Ds(a.clientWidth,l?l.clientWidth:0)-c),{width:c,height:s,x:d,y:h}}(oa(e)))}var k_={getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e,a=o==="clippingAncestors"?function(s,d){let h=d.get(s);if(h)return h;let v=yl(s).filter(g=>Ln(g)&&na(g)!=="body"),u=null,w=$n(s).position==="fixed",k=w?Fs(s):s;for(;Ln(k)&&!Pp(k);){let g=$n(k),p=_p(k);(w?p||u:p||g.position!=="static"||!u||!["absolute","fixed"].includes(u.position))?u=g:v=v.filter(m=>m!==k),k=Fs(k)}return d.set(s,v),v}(t,this._c):[].concat(o),i=[...a,n],l=i[0],c=i.reduce((s,d)=>{let h=S8(t,d,r);return s.top=Ds(h.top,s.top),s.right=j8(h.right,s.right),s.bottom=j8(h.bottom,s.bottom),s.left=Ds(h.left,s.left),s},S8(t,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:o,strategy:n}=e,r=gr(o),a=oa(o);if(o===a)return t;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1},c={x:0,y:0};if((r||!r&&n!=="fixed")&&((na(o)!=="body"||md(a))&&(i=ud(o)),gr(o))){let s=oi(o);l=bl(o),c.x=s.x+o.clientLeft,c.y=s.y+o.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+c.x,y:t.y*l.y-i.scrollTop*l.y+c.y}},isElement:Ln,getDimensions:function(e){return R8(e)},getOffsetParent:W8,getDocumentElement:oa,getScale:bl,async getElementRects(e){let{reference:t,floating:o,strategy:n}=e,r=this.getOffsetParent||W8,a=this.getDimensions;return{reference:f_(t,await r(o),n),floating:K({x:0,y:0},await a(o))}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>$n(e).direction==="rtl"};function $8(e,t,o,n){n===void 0&&(n={});let{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:l=!1}=n,c=r&&!l,s=c||a?[...Ln(e)?yl(e):e.contextElement?yl(e.contextElement):[],...yl(t)]:[];s.forEach(u=>{c&&u.addEventListener("scroll",o,{passive:!0}),a&&u.addEventListener("resize",o)});let d,h=null;if(i){let u=!0;h=new ResizeObserver(()=>{u||o(),u=!1}),Ln(e)&&!l&&h.observe(e),Ln(e)||!e.contextElement||l||h.observe(e.contextElement),h.observe(t)}let v=l?oi(e):null;return l&&function u(){let w=oi(e);!v||w.x===v.x&&w.y===v.y&&w.width===v.width&&w.height===v.height||o(),v=w,d=requestAnimationFrame(u)}(),o(),()=>{var u;s.forEach(w=>{c&&w.removeEventListener("scroll",o),a&&w.removeEventListener("resize",o)}),(u=h)==null||u.disconnect(),h=null,l&&cancelAnimationFrame(d)}}var V8=(e,t,o)=>{let n=new Map,r=K({platform:k_},o),a=ke(K({},r.platform),{_c:n});return C8(e,t,ke(K({},r),{platform:a}))};var Mt=y(I()),fd=y(I()),U8=y(qa());var q8=e=>{let{element:t,padding:o}=e;function n(r){return Object.prototype.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){return n(t)?t.current!=null?sd({element:t.current,padding:o}).fn(r):{}:t?sd({element:t,padding:o}).fn(r):{}}}},Op=typeof document<"u"?fd.useLayoutEffect:fd.useEffect;function pd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!pd(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[n]))return!1;for(n=o;n--!==0;){let a=r[n];if(!(a==="_owner"&&e.$$typeof)&&!pd(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function w_(e){let t=Mt.useRef(e);return Op(()=>{t.current=e}),t}function G8(e){let{middleware:t=[],placement:o="bottom",strategy:n="absolute",whileElementsMounted:r,open:a}=e===void 0?{}:e,[i,l]=Mt.useState({x:null,y:null,strategy:n,placement:o,middlewareData:{},isPositioned:!1}),[c,s]=Mt.useState(t);pd(c,t)||s(t);let d=Mt.useRef(null),h=Mt.useRef(null),v=Mt.useRef(null),u=Mt.useRef(i),w=w_(r),k=Mt.useCallback(()=>{!d.current||!h.current||V8(d.current,h.current,{middleware:c,placement:o,strategy:n}).then(M=>{let z=ke(K({},M),{isPositioned:!0});g.current&&!pd(u.current,z)&&(u.current=z,U8.flushSync(()=>{l(z)}))})},[c,o,n]);Op(()=>{a===!1&&u.current.isPositioned&&l(M=>ke(K({},M),{isPositioned:!1}))},[a]);let g=Mt.useRef(!1);Op(()=>(g.current=!0,()=>{g.current=!1}),[]);let p=Mt.useCallback(()=>{if(typeof v.current=="function"&&(v.current(),v.current=null),d.current&&h.current)if(w.current){let M=w.current(d.current,h.current,k);v.current=M}else k()},[k,w]),m=Mt.useCallback(M=>{d.current!==M&&(d.current=M,p())},[p]),f=Mt.useCallback(M=>{h.current!==M&&(h.current=M,p())},[p]),E=Mt.useMemo(()=>({reference:d,floating:h}),[]);return Mt.useMemo(()=>ke(K({},i),{update:k,refs:E,reference:m,floating:f}),[i,k,E,m,f])}var He=y(I()),$s=y(I()),Q8=y(qa());var Z8=typeof document<"u"?$s.useLayoutEffect:$s.useEffect;function g_(){let e=new Map;return{emit(t,o){var n;(n=e.get(t))==null||n.forEach(r=>r(o))},on(t,o){e.set(t,[...e.get(t)||[],o])},off(t,o){e.set(t,(e.get(t)||[]).filter(n=>n!==o))}}}var Rp=!1,E_=0,K8=()=>"floating-ui-"+E_++;function x_(){let[e,t]=He.useState(()=>Rp?K8():void 0);return Z8(()=>{e==null&&t(K8())},[]),He.useEffect(()=>{Rp||(Rp=!0)},[]),e}var Y8=He["useId".toString()],bJ=Y8!=null?Y8:x_;var M_=He.createContext(null);var z_=()=>He.useContext(M_);function b_(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function y_(e){var t;return(t=b_(e).defaultView)!=null?t:window}function L_(e){return e?e instanceof y_(e).Element:!1}var X8=He["useInsertionEffect".toString()];function C_(e){let t=He.useRef(()=>{});return X8?X8(()=>{t.current=e}):t.current=e,He.useCallback(function(){for(var o=arguments.length,n=new Array(o),r=0;rg_())[0],w=G8({placement:r,middleware:a,strategy:i,whileElementsMounted:n}),k=C_(o),g=He.useMemo(()=>ke(K({},w.refs),{domReference:h}),[w.refs]),p=He.useMemo(()=>ke(K({},w),{refs:g,dataRef:v,nodeId:l,events:u,open:t,onOpenChange:k,_:{domReference:c}}),[w,l,u,t,k,g,c]);Z8(()=>{let E=d==null?void 0:d.nodesRef.current.find(M=>M.id===l);E&&(E.context=p)});let{reference:m}=w,f=He.useCallback(E=>{(L_(E)||E===null)&&(p.refs.domReference.current=E,s(E)),m(E)},[m,p.refs]);return He.useMemo(()=>ke(K({},w),{context:p,refs:g,reference:f}),[w,g,p,f])}var I_="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";var yJ="select:not([disabled]),a[href],button:not([disabled]),[tabindex],iframe,object,embed,area[href],audio[controls],video[controls],"+I_;var kd=y(I());function eM({opened:e,floating:t,positionDependencies:o}){let[n,r]=(0,kd.useState)(0);(0,kd.useEffect)(()=>{if(t.refs.reference.current&&t.refs.floating.current)return $8(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference,t.refs.floating,e,n]),Ke(()=>{t.update()},o),Ke(()=>{r(a=>a+1)},[e])}function N_(e){let t=[dd(e.offset)];return e.middlewares.shift&&t.push(Hp({limiter:Wp()})),e.middlewares.flip&&t.push(Bp()),e.middlewares.inline&&t.push(jp()),t.push(q8({element:e.arrowRef,padding:e.arrowOffset})),t}function tM(e){let[t,o]=lt({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=()=>{var i;(i=e.onClose)==null||i.call(e),o(!1)},r=()=>{var i,l;t?((i=e.onClose)==null||i.call(e),o(!1)):((l=e.onOpen)==null||l.call(e),o(!0))},a=J8({placement:e.position,middleware:[...N_(e),...e.width==="target"?[Sp({apply({rects:i}){var l,c;Object.assign((c=(l=a.refs.floating.current)==null?void 0:l.style)!=null?c:{},{width:`${i.reference.width}px`})}})]:[]]});return eM({opened:e.opened,positionDependencies:e.positionDependencies,floating:a}),Ke(()=>{var i;(i=e.onPositionChange)==null||i.call(e,a.placement)},[a.placement]),{floating:a,controlled:typeof e.opened=="boolean",opened:t,onClose:n,onToggle:r}}var wd={context:"Popover component was not found in the tree",children:"Popover.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"};var[oM,gd]=ns(wd.context);var Md=y(I());var B_=Object.defineProperty,j_=Object.defineProperties,H_=Object.getOwnPropertyDescriptors,xd=Object.getOwnPropertySymbols,rM=Object.prototype.hasOwnProperty,aM=Object.prototype.propertyIsEnumerable,nM=(e,t,o)=>t in e?B_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ed=(e,t)=>{for(var o in t||(t={}))rM.call(t,o)&&nM(e,o,t[o]);if(xd)for(var o of xd(t))aM.call(t,o)&&nM(e,o,t[o]);return e},W_=(e,t)=>j_(e,H_(t)),S_=(e,t)=>{var o={};for(var n in e)rM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&xd)for(var n of xd(e))t.indexOf(n)<0&&aM.call(e,n)&&(o[n]=e[n]);return o},__={refProp:"ref",popupType:"dialog"},Tp=(0,Md.forwardRef)((e,t)=>{let o=S("PopoverTarget",__,e),{children:n,refProp:r,popupType:a}=o,i=S_(o,["children","refProp","popupType"]);if(!as(n))throw new Error(wd.children);let l=i,c=gd(),s=Ot(c.reference,n.ref,t),d=c.withRoles?{"aria-haspopup":a,"aria-expanded":c.opened,"aria-controls":c.getDropdownId(),id:c.getTargetId()}:{};return(0,Md.cloneElement)(n,Ed(W_(Ed(Ed(Ed({},l),d),c.targetProps),{className:is(c.targetProps.className,l.className,n.props.className),[r]:s}),c.controlled?null:{onClick:c.onToggle}))});Tp.displayName="@mantine/core/PopoverTarget";var Il=y(I());var P_=W((e,{radius:t,shadow:o})=>({dropdown:{position:"absolute",backgroundColor:e.white,background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,padding:`${e.spacing.sm}px ${e.spacing.md}px`,boxShadow:e.shadows[o]||o||"none",borderRadius:e.fn.radius(t),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,zIndex:1}})),iM=P_;var Vs=y(I());var O_=Object.defineProperty,lM=Object.getOwnPropertySymbols,R_=Object.prototype.hasOwnProperty,T_=Object.prototype.propertyIsEnumerable,cM=(e,t,o)=>t in e?O_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ll=(e,t)=>{for(var o in t||(t={}))R_.call(t,o)&&cM(e,o,t[o]);if(lM)for(var o of lM(t))T_.call(t,o)&&cM(e,o,t[o]);return e},sM={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function zd({transition:e,state:t,duration:o,timingFunction:n}){let r={transitionDuration:`${o}ms`,transitionTimingFunction:n};return typeof e=="string"?e in Ms?Ll(Ll(Ll({transitionProperty:Ms[e].transitionProperty},r),Ms[e].common),Ms[e][sM[t]]):null:Ll(Ll(Ll({transitionProperty:e.transitionProperty},r),e.common),e[sM[t]])}var Cl=y(I());function bd({duration:e,exitDuration:t,timingFunction:o,mounted:n,onEnter:r,onExit:a,onEntered:i,onExited:l}){let c=Ie(),s=Cs(),d=c.respectReducedMotion?s:!1,[h,v]=(0,Cl.useState)(n?"entered":"exited"),u=d?0:e,w=(0,Cl.useRef)(-1),k=g=>{let p=g?r:a,m=g?i:l;if(v(g?"pre-entering":"pre-exiting"),window.clearTimeout(w.current),u=d?0:g?e:t,u===0)typeof p=="function"&&p(),typeof m=="function"&&m(),v(g?"entered":"exited");else{let f=window.setTimeout(()=>{typeof p=="function"&&p(),v(g?"entering":"exiting")},10);w.current=window.setTimeout(()=>{window.clearTimeout(f),typeof m=="function"&&m(),v(g?"entered":"exited")},u)}};return Ke(()=>{k(n)},[n]),(0,Cl.useEffect)(()=>()=>window.clearTimeout(w.current),[]),{transitionDuration:u,transitionStatus:h,transitionTimingFunction:o||c.transitionTimingFunction}}function ni({transition:e,duration:t=250,exitDuration:o=t,mounted:n,children:r,timingFunction:a,onExit:i,onEntered:l,onEnter:c,onExited:s}){let{transitionDuration:d,transitionStatus:h,transitionTimingFunction:v}=bd({mounted:n,exitDuration:o,duration:t,timingFunction:a,onExit:i,onEntered:l,onEnter:c,onExited:s});return d===0?n?Vs.default.createElement(Vs.default.Fragment,null,r({})):null:h==="exited"?null:Vs.default.createElement(Vs.default.Fragment,null,r(zd({transition:e,duration:d,state:h,timingFunction:v})))}ni.displayName="@mantine/core/Transition";var dM=y(I());function Ap({children:e,active:t=!0,refProp:o="ref"}){let n=ys(t),r=Ot(n,e==null?void 0:e.ref);return as(e)?(0,dM.cloneElement)(e,{[o]:r}):e}Ap.displayName="@mantine/core/FocusTrap";var Cd=y(I());var A_=Object.defineProperty,D_=Object.defineProperties,F_=Object.getOwnPropertyDescriptors,hM=Object.getOwnPropertySymbols,$_=Object.prototype.hasOwnProperty,V_=Object.prototype.propertyIsEnumerable,vM=(e,t,o)=>t in e?A_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,ra=(e,t)=>{for(var o in t||(t={}))$_.call(t,o)&&vM(e,o,t[o]);if(hM)for(var o of hM(t))V_.call(t,o)&&vM(e,o,t[o]);return e},yd=(e,t)=>D_(e,F_(t));function mM(e,t,o,n){return e==="center"||n==="center"?{top:t}:e==="end"?{bottom:o}:e==="start"?{top:o}:{}}function uM(e,t,o,n,r){return e==="center"||n==="center"?{left:t}:e==="end"?{[r==="ltr"?"right":"left"]:o}:e==="start"?{[r==="ltr"?"left":"right"]:o}:{}}var U_={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function pM({position:e,withBorder:t,arrowSize:o,arrowOffset:n,arrowRadius:r,arrowPosition:a,arrowX:i,arrowY:l,dir:c}){let[s,d="center"]=e.split("-"),h={width:o,height:o,transform:"rotate(45deg)",position:"absolute",[U_[s]]:r},v=t?-o/2-1:-o/2;return s==="left"?yd(ra(ra({},h),mM(d,l,n,a)),{right:v,borderLeft:0,borderBottom:0}):s==="right"?yd(ra(ra({},h),mM(d,l,n,a)),{left:v,borderRight:0,borderTop:0}):s==="top"?yd(ra(ra({},h),uM(d,i,n,a,c)),{bottom:v,borderTop:0,borderLeft:0}):s==="bottom"?yd(ra(ra({},h),uM(d,i,n,a,c)),{top:v,borderBottom:0,borderRight:0}):{}}var q_=Object.defineProperty,G_=Object.defineProperties,K_=Object.getOwnPropertyDescriptors,Ld=Object.getOwnPropertySymbols,kM=Object.prototype.hasOwnProperty,wM=Object.prototype.propertyIsEnumerable,fM=(e,t,o)=>t in e?q_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Y_=(e,t)=>{for(var o in t||(t={}))kM.call(t,o)&&fM(e,o,t[o]);if(Ld)for(var o of Ld(t))wM.call(t,o)&&fM(e,o,t[o]);return e},X_=(e,t)=>G_(e,K_(t)),Q_=(e,t)=>{var o={};for(var n in e)kM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Ld)for(var n of Ld(e))t.indexOf(n)<0&&wM.call(e,n)&&(o[n]=e[n]);return o},Dp=(0,Cd.forwardRef)((e,t)=>{var o=e,{withBorder:n,position:r,arrowSize:a,arrowOffset:i,arrowRadius:l,arrowPosition:c,visible:s,arrowX:d,arrowY:h}=o,v=Q_(o,["withBorder","position","arrowSize","arrowOffset","arrowRadius","arrowPosition","visible","arrowX","arrowY"]);let u=Ie();return s?Cd.default.createElement("div",X_(Y_({},v),{ref:t,style:pM({withBorder:n,position:r,arrowSize:a,arrowOffset:i,arrowRadius:l,arrowPosition:c,dir:u.dir,arrowX:d,arrowY:h})})):null});Dp.displayName="@mantine/core/FloatingArrow";var Z_=Object.defineProperty,J_=Object.defineProperties,eP=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,xM=Object.prototype.hasOwnProperty,MM=Object.prototype.propertyIsEnumerable,gM=(e,t,o)=>t in e?Z_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Id=(e,t)=>{for(var o in t||(t={}))xM.call(t,o)&&gM(e,o,t[o]);if(Nd)for(var o of Nd(t))MM.call(t,o)&&gM(e,o,t[o]);return e},EM=(e,t)=>J_(e,eP(t)),tP=(e,t)=>{var o={};for(var n in e)xM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Nd)for(var n of Nd(e))t.indexOf(n)<0&&MM.call(e,n)&&(o[n]=e[n]);return o},oP={};function Fp(e){let t=S("PopoverDropdown",oP,e),{style:o,className:n,children:r,onKeyDownCapture:a}=t,i=tP(t,["style","className","children","onKeyDownCapture"]),l=gd(),{classes:c,cx:s}=iM({radius:l.radius,shadow:l.shadow},{name:l.__staticSelector,classNames:l.classNames,styles:l.styles,unstyled:l.unstyled}),d=bs({opened:l.opened,shouldReturnFocus:l.returnFocus}),h=l.withRoles?{"aria-labelledby":l.getTargetId(),id:l.getDropdownId(),role:"dialog"}:{};return l.disabled?null:Il.default.createElement(js,{withinPortal:l.withinPortal},Il.default.createElement(ni,{mounted:l.opened,transition:l.transition,duration:l.transitionDuration,exitDuration:typeof l.exitTransitionDuration=="number"?l.exitTransitionDuration:l.transitionDuration},v=>{var u,w;return Il.default.createElement(Ap,{active:l.trapFocus},Il.default.createElement(D,Id(EM(Id({},h),{tabIndex:-1,key:l.placement,ref:l.floating,style:EM(Id(Id({},o),v),{zIndex:l.zIndex,top:(u=l.y)!=null?u:0,left:(w=l.x)!=null?w:0,width:l.width==="target"?void 0:l.width}),className:s(c.dropdown,n),onKeyDownCapture:_u(l.onClose,{active:l.closeOnEscape,onTrigger:d,onKeyDown:a}),"data-position":l.placement}),i),r,Il.default.createElement(Dp,{ref:l.arrowRef,arrowX:l.arrowX,arrowY:l.arrowY,visible:l.withArrow,withBorder:!0,position:l.placement,arrowSize:l.arrowSize,arrowRadius:l.arrowRadius,arrowOffset:l.arrowOffset,arrowPosition:l.arrowPosition,className:c.arrow})))}))}Fp.displayName="@mantine/core/PopoverDropdown";function zM(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){let[o,n]=t.split("-"),r=o==="right"?"left":"right";return n===void 0?r:`${r}-${n}`}return t}var bM=Object.getOwnPropertySymbols,nP=Object.prototype.hasOwnProperty,rP=Object.prototype.propertyIsEnumerable,aP=(e,t)=>{var o={};for(var n in e)nP.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&bM)for(var n of bM(e))t.indexOf(n)<0&&rP.call(e,n)&&(o[n]=e[n]);return o},iP={position:"bottom",offset:8,positionDependencies:[],transition:"fade",transitionDuration:150,middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:vo("popover"),__staticSelector:"Popover",width:"max-content"};function Cn(e){var t,o,n,r,a,i;let l=(0,Vn.useRef)(null),c=S("Popover",iP,e),{children:s,position:d,offset:h,onPositionChange:v,positionDependencies:u,opened:w,transition:k,transitionDuration:g,width:p,middlewares:m,withArrow:f,arrowSize:E,arrowOffset:M,arrowRadius:z,arrowPosition:x,unstyled:b,classNames:L,styles:C,closeOnClickOutside:B,withinPortal:N,closeOnEscape:j,clickOutsideEvents:T,trapFocus:H,onClose:_,onOpen:A,onChange:F,zIndex:V,radius:$,shadow:U,id:ee,defaultOpened:de,exitTransitionDuration:Q,__staticSelector:se,withRoles:ve,disabled:re,returnFocus:ae}=c,me=aP(c,["children","position","offset","onPositionChange","positionDependencies","opened","transition","transitionDuration","width","middlewares","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","unstyled","classNames","styles","closeOnClickOutside","withinPortal","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","exitTransitionDuration","__staticSelector","withRoles","disabled","returnFocus"]),[te,le]=(0,Vn.useState)(null),[ue,Oe]=(0,Vn.useState)(null),Be=Ro(ee),oo=Ie(),je=tM({middlewares:m,width:p,position:zM(oo.dir,d),offset:h+(f?E/2:0),arrowRef:l,arrowOffset:M,onPositionChange:v,positionDependencies:u,opened:w,defaultOpened:de,onChange:F,onOpen:A,onClose:_});op(()=>B&&je.onClose(),T,[te,ue]);let La=(0,Vn.useCallback)(dn=>{le(dn),je.floating.reference(dn)},[je.floating.reference]),Ca=(0,Vn.useCallback)(dn=>{Oe(dn),je.floating.floating(dn)},[je.floating.floating]);return Vn.default.createElement(oM,{value:{returnFocus:ae,disabled:re,controlled:je.controlled,reference:La,floating:Ca,x:je.floating.x,y:je.floating.y,arrowX:(n=(o=(t=je.floating)==null?void 0:t.middlewareData)==null?void 0:o.arrow)==null?void 0:n.x,arrowY:(i=(a=(r=je.floating)==null?void 0:r.middlewareData)==null?void 0:a.arrow)==null?void 0:i.y,opened:je.opened,arrowRef:l,transition:k,transitionDuration:g,exitTransitionDuration:Q,width:p,withArrow:f,arrowSize:E,arrowOffset:M,arrowRadius:z,arrowPosition:x,placement:je.floating.placement,trapFocus:H,withinPortal:N,zIndex:V,radius:$,shadow:U,closeOnEscape:j,onClose:je.onClose,onToggle:je.onToggle,getTargetId:()=>`${Be}-target`,getDropdownId:()=>`${Be}-dropdown`,withRoles:ve,targetProps:me,__staticSelector:se,classNames:L,styles:C,unstyled:b}},s)}Cn.Target=Tp;Cn.Dropdown=Fp;Cn.displayName="@mantine/core/Popover";var lP=Object.defineProperty,Bd=Object.getOwnPropertySymbols,LM=Object.prototype.hasOwnProperty,CM=Object.prototype.propertyIsEnumerable,yM=(e,t,o)=>t in e?lP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,cP=(e,t)=>{for(var o in t||(t={}))LM.call(t,o)&&yM(e,o,t[o]);if(Bd)for(var o of Bd(t))CM.call(t,o)&&yM(e,o,t[o]);return e},sP=(e,t)=>{var o={};for(var n in e)LM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Bd)for(var n of Bd(e))t.indexOf(n)<0&&CM.call(e,n)&&(o[n]=e[n]);return o};function dP(e){var t=e,{children:o,component:n="div",maxHeight:r=220,direction:a="column",id:i,innerRef:l,__staticSelector:c,styles:s,classNames:d,unstyled:h}=t,v=sP(t,["children","component","maxHeight","direction","id","innerRef","__staticSelector","styles","classNames","unstyled"]);let{classes:u}=y8(null,{name:c,styles:s,classNames:d,unstyled:h});return Nl.default.createElement(Cn.Dropdown,cP({p:0,onMouseDown:w=>w.preventDefault()},v),Nl.default.createElement("div",{style:{maxHeight:r,display:"flex"}},Nl.default.createElement(D,{component:n||"div",id:`${i}-items`,"aria-labelledby":`${i}-label`,role:"listbox",onMouseDown:w=>w.preventDefault(),style:{flex:1,overflowY:n!==Ts?"auto":void 0},"data-combobox-popover":!0,ref:l},Nl.default.createElement("div",{className:u.itemsWrapper,style:{flexDirection:a}},o))))}function Bl({opened:e,transition:t="fade",transitionDuration:o=0,shadow:n,withinPortal:r,children:a,__staticSelector:i,onDirectionChange:l,switchDirectionOnFlip:c,zIndex:s,dropdownPosition:d,positionDependencies:h=[],classNames:v,styles:u,unstyled:w,readOnly:k}){return Nl.default.createElement(Cn,{unstyled:w,classNames:v,styles:u,width:"target",withRoles:!1,opened:e,middlewares:{flip:d==="flip",shift:!1},position:d==="flip"?"bottom":d,positionDependencies:h,zIndex:s,__staticSelector:i,withinPortal:r,transition:t,transitionDuration:o,shadow:n,disabled:k,onPositionChange:g=>c&&(l==null?void 0:l(g==="top"?"column-reverse":"column"))},a)}Bl.Target=Cn.Target;Bl.Dropdown=dP;var hP=Object.defineProperty,vP=Object.defineProperties,mP=Object.getOwnPropertyDescriptors,jd=Object.getOwnPropertySymbols,NM=Object.prototype.hasOwnProperty,BM=Object.prototype.propertyIsEnumerable,IM=(e,t,o)=>t in e?hP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,$p=(e,t)=>{for(var o in t||(t={}))NM.call(t,o)&&IM(e,o,t[o]);if(jd)for(var o of jd(t))BM.call(t,o)&&IM(e,o,t[o]);return e},uP=(e,t)=>vP(e,mP(t)),pP=(e,t)=>{var o={};for(var n in e)NM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&jd)for(var n of jd(e))t.indexOf(n)<0&&BM.call(e,n)&&(o[n]=e[n]);return o};function aa(e,t,o){let n=S(e,t,o),{label:r,description:a,error:i,required:l,classNames:c,styles:s,className:d,unstyled:h,__staticSelector:v,sx:u,errorProps:w,labelProps:k,descriptionProps:g,wrapperProps:p,id:m,size:f,style:E,inputContainer:M,inputWrapperOrder:z,withAsterisk:x}=n,b=pP(n,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder","withAsterisk"]),L=Ro(m),{systemStyles:C,rest:B}=Qr(b);return uP($p({},B),{classNames:c,styles:s,unstyled:h,wrapperProps:$p($p({label:r,description:a,error:i,required:l,classNames:c,className:d,__staticSelector:v,sx:u,errorProps:w,labelProps:k,descriptionProps:g,unstyled:h,styles:s,id:L,size:f,style:E,inputContainer:M,inputWrapperOrder:z,withAsterisk:x},p),C),inputProps:{required:l,classNames:c,styles:s,unstyled:h,id:L,size:f,__staticSelector:v,invalid:!!i}})}var ri=y(I());var In=y(I());var Us=y(I());var fP=W((e,{size:t})=>({label:{display:"inline-block",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),fontWeight:500,color:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[9],wordBreak:"break-word",cursor:"default",WebkitTapHighlightColor:"transparent"},required:{color:e.fn.variant({variant:"filled",color:"red"}).background}})),jM=fP;var kP=Object.defineProperty,Hd=Object.getOwnPropertySymbols,WM=Object.prototype.hasOwnProperty,SM=Object.prototype.propertyIsEnumerable,HM=(e,t,o)=>t in e?kP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,wP=(e,t)=>{for(var o in t||(t={}))WM.call(t,o)&&HM(e,o,t[o]);if(Hd)for(var o of Hd(t))SM.call(t,o)&&HM(e,o,t[o]);return e},gP=(e,t)=>{var o={};for(var n in e)WM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Hd)for(var n of Hd(e))t.indexOf(n)<0&&SM.call(e,n)&&(o[n]=e[n]);return o},EP={labelElement:"label",size:"sm"},qs=(0,Us.forwardRef)((e,t)=>{let o=S("InputLabel",EP,e),{labelElement:n,children:r,required:a,size:i,classNames:l,styles:c,unstyled:s,className:d,htmlFor:h,__staticSelector:v}=o,u=gP(o,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector"]),{classes:w,cx:k}=jM({size:i},{name:["InputWrapper",v],classNames:l,styles:c,unstyled:s});return Us.default.createElement(D,wP({component:n,ref:t,className:k(w.label,d),htmlFor:n==="label"?h:void 0},u),r,a&&Us.default.createElement("span",{className:w.required,"aria-hidden":!0}," *"))});qs.displayName="@mantine/core/InputLabel";var Sd=y(I());var xP=W((e,{size:t})=>({error:{wordBreak:"break-word",color:e.fn.variant({variant:"filled",color:"red"}).background,fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}})),_M=xP;var MP=Object.defineProperty,Wd=Object.getOwnPropertySymbols,OM=Object.prototype.hasOwnProperty,RM=Object.prototype.propertyIsEnumerable,PM=(e,t,o)=>t in e?MP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,zP=(e,t)=>{for(var o in t||(t={}))OM.call(t,o)&&PM(e,o,t[o]);if(Wd)for(var o of Wd(t))RM.call(t,o)&&PM(e,o,t[o]);return e},bP=(e,t)=>{var o={};for(var n in e)OM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Wd)for(var n of Wd(e))t.indexOf(n)<0&&RM.call(e,n)&&(o[n]=e[n]);return o},yP={size:"sm"},Gs=(0,Sd.forwardRef)((e,t)=>{let o=S("InputError",yP,e),{children:n,className:r,classNames:a,styles:i,unstyled:l,size:c,__staticSelector:s}=o,d=bP(o,["children","className","classNames","styles","unstyled","size","__staticSelector"]),{classes:h,cx:v}=_M({size:c},{name:["InputWrapper",s],classNames:a,styles:i,unstyled:l});return Sd.default.createElement(oe,zP({className:v(h.error,r),ref:t},d),n)});Gs.displayName="@mantine/core/InputError";var Pd=y(I());var LP=W((e,{size:t})=>({description:{wordBreak:"break-word",color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}})),TM=LP;var CP=Object.defineProperty,_d=Object.getOwnPropertySymbols,DM=Object.prototype.hasOwnProperty,FM=Object.prototype.propertyIsEnumerable,AM=(e,t,o)=>t in e?CP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,IP=(e,t)=>{for(var o in t||(t={}))DM.call(t,o)&&AM(e,o,t[o]);if(_d)for(var o of _d(t))FM.call(t,o)&&AM(e,o,t[o]);return e},NP=(e,t)=>{var o={};for(var n in e)DM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&_d)for(var n of _d(e))t.indexOf(n)<0&&FM.call(e,n)&&(o[n]=e[n]);return o},BP={size:"sm"},Ks=(0,Pd.forwardRef)((e,t)=>{let o=S("InputDescription",BP,e),{children:n,className:r,classNames:a,styles:i,unstyled:l,size:c,__staticSelector:s}=o,d=NP(o,["children","className","classNames","styles","unstyled","size","__staticSelector"]),{classes:h,cx:v}=TM({size:c},{name:["InputWrapper",s],classNames:a,styles:i,unstyled:l});return Pd.default.createElement(oe,IP({color:"dimmed",className:v(h.description,r),ref:t,unstyled:l},d),n)});Ks.displayName="@mantine/core/InputDescription";var Od=y(I()),$M=(0,Od.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0}),VM=$M.Provider,UM=()=>(0,Od.useContext)($M);function qM(e,{hasDescription:t,hasError:o}){let n=e.findIndex(c=>c==="input"),r=e[n-1],a=e[n+1];return{offsetBottom:t&&a==="description"||o&&a==="error",offsetTop:t&&r==="description"||o&&r==="error"}}var jP=Object.defineProperty,HP=Object.defineProperties,WP=Object.getOwnPropertyDescriptors,GM=Object.getOwnPropertySymbols,SP=Object.prototype.hasOwnProperty,_P=Object.prototype.propertyIsEnumerable,KM=(e,t,o)=>t in e?jP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,PP=(e,t)=>{for(var o in t||(t={}))SP.call(t,o)&&KM(e,o,t[o]);if(GM)for(var o of GM(t))_P.call(t,o)&&KM(e,o,t[o]);return e},OP=(e,t)=>HP(e,WP(t)),RP=W(e=>({root:OP(PP({},e.fn.fontStyles()),{lineHeight:e.lineHeight})})),YM=RP;var TP=Object.defineProperty,AP=Object.defineProperties,DP=Object.getOwnPropertyDescriptors,Rd=Object.getOwnPropertySymbols,ZM=Object.prototype.hasOwnProperty,JM=Object.prototype.propertyIsEnumerable,XM=(e,t,o)=>t in e?TP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,ia=(e,t)=>{for(var o in t||(t={}))ZM.call(t,o)&&XM(e,o,t[o]);if(Rd)for(var o of Rd(t))JM.call(t,o)&&XM(e,o,t[o]);return e},QM=(e,t)=>AP(e,DP(t)),FP=(e,t)=>{var o={};for(var n in e)ZM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Rd)for(var n of Rd(e))t.indexOf(n)<0&&JM.call(e,n)&&(o[n]=e[n]);return o},$P={labelElement:"label",size:"sm",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},Vp=(0,In.forwardRef)((e,t)=>{let o=S("InputWrapper",$P,e),{className:n,label:r,children:a,required:i,id:l,error:c,description:s,labelElement:d,labelProps:h,descriptionProps:v,errorProps:u,classNames:w,styles:k,size:g,inputContainer:p,__staticSelector:m,unstyled:f,inputWrapperOrder:E,withAsterisk:M}=o,z=FP(o,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder","withAsterisk"]),{classes:x,cx:b}=YM(null,{classNames:w,styles:k,name:["InputWrapper",m],unstyled:f}),L={classNames:w,styles:k,unstyled:f,size:g,__staticSelector:m},C=typeof M=="boolean"?M:i,B=l?`${l}-error`:u==null?void 0:u.id,N=l?`${l}-description`:v==null?void 0:v.id,T=`${!!c&&typeof c!="boolean"?B:""} ${s?N:""}`,H=T.trim().length>0?T.trim():void 0,_=r&&In.default.createElement(qs,ia(ia({key:"label",labelElement:d,id:l?`${l}-label`:void 0,htmlFor:l,required:C},L),h),r),A=s&&In.default.createElement(Ks,QM(ia(ia({key:"description"},v),L),{size:(v==null?void 0:v.size)||L.size,id:(v==null?void 0:v.id)||N}),s),F=In.default.createElement(In.Fragment,{key:"input"},p(a)),V=typeof c!="boolean"&&c&&In.default.createElement(Gs,QM(ia(ia({},u),L),{size:(u==null?void 0:u.size)||L.size,key:"error",id:(u==null?void 0:u.id)||B}),c),$=E.map(U=>{switch(U){case"label":return _;case"input":return F;case"description":return A;case"error":return V;default:return null}});return In.default.createElement(VM,{value:ia({describedBy:H},qM(E,{hasDescription:!!A,hasError:!!V}))},In.default.createElement(D,ia({className:b(x.root,n),ref:t},z),$))});Vp.displayName="@mantine/core/InputWrapper";var Ad=y(I());var VP=Object.defineProperty,Td=Object.getOwnPropertySymbols,t7=Object.prototype.hasOwnProperty,o7=Object.prototype.propertyIsEnumerable,e7=(e,t,o)=>t in e?VP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,UP=(e,t)=>{for(var o in t||(t={}))t7.call(t,o)&&e7(e,o,t[o]);if(Td)for(var o of Td(t))o7.call(t,o)&&e7(e,o,t[o]);return e},qP=(e,t)=>{var o={};for(var n in e)t7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Td)for(var n of Td(e))t.indexOf(n)<0&&o7.call(e,n)&&(o[n]=e[n]);return o},GP={},Up=(0,Ad.forwardRef)((e,t)=>{let o=S("InputPlaceholder",GP,e),{sx:n}=o,r=qP(o,["sx"]);return Ad.default.createElement(D,UP({component:"span",sx:[a=>a.fn.placeholderStyles(),...Eo(n)],ref:t},r))});Up.displayName="@mantine/core/InputPlaceholder";var KP=Object.defineProperty,YP=Object.defineProperties,XP=Object.getOwnPropertyDescriptors,n7=Object.getOwnPropertySymbols,QP=Object.prototype.hasOwnProperty,ZP=Object.prototype.propertyIsEnumerable,r7=(e,t,o)=>t in e?KP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Dd=(e,t)=>{for(var o in t||(t={}))QP.call(t,o)&&r7(e,o,t[o]);if(n7)for(var o of n7(t))ZP.call(t,o)&&r7(e,o,t[o]);return e},qp=(e,t)=>YP(e,XP(t)),To={xs:30,sm:36,md:42,lg:50,xl:60};function JP({theme:e,variant:t}){return t==="default"?{border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,transition:"border-color 100ms ease","&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:t==="filled"?{border:"1px solid transparent",backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1],"&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:{borderWidth:0,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,backgroundColor:"transparent",minHeight:28,outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}}var eO=W((e,{size:t,multiline:o,radius:n,variant:r,invalid:a,rightSectionWidth:i,withRightSection:l,iconWidth:c,offsetBottom:s,offsetTop:d,pointer:h})=>{let v=e.fn.variant({variant:"filled",color:"red"}).background,u=r==="default"||r==="filled"?{minHeight:e.fn.size({size:t,sizes:To}),paddingLeft:e.fn.size({size:t,sizes:To})/3,paddingRight:l?i:e.fn.size({size:t,sizes:To})/3,borderRadius:e.fn.radius(n)}:null;return{wrapper:{position:"relative",marginTop:d?`calc(${e.spacing.xs}px / 2)`:void 0,marginBottom:s?`calc(${e.spacing.xs}px / 2)`:void 0},input:Dd(qp(Dd(qp(Dd({},e.fn.fontStyles()),{height:o?r==="unstyled"?void 0:"auto":e.fn.size({size:t,sizes:To}),WebkitTapHighlightColor:"transparent",lineHeight:o?e.lineHeight:`${e.fn.size({size:t,sizes:To})-2}px`,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),width:"100%",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"block",textAlign:"left",cursor:h?"pointer":void 0}),u),{"&:disabled":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},"&::placeholder":qp(Dd({},e.fn.placeholderStyles()),{opacity:1}),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),JP({theme:e,variant:r})),withIcon:{paddingLeft:typeof c=="number"?c:e.fn.size({size:t,sizes:To})},invalid:{color:v,borderColor:v,"&::placeholder":{opacity:1,color:v}},disabled:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:typeof c=="number"?c:e.fn.size({size:t,sizes:To}),color:a?e.colors.red[e.colorScheme==="dark"?6:7]:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:i}}}),a7=eO;var tO=Object.defineProperty,oO=Object.defineProperties,nO=Object.getOwnPropertyDescriptors,$d=Object.getOwnPropertySymbols,c7=Object.prototype.hasOwnProperty,s7=Object.prototype.propertyIsEnumerable,i7=(e,t,o)=>t in e?tO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Fd=(e,t)=>{for(var o in t||(t={}))c7.call(t,o)&&i7(e,o,t[o]);if($d)for(var o of $d(t))s7.call(t,o)&&i7(e,o,t[o]);return e},l7=(e,t)=>oO(e,nO(t)),rO=(e,t)=>{var o={};for(var n in e)c7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&$d)for(var n of $d(e))t.indexOf(n)<0&&s7.call(e,n)&&(o[n]=e[n]);return o},aO={rightSectionWidth:36,size:"sm",variant:"default"},ai=(0,ri.forwardRef)((e,t)=>{let o=S("Input",aO,e),{className:n,invalid:r,required:a,disabled:i,variant:l,icon:c,style:s,rightSectionWidth:d,iconWidth:h,rightSection:v,rightSectionProps:u,radius:w,size:k,wrapperProps:g,classNames:p,styles:m,__staticSelector:f,multiline:E,sx:M,unstyled:z,pointer:x}=o,b=rO(o,["className","invalid","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:L,offsetTop:C,describedBy:B}=UM(),{classes:N,cx:j}=a7({radius:w,size:k,multiline:E,variant:l,invalid:r,rightSectionWidth:d,iconWidth:h,withRightSection:!!v,offsetBottom:L,offsetTop:C,pointer:x},{classNames:p,styles:m,name:["Input",f],unstyled:z}),{systemStyles:T,rest:H}=Qr(b);return ri.default.createElement(D,Fd(Fd({className:j(N.wrapper,n),sx:M,style:s},T),g),c&&ri.default.createElement("div",{className:N.icon},c),ri.default.createElement(D,l7(Fd({component:"input"},H),{ref:t,required:a,"aria-invalid":r,"aria-describedby":B,disabled:i,className:j(N[`${l}Variant`],N.input,{[N.withIcon]:c,[N.invalid]:r,[N.disabled]:i})})),v&&ri.default.createElement("div",l7(Fd({},u),{className:N.rightSection}),v))});ai.displayName="@mantine/core/Input";ai.Wrapper=Vp;ai.Label=qs;ai.Description=Ks;ai.Error=Gs;ai.Placeholder=Up;var zt=ai;var Un=y(I());var Ud=y(I());var iO=W((e,{orientation:t,buttonBorderWidth:o})=>({root:{display:"flex",flexDirection:t==="vertical"?"column":"row","& [data-button]":{"&:first-of-type":{borderBottomRightRadius:0,[t==="vertical"?"borderBottomLeftRadius":"borderTopRightRadius"]:0,[t==="vertical"?"borderBottomWidth":"borderRightWidth"]:o/2},"&:last-of-type":{borderTopLeftRadius:0,[t==="vertical"?"borderTopRightRadius":"borderBottomLeftRadius"]:0,[t==="vertical"?"borderTopWidth":"borderLeftWidth"]:o/2},"&:not(:first-of-type):not(:last-of-type)":{borderRadius:0,[t==="vertical"?"borderTopWidth":"borderLeftWidth"]:o/2,[t==="vertical"?"borderBottomWidth":"borderRightWidth"]:o/2},"& + [data-button]":{[t==="vertical"?"marginTop":"marginLeft"]:-o,"@media (min-resolution: 192dpi)":{[t==="vertical"?"marginTop":"marginLeft"]:0}}}}})),d7=iO;var lO=Object.defineProperty,Vd=Object.getOwnPropertySymbols,v7=Object.prototype.hasOwnProperty,m7=Object.prototype.propertyIsEnumerable,h7=(e,t,o)=>t in e?lO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,cO=(e,t)=>{for(var o in t||(t={}))v7.call(t,o)&&h7(e,o,t[o]);if(Vd)for(var o of Vd(t))m7.call(t,o)&&h7(e,o,t[o]);return e},sO=(e,t)=>{var o={};for(var n in e)v7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Vd)for(var n of Vd(e))t.indexOf(n)<0&&m7.call(e,n)&&(o[n]=e[n]);return o},dO={orientation:"horizontal",buttonBorderWidth:1},Gp=(0,Ud.forwardRef)((e,t)=>{let o=S("ButtonGroup",dO,e),{className:n,orientation:r,buttonBorderWidth:a,unstyled:i}=o,l=sO(o,["className","orientation","buttonBorderWidth","unstyled"]),{classes:c,cx:s}=d7({orientation:r,buttonBorderWidth:a},{name:"ButtonGroup",unstyled:i});return Ud.default.createElement(D,cO({className:s(c.root,n),ref:t},l))});Gp.displayName="@mantine/core/ButtonGroup";var hO=Object.defineProperty,vO=Object.defineProperties,mO=Object.getOwnPropertyDescriptors,u7=Object.getOwnPropertySymbols,uO=Object.prototype.hasOwnProperty,pO=Object.prototype.propertyIsEnumerable,p7=(e,t,o)=>t in e?hO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,ii=(e,t)=>{for(var o in t||(t={}))uO.call(t,o)&&p7(e,o,t[o]);if(u7)for(var o of u7(t))pO.call(t,o)&&p7(e,o,t[o]);return e},Kp=(e,t)=>vO(e,mO(t)),qd={xs:{height:To.xs,paddingLeft:14,paddingRight:14},sm:{height:To.sm,paddingLeft:18,paddingRight:18},md:{height:To.md,paddingLeft:22,paddingRight:22},lg:{height:To.lg,paddingLeft:26,paddingRight:26},xl:{height:To.xl,paddingLeft:32,paddingRight:32},"compact-xs":{height:22,paddingLeft:7,paddingRight:7},"compact-sm":{height:26,paddingLeft:8,paddingRight:8},"compact-md":{height:30,paddingLeft:10,paddingRight:10},"compact-lg":{height:34,paddingLeft:12,paddingRight:12},"compact-xl":{height:40,paddingLeft:14,paddingRight:14}};function fO({compact:e,size:t,withLeftIcon:o,withRightIcon:n}){if(e)return qd[`compact-${t}`];let r=qd[t];return Kp(ii({},r),{paddingLeft:o?r.paddingLeft/1.5:r.paddingLeft,paddingRight:n?r.paddingRight/1.5:r.paddingRight})}var kO=e=>({display:e?"block":"inline-block",width:e?"100%":"auto"});function wO({variant:e,theme:t,color:o,gradient:n}){let r=t.fn.variant({color:o,variant:e,gradient:n});return e==="gradient"?{border:0,backgroundImage:r.background,color:r.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:ii({border:`1px solid ${r.border}`,backgroundColor:r.background,color:r.color},t.fn.hover({backgroundColor:r.hover}))}var gO=W((e,{color:t,size:o,radius:n,fullWidth:r,compact:a,gradient:i,variant:l,withLeftIcon:c,withRightIcon:s})=>({root:Kp(ii(Kp(ii(ii(ii(ii({},fO({compact:a,size:o,withLeftIcon:c,withRightIcon:s})),e.fn.fontStyles()),e.fn.focusStyles()),kO(r)),{borderRadius:e.fn.radius(n),fontWeight:600,position:"relative",lineHeight:1,fontSize:e.fn.size({size:o,sizes:e.fontSizes}),userSelect:"none",cursor:"pointer"}),wO({variant:l,theme:e,color:t,gradient:i})),{"&:active":e.activeStyles,"&:disabled, &[data-disabled]":{borderColor:"transparent",backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],color:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[5],cursor:"not-allowed",backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(n),cursor:"not-allowed"}}}),icon:{display:"flex",alignItems:"center"},leftIcon:{marginRight:10},rightIcon:{marginLeft:10},centerLoader:{position:"absolute",left:"50%",transform:"translateX(-50%)",opacity:.5},inner:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"visible"},label:{whiteSpace:"nowrap",height:"100%",overflow:"hidden",display:"flex",alignItems:"center"}})),f7=gO;var EO=Object.defineProperty,Gd=Object.getOwnPropertySymbols,g7=Object.prototype.hasOwnProperty,E7=Object.prototype.propertyIsEnumerable,k7=(e,t,o)=>t in e?EO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,w7=(e,t)=>{for(var o in t||(t={}))g7.call(t,o)&&k7(e,o,t[o]);if(Gd)for(var o of Gd(t))E7.call(t,o)&&k7(e,o,t[o]);return e},xO=(e,t)=>{var o={};for(var n in e)g7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Gd)for(var n of Gd(e))t.indexOf(n)<0&&E7.call(e,n)&&(o[n]=e[n]);return o},MO={size:"sm",type:"button",variant:"filled",loaderPosition:"left"},Yp=(0,Un.forwardRef)((e,t)=>{let o=S("Button",MO,e),{className:n,size:r,color:a,type:i,disabled:l,children:c,leftIcon:s,rightIcon:d,fullWidth:h,variant:v,radius:u,uppercase:w,compact:k,loading:g,loaderPosition:p,loaderProps:m,gradient:f,classNames:E,styles:M,unstyled:z}=o,x=xO(o,["className","size","color","type","disabled","children","leftIcon","rightIcon","fullWidth","variant","radius","uppercase","compact","loading","loaderPosition","loaderProps","gradient","classNames","styles","unstyled"]),{classes:b,cx:L,theme:C}=f7({radius:u,color:a,size:r,fullWidth:h,compact:k,gradient:f,variant:v,withLeftIcon:!!s,withRightIcon:!!d},{name:"Button",unstyled:z,classNames:E,styles:M}),B=C.fn.variant({color:a,variant:v}),N=Un.default.createElement(tn,w7({color:B.color,size:C.fn.size({size:r,sizes:qd}).height/2},m));return Un.default.createElement(ul,w7({className:L(b.root,n),type:i,disabled:l,"data-button":!0,"data-disabled":l||void 0,"data-loading":g||void 0,ref:t,unstyled:z},x),Un.default.createElement("div",{className:b.inner},(s||g&&p==="left")&&Un.default.createElement("span",{className:L(b.icon,b.leftIcon)},g&&p==="left"?N:s),g&&p==="center"&&Un.default.createElement("span",{className:b.centerLoader},N),Un.default.createElement("span",{className:b.label,style:{textTransform:w?"uppercase":void 0}},c),(d||g&&p==="right")&&Un.default.createElement("span",{className:L(b.icon,b.rightIcon)},g&&p==="right"?N:d)))});Yp.displayName="@mantine/core/Button";Yp.Group=Gp;var bt=Yp;var Er=y(I());var Yd=y(I());var zO=W((e,{radius:t,shadow:o,withBorder:n})=>({root:{outline:0,WebkitTapHighlightColor:"transparent",display:"block",textDecoration:"none",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,boxSizing:"border-box",borderRadius:e.fn.radius(t),boxShadow:e.shadows[o]||o||"none",border:n?`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`:void 0}})),x7=zO;var bO=Object.defineProperty,Kd=Object.getOwnPropertySymbols,z7=Object.prototype.hasOwnProperty,b7=Object.prototype.propertyIsEnumerable,M7=(e,t,o)=>t in e?bO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,yO=(e,t)=>{for(var o in t||(t={}))z7.call(t,o)&&M7(e,o,t[o]);if(Kd)for(var o of Kd(t))b7.call(t,o)&&M7(e,o,t[o]);return e},LO=(e,t)=>{var o={};for(var n in e)z7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Kd)for(var n of Kd(e))t.indexOf(n)<0&&b7.call(e,n)&&(o[n]=e[n]);return o},CO={},y7=(0,Yd.forwardRef)((e,t)=>{let o=S("Paper",CO,e),{className:n,children:r,radius:a,withBorder:i,shadow:l,unstyled:c}=o,s=LO(o,["className","children","radius","withBorder","shadow","unstyled"]),{classes:d,cx:h}=x7({radius:a,shadow:l,withBorder:i},{name:"Paper",unstyled:c});return Yd.default.createElement(D,yO({className:h(d.root,n),ref:t},s),r)});y7.displayName="@mantine/core/Paper";var Xd=y7;var Jd=y(I());var Qd=y(I()),L7=(0,Qd.createContext)({padding:0}),C7=L7.Provider,I7=()=>(0,Qd.useContext)(L7).padding;var IO=W((e,{padding:t,withBorder:o,inheritPadding:n})=>{let r=e.fn.size({size:t,sizes:e.spacing}),a=-1*r,i=e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3];return{cardSection:{display:"block",marginLeft:a,marginRight:a,paddingLeft:n?r:void 0,paddingRight:n?r:void 0,borderTop:o&&`1px solid ${i}`,borderBottom:o&&`1px solid ${i}`,"& + &":{borderTop:0},"&[data-first]":{marginTop:a,borderTop:0,borderBottom:o&&`1px solid ${i}`},"&[data-last]":{marginBottom:a,borderBottom:0}}}}),N7=IO;var NO=Object.defineProperty,Zd=Object.getOwnPropertySymbols,j7=Object.prototype.hasOwnProperty,H7=Object.prototype.propertyIsEnumerable,B7=(e,t,o)=>t in e?NO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,BO=(e,t)=>{for(var o in t||(t={}))j7.call(t,o)&&B7(e,o,t[o]);if(Zd)for(var o of Zd(t))H7.call(t,o)&&B7(e,o,t[o]);return e},jO=(e,t)=>{var o={};for(var n in e)j7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Zd)for(var n of Zd(e))t.indexOf(n)<0&&H7.call(e,n)&&(o[n]=e[n]);return o},HO={withBorder:!1,inheritPadding:!1},W7=(0,Jd.forwardRef)((e,t)=>{let o=S("CardSection",HO,e),{className:n,withBorder:r,inheritPadding:a,unstyled:i}=o,l=jO(o,["className","withBorder","inheritPadding","unstyled"]),{classes:c,cx:s}=N7({padding:I7(),withBorder:r,inheritPadding:a},{name:"Card",unstyled:i});return Jd.default.createElement(D,BO({className:s(c.cardSection,n),ref:t},l))});W7.displayName="@mantine/core/CardSection";var Xp=W7;var WO=W(e=>({root:{position:"relative",overflow:"hidden",backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white}})),S7=WO;var SO=Object.defineProperty,eh=Object.getOwnPropertySymbols,P7=Object.prototype.hasOwnProperty,O7=Object.prototype.propertyIsEnumerable,_7=(e,t,o)=>t in e?SO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,_O=(e,t)=>{for(var o in t||(t={}))P7.call(t,o)&&_7(e,o,t[o]);if(eh)for(var o of eh(t))O7.call(t,o)&&_7(e,o,t[o]);return e},PO=(e,t)=>{var o={};for(var n in e)P7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&eh)for(var n of eh(e))t.indexOf(n)<0&&O7.call(e,n)&&(o[n]=e[n]);return o},OO={p:"md"},Qp=(0,Er.forwardRef)((e,t)=>{let o=S("Card",OO,e),{className:n,p:r,radius:a,children:i,unstyled:l}=o,c=PO(o,["className","p","radius","children","unstyled"]),{classes:s,cx:d}=S7(null,{name:"Card",unstyled:l}),h=Er.Children.toArray(i),v=h.map((u,w)=>typeof u=="object"&&u&&"type"in u&&u.type===Xp?(0,Er.cloneElement)(u,{padding:r,"data-first":w===0||void 0,"data-last":w===h.length-1||void 0}):u);return Er.default.createElement(C7,{value:{padding:r}},Er.default.createElement(Xd,_O({className:d(s.root,n),radius:a,p:r,ref:t},c),v))});Qp.Section=Xp;Qp.displayName="@mantine/core/Card";var Zp=Qp;var oh=y(I());var TO=Object.defineProperty,th=Object.getOwnPropertySymbols,T7=Object.prototype.hasOwnProperty,A7=Object.prototype.propertyIsEnumerable,R7=(e,t,o)=>t in e?TO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,AO=(e,t)=>{for(var o in t||(t={}))T7.call(t,o)&&R7(e,o,t[o]);if(th)for(var o of th(t))A7.call(t,o)&&R7(e,o,t[o]);return e},DO=(e,t)=>{var o={};for(var n in e)T7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&th)for(var n of th(e))t.indexOf(n)<0&&A7.call(e,n)&&(o[n]=e[n]);return o},D7=(0,oh.forwardRef)((e,t)=>{let o=S("Center",{},e),{inline:n,sx:r}=o,a=DO(o,["inline","sx"]);return oh.default.createElement(D,AO({ref:t,sx:[{display:n?"inline-flex":"flex",alignItems:"center",justifyContent:"center"},...Eo(r)]},a))});D7.displayName="@mantine/core/Center";var Jp=D7;var of=y(I());var rh=y(I());var F7=y(I());function $7(e){return F7.Children.toArray(e).filter(Boolean)}var ef={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"},FO=W((e,{spacing:t,position:o,noWrap:n,grow:r,align:a,count:i})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:a||"center",flexWrap:n?"nowrap":"wrap",justifyContent:ef[o],gap:e.fn.size({size:t,sizes:e.spacing}),"& > *":{boxSizing:"border-box",maxWidth:r?`calc(${100/i}% - ${e.fn.size({size:t,sizes:e.spacing})-e.fn.size({size:t,sizes:e.spacing})/i}px)`:void 0,flexGrow:r?1:0}}})),V7=FO;var $O=Object.defineProperty,nh=Object.getOwnPropertySymbols,q7=Object.prototype.hasOwnProperty,G7=Object.prototype.propertyIsEnumerable,U7=(e,t,o)=>t in e?$O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,VO=(e,t)=>{for(var o in t||(t={}))q7.call(t,o)&&U7(e,o,t[o]);if(nh)for(var o of nh(t))G7.call(t,o)&&U7(e,o,t[o]);return e},UO=(e,t)=>{var o={};for(var n in e)q7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&nh)for(var n of nh(e))t.indexOf(n)<0&&G7.call(e,n)&&(o[n]=e[n]);return o},qO={position:"left",spacing:"md"},la=(0,rh.forwardRef)((e,t)=>{let o=S("Group",qO,e),{className:n,position:r,align:a,children:i,noWrap:l,grow:c,spacing:s,unstyled:d}=o,h=UO(o,["className","position","align","children","noWrap","grow","spacing","unstyled"]),v=$7(i),{classes:u,cx:w}=V7({align:a,grow:c,noWrap:l,spacing:s,position:r,count:v.length},{unstyled:d,name:"Group"});return rh.default.createElement(D,VO({className:w(u.root,n),ref:t},h),v)});la.displayName="@mantine/core/Group";var ih=y(I());var GO=W((e,{spacing:t,align:o,justify:n})=>({root:{display:"flex",flexDirection:"column",alignItems:o,justifyContent:n,gap:e.fn.size({size:t,sizes:e.spacing})}})),K7=GO;var KO=Object.defineProperty,ah=Object.getOwnPropertySymbols,X7=Object.prototype.hasOwnProperty,Q7=Object.prototype.propertyIsEnumerable,Y7=(e,t,o)=>t in e?KO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,YO=(e,t)=>{for(var o in t||(t={}))X7.call(t,o)&&Y7(e,o,t[o]);if(ah)for(var o of ah(t))Q7.call(t,o)&&Y7(e,o,t[o]);return e},XO=(e,t)=>{var o={};for(var n in e)X7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&ah)for(var n of ah(e))t.indexOf(n)<0&&Q7.call(e,n)&&(o[n]=e[n]);return o},QO={spacing:"md",align:"stretch",justify:"top"},tf=(0,ih.forwardRef)((e,t)=>{let o=S("Stack",QO,e),{spacing:n,className:r,align:a,justify:i,unstyled:l}=o,c=XO(o,["spacing","className","align","justify","unstyled"]),{classes:s,cx:d}=K7({spacing:n,align:a,justify:i},{name:"Stack",unstyled:l});return ih.default.createElement(D,YO({className:d(s.root,r),ref:t},c))});tf.displayName="@mantine/core/Stack";function Z7({spacing:e,offset:t,orientation:o,children:n,role:r,unstyled:a}){return o==="horizontal"?of.default.createElement(la,{pt:t,spacing:e,role:r,unstyled:a},n):of.default.createElement(tf,{pt:t,spacing:e,role:r,unstyled:a},n)}var li=y(I());var ZO=Object.defineProperty,JO=Object.defineProperties,eR=Object.getOwnPropertyDescriptors,J7=Object.getOwnPropertySymbols,tR=Object.prototype.hasOwnProperty,oR=Object.prototype.propertyIsEnumerable,e9=(e,t,o)=>t in e?ZO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,nR=(e,t)=>{for(var o in t||(t={}))tR.call(t,o)&&e9(e,o,t[o]);if(J7)for(var o of J7(t))oR.call(t,o)&&e9(e,o,t[o]);return e},rR=(e,t)=>JO(e,eR(t)),aR={xs:16,sm:20,md:24,lg:30,xl:36},iR=W((e,{labelPosition:t,size:o})=>({root:{},body:{display:"inline-flex"},labelWrapper:rR(nR({},e.fn.fontStyles()),{display:"inline-flex",flexDirection:"column",WebkitTapHighlightColor:"transparent",fontSize:e.fn.size({size:o,sizes:e.fontSizes}),lineHeight:`${e.fn.size({size:o,sizes:aR})}px`,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,cursor:e.cursorType,order:t==="left"?1:2}),description:{marginTop:`calc(${e.spacing.xs}px / 2)`,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm},error:{marginTop:`calc(${e.spacing.xs}px / 2)`,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm},label:{cursor:e.cursorType,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm,"&[data-disabled]":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}}})),t9=iR;var lR=Object.defineProperty,lh=Object.getOwnPropertySymbols,n9=Object.prototype.hasOwnProperty,r9=Object.prototype.propertyIsEnumerable,o9=(e,t,o)=>t in e?lR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,cR=(e,t)=>{for(var o in t||(t={}))n9.call(t,o)&&o9(e,o,t[o]);if(lh)for(var o of lh(t))r9.call(t,o)&&o9(e,o,t[o]);return e},sR=(e,t)=>{var o={};for(var n in e)n9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&lh)for(var n of lh(e))t.indexOf(n)<0&&r9.call(e,n)&&(o[n]=e[n]);return o};function nf(e){var t=e,{__staticSelector:o,className:n,classNames:r,styles:a,unstyled:i,children:l,label:c,description:s,id:d,disabled:h,error:v,size:u,labelPosition:w}=t,k=sR(t,["__staticSelector","className","classNames","styles","unstyled","children","label","description","id","disabled","error","size","labelPosition"]);let{classes:g,cx:p}=t9({size:u,labelPosition:w},{name:o,styles:a,classNames:r,unstyled:i});return li.default.createElement(D,cR({className:p(g.root,n)},k),li.default.createElement("div",{className:p(g.body)},l,li.default.createElement("div",{className:g.labelWrapper},c&&li.default.createElement("label",{className:g.label,"data-disabled":h||void 0,htmlFor:d},c),s&&li.default.createElement(zt.Description,{className:g.description},s),v&&v!=="boolean"&&li.default.createElement(zt.Error,{className:g.error},v))))}nf.displayName="@mantine/core/InlineInput";var Ys=y(I());var dR=Object.defineProperty,hR=Object.defineProperties,vR=Object.getOwnPropertyDescriptors,a9=Object.getOwnPropertySymbols,mR=Object.prototype.hasOwnProperty,uR=Object.prototype.propertyIsEnumerable,i9=(e,t,o)=>t in e?dR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,pR=(e,t)=>{for(var o in t||(t={}))mR.call(t,o)&&i9(e,o,t[o]);if(a9)for(var o of a9(t))uR.call(t,o)&&i9(e,o,t[o]);return e},fR=(e,t)=>hR(e,vR(t)),kR=W((e,{color:t})=>{let o=t||(e.colorScheme==="dark"?"dark":"gray"),n=e.fn.variant({color:o,variant:"light"});return{root:fR(pR({},e.fn.fontStyles()),{lineHeight:e.lineHeight,padding:`2px calc(${e.spacing.xs}px / 2)`,borderRadius:e.radius.sm,color:e.colorScheme==="dark"?o==="dark"?e.colors.dark[0]:e.white:e.colors.dark[7],backgroundColor:e.colorScheme==="dark"&&o==="dark"?e.colors.dark[5]:n.background,fontFamily:e.fontFamilyMonospace,fontSize:e.fontSizes.xs}),block:{padding:e.spacing.xs,margin:0,overflowX:"auto"}}}),l9=kR;var wR=Object.defineProperty,ch=Object.getOwnPropertySymbols,d9=Object.prototype.hasOwnProperty,h9=Object.prototype.propertyIsEnumerable,c9=(e,t,o)=>t in e?wR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,s9=(e,t)=>{for(var o in t||(t={}))d9.call(t,o)&&c9(e,o,t[o]);if(ch)for(var o of ch(t))h9.call(t,o)&&c9(e,o,t[o]);return e},gR=(e,t)=>{var o={};for(var n in e)d9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&ch)for(var n of ch(e))t.indexOf(n)<0&&h9.call(e,n)&&(o[n]=e[n]);return o},sh=(0,Ys.forwardRef)((e,t)=>{let o=S("Code",{},e),{className:n,children:r,block:a,color:i,unstyled:l}=o,c=gR(o,["className","children","block","color","unstyled"]),{classes:s,cx:d}=l9({color:i},{name:"Code",unstyled:l});return a?Ys.default.createElement(D,s9({component:"pre",dir:"ltr",className:d(s.root,s.block,n),ref:t},c),r):Ys.default.createElement(D,s9({component:"code",className:d(s.root,n),ref:t,dir:"ltr"},c),r)});sh.displayName="@mantine/core/Code";var yt=y(I());var pt=y(I());var ca=y(I());var ER=Object.defineProperty,xR=Object.defineProperties,MR=Object.getOwnPropertyDescriptors,v9=Object.getOwnPropertySymbols,zR=Object.prototype.hasOwnProperty,bR=Object.prototype.propertyIsEnumerable,m9=(e,t,o)=>t in e?ER(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,yR=(e,t)=>{for(var o in t||(t={}))zR.call(t,o)&&m9(e,o,t[o]);if(v9)for(var o of v9(t))bR.call(t,o)&&m9(e,o,t[o]);return e},LR=(e,t)=>xR(e,MR(t)),CR=W((e,{size:t,radius:o})=>{let n=e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3];return{root:LR(yR({},e.fn.focusStyles()),{width:t,height:t,WebkitTapHighlightColor:"transparent",border:0,borderRadius:e.fn.size({size:o,sizes:e.radius}),appearance:"none",WebkitAppearance:"none",padding:0,position:"relative",overflow:"hidden"}),overlay:{position:"absolute",borderRadius:e.fn.size({size:o,sizes:e.radius}),top:0,left:0,right:0,bottom:0},children:{display:"inline-flex",justifyContent:"center",alignItems:"center"},shadowOverlay:{boxShadow:"rgba(0, 0, 0, .1) 0px 0px 0px 1px inset, rgb(0, 0, 0, .15) 0px 0px 4px inset",zIndex:1},alphaOverlay:{backgroundImage:`linear-gradient(45deg, ${n} 25%, transparent 25%), linear-gradient(-45deg, ${n} 25%, transparent 25%), linear-gradient(45deg, transparent 75%, ${n} 75%), linear-gradient(-45deg, ${e.colorScheme==="dark"?e.colors.dark[7]:e.white} 75%, ${n} 75%)`,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0px"}}}),u9=CR;var IR=Object.defineProperty,dh=Object.getOwnPropertySymbols,f9=Object.prototype.hasOwnProperty,k9=Object.prototype.propertyIsEnumerable,p9=(e,t,o)=>t in e?IR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,NR=(e,t)=>{for(var o in t||(t={}))f9.call(t,o)&&p9(e,o,t[o]);if(dh)for(var o of dh(t))k9.call(t,o)&&p9(e,o,t[o]);return e},BR=(e,t)=>{var o={};for(var n in e)f9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&dh)for(var n of dh(e))t.indexOf(n)<0&&k9.call(e,n)&&(o[n]=e[n]);return o},jR={size:25,radius:25,withShadow:!0},w9=(0,ca.forwardRef)((e,t)=>{let o=S("ColorSwatch",jR,e),{color:n,size:r,radius:a,className:i,children:l,classNames:c,styles:s,unstyled:d,withShadow:h}=o,v=BR(o,["color","size","radius","className","children","classNames","styles","unstyled","withShadow"]),{classes:u,cx:w}=u9({radius:a,size:r},{classNames:c,styles:s,unstyled:d,name:"ColorSwatch"});return ca.default.createElement(D,NR({className:w(u.root,i),ref:t},v),ca.default.createElement("div",{className:w(u.alphaOverlay,u.overlay)}),h&&ca.default.createElement("div",{className:w(u.shadowOverlay,u.overlay)}),ca.default.createElement("div",{className:u.overlay,style:{backgroundColor:n}}),ca.default.createElement("div",{className:w(u.children,u.overlay)},l))});w9.displayName="@mantine/core/ColorSwatch";var jl=w9;var mh=y(I());var qn=y(I());var M9=y(I());var Ao={xs:8,sm:12,md:16,lg:20,xl:22},HR=W((e,{size:t})=>{let o=e.fn.size({size:t,sizes:Ao});return{thumb:{overflow:"hidden",boxSizing:"border-box",position:"absolute",boxShadow:"0 0 1px rgba(0, 0, 0, .6)",border:`2px solid ${e.white}`,backgroundColor:"transparent",width:o,height:o,borderRadius:o}}}),g9=HR;var WR=Object.defineProperty,E9=Object.getOwnPropertySymbols,SR=Object.prototype.hasOwnProperty,_R=Object.prototype.propertyIsEnumerable,x9=(e,t,o)=>t in e?WR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,PR=(e,t)=>{for(var o in t||(t={}))SR.call(t,o)&&x9(e,o,t[o]);if(E9)for(var o of E9(t))_R.call(t,o)&&x9(e,o,t[o]);return e};function Xs({position:e,className:t,styles:o,classNames:n,style:r,size:a,__staticSelector:i,unstyled:l}){let{classes:c,cx:s}=g9({size:a},{classNames:n,styles:o,name:i,unstyled:l});return M9.default.createElement("div",{className:s(c.thumb,t),style:PR({left:`calc(${e.x*100}% - ${Ao[a]/2}px)`,top:`calc(${e.y*100}% - ${Ao[a]/2}px)`},r)})}Xs.displayName="@mantine/core/Thumb";var OR=Object.defineProperty,z9=Object.getOwnPropertySymbols,RR=Object.prototype.hasOwnProperty,TR=Object.prototype.propertyIsEnumerable,b9=(e,t,o)=>t in e?OR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,y9=(e,t)=>{for(var o in t||(t={}))RR.call(t,o)&&b9(e,o,t[o]);if(z9)for(var o of z9(t))TR.call(t,o)&&b9(e,o,t[o]);return e},AR=W((e,{size:t},o)=>({sliderThumb:{ref:o("sliderThumb")},slider:{position:"relative",height:e.fn.size({size:t,sizes:Ao})+2,boxSizing:"border-box",marginLeft:e.fn.size({size:t,sizes:Ao})/2,marginRight:e.fn.size({size:t,sizes:Ao})/2,outline:0,[`&:focus .${o("sliderThumb")}`]:y9({},e.focusRing==="always"||e.focusRing==="auto"?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[`&:focus:not(:focus-visible) .${o("sliderThumb")}`]:y9({},e.focusRing==="auto"||e.focusRing==="never"?e.focusRingStyles.resetStyles(e):null)},sliderOverlay:{position:"absolute",boxSizing:"border-box",top:0,bottom:0,left:-e.fn.size({size:t,sizes:Ao})/2-1,right:-e.fn.size({size:t,sizes:Ao})/2-1,borderRadius:1e3}})),L9=AR;var DR=Object.defineProperty,FR=Object.defineProperties,$R=Object.getOwnPropertyDescriptors,hh=Object.getOwnPropertySymbols,I9=Object.prototype.hasOwnProperty,N9=Object.prototype.propertyIsEnumerable,C9=(e,t,o)=>t in e?DR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,VR=(e,t)=>{for(var o in t||(t={}))I9.call(t,o)&&C9(e,o,t[o]);if(hh)for(var o of hh(t))N9.call(t,o)&&C9(e,o,t[o]);return e},UR=(e,t)=>FR(e,$R(t)),qR=(e,t)=>{var o={};for(var n in e)I9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&hh)for(var n of hh(e))t.indexOf(n)<0&&N9.call(e,n)&&(o[n]=e[n]);return o},Qs=(0,qn.forwardRef)((e,t)=>{var o=e,{value:n,onChange:r,onChangeEnd:a,maxValue:i,round:l,size:c="md",thumbColor:s="transparent",__staticSelector:d="ColorSlider",focusable:h=!0,overlays:v,classNames:u,styles:w,className:k,unstyled:g}=o,p=qR(o,["value","onChange","onChangeEnd","maxValue","round","size","thumbColor","__staticSelector","focusable","overlays","classNames","styles","className","unstyled"]);let{classes:m,cx:f}=L9({size:c},{classNames:u,styles:w,name:d,unstyled:g}),[E,M]=(0,qn.useState)({y:0,x:n/i}),z=(0,qn.useRef)(E),x=N=>l?Math.round(N*i):N*i,{ref:b}=Ja(({x:N,y:j})=>{z.current={x:N,y:j},r(x(N))},{onScrubEnd:()=>{let{x:N}=z.current;a(x(N))}});Ke(()=>{M({y:0,x:n/i})},[n]);let L=(N,j)=>{N.preventDefault();let T=Ls(j);r(x(T.x)),a(x(T.x))},C=N=>{switch(N.key){case"ArrowRight":{L(N,{x:E.x+.05,y:E.y});break}case"ArrowLeft":{L(N,{x:E.x-.05,y:E.y});break}}},B=v.map((N,j)=>qn.default.createElement("div",{className:m.sliderOverlay,style:N,key:j}));return qn.default.createElement(D,UR(VR({},p),{ref:Ot(b,t),className:f(m.slider,k),role:"slider","aria-valuenow":n,"aria-valuemax":i,"aria-valuemin":0,tabIndex:h?0:-1,onKeyDown:C}),B,qn.default.createElement(Xs,{__staticSelector:d,classNames:u,styles:w,position:E,style:{top:1,backgroundColor:s},className:m.sliderThumb,size:c}))});Qs.displayName="@mantine/core/ColorSlider";var GR=Object.defineProperty,KR=Object.defineProperties,YR=Object.getOwnPropertyDescriptors,vh=Object.getOwnPropertySymbols,j9=Object.prototype.hasOwnProperty,H9=Object.prototype.propertyIsEnumerable,B9=(e,t,o)=>t in e?GR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,XR=(e,t)=>{for(var o in t||(t={}))j9.call(t,o)&&B9(e,o,t[o]);if(vh)for(var o of vh(t))H9.call(t,o)&&B9(e,o,t[o]);return e},QR=(e,t)=>KR(e,YR(t)),ZR=(e,t)=>{var o={};for(var n in e)j9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&vh)for(var n of vh(e))t.indexOf(n)<0&&H9.call(e,n)&&(o[n]=e[n]);return o},rf=(0,mh.forwardRef)((e,t)=>{var o=e,{value:n,onChange:r,onChangeEnd:a}=o,i=ZR(o,["value","onChange","onChangeEnd"]);return mh.default.createElement(Qs,QR(XR({},i),{ref:t,value:n,onChange:r,onChangeEnd:a,maxValue:360,thumbColor:`hsl(${n}, 100%, 50%)`,round:!0,overlays:[{backgroundImage:"linear-gradient(to right,hsl(0,100%,50%),hsl(60,100%,50%),hsl(120,100%,50%),hsl(170,100%,50%),hsl(240,100%,50%),hsl(300,100%,50%),hsl(360,100%,50%))"},{boxShadow:"rgba(0, 0, 0, .1) 0px 0px 0px 1px inset, rgb(0, 0, 0, .15) 0px 0px 4px inset"}]}))});rf.displayName="@mantine/core/HueSlider";var ph=y(I());var JR=Object.defineProperty,eT=Object.defineProperties,tT=Object.getOwnPropertyDescriptors,W9=Object.getOwnPropertySymbols,oT=Object.prototype.hasOwnProperty,nT=Object.prototype.propertyIsEnumerable,S9=(e,t,o)=>t in e?JR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,_9=(e,t)=>{for(var o in t||(t={}))oT.call(t,o)&&S9(e,o,t[o]);if(W9)for(var o of W9(t))nT.call(t,o)&&S9(e,o,t[o]);return e},P9=(e,t)=>eT(e,tT(t));function Do(e,t=0,o=10**t){return Math.round(o*e)/o}function rT({h:e,s:t,l:o,a:n}){let r=t*((o<50?o:100-o)/100);return{h:e,s:r>0?2*r/(o+r)*100:0,v:o+r,a:n}}var aT={grad:360/400,turn:360,rad:360/(Math.PI*2)};function iT(e,t="deg"){return Number(e)*(aT[t]||1)}var lT=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function O9(e){let t=lT.exec(e);return t?rT({h:iT(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}}function af({r:e,g:t,b:o,a:n}){let r=Math.max(e,t,o),a=r-Math.min(e,t,o),i=a?r===e?(t-o)/a:r===t?2+(o-e)/a:4+(e-t)/a:0;return{h:Do(60*(i<0?i+6:i)),s:Do(r?a/r*100:0),v:Do(r/255*100),a:n}}function lf(e){let t=e[0]==="#"?e.slice(1):e;return t.length===3?af({r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:1}):af({r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:1})}function cT(e){let t=e[0]==="#"?e.slice(1):e,o=i=>Math.round(parseInt(i,16)/255*100)/100;if(t.length===4){let i=t.slice(0,3),l=o(t[3]+t[3]);return P9(_9({},lf(i)),{a:l})}let n=t.slice(0,6),r=o(t.slice(6,8));return P9(_9({},lf(n)),{a:r})}var sT=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function R9(e){let t=sT.exec(e);return t?af({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}}var T9={hex:/^#?([0-9A-F]{3}){1,2}$/i,hexa:/^#?([0-9A-F]{4}){1,2}$/i,rgb:/^rgb\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,rgba:/^rgba\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,hsl:/hsl\(\s*(\d+)\s*,\s*(\d+(?:\.\d+)?%)\s*,\s*(\d+(?:\.\d+)?%)\)/i,hsla:/^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d*(?:\.\d+)?)\)$/i},dT={hex:lf,hexa:cT,rgb:R9,rgba:R9,hsl:O9,hsla:O9};function ci(e){for(let[,t]of Object.entries(T9))if(t.test(e))return!0;return!1}function sa(e){if(typeof e!="string")return{h:0,s:0,v:0,a:1};if(e==="transparent")return{h:0,s:0,v:0,a:0};let t=e.trim();for(let[o,n]of Object.entries(T9))if(n.test(t))return dT[o](t);return{h:0,s:0,v:0,a:1}}var hT=Object.defineProperty,vT=Object.defineProperties,mT=Object.getOwnPropertyDescriptors,uh=Object.getOwnPropertySymbols,D9=Object.prototype.hasOwnProperty,F9=Object.prototype.propertyIsEnumerable,A9=(e,t,o)=>t in e?hT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,uT=(e,t)=>{for(var o in t||(t={}))D9.call(t,o)&&A9(e,o,t[o]);if(uh)for(var o of uh(t))F9.call(t,o)&&A9(e,o,t[o]);return e},pT=(e,t)=>vT(e,mT(t)),fT=(e,t)=>{var o={};for(var n in e)D9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&uh)for(var n of uh(e))t.indexOf(n)<0&&F9.call(e,n)&&(o[n]=e[n]);return o},cf=(0,ph.forwardRef)((e,t)=>{var o=e,{value:n,onChange:r,onChangeEnd:a,color:i}=o,l=fT(o,["value","onChange","onChangeEnd","color"]);let c=Ie(),s=c.colorScheme==="dark"?c.colors.dark[4]:c.colors.gray[3];return ph.default.createElement(Qs,pT(uT({},l),{ref:t,value:n,onChange:d=>r(Do(d,2)),onChangeEnd:d=>a(Do(d,2)),maxValue:1,round:!1,overlays:[{backgroundImage:`linear-gradient(45deg, ${s} 25%, transparent 25%), linear-gradient(-45deg, ${s} 25%, transparent 25%), linear-gradient(45deg, transparent 75%, ${s} 75%), linear-gradient(-45deg, ${c.colorScheme==="dark"?c.colors.dark[7]:c.white} 75%, ${s} 75%)`,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0px"},{backgroundImage:`linear-gradient(90deg, transparent, ${i})`},{boxShadow:"rgba(0, 0, 0, .1) 0px 0px 0px 1px inset, rgb(0, 0, 0, .15) 0px 0px 4px inset"}]}))});cf.displayName="@mantine/core/AlphaSlider";var an=y(I());var kT=Object.defineProperty,$9=Object.getOwnPropertySymbols,wT=Object.prototype.hasOwnProperty,gT=Object.prototype.propertyIsEnumerable,V9=(e,t,o)=>t in e?kT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,sf=(e,t)=>{for(var o in t||(t={}))wT.call(t,o)&&V9(e,o,t[o]);if($9)for(var o of $9(t))gT.call(t,o)&&V9(e,o,t[o]);return e},ET={xs:100,sm:110,md:120,lg:140,xl:160},xT=W((e,{size:t},o)=>({saturationThumb:{ref:o("saturationThumb")},saturation:{boxSizing:"border-box",position:"relative",height:e.fn.size({size:t,sizes:ET}),borderRadius:e.radius.sm,margin:e.fn.size({size:t,sizes:Ao})/2,WebkitTapHighlightColor:"transparent",[`&:focus .${o("saturationThumb")}`]:sf({},e.focusRing==="always"||e.focusRing==="auto"?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[`&:focus:not(:focus-visible) .${o("saturationThumb")}`]:sf({},e.focusRing==="auto"||e.focusRing==="never"?e.focusRingStyles.resetStyles(e):null)},saturationOverlay:sf({boxSizing:"border-box",borderRadius:e.radius.sm},e.fn.cover(-e.fn.size({size:t,sizes:Ao})/2-1))})),U9=xT;function K9({h:e,s:t,v:o,a:n}){let r=e/360*6,a=t/100,i=o/100,l=Math.floor(r),c=i*(1-a),s=i*(1-(r-l)*a),d=i*(1-(1-r+l)*a),h=l%6;return{r:Do([i,s,c,c,d,i][h]*255),g:Do([d,i,i,s,c,c][h]*255),b:Do([c,c,d,i,i,s][h]*255),a:Do(n,2)}}function q9(e,t){let{r:o,g:n,b:r,a}=K9(e);return t?`rgba(${o}, ${n}, ${r}, ${Do(a,2)})`:`rgb(${o}, ${n}, ${r})`}function G9({h:e,s:t,v:o,a:n},r){let a=(200-t)*o/100,i={h:Math.round(e),s:Math.round(a>0&&a<200?t*o/100/(a<=100?a:200-a)*100:0),l:Math.round(a/2)};return r?`hsla(${i.h}, ${i.s}%, ${i.l}%, ${Do(n,2)})`:`hsl(${i.h}, ${i.s}%, ${i.l}%)`}function fh(e){let t=e.toString(16);return t.length<2?`0${t}`:t}function Y9(e){let{r:t,g:o,b:n}=K9(e);return`#${fh(t)}${fh(o)}${fh(n)}`}function MT(e){let t=Math.round(e.a*255);return`${Y9(e)}${fh(t)}`}var df={hex:Y9,hexa:e=>MT(e),rgb:e=>q9(e,!1),rgba:e=>q9(e,!0),hsl:e=>G9(e,!1),hsla:e=>G9(e,!0)};function Mo(e,t){return t?e in df?df[e](t):df.hex(t):"#000000"}function hf({value:e,onChange:t,onChangeEnd:o,focusable:n=!0,__staticSelector:r="saturation",size:a,color:i,saturationLabel:l,classNames:c,styles:s,unstyled:d}){let{classes:h}=U9({size:a},{classNames:c,styles:s,name:r,unstyled:d}),[v,u]=(0,an.useState)({x:e.s/100,y:1-e.v/100}),w=(0,an.useRef)(v),{ref:k}=Ja(({x:m,y:f})=>{w.current={x:m,y:f},t({s:Math.round(m*100),v:Math.round((1-f)*100)})},{onScrubEnd:()=>{let{x:m,y:f}=w.current;o({s:Math.round(m*100),v:Math.round((1-f)*100)})}});(0,an.useEffect)(()=>{u({x:e.s/100,y:1-e.v/100})},[e.s,e.v]);let g=(m,f)=>{m.preventDefault();let E=Ls(f);t({s:Math.round(E.x*100),v:Math.round((1-E.y)*100)}),o({s:Math.round(E.x*100),v:Math.round((1-E.y)*100)})},p=m=>{switch(m.key){case"ArrowUp":{g(m,{y:v.y-.05,x:v.x});break}case"ArrowDown":{g(m,{y:v.y+.05,x:v.x});break}case"ArrowRight":{g(m,{x:v.x+.05,y:v.y});break}case"ArrowLeft":{g(m,{x:v.x-.05,y:v.y});break}}};return an.default.createElement("div",{className:h.saturation,ref:k,role:"slider","aria-label":l,"aria-valuenow":v.x,"aria-valuetext":Mo("rgba",e),tabIndex:n?0:-1,onKeyDown:p},an.default.createElement("div",{className:h.saturationOverlay,style:{backgroundColor:`hsl(${e.h}, 100%, 50%)`}}),an.default.createElement("div",{className:h.saturationOverlay,style:{backgroundImage:"linear-gradient(90deg, #fff, transparent)"}}),an.default.createElement("div",{className:h.saturationOverlay,style:{backgroundImage:"linear-gradient(0deg, #000, transparent)"}}),an.default.createElement(Xs,{__staticSelector:r,classNames:c,styles:s,position:v,className:h.saturationThumb,style:{backgroundColor:i},size:a}))}hf.displayName="@mantine/core/Saturation";var vf=y(I());var zT=W((e,{swatchesPerRow:t})=>({swatch:{width:`calc(${100/t}% - 4px)`,height:0,paddingBottom:`calc(${100/t}% - 4px)`,margin:2,boxSizing:"content-box"},swatches:{boxSizing:"border-box",marginLeft:-2,marginRight:-2,display:"flex",flexWrap:"wrap"}})),X9=zT;var bT=Object.defineProperty,kh=Object.getOwnPropertySymbols,Z9=Object.prototype.hasOwnProperty,J9=Object.prototype.propertyIsEnumerable,Q9=(e,t,o)=>t in e?bT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,yT=(e,t)=>{for(var o in t||(t={}))Z9.call(t,o)&&Q9(e,o,t[o]);if(kh)for(var o of kh(t))J9.call(t,o)&&Q9(e,o,t[o]);return e},LT=(e,t)=>{var o={};for(var n in e)Z9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&kh)for(var n of kh(e))t.indexOf(n)<0&&J9.call(e,n)&&(o[n]=e[n]);return o};function mf(e){var t=e,{data:o,swatchesPerRow:n=10,focusable:r=!0,classNames:a,styles:i,__staticSelector:l="color-picker",unstyled:c,setValue:s,onChangeEnd:d}=t,h=LT(t,["data","swatchesPerRow","focusable","classNames","styles","__staticSelector","unstyled","setValue","onChangeEnd"]);let{classes:v}=X9({swatchesPerRow:n},{classNames:a,styles:i,name:l,unstyled:c}),u=o.map((w,k)=>vf.default.createElement(jl,{className:v.swatch,component:"button",type:"button",color:w,key:k,radius:"sm",onClick:()=>{s(w),d==null||d(w)},style:{cursor:"pointer"},"aria-label":w,tabIndex:r?0:-1}));return vf.default.createElement("div",yT({className:v.swatches},h),u)}mf.displayName="@mantine/core/Swatches";var CT={xs:180,sm:200,md:240,lg:280,xl:320},IT=W((e,{size:t,fullWidth:o})=>({preview:{},wrapper:{boxSizing:"border-box",width:o?"100%":e.fn.size({size:t,sizes:CT}),padding:1},body:{display:"flex",boxSizing:"border-box",paddingTop:e.fn.size({size:t,sizes:e.spacing})/2},sliders:{flex:1,boxSizing:"border-box","&:not(:only-child)":{marginRight:e.spacing.xs}},slider:{boxSizing:"border-box","& + &":{marginTop:5}},swatch:{cursor:"pointer"}})),ez=IT;var NT=Object.defineProperty,BT=Object.defineProperties,jT=Object.getOwnPropertyDescriptors,wh=Object.getOwnPropertySymbols,oz=Object.prototype.hasOwnProperty,nz=Object.prototype.propertyIsEnumerable,tz=(e,t,o)=>t in e?NT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Hl=(e,t)=>{for(var o in t||(t={}))oz.call(t,o)&&tz(e,o,t[o]);if(wh)for(var o of wh(t))nz.call(t,o)&&tz(e,o,t[o]);return e},uf=(e,t)=>BT(e,jT(t)),HT=(e,t)=>{var o={};for(var n in e)oz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&wh)for(var n of wh(e))t.indexOf(n)<0&&nz.call(e,n)&&(o[n]=e[n]);return o},WT={xs:26,sm:34,md:42,lg:50,xl:54},ST={swatchesPerRow:10,size:"sm",withPicker:!0,focusable:!0,__staticSelector:"ColorPicker"},pf=(0,pt.forwardRef)((e,t)=>{let o=S("ColorPicker",ST,e),{value:n,defaultValue:r,onChange:a,onChangeEnd:i,format:l,swatches:c,swatchesPerRow:s,size:d,withPicker:h,fullWidth:v,focusable:u,__staticSelector:w,saturationLabel:k,hueLabel:g,alphaLabel:p,className:m,styles:f,classNames:E,unstyled:M,onColorSwatchClick:z}=o,x=HT(o,["value","defaultValue","onChange","onChangeEnd","format","swatches","swatchesPerRow","size","withPicker","fullWidth","focusable","__staticSelector","saturationLabel","hueLabel","alphaLabel","className","styles","classNames","unstyled","onColorSwatchClick"]),{classes:b,cx:L,theme:C}=ez({size:d,fullWidth:v},{classNames:E,styles:f,name:w,unstyled:M}),B=(0,pt.useRef)(l),N=(0,pt.useRef)(null),j=(0,pt.useRef)(!0),T=l==="hexa"||l==="rgba"||l==="hsla",[H,_]=lt({value:n,defaultValue:r,finalValue:"#FFFFFF",onChange:a}),[A,F]=(0,pt.useState)(sa(H)),V=$=>{j.current=!1,F(U=>{let ee=Hl(Hl({},U),$);return N.current=Mo(B.current,ee),ee}),_(N.current),setTimeout(()=>{j.current=!0},0)};return Ke(()=>{ci(n)&&j.current&&(F(sa(n)),j.current=!0)},[n]),Ke(()=>{B.current=l,_(Mo(l,A))},[l]),pt.default.createElement(D,Hl({className:L(b.wrapper,m),ref:t},x),h&&pt.default.createElement(pt.default.Fragment,null,pt.default.createElement(hf,{value:A,onChange:V,onChangeEnd:({s:$,v:U})=>i==null?void 0:i(Mo(B.current,uf(Hl({},A),{s:$,v:U}))),color:H,styles:f,classNames:E,size:d,focusable:u,saturationLabel:k,__staticSelector:w}),pt.default.createElement("div",{className:b.body},pt.default.createElement("div",{className:b.sliders},pt.default.createElement(rf,{value:A.h,onChange:$=>V({h:$}),onChangeEnd:$=>i==null?void 0:i(Mo(B.current,uf(Hl({},A),{h:$}))),size:d,styles:f,classNames:E,focusable:u,"aria-label":g,__staticSelector:w}),T&&pt.default.createElement(cf,{value:A.a,onChange:$=>V({a:$}),onChangeEnd:$=>{i==null||i(Mo(B.current,uf(Hl({},A),{a:$})))},size:d,color:Mo("hex",A),style:{marginTop:6},styles:f,classNames:E,focusable:u,"aria-label":p,__staticSelector:w})),T&&pt.default.createElement(jl,{color:H,radius:"sm",size:C.fn.size({size:d,sizes:WT}),className:b.preview}))),Array.isArray(c)&&pt.default.createElement(mf,{data:c,style:{marginTop:5},swatchesPerRow:s,focusable:u,classNames:E,styles:f,__staticSelector:w,setValue:_,onChangeEnd:$=>{let U=Mo(l,sa($));z==null||z(U),i==null||i(U)}}))});pf.displayName="@mantine/core/ColorPicker";var Zs=y(I()),_T=Object.defineProperty,gh=Object.getOwnPropertySymbols,az=Object.prototype.hasOwnProperty,iz=Object.prototype.propertyIsEnumerable,rz=(e,t,o)=>t in e?_T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,PT=(e,t)=>{for(var o in t||(t={}))az.call(t,o)&&rz(e,o,t[o]);if(gh)for(var o of gh(t))iz.call(t,o)&&rz(e,o,t[o]);return e},OT=(e,t)=>{var o={};for(var n in e)az.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&gh)for(var n of gh(e))t.indexOf(n)<0&&iz.call(e,n)&&(o[n]=e[n]);return o};function lz(e){var t=e,{size:o}=t,n=OT(t,["size"]);return Zs.default.createElement("svg",PT({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-color-picker",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},n),Zs.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Zs.default.createElement("path",{d:"M11 7l6 6"}),Zs.default.createElement("path",{d:"M4 16l11.7 -11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4l-11.7 11.7h-4v-4z"}))}var RT=Object.defineProperty,TT=Object.defineProperties,AT=Object.getOwnPropertyDescriptors,Eh=Object.getOwnPropertySymbols,dz=Object.prototype.hasOwnProperty,hz=Object.prototype.propertyIsEnumerable,cz=(e,t,o)=>t in e?RT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,ff=(e,t)=>{for(var o in t||(t={}))dz.call(t,o)&&cz(e,o,t[o]);if(Eh)for(var o of Eh(t))hz.call(t,o)&&cz(e,o,t[o]);return e},sz=(e,t)=>TT(e,AT(t)),DT=(e,t)=>{var o={};for(var n in e)dz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Eh)for(var n of Eh(e))t.indexOf(n)<0&&hz.call(e,n)&&(o[n]=e[n]);return o},FT={xs:16,sm:18,md:22,lg:28,xl:36},$T={xs:14,sm:16,md:18,lg:20,xl:22},VT={xs:28,sm:32,md:38,lg:44,xl:58},UT={size:"sm",format:"hex",fixOnBlur:!0,withPreview:!0,swatchesPerRow:10,withPicker:!0,transition:"pop-top-left",dropdownZIndex:vo("popover"),transitionDuration:0,withinPortal:!0,shadow:"md",withEyeDropper:!0},xh=(0,yt.forwardRef)((e,t)=>{let o=aa("ColorInput",UT,e),{wrapperProps:n,inputProps:r,format:a,onChange:i,onChangeEnd:l,onFocus:c,onBlur:s,onClick:d,value:h,defaultValue:v,disallowInput:u,fixOnBlur:w,withPreview:k,swatchesPerRow:g,withPicker:p,icon:m,transition:f,dropdownZIndex:E,transitionDuration:M,transitionTimingFunction:z,withinPortal:x,swatches:b,shadow:L,classNames:C,styles:B,unstyled:N,readOnly:j,withEyeDropper:T,eyeDropperIcon:H,rightSection:_,rightSectionWidth:A,closeOnColorSwatchClick:F,disabled:V}=o,$=DT(o,["wrapperProps","inputProps","format","onChange","onChangeEnd","onFocus","onBlur","onClick","value","defaultValue","disallowInput","fixOnBlur","withPreview","swatchesPerRow","withPicker","icon","transition","dropdownZIndex","transitionDuration","transitionTimingFunction","withinPortal","swatches","shadow","classNames","styles","unstyled","readOnly","withEyeDropper","eyeDropperIcon","rightSection","rightSectionWidth","closeOnColorSwatchClick","disabled"]),U=Ie(),[ee,de]=(0,yt.useState)(!1),[Q,se]=(0,yt.useState)(""),[ve,re]=lt({value:h,defaultValue:v,finalValue:"",onChange:i}),{supported:ae,open:me}=sp(),te=yt.default.createElement(on,{sx:{color:U.colorScheme==="dark"?U.colors.dark[0]:U.black},size:r.size,onClick:()=>me().then(({sRGBHex:Be})=>re(Mo(a,sa(Be)))).catch(rs)},H||yt.default.createElement(lz,{size:U.fn.size({size:r.size,sizes:$T})})),le=Be=>{c==null||c(Be),de(!0)},ue=Be=>{s==null||s(Be),de(!1),w&&re(Q)},Oe=Be=>{d==null||d(Be),de(!0)};return(0,yt.useEffect)(()=>{(ci(ve)||ve.trim()==="")&&se(ve)},[ve]),Ke(()=>{ci(ve)&&re(Mo(a,sa(ve)))},[a]),yt.default.createElement(zt.Wrapper,sz(ff({},n),{__staticSelector:"ColorInput"}),yt.default.createElement(Cn,{__staticSelector:"ColorInput",position:"bottom-start",offset:5,zIndex:E,withinPortal:x,transitionDuration:M,transition:f,opened:ee,shadow:L,classNames:C,styles:B,unstyled:N,disabled:j||p===!1&&(!Array.isArray(b)||b.length===0)},yt.default.createElement(Cn.Target,null,yt.default.createElement("div",null,yt.default.createElement(zt,sz(ff(ff({autoComplete:"nope"},$),r),{disabled:V,ref:t,__staticSelector:"ColorInput",onFocus:le,onBlur:ue,onClick:Oe,spellCheck:!1,value:ve,onChange:Be=>{let oo=Be.currentTarget.value;re(oo),ci(oo)&&(l==null||l(Mo(a,sa(oo))))},icon:m||(k?yt.default.createElement(jl,{color:ci(ve)?ve:"#fff",size:U.fn.size({size:r.size,sizes:FT})}):null),readOnly:u||j,sx:{cursor:u?"pointer":void 0},unstyled:N,classNames:C,styles:B,rightSection:_||(T&&!V&&!j&&ae?te:null),rightSectionWidth:A!=null?A:U.fn.size({size:r.size,sizes:VT})})))),yt.default.createElement(Cn.Dropdown,{onMouseDown:Be=>Be.preventDefault(),p:r.size},yt.default.createElement(pf,{__staticSelector:"ColorInput",value:ve,onChange:re,onChangeEnd:l,format:a,swatches:b,swatchesPerRow:g,withPicker:p,size:r.size,focusable:!1,unstyled:N,styles:B,classNames:C,onColorSwatchClick:()=>F&&de(!1)}))))});xh.displayName="@mantine/core/ColorInput";var zh=y(I());var qT=W((e,{fluid:t,size:o,sizes:n})=>({root:{paddingLeft:e.spacing.md,paddingRight:e.spacing.md,maxWidth:t?"100%":e.fn.size({size:o,sizes:n}),marginLeft:"auto",marginRight:"auto"}})),vz=qT;var GT=Object.defineProperty,Mh=Object.getOwnPropertySymbols,uz=Object.prototype.hasOwnProperty,pz=Object.prototype.propertyIsEnumerable,mz=(e,t,o)=>t in e?GT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,KT=(e,t)=>{for(var o in t||(t={}))uz.call(t,o)&&mz(e,o,t[o]);if(Mh)for(var o of Mh(t))pz.call(t,o)&&mz(e,o,t[o]);return e},YT=(e,t)=>{var o={};for(var n in e)uz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Mh)for(var n of Mh(e))t.indexOf(n)<0&&pz.call(e,n)&&(o[n]=e[n]);return o},XT={sizes:{xs:540,sm:720,md:960,lg:1140,xl:1320}},bh=(0,zh.forwardRef)((e,t)=>{let o=S("Container",XT,e),{className:n,fluid:r,size:a,unstyled:i,sizes:l}=o,c=YT(o,["className","fluid","size","unstyled","sizes"]),{classes:s,cx:d}=vz({fluid:r,size:a,sizes:l},{unstyled:i,name:"Container"});return zh.default.createElement(D,KT({className:d(s.root,n),ref:t},c))});bh.displayName="@mantine/core/Container";var Js=y(I());function kf({transitions:e,duration:t=250,exitDuration:o=t,mounted:n,children:r,timingFunction:a,onExit:i,onEntered:l,onEnter:c,onExited:s}){let{transitionDuration:d,transitionStatus:h,transitionTimingFunction:v}=bd({mounted:n,duration:t,exitDuration:o,timingFunction:a,onExit:i,onEntered:l,onEnter:c,onExited:s});if(d===0)return n?Js.default.createElement(Js.default.Fragment,null,r({})):null;if(h==="exited")return null;let u=Object.keys(e).reduce((w,k)=>(w[k]=zd({duration:e[k].duration,transition:e[k].transition,timingFunction:e[k].timingFunction||v,state:h}),w),{});return Js.default.createElement(Js.default.Fragment,null,r(u))}kf.displayName="@mantine/core/GroupedTransition";var e0=y(I());var QT=W((e,{zIndex:t})=>({root:{position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:t}})),fz=QT;var ZT=Object.defineProperty,JT=Object.defineProperties,eA=Object.getOwnPropertyDescriptors,yh=Object.getOwnPropertySymbols,wz=Object.prototype.hasOwnProperty,gz=Object.prototype.propertyIsEnumerable,kz=(e,t,o)=>t in e?ZT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,wf=(e,t)=>{for(var o in t||(t={}))wz.call(t,o)&&kz(e,o,t[o]);if(yh)for(var o of yh(t))gz.call(t,o)&&kz(e,o,t[o]);return e},tA=(e,t)=>JT(e,eA(t)),oA=(e,t)=>{var o={};for(var n in e)wz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&yh)for(var n of yh(e))t.indexOf(n)<0&&gz.call(e,n)&&(o[n]=e[n]);return o},nA={opacity:.6,color:"#fff",zIndex:vo("modal"),radius:0,blur:0},Ez=(0,e0.forwardRef)((e,t)=>{let o=S("Overlay",nA,e),{opacity:n,blur:r,color:a,gradient:i,zIndex:l,radius:c,sx:s,unstyled:d,className:h}=o,v=oA(o,["opacity","blur","color","gradient","zIndex","radius","sx","unstyled","className"]),{classes:u,cx:w}=fz({zIndex:l},{name:"Overlay",unstyled:d}),k=i?{backgroundImage:i}:{backgroundColor:a},g=p=>e0.default.createElement(D,wf({ref:t,className:w(u.root,h),sx:[m=>tA(wf({},k),{opacity:n,borderRadius:m.fn.size({size:c,sizes:m.radius})}),...Eo(s)]},p));return r?e0.default.createElement(D,wf({className:w(u.root,h),sx:[{backdropFilter:`blur(${r}px)`},...Eo(s)]},v),g()):g(v)});Ez.displayName="@mantine/core/Overlay";var Lh=Ez;var da=y(I());var rA=Object.defineProperty,Ch=Object.getOwnPropertySymbols,Mz=Object.prototype.hasOwnProperty,zz=Object.prototype.propertyIsEnumerable,xz=(e,t,o)=>t in e?rA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,aA=(e,t)=>{for(var o in t||(t={}))Mz.call(t,o)&&xz(e,o,t[o]);if(Ch)for(var o of Ch(t))zz.call(t,o)&&xz(e,o,t[o]);return e},iA=(e,t)=>{var o={};for(var n in e)Mz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Ch)for(var n of Ch(e))t.indexOf(n)<0&&zz.call(e,n)&&(o[n]=e[n]);return o},lA={multiple:!1},gf=(0,da.forwardRef)((e,t)=>{let o=S("FileButton",lA,e),{onChange:n,children:r,multiple:a,accept:i,name:l,form:c,resetRef:s,disabled:d,capture:h}=o,v=iA(o,["onChange","children","multiple","accept","name","form","resetRef","disabled","capture"]),u=(0,da.useRef)(),w=()=>{!d&&u.current.click()},k=p=>{n(a?Array.from(p.currentTarget.files):p.currentTarget.files[0]||null)};return Za(s,()=>{u.current.value=""}),da.default.createElement(da.default.Fragment,null,r(aA({onClick:w},v)),da.default.createElement("input",{style:{display:"none"},type:"file",accept:i,multiple:a,onChange:k,ref:Ot(t,u),name:l,form:c,capture:h}))});gf.displayName="@mantine/core/FileButton";var zo=y(I());var cA=W(()=>({placeholder:{},input:{cursor:"pointer"}})),bz=cA;var sA=Object.defineProperty,dA=Object.defineProperties,hA=Object.getOwnPropertyDescriptors,Ih=Object.getOwnPropertySymbols,Lz=Object.prototype.hasOwnProperty,Cz=Object.prototype.propertyIsEnumerable,yz=(e,t,o)=>t in e?sA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,t0=(e,t)=>{for(var o in t||(t={}))Lz.call(t,o)&&yz(e,o,t[o]);if(Ih)for(var o of Ih(t))Cz.call(t,o)&&yz(e,o,t[o]);return e},Ef=(e,t)=>dA(e,hA(t)),vA=(e,t)=>{var o={};for(var n in e)Lz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Ih)for(var n of Ih(e))t.indexOf(n)<0&&Cz.call(e,n)&&(o[n]=e[n]);return o},mA=({value:e})=>zo.default.createElement(oe,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},Array.isArray(e)?e.map(t=>t.name).join(", "):e==null?void 0:e.name),uA={size:"sm",valueComponent:mA,clearButtonTabIndex:0},pA={xs:24,sm:30,md:34,lg:40,xl:44},Iz=(0,zo.forwardRef)((e,t)=>{let o=aa("FileInput",uA,e),{inputProps:n,wrapperProps:r,placeholder:a,value:i,defaultValue:l,onChange:c,multiple:s,accept:d,name:h,form:v,classNames:u,styles:w,unstyled:k,valueComponent:g,rightSection:p,rightSectionWidth:m,clearable:f,clearButtonLabel:E,clearButtonTabIndex:M,readOnly:z,capture:x}=o,b=vA(o,["inputProps","wrapperProps","placeholder","value","defaultValue","onChange","multiple","accept","name","form","classNames","styles","unstyled","valueComponent","rightSection","rightSectionWidth","clearable","clearButtonLabel","clearButtonTabIndex","readOnly","capture"]),L=(0,zo.useRef)(),{classes:C,theme:B,cx:N}=bz(null,{name:"FileInput",classNames:u,styles:w,unstyled:k}),[j,T]=lt({value:i,defaultValue:l,onChange:c,finalValue:s?[]:null}),H=Array.isArray(j)?j.length!==0:j!==null,_=p||(f&&H&&!z?zo.default.createElement(Zr,{variant:"transparent","aria-label":E,onClick:()=>T(s?[]:null),size:n.size,tabIndex:M,unstyled:k}):null);return(0,zo.useEffect)(()=>{(Array.isArray(j)&&j.length===0||j===null)&&L.current()},[j]),zo.default.createElement(zt.Wrapper,Ef(t0({},r),{__staticSelector:"FileInput"}),zo.default.createElement(gf,{onChange:T,multiple:s,accept:d,name:h,form:v,resetRef:L,disabled:z,capture:x},A=>zo.default.createElement(zt,Ef(t0(t0(t0({multiline:!0},A),n),b),{component:"button",type:"button",ref:t,__staticSelector:"FileInput",rightSection:_,rightSectionWidth:m||B.fn.size({size:n.size,sizes:pA}),classNames:Ef(t0({},u),{input:N(C.input,u==null?void 0:u.input)})}),H?zo.default.createElement(g,{value:j}):zo.default.createElement(zt.Placeholder,{className:C.placeholder},a))))});Iz.displayName="@mantine/core/FileInput";var Wl=Iz;var Bh=y(I());var Nz={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"default",property:"alignItems"},justify:{type:"default",property:"justifyContent"},wrap:{type:"default",property:"flexWrap"},direction:{type:"default",property:"flexDirection"}};var fA=Object.defineProperty,kA=Object.defineProperties,wA=Object.getOwnPropertyDescriptors,Nh=Object.getOwnPropertySymbols,jz=Object.prototype.hasOwnProperty,Hz=Object.prototype.propertyIsEnumerable,Bz=(e,t,o)=>t in e?fA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,gA=(e,t)=>{for(var o in t||(t={}))jz.call(t,o)&&Bz(e,o,t[o]);if(Nh)for(var o of Nh(t))Hz.call(t,o)&&Bz(e,o,t[o]);return e},EA=(e,t)=>kA(e,wA(t)),xA=(e,t)=>{var o={};for(var n in e)jz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Nh)for(var n of Nh(e))t.indexOf(n)<0&&Hz.call(e,n)&&(o[n]=e[n]);return o},MA={},jh=(0,Bh.forwardRef)((e,t)=>{let o=S("Flex",MA,e),{gap:n,rowGap:r,columnGap:a,align:i,justify:l,wrap:c,direction:s,sx:d}=o,h=xA(o,["gap","rowGap","columnGap","align","justify","wrap","direction","sx"]);return Bh.default.createElement(D,EA(gA({},h),{sx:[{display:"flex"},v=>Ns({gap:n,rowGap:r,columnGap:a,align:i,justify:l,wrap:c,direction:s},v,Nz),...Eo(d)],ref:t}))});jh.displayName="@mantine/core/Flex";var Fo=y(I());var xf=y(I()),zA=Object.defineProperty,Wz=Object.getOwnPropertySymbols,bA=Object.prototype.hasOwnProperty,yA=Object.prototype.propertyIsEnumerable,Sz=(e,t,o)=>t in e?zA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,LA=(e,t)=>{for(var o in t||(t={}))bA.call(t,o)&&Sz(e,o,t[o]);if(Wz)for(var o of Wz(t))yA.call(t,o)&&Sz(e,o,t[o]);return e};function _z(e){return xf.default.createElement("svg",LA({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),xf.default.createElement("path",{d:"M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var CA=Object.defineProperty,IA=Object.defineProperties,NA=Object.getOwnPropertyDescriptors,Pz=Object.getOwnPropertySymbols,BA=Object.prototype.hasOwnProperty,jA=Object.prototype.propertyIsEnumerable,Oz=(e,t,o)=>t in e?CA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Rz=(e,t)=>{for(var o in t||(t={}))BA.call(t,o)&&Oz(e,o,t[o]);if(Pz)for(var o of Pz(t))jA.call(t,o)&&Oz(e,o,t[o]);return e},Tz=(e,t)=>IA(e,NA(t)),HA=W((e,{radius:t})=>({root:{},imageWrapper:{position:"relative"},figure:{margin:0},image:Tz(Rz({},e.fn.fontStyles()),{display:"block",width:"100%",height:"100%",border:0,borderRadius:e.fn.size({size:t,sizes:e.radius})}),caption:{color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[7],marginTop:e.spacing.xs},placeholder:Tz(Rz({},e.fn.cover()),{display:"flex",alignItems:"center",justifyContent:"center",color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],backgroundColor:e.colorScheme==="dark"?e.colors.dark[8]:e.colors.gray[0],borderRadius:e.fn.size({size:t,sizes:e.radius})})})),Az=HA;var WA=Object.defineProperty,Hh=Object.getOwnPropertySymbols,Fz=Object.prototype.hasOwnProperty,$z=Object.prototype.propertyIsEnumerable,Dz=(e,t,o)=>t in e?WA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Mf=(e,t)=>{for(var o in t||(t={}))Fz.call(t,o)&&Dz(e,o,t[o]);if(Hh)for(var o of Hh(t))$z.call(t,o)&&Dz(e,o,t[o]);return e},SA=(e,t)=>{var o={};for(var n in e)Fz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Hh)for(var n of Hh(e))t.indexOf(n)<0&&$z.call(e,n)&&(o[n]=e[n]);return o},_A={fit:"cover",width:"100%",height:"auto",radius:0},Wh=(0,Fo.forwardRef)((e,t)=>{let o=S("Image",_A,e),{className:n,alt:r,src:a,fit:i,width:l,height:c,radius:s,imageProps:d,withPlaceholder:h,placeholder:v,imageRef:u,classNames:w,styles:k,caption:g,unstyled:p,style:m}=o,f=SA(o,["className","alt","src","fit","width","height","radius","imageProps","withPlaceholder","placeholder","imageRef","classNames","styles","caption","unstyled","style"]),{classes:E,cx:M}=Az({radius:s},{classNames:w,styles:k,unstyled:p,name:"Image"}),[z,x]=(0,Fo.useState)(!a),b=h&&z;return Ke(()=>{x(!a)},[a]),Fo.default.createElement(D,Mf({className:M(E.root,n),ref:t,style:Mf({width:l},m)},f),Fo.default.createElement("figure",{className:E.figure},Fo.default.createElement("div",{className:E.imageWrapper},Fo.default.createElement("img",Mf({className:E.image,src:a,alt:r,style:{objectFit:i,width:l,height:c},ref:u,onError:L=>{x(!0),typeof(d==null?void 0:d.onError)=="function"&&d.onError(L)}},d)),b&&Fo.default.createElement("div",{className:E.placeholder,title:r},v||Fo.default.createElement("div",null,Fo.default.createElement(_z,{style:{width:40,height:40}})))),!!g&&Fo.default.createElement(oe,{component:"figcaption",size:"sm",align:"center",className:E.caption},g)))});Wh.displayName="@mantine/core/Image";var ln=y(I());var PA=Object.defineProperty,OA=Object.defineProperties,RA=Object.getOwnPropertyDescriptors,Vz=Object.getOwnPropertySymbols,TA=Object.prototype.hasOwnProperty,AA=Object.prototype.propertyIsEnumerable,Uz=(e,t,o)=>t in e?PA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,qz=(e,t)=>{for(var o in t||(t={}))TA.call(t,o)&&Uz(e,o,t[o]);if(Vz)for(var o of Vz(t))AA.call(t,o)&&Uz(e,o,t[o]);return e},Gz=(e,t)=>OA(e,RA(t)),DA=e=>Xr({from:{boxShadow:`0 0 0.5px 0 ${e}`,opacity:.6},to:{boxShadow:`0 0 0.5px 4.4px ${e}`,opacity:0}});function Kz(e,t=0){let o={},[n,r]=e.split("-"),a="",i="";return n==="top"&&(o.top=t,i="-50%"),n==="middle"&&(o.top="50%",i="-50%"),n==="bottom"&&(o.bottom=t,i="50%"),r==="start"&&(o.left=t,a="-50%"),r==="center"&&(o.left="50%",a="-50%"),r==="end"&&(o.right=t,a="50%"),o.transform=`translate(${a}, ${i})`,o}var FA=W((e,{radius:t,size:o,color:n,position:r,offset:a,inline:i,withBorder:l,withLabel:c,zIndex:s})=>{let{background:d}=e.fn.variant({variant:"filled",primaryFallback:!1,color:n||e.primaryColor});return{root:{position:"relative",display:i?"inline-block":"block"},indicator:Gz(qz({},Kz(r,a)),{zIndex:s,position:"absolute",[c?"minWidth":"width"]:o,height:o,display:"flex",justifyContent:"center",alignItems:"center",fontSize:e.fontSizes.xs,paddingLeft:c?`calc(${e.spacing.xs}px / 2)`:0,paddingRight:c?`calc(${e.spacing.xs}px / 2)`:0,borderRadius:e.fn.size({size:t,sizes:e.radius}),backgroundColor:e.fn.variant({variant:"filled",primaryFallback:!1,color:n||e.primaryColor}).background,border:l?`2px solid ${e.colorScheme==="dark"?e.colors.dark[7]:e.white}`:void 0,color:e.white,whiteSpace:"nowrap"}),processing:{animation:`${DA(d)} 1000ms linear infinite`},common:Gz(qz({},Kz(r,a)),{position:"absolute",[c?"minWidth":"width"]:o,height:o,borderRadius:e.fn.size({size:t,sizes:e.radius})})}}),Yz=FA;var bo=y(I());var Lt=y(I());var $A=Xr({from:{transform:"translateY(-60%)",opacity:0},to:{transform:"translateY(0%)",opacity:1}}),VA=Xr({from:{transform:"translateY(60%)",opacity:0},to:{transform:"translateY(0%)",opacity:1}}),UA=Xr({from:{transform:"translateY(0%)",opacity:1},to:{transform:"translateY(-60%)",opacity:0}}),qA=Xr({from:{transform:"translateY(0%)",opacity:1},to:{transform:"translateY(60%)",opacity:0}}),GA=W(()=>({baseNumber:{height:18,width:"0.6em",maxWidth:"0.6em",position:"relative",display:"inline-block"},oldNumberTop:{transform:"translateY(-100%);"},oldNumberBottom:{transform:"translateY(100%);"},oldNumber:{display:"inline-block",opacity:0,position:"absolute",left:0,right:0},currentNumberTop:{transform:"translateY(0%);"},currentNumber:{display:"inline-block",opacity:1,position:"absolute",top:0,bottom:0,left:0,right:0},currentNumberScrollDown:{animation:`${$A} .2s cubic-bezier(0,0,.2, 1)`,animationIterationCount:1},currentNumberScrollUp:{animation:`${VA} .2s cubic-bezier(0,0,.2, 1)`,animationIterationCount:1},oldNumberScrollUp:{animation:`${UA} .2s cubic-bezier(0,0,.2, 1)`,animationIterationCount:1},oldNumberScrollDown:{animation:`${qA} .2s cubic-bezier(0,0,.2, 1)`,animationIterationCount:1}})),Xz=GA;var Qz=(0,Lt.forwardRef)((e,t)=>{let[o,n]=(0,Lt.useState)(e.value),[r,a]=(0,Lt.useState)(e.value),[i,l]=(0,Lt.useState)("up"),[c,s]=(0,Lt.useState)(!1),d=Is(e.value),h=p=>{s(!0),l(p),setTimeout(()=>{s(!1)},180)},v=()=>{let{newOriginalNumber:p,oldOriginalNumber:m}=e;p==null||m==null||(p>m?h("up"):p{n(d),a(e.value),v()},[e.value,d]);let{classes:u,cx:w}=Xz(null,{name:"MachineNumber"}),k=(0,Lt.useMemo)(()=>c?i==="up"?u.currentNumberScrollUp:u.currentNumberScrollDown:null,[c,i]),g=(0,Lt.useMemo)(()=>c?i==="up"?u.oldNumberScrollUp:u.oldNumberScrollDown:null,[c,i]);return Lt.default.createElement("span",{ref:t,className:u.baseNumber},o&&Lt.default.createElement("span",{className:w(u.oldNumber,u.currentNumberTop,g)},o)||null,Lt.default.createElement("span",null,Lt.default.createElement("span",{className:w(u.currentNumber,k)},r)),o&&Lt.default.createElement("span",{className:w(u.oldNumber,u.oldNumberBottom,g)},o)||null)});var KA=W(()=>({base:{display:"flex",alignItems:"center",overflow:"hidden"}})),Zz=KA;var Jz=(0,bo.forwardRef)(({value:e=0,max:t},o)=>{let[n,r]=(0,bo.useState)(),[a,i]=(0,bo.useState)(),l=Is(e);(0,bo.useEffect)(()=>{typeof e=="string"?(r(void 0),i(void 0)):typeof l=="string"?(r(void 0),i(e)):(r(l),i(e))},[e,l]);let c=(0,bo.useMemo)(()=>{if(typeof e=="string")return[];if(e<1)return[0];let d=[],h=e;for(typeof t=="number"&&(h=Math.min(t,h));h>=1;)d.push(h%10),h/=10,h=Math.floor(h);return d.reverse(),d},[e,t]),{classes:s}=Zz(null,{name:"machine"});return typeof e=="string"?bo.default.createElement("span",{ref:o},e):bo.default.createElement("span",{ref:o,className:s.base},c.map((d,h)=>bo.default.createElement(Qz,{key:c.length-h-1,value:d,oldOriginalNumber:n,newOriginalNumber:a})),typeof t=="number"&&e>t&&bo.default.createElement("span",null,"+"))});var YA=Object.defineProperty,Sh=Object.getOwnPropertySymbols,tb=Object.prototype.hasOwnProperty,ob=Object.prototype.propertyIsEnumerable,eb=(e,t,o)=>t in e?YA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,XA=(e,t)=>{for(var o in t||(t={}))tb.call(t,o)&&eb(e,o,t[o]);if(Sh)for(var o of Sh(t))ob.call(t,o)&&eb(e,o,t[o]);return e},QA=(e,t)=>{var o={};for(var n in e)tb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Sh)for(var n of Sh(e))t.indexOf(n)<0&&ob.call(e,n)&&(o[n]=e[n]);return o},ZA={position:"top-end",offset:0,inline:!1,withBorder:!1,disabled:!1,showZero:!0,processing:!1,dot:!0,size:10,overflowCount:99,radius:1e3,zIndex:vo("app")},o0=(0,ln.forwardRef)((e,t)=>{let o=S("Indicator",ZA,e),{children:n,position:r,offset:a,size:i,radius:l,inline:c,withBorder:s,className:d,color:h,dot:v,styles:u,label:w,overflowCount:k,showZero:g,classNames:p,disabled:m,zIndex:f,unstyled:E,processing:M}=o,z=QA(o,["children","position","offset","size","radius","inline","withBorder","className","color","dot","styles","label","overflowCount","showZero","classNames","disabled","zIndex","unstyled","processing"]),{classes:x,cx:b}=Yz({position:r,offset:a,size:i,radius:l,inline:c,color:h,withBorder:s,zIndex:f,withLabel:!!w},{name:"Indicator",classNames:p,styles:u,unstyled:E}),L=(0,ln.useMemo)(()=>typeof w=="number"?ln.default.createElement(Jz,{value:w,max:k}):w,[w,k]),C=(0,ln.useMemo)(()=>!m&&(v||w!=null&&!(w<=0&&!g)),[m,w,g]);return ln.default.createElement(D,XA({ref:t,className:b(x.root,d)},z),C&&ln.default.createElement(ln.default.Fragment,null,ln.default.createElement("div",{className:b(x.indicator,x.common)},L),M&&ln.default.createElement("div",{className:b(x.processing,x.common)})),n)});o0.displayName="@mantine/core/Indicator";var ha=y(I());var JA=W({root:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"}}),nb=JA;var eD=Object.defineProperty,tD=Object.defineProperties,oD=Object.getOwnPropertyDescriptors,Ph=Object.getOwnPropertySymbols,ab=Object.prototype.hasOwnProperty,ib=Object.prototype.propertyIsEnumerable,rb=(e,t,o)=>t in e?eD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,_h=(e,t)=>{for(var o in t||(t={}))ab.call(t,o)&&rb(e,o,t[o]);if(Ph)for(var o of Ph(t))ib.call(t,o)&&rb(e,o,t[o]);return e},nD=(e,t)=>tD(e,oD(t)),rD=(e,t)=>{var o={};for(var n in e)ab.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Ph)for(var n of Ph(e))t.indexOf(n)<0&&ib.call(e,n)&&(o[n]=e[n]);return o},aD={overlayOpacity:.75,transitionDuration:0,zIndex:vo("overlay")},va=(0,ha.forwardRef)((e,t)=>{let o=S("LoadingOverlay",aD,e),{className:n,visible:r,loaderProps:a,overlayOpacity:i,overlayColor:l,transitionDuration:c,exitTransitionDuration:s,zIndex:d,style:h,loader:v,radius:u,overlayBlur:w,unstyled:k}=o,g=rD(o,["className","visible","loaderProps","overlayOpacity","overlayColor","transitionDuration","exitTransitionDuration","zIndex","style","loader","radius","overlayBlur","unstyled"]),{classes:p,cx:m,theme:f}=nb(null,{name:"LoadingOverlay",unstyled:k}),E=`calc(${d} + 1)`;return ha.default.createElement(ni,{duration:c,exitDuration:s,mounted:r,transition:"fade"},M=>ha.default.createElement(D,_h({className:m(p.root,n),style:nD(_h(_h({},M),h),{zIndex:d}),ref:t},g),v?ha.default.createElement("div",{style:{zIndex:E}},v):ha.default.createElement(tn,_h({style:{zIndex:E}},a)),ha.default.createElement(Lh,{opacity:i,zIndex:d,radius:u,blur:w,unstyled:k,color:l||(f.colorScheme==="dark"?f.colors.dark[5]:f.white)})))});va.displayName="@mantine/core/LoadingOverlay";var ft=y(I());var iD=Object.defineProperty,lb=Object.getOwnPropertySymbols,lD=Object.prototype.hasOwnProperty,cD=Object.prototype.propertyIsEnumerable,cb=(e,t,o)=>t in e?iD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,sD=(e,t)=>{for(var o in t||(t={}))lD.call(t,o)&&cb(e,o,t[o]);if(lb)for(var o of lb(t))cD.call(t,o)&&cb(e,o,t[o]);return e},dD={xs:320,sm:380,md:440,lg:620,xl:780};function hD(e){return e?{position:"absolute",top:0,left:0,right:0,bottom:0,maxHeight:"100vh",overflowY:"auto"}:{}}var vD=W((e,{overflow:t,size:o,centered:n,zIndex:r,fullScreen:a})=>({close:{},overlay:{display:a?"none":void 0},root:{position:"fixed",zIndex:r,top:0,left:0,right:0,bottom:0},inner:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowY:"auto",padding:a?0:`${e.spacing.xl*2}px ${e.spacing.md}px`,display:"flex",justifyContent:"center",alignItems:n?"center":"flex-start"},title:{marginRight:e.spacing.md,textOverflow:"ellipsis",display:"block",wordBreak:"break-word"},modal:sD({position:"relative",width:a?"100vw":e.fn.size({sizes:dD,size:o}),borderRadius:a?0:void 0,outline:0,backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,marginTop:n?"auto":void 0,marginBottom:n?"auto":void 0,zIndex:1},hD(a)),header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:e.spacing.md,marginRight:-9},body:{maxHeight:t==="inside"?"calc(100vh - 185px)":null,overflowY:t==="inside"?"auto":null,wordBreak:"break-word"}})),sb=vD;var mD=Object.defineProperty,Oh=Object.getOwnPropertySymbols,hb=Object.prototype.hasOwnProperty,vb=Object.prototype.propertyIsEnumerable,db=(e,t,o)=>t in e?mD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,uD=(e,t)=>{for(var o in t||(t={}))hb.call(t,o)&&db(e,o,t[o]);if(Oh)for(var o of Oh(t))vb.call(t,o)&&db(e,o,t[o]);return e},pD=(e,t)=>{var o={};for(var n in e)hb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Oh)for(var n of Oh(e))t.indexOf(n)<0&&vb.call(e,n)&&(o[n]=e[n]);return o},fD={size:"md",transitionDuration:250,overflow:"outside",padding:"lg",shadow:"lg",closeOnClickOutside:!0,closeOnEscape:!0,trapFocus:!0,withCloseButton:!0,withinPortal:!0,lockScroll:!0,withFocusReturn:!0,overlayBlur:0,zIndex:vo("modal"),exitTransitionDuration:0};function ma(e){let t=S("Modal",fD,e),{className:o,opened:n,title:r,onClose:a,children:i,withCloseButton:l,overlayOpacity:c,size:s,transitionDuration:d,exitTransitionDuration:h,closeButtonLabel:v,overlayColor:u,overflow:w,transition:k,padding:g,shadow:p,radius:m,id:f,classNames:E,styles:M,closeOnClickOutside:z,trapFocus:x,closeOnEscape:b,centered:L,target:C,withinPortal:B,zIndex:N,overlayBlur:j,transitionTimingFunction:T,fullScreen:H,unstyled:_,lockScroll:A,withFocusReturn:F}=t,V=pD(t,["className","opened","title","onClose","children","withCloseButton","overlayOpacity","size","transitionDuration","exitTransitionDuration","closeButtonLabel","overlayColor","overflow","transition","padding","shadow","radius","id","classNames","styles","closeOnClickOutside","trapFocus","closeOnEscape","centered","target","withinPortal","zIndex","overlayBlur","transitionTimingFunction","fullScreen","unstyled","lockScroll","withFocusReturn"]),$=Ro(f),U=`${$}-title`,ee=`${$}-body`,{classes:de,cx:Q,theme:se}=sb({size:s,overflow:w,centered:L,zIndex:N,fullScreen:H},{unstyled:_,classNames:E,styles:M,name:"Modal"}),ve=ys(x&&n),re=(0,ft.useRef)(null),ae=Ot(ve,re),me=typeof c=="number"?c:se.colorScheme==="dark"?.85:.75;lp(A&&n);let te=Oe=>{!x&&Oe.key==="Escape"&&b&&a()};(0,ft.useEffect)(()=>{if(!x)return window.addEventListener("keydown",te),()=>window.removeEventListener("keydown",te)},[x]),bs({opened:n,shouldReturnFocus:x&&F});let le=(0,ft.useRef)(null);vl("mousedown",Oe=>{le.current=Oe.target});let ue=()=>{le.current===re.current&&z&&a()};return ft.default.createElement(js,{withinPortal:B,target:C},ft.default.createElement(kf,{mounted:n,duration:d,exitDuration:h,timingFunction:T,transitions:{modal:{duration:d,transition:k||(H?"fade":"pop")},overlay:{duration:d/2,transition:"fade",timingFunction:"ease"}}},Oe=>ft.default.createElement(ft.default.Fragment,null,ft.default.createElement(D,uD({id:$,className:Q(de.root,o)},V),ft.default.createElement("div",{style:Oe.overlay},ft.default.createElement(Lh,{className:de.overlay,sx:{position:"fixed"},zIndex:0,blur:j,color:u||(se.colorScheme==="dark"?se.colors.dark[9]:se.black),opacity:me,unstyled:_})),ft.default.createElement("div",{role:"presentation",className:de.inner,onClick:ue,onKeyDown:Be=>{var oo;((oo=Be.target)==null?void 0:oo.getAttribute("data-mantine-stop-propagation"))!=="true"&&Be.key==="Escape"&&b&&a()},ref:ae},ft.default.createElement(Xd,{className:de.modal,shadow:p,p:g,radius:m,role:"dialog","aria-labelledby":U,"aria-describedby":ee,"aria-modal":!0,tabIndex:-1,style:Oe.modal,unstyled:_,onClick:Be=>Be.stopPropagation()},(r||l)&&ft.default.createElement("div",{className:de.header},ft.default.createElement(oe,{id:U,className:de.title},r),l&&ft.default.createElement(Zr,{iconSize:16,onClick:a,"aria-label":v,className:de.close})),ft.default.createElement("div",{id:ee,className:de.body},i)))))))}ma.displayName="@mantine/core/Modal";var Eb=y(I());var bf=y(I());var zf=y(I());var kD=Object.defineProperty,Rh=Object.getOwnPropertySymbols,pb=Object.prototype.hasOwnProperty,fb=Object.prototype.propertyIsEnumerable,mb=(e,t,o)=>t in e?kD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,ub=(e,t)=>{for(var o in t||(t={}))pb.call(t,o)&&mb(e,o,t[o]);if(Rh)for(var o of Rh(t))fb.call(t,o)&&mb(e,o,t[o]);return e},wD=(e,t)=>{var o={};for(var n in e)pb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Rh)for(var n of Rh(e))t.indexOf(n)<0&&fb.call(e,n)&&(o[n]=e[n]);return o},gD={xs:14,sm:18,md:20,lg:24,xl:28};function kb(e){var t=e,{size:o,error:n,style:r}=t,a=wD(t,["size","error","style"]);let i=Ie(),l=i.fn.size({size:o,sizes:gD});return zf.default.createElement("svg",ub({width:l,height:l,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:ub({color:n?i.colors.red[6]:i.colors.gray[6]},r),"data-chevron":!0},a),zf.default.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function yf({shouldClear:e,clearButtonLabel:t,onClear:o,size:n,error:r,clearButtonTabIndex:a}){return e?bf.default.createElement(Zr,{variant:"transparent","aria-label":t,onClick:o,size:n,tabIndex:a,onMouseDown:i=>i.preventDefault()}):bf.default.createElement(kb,{error:r,size:n})}yf.displayName="@mantine/core/SelectRightSection";var ED=Object.defineProperty,xD=Object.defineProperties,MD=Object.getOwnPropertyDescriptors,Th=Object.getOwnPropertySymbols,xb=Object.prototype.hasOwnProperty,Mb=Object.prototype.propertyIsEnumerable,wb=(e,t,o)=>t in e?ED(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Lf=(e,t)=>{for(var o in t||(t={}))xb.call(t,o)&&wb(e,o,t[o]);if(Th)for(var o of Th(t))Mb.call(t,o)&&wb(e,o,t[o]);return e},gb=(e,t)=>xD(e,MD(t)),zD=(e,t)=>{var o={};for(var n in e)xb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Th)for(var n of Th(e))t.indexOf(n)<0&&Mb.call(e,n)&&(o[n]=e[n]);return o},bD={xs:24,sm:30,md:34,lg:44,xl:54};function zb(e){var t=e,{styles:o,rightSection:n,rightSectionWidth:r,theme:a}=t,i=zD(t,["styles","rightSection","rightSectionWidth","theme"]);if(n)return{rightSection:n,rightSectionWidth:r,styles:o};let l=typeof o=="function"?o(a):o;return{rightSectionWidth:a.fn.size({size:i.size,sizes:bD}),rightSection:!i.readOnly&&!(i.disabled&&i.shouldClear)&&Eb.default.createElement(yf,Lf({},i)),styles:gb(Lf({},l),{rightSection:gb(Lf({},l==null?void 0:l.rightSection),{pointerEvents:i.shouldClear?void 0:"none"})})}}var Ye=y(I());var bb=(e,t,o)=>Number.isInteger(e)&&e>=0&&t===0?"numeric":!Number.isInteger(e)&&e>=0&&t!==0?"decimal":Number.isInteger(e)&&e<0&&t===0||!Number.isInteger(e)&&e<0&&t!==0?o==="ios"?"text":"decimal":"numeric";var Cf=y(I());function If({direction:e,size:t}){return Cf.default.createElement("svg",{style:{transform:e==="up"?"rotate(180deg)":void 0},width:t,height:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cf.default.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var Nf={xs:20,sm:24,md:30,lg:34,xl:36},yD=W((e,{radius:t,size:o})=>({rightSection:{display:"flex",flexDirection:"column",height:"calc(100% - 2px)",margin:1,marginRight:1,overflow:"hidden",borderTopRightRadius:e.fn.radius(t),borderBottomRightRadius:e.fn.radius(t)},control:{margin:0,position:"relative",flex:"0 0 50%",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:e.fn.size({size:o,sizes:Nf}),padding:0,WebkitTapHighlightColor:"transparent",borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,borderLeft:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,borderTop:0,borderRight:0,backgroundColor:"transparent",marginRight:1,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,"&:not(:disabled):hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]},"&:disabled":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]}},controlUp:{},controlDown:{borderBottom:0}})),yb=yD;var n0=y(I());var LD=Object.defineProperty,CD=Object.defineProperties,ID=Object.getOwnPropertyDescriptors,Ah=Object.getOwnPropertySymbols,Cb=Object.prototype.hasOwnProperty,Ib=Object.prototype.propertyIsEnumerable,Lb=(e,t,o)=>t in e?LD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Bf=(e,t)=>{for(var o in t||(t={}))Cb.call(t,o)&&Lb(e,o,t[o]);if(Ah)for(var o of Ah(t))Ib.call(t,o)&&Lb(e,o,t[o]);return e},ND=(e,t)=>CD(e,ID(t)),BD=(e,t)=>{var o={};for(var n in e)Cb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Ah)for(var n of Ah(e))t.indexOf(n)<0&&Ib.call(e,n)&&(o[n]=e[n]);return o},jD={type:"text",size:"sm",__staticSelector:"TextInput"},Sl=(0,n0.forwardRef)((e,t)=>{let o=aa("TextInput",jD,e),{inputProps:n,wrapperProps:r}=o,a=BD(o,["inputProps","wrapperProps"]);return n0.default.createElement(zt.Wrapper,Bf({},r),n0.default.createElement(zt,ND(Bf(Bf({},n),a),{ref:t})))});Sl.displayName="@mantine/core/TextInput";var HD=Object.defineProperty,WD=Object.defineProperties,SD=Object.getOwnPropertyDescriptors,Dh=Object.getOwnPropertySymbols,jb=Object.prototype.hasOwnProperty,Hb=Object.prototype.propertyIsEnumerable,Nb=(e,t,o)=>t in e?HD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,_D=(e,t)=>{for(var o in t||(t={}))jb.call(t,o)&&Nb(e,o,t[o]);if(Dh)for(var o of Dh(t))Hb.call(t,o)&&Nb(e,o,t[o]);return e},PD=(e,t)=>WD(e,SD(t)),OD=(e,t)=>{var o={};for(var n in e)jb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Dh)for(var n of Dh(e))t.indexOf(n)<0&&Hb.call(e,n)&&(o[n]=e[n]);return o},RD=e=>e||"",TD=e=>{if(e==="-")return e;let t=e;t[0]==="."&&(t=`0${e}`);let o=parseFloat(t);if(!Number.isNaN(o))return e},Bb={xs:10,sm:14,md:16,lg:18,xl:20},AD={step:1,hideControls:!1,size:"sm",precision:0,noClampOnBlur:!1,removeTrailingZeros:!1,formatter:RD,parser:TD,type:"text"},Fh=(0,Ye.forwardRef)((e,t)=>{let o=S("NumberInput",AD,e),{readOnly:n,disabled:r,value:a,onChange:i,decimalSeparator:l,min:c,max:s,startValue:d,step:h,stepHoldInterval:v,stepHoldDelay:u,onBlur:w,onFocus:k,onKeyDown:g,onKeyUp:p,hideControls:m,radius:f,variant:E,precision:M,removeTrailingZeros:z,defaultValue:x,noClampOnBlur:b,handlersRef:L,classNames:C,styles:B,size:N,rightSection:j,rightSectionWidth:T,formatter:H,parser:_,inputMode:A,unstyled:F,type:V}=o,$=OD(o,["readOnly","disabled","value","onChange","decimalSeparator","min","max","startValue","step","stepHoldInterval","stepHoldDelay","onBlur","onFocus","onKeyDown","onKeyUp","hideControls","radius","variant","precision","removeTrailingZeros","defaultValue","noClampOnBlur","handlersRef","classNames","styles","size","rightSection","rightSectionWidth","formatter","parser","inputMode","unstyled","type"]),{classes:U,cx:ee,theme:de}=yb({radius:f,size:N},{classNames:C,styles:B,unstyled:F,name:"NumberInput"}),Q=J=>{if(J===void 0)return;let ce=J.toFixed(M);return z&&M>0&&(ce=ce.replace(new RegExp(`[0]{0,${M}}$`),""),(ce.endsWith(".")||ce.endsWith(l))&&(ce=ce.slice(0,-1))),ce},[se,ve]=(0,Ye.useState)(!1),[re,ae]=(0,Ye.useState)(typeof a=="number"?a:typeof x=="number"?x:void 0),me=typeof a=="number"?a:re,[te,le]=(0,Ye.useState)(typeof me=="number"?Q(me):""),ue=(0,Ye.useRef)(),Oe=J=>{J!==re&&!Number.isNaN(J)&&(typeof i=="function"&&i(J),ae(J))},Be=(J="")=>{let ce=typeof J=="number"?String(J):J;return l&&(ce=ce.replace(/\./g,l)),H(ce)},oo=J=>{let ce=J;return l&&(ce=ce.replace(new RegExp(`\\${l}`,"g"),".")),_(ce)},je=typeof c=="number"?c:-1/0,La=typeof s=="number"?s:1/0,Ca=(0,Ye.useRef)();Ca.current=()=>{var J,ce,nt;if(re===void 0)Oe((J=d!=null?d:c)!=null?J:0),le((nt=(ce=Q(d))!=null?ce:Q(c))!=null?nt:"0");else{let no=Q(xo(re+h,je,La));Oe(parseFloat(no)),le(no)}};let dn=(0,Ye.useRef)();dn.current=()=>{var J,ce,nt;if(re===void 0)Oe((J=d!=null?d:c)!=null?J:0),le((nt=(ce=Q(d))!=null?ce:Q(c))!=null?nt:"0");else{let no=Q(xo(re-h,je,La));Oe(parseFloat(no)),le(no)}},Za(L,{increment:Ca.current,decrement:dn.current}),(0,Ye.useEffect)(()=>{typeof a=="number"&&!se&&(ae(a),le(Q(a))),x===void 0&&a===void 0&&!se&&(ae(a),le(""))},[a,M]);let ic=u!==void 0&&v!==void 0,ht=(0,Ye.useRef)(null),lc=(0,Ye.useRef)(0),jt=()=>{ht.current&&window.clearTimeout(ht.current),ht.current=null,lc.current=0},Ht=J=>{J?Ca.current():dn.current(),lc.current+=1},wi=J=>{if(Ht(J),ic){let ce=typeof v=="number"?v:v(lc.current);ht.current=window.setTimeout(()=>wi(J),ce)}},nr=(J,ce)=>{J.preventDefault(),ue.current.focus(),Ht(ce),ic&&(ht.current=window.setTimeout(()=>wi(ce),u))};(0,Ye.useEffect)(()=>(jt(),jt),[]);let C0=Ye.default.createElement("div",{className:U.rightSection},Ye.default.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:me>=s,className:ee(U.control,U.controlUp),onPointerDown:J=>{nr(J,!0)},onPointerUp:jt,onPointerLeave:jt},Ye.default.createElement(If,{size:de.fn.size({size:N,sizes:Bb}),direction:"up"})),Ye.default.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:me<=c,className:ee(U.control,U.controlDown),onPointerDown:J=>{nr(J,!1)},onPointerUp:jt,onPointerLeave:jt},Ye.default.createElement(If,{size:de.fn.size({size:N,sizes:Bb}),direction:"down"}))),sm=J=>{if(J.nativeEvent.isComposing)return;let nt=J.target.value,no=oo(nt);le(no),nt===""||nt==="-"?Oe(void 0):nt.trim()!==""&&!Number.isNaN(no)&&Oe(parseFloat(no))},rr=J=>{var ce;if(J.target.value==="")le(""),Oe(void 0);else{let nt=J.target.value;(nt[0]===`${l}`||nt[0]===".")&&(nt=`0${nt}`);let no=oo(nt),sc=xo(parseFloat(no),je,La);Number.isNaN(sc)?le((ce=Q(me))!=null?ce:""):b||(le(Q(sc)),Oe(parseFloat(Q(sc))))}ve(!1),typeof w=="function"&&w(J)},Ia=J=>{ve(!0),typeof k=="function"&&k(J)},cc=J=>{if(typeof g=="function"&&g(J),J.repeat&&ic&&(J.key==="ArrowUp"||J.key==="ArrowDown")){J.preventDefault();return}n||(J.key==="ArrowUp"?nr(J,!0):J.key==="ArrowDown"&&nr(J,!1))},dm=J=>{typeof p=="function"&&p(J),(J.key==="ArrowUp"||J.key==="ArrowDown")&&jt()};return Ye.default.createElement(Sl,PD(_D({},$),{type:V,variant:E,value:Be(te),disabled:r,readOnly:n,ref:Ot(ue,t),onChange:sm,onBlur:rr,onFocus:Ia,onKeyDown:cc,onKeyUp:dm,rightSection:j||(r||n||m||E==="unstyled"?null:C0),rightSectionWidth:T||de.fn.size({size:N,sizes:Nf})+1,radius:f,max:s,min:c,step:h,size:N,styles:B,classNames:C,inputMode:A||bb(h,M,cp()),__staticSelector:"NumberInput",unstyled:F}))});Fh.displayName="@mantine/core/NumberInput";var Je=y(I());function Wb({data:e,searchable:t,limit:o,searchValue:n,filter:r,value:a,filterDataOnExactSearchMatch:i}){if(!t)return e;let l=a!=null&&e.find(s=>s.value===a)||null;if(l&&!i&&(l==null?void 0:l.label)===n){if(o){if(o>=e.length)return e;let s=e.indexOf(l),d=s+o,h=d-e.length;return h>0?e.slice(s-h):e.slice(s,d)}return e}let c=[];for(let s=0;s=o));s+=1);return c}var DD=W(()=>({input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}})),Sb=DD;var FD=Object.defineProperty,$D=Object.defineProperties,VD=Object.getOwnPropertyDescriptors,$h=Object.getOwnPropertySymbols,Pb=Object.prototype.hasOwnProperty,Ob=Object.prototype.propertyIsEnumerable,_b=(e,t,o)=>t in e?FD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r0=(e,t)=>{for(var o in t||(t={}))Pb.call(t,o)&&_b(e,o,t[o]);if($h)for(var o of $h(t))Ob.call(t,o)&&_b(e,o,t[o]);return e},jf=(e,t)=>$D(e,VD(t)),UD=(e,t)=>{var o={};for(var n in e)Pb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&$h)for(var n of $h(e))t.indexOf(n)<0&&Ob.call(e,n)&&(o[n]=e[n]);return o};function qD(e,t){return t.label.toLowerCase().trim().includes(e.toLowerCase().trim())}function GD(e,t){return!!e&&!t.some(o=>o.label.toLowerCase()===e.toLowerCase())}var KD={required:!1,size:"sm",shadow:"sm",itemComponent:kp,transition:"fade",transitionDuration:0,initiallyOpened:!1,filter:qD,maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:GD,selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:vo("popover"),clearButtonTabIndex:0,positionDependencies:[],dropdownPosition:"flip"},_l=(0,Je.forwardRef)((e,t)=>{let o=aa("Select",KD,e),{inputProps:n,wrapperProps:r,shadow:a,data:i,value:l,defaultValue:c,onChange:s,itemComponent:d,onKeyDown:h,onBlur:v,onFocus:u,transition:w,transitionDuration:k,initiallyOpened:g,transitionTimingFunction:p,unstyled:m,classNames:f,styles:E,filter:M,maxDropdownHeight:z,searchable:x,clearable:b,nothingFound:L,clearButtonLabel:C,limit:B,disabled:N,onSearchChange:j,searchValue:T,rightSection:H,rightSectionWidth:_,creatable:A,getCreateLabel:F,shouldCreate:V,selectOnBlur:$,onCreate:U,dropdownComponent:ee,onDropdownClose:de,onDropdownOpen:Q,withinPortal:se,switchDirectionOnFlip:ve,zIndex:re,name:ae,dropdownPosition:me,allowDeselect:te,placeholder:le,filterDataOnExactSearchMatch:ue,clearButtonTabIndex:Oe,form:Be,positionDependencies:oo,readOnly:je}=o,La=UD(o,["inputProps","wrapperProps","shadow","data","value","defaultValue","onChange","itemComponent","onKeyDown","onBlur","onFocus","transition","transitionDuration","initiallyOpened","transitionTimingFunction","unstyled","classNames","styles","filter","maxDropdownHeight","searchable","clearable","nothingFound","clearButtonLabel","limit","disabled","onSearchChange","searchValue","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","clearButtonTabIndex","form","positionDependencies","readOnly"]),{classes:Ca,cx:dn,theme:ic}=Sb(),[ht,lc]=(0,Je.useState)(g),[jt,Ht]=(0,Je.useState)(-1),wi=(0,Je.useRef)(),nr=(0,Je.useRef)({}),[C0,sm]=(0,Je.useState)("column"),rr=C0==="column",{scrollIntoView:Ia,targetRef:cc,scrollableRef:dm}=ip({duration:0,offset:5,cancelable:!1,isList:!0}),J=te===void 0?b:te,ce=Z=>{if(ht!==Z){lc(Z);let Re=Z?Q:de;typeof Re=="function"&&Re()}},nt=A&&typeof F=="function",no=null,sc=i.map(Z=>typeof Z=="string"?{label:Z,value:Z}:Z),I0=Pu({data:sc}),[hn,gi,Ik]=lt({value:l,defaultValue:c,finalValue:null,onChange:s}),ar=I0.find(Z=>Z.value===hn),[Na,aI]=lt({value:T,defaultValue:(ar==null?void 0:ar.label)||"",finalValue:void 0,onChange:j}),Ba=Z=>{aI(Z),x&&typeof j=="function"&&j(Z)},iI=()=>{var Z;je||(gi(null),Ik||Ba(""),(Z=wi.current)==null||Z.focus())};(0,Je.useEffect)(()=>{let Z=I0.find(Re=>Re.value===hn);Z?Ba(Z.label):(!nt||!hn)&&Ba("")},[hn]),(0,Je.useEffect)(()=>{ar&&(!x||!ht)&&Ba(ar.label)},[ar==null?void 0:ar.label]);let N0=Z=>{if(!je)if(J&&(ar==null?void 0:ar.value)===Z.value)gi(null),ce(!1);else{if(Z.creatable&&typeof U=="function"){let Re=U(Z.value);typeof Re<"u"&&Re!==null&&gi(typeof Re=="string"?Re:Re.value)}else gi(Z.value);Ik||Ba(Z.label),Ht(-1),ce(!1),wi.current.focus()}},wt=Wb({data:I0,searchable:x,limit:B,searchValue:Na,filter:M,filterDataOnExactSearchMatch:ue,value:hn});nt&&V(Na,wt)&&(no=F(Na),wt.push({label:Na,value:Na,creatable:!0}));let Nk=(Z,Re,Io)=>{let No=Z;for(;Io(No);)if(No=Re(No),!wt[No].disabled)return No;return Z};Ke(()=>{Ht(-1)},[Na]);let dc=hn?wt.findIndex(Z=>Z.value===hn):0,vn=!je&&(wt.length>0?ht:ht&&!!L),Bk=()=>{Ht(Z=>{var Re;let Io=Nk(Z,No=>No-1,No=>No>0);return cc.current=nr.current[(Re=wt[Io])==null?void 0:Re.value],vn&&Ia({alignment:rr?"start":"end"}),Io})},jk=()=>{Ht(Z=>{var Re;let Io=Nk(Z,No=>No+1,No=>Nowindow.setTimeout(()=>{var Z;cc.current=nr.current[(Z=wt[dc])==null?void 0:Z.value],Ia({alignment:rr?"end":"start"})},0);Ke(()=>{vn&&B0()},[vn]);let lI=Z=>{switch(typeof h=="function"&&h(Z),Z.key){case"ArrowUp":{Z.preventDefault(),ht?rr?Bk():jk():(Ht(dc),ce(!0),B0());break}case"ArrowDown":{Z.preventDefault(),ht?rr?jk():Bk():(Ht(dc),ce(!0),B0());break}case"Home":{if(!x){Z.preventDefault(),ht||ce(!0);let Re=wt.findIndex(Io=>!Io.disabled);Ht(Re),vn&&Ia({alignment:rr?"end":"start"})}break}case"End":{if(!x){Z.preventDefault(),ht||ce(!0);let Re=wt.map(Io=>!!Io.disabled).lastIndexOf(!1);Ht(Re),vn&&Ia({alignment:rr?"end":"start"})}break}case"Escape":{Z.preventDefault(),ce(!1),Ht(-1);break}case" ":{x||(Z.preventDefault(),wt[jt]&&ht?N0(wt[jt]):(ce(!0),Ht(dc),B0()));break}case"Enter":x||Z.preventDefault(),wt[jt]&&ht&&(Z.preventDefault(),N0(wt[jt]))}},cI=Z=>{typeof v=="function"&&v(Z);let Re=I0.find(Io=>Io.value===hn);$&&wt[jt]&&ht&&N0(wt[jt]),Ba((Re==null?void 0:Re.label)||""),ce(!1)},sI=Z=>{typeof u=="function"&&u(Z),x&&ce(!0)},dI=Z=>{je||(Ba(Z.currentTarget.value),b&&Z.currentTarget.value===""&&gi(null),Ht(-1),ce(!0))},hI=()=>{je||(ce(!ht),hn&&!ht&&Ht(dc))};return Je.default.createElement(zt.Wrapper,jf(r0({},r),{__staticSelector:"Select"}),Je.default.createElement(Bl,{opened:vn,transition:w,transitionDuration:k,shadow:"sm",withinPortal:se,__staticSelector:"Select",onDirectionChange:sm,switchDirectionOnFlip:ve,zIndex:re,dropdownPosition:me,positionDependencies:oo,classNames:f,styles:E,unstyled:m},Je.default.createElement(Bl.Target,null,Je.default.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":vn?`${n.id}-items`:null,"aria-controls":n.id,"aria-expanded":vn,onMouseLeave:()=>Ht(-1),tabIndex:-1},Je.default.createElement("input",{type:"hidden",name:ae,value:hn||"",form:Be,disabled:N}),Je.default.createElement(zt,r0(jf(r0(r0({autoComplete:"off",type:"search"},n),La),{ref:Ot(t,wi),onKeyDown:lI,__staticSelector:"Select",value:Na,placeholder:le,onChange:dI,"aria-autocomplete":"list","aria-controls":vn?`${n.id}-items`:null,"aria-activedescendant":jt>=0?`${n.id}-${jt}`:null,onMouseDown:hI,onBlur:cI,onFocus:sI,readOnly:!x||je,disabled:N,"data-mantine-stop-propagation":vn,name:null,classNames:jf(r0({},f),{input:dn({[Ca.input]:!x},f==null?void 0:f.input)})}),zb({theme:ic,rightSection:H,rightSectionWidth:_,styles:E,size:n.size,shouldClear:b&&!!ar,clearButtonLabel:C,onClear:iI,error:r.error,clearButtonTabIndex:Oe,disabled:N,readOnly:je}))))),Je.default.createElement(Bl.Dropdown,{component:ee||Ts,maxHeight:z,direction:C0,id:n.id,innerRef:dm,__staticSelector:"Select",classNames:f,styles:E},Je.default.createElement(fp,{data:wt,hovered:jt,classNames:f,styles:E,isItemSelected:Z=>Z===hn,uuid:n.id,__staticSelector:"Select",onItemHover:Ht,onItemSelect:N0,itemsRefs:nr,itemComponent:d,size:n.size,nothingFound:L,creatable:nt&&!!no,createLabel:no,"aria-label":r.label,unstyled:m}))))});_l.displayName="@mantine/core/Select";var yo=y(I());function Vh({value:e,min:t,max:o}){let n=(e-t)/(o-t)*100;return Math.min(Math.max(n,0),100)}function Rb({value:e,containerWidth:t,min:o,max:n,step:r,precision:a}){let l=(t?Math.min(Math.max(e,0),t)/t:e)*(n-o),c=(l!==0?Math.round(l/r)*r:0)+o,s=Math.max(c,o);return a!==void 0?Number(s.toFixed(a)):s}var ua=y(I());var YD=Object.defineProperty,XD=Object.defineProperties,QD=Object.getOwnPropertyDescriptors,Tb=Object.getOwnPropertySymbols,ZD=Object.prototype.hasOwnProperty,JD=Object.prototype.propertyIsEnumerable,Ab=(e,t,o)=>t in e?YD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,eF=(e,t)=>{for(var o in t||(t={}))ZD.call(t,o)&&Ab(e,o,t[o]);if(Tb)for(var o of Tb(t))JD.call(t,o)&&Ab(e,o,t[o]);return e},tF=(e,t)=>XD(e,QD(t)),Ct={xs:4,sm:6,md:8,lg:10,xl:12},oF=W((e,{size:t,disabled:o})=>({root:tF(eF({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",outline:0,height:e.fn.size({sizes:Ct,size:t})*2,display:"flex",alignItems:"center",cursor:o?"not-allowed":"pointer",touchAction:"none"})})),Db=oF;var nF=Object.defineProperty,rF=Object.defineProperties,aF=Object.getOwnPropertyDescriptors,Fb=Object.getOwnPropertySymbols,iF=Object.prototype.hasOwnProperty,lF=Object.prototype.propertyIsEnumerable,$b=(e,t,o)=>t in e?nF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,cF=(e,t)=>{for(var o in t||(t={}))iF.call(t,o)&&$b(e,o,t[o]);if(Fb)for(var o of Fb(t))lF.call(t,o)&&$b(e,o,t[o]);return e},sF=(e,t)=>rF(e,aF(t)),dF=W((e,{color:t,size:o,disabled:n,thumbSize:r})=>({label:{position:"absolute",top:-36,backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[9],fontSize:e.fontSizes.xs,color:e.white,padding:`calc(${e.spacing.xs}px / 2)`,borderRadius:e.radius.sm,whiteSpace:"nowrap",pointerEvents:"none",userSelect:"none",touchAction:"none"},thumb:sF(cF({},e.fn.focusStyles()),{boxSizing:"border-box",position:"absolute",display:n?"none":"flex",height:r||e.fn.size({sizes:Ct,size:o})*2,width:r||e.fn.size({sizes:Ct,size:o})*2,backgroundColor:e.colorScheme==="dark"?e.fn.themeColor(t,e.fn.primaryShade()):e.white,border:`4px solid ${e.colorScheme==="dark"?e.white:e.fn.themeColor(t,e.fn.primaryShade())}`,color:e.colorScheme==="dark"?e.white:e.fn.themeColor(t,e.fn.primaryShade()),transform:"translate(-50%, -50%)",top:"50%",cursor:"pointer",borderRadius:1e3,alignItems:"center",justifyContent:"center",transitionDuration:"100ms",transitionProperty:"box-shadow, transform",transitionTimingFunction:e.transitionTimingFunction,zIndex:3,userSelect:"none",touchAction:"none"}),dragging:{transform:"translate(-50%, -50%) scale(1.05)",boxShadow:e.shadows.sm}})),Vb=dF;var Hf=(0,ua.forwardRef)(({max:e,min:t,value:o,position:n,label:r,dragging:a,onMouseDown:i,color:l,classNames:c,styles:s,size:d,labelTransition:h,labelTransitionDuration:v,labelTransitionTimingFunction:u,labelAlwaysOn:w,thumbLabel:k,onFocus:g,onBlur:p,showLabelOnHover:m,children:f=null,disabled:E,unstyled:M,thumbSize:z},x)=>{let{classes:b,cx:L,theme:C}=Vb({color:l,size:d,disabled:E,thumbSize:z},{classNames:c,styles:s,unstyled:M,name:"Slider"}),[B,N]=(0,ua.useState)(!1),j=w||a||B||m;return ua.default.createElement(D,{tabIndex:0,role:"slider","aria-label":k,"aria-valuemax":e,"aria-valuemin":t,"aria-valuenow":o,ref:x,className:L(b.thumb,{[b.dragging]:a}),onFocus:()=>{N(!0),typeof g=="function"&&g()},onBlur:()=>{N(!1),typeof p=="function"&&p()},onTouchStart:i,onMouseDown:i,onClick:T=>T.stopPropagation(),style:{[C.dir==="rtl"?"right":"left"]:`${n}%`}},f,ua.default.createElement(ni,{mounted:r!=null&&j,duration:v,transition:h,timingFunction:u||C.transitionTimingFunction},T=>ua.default.createElement("div",{style:T,className:b.label},r)))});Hf.displayName="@mantine/core/SliderThumb";var Uh=y(I());var a0=y(I());function Ub({mark:e,offset:t,value:o,inverted:n=!1}){return n?typeof t=="number"&&e.value<=t||e.value>=o:typeof t=="number"?e.value>=t&&e.value<=o:e.value<=o}var hF=W((e,{size:t,color:o,disabled:n})=>({markWrapper:{position:"absolute",top:0,zIndex:2},mark:{boxSizing:"border-box",border:`${e.fn.size({size:t,sizes:Ct})>=8?"2px":"1px"} solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,height:e.fn.size({sizes:Ct,size:t}),width:e.fn.size({sizes:Ct,size:t}),borderRadius:1e3,transform:`translateX(-${e.fn.size({sizes:Ct,size:t})/2}px)`,backgroundColor:e.white},markFilled:{borderColor:n?e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]:e.fn.variant({variant:"filled",color:o}).background},markLabel:{transform:"translate(-50%, 0)",fontSize:e.fontSizes.sm,color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],marginTop:`calc(${e.spacing.xs}px / 2)`,whiteSpace:"nowrap"}})),qb=hF;function Wf({marks:e,color:t,size:o,min:n,max:r,value:a,classNames:i,styles:l,offset:c,onChange:s,disabled:d,unstyled:h,inverted:v}){let{classes:u,cx:w}=qb({size:o,color:t,disabled:d},{classNames:i,styles:l,unstyled:h,name:"Slider"}),k=e.map((g,p)=>a0.default.createElement(D,{className:u.markWrapper,sx:{left:`${Vh({value:g.value,min:n,max:r})}%`},key:p},a0.default.createElement("div",{className:w(u.mark,{[u.markFilled]:Ub({mark:g,value:a,offset:c,inverted:v})})}),g.label&&a0.default.createElement("div",{className:u.markLabel,onMouseDown:m=>{m.stopPropagation(),s(g.value)},onTouchStart:m=>{m.stopPropagation(),s(g.value)}},g.label)));return a0.default.createElement("div",null,k)}Wf.displayName="@mantine/core/SliderMarks";var vF=W((e,{radius:t,size:o,color:n,disabled:r,inverted:a})=>({track:{position:"relative",height:e.fn.size({sizes:Ct,size:o}),width:"100%",marginRight:e.fn.size({size:o,sizes:Ct}),marginLeft:e.fn.size({size:o,sizes:Ct}),"&::before":{content:'""',position:"absolute",top:0,bottom:0,borderRadius:e.fn.size({size:t,sizes:e.radius}),right:-e.fn.size({size:o,sizes:Ct}),left:-e.fn.size({size:o,sizes:Ct}),backgroundColor:a?r?e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]:e.fn.variant({variant:"filled",color:n}).background:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],zIndex:0}},bar:{position:"absolute",zIndex:1,top:0,bottom:0,backgroundColor:a?e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]:r?e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]:e.fn.variant({variant:"filled",color:n}).background,borderRadius:e.fn.size({size:t,sizes:e.radius})}})),Gb=vF;var mF=Object.defineProperty,uF=Object.defineProperties,pF=Object.getOwnPropertyDescriptors,qh=Object.getOwnPropertySymbols,Yb=Object.prototype.hasOwnProperty,Xb=Object.prototype.propertyIsEnumerable,Kb=(e,t,o)=>t in e?mF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,fF=(e,t)=>{for(var o in t||(t={}))Yb.call(t,o)&&Kb(e,o,t[o]);if(qh)for(var o of qh(t))Xb.call(t,o)&&Kb(e,o,t[o]);return e},kF=(e,t)=>uF(e,pF(t)),wF=(e,t)=>{var o={};for(var n in e)Yb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&qh)for(var n of qh(e))t.indexOf(n)<0&&Xb.call(e,n)&&(o[n]=e[n]);return o};function Sf(e){var t=e,{filled:o,size:n,color:r,classNames:a,styles:i,radius:l,children:c,offset:s,onMouseLeave:d,onMouseEnter:h,disabled:v,marksOffset:u,unstyled:w,inverted:k}=t,g=wF(t,["filled","size","color","classNames","styles","radius","children","offset","onMouseLeave","onMouseEnter","disabled","marksOffset","unstyled","inverted"]);let{classes:p}=Gb({color:r,size:n,radius:l,disabled:v,inverted:k},{classNames:a,styles:i,unstyled:w,name:"Slider"});return Uh.default.createElement("div",{className:p.track,onMouseLeave:d,onMouseEnter:h},Uh.default.createElement(D,{className:p.bar,sx:m=>({left:`calc(${s}% - ${m.fn.size({size:n,sizes:Ct})}px)`,width:`calc(${o}% + ${m.fn.size({size:n,sizes:Ct})}px)`})}),c,Uh.default.createElement(Wf,kF(fF({},g),{size:n,color:r,offset:u,classNames:a,styles:i,disabled:v,unstyled:w,inverted:k})))}Sf.displayName="@mantine/core/SliderTrack";var Kh=y(I());var gF=Object.defineProperty,EF=Object.defineProperties,xF=Object.getOwnPropertyDescriptors,Gh=Object.getOwnPropertySymbols,Zb=Object.prototype.hasOwnProperty,Jb=Object.prototype.propertyIsEnumerable,Qb=(e,t,o)=>t in e?gF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,MF=(e,t)=>{for(var o in t||(t={}))Zb.call(t,o)&&Qb(e,o,t[o]);if(Gh)for(var o of Gh(t))Jb.call(t,o)&&Qb(e,o,t[o]);return e},zF=(e,t)=>EF(e,xF(t)),bF=(e,t)=>{var o={};for(var n in e)Zb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Gh)for(var n of Gh(e))t.indexOf(n)<0&&Jb.call(e,n)&&(o[n]=e[n]);return o},_f=(0,Kh.forwardRef)((e,t)=>{var o=e,{className:n,size:r,classNames:a,styles:i,disabled:l,unstyled:c}=o,s=bF(o,["className","size","classNames","styles","disabled","unstyled"]);let{classes:d,cx:h}=Db({size:r,disabled:l},{classNames:a,styles:i,unstyled:c,name:"Slider"});return Kh.default.createElement(D,zF(MF({},s),{tabIndex:-1,className:h(d.root,n),ref:t}))});_f.displayName="@mantine/core/SliderRoot";var yF=Object.defineProperty,LF=Object.defineProperties,CF=Object.getOwnPropertyDescriptors,Yh=Object.getOwnPropertySymbols,ty=Object.prototype.hasOwnProperty,oy=Object.prototype.propertyIsEnumerable,ey=(e,t,o)=>t in e?yF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,IF=(e,t)=>{for(var o in t||(t={}))ty.call(t,o)&&ey(e,o,t[o]);if(Yh)for(var o of Yh(t))oy.call(t,o)&&ey(e,o,t[o]);return e},NF=(e,t)=>LF(e,CF(t)),BF=(e,t)=>{var o={};for(var n in e)ty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Yh)for(var n of Yh(e))t.indexOf(n)<0&&oy.call(e,n)&&(o[n]=e[n]);return o},jF={size:"md",radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransition:"skew-down",labelTransitionDuration:0,labelAlwaysOn:!1,thumbLabel:"",showLabelOnHover:!0,disabled:!1,scale:e=>e},Pl=(0,yo.forwardRef)((e,t)=>{let o=S("Slider",jF,e),{classNames:n,styles:r,color:a,value:i,onChange:l,onChangeEnd:c,size:s,radius:d,min:h,max:v,step:u,precision:w,defaultValue:k,name:g,marks:p,label:m,labelTransition:f,labelTransitionDuration:E,labelTransitionTimingFunction:M,labelAlwaysOn:z,thumbLabel:x,showLabelOnHover:b,thumbChildren:L,disabled:C,unstyled:B,thumbSize:N,scale:j,inverted:T}=o,H=BF(o,["classNames","styles","color","value","onChange","onChangeEnd","size","radius","min","max","step","precision","defaultValue","name","marks","label","labelTransition","labelTransitionDuration","labelTransitionTimingFunction","labelAlwaysOn","thumbLabel","showLabelOnHover","thumbChildren","disabled","unstyled","thumbSize","scale","inverted"]),_=Ie(),[A,F]=(0,yo.useState)(!1),[V,$]=lt({value:typeof i=="number"?xo(i,h,v):i,defaultValue:typeof k=="number"?xo(k,h,v):k,finalValue:xo(0,h,v),onChange:l}),U=(0,yo.useRef)(V),ee=(0,yo.useRef)(),de=Vh({value:V,min:h,max:v}),Q=j(V),se=typeof m=="function"?m(Q):m,ve=(0,yo.useCallback)(({x:le})=>{if(!C){let ue=Rb({value:le,min:h,max:v,step:u,precision:w});$(ue),U.current=ue}},[C,h,v,u,w]),{ref:re,active:ae}=Ja(ve,{onScrubEnd:()=>c==null?void 0:c(U.current)},_.dir),me=le=>{le.stopPropagation()},te=le=>{if(!C)switch(le.key){case"ArrowUp":{le.preventDefault(),ee.current.focus();let ue=Math.min(Math.max(V+u,h),v);c==null||c(ue),$(ue);break}case"ArrowRight":{le.preventDefault(),ee.current.focus();let ue=Math.min(Math.max(_.dir==="rtl"?V-u:V+u,h),v);c==null||c(ue),$(ue);break}case"ArrowDown":{le.preventDefault(),ee.current.focus();let ue=Math.min(Math.max(V-u,h),v);c==null||c(ue),$(ue);break}case"ArrowLeft":{le.preventDefault(),ee.current.focus();let ue=Math.min(Math.max(_.dir==="rtl"?V+u:V-u,h),v);c==null||c(ue),$(ue);break}case"Home":{le.preventDefault(),ee.current.focus(),c==null||c(h),$(h);break}case"End":{le.preventDefault(),ee.current.focus(),c==null||c(v),$(v);break}}};return yo.default.createElement(_f,NF(IF({},H),{size:s,ref:Ot(re,t),onKeyDownCapture:te,onMouseDownCapture:()=>{var le;return(le=re.current)==null?void 0:le.focus()},classNames:n,styles:r,disabled:C,unstyled:B}),yo.default.createElement(Sf,{inverted:T,offset:0,filled:de,marks:p,size:s,radius:d,color:a,min:h,max:v,value:Q,onChange:$,onMouseEnter:b?()=>F(!0):void 0,onMouseLeave:b?()=>F(!1):void 0,classNames:n,styles:r,disabled:C,unstyled:B},yo.default.createElement(Hf,{max:v,min:h,value:Q,position:de,dragging:ae,color:a,size:s,label:se,ref:ee,onMouseDown:me,labelTransition:f,labelTransitionDuration:E,labelTransitionTimingFunction:M,labelAlwaysOn:z,classNames:n,styles:r,thumbLabel:x,showLabelOnHover:b&&A,disabled:C,unstyled:B,thumbSize:N},L)),yo.default.createElement("input",{type:"hidden",name:g,value:Q}))});Pl.displayName="@mantine/core/Slider";var Qh=y(I());var HF=Object.defineProperty,Xh=Object.getOwnPropertySymbols,ry=Object.prototype.hasOwnProperty,ay=Object.prototype.propertyIsEnumerable,ny=(e,t,o)=>t in e?HF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,WF=(e,t)=>{for(var o in t||(t={}))ry.call(t,o)&&ny(e,o,t[o]);if(Xh)for(var o of Xh(t))ay.call(t,o)&&ny(e,o,t[o]);return e},SF=(e,t)=>{var o={};for(var n in e)ry.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Xh)for(var n of Xh(e))t.indexOf(n)<0&&ay.call(e,n)&&(o[n]=e[n]);return o},_F={w:0,h:0},At=(0,Qh.forwardRef)((e,t)=>{let o=S("Space",_F,e),{w:n,h:r}=o,a=SF(o,["w","h"]);return Qh.default.createElement(D,WF({ref:t,w:n,miw:n,h:r,mih:r},a))});At.displayName="@mantine/core/Space";var pa=y(I());var Ol=y(I());var Zh=y(I()),iy=(0,Zh.createContext)(null),ly=iy.Provider,cy=()=>(0,Zh.useContext)(iy);var PF=Object.defineProperty,Jh=Object.getOwnPropertySymbols,hy=Object.prototype.hasOwnProperty,vy=Object.prototype.propertyIsEnumerable,sy=(e,t,o)=>t in e?PF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,dy=(e,t)=>{for(var o in t||(t={}))hy.call(t,o)&&sy(e,o,t[o]);if(Jh)for(var o of Jh(t))vy.call(t,o)&&sy(e,o,t[o]);return e},OF=(e,t)=>{var o={};for(var n in e)hy.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Jh)for(var n of Jh(e))t.indexOf(n)<0&&vy.call(e,n)&&(o[n]=e[n]);return o},RF={orientation:"horizontal",spacing:"lg",size:"sm",offset:"xs"},Pf=(0,Ol.forwardRef)((e,t)=>{let o=S("SwitchGroup",RF,e),{children:n,value:r,defaultValue:a,onChange:i,orientation:l,spacing:c,size:s,wrapperProps:d,offset:h}=o,v=OF(o,["children","value","defaultValue","onChange","orientation","spacing","size","wrapperProps","offset"]),[u,w]=lt({value:r,defaultValue:a,finalValue:[],onChange:i}),k=g=>{let p=g.currentTarget.value;w(u.includes(p)?u.filter(m=>m!==p):[...u,p])};return Ol.default.createElement(ly,{value:{value:u,onChange:k,size:s}},Ol.default.createElement(zt.Wrapper,dy(dy({labelElement:"div",size:s,__staticSelector:"SwitchGroup",ref:t},d),v),Ol.default.createElement(Z7,{spacing:c,orientation:l,offset:h},n)))});Pf.displayName="@mantine/core/SwitchGroup";var TF=Object.defineProperty,AF=Object.defineProperties,DF=Object.getOwnPropertyDescriptors,my=Object.getOwnPropertySymbols,FF=Object.prototype.hasOwnProperty,$F=Object.prototype.propertyIsEnumerable,uy=(e,t,o)=>t in e?TF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,VF=(e,t)=>{for(var o in t||(t={}))FF.call(t,o)&&uy(e,o,t[o]);if(my)for(var o of my(t))$F.call(t,o)&&uy(e,o,t[o]);return e},UF=(e,t)=>AF(e,DF(t)),qF={xs:16,sm:20,md:24,lg:30,xl:36},GF={xs:32,sm:38,md:46,lg:56,xl:72},KF={xs:12,sm:14,md:18,lg:22,xl:28},YF={xs:5,sm:6,md:7,lg:9,xl:11},XF={xs:4,sm:5,md:6,lg:8,xl:10},QF=W((e,{size:t,radius:o,color:n,labelPosition:r,error:a})=>{let i=e.fn.size({size:t,sizes:KF}),l=e.fn.size({size:o,sizes:e.radius}),c=e.fn.variant({variant:"filled",color:n}),s=e.fn.size({size:t,sizes:GF}),d=t==="xs"?1:2,h=e.fn.variant({variant:"filled",color:"red"}).background;return{input:{clip:"rect(1px, 1px, 1px, 1px)",height:0,width:0,overflow:"hidden",whiteSpace:"nowrap",padding:0,WebkitClipPath:"inset(50%)",clipPath:"inset(50%)",position:"absolute"},track:UF(VF({},e.fn.focusStyles("input:focus + &")),{cursor:e.cursorType,overflow:"hidden",WebkitTapHighlightColor:"transparent",position:"relative",borderRadius:l,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[2],border:`1px solid ${a?h:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,height:e.fn.size({size:t,sizes:qF}),minWidth:s,margin:0,transitionProperty:"background-color, border-color",transitionTimingFunction:e.transitionTimingFunction,transitionDuration:"150ms",boxSizing:"border-box",appearance:"none",display:"flex",alignItems:"center",fontSize:e.fn.size({size:t,sizes:YF}),fontWeight:600,order:r==="left"?2:1,userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none",zIndex:0,lineHeight:0,color:e.colorScheme==="dark"?e.colors.dark[1]:e.colors.gray[6],transition:`color 150ms ${e.transitionTimingFunction}`,"input:checked + &":{backgroundColor:c.background,borderColor:c.background,color:e.white,transition:`color 150ms ${e.transitionTimingFunction}`},"input:disabled + &":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],cursor:"not-allowed"}}),thumb:{position:"absolute",zIndex:1,borderRadius:l,boxSizing:"border-box",display:"flex",backgroundColor:e.white,height:i,width:i,border:`1px solid ${e.colorScheme==="dark"?e.white:e.colors.gray[3]}`,left:`${d}px`,transition:`left 150ms ${e.transitionTimingFunction}`,"& > *":{margin:"auto"},"@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":""},"input:checked + * > &":{left:`calc(100% - ${i}px - ${d}px)`,borderColor:e.white},"input:disabled + * > &":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],backgroundColor:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[0]}},trackLabel:{height:"100%",display:"grid",placeContent:"center",minWidth:s-i,paddingInline:e.fn.size({size:t,sizes:XF}),margin:`0 0 0 ${i+d}px`,transition:`margin 150ms ${e.transitionTimingFunction}`,"input:checked + * > &":{margin:`0 ${i+d}px 0 0`}}}}),py=QF;var ZF=Object.defineProperty,JF=Object.defineProperties,e$=Object.getOwnPropertyDescriptors,ev=Object.getOwnPropertySymbols,ky=Object.prototype.hasOwnProperty,wy=Object.prototype.propertyIsEnumerable,fy=(e,t,o)=>t in e?ZF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Of=(e,t)=>{for(var o in t||(t={}))ky.call(t,o)&&fy(e,o,t[o]);if(ev)for(var o of ev(t))wy.call(t,o)&&fy(e,o,t[o]);return e},t$=(e,t)=>JF(e,e$(t)),o$=(e,t)=>{var o={};for(var n in e)ky.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&ev)for(var n of ev(e))t.indexOf(n)<0&&wy.call(e,n)&&(o[n]=e[n]);return o},n$={offLabel:"",onLabel:"",size:"sm",radius:"xl",error:!1},i0=(0,pa.forwardRef)((e,t)=>{var o;let n=S("Switch",n$,e),{className:r,color:a,label:i,offLabel:l,onLabel:c,id:s,style:d,size:h,radius:v,wrapperProps:u,children:w,unstyled:k,styles:g,classNames:p,thumbIcon:m,sx:f,checked:E,defaultChecked:M,onChange:z,labelPosition:x,description:b,error:L,disabled:C}=n,B=o$(n,["className","color","label","offLabel","onLabel","id","style","size","radius","wrapperProps","children","unstyled","styles","classNames","thumbIcon","sx","checked","defaultChecked","onChange","labelPosition","description","error","disabled"]),N=cy(),{classes:j}=py({size:(N==null?void 0:N.size)||h,color:a,radius:v,labelPosition:x,error:!!L},{unstyled:k,styles:g,classNames:p,name:"Switch"}),{systemStyles:T,rest:H}=Qr(B),_=Ro(s),A=N?{checked:N.value.includes(H.value),onChange:N.onChange}:{},[F,V]=lt({value:(o=A.checked)!=null?o:E,defaultValue:M,finalValue:!1});return pa.default.createElement(nf,Of(Of({className:r,sx:f,style:d,id:_,size:(N==null?void 0:N.size)||h,labelPosition:x,label:i,description:b,error:L,disabled:C,__staticSelector:"Switch",classNames:p,styles:g,unstyled:k,"data-checked":A.checked||void 0},T),u),pa.default.createElement("input",t$(Of({},H),{disabled:C,checked:F,onChange:$=>{N?A.onChange($):z==null||z($),V($.currentTarget.checked)},id:_,ref:t,type:"checkbox",className:j.input})),pa.default.createElement("label",{htmlFor:_,className:j.track},pa.default.createElement("div",{className:j.thumb},m),pa.default.createElement("div",{className:j.trackLabel},F?c:l)))});i0.displayName="@mantine/core/Switch";i0.Group=Pf;var c0=y(I());var ov=y(I());var l0={context:"Tabs component was not found in the tree",value:"Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value"};var[gy,Rl]=ns(l0.context);var r$=Object.defineProperty,Ey=Object.getOwnPropertySymbols,a$=Object.prototype.hasOwnProperty,i$=Object.prototype.propertyIsEnumerable,xy=(e,t,o)=>t in e?r$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,l$=(e,t)=>{for(var o in t||(t={}))a$.call(t,o)&&xy(e,o,t[o]);if(Ey)for(var o of Ey(t))i$.call(t,o)&&xy(e,o,t[o]);return e};function c$({variant:e,orientation:t,inverted:o,placement:n},r){let a=t==="vertical";return e==="default"?{[a?n==="left"?"borderRight":"borderLeft":o?"borderTop":"borderBottom"]:`2px solid ${r.colorScheme==="dark"?r.colors.dark[4]:r.colors.gray[3]}`}:e==="outline"?{[a?n==="left"?"borderRight":"borderLeft":o?"borderTop":"borderBottom"]:`1px solid ${r.colorScheme==="dark"?r.colors.dark[4]:r.colors.gray[3]}`}:e==="pills"?{gap:`calc(${r.spacing.sm}px / 2)`}:{}}var s$=W((e,t)=>{let o=t.orientation==="vertical";return{tabsList:l$({display:"flex",flexWrap:"wrap",flexDirection:o?"column":"row",justifyContent:ef[t.position],'& [role="tab"]':{flex:t.grow?1:void 0}},c$(t,e))}}),My=s$;var d$=Object.defineProperty,h$=Object.defineProperties,v$=Object.getOwnPropertyDescriptors,tv=Object.getOwnPropertySymbols,by=Object.prototype.hasOwnProperty,yy=Object.prototype.propertyIsEnumerable,zy=(e,t,o)=>t in e?d$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m$=(e,t)=>{for(var o in t||(t={}))by.call(t,o)&&zy(e,o,t[o]);if(tv)for(var o of tv(t))yy.call(t,o)&&zy(e,o,t[o]);return e},u$=(e,t)=>h$(e,v$(t)),p$=(e,t)=>{var o={};for(var n in e)by.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&tv)for(var n of tv(e))t.indexOf(n)<0&&yy.call(e,n)&&(o[n]=e[n]);return o},f$={grow:!1,position:"left"},Rf=(0,ov.forwardRef)((e,t)=>{let o=S("TabsList",f$,e),{children:n,className:r,grow:a,position:i}=o,l=p$(o,["children","className","grow","position"]),{orientation:c,variant:s,color:d,radius:h,inverted:v,placement:u,classNames:w,styles:k,unstyled:g}=Rl(),{classes:p,cx:m}=My({orientation:c,grow:a,variant:s,color:d,position:i,radius:h,inverted:v,placement:u},{name:"Tabs",unstyled:g,classNames:w,styles:k});return ov.default.createElement(D,u$(m$({},l),{className:m(p.tabsList,r),ref:t,role:"tablist","aria-orientation":c}),n)});Rf.displayName="@mantine/core/TabsList";var rv=y(I());var k$=W((e,{orientation:t})=>({panel:{flex:t==="vertical"?1:void 0}})),Ly=k$;var w$=Object.defineProperty,g$=Object.defineProperties,E$=Object.getOwnPropertyDescriptors,nv=Object.getOwnPropertySymbols,Iy=Object.prototype.hasOwnProperty,Ny=Object.prototype.propertyIsEnumerable,Cy=(e,t,o)=>t in e?w$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,x$=(e,t)=>{for(var o in t||(t={}))Iy.call(t,o)&&Cy(e,o,t[o]);if(nv)for(var o of nv(t))Ny.call(t,o)&&Cy(e,o,t[o]);return e},M$=(e,t)=>g$(e,E$(t)),z$=(e,t)=>{var o={};for(var n in e)Iy.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&nv)for(var n of nv(e))t.indexOf(n)<0&&Ny.call(e,n)&&(o[n]=e[n]);return o},b$={},Tf=(0,rv.forwardRef)((e,t)=>{let o=S("TabsPanel",b$,e),{value:n,children:r,sx:a,className:i}=o,l=z$(o,["value","children","sx","className"]),c=Rl(),{classes:s,cx:d}=Ly({orientation:c.orientation,variant:c.variant,color:c.color,radius:c.radius,inverted:c.inverted,placement:c.placement},{name:"Tabs",unstyled:c.unstyled,classNames:c.classNames,styles:c.styles}),h=c.value===n,v=c.keepMounted||h?r:null;return rv.default.createElement(D,M$(x$({},l),{ref:t,sx:[{display:h?void 0:"none"},...Eo(a)],className:d(s.panel,i),role:"tabpanel",id:c.getPanelId(n),"aria-labelledby":c.getTabId(n)}),v)});Tf.displayName="@mantine/core/TabsPanel";var si=y(I());var y$=Object.defineProperty,L$=Object.defineProperties,C$=Object.getOwnPropertyDescriptors,By=Object.getOwnPropertySymbols,I$=Object.prototype.hasOwnProperty,N$=Object.prototype.propertyIsEnumerable,jy=(e,t,o)=>t in e?y$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Tl=(e,t)=>{for(var o in t||(t={}))I$.call(t,o)&&jy(e,o,t[o]);if(By)for(var o of By(t))N$.call(t,o)&&jy(e,o,t[o]);return e},Hy=(e,t)=>L$(e,C$(t));function B$(e,{variant:t,orientation:o,color:n,radius:r,inverted:a,placement:i}){let l=o==="vertical",c=e.fn.variant({color:n,variant:"filled"}),s=e.fn.radius(r),d=o==="vertical"?i==="left"?`${s}px 0 0 ${s}px`:` 0 ${s}px ${s}px 0`:a?`0 0 ${s}px ${s}px`:`${s}px ${s}px 0 0`;return t==="default"?Hy(Tl({[l?i==="left"?"borderRight":"borderLeft":a?"borderTop":"borderBottom"]:"2px solid transparent",[l?i==="left"?"marginRight":"marginLeft":a?"marginTop":"marginBottom"]:-2,borderRadius:d},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]})),{"&[data-active]":Tl({borderColor:c.background,color:e.colorScheme==="dark"?e.white:e.black},e.fn.hover({borderColor:c.background}))}):t==="outline"?{borderRadius:d,border:"1px solid transparent",[l?i==="left"?"borderRight":"borderLeft":a?"borderTop":"borderBottom"]:"none","&[data-active]":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3],"&::before":{content:'""',backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,position:"absolute",bottom:l?0:a?"unset":-1,top:l?0:a?-1:"unset",[l?"width":"height"]:1,right:l?i==="left"?-1:"unset":0,left:l?i==="left"?"unset":-1:0}}}:t==="pills"?Hy(Tl({borderRadius:e.fn.radius(r)},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]})),{"&[data-active]":Tl({backgroundColor:c.background,color:e.white},e.fn.hover({backgroundColor:c.background}))}):{}}var j$=W((e,t)=>({tabLabel:{},tab:Tl({position:"relative",padding:`${e.spacing.xs}px ${e.spacing.md}px`,paddingLeft:t.withIcon?e.spacing.xs:void 0,paddingRight:t.withRightSection?e.spacing.xs:void 0,fontSize:e.fontSizes.sm,whiteSpace:"nowrap",zIndex:0,display:"flex",alignItems:"center",justifyContent:t.orientation==="horizontal"?"center":void 0,lineHeight:1,"&:disabled":Tl({opacity:.5,cursor:"not-allowed"},e.fn.hover({backgroundColor:"transparent"})),"&:focus":{zIndex:1}},B$(e,t)),tabRightSection:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginLeft:7}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginRight:7}}})),Wy=j$;var H$=Object.defineProperty,W$=Object.defineProperties,S$=Object.getOwnPropertyDescriptors,av=Object.getOwnPropertySymbols,_y=Object.prototype.hasOwnProperty,Py=Object.prototype.propertyIsEnumerable,Sy=(e,t,o)=>t in e?H$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,_$=(e,t)=>{for(var o in t||(t={}))_y.call(t,o)&&Sy(e,o,t[o]);if(av)for(var o of av(t))Py.call(t,o)&&Sy(e,o,t[o]);return e},P$=(e,t)=>W$(e,S$(t)),O$=(e,t)=>{var o={};for(var n in e)_y.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&av)for(var n of av(e))t.indexOf(n)<0&&Py.call(e,n)&&(o[n]=e[n]);return o},R$={},Af=(0,si.forwardRef)((e,t)=>{let o=S("TabsTab",R$,e),{value:n,children:r,onKeyDown:a,onClick:i,className:l,icon:c,rightSection:s,color:d}=o,h=O$(o,["value","children","onKeyDown","onClick","className","icon","rightSection","color"]),v=Rl(),u=!!c,w=!!s,{theme:k,classes:g,cx:p}=Wy({withIcon:u||w&&!r,withRightSection:w||u&&!r,orientation:v.orientation,color:d||v.color,variant:v.variant,radius:v.radius,inverted:v.inverted,placement:v.placement},{name:"Tabs",unstyled:v.unstyled,classNames:v.classNames,styles:v.styles}),m=n===v.value,f=E=>{v.onTabChange(v.allowTabDeactivation&&n===v.value?null:n),i==null||i(E)};return si.default.createElement(ul,P$(_$({},h),{unstyled:v.unstyled,className:p(g.tab,l),"data-active":m||void 0,ref:t,type:"button",role:"tab",id:v.getTabId(n),"aria-selected":m,tabIndex:m||v.value===null?0:-1,"aria-controls":v.getPanelId(n),onClick:f,onKeyDown:Su({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:v.activateTabWithKeyboard,loop:v.loop,dir:k.dir,orientation:v.orientation,onKeyDown:a})}),c&&si.default.createElement("div",{className:g.tabIcon},c),r&&si.default.createElement("div",{className:g.tabLabel},r),s&&si.default.createElement("div",{className:g.tabRightSection},s))});Af.displayName="@mantine/core/Tab";var Oy=y(I());function Df({defaultValue:e,value:t,onTabChange:o,orientation:n,children:r,loop:a,id:i,activateTabWithKeyboard:l,allowTabDeactivation:c,variant:s,color:d,radius:h,inverted:v,placement:u,keepMounted:w=!0,classNames:k,styles:g,unstyled:p}){let m=Ro(i),[f,E]=lt({value:t,defaultValue:e,finalValue:null,onChange:o});return Oy.default.createElement(gy,{value:{placement:u,value:f,orientation:n,id:m,loop:a,activateTabWithKeyboard:l,getTabId:t1(`${m}-tab`,l0.value),getPanelId:t1(`${m}-panel`,l0.value),onTabChange:E,allowTabDeactivation:c,variant:s,color:d,radius:h,inverted:v,keepMounted:w,classNames:k,styles:g,unstyled:p}},r)}Df.displayName="@mantine/core/TabsProvider";var T$=W((e,{orientation:t,placement:o})=>({root:{display:t==="vertical"?"flex":void 0,flexDirection:o==="right"?"row-reverse":"row"}})),Ry=T$;var A$=Object.defineProperty,D$=Object.defineProperties,F$=Object.getOwnPropertyDescriptors,iv=Object.getOwnPropertySymbols,Ay=Object.prototype.hasOwnProperty,Dy=Object.prototype.propertyIsEnumerable,Ty=(e,t,o)=>t in e?A$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,$$=(e,t)=>{for(var o in t||(t={}))Ay.call(t,o)&&Ty(e,o,t[o]);if(iv)for(var o of iv(t))Dy.call(t,o)&&Ty(e,o,t[o]);return e},V$=(e,t)=>D$(e,F$(t)),U$=(e,t)=>{var o={};for(var n in e)Ay.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&iv)for(var n of iv(e))t.indexOf(n)<0&&Dy.call(e,n)&&(o[n]=e[n]);return o},q$={orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},Pe=(0,c0.forwardRef)((e,t)=>{let o=S("Tabs",q$,e),{defaultValue:n,value:r,orientation:a,loop:i,activateTabWithKeyboard:l,allowTabDeactivation:c,children:s,id:d,onTabChange:h,variant:v,color:u,className:w,unstyled:k,classNames:g,styles:p,radius:m,inverted:f,keepMounted:E,placement:M}=o,z=U$(o,["defaultValue","value","orientation","loop","activateTabWithKeyboard","allowTabDeactivation","children","id","onTabChange","variant","color","className","unstyled","classNames","styles","radius","inverted","keepMounted","placement"]),{classes:x,cx:b}=Ry({orientation:a,color:u,variant:v,radius:m,inverted:f,placement:M},{unstyled:k,name:"Tabs",classNames:g,styles:p});return c0.default.createElement(Df,{activateTabWithKeyboard:l,defaultValue:n,orientation:a,onTabChange:h,value:r,id:d,loop:i,allowTabDeactivation:c,color:u,variant:v,radius:m,inverted:f,keepMounted:E,placement:M,classNames:g,styles:p,unstyled:k},c0.default.createElement(D,V$($$({},z),{className:b(x.root,w),id:d,ref:t}),s))});Pe.List=Rf;Pe.Tab=Af;Pe.Panel=Tf;Pe.displayName="@mantine/core/Tabs";var cv=y(I());var G$=Object.defineProperty,K$=Object.defineProperties,Y$=Object.getOwnPropertyDescriptors,Fy=Object.getOwnPropertySymbols,X$=Object.prototype.hasOwnProperty,Q$=Object.prototype.propertyIsEnumerable,$y=(e,t,o)=>t in e?G$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Z$=(e,t)=>{for(var o in t||(t={}))X$.call(t,o)&&$y(e,o,t[o]);if(Fy)for(var o of Fy(t))Q$.call(t,o)&&$y(e,o,t[o]);return e},J$=(e,t)=>K$(e,Y$(t)),eV={xs:16,sm:20,md:26,lg:32,xl:40},tV=W((e,{color:t,size:o,radius:n,gradient:r,variant:a})=>{let i=e.fn.variant({variant:a,color:t||e.primaryColor,gradient:r,primaryFallback:!1}),l=e.fn.size({size:o,sizes:eV});return{root:J$(Z$({},e.fn.fontStyles()),{display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:l,height:l,minWidth:l,minHeight:l,borderRadius:e.fn.radius(n),backgroundColor:i.background,color:i.color,backgroundImage:a==="gradient"?i.background:void 0,border:`${a==="gradient"?0:1}px solid ${i.border}`})}}),Vy=tV;var oV=Object.defineProperty,lv=Object.getOwnPropertySymbols,qy=Object.prototype.hasOwnProperty,Gy=Object.prototype.propertyIsEnumerable,Uy=(e,t,o)=>t in e?oV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,nV=(e,t)=>{for(var o in t||(t={}))qy.call(t,o)&&Uy(e,o,t[o]);if(lv)for(var o of lv(t))Gy.call(t,o)&&Uy(e,o,t[o]);return e},rV=(e,t)=>{var o={};for(var n in e)qy.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&lv)for(var n of lv(e))t.indexOf(n)<0&&Gy.call(e,n)&&(o[n]=e[n]);return o},aV={size:"md",variant:"filled"},Al=(0,cv.forwardRef)((e,t)=>{let o=S("ThemeIcon",aV,e),{className:n,size:r,radius:a,variant:i,color:l,children:c,gradient:s,unstyled:d}=o,h=rV(o,["className","size","radius","variant","color","children","gradient","unstyled"]),{classes:v,cx:u}=Vy({variant:i,radius:a,color:l,size:r,gradient:s},{name:"ThemeIcon",unstyled:d});return cv.default.createElement(D,nV({className:u(v.root,n),ref:t},h),c)});Al.displayName="@mantine/core/ThemeIcon";var dv=y(I());var iV=Object.defineProperty,lV=Object.defineProperties,cV=Object.getOwnPropertyDescriptors,Ky=Object.getOwnPropertySymbols,sV=Object.prototype.hasOwnProperty,dV=Object.prototype.propertyIsEnumerable,Yy=(e,t,o)=>t in e?iV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,hV=(e,t)=>{for(var o in t||(t={}))sV.call(t,o)&&Yy(e,o,t[o]);if(Ky)for(var o of Ky(t))dV.call(t,o)&&Yy(e,o,t[o]);return e},vV=(e,t)=>lV(e,cV(t));function mV(e,t,o){return typeof e<"u"?e in o.headings.sizes?o.headings.sizes[e].fontSize:e:o.headings.sizes[t].fontSize}function uV(e,t,o){return typeof e<"u"&&e in o.headings.sizes?o.headings.sizes[e].lineHeight:o.headings.sizes[t].lineHeight}var pV=W((e,{element:t,weight:o,size:n,inline:r})=>({root:vV(hV({},e.fn.fontStyles()),{fontFamily:e.headings.fontFamily,fontWeight:o||e.headings.sizes[t].fontWeight||e.headings.fontWeight,fontSize:mV(n,t,e),lineHeight:r?1:uV(n,t,e),margin:0})})),Xy=pV;var fV=Object.defineProperty,sv=Object.getOwnPropertySymbols,Zy=Object.prototype.hasOwnProperty,Jy=Object.prototype.propertyIsEnumerable,Qy=(e,t,o)=>t in e?fV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,kV=(e,t)=>{for(var o in t||(t={}))Zy.call(t,o)&&Qy(e,o,t[o]);if(sv)for(var o of sv(t))Jy.call(t,o)&&Qy(e,o,t[o]);return e},wV=(e,t)=>{var o={};for(var n in e)Zy.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&sv)for(var n of sv(e))t.indexOf(n)<0&&Jy.call(e,n)&&(o[n]=e[n]);return o},gV={order:1},ct=(0,dv.forwardRef)((e,t)=>{let o=S("Title",gV,e),{className:n,order:r,children:a,unstyled:i,size:l,weight:c,inline:s}=o,d=wV(o,["className","order","children","unstyled","size","weight","inline"]),{classes:h,cx:v}=Xy({element:`h${r}`,weight:c,size:l,inline:s},{name:"Title",unstyled:i});return[1,2,3,4,5,6].includes(r)?dv.default.createElement(oe,kV({component:`h${r}`,ref:t,className:v(h.root,n)},d),a):null});ct.displayName="@mantine/core/Title";var $f="Apple-Musiclike-lyrics";var Dl="1.8.1";var Vf=["RefinedNowPlaying"];var ze=y(I());var xe=new EventTarget;function eL(e,t){let o=0;return function(){let r=this,a=arguments;o&&clearTimeout(o),o=setTimeout(e.bind(r,a),t)}}function hv(e){let t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",o=[];for(let n=0;n{};var We=xV,Ne=Nn?(...e)=>console.warn("[AMLL-Worker]",...e):console.warn,nL=Nn?(...e)=>console.error("[AMLL-Worker]",...e):console.error;var Fl=class extends Array{constructor(o=(n,r)=>Number(n)-Number(r)){super();this._comparator=o;P(this,"_sorted",!1);P(this,"sort",o=>(this._comparator=o||this._comparator,this._sorted=!0,super.sort(this._comparator)));P(this,"push",o=>(this._sorted=!1,super.push(o)));P(this,"pop",()=>(this._sorted||this.sort(),super.pop()));P(this,"peek",o=>(this._sorted||this.sort(),o===void 0&&(o=this.length-1),this[o]));P(this,"size",()=>this.length);P(this,"debug",()=>(this._sorted||this.sort(),this))}};var $l=class{constructor(t,o,n,r,a,i,l){this.r1=t;this.r2=o;this.g1=n;this.g2=r;this.b1=a;this.b2=i;this.histo=l;P(this,"_count",-1);P(this,"_volume",0);P(this,"_avg",[]);P(this,"volume",t=>this._volume&&!t?this._volume:(this._volume=(this.r2-this.r1+1)*(this.g2-this.g1+1)*(this.b2-this.b1+1),this._volume));P(this,"count",t=>{if(this._count>-1&&!t)return this._count;let o=0,n,r,a,i;for(n=this.r1;n<=this.r2;n++)for(r=this.g1;r<=this.g2;r++)for(a=this.b1;a<=this.b2;a++)i=di(n,r,a),o+=this.histo[i]||0;return this._count=o,this._count});P(this,"copy",()=>new $l(this.r1,this.r2,this.g1,this.g2,this.b1,this.b2,this.histo));P(this,"avg",t=>{if(this._avg.length&&t)return this._avg;let o=0,n=1<{let[o,n,r]=t.map(a=>a>>vv);return o>=this.r1&&o<=this.r2&&n>=this.g1&&n<=this.g2&&r>=this.b1&&r<=this.b2})}};var mv=5,vv=8-mv,Uf=1e3,rL=.75,xr={naturalOrder:(e,t)=>et?1:0,sum:(e,t)=>e.reduce((o,n)=>o+(t?t.call(e,n):Number(n)),0),max:(e,t)=>Math.max.apply(null,t?e.map(t):e.map(o=>Number(o))),size:e=>e.reduce((t,o)=>o?t+1:t,0)},di=(e,t,o)=>(e<<2*mv)+(t<{let t=new Array(1<<3*mv),o,n=1/0,r=0,a=1/0,i=0,l=1/0,c=0,s,d,h;return e.forEach(function(v){[s,d,h]=v.map(u=>u>>vv),o=di(s,d,h),t[o]=(t[o]||0)+1,sr&&(r=s),di&&(i=d),hc&&(c=h)}),{vbox:new $l(n,r,a,i,l,c,t),histo:t}},iL=(e,t)=>{if(!t.count())return[];if(t.count()===1)return[t.copy()];let o=t.r2-t.r1+1,n=t.g2-t.g1+1,r=t.b2-t.b1+1,a=xr.max([o,n,r]),i=[],l=0,c,s,d,h,v;if(a===o)for(c=t.r1;c<=t.r2;c++){for(h=0,s=t.g1;s<=t.g2;s++)for(d=t.b1;d<=t.b2;d++)v=di(c,s,d),h+=e[v]||0;l+=h,i[c]=l}else if(a===n)for(c=t.g1;c<=t.g2;c++){for(h=0,s=t.r1;s<=t.r2;s++)for(d=t.b1;d<=t.b2;d++)v=di(s,c,d),h+=e[v]||0;l+=h,i[c]=l}else for(c=t.b1;c<=t.b2;c++){for(h=0,s=t.r1;s<=t.r2;s++)for(d=t.g1;d<=t.g2;d++)v=di(s,d,c),h+=e[v]||0;l+=h,i[c]=l}let u=w=>{let k=`${w}1`,g=`${w}2`,p,m,f,E,M;for(c=t[k];c<=t[g]&&!(i[c]>=l/2);c++);for(f=t.copy(),E=t.copy(),p=c-t[k],m=t[g]-c,M=p<=m?Math.min(t[g]-1,~~(c+m/2)):Math.max(t[k],~~(c-1-p/2));!i[M]&&M<=t[g];)M++;return f[g]=M,E[k]=M+1,[f,E]};return u(a===o?"r":a===n?"g":"b")};var uv=class{constructor(){P(this,"vboxes");P(this,"push",t=>{this.vboxes.push({vbox:t,color:t.avg()})});P(this,"palette",()=>this.vboxes.map(t=>t.color));P(this,"size",()=>this.vboxes.size());P(this,"map",t=>{for(let o=0;o{let o,n,r,a;for(o=0;o{this.vboxes.sort((r,a)=>xr.naturalOrder(xr.sum(r.color),xr.sum(a.color)));let t=this.vboxes[0].color;t[0]<5&&t[1]<5&&t[2]<5&&(this.vboxes[0].color=[0,0,0]);let o=this.vboxes.length-1,n=this.vboxes[o].color;n[0]>251&&n[1]>251&&n[2]>251&&(this.vboxes[o].color=[255,255,255]),this.vboxes.sort(uv._compare)});this.vboxes=new Fl(uv._compare)}},Vl=uv;P(Vl,"_compare",(t,o)=>xr.naturalOrder(t.vbox.count()*t.vbox.volume(),o.vbox.count()*o.vbox.volume()));var lL=(e,t)=>{if(!e.length||t<1||t>256)return new Vl;let{histo:o,vbox:n}=aL(e),r=new Fl((l,c)=>xr.naturalOrder(l.count(),c.count()));r.push(n);let a=(l,c)=>{let s=l.size(),d=0,h;for(;d=c||d++>Uf||!l.peek().count())return;h=l.pop();let[v,u]=iL(o,h);if(!v)return;l.push(v),u&&(l.push(u),s++)}};a(r,rL*t),r.sort((l,c)=>xr.naturalOrder(l.count()*l.volume(),c.count()*c.volume())),a(r,t);let i=new Vl;for(;r.size();)i.push(r.pop());return i};var Gn,cL="",pv;function dL(e=cL){cL=e,pv&&URL.revokeObjectURL(pv),pv=URL.createObjectURL(new Blob([e],{type:"application/javascript"})),Gn==null||Gn.removeEventListener("message",sL),Gn==null||Gn.terminate(),Gn=new Worker(pv,{name:"AMLL Worker",type:"classic"}),Gf(fa),Gn.addEventListener("message",sL)}var MV={},qf=new Map;function hL(e,t,o=[]){MV[e]={funcName:e,funcBody:t};let n=0;return(...r)=>{if(Gn)return new Promise((a,i)=>{let l=`${hv(4)} - ${e} - ${n++}`;qf.set(l,[a,i]),Gn.postMessage({id:l,funcName:e,args:r},o.map(c=>r[c]).filter(c=>!!c))});APP_CONF.isOSX||Ne("AMLL Worker 尚未运行,正在本地线程执行函数",e,r);try{let a=t(...r);return Promise.resolve(a)}catch(a){return Promise.reject(a)}}}var vL=hL("grabImageColors",(e,t=16)=>{let o,n;if(Nn||!APP_CONF.isOSX?(o=new OffscreenCanvas(e.width,e.height),n=o.getContext("2d")):(o=document.createElement("canvas"),o.width=e.width,o.height=e.height,n=o.getContext("2d")),n){n.drawImage(e,0,0);let r=n.getImageData(0,0,o.width,o.height),a=[];for(let c=0;cl.push(c)),l}else return[]}),Gf=hL("setConfigFromMain",e=>{if(Nn){for(let t in e)hi(t,e[t]);We("已从主线程同步配置",...Object.keys(e))}});function sL(e){let t=qf.get(e.data.id);if(t){let[o,n]=t;qf.delete(e.data.id),e.data.error?n(e.data.error):o(e.data.result)}}var mL,uL,pL=`config.betterncm.${"plugin"in globalThis?((mL=plugin==null?void 0:plugin.manifest)==null?void 0:mL.slug)||((uL=plugin==null?void 0:plugin.manifest)==null?void 0:uL.name)||$f:$f}`,fa=zV();function zV(){if(Nn)return{};try{return JSON.parse(localStorage.getItem(pL)||"{}")}catch(e){return Ne("警告:AMLL 插件配置读取失败",e),{}}}function fL(){return fa||{}}var bV=eL(function(){if(Nn){xe.dispatchEvent(new Event("config-saved"));return}try{localStorage.setItem(pL,JSON.stringify(fa))}catch(t){Ne("警告:AMLL 插件配置保存失败",t)}xe.dispatchEvent(new Event("config-saved"))},2e3);function hi(e,t){Nn||Gf({[e]:t}),t===void 0?delete fa[e]:fa[e]=t,bV()}function Dt(e,t){return fa[e]===void 0?t:fa[e]}var Kf=new Map;function wv(e){if(e===1)return"pausing";if(e===2)return"playing";throw new TypeError(`未知的播放状态值 ${e}`)}var Yf=["https://p3.music.126.net/","https://p4.music.126.net/"],fv=0;function gv(e){return fv++,fv%=Yf.length,APP_CONF.isOSX?`${Yf[fv]}${kv("R$nameDo",["encryptId",e.toString()])}/${e}.jpg`:`${Yf[fv]}${channel.encryptId(e.toString())}/${e}.jpg`}function kL(e,t){return kv(Ev(),[e,t])}function Ev(){let e=Dt("eapiRequestFuncName","");return We("加密请求函数",e),Dt("ncmPackageVersion","")!==APP_CONF.packageVersion&&(e="",hi("ncmPackageVersion",APP_CONF.packageVersion)),e===""&&(e=Ul()||"",e===""&&(e=Ul(!0)||""),hi("eapiRequestFuncName",e),xe.dispatchEvent(new Event("config-changed-eapiRequestFuncName"))),e}try{Ev()}catch(e){}function wL(...e){return new Promise((t,o)=>{kL(`${APP_CONF.domain}/api/v3/song/detail`,{type:"json",data:{c:JSON.stringify(e.map(n=>({id:n})))},onload:t,onerror:o})})}function Ul(e=!1){var r,a,i;let t=["_bindTokenRequest","yidun","getToken","undefined"],o=["/api","register","anonimous"],n=betterncm.ncm.findApiFunction(l=>(l.toString().includes(t.join(" "))||l.toString().includes(o.join("/")))&&l!==Ul);if(n){for(let l in n[1])if(n[1][l]===n[0]){We("查找到原始请求函数:",l,n);let c=l;if(e)return c;for(let s in n[1])if((i=(a=(r=n[1][s])==null?void 0:r.originalFunc)==null?void 0:a.toString())!=null&&i.includes(`.${c}(`))return We("查找到绑定请求函数:",s,n),s}}return We("查找请求函数失败"),null}function kv(e,t){if(!Kf.has(e.toString())){let n=betterncm.ncm.findApiFunction(e);if(n){let[r,a]=n;Kf.set(e.toString(),r.bind(a))}}let o=Kf.get(e.toString());if(o)return o.apply(null,t);throw new TypeError(`函数 ${e.toString()} 未找到`)}function Xf(e){return new Promise((t,o)=>{kL(`${APP_CONF.domain}/api/song/lyric/v1`,{type:"json",query:{id:e,cp:!1,tv:0,lv:0,rv:0,kv:0,yv:0,ytv:0,yrv:0},onload:t,onerror:o})})}function Xt(){return APP_CONF.isOSX?kv("baJ",[]):kv("getPlaying",[])}var xv=async(e,t=!1)=>{let o=`${plugin.pluginPath}/lyrics`,n=`${o}/${e}.json`;try{if(!t&&await betterncm.fs.exists(n)){We("发现歌词缓存,正在加载缓存",n);let r=await betterncm.fs.readFileText(n);return JSON.parse(r)}}catch(r){Ne("警告:加载已缓存歌词失败",r)}if(typeof e=="number"){let r=await Xf(e);try{await betterncm.fs.exists(o)||betterncm.fs.mkdir(o),await betterncm.fs.writeFile(n,JSON.stringify(r,null,4))}catch(a){Ne("警告:缓存歌词失败",a)}return r}else return{}};function Qf(e,t){return`${e}|${t}|${hv(6)}`}function ql(...e){let t=[];for(let o of e)if(typeof o=="string"){let n=o.trim();t.includes(n)||t.push(n)}else for(let n in o)if(o[n]){let r=n.trim();t.includes(r)||t.push(r)}return t.join(" ")}async function gL(e,t,o){return await e.decode(),createImageBitmap(e,0,0,e.width,e.height,{resizeWidth:t!=null?t:e.width,resizeHeight:o!=null?o:e.height,resizeQuality:"pixelated"})}function Mr(e){legacyNativeCmder._envAdapter.callAdapter("winhelper.setClipBoardData",()=>{},[e])}var Xe={},yV=0;function et(e,t){let o=`atom${++yV}`,n={toString:()=>o};return typeof e=="function"?n.read=e:(n.init=e,n.read=r=>r(n),n.write=(r,a,i)=>a(n,typeof i=="function"?i(r(n)):i)),t&&(n.write=t),n}var Zf=e=>"init"in e,Jf=e=>!!e.write,bv=new WeakMap,LV=(e,t)=>{bv.set(e,t),e.catch(()=>{}).finally(()=>bv.delete(e))},EL=(e,t)=>{let o=bv.get(e);o&&(bv.delete(e),o(t))},xL=(e,t)=>{e.status="fulfilled",e.value=t},ML=(e,t)=>{e.status="rejected",e.reason=t},Mv=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),zL=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),ek=e=>"v"in e&&e.v instanceof Promise,zv=e=>{if("e"in e)throw e.e;return e.v},ok=()=>{let e=new WeakMap,t=new WeakMap,o=new Map,n,r;(Xe.env&&Xe.env.MODE)!=="production"&&(n=new Set,r=new Set);let a=x=>e.get(x),i=(x,b)=>{(Xe.env&&Xe.env.MODE)!=="production"&&Object.freeze(b);let L=e.get(x);if(e.set(x,b),o.has(x)||o.set(x,L),L&&ek(L)){let C="v"in b?b.v instanceof Promise?b.v:Promise.resolve(b.v):Promise.reject(b.e);EL(L.v,C)}},l=(x,b,L)=>{let C=new Map,B=!1;L.forEach(N=>{let j=N===x?b:a(N);j?(C.set(N,j),b.d.get(N)!==j&&(B=!0)):(Xe.env&&Xe.env.MODE)!=="production"&&console.warn("[Bug] atom state not found")}),(B||b.d.size!==C.size)&&(b.d=C)},c=(x,b,L)=>{let C=a(x),B={d:(C==null?void 0:C.d)||new Map,v:b};return L&&l(x,B,L),C&&Mv(C,B)&&C.d===B.d?C:(i(x,B),B)},s=(x,b,L)=>{let C=a(x),B={d:(C==null?void 0:C.d)||new Map,e:b};return L&&l(x,B,L),C&&zL(C,B)&&C.d===B.d?C:(i(x,B),B)},d=x=>{let b=a(x);if(b&&(b.d.forEach((H,_)=>{_!==x&&!t.has(_)&&d(_)}),Array.from(b.d).every(([H,_])=>H===x||a(H)===_)))return b;let L=new Set,C=!0,B=H=>{if(L.add(H),H===x){let A=a(H);if(A)return zv(A);if(Zf(H))return H.init;throw new Error("no atom init")}let _=d(H);return zv(_)},N,j,T={get signal(){return N||(N=new AbortController),N.signal},get setSelf(){return(Xe.env&&Xe.env.MODE)!=="production"&&!Jf(x)&&console.warn("setSelf function cannot be used with read-only atom"),!j&&Jf(x)&&(j=(...H)=>{if((Xe.env&&Xe.env.MODE)!=="production"&&C&&console.warn("setSelf function cannot be called in sync"),!C)return p(x,...H)}),j}};try{let H=x.read(B,T);if(H instanceof Promise){let _,A=new Promise((F,V)=>{let $=!1;H.then(U=>{$||(xL(A,U),F(U))},U=>{$||(ML(A,U),V(U))}).finally(()=>{$||($=!0,c(x,A,L))}),_=U=>{$||($=!0,U.then(ee=>xL(A,ee),ee=>ML(A,ee)),F(U))}});return A.status="pending",LV(A,F=>{F&&_(F),N==null||N.abort()}),c(x,A,L)}return c(x,H,L)}catch(H){return s(x,H,L)}finally{C=!1}},h=x=>zv(d(x)),v=x=>{let b=t.get(x);return b||(b=m(x)),b},u=(x,b)=>!b.l.size&&(!b.t.size||b.t.size===1&&b.t.has(x)),w=x=>{let b=t.get(x);b&&u(x,b)&&f(x)},k=x=>{let b=t.get(x);b==null||b.t.forEach(L=>{if(L!==x){let C=a(L),B=d(L);(!C||!Mv(C,B))&&k(L)}})},g=(x,...b)=>{let L=!0,C=j=>zv(d(j)),B=(j,...T)=>{let H;if(j===x){if(!Zf(j))throw new Error("atom not writable");let _=a(j),A=c(j,T[0]);(!_||!Mv(_,A))&&k(j)}else H=g(j,...T);return L||M(),H},N=x.write(C,B,...b);return L=!1,N},p=(x,...b)=>{let L=g(x,...b);return M(),L},m=(x,b)=>{let L={t:new Set(b&&[b]),l:new Set};if(t.set(x,L),(Xe.env&&Xe.env.MODE)!=="production"&&r.add(x),d(x).d.forEach((C,B)=>{let N=t.get(B);N?N.t.add(x):B!==x&&m(B,x)}),d(x),Jf(x)&&x.onMount){let C=x.onMount((...B)=>p(x,...B));C&&(L.u=C)}return L},f=x=>{var b;let L=(b=t.get(x))==null?void 0:b.u;L&&L(),t.delete(x),(Xe.env&&Xe.env.MODE)!=="production"&&r.delete(x);let C=a(x);C?(ek(C)&&EL(C.v),C.d.forEach((B,N)=>{if(N!==x){let j=t.get(N);j&&(j.t.delete(x),u(N,j)&&f(N))}})):(Xe.env&&Xe.env.MODE)!=="production"&&console.warn("[Bug] could not find atom state to unmount",x)},E=(x,b,L)=>{let C=new Set(b.d.keys());L==null||L.forEach((B,N)=>{if(C.has(N)){C.delete(N);return}let j=t.get(N);j&&(j.t.delete(x),u(N,j)&&f(N))}),C.forEach(B=>{let N=t.get(B);N?N.t.add(x):t.has(x)&&m(B,x)})},M=()=>{for(;o.size;){let x=Array.from(o);o.clear(),x.forEach(([b,L])=>{let C=a(b);if(C){C.d!==(L==null?void 0:L.d)&&E(b,C,L==null?void 0:L.d);let B=t.get(b);B&&!(L&&!ek(L)&&(Mv(L,C)||zL(L,C)))&&B.l.forEach(N=>N())}else(Xe.env&&Xe.env.MODE)!=="production"&&console.warn("[Bug] no atom state to flush")})}(Xe.env&&Xe.env.MODE)!=="production"&&n.forEach(x=>x())},z=(x,b)=>{let L=v(x);M();let C=L.l;return C.add(b),()=>{C.delete(b),w(x)}};return(Xe.env&&Xe.env.MODE)!=="production"?{get:h,set:p,sub:z,dev_subscribe_state:x=>(n.add(x),()=>{n.delete(x)}),dev_get_mounted_atoms:()=>r.values(),dev_get_atom_state:x=>e.get(x),dev_get_mounted:x=>t.get(x),dev_restore_atoms:x=>{for(let[b,L]of x)Zf(b)&&(c(b,L),k(b));M()}}:{get:h,set:p,sub:z}},tk,bL=()=>(tk||(tk=ok()),tk);var NL=y(G(),1),Qt=y(I(),1);var IL={},BL=(0,Qt.createContext)(void 0),jL=e=>{let t=(0,Qt.useContext)(BL);return(e==null?void 0:e.store)||t||bL()},s0=({children:e,store:t})=>{let o=(0,Qt.useRef)();return!t&&!o.current&&(o.current=ok()),(0,NL.jsx)(BL.Provider,{value:t||o.current,children:e})},WV=e=>e instanceof Promise,SV=Qt.default.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function he(e,t){let o=jL(t),[[n,r,a],i]=(0,Qt.useReducer)(s=>{let d=o.get(e);return Object.is(s[0],d)&&s[1]===o&&s[2]===e?s:[d,o,e]},void 0,()=>[o.get(e),o,e]),l=n;(r!==o||a!==e)&&(i(),l=o.get(e));let c=t==null?void 0:t.delay;return(0,Qt.useEffect)(()=>{let s=o.sub(e,()=>{if(typeof c=="number"){setTimeout(i,c);return}i()});return i(),s},[o,e,c]),(0,Qt.useDebugValue)(l),WV(l)?SV(l):l}function tt(e,t){let o=jL(t);return(0,Qt.useCallback)((...r)=>{if((IL.env&&IL.env.MODE)!=="production"&&!("write"in e))throw new Error("not writable atom");return o.set(e,...r)},[o,e])}function Zt(e,t){return[he(e,t),tt(e,t)]}var e0e=Symbol();var nk=(e,t,o)=>(t.has(o)?t:t.set(o,e())).get(o),_V=new WeakMap,PV=(e,t,o,n)=>{let r=nk(()=>new WeakMap,_V,t),a=nk(()=>new WeakMap,r,o);return nk(e,a,n)};function Gl(e,t,o=Object.is){return PV(()=>{let n=Symbol(),r=([i,l])=>{let c=t(i);return l!==n&&o(l,c)?l:c},a=et(i=>{let l=i(a),c=i(e);return c instanceof Promise||l instanceof Promise?Promise.all([c,l]).then(r):r([c,l])});return a.init=n,a},e,t,o)}var OV=Symbol();function RV(e){let t,o,n={getItem:r=>{var a,i;let l=s=>{if(s=s||"",t!==s){try{o=JSON.parse(s)}catch(d){return OV}t=s}return o},c=(i=(a=e())==null?void 0:a.getItem(r))!=null?i:null;return c instanceof Promise?c.then(l):l(c)},setItem:(r,a)=>{var i;return(i=e())==null?void 0:i.setItem(r,JSON.stringify(a))},removeItem:r=>{var a;return(a=e())==null?void 0:a.removeItem(r)}};return typeof window<"u"&&typeof window.addEventListener=="function"&&(n.subscribe=(r,a)=>{let i=l=>{l.key===r&&l.newValue&&a(JSON.parse(l.newValue))};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}}),n}var t0e=RV(()=>typeof window<"u"?window.localStorage:void 0);var Lv=et(!1),c0e=et(!1),Cv=et(""),Iv=et(0),ka=et({}),Kl=et("pausing"),Bn=et(null),Yl=et(-1),mi=et(Xt()),Nv=et(null),Bv=et([[0,0,0]]),jv=et(null),Hv=et(null),Ft=Gl(mi,e=>{var t,o,n,r;return((t=e==null?void 0:e.originFromTrack)==null?void 0:t.lrcid)||((n=(o=e==null?void 0:e.originFromTrack)==null?void 0:o.track)==null?void 0:n.tid)||((r=e==null?void 0:e.data)==null?void 0:r.id)||0}),Wv=et(e=>e(ka).lyricOffset||0,(e,t,o)=>{t(ka,n=>ke(K({},n),{lyricOffset:o}))}),ak=Gl(mi,e=>{var t;return((t=e==null?void 0:e.data)==null?void 0:t.album)||{}}),ik=Gl(mi,e=>{var t;return((t=e==null?void 0:e.data)==null?void 0:t.name)||"未知歌名"}),HL=Gl(mi,e=>{var t;return((t=e==null?void 0:e.data)==null?void 0:t.alias)||[]}),lk=Gl(mi,e=>{var t;return((t=e==null?void 0:e.data)==null?void 0:t.artists)||[]}),WL=()=>{var e,t,o,n,r,a,i;return((t=(e=Xt())==null?void 0:e.originFromTrack)==null?void 0:t.lrcid)||((r=(n=(o=Xt())==null?void 0:o.originFromTrack)==null?void 0:n.track)==null?void 0:r.tid)||((i=(a=Xt())==null?void 0:a.data)==null?void 0:i.id)||0},Sv=et(!1),s0e=et(!1),_v=et(!1),Pv=et(!1);function Jt(e,t){var a;let[o,n]=ze.useState((a=Dt(e,t))!=null?a:t),r=ze.useMemo(()=>`config-changed-${e}`,[e]);return ze.useEffect(()=>{hi(e,o),xe.dispatchEvent(new Event(r))},[o]),ze.useEffect(()=>{let i=()=>{var c;let l=(c=Dt(e,t))!=null?c:t;n(l)};return xe.addEventListener(r,i),()=>{xe.removeEventListener(r,i)}},[e,t,r]),[o,n]}function kt(e,t=!1){let[o,n]=Jt(e,t.toString());return[ze.useMemo(()=>o!=="false",[o]),i=>n(i.toString())]}function Yn(e,t){var a;let[o,n]=ze.useState((a=Dt(e,t))!=null?a:t),r=ze.useMemo(()=>`config-changed-${e}`,[e]);return ze.useEffect(()=>{let i=()=>{var c;let l=(c=Dt(e,t))!=null?c:t;n(l)};return xe.addEventListener(r,i),()=>{xe.removeEventListener(r,i)}},[e,t,r]),o}function eo(e,t=!1){let o=Yn(e,t.toString());return ze.useMemo(()=>o!=="false",[o])}function Xl(){let[e,t]=ze.useState(!!document.getElementById("applemusic-like-lyrics-view"));return ze.useEffect(()=>{t(!!document.getElementById("applemusic-like-lyrics-view"));let o=()=>{We("歌词页面已显示"),t(!0)},n=()=>{We("歌词页面已隐藏"),t(!1)};return xe.addEventListener("lyric-page-open",o),xe.addEventListener("lyric-page-hide",n),()=>{xe.removeEventListener("lyric-page-open",o),xe.removeEventListener("lyric-page-hide",n)}},[]),e}function Rv(){let[e,t]=ze.useState(location.hash==="#/m/fm/");return ze.useEffect(()=>{let o=()=>{t(location.hash==="#/m/fm/")};return window.addEventListener("hashchange",o),()=>{window.removeEventListener("hashchange",o)}},[]),e}var Kn;async function TV(e=!1){if(e&&(Kn=void 0),Kn!==void 0)return Kn;let t="https://raw.githubusercontent.com/Steve-xmh/applemusic-like-lyrics/main/dist/manifest.json";try{let o=await(await fetch(`https://ghproxy.com/${t}`)).json();return Kn!==o.version&&xe.dispatchEvent(new Event("latest-version-updated")),Kn=o.version,Kn}catch(o){}try{let o=await(await fetch(t)).json();return Kn!==o.version&&xe.dispatchEvent(new Event("latest-version-updated")),Kn=o.version,Kn}catch(o){}return Kn||""}function d0(){let[e,t]=ze.useState("");return ze.useEffect(()=>{let o=()=>TV().then(t);return o(),xe.addEventListener("latest-version-updated",o),()=>{xe.removeEventListener("latest-version-updated",o)}},[]),e}function SL(){let e=d0();return ze.useMemo(()=>e!==""&&e!==Dl,[e])}var Ov="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",AV=()=>new Image;function h0(e,t,o){let n=ze.useRef(AV()),[r,a]=ze.useState(t&&o&&t*o>0),i=ze.useMemo(()=>{var g,p,m,f,E,M,z,x,b;let s=Xt(),d=[],h=(f=(m=(p=(g=s==null?void 0:s.originFromTrack)==null?void 0:g.track)==null?void 0:p.track)==null?void 0:m.album)==null?void 0:f.picUrl;if(h){let L=`orpheus://cache/?${h}`;d.push(`${L}?imageView&type=webp&enlarge=1&thumbnail=${t}y${o}`),d.push(L)}let v=(M=(E=s==null?void 0:s.data)==null?void 0:E.radio)==null?void 0:M.intervenePicUrl;if(v){let L=`orpheus://cache/?${v}`;d.push(`${L}?imageView&type=webp&enlarge=1&thumbnail=${t}y${o}`),d.push(L)}let u=(x=(z=s==null?void 0:s.data)==null?void 0:z.album)==null?void 0:x.picUrl;if(u){let L=`orpheus://cache/?${u}`;d.push(`${L}?imageView&type=webp&enlarge=1&thumbnail=${t}y${o}`),d.push(L)}let w=(b=s==null?void 0:s.from)==null?void 0:b.playFile;if(w){let L=`orpheus://localmusic/pic?${encodeURIComponent(w)}`;d.push(L,L)}let k=`orpheus://cache/?${gv("16601526067802346")}`;return d.push(k,k),d.push(Ov),d.push(Ov),d},[e,r,t,o]),[l,c]=ze.useState("");return ze.useEffect(()=>{a(t&&o&&t*o>0)},[t,o]),ze.useEffect(()=>{if(i.length===0){c(Ov);return}c("");let s=r?0:1,d=()=>{i.includes(n.current.src)&&(c(i[s]),s%2===0&&r&&(s++,i[s]&&(n.current.src=i[s]),n.current.addEventListener("load",d,{once:!0}),n.current.addEventListener("error",h,{once:!0})))},h=v=>{if(s%2===1&&r){let u=i[s];u.lastIndexOf("?")!==-1?u+=`&t=${Date.now()}`:u+=`?t=${Date.now()}`,n.current.src=u,n.current.addEventListener("load",d,{once:!0}),n.current.addEventListener("error",h,{once:!0});return}s+=2,i[s]?(Ne("专辑图",i[s-2],"加载失败,正在尝试下一张",v),n.current.src=i[s],n.current.addEventListener("load",d,{once:!0}),n.current.addEventListener("error",h,{once:!0})):(Ne("专辑图",i[s-2],"加载失败,已无可用图链",v),c(Ov))};return n.current.addEventListener("load",d,{once:!0}),n.current.addEventListener("error",h,{once:!0}),n.current.src=i[s],()=>{n.current.removeEventListener("load",d),n.current.removeEventListener("error",h)}},[i,r]),[l.length>0,n.current,l]}function _L(e,t,o){let[,,n]=h0(e,t,o);return n}function PL(){let[e,t]=ze.useState({});return ze.useCallback(()=>t({}),[])}function Tv(){let e=he(Ft),t=tt(ka),o=tt(Bn),n=tt(Hv);return ze.useCallback(async()=>{n(null),o(null);try{let r=await xv(e);We("已获取到歌词",r),t(r)}catch(r){n(r)}},[e])}var Lo=y(G()),OL=()=>{let e=d0(),t=SL();return(0,Lo.jsxs)(Lo.Fragment,{children:[(0,Lo.jsx)(ct,{order:2,children:"关于"}),(0,Lo.jsx)(oe,{children:"Apple Music-like lyrics"}),(0,Lo.jsx)(oe,{children:Dl}),t&&(0,Lo.jsxs)(oe,{children:["Github 有可用更新:",e]}),(0,Lo.jsx)(oe,{children:"By SteveXMH"}),(0,Lo.jsxs)(bt.Group,{sx:{margin:"8px 0"},orientation:"vertical",children:[(0,Lo.jsx)(bt,{variant:"outline",onClick:()=>{betterncm.ncm.openUrl("https://github.com/Steve-xmh/applemusic-like-lyrics")},children:"Github"}),t&&(0,Lo.jsx)(bt,{variant:"outline",onClick:()=>{betterncm.ncm.openUrl("https://github.com/Steve-xmh/applemusic-like-lyrics/releases/latest")},children:"前往 Github Release 下载最新版本"}),t&&(0,Lo.jsx)(bt,{variant:"outline",onClick:()=>{betterncm.ncm.openUrl("https://ghproxy.com/https://github.com/Steve-xmh/applemusic-like-lyrics/releases/latest")},children:"前往 Github Release 下载最新版本(GHProxy 镜像)"})]})]})};var ck=y(I());var $o=y(G());function RL(){let e=ck.useMemo(()=>Object.keys(loadedPlugins).filter(n=>Vf.includes(n)),[]),t=ck.useMemo(()=>Object.keys(loadedPlugins).includes("RefinedNowPlaying"),[]);return[e,t]}function TL(){let[e,t]=RL();return e.length>0||t}var AL=()=>{let[e,t]=RL();return(0,$o.jsxs)($o.Fragment,{children:[e.length===0?(0,$o.jsx)($o.Fragment,{}):(0,$o.jsxs)(Ws,{sx:{margin:"16px 0"},color:"red",title:"错误:检测到不兼容的插件",children:["检测到与本插件冲突的其它插件,请卸载以下插件,否则本插件有可能不能正常工作:",Vf.map(o=>(0,$o.jsxs)("span",{children:[o," "]},o))]}),t?(0,$o.jsx)(Ws,{sx:{margin:"16px 0"},color:"yellow",title:"错误:检测到不兼容的 RefinedNowPlaying 插件",children:(0,$o.jsx)("div",{children:"AMLL 插件不会主动兼容 RNP 插件,效果和稳定性不做保证"})}):(0,$o.jsx)($o.Fragment,{})]})};var X=y(I());function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(d[c]=i[c]);return d}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}var DV=["size","color","stroke"];function DL(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=Xn(e,DV);return X.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-artboard",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),X.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),X.createElement("rect",{x:8,y:8,width:8,height:8,rx:1}),X.createElement("line",{x1:3,y1:8,x2:4,y2:8}),X.createElement("line",{x1:3,y1:16,x2:4,y2:16}),X.createElement("line",{x1:8,y1:3,x2:8,y2:4}),X.createElement("line",{x1:16,y1:3,x2:16,y2:4}),X.createElement("line",{x1:20,y1:8,x2:21,y2:8}),X.createElement("line",{x1:20,y1:16,x2:21,y2:16}),X.createElement("line",{x1:8,y1:20,x2:8,y2:21}),X.createElement("line",{x1:16,y1:20,x2:16,y2:21}))}var FV=["size","color","stroke"];function FL(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=Xn(e,FV);return X.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-brand-react-native",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),X.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),X.createElement("path",{d:"M6.357 9c-2.637 .68 -4.357 1.845 -4.357 3.175c0 2.107 4.405 3.825 9.85 3.825c.74 0 1.26 -.039 1.95 -.097"}),X.createElement("path",{d:"M9.837 15.9c-.413 -.596 -.806 -1.133 -1.18 -1.8c-2.751 -4.9 -3.488 -9.77 -1.63 -10.873c1.15 -.697 3.047 .253 4.974 2.254"}),X.createElement("path",{d:"M6.429 15.387c-.702 2.688 -.56 4.716 .56 5.395c1.783 1.08 5.387 -1.958 8.043 -6.804c.36 -.67 .683 -1.329 .968 -1.978"}),X.createElement("path",{d:"M12 18.52c1.928 2 3.817 2.95 4.978 2.253c1.85 -1.102 1.121 -5.972 -1.633 -10.873c-.384 -.677 -.777 -1.204 -1.18 -1.8"}),X.createElement("path",{d:"M17.66 15c2.612 -.687 4.34 -1.85 4.34 -3.176c0 -2.11 -4.408 -3.824 -9.845 -3.824c-.747 0 -1.266 .029 -1.955 .087"}),X.createElement("path",{d:"M8 12c.285 -.66 .607 -1.308 .968 -1.978c2.647 -4.844 6.253 -7.89 8.046 -6.801c1.11 .679 1.262 2.706 .56 5.393"}),X.createElement("path",{d:"M12.26 12.015h-.01c-.01 .13 -.12 .24 -.26 .24a0.263 .263 0 0 1 -.25 -.26c0 -.14 .11 -.25 .24 -.25h-.01c.13 -.01 .25 .11 .25 .24"}))}var $V=["size","color","stroke"];function $L(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=Xn(e,$V);return X.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-disc",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),X.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),X.createElement("circle",{cx:12,cy:12,r:9}),X.createElement("circle",{cx:12,cy:12,r:1}),X.createElement("path",{d:"M7 12a5 5 0 0 1 5 -5"}),X.createElement("path",{d:"M12 17a5 5 0 0 0 5 -5"}))}var VV=["size","color","stroke"];function Av(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=Xn(e,VV);return X.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-dots",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),X.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),X.createElement("circle",{cx:5,cy:12,r:1}),X.createElement("circle",{cx:12,cy:12,r:1}),X.createElement("circle",{cx:19,cy:12,r:1}))}var UV=["size","color","stroke"];function VL(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=Xn(e,UV);return X.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-heart-broken",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),X.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),X.createElement("path",{d:"M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"}),X.createElement("path",{d:"M12 6l-2 4l4 3l-2 4v3"}))}var qV=["size","color","stroke"];function UL(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=Xn(e,qV);return X.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-heart",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),X.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),X.createElement("path",{d:"M19.5 12.572l-7.5 7.428l-7.5 -7.428m0 0a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"}))}var GV=["size","color","stroke"];function qL(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=Xn(e,GV);return X.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-mountain",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),X.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),X.createElement("path",{d:"M3 20h18l-6.921 -14.612a2.3 2.3 0 0 0 -4.158 0l-6.921 14.612z"}),X.createElement("path",{d:"M7.5 11l2 2.5l2.5 -2.5l2 3l2.5 -2"}))}var KV=["size","color","stroke"];function GL(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=Xn(e,KV);return X.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-player-skip-forward",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),X.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),X.createElement("path",{d:"M4 5v14l12 -7z"}),X.createElement("line",{x1:20,y1:5,x2:20,y2:19}))}var YV=["size","color","stroke"];function KL(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=Xn(e,YV);return X.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-ripple",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),X.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),X.createElement("path",{d:"M3 7c3 -2 6 -2 9 0s6 2 9 0"}),X.createElement("path",{d:"M3 17c3 -2 6 -2 9 0s6 2 9 0"}),X.createElement("path",{d:"M3 12c3 -2 6 -2 9 0s6 2 9 0"}))}var XV=["size","color","stroke"];function YL(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=Xn(e,XV);return X.createElement("svg",cn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-trash",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),X.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),X.createElement("line",{x1:4,y1:7,x2:20,y2:7}),X.createElement("line",{x1:10,y1:11,x2:10,y2:17}),X.createElement("line",{x1:14,y1:11,x2:14,y2:17}),X.createElement("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),X.createElement("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"}))}var sC=y(I());var wa=y(I());var v0=class{constructor(t){P(this,"_startTime",this.curTime);P(this,"_damper",.9);P(this,"_speed",.7);P(this,"_target",0);P(this,"_position",0);P(this,"_velocity",0);this._position=this._target=t}get curTime(){return Date.now()/1e3}positionVelocity(){let t=this.curTime-this._startTime,o=this._position-this._target;if(this._speed===0)return[this._position,0];if(this._damper<1){let n=Math.sqrt(1-Math.pow(this._damper,2)),r=(this._velocity/this._speed+this._damper*o)/n,a=Math.cos(n*this._speed*t),i=Math.sin(n*this._speed*t),l=Math.pow(Math.E,this._damper*this._speed*t);return[this._target+(o*a+r*i)/l,this._speed*((n*r-this._damper*o)*a-(n*o+this._damper*r)*i)/l]}else{let n=this._velocity/this._speed+o,r=Math.pow(Math.E,this._speed*t);return[this._target+(o+n*this._speed*t)/r,this._speed*(n-o-n*this._speed*t)/r]}}resetTime(){this._startTime=this.curTime}get arrived(){let[t,o]=this.positionVelocity();return Math.abs(Math.round(t*10)-Math.round(this._target*10))2e4){let s=XL.get(o);if(s===void 0&&(s=ZV(e,r.size),XL.set(o,s)),r.count>5e5){let h=0;for(let v of t)h+=(l=s.get(v))!=null?l:r.size;return h*1.01}let d=e.measureText(t);return QV(t,d.width,s,Math.max(.05,1-r.count/2e5),r.size),u0.set(o,{count:r.count+t.length,size:r.size}),d.width}let a=e.measureText(t),i=a.width/t.length;if(((c=r==null?void 0:r.count)!=null?c:0)>2e4)return a.width;if(r===void 0)u0.set(o,{count:t.length,size:i});else{let s=i-r.size,d=t.length/(r.count+t.length),h=r.size+s*d;u0.set(o,{count:r.count+t.length,size:h})}return a.width}function JV(e,t,o,n,r,a,i,l){if(t.length<=1)return t.length;if(ro;){let h=d!==void 0?0:t.lastIndexOf(" ",c-1);h>0?c=h:c--,s=p0(e,t.slice(0,Math.max(0,c)),n,i)}if(t[c]!==" "){let h=0;if(d===void 0)h=t.lastIndexOf(" ",c);else for(let v of d){if(v>c)break;h=v}h>0&&(c=h)}return c}function QL(e,t,o,n,r=!1,a){let i=`${t}_${o}_${n}px`,l=m0.get(i);if(l!==void 0)return l;if(n<=0)return[];let c=[],s=t.split(` -`),d=u0.get(o),h=t.length,v=r&&d!==void 0&&d.count>2e4;for(let u of s){let w=p0(e,u.slice(0,Math.max(0,h)),o,v),k=Math.min(u.length,h);if(w<=n)c.push(u);else{for(;w>n;){let g=JV(e,u,n,o,w,k,v,a),p=u.slice(0,Math.max(0,g));u=u.slice(p.length),c.push(p),w=p0(e,u.slice(0,Math.max(0,h)),o,v),k=Math.min(u.length,h)}w>0&&c.push(u)}}return c=c.map((u,w)=>w===0?u.trimEnd():u.trim()),m0.set(i,c),m0.size>500&&m0.delete(m0.keys().next().value),c}var Dv=class{constructor(t){this.canvas=t;P(this,"disposed",!1);P(this,"frameId",0);P(this,"currentLyrics",[]);P(this,"lineHeight",0);P(this,"currentLyricIndex",0);P(this,"ctx");P(this,"fontSizeValue","");P(this,"onFrame",()=>{this.disposed||this.onUpdateAndDraw()});P(this,"stepUpdateSpringsHandle",0);let o=t.getContext("2d");if(o)this.ctx=o,o.textBaseline="top",o.textAlign="left",o.fontKerning="auto",this.setFontSize(32);else throw new TypeError("你的网易云/系统不支持 Canvas 歌词渲染后端!")}setFontSize(t){let o=this.ctx;this.fontSizeValue=`${t*window.devicePixelRatio}px "PingFang SC"`,o.font=this.fontSizeValue,o.fillStyle="white";let n=o.measureText("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ中文");this.lineHeight=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent,this.updateLayout(),this.shouldRedraw()}setLyric(t){this.currentLyrics=t.map((o,n)=>ke(K({},o),{vSpring:new v0(n),drawTextCache:[],height:0,isOutOfSight:!1})),this.updateLayout(),this.shouldRedraw()}setCurrentLyricIndex(t){this.currentLyricIndex=t;let o=this.currentLyrics[this.currentLyricIndex];o!=null&&o.isOutOfSight?this.updateSprings():this.stepUpdateSprings(),this.shouldRedraw()}updateLayout(){let t=this.canvas.width;this.ctx.font=this.fontSizeValue;for(let o of this.currentLyrics)o.drawTextCache=[...QL(this.ctx,o.originalLyric,this.fontSizeValue,t*.9)],o.drawTextCache.join(` -`).trim().length>0?o.height=this.lineHeight*o.drawTextCache.length+16*window.devicePixelRatio:o.height=0;this.updateSprings(!0)}updateSpringForLine(t,o=!1){let n=this.currentLyrics[t];if(n){let r=t-this.currentLyricIndex,a=Math.abs(r),i=r<0?-1:1,l=0;i===-1&&(l-=n.height);for(let c=i===1?0:1;cthis.stepUpdateSprings(t+o,o))}else{let n=!1;for(let r=0;rthis.stepUpdateSprings(t+Math.floor(o),o+.2)))}}updateSprings(t=!1){for(let o=0;on/-2){i.isOutOfSight=!1;let s=l;for(let d of i.drawTextCache)r.fillText(d,0,s),s+=this.lineHeight}else i.isOutOfSight=!0}t||this.shouldRedraw()}shouldRedraw(){this.frameId||(this.frameId=requestAnimationFrame(this.onFrame))}dispose(){this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=0),this.disposed=!0}};var JL=y(G()),ZL=()=>{let e=wa.useRef(null),t=wa.useRef(null),o=wa.useRef(new ResizeObserver(a=>{let i=a[0];if(i){let l=i.target;if(l){l.width=i.contentRect.width*window.devicePixelRatio,l.height=i.contentRect.height*window.devicePixelRatio;let c=t.current;c&&c.canvas===l&&(c.updateLayout(),c.shouldRedraw())}}})),n=he(Bn),r=he(Yl);return wa.useLayoutEffect(()=>{let a=e.current;if(a){o.current.observe(a);let i=new Dv(a);return n&&i.setLyric(n),t.current=i,()=>{o.current.unobserve(a),i.dispose()}}},[]),wa.useLayoutEffect(()=>{let a=t.current;a&&(n?a.setLyric(n):a.setLyric([]))},[n]),wa.useLayoutEffect(()=>{let a=t.current;a&&n&&a.setCurrentLyricIndex(r)},[r]),(0,JL.jsx)("canvas",{style:{width:"100%",height:"100%",flex:"1",font:"unset"},ref:e})};var It=y(I());var Qn=y(G()),eC=e=>{var r;let t=he(Kl),o=tt(jv),n=eo("forceDynamicLyric",!1);return(0,Qn.jsxs)("div",{onClick:a=>{e.onClickLyric&&e.onClickLyric(e.line,a)},onContextMenu:a=>{o(e.line),a.preventDefault()},className:ql("am-lyric-line",{"am-lyric-line-before":e.offset<0,"am-lyric-line-after":e.offset>0,"am-lyric-line-selected":e.selected,[`am-lyric-line-o${e.offset}`]:Math.abs(e.offset)<5}),children:[e.dynamic&&e.line.dynamicLyric&&e.line.dynamicLyricTime&&(e.selected||n||Math.abs(e.offset)<5)?(0,Qn.jsx)("div",{className:"am-lyric-line-dynamic",children:e.line.dynamicLyric.map((a,i)=>(0,Qn.jsxs)("span",{children:[(0,Qn.jsx)("span",{style:{animationDelay:`${a.time-(e.line.dynamicLyricTime||0)}ms`,animationDuration:`${a.duration}ms`,animationPlayState:t==="pausing"?"paused":void 0},className:"am-lyric-real-word",children:a.word}),(0,Qn.jsx)("span",{style:{animationDelay:`${a.time-(e.line.dynamicLyricTime||0)}ms`,animationDuration:`${a.duration}ms`,animationPlayState:t==="pausing"?"paused":void 0},className:"am-lyric-fake-word",children:a.word})]},`dynamic-word-${a.word}-${i}`))}):(0,Qn.jsx)("div",{className:"am-lyric-line-original",children:((r=e.line.dynamicLyric)==null?void 0:r.map(a=>a.word).join("").trim())||e.line.originalLyric}),(0,Qn.jsx)("div",{className:"am-lyric-line-translated",children:e.translated?e.line.translatedLyric:""}),(0,Qn.jsx)("div",{className:"am-lyric-line-roman",children:e.roman?e.line.romanLyric:""})]})};var Fv={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}},Exponential:{In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}},Back:{In:function(e){return e===1?1:e*e*(2.70158*e-1.70158)},Out:function(e){return e===0?0:--e*e*(2.70158*e+1.70158)+1},InOut:function(e){let t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-Fv.Bounce.Out(1-e)},Out:function(e){return e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375},InOut:function(e){return e<.5?Fv.Bounce.In(e*2)*.5:Fv.Bounce.Out(e*2-1)*.5+.5}},generatePow:function(e=4){return e=e1e4?1e4:e,{In:function(t){return t**e},Out:function(t){return 1-(1-t)**e},InOut:function(t){return t<.5?(t*2)**e/2:(1-(2-t*2)**e)/2+.5}}}},$v=Fv;var f0;typeof self>"u"&&typeof process<"u"&&process.hrtime?f0=function(){let e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?f0=self.performance.now.bind(self.performance):Date.now!==void 0?f0=Date.now:f0=function(){return new Date().getTime()};var ga=f0;var Ea=class{constructor(){P(this,"_tweens",{});P(this,"_tweensAddedDuringUpdate",{})}getAll(){return Object.keys(this._tweens).map(t=>this._tweens[t])}removeAll(){this._tweens={}}add(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t}remove(t){this._tweens[t.getId()]=void 0,this._tweensAddedDuringUpdate[t.getId()]=void 0}update(t=ga(),o=!1){let n=Object.keys(this._tweens);if(n.length===0)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(let r=0;r1?a(e[o],e[o-1],o-n):a(e[r],e[r+1>o?o:r+1],n-r)},Bezier:function(e,t){let o=0,n=e.length-1,r=Math.pow,a=k0.Utils.Bernstein;for(let i=0;i<=n;i++)o+=r(1-t,n-i)*r(t,i)*e[i]*a(n,i);return o},CatmullRom:function(e,t){let o=e.length-1,n=o*t,r=Math.floor(n),a=k0.Utils.CatmullRom;return e[0]===e[o]?(t<0&&(r=Math.floor(n=o*(1+t))),a(e[(r-1+o)%o],e[r],e[(r+1)%o],e[(r+2)%o],n-r)):t<0?e[0]-(a(e[0],e[0],e[1],e[1],-n)-e[0]):t>1?e[o]-(a(e[o],e[o],e[o-1],e[o-1],n-o)-e[o]):a(e[r?r-1:0],e[r],e[o1;n--)o*=n;return e[t]=o,o}}(),CatmullRom:function(e,t,o,n,r){let a=(o-e)*.5,i=(n-t)*.5,l=r*r,c=r*l;return(2*t-2*o+a+i)*c+(-3*t+3*o-2*a-i)*l+a*r+t}}},Vv=k0;var sk=class{static nextId(){return sk._nextId++}},xa=sk;P(xa,"_nextId",0);var w0=new Ea;var dk=class{constructor(t,o=w0){this._object=t;this._group=o;P(this,"_isPaused",!1);P(this,"_pauseStart",0);P(this,"_valuesStart",{});P(this,"_valuesEnd",{});P(this,"_valuesStartRepeat",{});P(this,"_duration",1e3);P(this,"_initialRepeat",0);P(this,"_repeat",0);P(this,"_repeatDelayTime");P(this,"_yoyo",!1);P(this,"_isPlaying",!1);P(this,"_reversed",!1);P(this,"_delayTime",0);P(this,"_startTime",0);P(this,"_easingFunction",$v.Linear.None);P(this,"_interpolationFunction",Vv.Linear);P(this,"_chainedTweens",[]);P(this,"_onStartCallback");P(this,"_onStartCallbackFired",!1);P(this,"_onEveryStartCallback");P(this,"_onEveryStartCallbackFired",!1);P(this,"_onUpdateCallback");P(this,"_onRepeatCallback");P(this,"_onCompleteCallback");P(this,"_onStopCallback");P(this,"_id",xa.nextId());P(this,"_isChainStopped",!1);P(this,"_goToEnd",!1)}getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(t,o){return this._valuesEnd=Object.create(t),o!==void 0&&(this._duration=o),this}duration(t=1e3){return this._duration=t,this}start(t=ga()){var o;if(this._isPlaying)return this;if((o=this._group)==null||o.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(let n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,o,n,r){for(let a in n){let i=t[a],l=Array.isArray(i),c=l?"array":typeof i,s=!l&&Array.isArray(n[a]);if(!(c==="undefined"||c==="function")){if(s){let d=n[a];if(d.length===0)continue;d=d.map(this._handleRelativeValue.bind(this,i)),n[a]=[i].concat(d)}if((c==="object"||l)&&i&&!s){o[a]=l?[]:{};for(let d in i)o[a][d]=i[d];r[a]=l?[]:{},this._setupProperties(i,o[a],n[a],r[a])}else typeof o[a]>"u"&&(o[a]=i),l||(o[a]*=1),s?r[a]=n[a].slice().reverse():r[a]=o[a]||0}}}stop(){var t;return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?((t=this._group)==null||t.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(t=ga()){var o;return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=t,(o=this._group)==null||o.remove(this),this)}resume(t=ga()){var o;return this._isPaused&&this._isPlaying?(this._isPaused=!1,this._startTime+=t-this._pauseStart,this._pauseStart=0,(o=this._group)==null||o.add(this),this):this}stopChainedTweens(){for(let t=0,o=this._chainedTweens.length;ta)return!1;o&&this.start(t)}if(this._goToEnd=!1,t1?1:r;let i=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,i),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let l=0,c=this._chainedTweens.length;l{let t=ui.useRef(null),o=ui.useRef(null),n=ui.useRef(null),r=ui.useRef(null);return ui.useLayoutEffect(()=>{if(t.current&&o.current&&n.current&&e.selected&&e.duration!==0){let a=t.current,i=o.current,l=n.current;a.style.opacity="0.5",i.style.opacity="0.5",l.style.opacity="0.5";let c=new Ea,s=h=>{r.current?(c.update(h),setTimeout(s,100)):c.removeAll()},d=e.duration-750;new g0({o:.5},c).delay(750).to({o:1},d/3).onStart(h=>{a.style.opacity=h.o.toString()}).onUpdate(h=>{a.style.opacity=h.o.toString()}).start(),new g0({o:.5},c).delay(750+d/3).to({o:1},d/3).onStart(h=>{i.style.opacity=h.o.toString()}).onUpdate(h=>{i.style.opacity=h.o.toString()}).start(),new g0({o:.5},c).delay(750+d/3*2).to({o:1},d/3).onStart(h=>{l.style.opacity=h.o.toString()}).onUpdate(h=>{l.style.opacity=h.o.toString()}).start(),r.current=c,setTimeout(s,100)}else r.current&&(r.current.removeAll(),r.current=null);return()=>{r.current&&(r.current.removeAll(),r.current=null)}},[e.selected,e.duration]),e.duration===0?(0,zr.jsx)(zr.Fragment,{}):(0,zr.jsxs)("div",{className:ql("am-lyric-dots",{"am-lyric-dots-selected":e.selected&&e.duration!==0,"am-lyric-line-before":e.offset<0,"am-lyric-line-after":e.offset>0,"am-lyric-line-selected":e.selected,[`am-lyric-line-o${e.offset}`]:Math.abs(e.offset)<5}),children:[(0,zr.jsx)("div",{ref:t}),(0,zr.jsx)("div",{ref:o}),(0,zr.jsx)("div",{ref:n})]})};var eU=typeof Float32Array=="function";function oC(e,t){return 1-3*t+3*e}function nC(e,t){return 3*t-6*e}function rC(e){return 3*e}function Uv(e,t,o){return((oC(t,o)*e+nC(t,o))*e+rC(t))*e}function aC(e,t,o){return 3*oC(t,o)*e*e+2*nC(t,o)*e+rC(t)}function tU(e,t,o,n,r){let a,i,l=0;do i=t+(o-t)/2,a=Uv(i,n,r)-e,a>0?o=i:t=i;while(Math.abs(a)>1e-7&&++l<10);return i}function oU(e,t,o,n){for(let r=0;r<4;++r){let a=aC(t,o,n);if(a===0)return t;let i=Uv(t,o,n)-e;t-=i/a}return t}function nU(e){return e}function hk(e,t,o,n){if(!(0<=e&&e<=1&&0<=o&&o<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&o===n)return nU;let r=eU?new Float32Array(11):new Array(11);for(let i=0;i<11;++i)r[i]=Uv(i*.1,e,o);function a(i){let l=0,c=1,s=11-1;for(;c!==s&&r[c]<=i;++c)l+=.1;--c;let d=(i-r[c])/(r[c+1]-r[c]),h=l+d*.1,v=aC(h,e,o);return v>=.001?oU(i,h,e,o):v===0?h:tU(i,l,l+.1,e,o)}return function(l){return l===0||l===1?l:Uv(a(l),t,n)}}var E0=y(G()),iC=()=>{let e=he(Cv),t=he(Iv),o=he(Bn),n=he(Kl),r=PL(),[a,i]=Zt(Yl),l=It.useRef(null),c=It.useRef(new Set),s=eo("translated-lyric",!0),d=eo("dynamic-lyric",!1),h=eo("roman-lyric",!0),v=eo("alignTopSelectedLyric",!1),u=It.useRef(void 0),w=It.useRef(0),k=It.useRef(0),g=It.useCallback((x=!1)=>{var b;if(l.current){let L=l.current.parentElement,C=a;for(let N of c.current)C>N&&(C=N);let B=l.current.children.item(C);if(B&&L&&(x&&(u.current=void 0),B!==((b=u.current)==null?void 0:b.lyricElement))){let N=function(){let j=0;if(L&&B&&l.current){let T=L.getBoundingClientRect(),H=B.getBoundingClientRect(),_=H.height;j=H.top-T.top,v?B.innerText.trim().length>0?j-=T.height*.1:j-=window.innerHeight*.06+T.height*.1:j-=(window.innerHeight-_)/2;let A=l.current.children.item(f.current);A!=null&&A.classList.contains("am-lyric-dots")&&(j-=A.getBoundingClientRect().height)}return j};if(x){let j=++w.current,T=()=>{if(B&&!u.current&&j===w.current){let H=L.scrollTop,_=N();Math.abs(_)>10&&(L.scrollTo(0,H+_),requestAnimationFrame(T))}};requestAnimationFrame(T)}else{let j=Symbol("scroll-symbol"),T=N(),H=hk(.65,0,.35,1),_=Q=>H(Q),A=750;if(T>0){let Q=C,se=1;for(;;){let ve=l.current.children.item(++Q);if(!ve)break;if(ve.classList.contains("am-lyric-line")){let re=A+se*100,ae=Math.sqrt(T);if(Math.abs(ae)<1)break;let me=[{transform:"translateY(0px)",offset:0,composite:"add"}],le=re/1e3*60/2;for(let ue=0;ue0;Q--)F[Q]-=F[Q-1];F[0]&&(F[0]=0);let $=0,U,ee=0,de=Q=>{var ve;U!=null||(U=Q);let se=Q-U;if(((ve=u.current)==null?void 0:ve.id)===j&&${let x=document.querySelector("a[data-action='max']"),b=()=>{g(!0)},L=()=>{c.current.clear(),c.current.add(a),g(!0)};return xe.addEventListener("lyric-page-open",L),x==null||x.addEventListener("click",L),window.addEventListener("resize",b),()=>{xe.removeEventListener("lyric-page-open",L),x==null||x.removeEventListener("click",L),window.removeEventListener("resize",b)}},[g,a]);let p=It.useCallback((x,b)=>{if(console.log(b.button),b.button===0){if(k.current=0,o){let L=o.findIndex(C=>C===x);c.current.clear(),i(L)}d&&(x.dynamicLyricTime||t=0?(We("正在跳转到歌词时间",(x==null?void 0:x.dynamicLyricTime)||x.time),legacyNativeCmder._envAdapter.callAdapter("audioplayer.seek",()=>{},[e,Qf(e,"seek"),((x==null?void 0:x.dynamicLyricTime)||x.time)/1e3])):x.time=0&&(We("正在跳转到歌词时间",x.time),legacyNativeCmder._envAdapter.callAdapter("audioplayer.seek",()=>{},[e,Qf(e,"seek"),x.time/1e3]))}else if(b.button===2){let L="";d&&x.dynamicLyric?L+=x.dynamicLyric.map(C=>C.word).join(""):L+=x.originalLyric,s&&x.translatedLyric&&(L+=` + `};function z6(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function b6(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}function y6(){let e=document.createElement("style");return e.type="text/css",e.setAttribute("mantine-scroll-lock",""),e}function pp(e,t={disableBodyPadding:!1}){let[o,n]=(0,gr.useState)(e||!1),r=(0,gr.useRef)(0),{disableBodyPadding:a}=t,i=(0,gr.useRef)(null),l=()=>{r.current=window.scrollY;let s=M6({disableBodyPadding:a}),d=y6();z6(d,s),b6(d),i.current=d},c=()=>{!(i!=null&&i.current)||(i.current.parentNode.removeChild(i.current),i.current=null)};return(0,gr.useEffect)(()=>(o?l():c(),c),[o]),(0,gr.useEffect)(()=>{e!==void 0&&n(e)},[e]),(0,gr.useEffect)(()=>{e===void 0&&typeof window<"u"&&window.document.body.style.overflow==="hidden"&&n(!0)},[n]),[o,n]}function lW(){let{userAgent:e}=window.navigator,t=/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i,o=/(Win32)|(Win64)|(Windows)|(WinCE)/i,n=/(iPhone)|(iPad)|(iPod)/i;return t.test(e)?"macos":n.test(e)?"ios":o.test(e)?"windows":/Android/i.test(e)?"android":/Linux/i.test(e)?"linux":"undetermined"}function fp(){return typeof window<"u"?lW():"undetermined"}var _1=y(I());function Ws(e){let t=(0,_1.useRef)();return(0,_1.useEffect)(()=>{t.current=e},[e]),t.current}var O1=y(I());function kp(){let[e,t]=(0,O1.useState)(!1);ti(()=>{t(typeof window<"u"&&"EyeDropper"in window)},[]);let o=(0,O1.useCallback)((n={})=>{if(e)return new window.EyeDropper().open(n)},[e]);return{supported:e,open:o}}function wp(){return`mantine-${Math.random().toString(36).slice(2,11)}`}var R1=y(I());var L6=Object.getOwnPropertySymbols,cW=Object.prototype.hasOwnProperty,sW=Object.prototype.propertyIsEnumerable,dW=(e,t)=>{var o={};for(var n in e)cW.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&L6)for(var n of L6(e))t.indexOf(n)<0&&sW.call(e,n)&&(o[n]=e[n]);return o};function ta(e){let t=e,{m:o,mx:n,my:r,mt:a,mb:i,ml:l,mr:c,p:s,px:d,py:h,pt:v,pb:u,pl:w,pr:k,bg:E,c:p,opacity:m,ff:f,fz:g,fw:M,lts:z,ta:x,lh:b,fs:L,tt:C,td:B,w:N,miw:j,maw:T,h:H,mih:_,mah:A,bgsz:F,bgp:V,bgr:$,bga:U,pos:oe,top:ve,left:J,bottom:he,right:ue,inset:ie,display:le}=t,fe=dW(t,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display"]);return{systemStyles:xs({m:o,mx:n,my:r,mt:a,mb:i,ml:l,mr:c,p:s,px:d,py:h,pt:v,pb:u,pl:w,pr:k,bg:E,c:p,opacity:m,ff:f,fz:g,fw:M,lts:z,ta:x,lh:b,fs:L,tt:C,td:B,w:N,miw:j,maw:T,h:H,mih:_,mah:A,bgsz:F,bgp:V,bgr:$,bga:U,pos:oe,top:ve,left:J,bottom:he,right:ue,inset:ie,display:le}),rest:fe}}function hW(e,t){let o=Object.keys(e).filter(n=>n!=="base").sort((n,r)=>t.fn.size({size:n,sizes:t.breakpoints})-t.fn.size({size:r,sizes:t.breakpoints}));return"base"in e?["base",...o]:o}function C6({value:e,theme:t,getValue:o,property:n}){if(e==null)return;if(typeof e=="object")return hW(e,t).reduce((i,l)=>{if(l==="base"&&e.base!==void 0){let s=o(e.base,t);return Array.isArray(n)?(n.forEach(d=>{i[d]=s}),i):(i[n]=s,i)}let c=o(e[l],t);return Array.isArray(n)?(i[t.fn.largerThan(l)]={},n.forEach(s=>{i[t.fn.largerThan(l)][s]=c}),i):(i[t.fn.largerThan(l)]={[n]:c},i)},{});let r=o(e,t);return Array.isArray(n)?n.reduce((a,i)=>(a[i]=r,a),{}):{[n]:r}}function I6(e,t){return e==="dimmed"?t.colorScheme==="dark"?t.colors.dark[2]:t.colors.gray[6]:t.fn.variant({variant:"filled",color:e,primaryFallback:!1}).background}function N6(e){return e}function B6(e,t){return t.fn.size({size:e,sizes:t.fontSizes})}var vW=["-xs","-sm","-md","-lg","-xl"];function j6(e,t){return vW.includes(e)?t.fn.size({size:e.replace("-",""),sizes:t.spacing})*-1:t.fn.size({size:e,sizes:t.spacing})}var H6={color:I6,default:N6,fontSize:B6,spacing:j6};var W6={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},mx:{type:"spacing",property:["marginRight","marginLeft"]},my:{type:"spacing",property:["marginTop","marginBottom"]},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},px:{type:"spacing",property:["paddingRight","paddingLeft"]},py:{type:"spacing",property:["paddingTop","paddingBottom"]},bg:{type:"color",property:"background"},c:{type:"color",property:"color"},opacity:{type:"default",property:"opacity"},ff:{type:"default",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"default",property:"fontWeight"},lts:{type:"default",property:"letterSpacing"},ta:{type:"default",property:"textAlign"},lh:{type:"default",property:"lineHeight"},fs:{type:"default",property:"fontStyle"},tt:{type:"default",property:"textTransform"},td:{type:"default",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"default",property:"background-size"},bgp:{type:"default",property:"background-position"},bgr:{type:"default",property:"background-repeat"},bga:{type:"default",property:"background-attachment"},pos:{type:"default",property:"position"},top:{type:"default",property:"top"},left:{type:"default",property:"left"},bottom:{type:"default",property:"bottom"},right:{type:"default",property:"right"},inset:{type:"default",property:"inset"},display:{type:"default",property:"display"}};var mW=Object.defineProperty,S6=Object.getOwnPropertySymbols,uW=Object.prototype.hasOwnProperty,pW=Object.prototype.propertyIsEnumerable,_6=(e,t,o)=>t in e?mW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,O6=(e,t)=>{for(var o in t||(t={}))uW.call(t,o)&&_6(e,o,t[o]);if(S6)for(var o of S6(t))pW.call(t,o)&&_6(e,o,t[o]);return e};function Ss(e,t,o=W6){return Object.keys(o).reduce((r,a)=>(a in e&&e[a]!==void 0&&r.push(C6({value:e[a],getValue:H6[o[a].type],property:o[a].property,theme:t})),r),[]).reduce((r,a)=>(Object.keys(a).forEach(i=>{typeof a[i]=="object"&&a[i]!==null&&i in r?r[i]=O6(O6({},r[i]),a[i]):r[i]=a[i]}),r),{})}function P6(e,t){return typeof e=="function"?e(t):e}function R6(e,t,o){let n=je(),{css:r,cx:a}=zs();return Array.isArray(e)?a(o,r(Ss(t,n)),e.map(i=>r(P6(i,n)))):a(o,r(P6(e,n)),r(Ss(t,n)))}var fW=Object.defineProperty,P1=Object.getOwnPropertySymbols,A6=Object.prototype.hasOwnProperty,D6=Object.prototype.propertyIsEnumerable,T6=(e,t,o)=>t in e?fW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,kW=(e,t)=>{for(var o in t||(t={}))A6.call(t,o)&&T6(e,o,t[o]);if(P1)for(var o of P1(t))D6.call(t,o)&&T6(e,o,t[o]);return e},wW=(e,t)=>{var o={};for(var n in e)A6.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&P1)for(var n of P1(e))t.indexOf(n)<0&&D6.call(e,n)&&(o[n]=e[n]);return o},F6=(0,R1.forwardRef)((e,t)=>{var o=e,{className:n,component:r,style:a,sx:i}=o,l=wW(o,["className","component","style","sx"]);let{systemStyles:c,rest:s}=ta(l),d=r||"div";return R1.default.createElement(d,kW({ref:t,className:R6(i,c,n),style:a},s))});F6.displayName="@mantine/core/Box";var D=F6;var A1=y(I());var EW=Object.defineProperty,gW=Object.defineProperties,xW=Object.getOwnPropertyDescriptors,$6=Object.getOwnPropertySymbols,MW=Object.prototype.hasOwnProperty,zW=Object.prototype.propertyIsEnumerable,V6=(e,t,o)=>t in e?EW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,U6=(e,t)=>{for(var o in t||(t={}))MW.call(t,o)&&V6(e,o,t[o]);if($6)for(var o of $6(t))zW.call(t,o)&&V6(e,o,t[o]);return e},bW=(e,t)=>gW(e,xW(t)),yW=W(e=>({root:bW(U6(U6({},e.fn.focusStyles()),e.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:e.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,textDecoration:"none",boxSizing:"border-box"})})),q6=yW;var LW=Object.defineProperty,T1=Object.getOwnPropertySymbols,K6=Object.prototype.hasOwnProperty,X6=Object.prototype.propertyIsEnumerable,G6=(e,t,o)=>t in e?LW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,CW=(e,t)=>{for(var o in t||(t={}))K6.call(t,o)&&G6(e,o,t[o]);if(T1)for(var o of T1(t))X6.call(t,o)&&G6(e,o,t[o]);return e},IW=(e,t)=>{var o={};for(var n in e)K6.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&T1)for(var n of T1(e))t.indexOf(n)<0&&X6.call(e,n)&&(o[n]=e[n]);return o},Y6=(0,A1.forwardRef)((e,t)=>{let o=S("UnstyledButton",{},e),{className:n,component:r="button",unstyled:a}=o,i=IW(o,["className","component","unstyled"]),{classes:l,cx:c}=q6(null,{name:"UnstyledButton",unstyled:a});return A1.default.createElement(D,CW({component:r,ref:t,className:c(l.root,n),type:r==="button"?"button":void 0},i))});Y6.displayName="@mantine/core/UnstyledButton";var El=Y6;var _s=y(I());var NW=Object.defineProperty,BW=Object.defineProperties,jW=Object.getOwnPropertyDescriptors,Q6=Object.getOwnPropertySymbols,HW=Object.prototype.hasOwnProperty,WW=Object.prototype.propertyIsEnumerable,Z6=(e,t,o)=>t in e?NW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,J6=(e,t)=>{for(var o in t||(t={}))HW.call(t,o)&&Z6(e,o,t[o]);if(Q6)for(var o of Q6(t))WW.call(t,o)&&Z6(e,o,t[o]);return e},SW=(e,t)=>BW(e,jW(t)),gl={xs:18,sm:22,md:28,lg:34,xl:44};function _W({variant:e,theme:t,color:o,gradient:n}){let r=t.fn.variant({color:o,variant:e,gradient:n});return e==="gradient"?{border:0,backgroundImage:r.background,color:r.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:J6({border:`1px solid ${r.border}`,backgroundColor:r.background,color:r.color},t.fn.hover({backgroundColor:r.hover}))}var OW=W((e,{color:t,size:o,radius:n,variant:r,gradient:a})=>({root:SW(J6({},_W({variant:r,theme:e,color:t,gradient:a})),{position:"relative",height:e.fn.size({size:o,sizes:gl}),minHeight:e.fn.size({size:o,sizes:gl}),width:e.fn.size({size:o,sizes:gl}),minWidth:e.fn.size({size:o,sizes:gl}),borderRadius:e.fn.radius(n),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center","&:active":e.activeStyles,"&:disabled, &[data-disabled]":{color:e.colors.gray[e.colorScheme==="dark"?6:4],cursor:"not-allowed",backgroundColor:r==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),borderColor:r==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(n),cursor:"not-allowed"}}})})),ex=OW;var ux=y(I());var Dt=y(I()),PW=Object.defineProperty,D1=Object.getOwnPropertySymbols,ox=Object.prototype.hasOwnProperty,nx=Object.prototype.propertyIsEnumerable,tx=(e,t,o)=>t in e?PW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,RW=(e,t)=>{for(var o in t||(t={}))ox.call(t,o)&&tx(e,o,t[o]);if(D1)for(var o of D1(t))nx.call(t,o)&&tx(e,o,t[o]);return e},TW=(e,t)=>{var o={};for(var n in e)ox.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&D1)for(var n of D1(e))t.indexOf(n)<0&&nx.call(e,n)&&(o[n]=e[n]);return o};function rx(e){var t=e,{size:o,color:n}=t,r=TW(t,["size","color"]);return Dt.default.createElement("svg",RW({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:n,width:`${o}px`},r),Dt.default.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},Dt.default.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),Dt.default.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),Dt.default.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},Dt.default.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),Dt.default.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),Dt.default.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},Dt.default.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),Dt.default.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),Dt.default.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},Dt.default.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),Dt.default.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),Dt.default.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},Dt.default.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),Dt.default.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}var ai=y(I()),AW=Object.defineProperty,F1=Object.getOwnPropertySymbols,ix=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,ax=(e,t,o)=>t in e?AW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,DW=(e,t)=>{for(var o in t||(t={}))ix.call(t,o)&&ax(e,o,t[o]);if(F1)for(var o of F1(t))lx.call(t,o)&&ax(e,o,t[o]);return e},FW=(e,t)=>{var o={};for(var n in e)ix.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&F1)for(var n of F1(e))t.indexOf(n)<0&&lx.call(e,n)&&(o[n]=e[n]);return o};function cx(e){var t=e,{size:o,color:n}=t,r=FW(t,["size","color"]);return ai.default.createElement("svg",DW({width:`${o}px`,height:`${o}px`,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:n},r),ai.default.createElement("g",{fill:"none",fillRule:"evenodd"},ai.default.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},ai.default.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),ai.default.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},ai.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))}var Ln=y(I()),$W=Object.defineProperty,$1=Object.getOwnPropertySymbols,dx=Object.prototype.hasOwnProperty,hx=Object.prototype.propertyIsEnumerable,sx=(e,t,o)=>t in e?$W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,VW=(e,t)=>{for(var o in t||(t={}))dx.call(t,o)&&sx(e,o,t[o]);if($1)for(var o of $1(t))hx.call(t,o)&&sx(e,o,t[o]);return e},UW=(e,t)=>{var o={};for(var n in e)dx.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&$1)for(var n of $1(e))t.indexOf(n)<0&&hx.call(e,n)&&(o[n]=e[n]);return o};function vx(e){var t=e,{size:o,color:n}=t,r=UW(t,["size","color"]);return Ln.default.createElement("svg",VW({width:`${o}px`,height:`${o/4}px`,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n},r),Ln.default.createElement("circle",{cx:"15",cy:"15",r:"15"},Ln.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),Ln.default.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),Ln.default.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},Ln.default.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),Ln.default.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),Ln.default.createElement("circle",{cx:"105",cy:"15",r:"15"},Ln.default.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),Ln.default.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var qW=Object.defineProperty,V1=Object.getOwnPropertySymbols,px=Object.prototype.hasOwnProperty,fx=Object.prototype.propertyIsEnumerable,mx=(e,t,o)=>t in e?qW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,GW=(e,t)=>{for(var o in t||(t={}))px.call(t,o)&&mx(e,o,t[o]);if(V1)for(var o of V1(t))fx.call(t,o)&&mx(e,o,t[o]);return e},KW=(e,t)=>{var o={};for(var n in e)px.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&V1)for(var n of V1(e))t.indexOf(n)<0&&fx.call(e,n)&&(o[n]=e[n]);return o},Ep={bars:rx,oval:cx,dots:vx},XW={xs:18,sm:22,md:36,lg:44,xl:58},YW={size:"md"};function an(e){let t=S("Loader",YW,e),{size:o,color:n,variant:r}=t,a=KW(t,["size","color","variant"]),i=je(),l=r in Ep?r:i.loader;return ux.default.createElement(D,GW({role:"presentation",component:Ep[l]||Ep.bars,size:i.fn.size({size:o,sizes:XW}),color:i.fn.variant({variant:"filled",primaryFallback:!1,color:n||i.primaryColor}).background},a))}an.displayName="@mantine/core/Loader";var QW=Object.defineProperty,U1=Object.getOwnPropertySymbols,Ex=Object.prototype.hasOwnProperty,gx=Object.prototype.propertyIsEnumerable,kx=(e,t,o)=>t in e?QW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,wx=(e,t)=>{for(var o in t||(t={}))Ex.call(t,o)&&kx(e,o,t[o]);if(U1)for(var o of U1(t))gx.call(t,o)&&kx(e,o,t[o]);return e},ZW=(e,t)=>{var o={};for(var n in e)Ex.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&U1)for(var n of U1(e))t.indexOf(n)<0&&gx.call(e,n)&&(o[n]=e[n]);return o},JW={color:"gray",size:"md",variant:"subtle",loading:!1},xx=(0,_s.forwardRef)((e,t)=>{let o=S("ActionIcon",JW,e),{className:n,color:r,children:a,radius:i,size:l,variant:c,gradient:s,disabled:d,loaderProps:h,loading:v,unstyled:u}=o,w=ZW(o,["className","color","children","radius","size","variant","gradient","disabled","loaderProps","loading","unstyled"]),{classes:k,cx:E,theme:p}=ex({size:l,radius:i,color:r,variant:c,gradient:s},{name:"ActionIcon",unstyled:u}),m=p.fn.variant({color:r,variant:c}),f=_s.default.createElement(an,wx({color:m.color,size:p.fn.size({size:l,sizes:gl})-12},h));return _s.default.createElement(El,wx({className:E(k.root,n),ref:t,disabled:d,"data-disabled":d||void 0,"data-loading":v||void 0,unstyled:u},w),v?f:a)});xx.displayName="@mantine/core/ActionIcon";var ln=xx;var q1=y(I());var xl=y(I()),Mx=y(Qa());function gp(e){let{children:t,target:o,className:n}=S("Portal",{},e),r=je(),[a,i]=(0,xl.useState)(!1),l=(0,xl.useRef)();return ti(()=>(i(!0),l.current=o?typeof o=="string"?document.querySelector(o):o:document.createElement("div"),o||document.body.appendChild(l.current),()=>{!o&&document.body.removeChild(l.current)}),[o]),a?(0,Mx.createPortal)(xl.default.createElement("div",{className:n,dir:r.dir},t),l.current):null}gp.displayName="@mantine/core/Portal";var eS=Object.defineProperty,G1=Object.getOwnPropertySymbols,bx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable,zx=(e,t,o)=>t in e?eS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,tS=(e,t)=>{for(var o in t||(t={}))bx.call(t,o)&&zx(e,o,t[o]);if(G1)for(var o of G1(t))yx.call(t,o)&&zx(e,o,t[o]);return e},oS=(e,t)=>{var o={};for(var n in e)bx.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&G1)for(var n of G1(e))t.indexOf(n)<0&&yx.call(e,n)&&(o[n]=e[n]);return o};function Os(e){var t=e,{withinPortal:o=!0,children:n}=t,r=oS(t,["withinPortal","children"]);return o?q1.default.createElement(gp,tS({},r),n):q1.default.createElement(q1.default.Fragment,null,n)}Os.displayName="@mantine/core/OptionalPortal";var Cn=y(I());var nS=Object.defineProperty,rS=Object.defineProperties,aS=Object.getOwnPropertyDescriptors,Lx=Object.getOwnPropertySymbols,iS=Object.prototype.hasOwnProperty,lS=Object.prototype.propertyIsEnumerable,Cx=(e,t,o)=>t in e?nS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,xp=(e,t)=>{for(var o in t||(t={}))iS.call(t,o)&&Cx(e,o,t[o]);if(Lx)for(var o of Lx(t))lS.call(t,o)&&Cx(e,o,t[o]);return e},Ix=(e,t)=>rS(e,aS(t));function cS({variant:e,color:t,theme:o}){if(e==="filled")return{backgroundColor:o.fn.variant({variant:"filled",color:t}).background,color:o.white};if(e==="outline"){let r=o.fn.variant({variant:"outline",color:t});return{color:r.color,borderColor:r.border,backgroundColor:o.colorScheme==="dark"?o.colors.dark[6]:o.white}}let n=o.fn.variant({variant:"light",color:t});return{backgroundColor:n.background,color:n.color}}var sS=W((e,{color:t,radius:o,variant:n})=>({root:xp(Ix(xp({},e.fn.fontStyles()),{position:"relative",overflow:"hidden",padding:`${e.spacing.sm}px ${e.spacing.md}px`,borderRadius:e.fn.radius(o),border:"1px solid transparent"}),cS({variant:n,color:t,theme:e})),wrapper:{display:"flex"},body:{flex:1},title:{boxSizing:"border-box",margin:0,marginBottom:7,display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,fontWeight:700,"&[data-with-close-button]":{paddingRight:e.spacing.md}},label:{display:"block",overflow:"hidden",textOverflow:"ellipsis"},icon:{lineHeight:1,width:20,height:20,display:"flex",alignItems:"center",justifyContent:"flex-start",marginRight:e.spacing.md,marginTop:1},message:Ix(xp({},e.fn.fontStyles()),{lineHeight:e.lineHeight,textOverflow:"ellipsis",overflow:"hidden",fontSize:e.fontSizes.sm,color:n==="filled"?e.white:e.colorScheme==="dark"?n==="light"?e.white:e.colors.dark[0]:e.black}),closeButton:{position:"absolute",top:e.spacing.sm,right:e.spacing.sm,color:"inherit"}})),Nx=sS;var Ps=y(I());var Mp=y(I()),dS=Object.defineProperty,Bx=Object.getOwnPropertySymbols,hS=Object.prototype.hasOwnProperty,vS=Object.prototype.propertyIsEnumerable,jx=(e,t,o)=>t in e?dS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,mS=(e,t)=>{for(var o in t||(t={}))hS.call(t,o)&&jx(e,o,t[o]);if(Bx)for(var o of Bx(t))vS.call(t,o)&&jx(e,o,t[o]);return e};function zp(e){return Mp.default.createElement("svg",mS({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Mp.default.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}zp.displayName="@mantine/core/CloseIcon";var uS=Object.defineProperty,K1=Object.getOwnPropertySymbols,Wx=Object.prototype.hasOwnProperty,Sx=Object.prototype.propertyIsEnumerable,Hx=(e,t,o)=>t in e?uS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,pS=(e,t)=>{for(var o in t||(t={}))Wx.call(t,o)&&Hx(e,o,t[o]);if(K1)for(var o of K1(t))Sx.call(t,o)&&Hx(e,o,t[o]);return e},fS=(e,t)=>{var o={};for(var n in e)Wx.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&K1)for(var n of K1(e))t.indexOf(n)<0&&Sx.call(e,n)&&(o[n]=e[n]);return o},kS={xs:12,sm:14,md:16,lg:20,xl:24},wS={size:"md"},_x=(0,Ps.forwardRef)((e,t)=>{let o=S("CloseButton",wS,e),{iconSize:n,size:r="md"}=o,a=fS(o,["iconSize","size"]),i=je(),l=n||i.fn.size({size:r,sizes:kS});return Ps.default.createElement(ln,pS({size:r,ref:t},a),Ps.default.createElement(zp,{width:l,height:l}))});_x.displayName="@mantine/core/CloseButton";var oa=_x;var ES=Object.defineProperty,X1=Object.getOwnPropertySymbols,Px=Object.prototype.hasOwnProperty,Rx=Object.prototype.propertyIsEnumerable,Ox=(e,t,o)=>t in e?ES(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,gS=(e,t)=>{for(var o in t||(t={}))Px.call(t,o)&&Ox(e,o,t[o]);if(X1)for(var o of X1(t))Rx.call(t,o)&&Ox(e,o,t[o]);return e},xS=(e,t)=>{var o={};for(var n in e)Px.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&X1)for(var n of X1(e))t.indexOf(n)<0&&Rx.call(e,n)&&(o[n]=e[n]);return o},MS={variant:"light"},Rs=(0,Cn.forwardRef)((e,t)=>{let o=S("Alert",MS,e),{id:n,className:r,title:a,variant:i,children:l,color:c,classNames:s,icon:d,styles:h,onClose:v,radius:u,withCloseButton:w,closeButtonLabel:k,unstyled:E}=o,p=xS(o,["id","className","title","variant","children","color","classNames","icon","styles","onClose","radius","withCloseButton","closeButtonLabel","unstyled"]),{classes:m,cx:f}=Nx({color:c,radius:u,variant:i},{classNames:s,styles:h,unstyled:E,name:"Alert"}),g=Do(n),M=a&&`${g}-title`,z=`${g}-body`;return Cn.default.createElement(D,gS({id:g,role:"alert","aria-labelledby":M,"aria-describedby":z,className:f(m.root,m[i],r),ref:t},p),Cn.default.createElement("div",{className:m.wrapper},d&&Cn.default.createElement("div",{className:m.icon},d),Cn.default.createElement("div",{className:m.body},a&&Cn.default.createElement("div",{className:m.title,"data-with-close-button":w||void 0},Cn.default.createElement("span",{id:M,className:m.label},a)),w&&Cn.default.createElement(oa,{className:m.closeButton,onClick:v,variant:"transparent",size:16,iconSize:16,"aria-label":k}),Cn.default.createElement("div",{id:z,className:m.message},l))))});Rs.displayName="@mantine/core/Alert";var Q1=y(I());var zS=Object.defineProperty,bS=Object.defineProperties,yS=Object.getOwnPropertyDescriptors,Tx=Object.getOwnPropertySymbols,LS=Object.prototype.hasOwnProperty,CS=Object.prototype.propertyIsEnumerable,Ax=(e,t,o)=>t in e?zS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ts=(e,t)=>{for(var o in t||(t={}))LS.call(t,o)&&Ax(e,o,t[o]);if(Tx)for(var o of Tx(t))CS.call(t,o)&&Ax(e,o,t[o]);return e},IS=(e,t)=>bS(e,yS(t));function NS({underline:e,strikethrough:t}){let o=[];return e&&o.push("underline"),t&&o.push("line-through"),o.length>0?o.join(" "):"none"}function BS({theme:e,color:t,variant:o}){return t==="dimmed"?e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]:typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?e.fn.variant({variant:"filled",color:t}).background:o==="link"?e.colors[e.primaryColor][e.colorScheme==="dark"?4:7]:t||"inherit"}function jS(e){return typeof e=="number"?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:null}function HS(e){return e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:null}var WS=W((e,{color:t,variant:o,size:n,lineClamp:r,truncate:a,inline:i,inherit:l,underline:c,gradient:s,weight:d,transform:h,align:v,strikethrough:u,italic:w})=>{let k=e.fn.variant({variant:"gradient",gradient:s});return{root:Ts(IS(Ts(Ts(Ts(Ts({},e.fn.fontStyles()),e.fn.focusStyles()),jS(r)),HS(a)),{color:BS({color:t,theme:e,variant:o}),fontFamily:l?"inherit":e.fontFamily,fontSize:l||n===void 0?"inherit":e.fn.size({size:n,sizes:e.fontSizes}),lineHeight:l?"inherit":i?1:e.lineHeight,textDecoration:NS({underline:c,strikethrough:u}),WebkitTapHighlightColor:"transparent",fontWeight:l?"inherit":d,textTransform:h,textAlign:v,fontStyle:w?"italic":void 0}),e.fn.hover(o==="link"&&c===void 0?{textDecoration:"underline"}:void 0)),gradient:{backgroundImage:k.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}}),Dx=WS;var SS=Object.defineProperty,Y1=Object.getOwnPropertySymbols,$x=Object.prototype.hasOwnProperty,Vx=Object.prototype.propertyIsEnumerable,Fx=(e,t,o)=>t in e?SS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,_S=(e,t)=>{for(var o in t||(t={}))$x.call(t,o)&&Fx(e,o,t[o]);if(Y1)for(var o of Y1(t))Vx.call(t,o)&&Fx(e,o,t[o]);return e},OS=(e,t)=>{var o={};for(var n in e)$x.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Y1)for(var n of Y1(e))t.indexOf(n)<0&&Vx.call(e,n)&&(o[n]=e[n]);return o},PS={variant:"text"},Ux=(0,Q1.forwardRef)((e,t)=>{let o=S("Text",PS,e),{className:n,size:r,weight:a,transform:i,color:l,align:c,variant:s,lineClamp:d,truncate:h,gradient:v,inline:u,inherit:w,underline:k,strikethrough:E,italic:p,classNames:m,styles:f,unstyled:g,span:M}=o,z=OS(o,["className","size","weight","transform","color","align","variant","lineClamp","truncate","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span"]),{classes:x,cx:b}=Dx({variant:s,color:l,size:r,lineClamp:d,truncate:h,inline:u,inherit:w,underline:k,strikethrough:E,italic:p,weight:a,transform:i,align:c,gradient:v},{unstyled:g,name:"Text"});return Q1.default.createElement(D,_S({ref:t,className:b(x.root,{[x.gradient]:s==="gradient"},n),component:M?"span":"div"},z))});Ux.displayName="@mantine/core/Text";var re=Ux;var qn=y(I());var As=y(I());var Z1={xs:1,sm:2,md:3,lg:4,xl:5};function J1(e,t){let o=e.fn.variant({variant:"outline",color:t}).border;return typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?o:t===void 0?e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]:t}var RS=W((e,{size:t,variant:o,color:n})=>({root:{},withLabel:{borderTop:"0 !important"},left:{"&::before":{display:"none"}},right:{"&::after":{display:"none"}},label:{display:"flex",alignItems:"center","&::before":{content:'""',flex:1,height:1,borderTop:`${e.fn.size({size:t,sizes:Z1})}px ${o} ${J1(e,n)}`,marginRight:e.spacing.xs},"&::after":{content:'""',flex:1,borderTop:`${e.fn.size({size:t,sizes:Z1})}px ${o} ${J1(e,n)}`,marginLeft:e.spacing.xs}},labelDefaultStyles:{color:n==="dark"?e.colors.dark[1]:e.fn.themeColor(n,e.colorScheme==="dark"?5:e.fn.primaryShade(),!1)},horizontal:{border:0,borderTopWidth:e.fn.size({size:t,sizes:Z1}),borderTopColor:J1(e,n),borderTopStyle:o,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:e.fn.size({size:t,sizes:Z1}),borderLeftColor:J1(e,n),borderLeftStyle:o}})),qx=RS;var TS=Object.defineProperty,AS=Object.defineProperties,DS=Object.getOwnPropertyDescriptors,ed=Object.getOwnPropertySymbols,Xx=Object.prototype.hasOwnProperty,Yx=Object.prototype.propertyIsEnumerable,Gx=(e,t,o)=>t in e?TS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Kx=(e,t)=>{for(var o in t||(t={}))Xx.call(t,o)&&Gx(e,o,t[o]);if(ed)for(var o of ed(t))Yx.call(t,o)&&Gx(e,o,t[o]);return e},FS=(e,t)=>AS(e,DS(t)),$S=(e,t)=>{var o={};for(var n in e)Xx.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&ed)for(var n of ed(e))t.indexOf(n)<0&&Yx.call(e,n)&&(o[n]=e[n]);return o},VS={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},td=(0,As.forwardRef)((e,t)=>{let o=S("Divider",VS,e),{className:n,color:r,orientation:a,size:i,label:l,labelPosition:c,labelProps:s,variant:d,styles:h,classNames:v,unstyled:u}=o,w=$S(o,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),{classes:k,cx:E}=qx({color:r,size:i,variant:d},{classNames:v,styles:h,unstyled:u,name:"Divider"}),p=a==="vertical",m=a==="horizontal",f=!!l&&m,g=!(s!=null&&s.color);return As.default.createElement(D,Kx({ref:t,className:E(k.root,{[k.vertical]:p,[k.horizontal]:m,[k.withLabel]:f},n),role:"separator"},w),f&&As.default.createElement(re,FS(Kx({},s),{size:(s==null?void 0:s.size)||"xs",sx:{marginTop:2},className:E(k.label,k[c],{[k.labelDefaultStyles]:g})}),l))});td.displayName="@mantine/core/Divider";var US=Object.defineProperty,qS=Object.defineProperties,GS=Object.getOwnPropertyDescriptors,Qx=Object.getOwnPropertySymbols,KS=Object.prototype.hasOwnProperty,XS=Object.prototype.propertyIsEnumerable,Zx=(e,t,o)=>t in e?US(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Jx=(e,t)=>{for(var o in t||(t={}))KS.call(t,o)&&Zx(e,o,t[o]);if(Qx)for(var o of Qx(t))XS.call(t,o)&&Zx(e,o,t[o]);return e},YS=(e,t)=>qS(e,GS(t)),QS=W((e,{size:t})=>({item:YS(Jx({},e.fn.fontStyles()),{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`${e.fn.size({size:t,sizes:e.spacing})/1.5}px ${e.fn.size({size:t,sizes:e.spacing})}px`,cursor:"pointer",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,borderRadius:e.fn.radius(),"&[data-hovered]":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[1]},"&[data-selected]":Jx({backgroundColor:e.fn.variant({variant:"filled"}).background,color:e.fn.variant({variant:"filled"}).color},e.fn.hover({backgroundColor:e.fn.variant({variant:"filled"}).hover})),"&[data-disabled]":{cursor:"default",color:e.colors.dark[2]}}),nothingFound:{boxSizing:"border-box",color:e.colors.gray[6],paddingTop:e.fn.size({size:t,sizes:e.spacing})/2,paddingBottom:e.fn.size({size:t,sizes:e.spacing})/2,textAlign:"center"},separator:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`${e.fn.size({size:t,sizes:e.spacing})/1.5}px ${e.fn.size({size:t,sizes:e.spacing})}px`},separatorLabel:{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}})),e8=QS;var ZS=Object.defineProperty,t8=Object.getOwnPropertySymbols,JS=Object.prototype.hasOwnProperty,e_=Object.prototype.propertyIsEnumerable,o8=(e,t,o)=>t in e?ZS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,t_=(e,t)=>{for(var o in t||(t={}))JS.call(t,o)&&o8(e,o,t[o]);if(t8)for(var o of t8(t))e_.call(t,o)&&o8(e,o,t[o]);return e};function bp({data:e,hovered:t,classNames:o,styles:n,isItemSelected:r,uuid:a,__staticSelector:i,onItemHover:l,onItemSelect:c,itemsRefs:s,itemComponent:d,size:h,nothingFound:v,creatable:u,createLabel:w,unstyled:k}){let{classes:E}=e8({size:h},{classNames:o,styles:n,unstyled:k,name:i}),p=[],m=[],f=null,g=(z,x)=>{let b=typeof r=="function"?r(z.value):!1;return qn.default.createElement(d,t_({key:z.value,className:E.item,"data-disabled":z.disabled||void 0,"data-hovered":!z.disabled&&t===x||void 0,"data-selected":!z.disabled&&b||void 0,onMouseEnter:()=>l(x),id:`${a}-${x}`,role:"option",tabIndex:-1,"aria-selected":t===x,ref:L=>{s&&s.current&&(s.current[z.value]=L)},onMouseDown:z.disabled?null:L=>{L.preventDefault(),c(z)},disabled:z.disabled},z))},M=null;if(e.forEach((z,x)=>{z.creatable?f=x:z.group?(M!==z.group&&(M=z.group,m.push(qn.default.createElement("div",{className:E.separator,key:`__mantine-divider-${x}`},qn.default.createElement(td,{classNames:{label:E.separatorLabel},label:z.group})))),m.push(g(z,x))):p.push(g(z,x))}),u){let z=e[f];p.push(qn.default.createElement("div",{key:wp(),className:E.item,"data-hovered":t===f||void 0,onMouseEnter:()=>l(f),onMouseDown:x=>{x.preventDefault(),c(z)},tabIndex:-1,ref:x=>{s&&s.current&&(s.current[z.value]=x)}},w))}return m.length>0&&p.length>0&&p.unshift(qn.default.createElement("div",{className:E.separator,key:"empty-group-separator"},qn.default.createElement(td,null))),m.length>0||p.length>0?qn.default.createElement(qn.default.Fragment,null,m,p):qn.default.createElement(re,{size:h,unstyled:k,className:E.nothingFound},v)}bp.displayName="@mantine/core/SelectItems";var nd=y(I()),o_=Object.defineProperty,od=Object.getOwnPropertySymbols,r8=Object.prototype.hasOwnProperty,a8=Object.prototype.propertyIsEnumerable,n8=(e,t,o)=>t in e?o_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,n_=(e,t)=>{for(var o in t||(t={}))r8.call(t,o)&&n8(e,o,t[o]);if(od)for(var o of od(t))a8.call(t,o)&&n8(e,o,t[o]);return e},r_=(e,t)=>{var o={};for(var n in e)r8.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&od)for(var n of od(e))t.indexOf(n)<0&&a8.call(e,n)&&(o[n]=e[n]);return o},yp=(0,nd.forwardRef)((e,t)=>{var o=e,{label:n,value:r}=o,a=r_(o,["label","value"]);return nd.default.createElement("div",n_({ref:t},a),n||r)});yp.displayName="@mantine/core/DefaultItem";var Sl=y(I());var hd=y(I());var Ft=y(I());var R=y(I());var Ml=y(I()),s_=y(Qa());var Ye=y(I());var i8=y(I());function a_(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Lp(...e){return t=>e.forEach(o=>a_(o,t))}function xr(...e){return(0,i8.useCallback)(Lp(...e),e)}var Ip=(0,Ye.forwardRef)((e,t)=>{let i=e,{children:o}=i,n=xe(i,["children"]),r=Ye.Children.toArray(o),a=r.find(l_);if(a){let l=a.props.children,c=r.map(s=>s===a?Ye.Children.count(l)>1?Ye.Children.only(null):(0,Ye.isValidElement)(l)?l.props.children:null:s);return(0,Ye.createElement)(Cp,Ne({},n,{ref:t}),(0,Ye.isValidElement)(l)?(0,Ye.cloneElement)(l,void 0,c):null)}return(0,Ye.createElement)(Cp,Ne({},n,{ref:t}),o)});Ip.displayName="Slot";var Cp=(0,Ye.forwardRef)((e,t)=>{let r=e,{children:o}=r,n=xe(r,["children"]);return(0,Ye.isValidElement)(o)?(0,Ye.cloneElement)(o,ge(Y({},c_(n,o.props)),{ref:Lp(t,o.ref)})):Ye.Children.count(o)>1?Ye.Children.only(null):null});Cp.displayName="SlotClone";var i_=({children:e})=>(0,Ye.createElement)(Ye.Fragment,null,e);function l_(e){return(0,Ye.isValidElement)(e)&&e.type===i_}function c_(e,t){let o=Y({},t);for(let n in t){let r=e[n],a=t[n];/^on[A-Z]/.test(n)?r&&a?o[n]=(...l)=>{a(...l),r(...l)}:r&&(o[n]=r):n==="style"?o[n]=Y(Y({},r),a):n==="className"&&(o[n]=[r,a].filter(Boolean).join(" "))}return Y(Y({},e),o)}var d_=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],zl=d_.reduce((e,t)=>{let o=(0,Ml.forwardRef)((n,r)=>{let c=n,{asChild:a}=c,i=xe(c,["asChild"]),l=a?Ip:t;return(0,Ml.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,Ml.createElement)(l,Ne({},i,{ref:r}))});return o.displayName=`Primitive.${t}`,ge(Y({},e),{[t]:o})},{});var Zt=y(I()),c8=y(Qa());var l8=y(I()),Ds=Boolean(globalThis==null?void 0:globalThis.document)?l8.useLayoutEffect:()=>{};function h_(e,t){return(0,Zt.useReducer)((o,n)=>{let r=t[o][n];return r!=null?r:o},e)}var bl=e=>{let{present:t,children:o}=e,n=v_(t),r=typeof o=="function"?o({present:n.isPresent}):Zt.Children.only(o),a=xr(n.ref,r.ref);return typeof o=="function"||n.isPresent?(0,Zt.cloneElement)(r,{ref:a}):null};bl.displayName="Presence";function v_(e){let[t,o]=(0,Zt.useState)(),n=(0,Zt.useRef)({}),r=(0,Zt.useRef)(e),a=(0,Zt.useRef)("none"),i=e?"mounted":"unmounted",[l,c]=h_(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,Zt.useEffect)(()=>{let s=rd(n.current);a.current=l==="mounted"?s:"none"},[l]),Ds(()=>{let s=n.current,d=r.current;if(d!==e){let v=a.current,u=rd(s);e?c("MOUNT"):u==="none"||(s==null?void 0:s.display)==="none"?c("UNMOUNT"):c(d&&v!==u?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),Ds(()=>{if(t){let s=h=>{let u=rd(n.current).includes(h.animationName);h.target===t&&u&&(0,c8.flushSync)(()=>c("ANIMATION_END"))},d=h=>{h.target===t&&(a.current=rd(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,Zt.useCallback)(s=>{s&&(n.current=getComputedStyle(s)),o(s)},[])}}function rd(e){return(e==null?void 0:e.animationName)||"none"}var In=y(I());function s8(e,t=[]){let o=[];function n(a,i){let l=(0,In.createContext)(i),c=o.length;o=[...o,i];function s(h){let p=h,{scope:v,children:u}=p,w=xe(p,["scope","children"]),k=(v==null?void 0:v[e][c])||l,E=(0,In.useMemo)(()=>w,Object.values(w));return(0,In.createElement)(k.Provider,{value:E},u)}function d(h,v){let u=(v==null?void 0:v[e][c])||l,w=(0,In.useContext)(u);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${a}\``)}return s.displayName=a+"Provider",[s,d]}let r=()=>{let a=o.map(i=>(0,In.createContext)(i));return function(l){let c=(l==null?void 0:l[e])||a;return(0,In.useMemo)(()=>({[`__scope${e}`]:ge(Y({},l),{[e]:c})}),[l,c])}};return r.scopeName=e,[n,m_(r,...t)]}function m_(...e){let t=e[0];if(e.length===1)return t;let o=()=>{let n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){let i=n.reduce((l,{useScope:c,scopeName:s})=>{let h=c(a)[`__scope${s}`];return Y(Y({},l),h)},{});return(0,In.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return o.scopeName=t.scopeName,o}var yl=y(I());function na(e){let t=(0,yl.useRef)(e);return(0,yl.useEffect)(()=>{t.current=e}),(0,yl.useMemo)(()=>(...o)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...o)},[])}var Fs=y(I()),u_=(0,Fs.createContext)(void 0);function d8(e){let t=(0,Fs.useContext)(u_);return e||t||"ltr"}function h8(e,[t,o]){return Math.min(o,Math.max(t,e))}function ra(e,t,{checkForDefaultPrevented:o=!0}={}){return function(r){if(e==null||e(r),o===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function p_(e,t){return(0,R.useReducer)((o,n)=>{let r=t[o][n];return r!=null?r:o},e)}var m8="ScrollArea",[u8,$J]=s8(m8),[f_,cn]=u8(m8),k_=(0,R.forwardRef)((e,t)=>{let B=e,{__scopeScrollArea:o,type:n="hover",dir:r,scrollHideDelay:a=600}=B,i=xe(B,["__scopeScrollArea","type","dir","scrollHideDelay"]),[l,c]=(0,R.useState)(null),[s,d]=(0,R.useState)(null),[h,v]=(0,R.useState)(null),[u,w]=(0,R.useState)(null),[k,E]=(0,R.useState)(null),[p,m]=(0,R.useState)(0),[f,g]=(0,R.useState)(0),[M,z]=(0,R.useState)(!1),[x,b]=(0,R.useState)(!1),L=xr(t,N=>c(N)),C=d8(r);return(0,R.createElement)(f_,{scope:o,type:n,dir:C,scrollHideDelay:a,scrollArea:l,viewport:s,onViewportChange:d,content:h,onContentChange:v,scrollbarX:u,onScrollbarXChange:w,scrollbarXEnabled:M,onScrollbarXEnabledChange:z,scrollbarY:k,onScrollbarYChange:E,scrollbarYEnabled:x,onScrollbarYEnabledChange:b,onCornerWidthChange:m,onCornerHeightChange:g},(0,R.createElement)(zl.div,Ne({dir:C},i,{ref:L,style:Y({position:"relative",["--radix-scroll-area-corner-width"]:p+"px",["--radix-scroll-area-corner-height"]:f+"px"},e.style)})))}),w_="ScrollAreaViewport",E_=(0,R.forwardRef)((e,t)=>{let c=e,{__scopeScrollArea:o,children:n}=c,r=xe(c,["__scopeScrollArea","children"]),a=cn(w_,o),i=(0,R.useRef)(null),l=xr(t,i,a.onViewportChange);return(0,R.createElement)(R.Fragment,null,(0,R.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,R.createElement)(zl.div,Ne({"data-radix-scroll-area-viewport":""},r,{ref:l,style:Y({overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden"},e.style)}),(0,R.createElement)("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),Mr="ScrollAreaScrollbar",g_=(0,R.forwardRef)((e,t)=>{let c=e,{forceMount:o}=c,n=xe(c,["forceMount"]),r=cn(Mr,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=r,l=e.orientation==="horizontal";return(0,R.useEffect)(()=>(l?a(!0):i(!0),()=>{l?a(!1):i(!1)}),[l,a,i]),r.type==="hover"?(0,R.createElement)(x_,Ne({},n,{ref:t,forceMount:o})):r.type==="scroll"?(0,R.createElement)(M_,Ne({},n,{ref:t,forceMount:o})):r.type==="auto"?(0,R.createElement)(p8,Ne({},n,{ref:t,forceMount:o})):r.type==="always"?(0,R.createElement)(Bp,Ne({},n,{ref:t})):null}),x_=(0,R.forwardRef)((e,t)=>{let l=e,{forceMount:o}=l,n=xe(l,["forceMount"]),r=cn(Mr,e.__scopeScrollArea),[a,i]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{let c=r.scrollArea,s=0;if(c){let d=()=>{window.clearTimeout(s),i(!0)},h=()=>{s=window.setTimeout(()=>i(!1),r.scrollHideDelay)};return c.addEventListener("pointerenter",d),c.addEventListener("pointerleave",h),()=>{window.clearTimeout(s),c.removeEventListener("pointerenter",d),c.removeEventListener("pointerleave",h)}}},[r.scrollArea,r.scrollHideDelay]),(0,R.createElement)(bl,{present:o||a},(0,R.createElement)(p8,Ne({"data-state":a?"visible":"hidden"},n,{ref:t})))}),M_=(0,R.forwardRef)((e,t)=>{let s=e,{forceMount:o}=s,n=xe(s,["forceMount"]),r=cn(Mr,e.__scopeScrollArea),a=e.orientation==="horizontal",i=ld(()=>c("SCROLL_END"),100),[l,c]=p_("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return(0,R.useEffect)(()=>{if(l==="idle"){let d=window.setTimeout(()=>c("HIDE"),r.scrollHideDelay);return()=>window.clearTimeout(d)}},[l,r.scrollHideDelay,c]),(0,R.useEffect)(()=>{let d=r.viewport,h=a?"scrollLeft":"scrollTop";if(d){let v=d[h],u=()=>{let w=d[h];v!==w&&(c("SCROLL"),i()),v=w};return d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[r.viewport,a,c,i]),(0,R.createElement)(bl,{present:o||l!=="hidden"},(0,R.createElement)(Bp,Ne({"data-state":l==="hidden"?"hidden":"visible"},n,{ref:t,onPointerEnter:ra(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:ra(e.onPointerLeave,()=>c("POINTER_LEAVE"))})))}),p8=(0,R.forwardRef)((e,t)=>{let o=cn(Mr,e.__scopeScrollArea),s=e,{forceMount:n}=s,r=xe(s,["forceMount"]),[a,i]=(0,R.useState)(!1),l=e.orientation==="horizontal",c=ld(()=>{if(o.viewport){let d=o.viewport.offsetWidth{let v=e,{orientation:o="vertical"}=v,n=xe(v,["orientation"]),r=cn(Mr,e.__scopeScrollArea),a=(0,R.useRef)(null),i=(0,R.useRef)(0),[l,c]=(0,R.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),s=E8(l.viewport,l.content),d=ge(Y({},n),{sizes:l,onSizesChange:c,hasThumb:Boolean(s>0&&s<1),onThumbChange:u=>a.current=u,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:u=>i.current=u});function h(u,w){return B_(u,i.current,l,w)}return o==="horizontal"?(0,R.createElement)(z_,Ne({},d,{ref:t,onThumbPositionChange:()=>{if(r.viewport&&a.current){let u=r.viewport.scrollLeft,w=v8(u,l,r.dir);a.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:u=>{r.viewport&&(r.viewport.scrollLeft=u)},onDragScroll:u=>{r.viewport&&(r.viewport.scrollLeft=h(u,r.dir))}})):o==="vertical"?(0,R.createElement)(b_,Ne({},d,{ref:t,onThumbPositionChange:()=>{if(r.viewport&&a.current){let u=r.viewport.scrollTop,w=v8(u,l);a.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:u=>{r.viewport&&(r.viewport.scrollTop=u)},onDragScroll:u=>{r.viewport&&(r.viewport.scrollTop=h(u))}})):null}),z_=(0,R.forwardRef)((e,t)=>{let d=e,{sizes:o,onSizesChange:n}=d,r=xe(d,["sizes","onSizesChange"]),a=cn(Mr,e.__scopeScrollArea),[i,l]=(0,R.useState)(),c=(0,R.useRef)(null),s=xr(t,c,a.onScrollbarXChange);return(0,R.useEffect)(()=>{c.current&&l(getComputedStyle(c.current))},[c]),(0,R.createElement)(k8,Ne({"data-orientation":"horizontal"},r,{ref:s,sizes:o,style:Y({bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,["--radix-scroll-area-thumb-width"]:id(o)+"px"},e.style),onThumbPointerDown:h=>e.onThumbPointerDown(h.x),onDragScroll:h=>e.onDragScroll(h.x),onWheelScroll:(h,v)=>{if(a.viewport){let u=a.viewport.scrollLeft+h.deltaX;e.onWheelScroll(u),x8(u,v)&&h.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:ad(i.paddingLeft),paddingEnd:ad(i.paddingRight)}})}}))}),b_=(0,R.forwardRef)((e,t)=>{let d=e,{sizes:o,onSizesChange:n}=d,r=xe(d,["sizes","onSizesChange"]),a=cn(Mr,e.__scopeScrollArea),[i,l]=(0,R.useState)(),c=(0,R.useRef)(null),s=xr(t,c,a.onScrollbarYChange);return(0,R.useEffect)(()=>{c.current&&l(getComputedStyle(c.current))},[c]),(0,R.createElement)(k8,Ne({"data-orientation":"vertical"},r,{ref:s,sizes:o,style:Y({top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)",["--radix-scroll-area-thumb-height"]:id(o)+"px"},e.style),onThumbPointerDown:h=>e.onThumbPointerDown(h.y),onDragScroll:h=>e.onDragScroll(h.y),onWheelScroll:(h,v)=>{if(a.viewport){let u=a.viewport.scrollTop+h.deltaY;e.onWheelScroll(u),x8(u,v)&&h.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:ad(i.paddingTop),paddingEnd:ad(i.paddingBottom)}})}}))}),[y_,f8]=u8(Mr),k8=(0,R.forwardRef)((e,t)=>{let L=e,{__scopeScrollArea:o,sizes:n,hasThumb:r,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:s,onWheelScroll:d,onResize:h}=L,v=xe(L,["__scopeScrollArea","sizes","hasThumb","onThumbChange","onThumbPointerUp","onThumbPointerDown","onThumbPositionChange","onDragScroll","onWheelScroll","onResize"]),u=cn(Mr,o),[w,k]=(0,R.useState)(null),E=xr(t,C=>k(C)),p=(0,R.useRef)(null),m=(0,R.useRef)(""),f=u.viewport,g=n.content-n.viewport,M=na(d),z=na(c),x=ld(h,10);function b(C){if(p.current){let B=C.clientX-p.current.left,N=C.clientY-p.current.top;s({x:B,y:N})}}return(0,R.useEffect)(()=>{let C=B=>{let N=B.target;(w==null?void 0:w.contains(N))&&M(B,g)};return document.addEventListener("wheel",C,{passive:!1}),()=>document.removeEventListener("wheel",C,{passive:!1})},[f,w,g,M]),(0,R.useEffect)(z,[n,z]),Ll(w,x),Ll(u.content,x),(0,R.createElement)(y_,{scope:o,scrollbar:w,hasThumb:r,onThumbChange:na(a),onThumbPointerUp:na(i),onThumbPositionChange:z,onThumbPointerDown:na(l)},(0,R.createElement)(zl.div,Ne({},v,{ref:E,style:Y({position:"absolute"},v.style),onPointerDown:ra(e.onPointerDown,C=>{C.button===0&&(C.target.setPointerCapture(C.pointerId),p.current=w.getBoundingClientRect(),m.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b(C))}),onPointerMove:ra(e.onPointerMove,b),onPointerUp:ra(e.onPointerUp,C=>{let B=C.target;B.hasPointerCapture(C.pointerId)&&B.releasePointerCapture(C.pointerId),document.body.style.webkitUserSelect=m.current,p.current=null})})))}),Np="ScrollAreaThumb",L_=(0,R.forwardRef)((e,t)=>{let a=e,{forceMount:o}=a,n=xe(a,["forceMount"]),r=f8(Np,e.__scopeScrollArea);return(0,R.createElement)(bl,{present:o||r.hasThumb},(0,R.createElement)(C_,Ne({ref:t},n)))}),C_=(0,R.forwardRef)((e,t)=>{let h=e,{__scopeScrollArea:o,style:n}=h,r=xe(h,["__scopeScrollArea","style"]),a=cn(Np,o),i=f8(Np,o),{onThumbPositionChange:l}=i,c=xr(t,v=>i.onThumbChange(v)),s=(0,R.useRef)(),d=ld(()=>{s.current&&(s.current(),s.current=void 0)},100);return(0,R.useEffect)(()=>{let v=a.viewport;if(v){let u=()=>{if(d(),!s.current){let w=j_(v,l);s.current=w,l()}};return l(),v.addEventListener("scroll",u),()=>v.removeEventListener("scroll",u)}},[a.viewport,d,l]),(0,R.createElement)(zl.div,Ne({"data-state":i.hasThumb?"visible":"hidden"},r,{ref:c,style:Y({width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)"},n),onPointerDownCapture:ra(e.onPointerDownCapture,v=>{let w=v.target.getBoundingClientRect(),k=v.clientX-w.left,E=v.clientY-w.top;i.onThumbPointerDown({x:k,y:E})}),onPointerUp:ra(e.onPointerUp,i.onThumbPointerUp)}))}),w8="ScrollAreaCorner",I_=(0,R.forwardRef)((e,t)=>{let o=cn(w8,e.__scopeScrollArea),n=Boolean(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&n?(0,R.createElement)(N_,Ne({},e,{ref:t})):null}),N_=(0,R.forwardRef)((e,t)=>{let d=e,{__scopeScrollArea:o}=d,n=xe(d,["__scopeScrollArea"]),r=cn(w8,o),[a,i]=(0,R.useState)(0),[l,c]=(0,R.useState)(0),s=Boolean(a&&l);return Ll(r.scrollbarX,()=>{var h;let v=((h=r.scrollbarX)===null||h===void 0?void 0:h.offsetHeight)||0;r.onCornerHeightChange(v),c(v)}),Ll(r.scrollbarY,()=>{var h;let v=((h=r.scrollbarY)===null||h===void 0?void 0:h.offsetWidth)||0;r.onCornerWidthChange(v),i(v)}),s?(0,R.createElement)(zl.div,Ne({},n,{ref:t,style:Y({width:a,height:l,position:"absolute",right:r.dir==="ltr"?0:void 0,left:r.dir==="rtl"?0:void 0,bottom:0},e.style)})):null});function ad(e){return e?parseInt(e,10):0}function E8(e,t){let o=e/t;return isNaN(o)?0:o}function id(e){let t=E8(e.viewport,e.content),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-o)*t;return Math.max(n,18)}function B_(e,t,o,n="ltr"){let r=id(o),a=r/2,i=t||a,l=r-i,c=o.scrollbar.paddingStart+i,s=o.scrollbar.size-o.scrollbar.paddingEnd-l,d=o.content-o.viewport,h=n==="ltr"?[0,d]:[d*-1,0];return g8([c,s],h)(e)}function v8(e,t,o="ltr"){let n=id(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-r,i=t.content-t.viewport,l=a-n,c=o==="ltr"?[0,i]:[i*-1,0],s=h8(e,c);return g8([0,i],[0,l])(s)}function g8(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function x8(e,t){return e>0&&e{})=>{let o={left:e.scrollLeft,top:e.scrollTop},n=0;return function r(){let a={left:e.scrollLeft,top:e.scrollTop},i=o.left!==a.left,l=o.top!==a.top;(i||l)&&t(),o=a,n=window.requestAnimationFrame(r)}(),()=>window.cancelAnimationFrame(n)};function ld(e,t){let o=na(e),n=(0,R.useRef)(0);return(0,R.useEffect)(()=>()=>window.clearTimeout(n.current),[]),(0,R.useCallback)(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(o,t)},[o,t])}function Ll(e,t){let o=na(t);Ds(()=>{let n=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(o)});return r.observe(e),()=>{window.cancelAnimationFrame(n),r.unobserve(e)}}},[e,o])}var M8=k_,z8=E_,jp=g_,Hp=L_,b8=I_;var W_=W((e,{scrollbarSize:t,offsetScrollbars:o,scrollbarHovered:n,hidden:r},a)=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:o?t:void 0,paddingBottom:o?t:void 0},scrollbar:{display:r?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:t/5,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[8]:e.colors.gray[0],[`& .${a("thumb")}`]:{backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.5):e.fn.rgba(e.black,.5)}},'&[data-orientation="vertical"]':{width:t},'&[data-orientation="horizontal"]':{flexDirection:"column",height:t},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:a("thumb"),flex:1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.4):e.fn.rgba(e.black,.4),borderRadius:t,position:"relative",transition:"background-color 150ms ease",display:r?"none":void 0,overflow:"hidden","&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:44,minHeight:44}},corner:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],transition:"opacity 150ms ease",opacity:n?1:0,display:r?"none":void 0}})),y8=W_;var S_=Object.defineProperty,__=Object.defineProperties,O_=Object.getOwnPropertyDescriptors,cd=Object.getOwnPropertySymbols,C8=Object.prototype.hasOwnProperty,I8=Object.prototype.propertyIsEnumerable,L8=(e,t,o)=>t in e?S_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Wp=(e,t)=>{for(var o in t||(t={}))C8.call(t,o)&&L8(e,o,t[o]);if(cd)for(var o of cd(t))I8.call(t,o)&&L8(e,o,t[o]);return e},N8=(e,t)=>__(e,O_(t)),B8=(e,t)=>{var o={};for(var n in e)C8.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&cd)for(var n of cd(e))t.indexOf(n)<0&&I8.call(e,n)&&(o[n]=e[n]);return o},j8={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},sd=(0,Ft.forwardRef)((e,t)=>{let o=S("ScrollArea",j8,e),{children:n,className:r,classNames:a,styles:i,scrollbarSize:l,scrollHideDelay:c,type:s,dir:d,offsetScrollbars:h,viewportRef:v,onScrollPositionChange:u,unstyled:w,viewportProps:k}=o,E=B8(o,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","viewportProps"]),[p,m]=(0,Ft.useState)(!1),f=je(),{classes:g,cx:M}=y8({scrollbarSize:l,offsetScrollbars:h,scrollbarHovered:p,hidden:s==="never"},{name:"ScrollArea",classNames:a,styles:i,unstyled:w});return Ft.default.createElement(M8,{type:s==="never"?"always":s,scrollHideDelay:c,dir:d||f.dir,ref:t,asChild:!0},Ft.default.createElement(D,Wp({className:M(g.root,r)},E),Ft.default.createElement(z8,N8(Wp({},k),{className:g.viewport,ref:v,onScroll:typeof u=="function"?({currentTarget:z})=>u({x:z.scrollLeft,y:z.scrollTop}):void 0}),n),Ft.default.createElement(jp,{orientation:"horizontal",className:g.scrollbar,forceMount:!0,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},Ft.default.createElement(Hp,{className:g.thumb})),Ft.default.createElement(jp,{orientation:"vertical",className:g.scrollbar,forceMount:!0,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)},Ft.default.createElement(Hp,{className:g.thumb})),Ft.default.createElement(b8,{className:g.corner})))}),H8=(0,Ft.forwardRef)((e,t)=>{let o=S("ScrollAreaAutosize",j8,e),{maxHeight:n,children:r,classNames:a,styles:i,scrollbarSize:l,scrollHideDelay:c,type:s,dir:d,offsetScrollbars:h,viewportRef:v,onScrollPositionChange:u,unstyled:w,sx:k}=o,E=B8(o,["maxHeight","children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx"]);return Ft.default.createElement(D,N8(Wp({},E),{ref:t,sx:[{display:"flex",maxHeight:n},...zo(k)]}),Ft.default.createElement(D,{sx:{display:"flex",flexDirection:"column",flex:1}},Ft.default.createElement(sd,{classNames:a,styles:i,scrollHideDelay:c,scrollbarSize:l,type:s,dir:d,offsetScrollbars:h,viewportRef:v,onScrollPositionChange:u,unstyled:w},r)))});H8.displayName="@mantine/core/ScrollAreaAutosize";sd.displayName="@mantine/core/ScrollArea";sd.Autosize=H8;var $s=sd;var P_=Object.defineProperty,R_=Object.defineProperties,T_=Object.getOwnPropertyDescriptors,dd=Object.getOwnPropertySymbols,_8=Object.prototype.hasOwnProperty,O8=Object.prototype.propertyIsEnumerable,W8=(e,t,o)=>t in e?P_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,S8=(e,t)=>{for(var o in t||(t={}))_8.call(t,o)&&W8(e,o,t[o]);if(dd)for(var o of dd(t))O8.call(t,o)&&W8(e,o,t[o]);return e},A_=(e,t)=>R_(e,T_(t)),D_=(e,t)=>{var o={};for(var n in e)_8.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&dd)for(var n of dd(e))t.indexOf(n)<0&&O8.call(e,n)&&(o[n]=e[n]);return o},Vs=(0,hd.forwardRef)((e,t)=>{var o=e,{style:n}=o,r=D_(o,["style"]);return hd.default.createElement($s,A_(S8({},r),{style:S8({width:"100%"},n),viewportRef:t}),r.children)});Vs.displayName="@mantine/core/SelectScrollArea";var F_=W(()=>({dropdown:{},itemsWrapper:{padding:4,display:"flex",width:"100%",boxSizing:"border-box"}})),P8=F_;var Kn=y(I());function Il(e){return e.split("-")[1]}function Op(e){return e==="y"?"height":"width"}function Nn(e){return e.split("-")[0]}function ii(e){return["top","bottom"].includes(Nn(e))?"x":"y"}function R8(e,t,o){let{reference:n,floating:r}=e,a=n.x+n.width/2-r.width/2,i=n.y+n.height/2-r.height/2,l=ii(t),c=Op(l),s=n[c]/2-r[c]/2,d=l==="x",h;switch(Nn(t)){case"top":h={x:a,y:n.y-r.height};break;case"bottom":h={x:a,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:i};break;case"left":h={x:n.x-r.width,y:i};break;default:h={x:n.x,y:n.y}}switch(Il(t)){case"start":h[l]-=s*(o&&d?-1:1);break;case"end":h[l]+=s*(o&&d?-1:1)}return h}var T8=async(e,t,o)=>{let{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:i}=o,l=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t)),s=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:h}=R8(s,n,c),v=n,u={},w=0;for(let k=0;k({name:"arrow",options:e,async fn(t){let{element:o,padding:n=0}=e||{},{x:r,y:a,placement:i,rects:l,platform:c}=t;if(o==null)return{};let s=Pp(n),d={x:r,y:a},h=ii(i),v=Op(h),u=await c.getDimensions(o),w=h==="y"?"top":"left",k=h==="y"?"bottom":"right",E=l.reference[v]+l.reference[h]-d[h]-l.floating[v],p=d[h]-l.reference[h],m=await(c.getOffsetParent==null?void 0:c.getOffsetParent(o)),f=m?h==="y"?m.clientHeight||0:m.clientWidth||0:0;f===0&&(f=l.floating[v]);let g=E/2-p/2,M=s[w],z=f-u[v]-s[k],x=f/2-u[v]/2+g,b=_p(M,x,z),L=Il(i)!=null&&x!=b&&l.reference[v]/2-(xe.concat(t,t+"-start",t+"-end"),[]),V_={left:"right",right:"left",bottom:"top",top:"bottom"};function vd(e){return e.replace(/left|right|bottom|top/g,t=>V_[t])}function U_(e,t,o){o===void 0&&(o=!1);let n=Il(e),r=ii(e),a=Op(r),i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=vd(i)),{main:i,cross:vd(i)}}var q_={start:"end",end:"start"};function Sp(e){return e.replace(/start|end/g,t=>q_[t])}var Rp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o;let{placement:n,middlewareData:r,rects:a,initialPlacement:i,platform:l,elements:c}=t,C=e,{mainAxis:s=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:w=!0}=C,k=xe(C,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]),E=Nn(n),p=Nn(i)===i,m=await(l.isRTL==null?void 0:l.isRTL(c.floating)),f=h||(p||!w?[vd(i)]:function(B){let N=vd(B);return[Sp(B),N,Sp(N)]}(i));h||u==="none"||f.push(...function(B,N,j,T){let H=Il(B),_=function(A,F,V){let $=["left","right"],U=["right","left"],oe=["top","bottom"],ve=["bottom","top"];switch(A){case"top":case"bottom":return V?F?U:$:F?$:U;case"left":case"right":return F?oe:ve;default:return[]}}(Nn(B),j==="start",T);return H&&(_=_.map(A=>A+"-"+H),N&&(_=_.concat(_.map(Sp)))),_}(i,w,u,m));let g=[i,...f],M=await Us(t,k),z=[],x=((o=r.flip)==null?void 0:o.overflows)||[];if(s&&z.push(M[E]),d){let{main:B,cross:N}=U_(n,a,m);z.push(M[B],M[N])}if(x=[...x,{placement:n,overflows:z}],!z.every(B=>B<=0)){var b;let B=(((b=r.flip)==null?void 0:b.index)||0)+1,N=g[B];if(N)return{data:{index:B,overflows:x},reset:{placement:N}};let j="bottom";switch(v){case"bestFit":{var L;let T=(L=x.map(H=>[H,H.overflows.filter(_=>_>0).reduce((_,A)=>_+A,0)]).sort((H,_)=>H[1]-_[1])[0])==null?void 0:L[0].placement;T&&(j=T);break}case"initialPlacement":j=i}if(n!==j)return{reset:{placement:j}}}return{}}}};var Tp=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){let{placement:o,elements:n,rects:r,platform:a,strategy:i}=t,{padding:l=2,x:c,y:s}=e,d=Cl(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:r.reference,offsetParent:await(a.getOffsetParent==null?void 0:a.getOffsetParent(n.floating)),strategy:i}):r.reference),h=await(a.getClientRects==null?void 0:a.getClientRects(n.reference))||[],v=Pp(l),u=await a.getElementRects({reference:{getBoundingClientRect:function(){if(h.length===2&&h[0].left>h[1].right&&c!=null&&s!=null)return h.find(w=>c>w.left-v.left&&cw.top-v.top&&s=2){if(ii(o)==="x"){let g=h[0],M=h[h.length-1],z=Nn(o)==="top",x=g.top,b=M.bottom,L=z?g.left:M.left,C=z?g.right:M.right;return{top:x,bottom:b,left:L,right:C,width:C-L,height:b-x,x:L,y:x}}let w=Nn(o)==="left",k=aa(...h.map(g=>g.right)),E=A8(...h.map(g=>g.left)),p=h.filter(g=>w?g.left===E:g.right===k),m=p[0].top,f=p[p.length-1].bottom;return{top:m,bottom:f,left:E,right:k,width:k-E,height:f-m,x:E,y:m}}return d}},floating:n.floating,strategy:i});return r.reference.x!==u.reference.x||r.reference.y!==u.reference.y||r.reference.width!==u.reference.width||r.reference.height!==u.reference.height?{reset:{rects:u}}:{}}}},ud=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){let{x:o,y:n}=t,r=await async function(a,i){let{placement:l,platform:c,elements:s}=a,d=await(c.isRTL==null?void 0:c.isRTL(s.floating)),h=Nn(l),v=Il(l),u=ii(l)==="x",w=["left","top"].includes(h)?-1:1,k=d&&u?-1:1,E=typeof i=="function"?i(a):i,{mainAxis:p,crossAxis:m,alignmentAxis:f}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:Y({mainAxis:0,crossAxis:0,alignmentAxis:null},E);return v&&typeof f=="number"&&(m=v==="end"?-1*f:f),u?{x:m*k,y:p*w}:{x:p*w,y:m*k}}(t,e);return{x:o+r.x,y:n+r.y,data:r}}}};function D8(e){return e==="x"?"y":"x"}var Ap=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:r}=t,E=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:p=>{let{x:m,y:f}=p;return{x:m,y:f}}}}=E,c=xe(E,["mainAxis","crossAxis","limiter"]),s={x:o,y:n},d=await Us(t,c),h=ii(Nn(r)),v=D8(h),u=s[h],w=s[v];if(a){let p=h==="y"?"bottom":"right";u=_p(u+d[h==="y"?"top":"left"],u,u-d[p])}if(i){let p=v==="y"?"bottom":"right";w=_p(w+d[v==="y"?"top":"left"],w,w-d[p])}let k=l.fn(ge(Y({},t),{[h]:u,[v]:w}));return ge(Y({},k),{data:{x:k.x-o,y:k.y-n}})}}},Dp=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:o,y:n,placement:r,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:s=!0}=e,d={x:o,y:n},h=ii(r),v=D8(h),u=d[h],w=d[v],k=typeof l=="function"?l(t):l,E=typeof k=="number"?{mainAxis:k,crossAxis:0}:Y({mainAxis:0,crossAxis:0},k);if(c){let f=h==="y"?"height":"width",g=a.reference[h]-a.floating[f]+E.mainAxis,M=a.reference[h]+a.reference[f]-E.mainAxis;uM&&(u=M)}if(s){var p,m;let f=h==="y"?"width":"height",g=["top","left"].includes(Nn(r)),M=a.reference[v]-a.floating[f]+(g&&((p=i.offset)==null?void 0:p[v])||0)+(g?0:E.crossAxis),z=a.reference[v]+a.reference[f]+(g?0:((m=i.offset)==null?void 0:m[v])||0)-(g?E.crossAxis:0);wz&&(w=z)}return{[h]:u,[v]:w}}}},Fp=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:o,rects:n,platform:r,elements:a}=t,f=e,{apply:i=()=>{}}=f,l=xe(f,["apply"]),c=await Us(t,l),s=Nn(o),d=Il(o),h,v;s==="top"||s==="bottom"?(h=s,v=d===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(v=s,h=d==="end"?"top":"bottom");let u=aa(c.left,0),w=aa(c.right,0),k=aa(c.top,0),E=aa(c.bottom,0),p={availableHeight:n.floating.height-(["left","right"].includes(o)?2*(k!==0||E!==0?k+E:aa(c.top,c.bottom)):c[h]),availableWidth:n.floating.width-(["top","bottom"].includes(o)?2*(u!==0||w!==0?u+w:aa(c.left,c.right)):c[v])};await i(Y(Y({},t),p));let m=await r.getDimensions(a.floating);return n.floating.width!==m.width||n.floating.height!==m.height?{reset:{rects:!0}}:{}}}};function sn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gn(e){return sn(e).getComputedStyle(e)}function la(e){return K8(e)?(e.nodeName||"").toLowerCase():""}var pd;function G8(){if(pd)return pd;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(pd=e.brands.map(t=>t.brand+"/"+t.version).join(" "),pd):navigator.userAgent}function zr(e){return e instanceof sn(e).HTMLElement}function Bn(e){return e instanceof sn(e).Element}function K8(e){return e instanceof sn(e).Node}function F8(e){return typeof ShadowRoot>"u"?!1:e instanceof sn(e).ShadowRoot||e instanceof ShadowRoot}function kd(e){let{overflow:t,overflowX:o,overflowY:n,display:r}=Gn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!["inline","contents"].includes(r)}function G_(e){return["table","td","th"].includes(la(e))}function $p(e){let t=/firefox/i.test(G8()),o=Gn(e),n=o.backdropFilter||o.WebkitBackdropFilter;return o.transform!=="none"||o.perspective!=="none"||!!n&&n!=="none"||t&&o.willChange==="filter"||t&&!!o.filter&&o.filter!=="none"||["transform","perspective"].some(r=>o.willChange.includes(r))||["paint","layout","strict","content"].some(r=>{let a=o.contain;return a!=null&&a.includes(r)})}function X8(){return!/^((?!chrome|android).)*safari/i.test(G8())}function Vp(e){return["html","body","#document"].includes(la(e))}var $8=Math.min,qs=Math.max,fd=Math.round;function Y8(e){let t=Gn(e),o=parseFloat(t.width),n=parseFloat(t.height),r=e.offsetWidth,a=e.offsetHeight,i=fd(o)!==r||fd(n)!==a;return i&&(o=r,n=a),{width:o,height:n,fallback:i}}function Q8(e){return Bn(e)?e:e.contextElement}var Z8={x:1,y:1};function Nl(e){let t=Q8(e);if(!zr(t))return Z8;let o=t.getBoundingClientRect(),{width:n,height:r,fallback:a}=Y8(t),i=(a?fd(o.width):o.width)/n,l=(a?fd(o.height):o.height)/r;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}function li(e,t,o,n){var r,a;t===void 0&&(t=!1),o===void 0&&(o=!1);let i=e.getBoundingClientRect(),l=Q8(e),c=Z8;t&&(n?Bn(n)&&(c=Nl(n)):c=Nl(e));let s=l?sn(l):window,d=!X8()&&o,h=(i.left+(d&&((r=s.visualViewport)==null?void 0:r.offsetLeft)||0))/c.x,v=(i.top+(d&&((a=s.visualViewport)==null?void 0:a.offsetTop)||0))/c.y,u=i.width/c.x,w=i.height/c.y;if(l){let k=sn(l),E=n&&Bn(n)?sn(n):n,p=k.frameElement;for(;p&&n&&E!==k;){let m=Nl(p),f=p.getBoundingClientRect(),g=getComputedStyle(p);f.x+=(p.clientLeft+parseFloat(g.paddingLeft))*m.x,f.y+=(p.clientTop+parseFloat(g.paddingTop))*m.y,h*=m.x,v*=m.y,u*=m.x,w*=m.y,h+=f.x,v+=f.y,p=sn(p).frameElement}}return{width:u,height:w,top:v,right:h+u,bottom:v+w,left:h,x:h,y:v}}function ia(e){return((K8(e)?e.ownerDocument:e.document)||window.document).documentElement}function wd(e){return Bn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function J8(e){return li(ia(e)).left+wd(e).scrollLeft}function K_(e,t,o){let n=zr(t),r=ia(t),a=li(e,!0,o==="fixed",t),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};if(n||!n&&o!=="fixed")if((la(t)!=="body"||kd(r))&&(i=wd(t)),zr(t)){let c=li(t,!0);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else r&&(l.x=J8(r));return{x:a.left+i.scrollLeft-l.x,y:a.top+i.scrollTop-l.y,width:a.width,height:a.height}}function Gs(e){if(la(e)==="html")return e;let t=e.assignedSlot||e.parentNode||(F8(e)?e.host:null)||ia(e);return F8(t)?t.host:t}function V8(e){return zr(e)&&Gn(e).position!=="fixed"?e.offsetParent:null}function U8(e){let t=sn(e),o=V8(e);for(;o&&G_(o)&&Gn(o).position==="static";)o=V8(o);return o&&(la(o)==="html"||la(o)==="body"&&Gn(o).position==="static"&&!$p(o))?t:o||function(n){let r=Gs(n);for(;zr(r)&&!Vp(r);){if($p(r))return r;r=Gs(r)}return null}(e)||t}function eM(e){let t=Gs(e);return Vp(t)?e.ownerDocument.body:zr(t)&&kd(t)?t:eM(t)}function Bl(e,t){var o;t===void 0&&(t=[]);let n=eM(e),r=n===((o=e.ownerDocument)==null?void 0:o.body),a=sn(n);return r?t.concat(a,a.visualViewport||[],kd(n)?n:[]):t.concat(n,Bl(n))}function q8(e,t,o){return t==="viewport"?Cl(function(n,r){let a=sn(n),i=ia(n),l=a.visualViewport,c=i.clientWidth,s=i.clientHeight,d=0,h=0;if(l){c=l.width,s=l.height;let v=X8();(v||!v&&r==="fixed")&&(d=l.offsetLeft,h=l.offsetTop)}return{width:c,height:s,x:d,y:h}}(e,o)):Bn(t)?function(n,r){let a=li(n,!0,r==="fixed"),i=a.top+n.clientTop,l=a.left+n.clientLeft,c=zr(n)?Nl(n):{x:1,y:1},s=n.clientWidth*c.x,d=n.clientHeight*c.y,h=l*c.x,v=i*c.y;return{top:v,left:h,right:h+s,bottom:v+d,x:h,y:v,width:s,height:d}}(t,o):Cl(function(n){var r;let a=ia(n),i=wd(n),l=(r=n.ownerDocument)==null?void 0:r.body,c=qs(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),s=qs(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-i.scrollLeft+J8(n),h=-i.scrollTop;return Gn(l||a).direction==="rtl"&&(d+=qs(a.clientWidth,l?l.clientWidth:0)-c),{width:c,height:s,x:d,y:h}}(ia(e)))}var X_={getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e,a=o==="clippingAncestors"?function(s,d){let h=d.get(s);if(h)return h;let v=Bl(s).filter(E=>Bn(E)&&la(E)!=="body"),u=null,w=Gn(s).position==="fixed",k=w?Gs(s):s;for(;Bn(k)&&!Vp(k);){let E=Gn(k),p=$p(k);(w?p||u:p||E.position!=="static"||!u||!["absolute","fixed"].includes(u.position))?u=E:v=v.filter(m=>m!==k),k=Gs(k)}return d.set(s,v),v}(t,this._c):[].concat(o),i=[...a,n],l=i[0],c=i.reduce((s,d)=>{let h=q8(t,d,r);return s.top=qs(h.top,s.top),s.right=$8(h.right,s.right),s.bottom=$8(h.bottom,s.bottom),s.left=qs(h.left,s.left),s},q8(t,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:o,strategy:n}=e,r=zr(o),a=ia(o);if(o===a)return t;let i={scrollLeft:0,scrollTop:0},l={x:1,y:1},c={x:0,y:0};if((r||!r&&n!=="fixed")&&((la(o)!=="body"||kd(a))&&(i=wd(o)),zr(o))){let s=li(o);l=Nl(o),c.x=s.x+o.clientLeft,c.y=s.y+o.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+c.x,y:t.y*l.y-i.scrollTop*l.y+c.y}},isElement:Bn,getDimensions:function(e){return Y8(e)},getOffsetParent:U8,getDocumentElement:ia,getScale:Nl,async getElementRects(e){let{reference:t,floating:o,strategy:n}=e,r=this.getOffsetParent||U8,a=this.getDimensions;return{reference:K_(t,await r(o),n),floating:Y({x:0,y:0},await a(o))}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Gn(e).direction==="rtl"};function tM(e,t,o,n){n===void 0&&(n={});let{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i=!0,animationFrame:l=!1}=n,c=r&&!l,s=c||a?[...Bn(e)?Bl(e):e.contextElement?Bl(e.contextElement):[],...Bl(t)]:[];s.forEach(u=>{c&&u.addEventListener("scroll",o,{passive:!0}),a&&u.addEventListener("resize",o)});let d,h=null;if(i){let u=!0;h=new ResizeObserver(()=>{u||o(),u=!1}),Bn(e)&&!l&&h.observe(e),Bn(e)||!e.contextElement||l||h.observe(e.contextElement),h.observe(t)}let v=l?li(e):null;return l&&function u(){let w=li(e);!v||w.x===v.x&&w.y===v.y&&w.width===v.width&&w.height===v.height||o(),v=w,d=requestAnimationFrame(u)}(),o(),()=>{var u;s.forEach(w=>{c&&w.removeEventListener("scroll",o),a&&w.removeEventListener("resize",o)}),(u=h)==null||u.disconnect(),h=null,l&&cancelAnimationFrame(d)}}var oM=(e,t,o)=>{let n=new Map,r=Y({platform:X_},o),a=ge(Y({},r.platform),{_c:n});return T8(e,t,ge(Y({},r),{platform:a}))};var Lt=y(I()),gd=y(I()),nM=y(Qa());var rM=e=>{let{element:t,padding:o}=e;function n(r){return Object.prototype.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){return n(t)?t.current!=null?md({element:t.current,padding:o}).fn(r):{}:t?md({element:t,padding:o}).fn(r):{}}}},Up=typeof document<"u"?gd.useLayoutEffect:gd.useEffect;function Ed(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!Ed(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[n]))return!1;for(n=o;n--!==0;){let a=r[n];if(!(a==="_owner"&&e.$$typeof)&&!Ed(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Y_(e){let t=Lt.useRef(e);return Up(()=>{t.current=e}),t}function aM(e){let{middleware:t=[],placement:o="bottom",strategy:n="absolute",whileElementsMounted:r,open:a}=e===void 0?{}:e,[i,l]=Lt.useState({x:null,y:null,strategy:n,placement:o,middlewareData:{},isPositioned:!1}),[c,s]=Lt.useState(t);Ed(c,t)||s(t);let d=Lt.useRef(null),h=Lt.useRef(null),v=Lt.useRef(null),u=Lt.useRef(i),w=Y_(r),k=Lt.useCallback(()=>{!d.current||!h.current||oM(d.current,h.current,{middleware:c,placement:o,strategy:n}).then(M=>{let z=ge(Y({},M),{isPositioned:!0});E.current&&!Ed(u.current,z)&&(u.current=z,nM.flushSync(()=>{l(z)}))})},[c,o,n]);Up(()=>{a===!1&&u.current.isPositioned&&l(M=>ge(Y({},M),{isPositioned:!1}))},[a]);let E=Lt.useRef(!1);Up(()=>(E.current=!0,()=>{E.current=!1}),[]);let p=Lt.useCallback(()=>{if(typeof v.current=="function"&&(v.current(),v.current=null),d.current&&h.current)if(w.current){let M=w.current(d.current,h.current,k);v.current=M}else k()},[k,w]),m=Lt.useCallback(M=>{d.current!==M&&(d.current=M,p())},[p]),f=Lt.useCallback(M=>{h.current!==M&&(h.current=M,p())},[p]),g=Lt.useMemo(()=>({reference:d,floating:h}),[]);return Lt.useMemo(()=>ge(Y({},i),{update:k,refs:g,reference:m,floating:f}),[i,k,g,m,f])}var Oe=y(I()),Ks=y(I()),sM=y(Qa());var dM=typeof document<"u"?Ks.useLayoutEffect:Ks.useEffect;function Q_(){let e=new Map;return{emit(t,o){var n;(n=e.get(t))==null||n.forEach(r=>r(o))},on(t,o){e.set(t,[...e.get(t)||[],o])},off(t,o){e.set(t,(e.get(t)||[]).filter(n=>n!==o))}}}var qp=!1,Z_=0,iM=()=>"floating-ui-"+Z_++;function J_(){let[e,t]=Oe.useState(()=>qp?iM():void 0);return dM(()=>{e==null&&t(iM())},[]),Oe.useEffect(()=>{qp||(qp=!0)},[]),e}var lM=Oe["useId".toString()],fee=lM!=null?lM:J_;var eO=Oe.createContext(null);var tO=()=>Oe.useContext(eO);function oO(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function nO(e){var t;return(t=oO(e).defaultView)!=null?t:window}function rO(e){return e?e instanceof nO(e).Element:!1}var cM=Oe["useInsertionEffect".toString()];function aO(e){let t=Oe.useRef(()=>{});return cM?cM(()=>{t.current=e}):t.current=e,Oe.useCallback(function(){for(var o=arguments.length,n=new Array(o),r=0;rQ_())[0],w=aM({placement:r,middleware:a,strategy:i,whileElementsMounted:n}),k=aO(o),E=Oe.useMemo(()=>ge(Y({},w.refs),{domReference:h}),[w.refs]),p=Oe.useMemo(()=>ge(Y({},w),{refs:E,dataRef:v,nodeId:l,events:u,open:t,onOpenChange:k,_:{domReference:c}}),[w,l,u,t,k,E,c]);dM(()=>{let g=d==null?void 0:d.nodesRef.current.find(M=>M.id===l);g&&(g.context=p)});let{reference:m}=w,f=Oe.useCallback(g=>{(rO(g)||g===null)&&(p.refs.domReference.current=g,s(g)),m(g)},[m,p.refs]);return Oe.useMemo(()=>ge(Y({},w),{context:p,refs:E,reference:f}),[w,E,p,f])}var iO="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";var kee="select:not([disabled]),a[href],button:not([disabled]),[tabindex],iframe,object,embed,area[href],audio[controls],video[controls],"+iO;var xd=y(I());function vM({opened:e,floating:t,positionDependencies:o}){let[n,r]=(0,xd.useState)(0);(0,xd.useEffect)(()=>{if(t.refs.reference.current&&t.refs.floating.current)return tM(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference,t.refs.floating,e,n]),Ze(()=>{t.update()},o),Ze(()=>{r(a=>a+1)},[e])}function lO(e){let t=[ud(e.offset)];return e.middlewares.shift&&t.push(Ap({limiter:Dp()})),e.middlewares.flip&&t.push(Rp()),e.middlewares.inline&&t.push(Tp()),t.push(rM({element:e.arrowRef,padding:e.arrowOffset})),t}function mM(e){let[t,o]=ht({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=()=>{var i;(i=e.onClose)==null||i.call(e),o(!1)},r=()=>{var i,l;t?((i=e.onClose)==null||i.call(e),o(!1)):((l=e.onOpen)==null||l.call(e),o(!0))},a=hM({placement:e.position,middleware:[...lO(e),...e.width==="target"?[Fp({apply({rects:i}){var l,c;Object.assign((c=(l=a.refs.floating.current)==null?void 0:l.style)!=null?c:{},{width:`${i.reference.width}px`})}})]:[]]});return vM({opened:e.opened,positionDependencies:e.positionDependencies,floating:a}),Ze(()=>{var i;(i=e.onPositionChange)==null||i.call(e,a.placement)},[a.placement]),{floating:a,controlled:typeof e.opened=="boolean",opened:t,onClose:n,onToggle:r}}var Md={context:"Popover component was not found in the tree",children:"Popover.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"};var[uM,zd]=cs(Md.context);var Ld=y(I());var cO=Object.defineProperty,sO=Object.defineProperties,dO=Object.getOwnPropertyDescriptors,yd=Object.getOwnPropertySymbols,fM=Object.prototype.hasOwnProperty,kM=Object.prototype.propertyIsEnumerable,pM=(e,t,o)=>t in e?cO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,bd=(e,t)=>{for(var o in t||(t={}))fM.call(t,o)&&pM(e,o,t[o]);if(yd)for(var o of yd(t))kM.call(t,o)&&pM(e,o,t[o]);return e},hO=(e,t)=>sO(e,dO(t)),vO=(e,t)=>{var o={};for(var n in e)fM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&yd)for(var n of yd(e))t.indexOf(n)<0&&kM.call(e,n)&&(o[n]=e[n]);return o},mO={refProp:"ref",popupType:"dialog"},Gp=(0,Ld.forwardRef)((e,t)=>{let o=S("PopoverTarget",mO,e),{children:n,refProp:r,popupType:a}=o,i=vO(o,["children","refProp","popupType"]);if(!ds(n))throw new Error(Md.children);let l=i,c=zd(),s=At(c.reference,n.ref,t),d=c.withRoles?{"aria-haspopup":a,"aria-expanded":c.opened,"aria-controls":c.getDropdownId(),id:c.getTargetId()}:{};return(0,Ld.cloneElement)(n,bd(hO(bd(bd(bd({},l),d),c.targetProps),{className:hs(c.targetProps.className,l.className,n.props.className),[r]:s}),c.controlled?null:{onClick:c.onToggle}))});Gp.displayName="@mantine/core/PopoverTarget";var Wl=y(I());var uO=W((e,{radius:t,shadow:o})=>({dropdown:{position:"absolute",backgroundColor:e.white,background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,padding:`${e.spacing.sm}px ${e.spacing.md}px`,boxShadow:e.shadows[o]||o||"none",borderRadius:e.fn.radius(t),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,zIndex:1}})),wM=uO;var Xs=y(I());var pO=Object.defineProperty,EM=Object.getOwnPropertySymbols,fO=Object.prototype.hasOwnProperty,kO=Object.prototype.propertyIsEnumerable,gM=(e,t,o)=>t in e?pO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,jl=(e,t)=>{for(var o in t||(t={}))fO.call(t,o)&&gM(e,o,t[o]);if(EM)for(var o of EM(t))kO.call(t,o)&&gM(e,o,t[o]);return e},xM={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Cd({transition:e,state:t,duration:o,timingFunction:n}){let r={transitionDuration:`${o}ms`,transitionTimingFunction:n};return typeof e=="string"?e in Cs?jl(jl(jl({transitionProperty:Cs[e].transitionProperty},r),Cs[e].common),Cs[e][xM[t]]):null:jl(jl(jl({transitionProperty:e.transitionProperty},r),e.common),e[xM[t]])}var Hl=y(I());function Id({duration:e,exitDuration:t,timingFunction:o,mounted:n,onEnter:r,onExit:a,onEntered:i,onExited:l}){let c=je(),s=Hs(),d=c.respectReducedMotion?s:!1,[h,v]=(0,Hl.useState)(n?"entered":"exited"),u=d?0:e,w=(0,Hl.useRef)(-1),k=E=>{let p=E?r:a,m=E?i:l;if(v(E?"pre-entering":"pre-exiting"),window.clearTimeout(w.current),u=d?0:E?e:t,u===0)typeof p=="function"&&p(),typeof m=="function"&&m(),v(E?"entered":"exited");else{let f=window.setTimeout(()=>{typeof p=="function"&&p(),v(E?"entering":"exiting")},10);w.current=window.setTimeout(()=>{window.clearTimeout(f),typeof m=="function"&&m(),v(E?"entered":"exited")},u)}};return Ze(()=>{k(n)},[n]),(0,Hl.useEffect)(()=>()=>window.clearTimeout(w.current),[]),{transitionDuration:u,transitionStatus:h,transitionTimingFunction:o||c.transitionTimingFunction}}function ci({transition:e,duration:t=250,exitDuration:o=t,mounted:n,children:r,timingFunction:a,onExit:i,onEntered:l,onEnter:c,onExited:s}){let{transitionDuration:d,transitionStatus:h,transitionTimingFunction:v}=Id({mounted:n,exitDuration:o,duration:t,timingFunction:a,onExit:i,onEntered:l,onEnter:c,onExited:s});return d===0?n?Xs.default.createElement(Xs.default.Fragment,null,r({})):null:h==="exited"?null:Xs.default.createElement(Xs.default.Fragment,null,r(Cd({transition:e,duration:d,state:h,timingFunction:v})))}ci.displayName="@mantine/core/Transition";var MM=y(I());function Kp({children:e,active:t=!0,refProp:o="ref"}){let n=Bs(t),r=At(n,e==null?void 0:e.ref);return ds(e)?(0,MM.cloneElement)(e,{[o]:r}):e}Kp.displayName="@mantine/core/FocusTrap";var jd=y(I());var wO=Object.defineProperty,EO=Object.defineProperties,gO=Object.getOwnPropertyDescriptors,zM=Object.getOwnPropertySymbols,xO=Object.prototype.hasOwnProperty,MO=Object.prototype.propertyIsEnumerable,bM=(e,t,o)=>t in e?wO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,ca=(e,t)=>{for(var o in t||(t={}))xO.call(t,o)&&bM(e,o,t[o]);if(zM)for(var o of zM(t))MO.call(t,o)&&bM(e,o,t[o]);return e},Nd=(e,t)=>EO(e,gO(t));function yM(e,t,o,n){return e==="center"||n==="center"?{top:t}:e==="end"?{bottom:o}:e==="start"?{top:o}:{}}function LM(e,t,o,n,r){return e==="center"||n==="center"?{left:t}:e==="end"?{[r==="ltr"?"right":"left"]:o}:e==="start"?{[r==="ltr"?"left":"right"]:o}:{}}var zO={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function CM({position:e,withBorder:t,arrowSize:o,arrowOffset:n,arrowRadius:r,arrowPosition:a,arrowX:i,arrowY:l,dir:c}){let[s,d="center"]=e.split("-"),h={width:o,height:o,transform:"rotate(45deg)",position:"absolute",[zO[s]]:r},v=t?-o/2-1:-o/2;return s==="left"?Nd(ca(ca({},h),yM(d,l,n,a)),{right:v,borderLeft:0,borderBottom:0}):s==="right"?Nd(ca(ca({},h),yM(d,l,n,a)),{left:v,borderRight:0,borderTop:0}):s==="top"?Nd(ca(ca({},h),LM(d,i,n,a,c)),{bottom:v,borderTop:0,borderLeft:0}):s==="bottom"?Nd(ca(ca({},h),LM(d,i,n,a,c)),{top:v,borderBottom:0,borderRight:0}):{}}var bO=Object.defineProperty,yO=Object.defineProperties,LO=Object.getOwnPropertyDescriptors,Bd=Object.getOwnPropertySymbols,NM=Object.prototype.hasOwnProperty,BM=Object.prototype.propertyIsEnumerable,IM=(e,t,o)=>t in e?bO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,CO=(e,t)=>{for(var o in t||(t={}))NM.call(t,o)&&IM(e,o,t[o]);if(Bd)for(var o of Bd(t))BM.call(t,o)&&IM(e,o,t[o]);return e},IO=(e,t)=>yO(e,LO(t)),NO=(e,t)=>{var o={};for(var n in e)NM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Bd)for(var n of Bd(e))t.indexOf(n)<0&&BM.call(e,n)&&(o[n]=e[n]);return o},Xp=(0,jd.forwardRef)((e,t)=>{var o=e,{withBorder:n,position:r,arrowSize:a,arrowOffset:i,arrowRadius:l,arrowPosition:c,visible:s,arrowX:d,arrowY:h}=o,v=NO(o,["withBorder","position","arrowSize","arrowOffset","arrowRadius","arrowPosition","visible","arrowX","arrowY"]);let u=je();return s?jd.default.createElement("div",IO(CO({},v),{ref:t,style:CM({withBorder:n,position:r,arrowSize:a,arrowOffset:i,arrowRadius:l,arrowPosition:c,dir:u.dir,arrowX:d,arrowY:h})})):null});Xp.displayName="@mantine/core/FloatingArrow";var BO=Object.defineProperty,jO=Object.defineProperties,HO=Object.getOwnPropertyDescriptors,Wd=Object.getOwnPropertySymbols,WM=Object.prototype.hasOwnProperty,SM=Object.prototype.propertyIsEnumerable,jM=(e,t,o)=>t in e?BO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Hd=(e,t)=>{for(var o in t||(t={}))WM.call(t,o)&&jM(e,o,t[o]);if(Wd)for(var o of Wd(t))SM.call(t,o)&&jM(e,o,t[o]);return e},HM=(e,t)=>jO(e,HO(t)),WO=(e,t)=>{var o={};for(var n in e)WM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Wd)for(var n of Wd(e))t.indexOf(n)<0&&SM.call(e,n)&&(o[n]=e[n]);return o},SO={};function Yp(e){let t=S("PopoverDropdown",SO,e),{style:o,className:n,children:r,onKeyDownCapture:a}=t,i=WO(t,["style","className","children","onKeyDownCapture"]),l=zd(),{classes:c,cx:s}=wM({radius:l.radius,shadow:l.shadow},{name:l.__staticSelector,classNames:l.classNames,styles:l.styles,unstyled:l.unstyled}),d=Ns({opened:l.opened,shouldReturnFocus:l.returnFocus}),h=l.withRoles?{"aria-labelledby":l.getTargetId(),id:l.getDropdownId(),role:"dialog"}:{};return l.disabled?null:Wl.default.createElement(Os,{withinPortal:l.withinPortal},Wl.default.createElement(ci,{mounted:l.opened,transition:l.transition,duration:l.transitionDuration,exitDuration:typeof l.exitTransitionDuration=="number"?l.exitTransitionDuration:l.transitionDuration},v=>{var u,w;return Wl.default.createElement(Kp,{active:l.trapFocus},Wl.default.createElement(D,Hd(HM(Hd({},h),{tabIndex:-1,key:l.placement,ref:l.floating,style:HM(Hd(Hd({},o),v),{zIndex:l.zIndex,top:(u=l.y)!=null?u:0,left:(w=l.x)!=null?w:0,width:l.width==="target"?void 0:l.width}),className:s(c.dropdown,n),onKeyDownCapture:$u(l.onClose,{active:l.closeOnEscape,onTrigger:d,onKeyDown:a}),"data-position":l.placement}),i),r,Wl.default.createElement(Xp,{ref:l.arrowRef,arrowX:l.arrowX,arrowY:l.arrowY,visible:l.withArrow,withBorder:!0,position:l.placement,arrowSize:l.arrowSize,arrowRadius:l.arrowRadius,arrowOffset:l.arrowOffset,arrowPosition:l.arrowPosition,className:c.arrow})))}))}Yp.displayName="@mantine/core/PopoverDropdown";function _M(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){let[o,n]=t.split("-"),r=o==="right"?"left":"right";return n===void 0?r:`${r}-${n}`}return t}var OM=Object.getOwnPropertySymbols,_O=Object.prototype.hasOwnProperty,OO=Object.prototype.propertyIsEnumerable,PO=(e,t)=>{var o={};for(var n in e)_O.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&OM)for(var n of OM(e))t.indexOf(n)<0&&OO.call(e,n)&&(o[n]=e[n]);return o},RO={position:"bottom",offset:8,positionDependencies:[],transition:"fade",transitionDuration:150,middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:po("popover"),__staticSelector:"Popover",width:"max-content"};function jn(e){var t,o,n,r,a,i;let l=(0,Kn.useRef)(null),c=S("Popover",RO,e),{children:s,position:d,offset:h,onPositionChange:v,positionDependencies:u,opened:w,transition:k,transitionDuration:E,width:p,middlewares:m,withArrow:f,arrowSize:g,arrowOffset:M,arrowRadius:z,arrowPosition:x,unstyled:b,classNames:L,styles:C,closeOnClickOutside:B,withinPortal:N,closeOnEscape:j,clickOutsideEvents:T,trapFocus:H,onClose:_,onOpen:A,onChange:F,zIndex:V,radius:$,shadow:U,id:oe,defaultOpened:ve,exitTransitionDuration:J,__staticSelector:he,withRoles:ue,disabled:ie,returnFocus:le}=c,fe=PO(c,["children","position","offset","onPositionChange","positionDependencies","opened","transition","transitionDuration","width","middlewares","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","unstyled","classNames","styles","closeOnClickOutside","withinPortal","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","exitTransitionDuration","__staticSelector","withRoles","disabled","returnFocus"]),[ne,se]=(0,Kn.useState)(null),[ke,De]=(0,Kn.useState)(null),We=Do(oe),ao=je(),Se=mM({middlewares:m,width:p,position:_M(ao.dir,d),offset:h+(f?g/2:0),arrowRef:l,arrowOffset:M,onPositionChange:v,positionDependencies:u,opened:w,defaultOpened:ve,onChange:F,onOpen:A,onClose:_});dp(()=>B&&Se.onClose(),T,[ne,ke]);let ja=(0,Kn.useCallback)(un=>{se(un),Se.floating.reference(un)},[Se.floating.reference]),Ha=(0,Kn.useCallback)(un=>{De(un),Se.floating.floating(un)},[Se.floating.floating]);return Kn.default.createElement(uM,{value:{returnFocus:le,disabled:ie,controlled:Se.controlled,reference:ja,floating:Ha,x:Se.floating.x,y:Se.floating.y,arrowX:(n=(o=(t=Se.floating)==null?void 0:t.middlewareData)==null?void 0:o.arrow)==null?void 0:n.x,arrowY:(i=(a=(r=Se.floating)==null?void 0:r.middlewareData)==null?void 0:a.arrow)==null?void 0:i.y,opened:Se.opened,arrowRef:l,transition:k,transitionDuration:E,exitTransitionDuration:J,width:p,withArrow:f,arrowSize:g,arrowOffset:M,arrowRadius:z,arrowPosition:x,placement:Se.floating.placement,trapFocus:H,withinPortal:N,zIndex:V,radius:$,shadow:U,closeOnEscape:j,onClose:Se.onClose,onToggle:Se.onToggle,getTargetId:()=>`${We}-target`,getDropdownId:()=>`${We}-dropdown`,withRoles:ue,targetProps:fe,__staticSelector:he,classNames:L,styles:C,unstyled:b}},s)}jn.Target=Gp;jn.Dropdown=Yp;jn.displayName="@mantine/core/Popover";var TO=Object.defineProperty,Sd=Object.getOwnPropertySymbols,RM=Object.prototype.hasOwnProperty,TM=Object.prototype.propertyIsEnumerable,PM=(e,t,o)=>t in e?TO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,AO=(e,t)=>{for(var o in t||(t={}))RM.call(t,o)&&PM(e,o,t[o]);if(Sd)for(var o of Sd(t))TM.call(t,o)&&PM(e,o,t[o]);return e},DO=(e,t)=>{var o={};for(var n in e)RM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Sd)for(var n of Sd(e))t.indexOf(n)<0&&TM.call(e,n)&&(o[n]=e[n]);return o};function FO(e){var t=e,{children:o,component:n="div",maxHeight:r=220,direction:a="column",id:i,innerRef:l,__staticSelector:c,styles:s,classNames:d,unstyled:h}=t,v=DO(t,["children","component","maxHeight","direction","id","innerRef","__staticSelector","styles","classNames","unstyled"]);let{classes:u}=P8(null,{name:c,styles:s,classNames:d,unstyled:h});return Sl.default.createElement(jn.Dropdown,AO({p:0,onMouseDown:w=>w.preventDefault()},v),Sl.default.createElement("div",{style:{maxHeight:r,display:"flex"}},Sl.default.createElement(D,{component:n||"div",id:`${i}-items`,"aria-labelledby":`${i}-label`,role:"listbox",onMouseDown:w=>w.preventDefault(),style:{flex:1,overflowY:n!==Vs?"auto":void 0},"data-combobox-popover":!0,ref:l},Sl.default.createElement("div",{className:u.itemsWrapper,style:{flexDirection:a}},o))))}function _l({opened:e,transition:t="fade",transitionDuration:o=0,shadow:n,withinPortal:r,children:a,__staticSelector:i,onDirectionChange:l,switchDirectionOnFlip:c,zIndex:s,dropdownPosition:d,positionDependencies:h=[],classNames:v,styles:u,unstyled:w,readOnly:k}){return Sl.default.createElement(jn,{unstyled:w,classNames:v,styles:u,width:"target",withRoles:!1,opened:e,middlewares:{flip:d==="flip",shift:!1},position:d==="flip"?"bottom":d,positionDependencies:h,zIndex:s,__staticSelector:i,withinPortal:r,transition:t,transitionDuration:o,shadow:n,disabled:k,onPositionChange:E=>c&&(l==null?void 0:l(E==="top"?"column-reverse":"column"))},a)}_l.Target=jn.Target;_l.Dropdown=FO;var $O=Object.defineProperty,VO=Object.defineProperties,UO=Object.getOwnPropertyDescriptors,_d=Object.getOwnPropertySymbols,DM=Object.prototype.hasOwnProperty,FM=Object.prototype.propertyIsEnumerable,AM=(e,t,o)=>t in e?$O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Qp=(e,t)=>{for(var o in t||(t={}))DM.call(t,o)&&AM(e,o,t[o]);if(_d)for(var o of _d(t))FM.call(t,o)&&AM(e,o,t[o]);return e},qO=(e,t)=>VO(e,UO(t)),GO=(e,t)=>{var o={};for(var n in e)DM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&_d)for(var n of _d(e))t.indexOf(n)<0&&FM.call(e,n)&&(o[n]=e[n]);return o};function sa(e,t,o){let n=S(e,t,o),{label:r,description:a,error:i,required:l,classNames:c,styles:s,className:d,unstyled:h,__staticSelector:v,sx:u,errorProps:w,labelProps:k,descriptionProps:E,wrapperProps:p,id:m,size:f,style:g,inputContainer:M,inputWrapperOrder:z,withAsterisk:x}=n,b=GO(n,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder","withAsterisk"]),L=Do(m),{systemStyles:C,rest:B}=ta(b);return qO(Qp({},B),{classNames:c,styles:s,unstyled:h,wrapperProps:Qp(Qp({label:r,description:a,error:i,required:l,classNames:c,className:d,__staticSelector:v,sx:u,errorProps:w,labelProps:k,descriptionProps:E,unstyled:h,styles:s,id:L,size:f,style:g,inputContainer:M,inputWrapperOrder:z,withAsterisk:x},p),C),inputProps:{required:l,classNames:c,styles:s,unstyled:h,id:L,size:f,__staticSelector:v,invalid:!!i}})}var si=y(I());var Hn=y(I());var Ys=y(I());var KO=W((e,{size:t})=>({label:{display:"inline-block",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),fontWeight:500,color:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[9],wordBreak:"break-word",cursor:"default",WebkitTapHighlightColor:"transparent"},required:{color:e.fn.variant({variant:"filled",color:"red"}).background}})),$M=KO;var XO=Object.defineProperty,Od=Object.getOwnPropertySymbols,UM=Object.prototype.hasOwnProperty,qM=Object.prototype.propertyIsEnumerable,VM=(e,t,o)=>t in e?XO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,YO=(e,t)=>{for(var o in t||(t={}))UM.call(t,o)&&VM(e,o,t[o]);if(Od)for(var o of Od(t))qM.call(t,o)&&VM(e,o,t[o]);return e},QO=(e,t)=>{var o={};for(var n in e)UM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Od)for(var n of Od(e))t.indexOf(n)<0&&qM.call(e,n)&&(o[n]=e[n]);return o},ZO={labelElement:"label",size:"sm"},Qs=(0,Ys.forwardRef)((e,t)=>{let o=S("InputLabel",ZO,e),{labelElement:n,children:r,required:a,size:i,classNames:l,styles:c,unstyled:s,className:d,htmlFor:h,__staticSelector:v}=o,u=QO(o,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector"]),{classes:w,cx:k}=$M({size:i},{name:["InputWrapper",v],classNames:l,styles:c,unstyled:s});return Ys.default.createElement(D,YO({component:n,ref:t,className:k(w.label,d),htmlFor:n==="label"?h:void 0},u),r,a&&Ys.default.createElement("span",{className:w.required,"aria-hidden":!0}," *"))});Qs.displayName="@mantine/core/InputLabel";var Rd=y(I());var JO=W((e,{size:t})=>({error:{wordBreak:"break-word",color:e.fn.variant({variant:"filled",color:"red"}).background,fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}})),GM=JO;var eP=Object.defineProperty,Pd=Object.getOwnPropertySymbols,XM=Object.prototype.hasOwnProperty,YM=Object.prototype.propertyIsEnumerable,KM=(e,t,o)=>t in e?eP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,tP=(e,t)=>{for(var o in t||(t={}))XM.call(t,o)&&KM(e,o,t[o]);if(Pd)for(var o of Pd(t))YM.call(t,o)&&KM(e,o,t[o]);return e},oP=(e,t)=>{var o={};for(var n in e)XM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Pd)for(var n of Pd(e))t.indexOf(n)<0&&YM.call(e,n)&&(o[n]=e[n]);return o},nP={size:"sm"},Zs=(0,Rd.forwardRef)((e,t)=>{let o=S("InputError",nP,e),{children:n,className:r,classNames:a,styles:i,unstyled:l,size:c,__staticSelector:s}=o,d=oP(o,["children","className","classNames","styles","unstyled","size","__staticSelector"]),{classes:h,cx:v}=GM({size:c},{name:["InputWrapper",s],classNames:a,styles:i,unstyled:l});return Rd.default.createElement(re,tP({className:v(h.error,r),ref:t},d),n)});Zs.displayName="@mantine/core/InputError";var Ad=y(I());var rP=W((e,{size:t})=>({description:{wordBreak:"break-word",color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}})),QM=rP;var aP=Object.defineProperty,Td=Object.getOwnPropertySymbols,JM=Object.prototype.hasOwnProperty,e7=Object.prototype.propertyIsEnumerable,ZM=(e,t,o)=>t in e?aP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,iP=(e,t)=>{for(var o in t||(t={}))JM.call(t,o)&&ZM(e,o,t[o]);if(Td)for(var o of Td(t))e7.call(t,o)&&ZM(e,o,t[o]);return e},lP=(e,t)=>{var o={};for(var n in e)JM.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Td)for(var n of Td(e))t.indexOf(n)<0&&e7.call(e,n)&&(o[n]=e[n]);return o},cP={size:"sm"},Js=(0,Ad.forwardRef)((e,t)=>{let o=S("InputDescription",cP,e),{children:n,className:r,classNames:a,styles:i,unstyled:l,size:c,__staticSelector:s}=o,d=lP(o,["children","className","classNames","styles","unstyled","size","__staticSelector"]),{classes:h,cx:v}=QM({size:c},{name:["InputWrapper",s],classNames:a,styles:i,unstyled:l});return Ad.default.createElement(re,iP({color:"dimmed",className:v(h.description,r),ref:t,unstyled:l},d),n)});Js.displayName="@mantine/core/InputDescription";var Dd=y(I()),t7=(0,Dd.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0}),o7=t7.Provider,n7=()=>(0,Dd.useContext)(t7);function r7(e,{hasDescription:t,hasError:o}){let n=e.findIndex(c=>c==="input"),r=e[n-1],a=e[n+1];return{offsetBottom:t&&a==="description"||o&&a==="error",offsetTop:t&&r==="description"||o&&r==="error"}}var sP=Object.defineProperty,dP=Object.defineProperties,hP=Object.getOwnPropertyDescriptors,a7=Object.getOwnPropertySymbols,vP=Object.prototype.hasOwnProperty,mP=Object.prototype.propertyIsEnumerable,i7=(e,t,o)=>t in e?sP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,uP=(e,t)=>{for(var o in t||(t={}))vP.call(t,o)&&i7(e,o,t[o]);if(a7)for(var o of a7(t))mP.call(t,o)&&i7(e,o,t[o]);return e},pP=(e,t)=>dP(e,hP(t)),fP=W(e=>({root:pP(uP({},e.fn.fontStyles()),{lineHeight:e.lineHeight})})),l7=fP;var kP=Object.defineProperty,wP=Object.defineProperties,EP=Object.getOwnPropertyDescriptors,Fd=Object.getOwnPropertySymbols,d7=Object.prototype.hasOwnProperty,h7=Object.prototype.propertyIsEnumerable,c7=(e,t,o)=>t in e?kP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,da=(e,t)=>{for(var o in t||(t={}))d7.call(t,o)&&c7(e,o,t[o]);if(Fd)for(var o of Fd(t))h7.call(t,o)&&c7(e,o,t[o]);return e},s7=(e,t)=>wP(e,EP(t)),gP=(e,t)=>{var o={};for(var n in e)d7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Fd)for(var n of Fd(e))t.indexOf(n)<0&&h7.call(e,n)&&(o[n]=e[n]);return o},xP={labelElement:"label",size:"sm",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},Zp=(0,Hn.forwardRef)((e,t)=>{let o=S("InputWrapper",xP,e),{className:n,label:r,children:a,required:i,id:l,error:c,description:s,labelElement:d,labelProps:h,descriptionProps:v,errorProps:u,classNames:w,styles:k,size:E,inputContainer:p,__staticSelector:m,unstyled:f,inputWrapperOrder:g,withAsterisk:M}=o,z=gP(o,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder","withAsterisk"]),{classes:x,cx:b}=l7(null,{classNames:w,styles:k,name:["InputWrapper",m],unstyled:f}),L={classNames:w,styles:k,unstyled:f,size:E,__staticSelector:m},C=typeof M=="boolean"?M:i,B=l?`${l}-error`:u==null?void 0:u.id,N=l?`${l}-description`:v==null?void 0:v.id,T=`${!!c&&typeof c!="boolean"?B:""} ${s?N:""}`,H=T.trim().length>0?T.trim():void 0,_=r&&Hn.default.createElement(Qs,da(da({key:"label",labelElement:d,id:l?`${l}-label`:void 0,htmlFor:l,required:C},L),h),r),A=s&&Hn.default.createElement(Js,s7(da(da({key:"description"},v),L),{size:(v==null?void 0:v.size)||L.size,id:(v==null?void 0:v.id)||N}),s),F=Hn.default.createElement(Hn.Fragment,{key:"input"},p(a)),V=typeof c!="boolean"&&c&&Hn.default.createElement(Zs,s7(da(da({},u),L),{size:(u==null?void 0:u.size)||L.size,key:"error",id:(u==null?void 0:u.id)||B}),c),$=g.map(U=>{switch(U){case"label":return _;case"input":return F;case"description":return A;case"error":return V;default:return null}});return Hn.default.createElement(o7,{value:da({describedBy:H},r7(g,{hasDescription:!!A,hasError:!!V}))},Hn.default.createElement(D,da({className:b(x.root,n),ref:t},z),$))});Zp.displayName="@mantine/core/InputWrapper";var Vd=y(I());var MP=Object.defineProperty,$d=Object.getOwnPropertySymbols,m7=Object.prototype.hasOwnProperty,u7=Object.prototype.propertyIsEnumerable,v7=(e,t,o)=>t in e?MP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,zP=(e,t)=>{for(var o in t||(t={}))m7.call(t,o)&&v7(e,o,t[o]);if($d)for(var o of $d(t))u7.call(t,o)&&v7(e,o,t[o]);return e},bP=(e,t)=>{var o={};for(var n in e)m7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&$d)for(var n of $d(e))t.indexOf(n)<0&&u7.call(e,n)&&(o[n]=e[n]);return o},yP={},Jp=(0,Vd.forwardRef)((e,t)=>{let o=S("InputPlaceholder",yP,e),{sx:n}=o,r=bP(o,["sx"]);return Vd.default.createElement(D,zP({component:"span",sx:[a=>a.fn.placeholderStyles(),...zo(n)],ref:t},r))});Jp.displayName="@mantine/core/InputPlaceholder";var LP=Object.defineProperty,CP=Object.defineProperties,IP=Object.getOwnPropertyDescriptors,p7=Object.getOwnPropertySymbols,NP=Object.prototype.hasOwnProperty,BP=Object.prototype.propertyIsEnumerable,f7=(e,t,o)=>t in e?LP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ud=(e,t)=>{for(var o in t||(t={}))NP.call(t,o)&&f7(e,o,t[o]);if(p7)for(var o of p7(t))BP.call(t,o)&&f7(e,o,t[o]);return e},ef=(e,t)=>CP(e,IP(t)),Fo={xs:30,sm:36,md:42,lg:50,xl:60};function jP({theme:e,variant:t}){return t==="default"?{border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,transition:"border-color 100ms ease","&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:t==="filled"?{border:"1px solid transparent",backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1],"&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:{borderWidth:0,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,backgroundColor:"transparent",minHeight:28,outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}}var HP=W((e,{size:t,multiline:o,radius:n,variant:r,invalid:a,rightSectionWidth:i,withRightSection:l,iconWidth:c,offsetBottom:s,offsetTop:d,pointer:h})=>{let v=e.fn.variant({variant:"filled",color:"red"}).background,u=r==="default"||r==="filled"?{minHeight:e.fn.size({size:t,sizes:Fo}),paddingLeft:e.fn.size({size:t,sizes:Fo})/3,paddingRight:l?i:e.fn.size({size:t,sizes:Fo})/3,borderRadius:e.fn.radius(n)}:null;return{wrapper:{position:"relative",marginTop:d?`calc(${e.spacing.xs}px / 2)`:void 0,marginBottom:s?`calc(${e.spacing.xs}px / 2)`:void 0},input:Ud(ef(Ud(ef(Ud({},e.fn.fontStyles()),{height:o?r==="unstyled"?void 0:"auto":e.fn.size({size:t,sizes:Fo}),WebkitTapHighlightColor:"transparent",lineHeight:o?e.lineHeight:`${e.fn.size({size:t,sizes:Fo})-2}px`,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),width:"100%",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"block",textAlign:"left",cursor:h?"pointer":void 0}),u),{"&:disabled":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},"&::placeholder":ef(Ud({},e.fn.placeholderStyles()),{opacity:1}),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),jP({theme:e,variant:r})),withIcon:{paddingLeft:typeof c=="number"?c:e.fn.size({size:t,sizes:Fo})},invalid:{color:v,borderColor:v,"&::placeholder":{opacity:1,color:v}},disabled:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:typeof c=="number"?c:e.fn.size({size:t,sizes:Fo}),color:a?e.colors.red[e.colorScheme==="dark"?6:7]:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:i}}}),k7=HP;var WP=Object.defineProperty,SP=Object.defineProperties,_P=Object.getOwnPropertyDescriptors,Gd=Object.getOwnPropertySymbols,g7=Object.prototype.hasOwnProperty,x7=Object.prototype.propertyIsEnumerable,w7=(e,t,o)=>t in e?WP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,qd=(e,t)=>{for(var o in t||(t={}))g7.call(t,o)&&w7(e,o,t[o]);if(Gd)for(var o of Gd(t))x7.call(t,o)&&w7(e,o,t[o]);return e},E7=(e,t)=>SP(e,_P(t)),OP=(e,t)=>{var o={};for(var n in e)g7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Gd)for(var n of Gd(e))t.indexOf(n)<0&&x7.call(e,n)&&(o[n]=e[n]);return o},PP={rightSectionWidth:36,size:"sm",variant:"default"},di=(0,si.forwardRef)((e,t)=>{let o=S("Input",PP,e),{className:n,invalid:r,required:a,disabled:i,variant:l,icon:c,style:s,rightSectionWidth:d,iconWidth:h,rightSection:v,rightSectionProps:u,radius:w,size:k,wrapperProps:E,classNames:p,styles:m,__staticSelector:f,multiline:g,sx:M,unstyled:z,pointer:x}=o,b=OP(o,["className","invalid","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:L,offsetTop:C,describedBy:B}=n7(),{classes:N,cx:j}=k7({radius:w,size:k,multiline:g,variant:l,invalid:r,rightSectionWidth:d,iconWidth:h,withRightSection:!!v,offsetBottom:L,offsetTop:C,pointer:x},{classNames:p,styles:m,name:["Input",f],unstyled:z}),{systemStyles:T,rest:H}=ta(b);return si.default.createElement(D,qd(qd({className:j(N.wrapper,n),sx:M,style:s},T),E),c&&si.default.createElement("div",{className:N.icon},c),si.default.createElement(D,E7(qd({component:"input"},H),{ref:t,required:a,"aria-invalid":r,"aria-describedby":B,disabled:i,className:j(N[`${l}Variant`],N.input,{[N.withIcon]:c,[N.invalid]:r,[N.disabled]:i})})),v&&si.default.createElement("div",E7(qd({},u),{className:N.rightSection}),v))});di.displayName="@mantine/core/Input";di.Wrapper=Zp;di.Label=Qs;di.Description=Js;di.Error=Zs;di.Placeholder=Jp;var Ct=di;var Xn=y(I());var Xd=y(I());var RP=W((e,{orientation:t,buttonBorderWidth:o})=>({root:{display:"flex",flexDirection:t==="vertical"?"column":"row","& [data-button]":{"&:first-of-type":{borderBottomRightRadius:0,[t==="vertical"?"borderBottomLeftRadius":"borderTopRightRadius"]:0,[t==="vertical"?"borderBottomWidth":"borderRightWidth"]:o/2},"&:last-of-type":{borderTopLeftRadius:0,[t==="vertical"?"borderTopRightRadius":"borderBottomLeftRadius"]:0,[t==="vertical"?"borderTopWidth":"borderLeftWidth"]:o/2},"&:not(:first-of-type):not(:last-of-type)":{borderRadius:0,[t==="vertical"?"borderTopWidth":"borderLeftWidth"]:o/2,[t==="vertical"?"borderBottomWidth":"borderRightWidth"]:o/2},"& + [data-button]":{[t==="vertical"?"marginTop":"marginLeft"]:-o,"@media (min-resolution: 192dpi)":{[t==="vertical"?"marginTop":"marginLeft"]:0}}}}})),M7=RP;var TP=Object.defineProperty,Kd=Object.getOwnPropertySymbols,b7=Object.prototype.hasOwnProperty,y7=Object.prototype.propertyIsEnumerable,z7=(e,t,o)=>t in e?TP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,AP=(e,t)=>{for(var o in t||(t={}))b7.call(t,o)&&z7(e,o,t[o]);if(Kd)for(var o of Kd(t))y7.call(t,o)&&z7(e,o,t[o]);return e},DP=(e,t)=>{var o={};for(var n in e)b7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Kd)for(var n of Kd(e))t.indexOf(n)<0&&y7.call(e,n)&&(o[n]=e[n]);return o},FP={orientation:"horizontal",buttonBorderWidth:1},tf=(0,Xd.forwardRef)((e,t)=>{let o=S("ButtonGroup",FP,e),{className:n,orientation:r,buttonBorderWidth:a,unstyled:i}=o,l=DP(o,["className","orientation","buttonBorderWidth","unstyled"]),{classes:c,cx:s}=M7({orientation:r,buttonBorderWidth:a},{name:"ButtonGroup",unstyled:i});return Xd.default.createElement(D,AP({className:s(c.root,n),ref:t},l))});tf.displayName="@mantine/core/ButtonGroup";var $P=Object.defineProperty,VP=Object.defineProperties,UP=Object.getOwnPropertyDescriptors,L7=Object.getOwnPropertySymbols,qP=Object.prototype.hasOwnProperty,GP=Object.prototype.propertyIsEnumerable,C7=(e,t,o)=>t in e?$P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,hi=(e,t)=>{for(var o in t||(t={}))qP.call(t,o)&&C7(e,o,t[o]);if(L7)for(var o of L7(t))GP.call(t,o)&&C7(e,o,t[o]);return e},of=(e,t)=>VP(e,UP(t)),Yd={xs:{height:Fo.xs,paddingLeft:14,paddingRight:14},sm:{height:Fo.sm,paddingLeft:18,paddingRight:18},md:{height:Fo.md,paddingLeft:22,paddingRight:22},lg:{height:Fo.lg,paddingLeft:26,paddingRight:26},xl:{height:Fo.xl,paddingLeft:32,paddingRight:32},"compact-xs":{height:22,paddingLeft:7,paddingRight:7},"compact-sm":{height:26,paddingLeft:8,paddingRight:8},"compact-md":{height:30,paddingLeft:10,paddingRight:10},"compact-lg":{height:34,paddingLeft:12,paddingRight:12},"compact-xl":{height:40,paddingLeft:14,paddingRight:14}};function KP({compact:e,size:t,withLeftIcon:o,withRightIcon:n}){if(e)return Yd[`compact-${t}`];let r=Yd[t];return of(hi({},r),{paddingLeft:o?r.paddingLeft/1.5:r.paddingLeft,paddingRight:n?r.paddingRight/1.5:r.paddingRight})}var XP=e=>({display:e?"block":"inline-block",width:e?"100%":"auto"});function YP({variant:e,theme:t,color:o,gradient:n}){let r=t.fn.variant({color:o,variant:e,gradient:n});return e==="gradient"?{border:0,backgroundImage:r.background,color:r.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:hi({border:`1px solid ${r.border}`,backgroundColor:r.background,color:r.color},t.fn.hover({backgroundColor:r.hover}))}var QP=W((e,{color:t,size:o,radius:n,fullWidth:r,compact:a,gradient:i,variant:l,withLeftIcon:c,withRightIcon:s})=>({root:of(hi(of(hi(hi(hi(hi({},KP({compact:a,size:o,withLeftIcon:c,withRightIcon:s})),e.fn.fontStyles()),e.fn.focusStyles()),XP(r)),{borderRadius:e.fn.radius(n),fontWeight:600,position:"relative",lineHeight:1,fontSize:e.fn.size({size:o,sizes:e.fontSizes}),userSelect:"none",cursor:"pointer"}),YP({variant:l,theme:e,color:t,gradient:i})),{"&:active":e.activeStyles,"&:disabled, &[data-disabled]":{borderColor:"transparent",backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],color:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[5],cursor:"not-allowed",backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(n),cursor:"not-allowed"}}}),icon:{display:"flex",alignItems:"center"},leftIcon:{marginRight:10},rightIcon:{marginLeft:10},centerLoader:{position:"absolute",left:"50%",transform:"translateX(-50%)",opacity:.5},inner:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"visible"},label:{whiteSpace:"nowrap",height:"100%",overflow:"hidden",display:"flex",alignItems:"center"}})),I7=QP;var ZP=Object.defineProperty,Qd=Object.getOwnPropertySymbols,j7=Object.prototype.hasOwnProperty,H7=Object.prototype.propertyIsEnumerable,N7=(e,t,o)=>t in e?ZP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,B7=(e,t)=>{for(var o in t||(t={}))j7.call(t,o)&&N7(e,o,t[o]);if(Qd)for(var o of Qd(t))H7.call(t,o)&&N7(e,o,t[o]);return e},JP=(e,t)=>{var o={};for(var n in e)j7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Qd)for(var n of Qd(e))t.indexOf(n)<0&&H7.call(e,n)&&(o[n]=e[n]);return o},eR={size:"sm",type:"button",variant:"filled",loaderPosition:"left"},nf=(0,Xn.forwardRef)((e,t)=>{let o=S("Button",eR,e),{className:n,size:r,color:a,type:i,disabled:l,children:c,leftIcon:s,rightIcon:d,fullWidth:h,variant:v,radius:u,uppercase:w,compact:k,loading:E,loaderPosition:p,loaderProps:m,gradient:f,classNames:g,styles:M,unstyled:z}=o,x=JP(o,["className","size","color","type","disabled","children","leftIcon","rightIcon","fullWidth","variant","radius","uppercase","compact","loading","loaderPosition","loaderProps","gradient","classNames","styles","unstyled"]),{classes:b,cx:L,theme:C}=I7({radius:u,color:a,size:r,fullWidth:h,compact:k,gradient:f,variant:v,withLeftIcon:!!s,withRightIcon:!!d},{name:"Button",unstyled:z,classNames:g,styles:M}),B=C.fn.variant({color:a,variant:v}),N=Xn.default.createElement(an,B7({color:B.color,size:C.fn.size({size:r,sizes:Yd}).height/2},m));return Xn.default.createElement(El,B7({className:L(b.root,n),type:i,disabled:l,"data-button":!0,"data-disabled":l||void 0,"data-loading":E||void 0,ref:t,unstyled:z},x),Xn.default.createElement("div",{className:b.inner},(s||E&&p==="left")&&Xn.default.createElement("span",{className:L(b.icon,b.leftIcon)},E&&p==="left"?N:s),E&&p==="center"&&Xn.default.createElement("span",{className:b.centerLoader},N),Xn.default.createElement("span",{className:b.label,style:{textTransform:w?"uppercase":void 0}},c),(d||E&&p==="right")&&Xn.default.createElement("span",{className:L(b.icon,b.rightIcon)},E&&p==="right"?N:d)))});nf.displayName="@mantine/core/Button";nf.Group=tf;var It=nf;var br=y(I());var Jd=y(I());var tR=W((e,{radius:t,shadow:o,withBorder:n})=>({root:{outline:0,WebkitTapHighlightColor:"transparent",display:"block",textDecoration:"none",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,boxSizing:"border-box",borderRadius:e.fn.radius(t),boxShadow:e.shadows[o]||o||"none",border:n?`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`:void 0}})),W7=tR;var oR=Object.defineProperty,Zd=Object.getOwnPropertySymbols,_7=Object.prototype.hasOwnProperty,O7=Object.prototype.propertyIsEnumerable,S7=(e,t,o)=>t in e?oR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,nR=(e,t)=>{for(var o in t||(t={}))_7.call(t,o)&&S7(e,o,t[o]);if(Zd)for(var o of Zd(t))O7.call(t,o)&&S7(e,o,t[o]);return e},rR=(e,t)=>{var o={};for(var n in e)_7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Zd)for(var n of Zd(e))t.indexOf(n)<0&&O7.call(e,n)&&(o[n]=e[n]);return o},aR={},P7=(0,Jd.forwardRef)((e,t)=>{let o=S("Paper",aR,e),{className:n,children:r,radius:a,withBorder:i,shadow:l,unstyled:c}=o,s=rR(o,["className","children","radius","withBorder","shadow","unstyled"]),{classes:d,cx:h}=W7({radius:a,shadow:l,withBorder:i},{name:"Paper",unstyled:c});return Jd.default.createElement(D,nR({className:h(d.root,n),ref:t},s),r)});P7.displayName="@mantine/core/Paper";var eh=P7;var nh=y(I());var th=y(I()),R7=(0,th.createContext)({padding:0}),T7=R7.Provider,A7=()=>(0,th.useContext)(R7).padding;var iR=W((e,{padding:t,withBorder:o,inheritPadding:n})=>{let r=e.fn.size({size:t,sizes:e.spacing}),a=-1*r,i=e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3];return{cardSection:{display:"block",marginLeft:a,marginRight:a,paddingLeft:n?r:void 0,paddingRight:n?r:void 0,borderTop:o&&`1px solid ${i}`,borderBottom:o&&`1px solid ${i}`,"& + &":{borderTop:0},"&[data-first]":{marginTop:a,borderTop:0,borderBottom:o&&`1px solid ${i}`},"&[data-last]":{marginBottom:a,borderBottom:0}}}}),D7=iR;var lR=Object.defineProperty,oh=Object.getOwnPropertySymbols,$7=Object.prototype.hasOwnProperty,V7=Object.prototype.propertyIsEnumerable,F7=(e,t,o)=>t in e?lR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,cR=(e,t)=>{for(var o in t||(t={}))$7.call(t,o)&&F7(e,o,t[o]);if(oh)for(var o of oh(t))V7.call(t,o)&&F7(e,o,t[o]);return e},sR=(e,t)=>{var o={};for(var n in e)$7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&oh)for(var n of oh(e))t.indexOf(n)<0&&V7.call(e,n)&&(o[n]=e[n]);return o},dR={withBorder:!1,inheritPadding:!1},U7=(0,nh.forwardRef)((e,t)=>{let o=S("CardSection",dR,e),{className:n,withBorder:r,inheritPadding:a,unstyled:i}=o,l=sR(o,["className","withBorder","inheritPadding","unstyled"]),{classes:c,cx:s}=D7({padding:A7(),withBorder:r,inheritPadding:a},{name:"Card",unstyled:i});return nh.default.createElement(D,cR({className:s(c.cardSection,n),ref:t},l))});U7.displayName="@mantine/core/CardSection";var rf=U7;var hR=W(e=>({root:{position:"relative",overflow:"hidden",backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white}})),q7=hR;var vR=Object.defineProperty,rh=Object.getOwnPropertySymbols,K7=Object.prototype.hasOwnProperty,X7=Object.prototype.propertyIsEnumerable,G7=(e,t,o)=>t in e?vR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,mR=(e,t)=>{for(var o in t||(t={}))K7.call(t,o)&&G7(e,o,t[o]);if(rh)for(var o of rh(t))X7.call(t,o)&&G7(e,o,t[o]);return e},uR=(e,t)=>{var o={};for(var n in e)K7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&rh)for(var n of rh(e))t.indexOf(n)<0&&X7.call(e,n)&&(o[n]=e[n]);return o},pR={p:"md"},af=(0,br.forwardRef)((e,t)=>{let o=S("Card",pR,e),{className:n,p:r,radius:a,children:i,unstyled:l}=o,c=uR(o,["className","p","radius","children","unstyled"]),{classes:s,cx:d}=q7(null,{name:"Card",unstyled:l}),h=br.Children.toArray(i),v=h.map((u,w)=>typeof u=="object"&&u&&"type"in u&&u.type===rf?(0,br.cloneElement)(u,{padding:r,"data-first":w===0||void 0,"data-last":w===h.length-1||void 0}):u);return br.default.createElement(T7,{value:{padding:r}},br.default.createElement(eh,mR({className:d(s.root,n),radius:a,p:r,ref:t},c),v))});af.Section=rf;af.displayName="@mantine/core/Card";var lf=af;var ih=y(I());var kR=Object.defineProperty,ah=Object.getOwnPropertySymbols,Q7=Object.prototype.hasOwnProperty,Z7=Object.prototype.propertyIsEnumerable,Y7=(e,t,o)=>t in e?kR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,wR=(e,t)=>{for(var o in t||(t={}))Q7.call(t,o)&&Y7(e,o,t[o]);if(ah)for(var o of ah(t))Z7.call(t,o)&&Y7(e,o,t[o]);return e},ER=(e,t)=>{var o={};for(var n in e)Q7.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&ah)for(var n of ah(e))t.indexOf(n)<0&&Z7.call(e,n)&&(o[n]=e[n]);return o},J7=(0,ih.forwardRef)((e,t)=>{let o=S("Center",{},e),{inline:n,sx:r}=o,a=ER(o,["inline","sx"]);return ih.default.createElement(D,wR({ref:t,sx:[{display:n?"inline-flex":"flex",alignItems:"center",justifyContent:"center"},...zo(r)]},a))});J7.displayName="@mantine/core/Center";var cf=J7;var hf=y(I());var ch=y(I());var e9=y(I());function t9(e){return e9.Children.toArray(e).filter(Boolean)}var sf={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"},gR=W((e,{spacing:t,position:o,noWrap:n,grow:r,align:a,count:i})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:a||"center",flexWrap:n?"nowrap":"wrap",justifyContent:sf[o],gap:e.fn.size({size:t,sizes:e.spacing}),"& > *":{boxSizing:"border-box",maxWidth:r?`calc(${100/i}% - ${e.fn.size({size:t,sizes:e.spacing})-e.fn.size({size:t,sizes:e.spacing})/i}px)`:void 0,flexGrow:r?1:0}}})),o9=gR;var xR=Object.defineProperty,lh=Object.getOwnPropertySymbols,r9=Object.prototype.hasOwnProperty,a9=Object.prototype.propertyIsEnumerable,n9=(e,t,o)=>t in e?xR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,MR=(e,t)=>{for(var o in t||(t={}))r9.call(t,o)&&n9(e,o,t[o]);if(lh)for(var o of lh(t))a9.call(t,o)&&n9(e,o,t[o]);return e},zR=(e,t)=>{var o={};for(var n in e)r9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&lh)for(var n of lh(e))t.indexOf(n)<0&&a9.call(e,n)&&(o[n]=e[n]);return o},bR={position:"left",spacing:"md"},ha=(0,ch.forwardRef)((e,t)=>{let o=S("Group",bR,e),{className:n,position:r,align:a,children:i,noWrap:l,grow:c,spacing:s,unstyled:d}=o,h=zR(o,["className","position","align","children","noWrap","grow","spacing","unstyled"]),v=t9(i),{classes:u,cx:w}=o9({align:a,grow:c,noWrap:l,spacing:s,position:r,count:v.length},{unstyled:d,name:"Group"});return ch.default.createElement(D,MR({className:w(u.root,n),ref:t},h),v)});ha.displayName="@mantine/core/Group";var dh=y(I());var yR=W((e,{spacing:t,align:o,justify:n})=>({root:{display:"flex",flexDirection:"column",alignItems:o,justifyContent:n,gap:e.fn.size({size:t,sizes:e.spacing})}})),i9=yR;var LR=Object.defineProperty,sh=Object.getOwnPropertySymbols,c9=Object.prototype.hasOwnProperty,s9=Object.prototype.propertyIsEnumerable,l9=(e,t,o)=>t in e?LR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,CR=(e,t)=>{for(var o in t||(t={}))c9.call(t,o)&&l9(e,o,t[o]);if(sh)for(var o of sh(t))s9.call(t,o)&&l9(e,o,t[o]);return e},IR=(e,t)=>{var o={};for(var n in e)c9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&sh)for(var n of sh(e))t.indexOf(n)<0&&s9.call(e,n)&&(o[n]=e[n]);return o},NR={spacing:"md",align:"stretch",justify:"top"},df=(0,dh.forwardRef)((e,t)=>{let o=S("Stack",NR,e),{spacing:n,className:r,align:a,justify:i,unstyled:l}=o,c=IR(o,["spacing","className","align","justify","unstyled"]),{classes:s,cx:d}=i9({spacing:n,align:a,justify:i},{name:"Stack",unstyled:l});return dh.default.createElement(D,CR({className:d(s.root,r),ref:t},c))});df.displayName="@mantine/core/Stack";function d9({spacing:e,offset:t,orientation:o,children:n,role:r,unstyled:a}){return o==="horizontal"?hf.default.createElement(ha,{pt:t,spacing:e,role:r,unstyled:a},n):hf.default.createElement(df,{pt:t,spacing:e,role:r,unstyled:a},n)}var mi=y(I());var BR=Object.defineProperty,jR=Object.defineProperties,HR=Object.getOwnPropertyDescriptors,h9=Object.getOwnPropertySymbols,WR=Object.prototype.hasOwnProperty,SR=Object.prototype.propertyIsEnumerable,v9=(e,t,o)=>t in e?BR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,_R=(e,t)=>{for(var o in t||(t={}))WR.call(t,o)&&v9(e,o,t[o]);if(h9)for(var o of h9(t))SR.call(t,o)&&v9(e,o,t[o]);return e},OR=(e,t)=>jR(e,HR(t)),PR={xs:16,sm:20,md:24,lg:30,xl:36},RR=W((e,{labelPosition:t,size:o})=>({root:{},body:{display:"inline-flex"},labelWrapper:OR(_R({},e.fn.fontStyles()),{display:"inline-flex",flexDirection:"column",WebkitTapHighlightColor:"transparent",fontSize:e.fn.size({size:o,sizes:e.fontSizes}),lineHeight:`${e.fn.size({size:o,sizes:PR})}px`,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,cursor:e.cursorType,order:t==="left"?1:2}),description:{marginTop:`calc(${e.spacing.xs}px / 2)`,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm},error:{marginTop:`calc(${e.spacing.xs}px / 2)`,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm},label:{cursor:e.cursorType,[t==="left"?"paddingRight":"paddingLeft"]:e.spacing.sm,"&[data-disabled]":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}}})),m9=RR;var TR=Object.defineProperty,hh=Object.getOwnPropertySymbols,p9=Object.prototype.hasOwnProperty,f9=Object.prototype.propertyIsEnumerable,u9=(e,t,o)=>t in e?TR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,AR=(e,t)=>{for(var o in t||(t={}))p9.call(t,o)&&u9(e,o,t[o]);if(hh)for(var o of hh(t))f9.call(t,o)&&u9(e,o,t[o]);return e},DR=(e,t)=>{var o={};for(var n in e)p9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&hh)for(var n of hh(e))t.indexOf(n)<0&&f9.call(e,n)&&(o[n]=e[n]);return o};function vf(e){var t=e,{__staticSelector:o,className:n,classNames:r,styles:a,unstyled:i,children:l,label:c,description:s,id:d,disabled:h,error:v,size:u,labelPosition:w}=t,k=DR(t,["__staticSelector","className","classNames","styles","unstyled","children","label","description","id","disabled","error","size","labelPosition"]);let{classes:E,cx:p}=m9({size:u,labelPosition:w},{name:o,styles:a,classNames:r,unstyled:i});return mi.default.createElement(D,AR({className:p(E.root,n)},k),mi.default.createElement("div",{className:p(E.body)},l,mi.default.createElement("div",{className:E.labelWrapper},c&&mi.default.createElement("label",{className:E.label,"data-disabled":h||void 0,htmlFor:d},c),s&&mi.default.createElement(Ct.Description,{className:E.description},s),v&&v!=="boolean"&&mi.default.createElement(Ct.Error,{className:E.error},v))))}vf.displayName="@mantine/core/InlineInput";var e0=y(I());var FR=Object.defineProperty,$R=Object.defineProperties,VR=Object.getOwnPropertyDescriptors,k9=Object.getOwnPropertySymbols,UR=Object.prototype.hasOwnProperty,qR=Object.prototype.propertyIsEnumerable,w9=(e,t,o)=>t in e?FR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,GR=(e,t)=>{for(var o in t||(t={}))UR.call(t,o)&&w9(e,o,t[o]);if(k9)for(var o of k9(t))qR.call(t,o)&&w9(e,o,t[o]);return e},KR=(e,t)=>$R(e,VR(t)),XR=W((e,{color:t})=>{let o=t||(e.colorScheme==="dark"?"dark":"gray"),n=e.fn.variant({color:o,variant:"light"});return{root:KR(GR({},e.fn.fontStyles()),{lineHeight:e.lineHeight,padding:`2px calc(${e.spacing.xs}px / 2)`,borderRadius:e.radius.sm,color:e.colorScheme==="dark"?o==="dark"?e.colors.dark[0]:e.white:e.colors.dark[7],backgroundColor:e.colorScheme==="dark"&&o==="dark"?e.colors.dark[5]:n.background,fontFamily:e.fontFamilyMonospace,fontSize:e.fontSizes.xs}),block:{padding:e.spacing.xs,margin:0,overflowX:"auto"}}}),E9=XR;var YR=Object.defineProperty,vh=Object.getOwnPropertySymbols,M9=Object.prototype.hasOwnProperty,z9=Object.prototype.propertyIsEnumerable,g9=(e,t,o)=>t in e?YR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,x9=(e,t)=>{for(var o in t||(t={}))M9.call(t,o)&&g9(e,o,t[o]);if(vh)for(var o of vh(t))z9.call(t,o)&&g9(e,o,t[o]);return e},QR=(e,t)=>{var o={};for(var n in e)M9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&vh)for(var n of vh(e))t.indexOf(n)<0&&z9.call(e,n)&&(o[n]=e[n]);return o},mh=(0,e0.forwardRef)((e,t)=>{let o=S("Code",{},e),{className:n,children:r,block:a,color:i,unstyled:l}=o,c=QR(o,["className","children","block","color","unstyled"]),{classes:s,cx:d}=E9({color:i},{name:"Code",unstyled:l});return a?e0.default.createElement(D,x9({component:"pre",dir:"ltr",className:d(s.root,s.block,n),ref:t},c),r):e0.default.createElement(D,x9({component:"code",className:d(s.root,n),ref:t,dir:"ltr"},c),r)});mh.displayName="@mantine/core/Code";var Nt=y(I());var wt=y(I());var va=y(I());var ZR=Object.defineProperty,JR=Object.defineProperties,eT=Object.getOwnPropertyDescriptors,b9=Object.getOwnPropertySymbols,tT=Object.prototype.hasOwnProperty,oT=Object.prototype.propertyIsEnumerable,y9=(e,t,o)=>t in e?ZR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,nT=(e,t)=>{for(var o in t||(t={}))tT.call(t,o)&&y9(e,o,t[o]);if(b9)for(var o of b9(t))oT.call(t,o)&&y9(e,o,t[o]);return e},rT=(e,t)=>JR(e,eT(t)),aT=W((e,{size:t,radius:o})=>{let n=e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3];return{root:rT(nT({},e.fn.focusStyles()),{width:t,height:t,WebkitTapHighlightColor:"transparent",border:0,borderRadius:e.fn.size({size:o,sizes:e.radius}),appearance:"none",WebkitAppearance:"none",padding:0,position:"relative",overflow:"hidden"}),overlay:{position:"absolute",borderRadius:e.fn.size({size:o,sizes:e.radius}),top:0,left:0,right:0,bottom:0},children:{display:"inline-flex",justifyContent:"center",alignItems:"center"},shadowOverlay:{boxShadow:"rgba(0, 0, 0, .1) 0px 0px 0px 1px inset, rgb(0, 0, 0, .15) 0px 0px 4px inset",zIndex:1},alphaOverlay:{backgroundImage:`linear-gradient(45deg, ${n} 25%, transparent 25%), linear-gradient(-45deg, ${n} 25%, transparent 25%), linear-gradient(45deg, transparent 75%, ${n} 75%), linear-gradient(-45deg, ${e.colorScheme==="dark"?e.colors.dark[7]:e.white} 75%, ${n} 75%)`,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0px"}}}),L9=aT;var iT=Object.defineProperty,uh=Object.getOwnPropertySymbols,I9=Object.prototype.hasOwnProperty,N9=Object.prototype.propertyIsEnumerable,C9=(e,t,o)=>t in e?iT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,lT=(e,t)=>{for(var o in t||(t={}))I9.call(t,o)&&C9(e,o,t[o]);if(uh)for(var o of uh(t))N9.call(t,o)&&C9(e,o,t[o]);return e},cT=(e,t)=>{var o={};for(var n in e)I9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&uh)for(var n of uh(e))t.indexOf(n)<0&&N9.call(e,n)&&(o[n]=e[n]);return o},sT={size:25,radius:25,withShadow:!0},B9=(0,va.forwardRef)((e,t)=>{let o=S("ColorSwatch",sT,e),{color:n,size:r,radius:a,className:i,children:l,classNames:c,styles:s,unstyled:d,withShadow:h}=o,v=cT(o,["color","size","radius","className","children","classNames","styles","unstyled","withShadow"]),{classes:u,cx:w}=L9({radius:a,size:r},{classNames:c,styles:s,unstyled:d,name:"ColorSwatch"});return va.default.createElement(D,lT({className:w(u.root,i),ref:t},v),va.default.createElement("div",{className:w(u.alphaOverlay,u.overlay)}),h&&va.default.createElement("div",{className:w(u.shadowOverlay,u.overlay)}),va.default.createElement("div",{className:u.overlay,style:{backgroundColor:n}}),va.default.createElement("div",{className:w(u.children,u.overlay)},l))});B9.displayName="@mantine/core/ColorSwatch";var Ol=B9;var kh=y(I());var Yn=y(I());var S9=y(I());var $o={xs:8,sm:12,md:16,lg:20,xl:22},dT=W((e,{size:t})=>{let o=e.fn.size({size:t,sizes:$o});return{thumb:{overflow:"hidden",boxSizing:"border-box",position:"absolute",boxShadow:"0 0 1px rgba(0, 0, 0, .6)",border:`2px solid ${e.white}`,backgroundColor:"transparent",width:o,height:o,borderRadius:o}}}),j9=dT;var hT=Object.defineProperty,H9=Object.getOwnPropertySymbols,vT=Object.prototype.hasOwnProperty,mT=Object.prototype.propertyIsEnumerable,W9=(e,t,o)=>t in e?hT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,uT=(e,t)=>{for(var o in t||(t={}))vT.call(t,o)&&W9(e,o,t[o]);if(H9)for(var o of H9(t))mT.call(t,o)&&W9(e,o,t[o]);return e};function t0({position:e,className:t,styles:o,classNames:n,style:r,size:a,__staticSelector:i,unstyled:l}){let{classes:c,cx:s}=j9({size:a},{classNames:n,styles:o,name:i,unstyled:l});return S9.default.createElement("div",{className:s(c.thumb,t),style:uT({left:`calc(${e.x*100}% - ${$o[a]/2}px)`,top:`calc(${e.y*100}% - ${$o[a]/2}px)`},r)})}t0.displayName="@mantine/core/Thumb";var pT=Object.defineProperty,_9=Object.getOwnPropertySymbols,fT=Object.prototype.hasOwnProperty,kT=Object.prototype.propertyIsEnumerable,O9=(e,t,o)=>t in e?pT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,P9=(e,t)=>{for(var o in t||(t={}))fT.call(t,o)&&O9(e,o,t[o]);if(_9)for(var o of _9(t))kT.call(t,o)&&O9(e,o,t[o]);return e},wT=W((e,{size:t},o)=>({sliderThumb:{ref:o("sliderThumb")},slider:{position:"relative",height:e.fn.size({size:t,sizes:$o})+2,boxSizing:"border-box",marginLeft:e.fn.size({size:t,sizes:$o})/2,marginRight:e.fn.size({size:t,sizes:$o})/2,outline:0,[`&:focus .${o("sliderThumb")}`]:P9({},e.focusRing==="always"||e.focusRing==="auto"?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[`&:focus:not(:focus-visible) .${o("sliderThumb")}`]:P9({},e.focusRing==="auto"||e.focusRing==="never"?e.focusRingStyles.resetStyles(e):null)},sliderOverlay:{position:"absolute",boxSizing:"border-box",top:0,bottom:0,left:-e.fn.size({size:t,sizes:$o})/2-1,right:-e.fn.size({size:t,sizes:$o})/2-1,borderRadius:1e3}})),R9=wT;var ET=Object.defineProperty,gT=Object.defineProperties,xT=Object.getOwnPropertyDescriptors,ph=Object.getOwnPropertySymbols,A9=Object.prototype.hasOwnProperty,D9=Object.prototype.propertyIsEnumerable,T9=(e,t,o)=>t in e?ET(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,MT=(e,t)=>{for(var o in t||(t={}))A9.call(t,o)&&T9(e,o,t[o]);if(ph)for(var o of ph(t))D9.call(t,o)&&T9(e,o,t[o]);return e},zT=(e,t)=>gT(e,xT(t)),bT=(e,t)=>{var o={};for(var n in e)A9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&ph)for(var n of ph(e))t.indexOf(n)<0&&D9.call(e,n)&&(o[n]=e[n]);return o},o0=(0,Yn.forwardRef)((e,t)=>{var o=e,{value:n,onChange:r,onChangeEnd:a,maxValue:i,round:l,size:c="md",thumbColor:s="transparent",__staticSelector:d="ColorSlider",focusable:h=!0,overlays:v,classNames:u,styles:w,className:k,unstyled:E}=o,p=bT(o,["value","onChange","onChangeEnd","maxValue","round","size","thumbColor","__staticSelector","focusable","overlays","classNames","styles","className","unstyled"]);let{classes:m,cx:f}=R9({size:c},{classNames:u,styles:w,name:d,unstyled:E}),[g,M]=(0,Yn.useState)({y:0,x:n/i}),z=(0,Yn.useRef)(g),x=N=>l?Math.round(N*i):N*i,{ref:b}=ri(({x:N,y:j})=>{z.current={x:N,y:j},r(x(N))},{onScrubEnd:()=>{let{x:N}=z.current;a(x(N))}});Ze(()=>{M({y:0,x:n/i})},[n]);let L=(N,j)=>{N.preventDefault();let T=js(j);r(x(T.x)),a(x(T.x))},C=N=>{switch(N.key){case"ArrowRight":{L(N,{x:g.x+.05,y:g.y});break}case"ArrowLeft":{L(N,{x:g.x-.05,y:g.y});break}}},B=v.map((N,j)=>Yn.default.createElement("div",{className:m.sliderOverlay,style:N,key:j}));return Yn.default.createElement(D,zT(MT({},p),{ref:At(b,t),className:f(m.slider,k),role:"slider","aria-valuenow":n,"aria-valuemax":i,"aria-valuemin":0,tabIndex:h?0:-1,onKeyDown:C}),B,Yn.default.createElement(t0,{__staticSelector:d,classNames:u,styles:w,position:g,style:{top:1,backgroundColor:s},className:m.sliderThumb,size:c}))});o0.displayName="@mantine/core/ColorSlider";var yT=Object.defineProperty,LT=Object.defineProperties,CT=Object.getOwnPropertyDescriptors,fh=Object.getOwnPropertySymbols,$9=Object.prototype.hasOwnProperty,V9=Object.prototype.propertyIsEnumerable,F9=(e,t,o)=>t in e?yT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,IT=(e,t)=>{for(var o in t||(t={}))$9.call(t,o)&&F9(e,o,t[o]);if(fh)for(var o of fh(t))V9.call(t,o)&&F9(e,o,t[o]);return e},NT=(e,t)=>LT(e,CT(t)),BT=(e,t)=>{var o={};for(var n in e)$9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&fh)for(var n of fh(e))t.indexOf(n)<0&&V9.call(e,n)&&(o[n]=e[n]);return o},mf=(0,kh.forwardRef)((e,t)=>{var o=e,{value:n,onChange:r,onChangeEnd:a}=o,i=BT(o,["value","onChange","onChangeEnd"]);return kh.default.createElement(o0,NT(IT({},i),{ref:t,value:n,onChange:r,onChangeEnd:a,maxValue:360,thumbColor:`hsl(${n}, 100%, 50%)`,round:!0,overlays:[{backgroundImage:"linear-gradient(to right,hsl(0,100%,50%),hsl(60,100%,50%),hsl(120,100%,50%),hsl(170,100%,50%),hsl(240,100%,50%),hsl(300,100%,50%),hsl(360,100%,50%))"},{boxShadow:"rgba(0, 0, 0, .1) 0px 0px 0px 1px inset, rgb(0, 0, 0, .15) 0px 0px 4px inset"}]}))});mf.displayName="@mantine/core/HueSlider";var Eh=y(I());var jT=Object.defineProperty,HT=Object.defineProperties,WT=Object.getOwnPropertyDescriptors,U9=Object.getOwnPropertySymbols,ST=Object.prototype.hasOwnProperty,_T=Object.prototype.propertyIsEnumerable,q9=(e,t,o)=>t in e?jT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,G9=(e,t)=>{for(var o in t||(t={}))ST.call(t,o)&&q9(e,o,t[o]);if(U9)for(var o of U9(t))_T.call(t,o)&&q9(e,o,t[o]);return e},K9=(e,t)=>HT(e,WT(t));function Vo(e,t=0,o=10**t){return Math.round(o*e)/o}function OT({h:e,s:t,l:o,a:n}){let r=t*((o<50?o:100-o)/100);return{h:e,s:r>0?2*r/(o+r)*100:0,v:o+r,a:n}}var PT={grad:360/400,turn:360,rad:360/(Math.PI*2)};function RT(e,t="deg"){return Number(e)*(PT[t]||1)}var TT=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function X9(e){let t=TT.exec(e);return t?OT({h:RT(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}}function uf({r:e,g:t,b:o,a:n}){let r=Math.max(e,t,o),a=r-Math.min(e,t,o),i=a?r===e?(t-o)/a:r===t?2+(o-e)/a:4+(e-t)/a:0;return{h:Vo(60*(i<0?i+6:i)),s:Vo(r?a/r*100:0),v:Vo(r/255*100),a:n}}function pf(e){let t=e[0]==="#"?e.slice(1):e;return t.length===3?uf({r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:1}):uf({r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:1})}function AT(e){let t=e[0]==="#"?e.slice(1):e,o=i=>Math.round(parseInt(i,16)/255*100)/100;if(t.length===4){let i=t.slice(0,3),l=o(t[3]+t[3]);return K9(G9({},pf(i)),{a:l})}let n=t.slice(0,6),r=o(t.slice(6,8));return K9(G9({},pf(n)),{a:r})}var DT=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function Y9(e){let t=DT.exec(e);return t?uf({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}}var Q9={hex:/^#?([0-9A-F]{3}){1,2}$/i,hexa:/^#?([0-9A-F]{4}){1,2}$/i,rgb:/^rgb\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,rgba:/^rgba\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,hsl:/hsl\(\s*(\d+)\s*,\s*(\d+(?:\.\d+)?%)\s*,\s*(\d+(?:\.\d+)?%)\)/i,hsla:/^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d*(?:\.\d+)?)\)$/i},FT={hex:pf,hexa:AT,rgb:Y9,rgba:Y9,hsl:X9,hsla:X9};function ui(e){for(let[,t]of Object.entries(Q9))if(t.test(e))return!0;return!1}function ma(e){if(typeof e!="string")return{h:0,s:0,v:0,a:1};if(e==="transparent")return{h:0,s:0,v:0,a:0};let t=e.trim();for(let[o,n]of Object.entries(Q9))if(n.test(t))return FT[o](t);return{h:0,s:0,v:0,a:1}}var $T=Object.defineProperty,VT=Object.defineProperties,UT=Object.getOwnPropertyDescriptors,wh=Object.getOwnPropertySymbols,J9=Object.prototype.hasOwnProperty,ez=Object.prototype.propertyIsEnumerable,Z9=(e,t,o)=>t in e?$T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,qT=(e,t)=>{for(var o in t||(t={}))J9.call(t,o)&&Z9(e,o,t[o]);if(wh)for(var o of wh(t))ez.call(t,o)&&Z9(e,o,t[o]);return e},GT=(e,t)=>VT(e,UT(t)),KT=(e,t)=>{var o={};for(var n in e)J9.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&wh)for(var n of wh(e))t.indexOf(n)<0&&ez.call(e,n)&&(o[n]=e[n]);return o},ff=(0,Eh.forwardRef)((e,t)=>{var o=e,{value:n,onChange:r,onChangeEnd:a,color:i}=o,l=KT(o,["value","onChange","onChangeEnd","color"]);let c=je(),s=c.colorScheme==="dark"?c.colors.dark[4]:c.colors.gray[3];return Eh.default.createElement(o0,GT(qT({},l),{ref:t,value:n,onChange:d=>r(Vo(d,2)),onChangeEnd:d=>a(Vo(d,2)),maxValue:1,round:!1,overlays:[{backgroundImage:`linear-gradient(45deg, ${s} 25%, transparent 25%), linear-gradient(-45deg, ${s} 25%, transparent 25%), linear-gradient(45deg, transparent 75%, ${s} 75%), linear-gradient(-45deg, ${c.colorScheme==="dark"?c.colors.dark[7]:c.white} 75%, ${s} 75%)`,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0px"},{backgroundImage:`linear-gradient(90deg, transparent, ${i})`},{boxShadow:"rgba(0, 0, 0, .1) 0px 0px 0px 1px inset, rgb(0, 0, 0, .15) 0px 0px 4px inset"}]}))});ff.displayName="@mantine/core/AlphaSlider";var dn=y(I());var XT=Object.defineProperty,tz=Object.getOwnPropertySymbols,YT=Object.prototype.hasOwnProperty,QT=Object.prototype.propertyIsEnumerable,oz=(e,t,o)=>t in e?XT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,kf=(e,t)=>{for(var o in t||(t={}))YT.call(t,o)&&oz(e,o,t[o]);if(tz)for(var o of tz(t))QT.call(t,o)&&oz(e,o,t[o]);return e},ZT={xs:100,sm:110,md:120,lg:140,xl:160},JT=W((e,{size:t},o)=>({saturationThumb:{ref:o("saturationThumb")},saturation:{boxSizing:"border-box",position:"relative",height:e.fn.size({size:t,sizes:ZT}),borderRadius:e.radius.sm,margin:e.fn.size({size:t,sizes:$o})/2,WebkitTapHighlightColor:"transparent",[`&:focus .${o("saturationThumb")}`]:kf({},e.focusRing==="always"||e.focusRing==="auto"?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[`&:focus:not(:focus-visible) .${o("saturationThumb")}`]:kf({},e.focusRing==="auto"||e.focusRing==="never"?e.focusRingStyles.resetStyles(e):null)},saturationOverlay:kf({boxSizing:"border-box",borderRadius:e.radius.sm},e.fn.cover(-e.fn.size({size:t,sizes:$o})/2-1))})),nz=JT;function iz({h:e,s:t,v:o,a:n}){let r=e/360*6,a=t/100,i=o/100,l=Math.floor(r),c=i*(1-a),s=i*(1-(r-l)*a),d=i*(1-(1-r+l)*a),h=l%6;return{r:Vo([i,s,c,c,d,i][h]*255),g:Vo([d,i,i,s,c,c][h]*255),b:Vo([c,c,d,i,i,s][h]*255),a:Vo(n,2)}}function rz(e,t){let{r:o,g:n,b:r,a}=iz(e);return t?`rgba(${o}, ${n}, ${r}, ${Vo(a,2)})`:`rgb(${o}, ${n}, ${r})`}function az({h:e,s:t,v:o,a:n},r){let a=(200-t)*o/100,i={h:Math.round(e),s:Math.round(a>0&&a<200?t*o/100/(a<=100?a:200-a)*100:0),l:Math.round(a/2)};return r?`hsla(${i.h}, ${i.s}%, ${i.l}%, ${Vo(n,2)})`:`hsl(${i.h}, ${i.s}%, ${i.l}%)`}function gh(e){let t=e.toString(16);return t.length<2?`0${t}`:t}function lz(e){let{r:t,g:o,b:n}=iz(e);return`#${gh(t)}${gh(o)}${gh(n)}`}function eA(e){let t=Math.round(e.a*255);return`${lz(e)}${gh(t)}`}var wf={hex:lz,hexa:e=>eA(e),rgb:e=>rz(e,!1),rgba:e=>rz(e,!0),hsl:e=>az(e,!1),hsla:e=>az(e,!0)};function yo(e,t){return t?e in wf?wf[e](t):wf.hex(t):"#000000"}function Ef({value:e,onChange:t,onChangeEnd:o,focusable:n=!0,__staticSelector:r="saturation",size:a,color:i,saturationLabel:l,classNames:c,styles:s,unstyled:d}){let{classes:h}=nz({size:a},{classNames:c,styles:s,name:r,unstyled:d}),[v,u]=(0,dn.useState)({x:e.s/100,y:1-e.v/100}),w=(0,dn.useRef)(v),{ref:k}=ri(({x:m,y:f})=>{w.current={x:m,y:f},t({s:Math.round(m*100),v:Math.round((1-f)*100)})},{onScrubEnd:()=>{let{x:m,y:f}=w.current;o({s:Math.round(m*100),v:Math.round((1-f)*100)})}});(0,dn.useEffect)(()=>{u({x:e.s/100,y:1-e.v/100})},[e.s,e.v]);let E=(m,f)=>{m.preventDefault();let g=js(f);t({s:Math.round(g.x*100),v:Math.round((1-g.y)*100)}),o({s:Math.round(g.x*100),v:Math.round((1-g.y)*100)})},p=m=>{switch(m.key){case"ArrowUp":{E(m,{y:v.y-.05,x:v.x});break}case"ArrowDown":{E(m,{y:v.y+.05,x:v.x});break}case"ArrowRight":{E(m,{x:v.x+.05,y:v.y});break}case"ArrowLeft":{E(m,{x:v.x-.05,y:v.y});break}}};return dn.default.createElement("div",{className:h.saturation,ref:k,role:"slider","aria-label":l,"aria-valuenow":v.x,"aria-valuetext":yo("rgba",e),tabIndex:n?0:-1,onKeyDown:p},dn.default.createElement("div",{className:h.saturationOverlay,style:{backgroundColor:`hsl(${e.h}, 100%, 50%)`}}),dn.default.createElement("div",{className:h.saturationOverlay,style:{backgroundImage:"linear-gradient(90deg, #fff, transparent)"}}),dn.default.createElement("div",{className:h.saturationOverlay,style:{backgroundImage:"linear-gradient(0deg, #000, transparent)"}}),dn.default.createElement(t0,{__staticSelector:r,classNames:c,styles:s,position:v,className:h.saturationThumb,style:{backgroundColor:i},size:a}))}Ef.displayName="@mantine/core/Saturation";var gf=y(I());var tA=W((e,{swatchesPerRow:t})=>({swatch:{width:`calc(${100/t}% - 4px)`,height:0,paddingBottom:`calc(${100/t}% - 4px)`,margin:2,boxSizing:"content-box"},swatches:{boxSizing:"border-box",marginLeft:-2,marginRight:-2,display:"flex",flexWrap:"wrap"}})),cz=tA;var oA=Object.defineProperty,xh=Object.getOwnPropertySymbols,dz=Object.prototype.hasOwnProperty,hz=Object.prototype.propertyIsEnumerable,sz=(e,t,o)=>t in e?oA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,nA=(e,t)=>{for(var o in t||(t={}))dz.call(t,o)&&sz(e,o,t[o]);if(xh)for(var o of xh(t))hz.call(t,o)&&sz(e,o,t[o]);return e},rA=(e,t)=>{var o={};for(var n in e)dz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&xh)for(var n of xh(e))t.indexOf(n)<0&&hz.call(e,n)&&(o[n]=e[n]);return o};function xf(e){var t=e,{data:o,swatchesPerRow:n=10,focusable:r=!0,classNames:a,styles:i,__staticSelector:l="color-picker",unstyled:c,setValue:s,onChangeEnd:d}=t,h=rA(t,["data","swatchesPerRow","focusable","classNames","styles","__staticSelector","unstyled","setValue","onChangeEnd"]);let{classes:v}=cz({swatchesPerRow:n},{classNames:a,styles:i,name:l,unstyled:c}),u=o.map((w,k)=>gf.default.createElement(Ol,{className:v.swatch,component:"button",type:"button",color:w,key:k,radius:"sm",onClick:()=>{s(w),d==null||d(w)},style:{cursor:"pointer"},"aria-label":w,tabIndex:r?0:-1}));return gf.default.createElement("div",nA({className:v.swatches},h),u)}xf.displayName="@mantine/core/Swatches";var aA={xs:180,sm:200,md:240,lg:280,xl:320},iA=W((e,{size:t,fullWidth:o})=>({preview:{},wrapper:{boxSizing:"border-box",width:o?"100%":e.fn.size({size:t,sizes:aA}),padding:1},body:{display:"flex",boxSizing:"border-box",paddingTop:e.fn.size({size:t,sizes:e.spacing})/2},sliders:{flex:1,boxSizing:"border-box","&:not(:only-child)":{marginRight:e.spacing.xs}},slider:{boxSizing:"border-box","& + &":{marginTop:5}},swatch:{cursor:"pointer"}})),vz=iA;var lA=Object.defineProperty,cA=Object.defineProperties,sA=Object.getOwnPropertyDescriptors,Mh=Object.getOwnPropertySymbols,uz=Object.prototype.hasOwnProperty,pz=Object.prototype.propertyIsEnumerable,mz=(e,t,o)=>t in e?lA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Pl=(e,t)=>{for(var o in t||(t={}))uz.call(t,o)&&mz(e,o,t[o]);if(Mh)for(var o of Mh(t))pz.call(t,o)&&mz(e,o,t[o]);return e},Mf=(e,t)=>cA(e,sA(t)),dA=(e,t)=>{var o={};for(var n in e)uz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Mh)for(var n of Mh(e))t.indexOf(n)<0&&pz.call(e,n)&&(o[n]=e[n]);return o},hA={xs:26,sm:34,md:42,lg:50,xl:54},vA={swatchesPerRow:10,size:"sm",withPicker:!0,focusable:!0,__staticSelector:"ColorPicker"},zf=(0,wt.forwardRef)((e,t)=>{let o=S("ColorPicker",vA,e),{value:n,defaultValue:r,onChange:a,onChangeEnd:i,format:l,swatches:c,swatchesPerRow:s,size:d,withPicker:h,fullWidth:v,focusable:u,__staticSelector:w,saturationLabel:k,hueLabel:E,alphaLabel:p,className:m,styles:f,classNames:g,unstyled:M,onColorSwatchClick:z}=o,x=dA(o,["value","defaultValue","onChange","onChangeEnd","format","swatches","swatchesPerRow","size","withPicker","fullWidth","focusable","__staticSelector","saturationLabel","hueLabel","alphaLabel","className","styles","classNames","unstyled","onColorSwatchClick"]),{classes:b,cx:L,theme:C}=vz({size:d,fullWidth:v},{classNames:g,styles:f,name:w,unstyled:M}),B=(0,wt.useRef)(l),N=(0,wt.useRef)(null),j=(0,wt.useRef)(!0),T=l==="hexa"||l==="rgba"||l==="hsla",[H,_]=ht({value:n,defaultValue:r,finalValue:"#FFFFFF",onChange:a}),[A,F]=(0,wt.useState)(ma(H)),V=$=>{j.current=!1,F(U=>{let oe=Pl(Pl({},U),$);return N.current=yo(B.current,oe),oe}),_(N.current),setTimeout(()=>{j.current=!0},0)};return Ze(()=>{ui(n)&&j.current&&(F(ma(n)),j.current=!0)},[n]),Ze(()=>{B.current=l,_(yo(l,A))},[l]),wt.default.createElement(D,Pl({className:L(b.wrapper,m),ref:t},x),h&&wt.default.createElement(wt.default.Fragment,null,wt.default.createElement(Ef,{value:A,onChange:V,onChangeEnd:({s:$,v:U})=>i==null?void 0:i(yo(B.current,Mf(Pl({},A),{s:$,v:U}))),color:H,styles:f,classNames:g,size:d,focusable:u,saturationLabel:k,__staticSelector:w}),wt.default.createElement("div",{className:b.body},wt.default.createElement("div",{className:b.sliders},wt.default.createElement(mf,{value:A.h,onChange:$=>V({h:$}),onChangeEnd:$=>i==null?void 0:i(yo(B.current,Mf(Pl({},A),{h:$}))),size:d,styles:f,classNames:g,focusable:u,"aria-label":E,__staticSelector:w}),T&&wt.default.createElement(ff,{value:A.a,onChange:$=>V({a:$}),onChangeEnd:$=>{i==null||i(yo(B.current,Mf(Pl({},A),{a:$})))},size:d,color:yo("hex",A),style:{marginTop:6},styles:f,classNames:g,focusable:u,"aria-label":p,__staticSelector:w})),T&&wt.default.createElement(Ol,{color:H,radius:"sm",size:C.fn.size({size:d,sizes:hA}),className:b.preview}))),Array.isArray(c)&&wt.default.createElement(xf,{data:c,style:{marginTop:5},swatchesPerRow:s,focusable:u,classNames:g,styles:f,__staticSelector:w,setValue:_,onChangeEnd:$=>{let U=yo(l,ma($));z==null||z(U),i==null||i(U)}}))});zf.displayName="@mantine/core/ColorPicker";var n0=y(I()),mA=Object.defineProperty,zh=Object.getOwnPropertySymbols,kz=Object.prototype.hasOwnProperty,wz=Object.prototype.propertyIsEnumerable,fz=(e,t,o)=>t in e?mA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,uA=(e,t)=>{for(var o in t||(t={}))kz.call(t,o)&&fz(e,o,t[o]);if(zh)for(var o of zh(t))wz.call(t,o)&&fz(e,o,t[o]);return e},pA=(e,t)=>{var o={};for(var n in e)kz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&zh)for(var n of zh(e))t.indexOf(n)<0&&wz.call(e,n)&&(o[n]=e[n]);return o};function Ez(e){var t=e,{size:o}=t,n=pA(t,["size"]);return n0.default.createElement("svg",uA({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-color-picker",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},n),n0.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n0.default.createElement("path",{d:"M11 7l6 6"}),n0.default.createElement("path",{d:"M4 16l11.7 -11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4l-11.7 11.7h-4v-4z"}))}var fA=Object.defineProperty,kA=Object.defineProperties,wA=Object.getOwnPropertyDescriptors,bh=Object.getOwnPropertySymbols,Mz=Object.prototype.hasOwnProperty,zz=Object.prototype.propertyIsEnumerable,gz=(e,t,o)=>t in e?fA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,bf=(e,t)=>{for(var o in t||(t={}))Mz.call(t,o)&&gz(e,o,t[o]);if(bh)for(var o of bh(t))zz.call(t,o)&&gz(e,o,t[o]);return e},xz=(e,t)=>kA(e,wA(t)),EA=(e,t)=>{var o={};for(var n in e)Mz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&bh)for(var n of bh(e))t.indexOf(n)<0&&zz.call(e,n)&&(o[n]=e[n]);return o},gA={xs:16,sm:18,md:22,lg:28,xl:36},xA={xs:14,sm:16,md:18,lg:20,xl:22},MA={xs:28,sm:32,md:38,lg:44,xl:58},zA={size:"sm",format:"hex",fixOnBlur:!0,withPreview:!0,swatchesPerRow:10,withPicker:!0,transition:"pop-top-left",dropdownZIndex:po("popover"),transitionDuration:0,withinPortal:!0,shadow:"md",withEyeDropper:!0},yh=(0,Nt.forwardRef)((e,t)=>{let o=sa("ColorInput",zA,e),{wrapperProps:n,inputProps:r,format:a,onChange:i,onChangeEnd:l,onFocus:c,onBlur:s,onClick:d,value:h,defaultValue:v,disallowInput:u,fixOnBlur:w,withPreview:k,swatchesPerRow:E,withPicker:p,icon:m,transition:f,dropdownZIndex:g,transitionDuration:M,transitionTimingFunction:z,withinPortal:x,swatches:b,shadow:L,classNames:C,styles:B,unstyled:N,readOnly:j,withEyeDropper:T,eyeDropperIcon:H,rightSection:_,rightSectionWidth:A,closeOnColorSwatchClick:F,disabled:V}=o,$=EA(o,["wrapperProps","inputProps","format","onChange","onChangeEnd","onFocus","onBlur","onClick","value","defaultValue","disallowInput","fixOnBlur","withPreview","swatchesPerRow","withPicker","icon","transition","dropdownZIndex","transitionDuration","transitionTimingFunction","withinPortal","swatches","shadow","classNames","styles","unstyled","readOnly","withEyeDropper","eyeDropperIcon","rightSection","rightSectionWidth","closeOnColorSwatchClick","disabled"]),U=je(),[oe,ve]=(0,Nt.useState)(!1),[J,he]=(0,Nt.useState)(""),[ue,ie]=ht({value:h,defaultValue:v,finalValue:"",onChange:i}),{supported:le,open:fe}=kp(),ne=Nt.default.createElement(ln,{sx:{color:U.colorScheme==="dark"?U.colors.dark[0]:U.black},size:r.size,onClick:()=>fe().then(({sRGBHex:We})=>ie(yo(a,ma(We)))).catch(ss)},H||Nt.default.createElement(Ez,{size:U.fn.size({size:r.size,sizes:xA})})),se=We=>{c==null||c(We),ve(!0)},ke=We=>{s==null||s(We),ve(!1),w&&ie(J)},De=We=>{d==null||d(We),ve(!0)};return(0,Nt.useEffect)(()=>{(ui(ue)||ue.trim()==="")&&he(ue)},[ue]),Ze(()=>{ui(ue)&&ie(yo(a,ma(ue)))},[a]),Nt.default.createElement(Ct.Wrapper,xz(bf({},n),{__staticSelector:"ColorInput"}),Nt.default.createElement(jn,{__staticSelector:"ColorInput",position:"bottom-start",offset:5,zIndex:g,withinPortal:x,transitionDuration:M,transition:f,opened:oe,shadow:L,classNames:C,styles:B,unstyled:N,disabled:j||p===!1&&(!Array.isArray(b)||b.length===0)},Nt.default.createElement(jn.Target,null,Nt.default.createElement("div",null,Nt.default.createElement(Ct,xz(bf(bf({autoComplete:"nope"},$),r),{disabled:V,ref:t,__staticSelector:"ColorInput",onFocus:se,onBlur:ke,onClick:De,spellCheck:!1,value:ue,onChange:We=>{let ao=We.currentTarget.value;ie(ao),ui(ao)&&(l==null||l(yo(a,ma(ao))))},icon:m||(k?Nt.default.createElement(Ol,{color:ui(ue)?ue:"#fff",size:U.fn.size({size:r.size,sizes:gA})}):null),readOnly:u||j,sx:{cursor:u?"pointer":void 0},unstyled:N,classNames:C,styles:B,rightSection:_||(T&&!V&&!j&&le?ne:null),rightSectionWidth:A!=null?A:U.fn.size({size:r.size,sizes:MA})})))),Nt.default.createElement(jn.Dropdown,{onMouseDown:We=>We.preventDefault(),p:r.size},Nt.default.createElement(zf,{__staticSelector:"ColorInput",value:ue,onChange:ie,onChangeEnd:l,format:a,swatches:b,swatchesPerRow:E,withPicker:p,size:r.size,focusable:!1,unstyled:N,styles:B,classNames:C,onColorSwatchClick:()=>F&&ve(!1)}))))});yh.displayName="@mantine/core/ColorInput";var Ch=y(I());var bA=W((e,{fluid:t,size:o,sizes:n})=>({root:{paddingLeft:e.spacing.md,paddingRight:e.spacing.md,maxWidth:t?"100%":e.fn.size({size:o,sizes:n}),marginLeft:"auto",marginRight:"auto"}})),bz=bA;var yA=Object.defineProperty,Lh=Object.getOwnPropertySymbols,Lz=Object.prototype.hasOwnProperty,Cz=Object.prototype.propertyIsEnumerable,yz=(e,t,o)=>t in e?yA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,LA=(e,t)=>{for(var o in t||(t={}))Lz.call(t,o)&&yz(e,o,t[o]);if(Lh)for(var o of Lh(t))Cz.call(t,o)&&yz(e,o,t[o]);return e},CA=(e,t)=>{var o={};for(var n in e)Lz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Lh)for(var n of Lh(e))t.indexOf(n)<0&&Cz.call(e,n)&&(o[n]=e[n]);return o},IA={sizes:{xs:540,sm:720,md:960,lg:1140,xl:1320}},Ih=(0,Ch.forwardRef)((e,t)=>{let o=S("Container",IA,e),{className:n,fluid:r,size:a,unstyled:i,sizes:l}=o,c=CA(o,["className","fluid","size","unstyled","sizes"]),{classes:s,cx:d}=bz({fluid:r,size:a,sizes:l},{unstyled:i,name:"Container"});return Ch.default.createElement(D,LA({className:d(s.root,n),ref:t},c))});Ih.displayName="@mantine/core/Container";var r0=y(I());function yf({transitions:e,duration:t=250,exitDuration:o=t,mounted:n,children:r,timingFunction:a,onExit:i,onEntered:l,onEnter:c,onExited:s}){let{transitionDuration:d,transitionStatus:h,transitionTimingFunction:v}=Id({mounted:n,duration:t,exitDuration:o,timingFunction:a,onExit:i,onEntered:l,onEnter:c,onExited:s});if(d===0)return n?r0.default.createElement(r0.default.Fragment,null,r({})):null;if(h==="exited")return null;let u=Object.keys(e).reduce((w,k)=>(w[k]=Cd({duration:e[k].duration,transition:e[k].transition,timingFunction:e[k].timingFunction||v,state:h}),w),{});return r0.default.createElement(r0.default.Fragment,null,r(u))}yf.displayName="@mantine/core/GroupedTransition";var a0=y(I());var NA=W((e,{zIndex:t})=>({root:{position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:t}})),Iz=NA;var BA=Object.defineProperty,jA=Object.defineProperties,HA=Object.getOwnPropertyDescriptors,Nh=Object.getOwnPropertySymbols,Bz=Object.prototype.hasOwnProperty,jz=Object.prototype.propertyIsEnumerable,Nz=(e,t,o)=>t in e?BA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Lf=(e,t)=>{for(var o in t||(t={}))Bz.call(t,o)&&Nz(e,o,t[o]);if(Nh)for(var o of Nh(t))jz.call(t,o)&&Nz(e,o,t[o]);return e},WA=(e,t)=>jA(e,HA(t)),SA=(e,t)=>{var o={};for(var n in e)Bz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Nh)for(var n of Nh(e))t.indexOf(n)<0&&jz.call(e,n)&&(o[n]=e[n]);return o},_A={opacity:.6,color:"#fff",zIndex:po("modal"),radius:0,blur:0},Hz=(0,a0.forwardRef)((e,t)=>{let o=S("Overlay",_A,e),{opacity:n,blur:r,color:a,gradient:i,zIndex:l,radius:c,sx:s,unstyled:d,className:h}=o,v=SA(o,["opacity","blur","color","gradient","zIndex","radius","sx","unstyled","className"]),{classes:u,cx:w}=Iz({zIndex:l},{name:"Overlay",unstyled:d}),k=i?{backgroundImage:i}:{backgroundColor:a},E=p=>a0.default.createElement(D,Lf({ref:t,className:w(u.root,h),sx:[m=>WA(Lf({},k),{opacity:n,borderRadius:m.fn.size({size:c,sizes:m.radius})}),...zo(s)]},p));return r?a0.default.createElement(D,Lf({className:w(u.root,h),sx:[{backdropFilter:`blur(${r}px)`},...zo(s)]},v),E()):E(v)});Hz.displayName="@mantine/core/Overlay";var Bh=Hz;var ua=y(I());var OA=Object.defineProperty,jh=Object.getOwnPropertySymbols,Sz=Object.prototype.hasOwnProperty,_z=Object.prototype.propertyIsEnumerable,Wz=(e,t,o)=>t in e?OA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,PA=(e,t)=>{for(var o in t||(t={}))Sz.call(t,o)&&Wz(e,o,t[o]);if(jh)for(var o of jh(t))_z.call(t,o)&&Wz(e,o,t[o]);return e},RA=(e,t)=>{var o={};for(var n in e)Sz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&jh)for(var n of jh(e))t.indexOf(n)<0&&_z.call(e,n)&&(o[n]=e[n]);return o},TA={multiple:!1},Cf=(0,ua.forwardRef)((e,t)=>{let o=S("FileButton",TA,e),{onChange:n,children:r,multiple:a,accept:i,name:l,form:c,resetRef:s,disabled:d,capture:h}=o,v=RA(o,["onChange","children","multiple","accept","name","form","resetRef","disabled","capture"]),u=(0,ua.useRef)(),w=()=>{!d&&u.current.click()},k=p=>{n(a?Array.from(p.currentTarget.files):p.currentTarget.files[0]||null)};return ni(s,()=>{u.current.value=""}),ua.default.createElement(ua.default.Fragment,null,r(PA({onClick:w},v)),ua.default.createElement("input",{style:{display:"none"},type:"file",accept:i,multiple:a,onChange:k,ref:At(t,u),name:l,form:c,capture:h}))});Cf.displayName="@mantine/core/FileButton";var Lo=y(I());var AA=W(()=>({placeholder:{},input:{cursor:"pointer"}})),Oz=AA;var DA=Object.defineProperty,FA=Object.defineProperties,$A=Object.getOwnPropertyDescriptors,Hh=Object.getOwnPropertySymbols,Rz=Object.prototype.hasOwnProperty,Tz=Object.prototype.propertyIsEnumerable,Pz=(e,t,o)=>t in e?DA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,i0=(e,t)=>{for(var o in t||(t={}))Rz.call(t,o)&&Pz(e,o,t[o]);if(Hh)for(var o of Hh(t))Tz.call(t,o)&&Pz(e,o,t[o]);return e},If=(e,t)=>FA(e,$A(t)),VA=(e,t)=>{var o={};for(var n in e)Rz.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Hh)for(var n of Hh(e))t.indexOf(n)<0&&Tz.call(e,n)&&(o[n]=e[n]);return o},UA=({value:e})=>Lo.default.createElement(re,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},Array.isArray(e)?e.map(t=>t.name).join(", "):e==null?void 0:e.name),qA={size:"sm",valueComponent:UA,clearButtonTabIndex:0},GA={xs:24,sm:30,md:34,lg:40,xl:44},Az=(0,Lo.forwardRef)((e,t)=>{let o=sa("FileInput",qA,e),{inputProps:n,wrapperProps:r,placeholder:a,value:i,defaultValue:l,onChange:c,multiple:s,accept:d,name:h,form:v,classNames:u,styles:w,unstyled:k,valueComponent:E,rightSection:p,rightSectionWidth:m,clearable:f,clearButtonLabel:g,clearButtonTabIndex:M,readOnly:z,capture:x}=o,b=VA(o,["inputProps","wrapperProps","placeholder","value","defaultValue","onChange","multiple","accept","name","form","classNames","styles","unstyled","valueComponent","rightSection","rightSectionWidth","clearable","clearButtonLabel","clearButtonTabIndex","readOnly","capture"]),L=(0,Lo.useRef)(),{classes:C,theme:B,cx:N}=Oz(null,{name:"FileInput",classNames:u,styles:w,unstyled:k}),[j,T]=ht({value:i,defaultValue:l,onChange:c,finalValue:s?[]:null}),H=Array.isArray(j)?j.length!==0:j!==null,_=p||(f&&H&&!z?Lo.default.createElement(oa,{variant:"transparent","aria-label":g,onClick:()=>T(s?[]:null),size:n.size,tabIndex:M,unstyled:k}):null);return(0,Lo.useEffect)(()=>{(Array.isArray(j)&&j.length===0||j===null)&&L.current()},[j]),Lo.default.createElement(Ct.Wrapper,If(i0({},r),{__staticSelector:"FileInput"}),Lo.default.createElement(Cf,{onChange:T,multiple:s,accept:d,name:h,form:v,resetRef:L,disabled:z,capture:x},A=>Lo.default.createElement(Ct,If(i0(i0(i0({multiline:!0},A),n),b),{component:"button",type:"button",ref:t,__staticSelector:"FileInput",rightSection:_,rightSectionWidth:m||B.fn.size({size:n.size,sizes:GA}),classNames:If(i0({},u),{input:N(C.input,u==null?void 0:u.input)})}),H?Lo.default.createElement(E,{value:j}):Lo.default.createElement(Ct.Placeholder,{className:C.placeholder},a))))});Az.displayName="@mantine/core/FileInput";var Rl=Az;var Sh=y(I());var Dz={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"default",property:"alignItems"},justify:{type:"default",property:"justifyContent"},wrap:{type:"default",property:"flexWrap"},direction:{type:"default",property:"flexDirection"}};var KA=Object.defineProperty,XA=Object.defineProperties,YA=Object.getOwnPropertyDescriptors,Wh=Object.getOwnPropertySymbols,$z=Object.prototype.hasOwnProperty,Vz=Object.prototype.propertyIsEnumerable,Fz=(e,t,o)=>t in e?KA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,QA=(e,t)=>{for(var o in t||(t={}))$z.call(t,o)&&Fz(e,o,t[o]);if(Wh)for(var o of Wh(t))Vz.call(t,o)&&Fz(e,o,t[o]);return e},ZA=(e,t)=>XA(e,YA(t)),JA=(e,t)=>{var o={};for(var n in e)$z.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Wh)for(var n of Wh(e))t.indexOf(n)<0&&Vz.call(e,n)&&(o[n]=e[n]);return o},eD={},_h=(0,Sh.forwardRef)((e,t)=>{let o=S("Flex",eD,e),{gap:n,rowGap:r,columnGap:a,align:i,justify:l,wrap:c,direction:s,sx:d}=o,h=JA(o,["gap","rowGap","columnGap","align","justify","wrap","direction","sx"]);return Sh.default.createElement(D,ZA(QA({},h),{sx:[{display:"flex"},v=>Ss({gap:n,rowGap:r,columnGap:a,align:i,justify:l,wrap:c,direction:s},v,Dz),...zo(d)],ref:t}))});_h.displayName="@mantine/core/Flex";var Uo=y(I());var Nf=y(I()),tD=Object.defineProperty,Uz=Object.getOwnPropertySymbols,oD=Object.prototype.hasOwnProperty,nD=Object.prototype.propertyIsEnumerable,qz=(e,t,o)=>t in e?tD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,rD=(e,t)=>{for(var o in t||(t={}))oD.call(t,o)&&qz(e,o,t[o]);if(Uz)for(var o of Uz(t))nD.call(t,o)&&qz(e,o,t[o]);return e};function Gz(e){return Nf.default.createElement("svg",rD({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Nf.default.createElement("path",{d:"M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var aD=Object.defineProperty,iD=Object.defineProperties,lD=Object.getOwnPropertyDescriptors,Kz=Object.getOwnPropertySymbols,cD=Object.prototype.hasOwnProperty,sD=Object.prototype.propertyIsEnumerable,Xz=(e,t,o)=>t in e?aD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Yz=(e,t)=>{for(var o in t||(t={}))cD.call(t,o)&&Xz(e,o,t[o]);if(Kz)for(var o of Kz(t))sD.call(t,o)&&Xz(e,o,t[o]);return e},Qz=(e,t)=>iD(e,lD(t)),dD=W((e,{radius:t})=>({root:{},imageWrapper:{position:"relative"},figure:{margin:0},image:Qz(Yz({},e.fn.fontStyles()),{display:"block",width:"100%",height:"100%",border:0,borderRadius:e.fn.size({size:t,sizes:e.radius})}),caption:{color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[7],marginTop:e.spacing.xs},placeholder:Qz(Yz({},e.fn.cover()),{display:"flex",alignItems:"center",justifyContent:"center",color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],backgroundColor:e.colorScheme==="dark"?e.colors.dark[8]:e.colors.gray[0],borderRadius:e.fn.size({size:t,sizes:e.radius})})})),Zz=dD;var hD=Object.defineProperty,Oh=Object.getOwnPropertySymbols,eb=Object.prototype.hasOwnProperty,tb=Object.prototype.propertyIsEnumerable,Jz=(e,t,o)=>t in e?hD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Bf=(e,t)=>{for(var o in t||(t={}))eb.call(t,o)&&Jz(e,o,t[o]);if(Oh)for(var o of Oh(t))tb.call(t,o)&&Jz(e,o,t[o]);return e},vD=(e,t)=>{var o={};for(var n in e)eb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Oh)for(var n of Oh(e))t.indexOf(n)<0&&tb.call(e,n)&&(o[n]=e[n]);return o},mD={fit:"cover",width:"100%",height:"auto",radius:0},Ph=(0,Uo.forwardRef)((e,t)=>{let o=S("Image",mD,e),{className:n,alt:r,src:a,fit:i,width:l,height:c,radius:s,imageProps:d,withPlaceholder:h,placeholder:v,imageRef:u,classNames:w,styles:k,caption:E,unstyled:p,style:m}=o,f=vD(o,["className","alt","src","fit","width","height","radius","imageProps","withPlaceholder","placeholder","imageRef","classNames","styles","caption","unstyled","style"]),{classes:g,cx:M}=Zz({radius:s},{classNames:w,styles:k,unstyled:p,name:"Image"}),[z,x]=(0,Uo.useState)(!a),b=h&&z;return Ze(()=>{x(!a)},[a]),Uo.default.createElement(D,Bf({className:M(g.root,n),ref:t,style:Bf({width:l},m)},f),Uo.default.createElement("figure",{className:g.figure},Uo.default.createElement("div",{className:g.imageWrapper},Uo.default.createElement("img",Bf({className:g.image,src:a,alt:r,style:{objectFit:i,width:l,height:c},ref:u,onError:L=>{x(!0),typeof(d==null?void 0:d.onError)=="function"&&d.onError(L)}},d)),b&&Uo.default.createElement("div",{className:g.placeholder,title:r},v||Uo.default.createElement("div",null,Uo.default.createElement(Gz,{style:{width:40,height:40}})))),!!E&&Uo.default.createElement(re,{component:"figcaption",size:"sm",align:"center",className:g.caption},E)))});Ph.displayName="@mantine/core/Image";var hn=y(I());var uD=Object.defineProperty,pD=Object.defineProperties,fD=Object.getOwnPropertyDescriptors,ob=Object.getOwnPropertySymbols,kD=Object.prototype.hasOwnProperty,wD=Object.prototype.propertyIsEnumerable,nb=(e,t,o)=>t in e?uD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,rb=(e,t)=>{for(var o in t||(t={}))kD.call(t,o)&&nb(e,o,t[o]);if(ob)for(var o of ob(t))wD.call(t,o)&&nb(e,o,t[o]);return e},ab=(e,t)=>pD(e,fD(t)),ED=e=>ea({from:{boxShadow:`0 0 0.5px 0 ${e}`,opacity:.6},to:{boxShadow:`0 0 0.5px 4.4px ${e}`,opacity:0}});function ib(e,t=0){let o={},[n,r]=e.split("-"),a="",i="";return n==="top"&&(o.top=t,i="-50%"),n==="middle"&&(o.top="50%",i="-50%"),n==="bottom"&&(o.bottom=t,i="50%"),r==="start"&&(o.left=t,a="-50%"),r==="center"&&(o.left="50%",a="-50%"),r==="end"&&(o.right=t,a="50%"),o.transform=`translate(${a}, ${i})`,o}var gD=W((e,{radius:t,size:o,color:n,position:r,offset:a,inline:i,withBorder:l,withLabel:c,zIndex:s})=>{let{background:d}=e.fn.variant({variant:"filled",primaryFallback:!1,color:n||e.primaryColor});return{root:{position:"relative",display:i?"inline-block":"block"},indicator:ab(rb({},ib(r,a)),{zIndex:s,position:"absolute",[c?"minWidth":"width"]:o,height:o,display:"flex",justifyContent:"center",alignItems:"center",fontSize:e.fontSizes.xs,paddingLeft:c?`calc(${e.spacing.xs}px / 2)`:0,paddingRight:c?`calc(${e.spacing.xs}px / 2)`:0,borderRadius:e.fn.size({size:t,sizes:e.radius}),backgroundColor:e.fn.variant({variant:"filled",primaryFallback:!1,color:n||e.primaryColor}).background,border:l?`2px solid ${e.colorScheme==="dark"?e.colors.dark[7]:e.white}`:void 0,color:e.white,whiteSpace:"nowrap"}),processing:{animation:`${ED(d)} 1000ms linear infinite`},common:ab(rb({},ib(r,a)),{position:"absolute",[c?"minWidth":"width"]:o,height:o,borderRadius:e.fn.size({size:t,sizes:e.radius})})}}),lb=gD;var Co=y(I());var Bt=y(I());var xD=ea({from:{transform:"translateY(-60%)",opacity:0},to:{transform:"translateY(0%)",opacity:1}}),MD=ea({from:{transform:"translateY(60%)",opacity:0},to:{transform:"translateY(0%)",opacity:1}}),zD=ea({from:{transform:"translateY(0%)",opacity:1},to:{transform:"translateY(-60%)",opacity:0}}),bD=ea({from:{transform:"translateY(0%)",opacity:1},to:{transform:"translateY(60%)",opacity:0}}),yD=W(()=>({baseNumber:{height:18,width:"0.6em",maxWidth:"0.6em",position:"relative",display:"inline-block"},oldNumberTop:{transform:"translateY(-100%);"},oldNumberBottom:{transform:"translateY(100%);"},oldNumber:{display:"inline-block",opacity:0,position:"absolute",left:0,right:0},currentNumberTop:{transform:"translateY(0%);"},currentNumber:{display:"inline-block",opacity:1,position:"absolute",top:0,bottom:0,left:0,right:0},currentNumberScrollDown:{animation:`${xD} .2s cubic-bezier(0,0,.2, 1)`,animationIterationCount:1},currentNumberScrollUp:{animation:`${MD} .2s cubic-bezier(0,0,.2, 1)`,animationIterationCount:1},oldNumberScrollUp:{animation:`${zD} .2s cubic-bezier(0,0,.2, 1)`,animationIterationCount:1},oldNumberScrollDown:{animation:`${bD} .2s cubic-bezier(0,0,.2, 1)`,animationIterationCount:1}})),cb=yD;var sb=(0,Bt.forwardRef)((e,t)=>{let[o,n]=(0,Bt.useState)(e.value),[r,a]=(0,Bt.useState)(e.value),[i,l]=(0,Bt.useState)("up"),[c,s]=(0,Bt.useState)(!1),d=Ws(e.value),h=p=>{s(!0),l(p),setTimeout(()=>{s(!1)},180)},v=()=>{let{newOriginalNumber:p,oldOriginalNumber:m}=e;p==null||m==null||(p>m?h("up"):p{n(d),a(e.value),v()},[e.value,d]);let{classes:u,cx:w}=cb(null,{name:"MachineNumber"}),k=(0,Bt.useMemo)(()=>c?i==="up"?u.currentNumberScrollUp:u.currentNumberScrollDown:null,[c,i]),E=(0,Bt.useMemo)(()=>c?i==="up"?u.oldNumberScrollUp:u.oldNumberScrollDown:null,[c,i]);return Bt.default.createElement("span",{ref:t,className:u.baseNumber},o&&Bt.default.createElement("span",{className:w(u.oldNumber,u.currentNumberTop,E)},o)||null,Bt.default.createElement("span",null,Bt.default.createElement("span",{className:w(u.currentNumber,k)},r)),o&&Bt.default.createElement("span",{className:w(u.oldNumber,u.oldNumberBottom,E)},o)||null)});var LD=W(()=>({base:{display:"flex",alignItems:"center",overflow:"hidden"}})),db=LD;var hb=(0,Co.forwardRef)(({value:e=0,max:t},o)=>{let[n,r]=(0,Co.useState)(),[a,i]=(0,Co.useState)(),l=Ws(e);(0,Co.useEffect)(()=>{typeof e=="string"?(r(void 0),i(void 0)):typeof l=="string"?(r(void 0),i(e)):(r(l),i(e))},[e,l]);let c=(0,Co.useMemo)(()=>{if(typeof e=="string")return[];if(e<1)return[0];let d=[],h=e;for(typeof t=="number"&&(h=Math.min(t,h));h>=1;)d.push(h%10),h/=10,h=Math.floor(h);return d.reverse(),d},[e,t]),{classes:s}=db(null,{name:"machine"});return typeof e=="string"?Co.default.createElement("span",{ref:o},e):Co.default.createElement("span",{ref:o,className:s.base},c.map((d,h)=>Co.default.createElement(sb,{key:c.length-h-1,value:d,oldOriginalNumber:n,newOriginalNumber:a})),typeof t=="number"&&e>t&&Co.default.createElement("span",null,"+"))});var CD=Object.defineProperty,Rh=Object.getOwnPropertySymbols,mb=Object.prototype.hasOwnProperty,ub=Object.prototype.propertyIsEnumerable,vb=(e,t,o)=>t in e?CD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,ID=(e,t)=>{for(var o in t||(t={}))mb.call(t,o)&&vb(e,o,t[o]);if(Rh)for(var o of Rh(t))ub.call(t,o)&&vb(e,o,t[o]);return e},ND=(e,t)=>{var o={};for(var n in e)mb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Rh)for(var n of Rh(e))t.indexOf(n)<0&&ub.call(e,n)&&(o[n]=e[n]);return o},BD={position:"top-end",offset:0,inline:!1,withBorder:!1,disabled:!1,showZero:!0,processing:!1,dot:!0,size:10,overflowCount:99,radius:1e3,zIndex:po("app")},l0=(0,hn.forwardRef)((e,t)=>{let o=S("Indicator",BD,e),{children:n,position:r,offset:a,size:i,radius:l,inline:c,withBorder:s,className:d,color:h,dot:v,styles:u,label:w,overflowCount:k,showZero:E,classNames:p,disabled:m,zIndex:f,unstyled:g,processing:M}=o,z=ND(o,["children","position","offset","size","radius","inline","withBorder","className","color","dot","styles","label","overflowCount","showZero","classNames","disabled","zIndex","unstyled","processing"]),{classes:x,cx:b}=lb({position:r,offset:a,size:i,radius:l,inline:c,color:h,withBorder:s,zIndex:f,withLabel:!!w},{name:"Indicator",classNames:p,styles:u,unstyled:g}),L=(0,hn.useMemo)(()=>typeof w=="number"?hn.default.createElement(hb,{value:w,max:k}):w,[w,k]),C=(0,hn.useMemo)(()=>!m&&(v||w!=null&&!(w<=0&&!E)),[m,w,E]);return hn.default.createElement(D,ID({ref:t,className:b(x.root,d)},z),C&&hn.default.createElement(hn.default.Fragment,null,hn.default.createElement("div",{className:b(x.indicator,x.common)},L),M&&hn.default.createElement("div",{className:b(x.processing,x.common)})),n)});l0.displayName="@mantine/core/Indicator";var pa=y(I());var jD=W({root:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"}}),pb=jD;var HD=Object.defineProperty,WD=Object.defineProperties,SD=Object.getOwnPropertyDescriptors,Ah=Object.getOwnPropertySymbols,kb=Object.prototype.hasOwnProperty,wb=Object.prototype.propertyIsEnumerable,fb=(e,t,o)=>t in e?HD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Th=(e,t)=>{for(var o in t||(t={}))kb.call(t,o)&&fb(e,o,t[o]);if(Ah)for(var o of Ah(t))wb.call(t,o)&&fb(e,o,t[o]);return e},_D=(e,t)=>WD(e,SD(t)),OD=(e,t)=>{var o={};for(var n in e)kb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Ah)for(var n of Ah(e))t.indexOf(n)<0&&wb.call(e,n)&&(o[n]=e[n]);return o},PD={overlayOpacity:.75,transitionDuration:0,zIndex:po("overlay")},fa=(0,pa.forwardRef)((e,t)=>{let o=S("LoadingOverlay",PD,e),{className:n,visible:r,loaderProps:a,overlayOpacity:i,overlayColor:l,transitionDuration:c,exitTransitionDuration:s,zIndex:d,style:h,loader:v,radius:u,overlayBlur:w,unstyled:k}=o,E=OD(o,["className","visible","loaderProps","overlayOpacity","overlayColor","transitionDuration","exitTransitionDuration","zIndex","style","loader","radius","overlayBlur","unstyled"]),{classes:p,cx:m,theme:f}=pb(null,{name:"LoadingOverlay",unstyled:k}),g=`calc(${d} + 1)`;return pa.default.createElement(ci,{duration:c,exitDuration:s,mounted:r,transition:"fade"},M=>pa.default.createElement(D,Th({className:m(p.root,n),style:_D(Th(Th({},M),h),{zIndex:d}),ref:t},E),v?pa.default.createElement("div",{style:{zIndex:g}},v):pa.default.createElement(an,Th({style:{zIndex:g}},a)),pa.default.createElement(Bh,{opacity:i,zIndex:d,radius:u,blur:w,unstyled:k,color:l||(f.colorScheme==="dark"?f.colors.dark[5]:f.white)})))});fa.displayName="@mantine/core/LoadingOverlay";var Et=y(I());var RD=Object.defineProperty,Eb=Object.getOwnPropertySymbols,TD=Object.prototype.hasOwnProperty,AD=Object.prototype.propertyIsEnumerable,gb=(e,t,o)=>t in e?RD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,DD=(e,t)=>{for(var o in t||(t={}))TD.call(t,o)&&gb(e,o,t[o]);if(Eb)for(var o of Eb(t))AD.call(t,o)&&gb(e,o,t[o]);return e},FD={xs:320,sm:380,md:440,lg:620,xl:780};function $D(e){return e?{position:"absolute",top:0,left:0,right:0,bottom:0,maxHeight:"100vh",overflowY:"auto"}:{}}var VD=W((e,{overflow:t,size:o,centered:n,zIndex:r,fullScreen:a})=>({close:{},overlay:{display:a?"none":void 0},root:{position:"fixed",zIndex:r,top:0,left:0,right:0,bottom:0},inner:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowY:"auto",padding:a?0:`${e.spacing.xl*2}px ${e.spacing.md}px`,display:"flex",justifyContent:"center",alignItems:n?"center":"flex-start"},title:{marginRight:e.spacing.md,textOverflow:"ellipsis",display:"block",wordBreak:"break-word"},modal:DD({position:"relative",width:a?"100vw":e.fn.size({sizes:FD,size:o}),borderRadius:a?0:void 0,outline:0,backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,marginTop:n?"auto":void 0,marginBottom:n?"auto":void 0,zIndex:1},$D(a)),header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:e.spacing.md,marginRight:-9},body:{maxHeight:t==="inside"?"calc(100vh - 185px)":null,overflowY:t==="inside"?"auto":null,wordBreak:"break-word"}})),xb=VD;var UD=Object.defineProperty,Dh=Object.getOwnPropertySymbols,zb=Object.prototype.hasOwnProperty,bb=Object.prototype.propertyIsEnumerable,Mb=(e,t,o)=>t in e?UD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,qD=(e,t)=>{for(var o in t||(t={}))zb.call(t,o)&&Mb(e,o,t[o]);if(Dh)for(var o of Dh(t))bb.call(t,o)&&Mb(e,o,t[o]);return e},GD=(e,t)=>{var o={};for(var n in e)zb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Dh)for(var n of Dh(e))t.indexOf(n)<0&&bb.call(e,n)&&(o[n]=e[n]);return o},KD={size:"md",transitionDuration:250,overflow:"outside",padding:"lg",shadow:"lg",closeOnClickOutside:!0,closeOnEscape:!0,trapFocus:!0,withCloseButton:!0,withinPortal:!0,lockScroll:!0,withFocusReturn:!0,overlayBlur:0,zIndex:po("modal"),exitTransitionDuration:0};function ka(e){let t=S("Modal",KD,e),{className:o,opened:n,title:r,onClose:a,children:i,withCloseButton:l,overlayOpacity:c,size:s,transitionDuration:d,exitTransitionDuration:h,closeButtonLabel:v,overlayColor:u,overflow:w,transition:k,padding:E,shadow:p,radius:m,id:f,classNames:g,styles:M,closeOnClickOutside:z,trapFocus:x,closeOnEscape:b,centered:L,target:C,withinPortal:B,zIndex:N,overlayBlur:j,transitionTimingFunction:T,fullScreen:H,unstyled:_,lockScroll:A,withFocusReturn:F}=t,V=GD(t,["className","opened","title","onClose","children","withCloseButton","overlayOpacity","size","transitionDuration","exitTransitionDuration","closeButtonLabel","overlayColor","overflow","transition","padding","shadow","radius","id","classNames","styles","closeOnClickOutside","trapFocus","closeOnEscape","centered","target","withinPortal","zIndex","overlayBlur","transitionTimingFunction","fullScreen","unstyled","lockScroll","withFocusReturn"]),$=Do(f),U=`${$}-title`,oe=`${$}-body`,{classes:ve,cx:J,theme:he}=xb({size:s,overflow:w,centered:L,zIndex:N,fullScreen:H},{unstyled:_,classNames:g,styles:M,name:"Modal"}),ue=Bs(x&&n),ie=(0,Et.useRef)(null),le=At(ue,ie),fe=typeof c=="number"?c:he.colorScheme==="dark"?.85:.75;pp(A&&n);let ne=De=>{!x&&De.key==="Escape"&&b&&a()};(0,Et.useEffect)(()=>{if(!x)return window.addEventListener("keydown",ne),()=>window.removeEventListener("keydown",ne)},[x]),Ns({opened:n,shouldReturnFocus:x&&F});let se=(0,Et.useRef)(null);kl("mousedown",De=>{se.current=De.target});let ke=()=>{se.current===ie.current&&z&&a()};return Et.default.createElement(Os,{withinPortal:B,target:C},Et.default.createElement(yf,{mounted:n,duration:d,exitDuration:h,timingFunction:T,transitions:{modal:{duration:d,transition:k||(H?"fade":"pop")},overlay:{duration:d/2,transition:"fade",timingFunction:"ease"}}},De=>Et.default.createElement(Et.default.Fragment,null,Et.default.createElement(D,qD({id:$,className:J(ve.root,o)},V),Et.default.createElement("div",{style:De.overlay},Et.default.createElement(Bh,{className:ve.overlay,sx:{position:"fixed"},zIndex:0,blur:j,color:u||(he.colorScheme==="dark"?he.colors.dark[9]:he.black),opacity:fe,unstyled:_})),Et.default.createElement("div",{role:"presentation",className:ve.inner,onClick:ke,onKeyDown:We=>{var ao;((ao=We.target)==null?void 0:ao.getAttribute("data-mantine-stop-propagation"))!=="true"&&We.key==="Escape"&&b&&a()},ref:le},Et.default.createElement(eh,{className:ve.modal,shadow:p,p:E,radius:m,role:"dialog","aria-labelledby":U,"aria-describedby":oe,"aria-modal":!0,tabIndex:-1,style:De.modal,unstyled:_,onClick:We=>We.stopPropagation()},(r||l)&&Et.default.createElement("div",{className:ve.header},Et.default.createElement(re,{id:U,className:ve.title},r),l&&Et.default.createElement(oa,{iconSize:16,onClick:a,"aria-label":v,className:ve.close})),Et.default.createElement("div",{id:oe,className:ve.body},i)))))))}ka.displayName="@mantine/core/Modal";var Hb=y(I());var Hf=y(I());var jf=y(I());var XD=Object.defineProperty,Fh=Object.getOwnPropertySymbols,Cb=Object.prototype.hasOwnProperty,Ib=Object.prototype.propertyIsEnumerable,yb=(e,t,o)=>t in e?XD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Lb=(e,t)=>{for(var o in t||(t={}))Cb.call(t,o)&&yb(e,o,t[o]);if(Fh)for(var o of Fh(t))Ib.call(t,o)&&yb(e,o,t[o]);return e},YD=(e,t)=>{var o={};for(var n in e)Cb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Fh)for(var n of Fh(e))t.indexOf(n)<0&&Ib.call(e,n)&&(o[n]=e[n]);return o},QD={xs:14,sm:18,md:20,lg:24,xl:28};function Nb(e){var t=e,{size:o,error:n,style:r}=t,a=YD(t,["size","error","style"]);let i=je(),l=i.fn.size({size:o,sizes:QD});return jf.default.createElement("svg",Lb({width:l,height:l,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Lb({color:n?i.colors.red[6]:i.colors.gray[6]},r),"data-chevron":!0},a),jf.default.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Wf({shouldClear:e,clearButtonLabel:t,onClear:o,size:n,error:r,clearButtonTabIndex:a}){return e?Hf.default.createElement(oa,{variant:"transparent","aria-label":t,onClick:o,size:n,tabIndex:a,onMouseDown:i=>i.preventDefault()}):Hf.default.createElement(Nb,{error:r,size:n})}Wf.displayName="@mantine/core/SelectRightSection";var ZD=Object.defineProperty,JD=Object.defineProperties,eF=Object.getOwnPropertyDescriptors,$h=Object.getOwnPropertySymbols,Wb=Object.prototype.hasOwnProperty,Sb=Object.prototype.propertyIsEnumerable,Bb=(e,t,o)=>t in e?ZD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Sf=(e,t)=>{for(var o in t||(t={}))Wb.call(t,o)&&Bb(e,o,t[o]);if($h)for(var o of $h(t))Sb.call(t,o)&&Bb(e,o,t[o]);return e},jb=(e,t)=>JD(e,eF(t)),tF=(e,t)=>{var o={};for(var n in e)Wb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&$h)for(var n of $h(e))t.indexOf(n)<0&&Sb.call(e,n)&&(o[n]=e[n]);return o},oF={xs:24,sm:30,md:34,lg:44,xl:54};function _b(e){var t=e,{styles:o,rightSection:n,rightSectionWidth:r,theme:a}=t,i=tF(t,["styles","rightSection","rightSectionWidth","theme"]);if(n)return{rightSection:n,rightSectionWidth:r,styles:o};let l=typeof o=="function"?o(a):o;return{rightSectionWidth:a.fn.size({size:i.size,sizes:oF}),rightSection:!i.readOnly&&!(i.disabled&&i.shouldClear)&&Hb.default.createElement(Wf,Sf({},i)),styles:jb(Sf({},l),{rightSection:jb(Sf({},l==null?void 0:l.rightSection),{pointerEvents:i.shouldClear?void 0:"none"})})}}var Je=y(I());var Ob=(e,t,o)=>Number.isInteger(e)&&e>=0&&t===0?"numeric":!Number.isInteger(e)&&e>=0&&t!==0?"decimal":Number.isInteger(e)&&e<0&&t===0||!Number.isInteger(e)&&e<0&&t!==0?o==="ios"?"text":"decimal":"numeric";var _f=y(I());function Of({direction:e,size:t}){return _f.default.createElement("svg",{style:{transform:e==="up"?"rotate(180deg)":void 0},width:t,height:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_f.default.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var Pf={xs:20,sm:24,md:30,lg:34,xl:36},nF=W((e,{radius:t,size:o})=>({rightSection:{display:"flex",flexDirection:"column",height:"calc(100% - 2px)",margin:1,marginRight:1,overflow:"hidden",borderTopRightRadius:e.fn.radius(t),borderBottomRightRadius:e.fn.radius(t)},control:{margin:0,position:"relative",flex:"0 0 50%",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:e.fn.size({size:o,sizes:Pf}),padding:0,WebkitTapHighlightColor:"transparent",borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,borderLeft:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,borderTop:0,borderRight:0,backgroundColor:"transparent",marginRight:1,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,"&:not(:disabled):hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]},"&:disabled":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]}},controlUp:{},controlDown:{borderBottom:0}})),Pb=nF;var c0=y(I());var rF=Object.defineProperty,aF=Object.defineProperties,iF=Object.getOwnPropertyDescriptors,Vh=Object.getOwnPropertySymbols,Tb=Object.prototype.hasOwnProperty,Ab=Object.prototype.propertyIsEnumerable,Rb=(e,t,o)=>t in e?rF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Rf=(e,t)=>{for(var o in t||(t={}))Tb.call(t,o)&&Rb(e,o,t[o]);if(Vh)for(var o of Vh(t))Ab.call(t,o)&&Rb(e,o,t[o]);return e},lF=(e,t)=>aF(e,iF(t)),cF=(e,t)=>{var o={};for(var n in e)Tb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Vh)for(var n of Vh(e))t.indexOf(n)<0&&Ab.call(e,n)&&(o[n]=e[n]);return o},sF={type:"text",size:"sm",__staticSelector:"TextInput"},Tl=(0,c0.forwardRef)((e,t)=>{let o=sa("TextInput",sF,e),{inputProps:n,wrapperProps:r}=o,a=cF(o,["inputProps","wrapperProps"]);return c0.default.createElement(Ct.Wrapper,Rf({},r),c0.default.createElement(Ct,lF(Rf(Rf({},n),a),{ref:t})))});Tl.displayName="@mantine/core/TextInput";var dF=Object.defineProperty,hF=Object.defineProperties,vF=Object.getOwnPropertyDescriptors,Uh=Object.getOwnPropertySymbols,$b=Object.prototype.hasOwnProperty,Vb=Object.prototype.propertyIsEnumerable,Db=(e,t,o)=>t in e?dF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,mF=(e,t)=>{for(var o in t||(t={}))$b.call(t,o)&&Db(e,o,t[o]);if(Uh)for(var o of Uh(t))Vb.call(t,o)&&Db(e,o,t[o]);return e},uF=(e,t)=>hF(e,vF(t)),pF=(e,t)=>{var o={};for(var n in e)$b.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Uh)for(var n of Uh(e))t.indexOf(n)<0&&Vb.call(e,n)&&(o[n]=e[n]);return o},fF=e=>e||"",kF=e=>{if(e==="-")return e;let t=e;t[0]==="."&&(t=`0${e}`);let o=parseFloat(t);if(!Number.isNaN(o))return e},Fb={xs:10,sm:14,md:16,lg:18,xl:20},wF={step:1,hideControls:!1,size:"sm",precision:0,noClampOnBlur:!1,removeTrailingZeros:!1,formatter:fF,parser:kF,type:"text"},qh=(0,Je.forwardRef)((e,t)=>{let o=S("NumberInput",wF,e),{readOnly:n,disabled:r,value:a,onChange:i,decimalSeparator:l,min:c,max:s,startValue:d,step:h,stepHoldInterval:v,stepHoldDelay:u,onBlur:w,onFocus:k,onKeyDown:E,onKeyUp:p,hideControls:m,radius:f,variant:g,precision:M,removeTrailingZeros:z,defaultValue:x,noClampOnBlur:b,handlersRef:L,classNames:C,styles:B,size:N,rightSection:j,rightSectionWidth:T,formatter:H,parser:_,inputMode:A,unstyled:F,type:V}=o,$=pF(o,["readOnly","disabled","value","onChange","decimalSeparator","min","max","startValue","step","stepHoldInterval","stepHoldDelay","onBlur","onFocus","onKeyDown","onKeyUp","hideControls","radius","variant","precision","removeTrailingZeros","defaultValue","noClampOnBlur","handlersRef","classNames","styles","size","rightSection","rightSectionWidth","formatter","parser","inputMode","unstyled","type"]),{classes:U,cx:oe,theme:ve}=Pb({radius:f,size:N},{classNames:C,styles:B,unstyled:F,name:"NumberInput"}),J=te=>{if(te===void 0)return;let de=te.toFixed(M);return z&&M>0&&(de=de.replace(new RegExp(`[0]{0,${M}}$`),""),(de.endsWith(".")||de.endsWith(l))&&(de=de.slice(0,-1))),de},[he,ue]=(0,Je.useState)(!1),[ie,le]=(0,Je.useState)(typeof a=="number"?a:typeof x=="number"?x:void 0),fe=typeof a=="number"?a:ie,[ne,se]=(0,Je.useState)(typeof fe=="number"?J(fe):""),ke=(0,Je.useRef)(),De=te=>{te!==ie&&!Number.isNaN(te)&&(typeof i=="function"&&i(te),le(te))},We=(te="")=>{let de=typeof te=="number"?String(te):te;return l&&(de=de.replace(/\./g,l)),H(de)},ao=te=>{let de=te;return l&&(de=de.replace(new RegExp(`\\${l}`,"g"),".")),_(de)},Se=typeof c=="number"?c:-1/0,ja=typeof s=="number"?s:1/0,Ha=(0,Je.useRef)();Ha.current=()=>{var te,de,lt;if(ie===void 0)De((te=d!=null?d:c)!=null?te:0),se((lt=(de=J(d))!=null?de:J(c))!=null?lt:"0");else{let io=J(bo(ie+h,Se,ja));De(parseFloat(io)),se(io)}};let un=(0,Je.useRef)();un.current=()=>{var te,de,lt;if(ie===void 0)De((te=d!=null?d:c)!=null?te:0),se((lt=(de=J(d))!=null?de:J(c))!=null?lt:"0");else{let io=J(bo(ie-h,Se,ja));De(parseFloat(io)),se(io)}},ni(L,{increment:Ha.current,decrement:un.current}),(0,Je.useEffect)(()=>{typeof a=="number"&&!he&&(le(a),se(J(a))),x===void 0&&a===void 0&&!he&&(le(a),se(""))},[a,M]);let hc=u!==void 0&&v!==void 0,pt=(0,Je.useRef)(null),vc=(0,Je.useRef)(0),St=()=>{pt.current&&window.clearTimeout(pt.current),pt.current=null,vc.current=0},_t=te=>{te?Ha.current():un.current(),vc.current+=1},zi=te=>{if(_t(te),hc){let de=typeof v=="number"?v:v(vc.current);pt.current=window.setTimeout(()=>zi(te),de)}},lr=(te,de)=>{te.preventDefault(),ke.current.focus(),_t(de),hc&&(pt.current=window.setTimeout(()=>zi(de),u))};(0,Je.useEffect)(()=>(St(),St),[]);let j0=Je.default.createElement("div",{className:U.rightSection},Je.default.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:fe>=s,className:oe(U.control,U.controlUp),onPointerDown:te=>{lr(te,!0)},onPointerUp:St,onPointerLeave:St},Je.default.createElement(Of,{size:ve.fn.size({size:N,sizes:Fb}),direction:"up"})),Je.default.createElement("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:fe<=c,className:oe(U.control,U.controlDown),onPointerDown:te=>{lr(te,!1)},onPointerUp:St,onPointerLeave:St},Je.default.createElement(Of,{size:ve.fn.size({size:N,sizes:Fb}),direction:"down"}))),km=te=>{if(te.nativeEvent.isComposing)return;let lt=te.target.value,io=ao(lt);se(io),lt===""||lt==="-"?De(void 0):lt.trim()!==""&&!Number.isNaN(io)&&De(parseFloat(io))},cr=te=>{var de;if(te.target.value==="")se(""),De(void 0);else{let lt=te.target.value;(lt[0]===`${l}`||lt[0]===".")&&(lt=`0${lt}`);let io=ao(lt),uc=bo(parseFloat(io),Se,ja);Number.isNaN(uc)?se((de=J(fe))!=null?de:""):b||(se(J(uc)),De(parseFloat(J(uc))))}ue(!1),typeof w=="function"&&w(te)},Wa=te=>{ue(!0),typeof k=="function"&&k(te)},mc=te=>{if(typeof E=="function"&&E(te),te.repeat&&hc&&(te.key==="ArrowUp"||te.key==="ArrowDown")){te.preventDefault();return}n||(te.key==="ArrowUp"?lr(te,!0):te.key==="ArrowDown"&&lr(te,!1))},wm=te=>{typeof p=="function"&&p(te),(te.key==="ArrowUp"||te.key==="ArrowDown")&&St()};return Je.default.createElement(Tl,uF(mF({},$),{type:V,variant:g,value:We(ne),disabled:r,readOnly:n,ref:At(ke,t),onChange:km,onBlur:cr,onFocus:Wa,onKeyDown:mc,onKeyUp:wm,rightSection:j||(r||n||m||g==="unstyled"?null:j0),rightSectionWidth:T||ve.fn.size({size:N,sizes:Pf})+1,radius:f,max:s,min:c,step:h,size:N,styles:B,classNames:C,inputMode:A||Ob(h,M,fp()),__staticSelector:"NumberInput",unstyled:F}))});qh.displayName="@mantine/core/NumberInput";var nt=y(I());function Ub({data:e,searchable:t,limit:o,searchValue:n,filter:r,value:a,filterDataOnExactSearchMatch:i}){if(!t)return e;let l=a!=null&&e.find(s=>s.value===a)||null;if(l&&!i&&(l==null?void 0:l.label)===n){if(o){if(o>=e.length)return e;let s=e.indexOf(l),d=s+o,h=d-e.length;return h>0?e.slice(s-h):e.slice(s,d)}return e}let c=[];for(let s=0;s=o));s+=1);return c}var EF=W(()=>({input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}})),qb=EF;var gF=Object.defineProperty,xF=Object.defineProperties,MF=Object.getOwnPropertyDescriptors,Gh=Object.getOwnPropertySymbols,Kb=Object.prototype.hasOwnProperty,Xb=Object.prototype.propertyIsEnumerable,Gb=(e,t,o)=>t in e?gF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,s0=(e,t)=>{for(var o in t||(t={}))Kb.call(t,o)&&Gb(e,o,t[o]);if(Gh)for(var o of Gh(t))Xb.call(t,o)&&Gb(e,o,t[o]);return e},Tf=(e,t)=>xF(e,MF(t)),zF=(e,t)=>{var o={};for(var n in e)Kb.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Gh)for(var n of Gh(e))t.indexOf(n)<0&&Xb.call(e,n)&&(o[n]=e[n]);return o};function bF(e,t){return t.label.toLowerCase().trim().includes(e.toLowerCase().trim())}function yF(e,t){return!!e&&!t.some(o=>o.label.toLowerCase()===e.toLowerCase())}var LF={required:!1,size:"sm",shadow:"sm",itemComponent:yp,transition:"fade",transitionDuration:0,initiallyOpened:!1,filter:bF,maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:yF,selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:po("popover"),clearButtonTabIndex:0,positionDependencies:[],dropdownPosition:"flip"},Al=(0,nt.forwardRef)((e,t)=>{let o=sa("Select",LF,e),{inputProps:n,wrapperProps:r,shadow:a,data:i,value:l,defaultValue:c,onChange:s,itemComponent:d,onKeyDown:h,onBlur:v,onFocus:u,transition:w,transitionDuration:k,initiallyOpened:E,transitionTimingFunction:p,unstyled:m,classNames:f,styles:g,filter:M,maxDropdownHeight:z,searchable:x,clearable:b,nothingFound:L,clearButtonLabel:C,limit:B,disabled:N,onSearchChange:j,searchValue:T,rightSection:H,rightSectionWidth:_,creatable:A,getCreateLabel:F,shouldCreate:V,selectOnBlur:$,onCreate:U,dropdownComponent:oe,onDropdownClose:ve,onDropdownOpen:J,withinPortal:he,switchDirectionOnFlip:ue,zIndex:ie,name:le,dropdownPosition:fe,allowDeselect:ne,placeholder:se,filterDataOnExactSearchMatch:ke,clearButtonTabIndex:De,form:We,positionDependencies:ao,readOnly:Se}=o,ja=zF(o,["inputProps","wrapperProps","shadow","data","value","defaultValue","onChange","itemComponent","onKeyDown","onBlur","onFocus","transition","transitionDuration","initiallyOpened","transitionTimingFunction","unstyled","classNames","styles","filter","maxDropdownHeight","searchable","clearable","nothingFound","clearButtonLabel","limit","disabled","onSearchChange","searchValue","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","clearButtonTabIndex","form","positionDependencies","readOnly"]),{classes:Ha,cx:un,theme:hc}=qb(),[pt,vc]=(0,nt.useState)(E),[St,_t]=(0,nt.useState)(-1),zi=(0,nt.useRef)(),lr=(0,nt.useRef)({}),[j0,km]=(0,nt.useState)("column"),cr=j0==="column",{scrollIntoView:Wa,targetRef:mc,scrollableRef:wm}=up({duration:0,offset:5,cancelable:!1,isList:!0}),te=ne===void 0?b:ne,de=ee=>{if(pt!==ee){vc(ee);let Fe=ee?J:ve;typeof Fe=="function"&&Fe()}},lt=A&&typeof F=="function",io=null,uc=i.map(ee=>typeof ee=="string"?{label:ee,value:ee}:ee),H0=Vu({data:uc}),[pn,bi,Ak]=ht({value:l,defaultValue:c,finalValue:null,onChange:s}),sr=H0.find(ee=>ee.value===pn),[Sa,PI]=ht({value:T,defaultValue:(sr==null?void 0:sr.label)||"",finalValue:void 0,onChange:j}),_a=ee=>{PI(ee),x&&typeof j=="function"&&j(ee)},RI=()=>{var ee;Se||(bi(null),Ak||_a(""),(ee=zi.current)==null||ee.focus())};(0,nt.useEffect)(()=>{let ee=H0.find(Fe=>Fe.value===pn);ee?_a(ee.label):(!lt||!pn)&&_a("")},[pn]),(0,nt.useEffect)(()=>{sr&&(!x||!pt)&&_a(sr.label)},[sr==null?void 0:sr.label]);let W0=ee=>{if(!Se)if(te&&(sr==null?void 0:sr.value)===ee.value)bi(null),de(!1);else{if(ee.creatable&&typeof U=="function"){let Fe=U(ee.value);typeof Fe<"u"&&Fe!==null&&bi(typeof Fe=="string"?Fe:Fe.value)}else bi(ee.value);Ak||_a(ee.label),_t(-1),de(!1),zi.current.focus()}},Mt=Ub({data:H0,searchable:x,limit:B,searchValue:Sa,filter:M,filterDataOnExactSearchMatch:ke,value:pn});lt&&V(Sa,Mt)&&(io=F(Sa),Mt.push({label:Sa,value:Sa,creatable:!0}));let Dk=(ee,Fe,jo)=>{let Ho=ee;for(;jo(Ho);)if(Ho=Fe(Ho),!Mt[Ho].disabled)return Ho;return ee};Ze(()=>{_t(-1)},[Sa]);let pc=pn?Mt.findIndex(ee=>ee.value===pn):0,fn=!Se&&(Mt.length>0?pt:pt&&!!L),Fk=()=>{_t(ee=>{var Fe;let jo=Dk(ee,Ho=>Ho-1,Ho=>Ho>0);return mc.current=lr.current[(Fe=Mt[jo])==null?void 0:Fe.value],fn&&Wa({alignment:cr?"start":"end"}),jo})},$k=()=>{_t(ee=>{var Fe;let jo=Dk(ee,Ho=>Ho+1,Ho=>Howindow.setTimeout(()=>{var ee;mc.current=lr.current[(ee=Mt[pc])==null?void 0:ee.value],Wa({alignment:cr?"end":"start"})},0);Ze(()=>{fn&&S0()},[fn]);let TI=ee=>{switch(typeof h=="function"&&h(ee),ee.key){case"ArrowUp":{ee.preventDefault(),pt?cr?Fk():$k():(_t(pc),de(!0),S0());break}case"ArrowDown":{ee.preventDefault(),pt?cr?$k():Fk():(_t(pc),de(!0),S0());break}case"Home":{if(!x){ee.preventDefault(),pt||de(!0);let Fe=Mt.findIndex(jo=>!jo.disabled);_t(Fe),fn&&Wa({alignment:cr?"end":"start"})}break}case"End":{if(!x){ee.preventDefault(),pt||de(!0);let Fe=Mt.map(jo=>!!jo.disabled).lastIndexOf(!1);_t(Fe),fn&&Wa({alignment:cr?"end":"start"})}break}case"Escape":{ee.preventDefault(),de(!1),_t(-1);break}case" ":{x||(ee.preventDefault(),Mt[St]&&pt?W0(Mt[St]):(de(!0),_t(pc),S0()));break}case"Enter":x||ee.preventDefault(),Mt[St]&&pt&&(ee.preventDefault(),W0(Mt[St]))}},AI=ee=>{typeof v=="function"&&v(ee);let Fe=H0.find(jo=>jo.value===pn);$&&Mt[St]&&pt&&W0(Mt[St]),_a((Fe==null?void 0:Fe.label)||""),de(!1)},DI=ee=>{typeof u=="function"&&u(ee),x&&de(!0)},FI=ee=>{Se||(_a(ee.currentTarget.value),b&&ee.currentTarget.value===""&&bi(null),_t(-1),de(!0))},$I=()=>{Se||(de(!pt),pn&&!pt&&_t(pc))};return nt.default.createElement(Ct.Wrapper,Tf(s0({},r),{__staticSelector:"Select"}),nt.default.createElement(_l,{opened:fn,transition:w,transitionDuration:k,shadow:"sm",withinPortal:he,__staticSelector:"Select",onDirectionChange:km,switchDirectionOnFlip:ue,zIndex:ie,dropdownPosition:fe,positionDependencies:ao,classNames:f,styles:g,unstyled:m},nt.default.createElement(_l.Target,null,nt.default.createElement("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":fn?`${n.id}-items`:null,"aria-controls":n.id,"aria-expanded":fn,onMouseLeave:()=>_t(-1),tabIndex:-1},nt.default.createElement("input",{type:"hidden",name:le,value:pn||"",form:We,disabled:N}),nt.default.createElement(Ct,s0(Tf(s0(s0({autoComplete:"off",type:"search"},n),ja),{ref:At(t,zi),onKeyDown:TI,__staticSelector:"Select",value:Sa,placeholder:se,onChange:FI,"aria-autocomplete":"list","aria-controls":fn?`${n.id}-items`:null,"aria-activedescendant":St>=0?`${n.id}-${St}`:null,onMouseDown:$I,onBlur:AI,onFocus:DI,readOnly:!x||Se,disabled:N,"data-mantine-stop-propagation":fn,name:null,classNames:Tf(s0({},f),{input:un({[Ha.input]:!x},f==null?void 0:f.input)})}),_b({theme:hc,rightSection:H,rightSectionWidth:_,styles:g,size:n.size,shouldClear:b&&!!sr,clearButtonLabel:C,onClear:RI,error:r.error,clearButtonTabIndex:De,disabled:N,readOnly:Se}))))),nt.default.createElement(_l.Dropdown,{component:oe||Vs,maxHeight:z,direction:j0,id:n.id,innerRef:wm,__staticSelector:"Select",classNames:f,styles:g},nt.default.createElement(bp,{data:Mt,hovered:St,classNames:f,styles:g,isItemSelected:ee=>ee===pn,uuid:n.id,__staticSelector:"Select",onItemHover:_t,onItemSelect:W0,itemsRefs:lr,itemComponent:d,size:n.size,nothingFound:L,creatable:lt&&!!io,createLabel:io,"aria-label":r.label,unstyled:m}))))});Al.displayName="@mantine/core/Select";var Io=y(I());function Kh({value:e,min:t,max:o}){let n=(e-t)/(o-t)*100;return Math.min(Math.max(n,0),100)}function Yb({value:e,containerWidth:t,min:o,max:n,step:r,precision:a}){let l=(t?Math.min(Math.max(e,0),t)/t:e)*(n-o),c=(l!==0?Math.round(l/r)*r:0)+o,s=Math.max(c,o);return a!==void 0?Number(s.toFixed(a)):s}var wa=y(I());var CF=Object.defineProperty,IF=Object.defineProperties,NF=Object.getOwnPropertyDescriptors,Qb=Object.getOwnPropertySymbols,BF=Object.prototype.hasOwnProperty,jF=Object.prototype.propertyIsEnumerable,Zb=(e,t,o)=>t in e?CF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,HF=(e,t)=>{for(var o in t||(t={}))BF.call(t,o)&&Zb(e,o,t[o]);if(Qb)for(var o of Qb(t))jF.call(t,o)&&Zb(e,o,t[o]);return e},WF=(e,t)=>IF(e,NF(t)),jt={xs:4,sm:6,md:8,lg:10,xl:12},SF=W((e,{size:t,disabled:o})=>({root:WF(HF({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",outline:0,height:e.fn.size({sizes:jt,size:t})*2,display:"flex",alignItems:"center",cursor:o?"not-allowed":"pointer",touchAction:"none"})})),Jb=SF;var _F=Object.defineProperty,OF=Object.defineProperties,PF=Object.getOwnPropertyDescriptors,ey=Object.getOwnPropertySymbols,RF=Object.prototype.hasOwnProperty,TF=Object.prototype.propertyIsEnumerable,ty=(e,t,o)=>t in e?_F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,AF=(e,t)=>{for(var o in t||(t={}))RF.call(t,o)&&ty(e,o,t[o]);if(ey)for(var o of ey(t))TF.call(t,o)&&ty(e,o,t[o]);return e},DF=(e,t)=>OF(e,PF(t)),FF=W((e,{color:t,size:o,disabled:n,thumbSize:r})=>({label:{position:"absolute",top:-36,backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[9],fontSize:e.fontSizes.xs,color:e.white,padding:`calc(${e.spacing.xs}px / 2)`,borderRadius:e.radius.sm,whiteSpace:"nowrap",pointerEvents:"none",userSelect:"none",touchAction:"none"},thumb:DF(AF({},e.fn.focusStyles()),{boxSizing:"border-box",position:"absolute",display:n?"none":"flex",height:r||e.fn.size({sizes:jt,size:o})*2,width:r||e.fn.size({sizes:jt,size:o})*2,backgroundColor:e.colorScheme==="dark"?e.fn.themeColor(t,e.fn.primaryShade()):e.white,border:`4px solid ${e.colorScheme==="dark"?e.white:e.fn.themeColor(t,e.fn.primaryShade())}`,color:e.colorScheme==="dark"?e.white:e.fn.themeColor(t,e.fn.primaryShade()),transform:"translate(-50%, -50%)",top:"50%",cursor:"pointer",borderRadius:1e3,alignItems:"center",justifyContent:"center",transitionDuration:"100ms",transitionProperty:"box-shadow, transform",transitionTimingFunction:e.transitionTimingFunction,zIndex:3,userSelect:"none",touchAction:"none"}),dragging:{transform:"translate(-50%, -50%) scale(1.05)",boxShadow:e.shadows.sm}})),oy=FF;var Af=(0,wa.forwardRef)(({max:e,min:t,value:o,position:n,label:r,dragging:a,onMouseDown:i,color:l,classNames:c,styles:s,size:d,labelTransition:h,labelTransitionDuration:v,labelTransitionTimingFunction:u,labelAlwaysOn:w,thumbLabel:k,onFocus:E,onBlur:p,showLabelOnHover:m,children:f=null,disabled:g,unstyled:M,thumbSize:z},x)=>{let{classes:b,cx:L,theme:C}=oy({color:l,size:d,disabled:g,thumbSize:z},{classNames:c,styles:s,unstyled:M,name:"Slider"}),[B,N]=(0,wa.useState)(!1),j=w||a||B||m;return wa.default.createElement(D,{tabIndex:0,role:"slider","aria-label":k,"aria-valuemax":e,"aria-valuemin":t,"aria-valuenow":o,ref:x,className:L(b.thumb,{[b.dragging]:a}),onFocus:()=>{N(!0),typeof E=="function"&&E()},onBlur:()=>{N(!1),typeof p=="function"&&p()},onTouchStart:i,onMouseDown:i,onClick:T=>T.stopPropagation(),style:{[C.dir==="rtl"?"right":"left"]:`${n}%`}},f,wa.default.createElement(ci,{mounted:r!=null&&j,duration:v,transition:h,timingFunction:u||C.transitionTimingFunction},T=>wa.default.createElement("div",{style:T,className:b.label},r)))});Af.displayName="@mantine/core/SliderThumb";var Xh=y(I());var d0=y(I());function ny({mark:e,offset:t,value:o,inverted:n=!1}){return n?typeof t=="number"&&e.value<=t||e.value>=o:typeof t=="number"?e.value>=t&&e.value<=o:e.value<=o}var $F=W((e,{size:t,color:o,disabled:n})=>({markWrapper:{position:"absolute",top:0,zIndex:2},mark:{boxSizing:"border-box",border:`${e.fn.size({size:t,sizes:jt})>=8?"2px":"1px"} solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,height:e.fn.size({sizes:jt,size:t}),width:e.fn.size({sizes:jt,size:t}),borderRadius:1e3,transform:`translateX(-${e.fn.size({sizes:jt,size:t})/2}px)`,backgroundColor:e.white},markFilled:{borderColor:n?e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]:e.fn.variant({variant:"filled",color:o}).background},markLabel:{transform:"translate(-50%, 0)",fontSize:e.fontSizes.sm,color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],marginTop:`calc(${e.spacing.xs}px / 2)`,whiteSpace:"nowrap"}})),ry=$F;function Df({marks:e,color:t,size:o,min:n,max:r,value:a,classNames:i,styles:l,offset:c,onChange:s,disabled:d,unstyled:h,inverted:v}){let{classes:u,cx:w}=ry({size:o,color:t,disabled:d},{classNames:i,styles:l,unstyled:h,name:"Slider"}),k=e.map((E,p)=>d0.default.createElement(D,{className:u.markWrapper,sx:{left:`${Kh({value:E.value,min:n,max:r})}%`},key:p},d0.default.createElement("div",{className:w(u.mark,{[u.markFilled]:ny({mark:E,value:a,offset:c,inverted:v})})}),E.label&&d0.default.createElement("div",{className:u.markLabel,onMouseDown:m=>{m.stopPropagation(),s(E.value)},onTouchStart:m=>{m.stopPropagation(),s(E.value)}},E.label)));return d0.default.createElement("div",null,k)}Df.displayName="@mantine/core/SliderMarks";var VF=W((e,{radius:t,size:o,color:n,disabled:r,inverted:a})=>({track:{position:"relative",height:e.fn.size({sizes:jt,size:o}),width:"100%",marginRight:e.fn.size({size:o,sizes:jt}),marginLeft:e.fn.size({size:o,sizes:jt}),"&::before":{content:'""',position:"absolute",top:0,bottom:0,borderRadius:e.fn.size({size:t,sizes:e.radius}),right:-e.fn.size({size:o,sizes:jt}),left:-e.fn.size({size:o,sizes:jt}),backgroundColor:a?r?e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]:e.fn.variant({variant:"filled",color:n}).background:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],zIndex:0}},bar:{position:"absolute",zIndex:1,top:0,bottom:0,backgroundColor:a?e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]:r?e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]:e.fn.variant({variant:"filled",color:n}).background,borderRadius:e.fn.size({size:t,sizes:e.radius})}})),ay=VF;var UF=Object.defineProperty,qF=Object.defineProperties,GF=Object.getOwnPropertyDescriptors,Yh=Object.getOwnPropertySymbols,ly=Object.prototype.hasOwnProperty,cy=Object.prototype.propertyIsEnumerable,iy=(e,t,o)=>t in e?UF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,KF=(e,t)=>{for(var o in t||(t={}))ly.call(t,o)&&iy(e,o,t[o]);if(Yh)for(var o of Yh(t))cy.call(t,o)&&iy(e,o,t[o]);return e},XF=(e,t)=>qF(e,GF(t)),YF=(e,t)=>{var o={};for(var n in e)ly.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Yh)for(var n of Yh(e))t.indexOf(n)<0&&cy.call(e,n)&&(o[n]=e[n]);return o};function Ff(e){var t=e,{filled:o,size:n,color:r,classNames:a,styles:i,radius:l,children:c,offset:s,onMouseLeave:d,onMouseEnter:h,disabled:v,marksOffset:u,unstyled:w,inverted:k}=t,E=YF(t,["filled","size","color","classNames","styles","radius","children","offset","onMouseLeave","onMouseEnter","disabled","marksOffset","unstyled","inverted"]);let{classes:p}=ay({color:r,size:n,radius:l,disabled:v,inverted:k},{classNames:a,styles:i,unstyled:w,name:"Slider"});return Xh.default.createElement("div",{className:p.track,onMouseLeave:d,onMouseEnter:h},Xh.default.createElement(D,{className:p.bar,sx:m=>({left:`calc(${s}% - ${m.fn.size({size:n,sizes:jt})}px)`,width:`calc(${o}% + ${m.fn.size({size:n,sizes:jt})}px)`})}),c,Xh.default.createElement(Df,XF(KF({},E),{size:n,color:r,offset:u,classNames:a,styles:i,disabled:v,unstyled:w,inverted:k})))}Ff.displayName="@mantine/core/SliderTrack";var Zh=y(I());var QF=Object.defineProperty,ZF=Object.defineProperties,JF=Object.getOwnPropertyDescriptors,Qh=Object.getOwnPropertySymbols,dy=Object.prototype.hasOwnProperty,hy=Object.prototype.propertyIsEnumerable,sy=(e,t,o)=>t in e?QF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,e$=(e,t)=>{for(var o in t||(t={}))dy.call(t,o)&&sy(e,o,t[o]);if(Qh)for(var o of Qh(t))hy.call(t,o)&&sy(e,o,t[o]);return e},t$=(e,t)=>ZF(e,JF(t)),o$=(e,t)=>{var o={};for(var n in e)dy.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Qh)for(var n of Qh(e))t.indexOf(n)<0&&hy.call(e,n)&&(o[n]=e[n]);return o},$f=(0,Zh.forwardRef)((e,t)=>{var o=e,{className:n,size:r,classNames:a,styles:i,disabled:l,unstyled:c}=o,s=o$(o,["className","size","classNames","styles","disabled","unstyled"]);let{classes:d,cx:h}=Jb({size:r,disabled:l},{classNames:a,styles:i,unstyled:c,name:"Slider"});return Zh.default.createElement(D,t$(e$({},s),{tabIndex:-1,className:h(d.root,n),ref:t}))});$f.displayName="@mantine/core/SliderRoot";var n$=Object.defineProperty,r$=Object.defineProperties,a$=Object.getOwnPropertyDescriptors,Jh=Object.getOwnPropertySymbols,my=Object.prototype.hasOwnProperty,uy=Object.prototype.propertyIsEnumerable,vy=(e,t,o)=>t in e?n$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,i$=(e,t)=>{for(var o in t||(t={}))my.call(t,o)&&vy(e,o,t[o]);if(Jh)for(var o of Jh(t))uy.call(t,o)&&vy(e,o,t[o]);return e},l$=(e,t)=>r$(e,a$(t)),c$=(e,t)=>{var o={};for(var n in e)my.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&Jh)for(var n of Jh(e))t.indexOf(n)<0&&uy.call(e,n)&&(o[n]=e[n]);return o},s$={size:"md",radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransition:"skew-down",labelTransitionDuration:0,labelAlwaysOn:!1,thumbLabel:"",showLabelOnHover:!0,disabled:!1,scale:e=>e},Dl=(0,Io.forwardRef)((e,t)=>{let o=S("Slider",s$,e),{classNames:n,styles:r,color:a,value:i,onChange:l,onChangeEnd:c,size:s,radius:d,min:h,max:v,step:u,precision:w,defaultValue:k,name:E,marks:p,label:m,labelTransition:f,labelTransitionDuration:g,labelTransitionTimingFunction:M,labelAlwaysOn:z,thumbLabel:x,showLabelOnHover:b,thumbChildren:L,disabled:C,unstyled:B,thumbSize:N,scale:j,inverted:T}=o,H=c$(o,["classNames","styles","color","value","onChange","onChangeEnd","size","radius","min","max","step","precision","defaultValue","name","marks","label","labelTransition","labelTransitionDuration","labelTransitionTimingFunction","labelAlwaysOn","thumbLabel","showLabelOnHover","thumbChildren","disabled","unstyled","thumbSize","scale","inverted"]),_=je(),[A,F]=(0,Io.useState)(!1),[V,$]=ht({value:typeof i=="number"?bo(i,h,v):i,defaultValue:typeof k=="number"?bo(k,h,v):k,finalValue:bo(0,h,v),onChange:l}),U=(0,Io.useRef)(V),oe=(0,Io.useRef)(),ve=Kh({value:V,min:h,max:v}),J=j(V),he=typeof m=="function"?m(J):m,ue=(0,Io.useCallback)(({x:se})=>{if(!C){let ke=Yb({value:se,min:h,max:v,step:u,precision:w});$(ke),U.current=ke}},[C,h,v,u,w]),{ref:ie,active:le}=ri(ue,{onScrubEnd:()=>c==null?void 0:c(U.current)},_.dir),fe=se=>{se.stopPropagation()},ne=se=>{if(!C)switch(se.key){case"ArrowUp":{se.preventDefault(),oe.current.focus();let ke=Math.min(Math.max(V+u,h),v);c==null||c(ke),$(ke);break}case"ArrowRight":{se.preventDefault(),oe.current.focus();let ke=Math.min(Math.max(_.dir==="rtl"?V-u:V+u,h),v);c==null||c(ke),$(ke);break}case"ArrowDown":{se.preventDefault(),oe.current.focus();let ke=Math.min(Math.max(V-u,h),v);c==null||c(ke),$(ke);break}case"ArrowLeft":{se.preventDefault(),oe.current.focus();let ke=Math.min(Math.max(_.dir==="rtl"?V+u:V-u,h),v);c==null||c(ke),$(ke);break}case"Home":{se.preventDefault(),oe.current.focus(),c==null||c(h),$(h);break}case"End":{se.preventDefault(),oe.current.focus(),c==null||c(v),$(v);break}}};return Io.default.createElement($f,l$(i$({},H),{size:s,ref:At(ie,t),onKeyDownCapture:ne,onMouseDownCapture:()=>{var se;return(se=ie.current)==null?void 0:se.focus()},classNames:n,styles:r,disabled:C,unstyled:B}),Io.default.createElement(Ff,{inverted:T,offset:0,filled:ve,marks:p,size:s,radius:d,color:a,min:h,max:v,value:J,onChange:$,onMouseEnter:b?()=>F(!0):void 0,onMouseLeave:b?()=>F(!1):void 0,classNames:n,styles:r,disabled:C,unstyled:B},Io.default.createElement(Af,{max:v,min:h,value:J,position:ve,dragging:le,color:a,size:s,label:he,ref:oe,onMouseDown:fe,labelTransition:f,labelTransitionDuration:g,labelTransitionTimingFunction:M,labelAlwaysOn:z,classNames:n,styles:r,thumbLabel:x,showLabelOnHover:b&&A,disabled:C,unstyled:B,thumbSize:N},L)),Io.default.createElement("input",{type:"hidden",name:E,value:J}))});Dl.displayName="@mantine/core/Slider";var tv=y(I());var d$=Object.defineProperty,ev=Object.getOwnPropertySymbols,fy=Object.prototype.hasOwnProperty,ky=Object.prototype.propertyIsEnumerable,py=(e,t,o)=>t in e?d$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,h$=(e,t)=>{for(var o in t||(t={}))fy.call(t,o)&&py(e,o,t[o]);if(ev)for(var o of ev(t))ky.call(t,o)&&py(e,o,t[o]);return e},v$=(e,t)=>{var o={};for(var n in e)fy.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&ev)for(var n of ev(e))t.indexOf(n)<0&&ky.call(e,n)&&(o[n]=e[n]);return o},m$={w:0,h:0},$t=(0,tv.forwardRef)((e,t)=>{let o=S("Space",m$,e),{w:n,h:r}=o,a=v$(o,["w","h"]);return tv.default.createElement(D,h$({ref:t,w:n,miw:n,h:r,mih:r},a))});$t.displayName="@mantine/core/Space";var Ea=y(I());var Fl=y(I());var ov=y(I()),wy=(0,ov.createContext)(null),Ey=wy.Provider,gy=()=>(0,ov.useContext)(wy);var u$=Object.defineProperty,nv=Object.getOwnPropertySymbols,zy=Object.prototype.hasOwnProperty,by=Object.prototype.propertyIsEnumerable,xy=(e,t,o)=>t in e?u$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,My=(e,t)=>{for(var o in t||(t={}))zy.call(t,o)&&xy(e,o,t[o]);if(nv)for(var o of nv(t))by.call(t,o)&&xy(e,o,t[o]);return e},p$=(e,t)=>{var o={};for(var n in e)zy.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&nv)for(var n of nv(e))t.indexOf(n)<0&&by.call(e,n)&&(o[n]=e[n]);return o},f$={orientation:"horizontal",spacing:"lg",size:"sm",offset:"xs"},Vf=(0,Fl.forwardRef)((e,t)=>{let o=S("SwitchGroup",f$,e),{children:n,value:r,defaultValue:a,onChange:i,orientation:l,spacing:c,size:s,wrapperProps:d,offset:h}=o,v=p$(o,["children","value","defaultValue","onChange","orientation","spacing","size","wrapperProps","offset"]),[u,w]=ht({value:r,defaultValue:a,finalValue:[],onChange:i}),k=E=>{let p=E.currentTarget.value;w(u.includes(p)?u.filter(m=>m!==p):[...u,p])};return Fl.default.createElement(Ey,{value:{value:u,onChange:k,size:s}},Fl.default.createElement(Ct.Wrapper,My(My({labelElement:"div",size:s,__staticSelector:"SwitchGroup",ref:t},d),v),Fl.default.createElement(d9,{spacing:c,orientation:l,offset:h},n)))});Vf.displayName="@mantine/core/SwitchGroup";var k$=Object.defineProperty,w$=Object.defineProperties,E$=Object.getOwnPropertyDescriptors,yy=Object.getOwnPropertySymbols,g$=Object.prototype.hasOwnProperty,x$=Object.prototype.propertyIsEnumerable,Ly=(e,t,o)=>t in e?k$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,M$=(e,t)=>{for(var o in t||(t={}))g$.call(t,o)&&Ly(e,o,t[o]);if(yy)for(var o of yy(t))x$.call(t,o)&&Ly(e,o,t[o]);return e},z$=(e,t)=>w$(e,E$(t)),b$={xs:16,sm:20,md:24,lg:30,xl:36},y$={xs:32,sm:38,md:46,lg:56,xl:72},L$={xs:12,sm:14,md:18,lg:22,xl:28},C$={xs:5,sm:6,md:7,lg:9,xl:11},I$={xs:4,sm:5,md:6,lg:8,xl:10},N$=W((e,{size:t,radius:o,color:n,labelPosition:r,error:a})=>{let i=e.fn.size({size:t,sizes:L$}),l=e.fn.size({size:o,sizes:e.radius}),c=e.fn.variant({variant:"filled",color:n}),s=e.fn.size({size:t,sizes:y$}),d=t==="xs"?1:2,h=e.fn.variant({variant:"filled",color:"red"}).background;return{input:{clip:"rect(1px, 1px, 1px, 1px)",height:0,width:0,overflow:"hidden",whiteSpace:"nowrap",padding:0,WebkitClipPath:"inset(50%)",clipPath:"inset(50%)",position:"absolute"},track:z$(M$({},e.fn.focusStyles("input:focus + &")),{cursor:e.cursorType,overflow:"hidden",WebkitTapHighlightColor:"transparent",position:"relative",borderRadius:l,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[2],border:`1px solid ${a?h:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,height:e.fn.size({size:t,sizes:b$}),minWidth:s,margin:0,transitionProperty:"background-color, border-color",transitionTimingFunction:e.transitionTimingFunction,transitionDuration:"150ms",boxSizing:"border-box",appearance:"none",display:"flex",alignItems:"center",fontSize:e.fn.size({size:t,sizes:C$}),fontWeight:600,order:r==="left"?2:1,userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none",zIndex:0,lineHeight:0,color:e.colorScheme==="dark"?e.colors.dark[1]:e.colors.gray[6],transition:`color 150ms ${e.transitionTimingFunction}`,"input:checked + &":{backgroundColor:c.background,borderColor:c.background,color:e.white,transition:`color 150ms ${e.transitionTimingFunction}`},"input:disabled + &":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],cursor:"not-allowed"}}),thumb:{position:"absolute",zIndex:1,borderRadius:l,boxSizing:"border-box",display:"flex",backgroundColor:e.white,height:i,width:i,border:`1px solid ${e.colorScheme==="dark"?e.white:e.colors.gray[3]}`,left:`${d}px`,transition:`left 150ms ${e.transitionTimingFunction}`,"& > *":{margin:"auto"},"@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":""},"input:checked + * > &":{left:`calc(100% - ${i}px - ${d}px)`,borderColor:e.white},"input:disabled + * > &":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],backgroundColor:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[0]}},trackLabel:{height:"100%",display:"grid",placeContent:"center",minWidth:s-i,paddingInline:e.fn.size({size:t,sizes:I$}),margin:`0 0 0 ${i+d}px`,transition:`margin 150ms ${e.transitionTimingFunction}`,"input:checked + * > &":{margin:`0 ${i+d}px 0 0`}}}}),Cy=N$;var B$=Object.defineProperty,j$=Object.defineProperties,H$=Object.getOwnPropertyDescriptors,rv=Object.getOwnPropertySymbols,Ny=Object.prototype.hasOwnProperty,By=Object.prototype.propertyIsEnumerable,Iy=(e,t,o)=>t in e?B$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Uf=(e,t)=>{for(var o in t||(t={}))Ny.call(t,o)&&Iy(e,o,t[o]);if(rv)for(var o of rv(t))By.call(t,o)&&Iy(e,o,t[o]);return e},W$=(e,t)=>j$(e,H$(t)),S$=(e,t)=>{var o={};for(var n in e)Ny.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&rv)for(var n of rv(e))t.indexOf(n)<0&&By.call(e,n)&&(o[n]=e[n]);return o},_$={offLabel:"",onLabel:"",size:"sm",radius:"xl",error:!1},h0=(0,Ea.forwardRef)((e,t)=>{var o;let n=S("Switch",_$,e),{className:r,color:a,label:i,offLabel:l,onLabel:c,id:s,style:d,size:h,radius:v,wrapperProps:u,children:w,unstyled:k,styles:E,classNames:p,thumbIcon:m,sx:f,checked:g,defaultChecked:M,onChange:z,labelPosition:x,description:b,error:L,disabled:C}=n,B=S$(n,["className","color","label","offLabel","onLabel","id","style","size","radius","wrapperProps","children","unstyled","styles","classNames","thumbIcon","sx","checked","defaultChecked","onChange","labelPosition","description","error","disabled"]),N=gy(),{classes:j}=Cy({size:(N==null?void 0:N.size)||h,color:a,radius:v,labelPosition:x,error:!!L},{unstyled:k,styles:E,classNames:p,name:"Switch"}),{systemStyles:T,rest:H}=ta(B),_=Do(s),A=N?{checked:N.value.includes(H.value),onChange:N.onChange}:{},[F,V]=ht({value:(o=A.checked)!=null?o:g,defaultValue:M,finalValue:!1});return Ea.default.createElement(vf,Uf(Uf({className:r,sx:f,style:d,id:_,size:(N==null?void 0:N.size)||h,labelPosition:x,label:i,description:b,error:L,disabled:C,__staticSelector:"Switch",classNames:p,styles:E,unstyled:k,"data-checked":A.checked||void 0},T),u),Ea.default.createElement("input",W$(Uf({},H),{disabled:C,checked:F,onChange:$=>{N?A.onChange($):z==null||z($),V($.currentTarget.checked)},id:_,ref:t,type:"checkbox",className:j.input})),Ea.default.createElement("label",{htmlFor:_,className:j.track},Ea.default.createElement("div",{className:j.thumb},m),Ea.default.createElement("div",{className:j.trackLabel},F?c:l)))});h0.displayName="@mantine/core/Switch";h0.Group=Vf;var m0=y(I());var iv=y(I());var v0={context:"Tabs component was not found in the tree",value:"Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value"};var[jy,$l]=cs(v0.context);var O$=Object.defineProperty,Hy=Object.getOwnPropertySymbols,P$=Object.prototype.hasOwnProperty,R$=Object.prototype.propertyIsEnumerable,Wy=(e,t,o)=>t in e?O$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,T$=(e,t)=>{for(var o in t||(t={}))P$.call(t,o)&&Wy(e,o,t[o]);if(Hy)for(var o of Hy(t))R$.call(t,o)&&Wy(e,o,t[o]);return e};function A$({variant:e,orientation:t,inverted:o,placement:n},r){let a=t==="vertical";return e==="default"?{[a?n==="left"?"borderRight":"borderLeft":o?"borderTop":"borderBottom"]:`2px solid ${r.colorScheme==="dark"?r.colors.dark[4]:r.colors.gray[3]}`}:e==="outline"?{[a?n==="left"?"borderRight":"borderLeft":o?"borderTop":"borderBottom"]:`1px solid ${r.colorScheme==="dark"?r.colors.dark[4]:r.colors.gray[3]}`}:e==="pills"?{gap:`calc(${r.spacing.sm}px / 2)`}:{}}var D$=W((e,t)=>{let o=t.orientation==="vertical";return{tabsList:T$({display:"flex",flexWrap:"wrap",flexDirection:o?"column":"row",justifyContent:sf[t.position],'& [role="tab"]':{flex:t.grow?1:void 0}},A$(t,e))}}),Sy=D$;var F$=Object.defineProperty,$$=Object.defineProperties,V$=Object.getOwnPropertyDescriptors,av=Object.getOwnPropertySymbols,Oy=Object.prototype.hasOwnProperty,Py=Object.prototype.propertyIsEnumerable,_y=(e,t,o)=>t in e?F$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,U$=(e,t)=>{for(var o in t||(t={}))Oy.call(t,o)&&_y(e,o,t[o]);if(av)for(var o of av(t))Py.call(t,o)&&_y(e,o,t[o]);return e},q$=(e,t)=>$$(e,V$(t)),G$=(e,t)=>{var o={};for(var n in e)Oy.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&av)for(var n of av(e))t.indexOf(n)<0&&Py.call(e,n)&&(o[n]=e[n]);return o},K$={grow:!1,position:"left"},qf=(0,iv.forwardRef)((e,t)=>{let o=S("TabsList",K$,e),{children:n,className:r,grow:a,position:i}=o,l=G$(o,["children","className","grow","position"]),{orientation:c,variant:s,color:d,radius:h,inverted:v,placement:u,classNames:w,styles:k,unstyled:E}=$l(),{classes:p,cx:m}=Sy({orientation:c,grow:a,variant:s,color:d,position:i,radius:h,inverted:v,placement:u},{name:"Tabs",unstyled:E,classNames:w,styles:k});return iv.default.createElement(D,q$(U$({},l),{className:m(p.tabsList,r),ref:t,role:"tablist","aria-orientation":c}),n)});qf.displayName="@mantine/core/TabsList";var cv=y(I());var X$=W((e,{orientation:t})=>({panel:{flex:t==="vertical"?1:void 0}})),Ry=X$;var Y$=Object.defineProperty,Q$=Object.defineProperties,Z$=Object.getOwnPropertyDescriptors,lv=Object.getOwnPropertySymbols,Ay=Object.prototype.hasOwnProperty,Dy=Object.prototype.propertyIsEnumerable,Ty=(e,t,o)=>t in e?Y$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,J$=(e,t)=>{for(var o in t||(t={}))Ay.call(t,o)&&Ty(e,o,t[o]);if(lv)for(var o of lv(t))Dy.call(t,o)&&Ty(e,o,t[o]);return e},eV=(e,t)=>Q$(e,Z$(t)),tV=(e,t)=>{var o={};for(var n in e)Ay.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&lv)for(var n of lv(e))t.indexOf(n)<0&&Dy.call(e,n)&&(o[n]=e[n]);return o},oV={},Gf=(0,cv.forwardRef)((e,t)=>{let o=S("TabsPanel",oV,e),{value:n,children:r,sx:a,className:i}=o,l=tV(o,["value","children","sx","className"]),c=$l(),{classes:s,cx:d}=Ry({orientation:c.orientation,variant:c.variant,color:c.color,radius:c.radius,inverted:c.inverted,placement:c.placement},{name:"Tabs",unstyled:c.unstyled,classNames:c.classNames,styles:c.styles}),h=c.value===n,v=c.keepMounted||h?r:null;return cv.default.createElement(D,eV(J$({},l),{ref:t,sx:[{display:h?void 0:"none"},...zo(a)],className:d(s.panel,i),role:"tabpanel",id:c.getPanelId(n),"aria-labelledby":c.getTabId(n)}),v)});Gf.displayName="@mantine/core/TabsPanel";var pi=y(I());var nV=Object.defineProperty,rV=Object.defineProperties,aV=Object.getOwnPropertyDescriptors,Fy=Object.getOwnPropertySymbols,iV=Object.prototype.hasOwnProperty,lV=Object.prototype.propertyIsEnumerable,$y=(e,t,o)=>t in e?nV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Vl=(e,t)=>{for(var o in t||(t={}))iV.call(t,o)&&$y(e,o,t[o]);if(Fy)for(var o of Fy(t))lV.call(t,o)&&$y(e,o,t[o]);return e},Vy=(e,t)=>rV(e,aV(t));function cV(e,{variant:t,orientation:o,color:n,radius:r,inverted:a,placement:i}){let l=o==="vertical",c=e.fn.variant({color:n,variant:"filled"}),s=e.fn.radius(r),d=o==="vertical"?i==="left"?`${s}px 0 0 ${s}px`:` 0 ${s}px ${s}px 0`:a?`0 0 ${s}px ${s}px`:`${s}px ${s}px 0 0`;return t==="default"?Vy(Vl({[l?i==="left"?"borderRight":"borderLeft":a?"borderTop":"borderBottom"]:"2px solid transparent",[l?i==="left"?"marginRight":"marginLeft":a?"marginTop":"marginBottom"]:-2,borderRadius:d},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]})),{"&[data-active]":Vl({borderColor:c.background,color:e.colorScheme==="dark"?e.white:e.black},e.fn.hover({borderColor:c.background}))}):t==="outline"?{borderRadius:d,border:"1px solid transparent",[l?i==="left"?"borderRight":"borderLeft":a?"borderTop":"borderBottom"]:"none","&[data-active]":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3],"&::before":{content:'""',backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,position:"absolute",bottom:l?0:a?"unset":-1,top:l?0:a?-1:"unset",[l?"width":"height"]:1,right:l?i==="left"?-1:"unset":0,left:l?i==="left"?"unset":-1:0}}}:t==="pills"?Vy(Vl({borderRadius:e.fn.radius(r)},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]})),{"&[data-active]":Vl({backgroundColor:c.background,color:e.white},e.fn.hover({backgroundColor:c.background}))}):{}}var sV=W((e,t)=>({tabLabel:{},tab:Vl({position:"relative",padding:`${e.spacing.xs}px ${e.spacing.md}px`,paddingLeft:t.withIcon?e.spacing.xs:void 0,paddingRight:t.withRightSection?e.spacing.xs:void 0,fontSize:e.fontSizes.sm,whiteSpace:"nowrap",zIndex:0,display:"flex",alignItems:"center",justifyContent:t.orientation==="horizontal"?"center":void 0,lineHeight:1,"&:disabled":Vl({opacity:.5,cursor:"not-allowed"},e.fn.hover({backgroundColor:"transparent"})),"&:focus":{zIndex:1}},cV(e,t)),tabRightSection:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginLeft:7}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginRight:7}}})),Uy=sV;var dV=Object.defineProperty,hV=Object.defineProperties,vV=Object.getOwnPropertyDescriptors,sv=Object.getOwnPropertySymbols,Gy=Object.prototype.hasOwnProperty,Ky=Object.prototype.propertyIsEnumerable,qy=(e,t,o)=>t in e?dV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,mV=(e,t)=>{for(var o in t||(t={}))Gy.call(t,o)&&qy(e,o,t[o]);if(sv)for(var o of sv(t))Ky.call(t,o)&&qy(e,o,t[o]);return e},uV=(e,t)=>hV(e,vV(t)),pV=(e,t)=>{var o={};for(var n in e)Gy.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&sv)for(var n of sv(e))t.indexOf(n)<0&&Ky.call(e,n)&&(o[n]=e[n]);return o},fV={},Kf=(0,pi.forwardRef)((e,t)=>{let o=S("TabsTab",fV,e),{value:n,children:r,onKeyDown:a,onClick:i,className:l,icon:c,rightSection:s,color:d}=o,h=pV(o,["value","children","onKeyDown","onClick","className","icon","rightSection","color"]),v=$l(),u=!!c,w=!!s,{theme:k,classes:E,cx:p}=Uy({withIcon:u||w&&!r,withRightSection:w||u&&!r,orientation:v.orientation,color:d||v.color,variant:v.variant,radius:v.radius,inverted:v.inverted,placement:v.placement},{name:"Tabs",unstyled:v.unstyled,classNames:v.classNames,styles:v.styles}),m=n===v.value,f=g=>{v.onTabChange(v.allowTabDeactivation&&n===v.value?null:n),i==null||i(g)};return pi.default.createElement(El,uV(mV({},h),{unstyled:v.unstyled,className:p(E.tab,l),"data-active":m||void 0,ref:t,type:"button",role:"tab",id:v.getTabId(n),"aria-selected":m,tabIndex:m||v.value===null?0:-1,"aria-controls":v.getPanelId(n),onClick:f,onKeyDown:Fu({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:v.activateTabWithKeyboard,loop:v.loop,dir:k.dir,orientation:v.orientation,onKeyDown:a})}),c&&pi.default.createElement("div",{className:E.tabIcon},c),r&&pi.default.createElement("div",{className:E.tabLabel},r),s&&pi.default.createElement("div",{className:E.tabRightSection},s))});Kf.displayName="@mantine/core/Tab";var Xy=y(I());function Xf({defaultValue:e,value:t,onTabChange:o,orientation:n,children:r,loop:a,id:i,activateTabWithKeyboard:l,allowTabDeactivation:c,variant:s,color:d,radius:h,inverted:v,placement:u,keepMounted:w=!0,classNames:k,styles:E,unstyled:p}){let m=Do(i),[f,g]=ht({value:t,defaultValue:e,finalValue:null,onChange:o});return Xy.default.createElement(jy,{value:{placement:u,value:f,orientation:n,id:m,loop:a,activateTabWithKeyboard:l,getTabId:a1(`${m}-tab`,v0.value),getPanelId:a1(`${m}-panel`,v0.value),onTabChange:g,allowTabDeactivation:c,variant:s,color:d,radius:h,inverted:v,keepMounted:w,classNames:k,styles:E,unstyled:p}},r)}Xf.displayName="@mantine/core/TabsProvider";var kV=W((e,{orientation:t,placement:o})=>({root:{display:t==="vertical"?"flex":void 0,flexDirection:o==="right"?"row-reverse":"row"}})),Yy=kV;var wV=Object.defineProperty,EV=Object.defineProperties,gV=Object.getOwnPropertyDescriptors,dv=Object.getOwnPropertySymbols,Zy=Object.prototype.hasOwnProperty,Jy=Object.prototype.propertyIsEnumerable,Qy=(e,t,o)=>t in e?wV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,xV=(e,t)=>{for(var o in t||(t={}))Zy.call(t,o)&&Qy(e,o,t[o]);if(dv)for(var o of dv(t))Jy.call(t,o)&&Qy(e,o,t[o]);return e},MV=(e,t)=>EV(e,gV(t)),zV=(e,t)=>{var o={};for(var n in e)Zy.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&dv)for(var n of dv(e))t.indexOf(n)<0&&Jy.call(e,n)&&(o[n]=e[n]);return o},bV={orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},Ae=(0,m0.forwardRef)((e,t)=>{let o=S("Tabs",bV,e),{defaultValue:n,value:r,orientation:a,loop:i,activateTabWithKeyboard:l,allowTabDeactivation:c,children:s,id:d,onTabChange:h,variant:v,color:u,className:w,unstyled:k,classNames:E,styles:p,radius:m,inverted:f,keepMounted:g,placement:M}=o,z=zV(o,["defaultValue","value","orientation","loop","activateTabWithKeyboard","allowTabDeactivation","children","id","onTabChange","variant","color","className","unstyled","classNames","styles","radius","inverted","keepMounted","placement"]),{classes:x,cx:b}=Yy({orientation:a,color:u,variant:v,radius:m,inverted:f,placement:M},{unstyled:k,name:"Tabs",classNames:E,styles:p});return m0.default.createElement(Xf,{activateTabWithKeyboard:l,defaultValue:n,orientation:a,onTabChange:h,value:r,id:d,loop:i,allowTabDeactivation:c,color:u,variant:v,radius:m,inverted:f,keepMounted:g,placement:M,classNames:E,styles:p,unstyled:k},m0.default.createElement(D,MV(xV({},z),{className:b(x.root,w),id:d,ref:t}),s))});Ae.List=qf;Ae.Tab=Kf;Ae.Panel=Gf;Ae.displayName="@mantine/core/Tabs";var vv=y(I());var yV=Object.defineProperty,LV=Object.defineProperties,CV=Object.getOwnPropertyDescriptors,eL=Object.getOwnPropertySymbols,IV=Object.prototype.hasOwnProperty,NV=Object.prototype.propertyIsEnumerable,tL=(e,t,o)=>t in e?yV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,BV=(e,t)=>{for(var o in t||(t={}))IV.call(t,o)&&tL(e,o,t[o]);if(eL)for(var o of eL(t))NV.call(t,o)&&tL(e,o,t[o]);return e},jV=(e,t)=>LV(e,CV(t)),HV={xs:16,sm:20,md:26,lg:32,xl:40},WV=W((e,{color:t,size:o,radius:n,gradient:r,variant:a})=>{let i=e.fn.variant({variant:a,color:t||e.primaryColor,gradient:r,primaryFallback:!1}),l=e.fn.size({size:o,sizes:HV});return{root:jV(BV({},e.fn.fontStyles()),{display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:l,height:l,minWidth:l,minHeight:l,borderRadius:e.fn.radius(n),backgroundColor:i.background,color:i.color,backgroundImage:a==="gradient"?i.background:void 0,border:`${a==="gradient"?0:1}px solid ${i.border}`})}}),oL=WV;var SV=Object.defineProperty,hv=Object.getOwnPropertySymbols,rL=Object.prototype.hasOwnProperty,aL=Object.prototype.propertyIsEnumerable,nL=(e,t,o)=>t in e?SV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,_V=(e,t)=>{for(var o in t||(t={}))rL.call(t,o)&&nL(e,o,t[o]);if(hv)for(var o of hv(t))aL.call(t,o)&&nL(e,o,t[o]);return e},OV=(e,t)=>{var o={};for(var n in e)rL.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&hv)for(var n of hv(e))t.indexOf(n)<0&&aL.call(e,n)&&(o[n]=e[n]);return o},PV={size:"md",variant:"filled"},Ul=(0,vv.forwardRef)((e,t)=>{let o=S("ThemeIcon",PV,e),{className:n,size:r,radius:a,variant:i,color:l,children:c,gradient:s,unstyled:d}=o,h=OV(o,["className","size","radius","variant","color","children","gradient","unstyled"]),{classes:v,cx:u}=oL({variant:i,radius:a,color:l,size:r,gradient:s},{name:"ThemeIcon",unstyled:d});return vv.default.createElement(D,_V({className:u(v.root,n),ref:t},h),c)});Ul.displayName="@mantine/core/ThemeIcon";var uv=y(I());var RV=Object.defineProperty,TV=Object.defineProperties,AV=Object.getOwnPropertyDescriptors,iL=Object.getOwnPropertySymbols,DV=Object.prototype.hasOwnProperty,FV=Object.prototype.propertyIsEnumerable,lL=(e,t,o)=>t in e?RV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,$V=(e,t)=>{for(var o in t||(t={}))DV.call(t,o)&&lL(e,o,t[o]);if(iL)for(var o of iL(t))FV.call(t,o)&&lL(e,o,t[o]);return e},VV=(e,t)=>TV(e,AV(t));function UV(e,t,o){return typeof e<"u"?e in o.headings.sizes?o.headings.sizes[e].fontSize:e:o.headings.sizes[t].fontSize}function qV(e,t,o){return typeof e<"u"&&e in o.headings.sizes?o.headings.sizes[e].lineHeight:o.headings.sizes[t].lineHeight}var GV=W((e,{element:t,weight:o,size:n,inline:r})=>({root:VV($V({},e.fn.fontStyles()),{fontFamily:e.headings.fontFamily,fontWeight:o||e.headings.sizes[t].fontWeight||e.headings.fontWeight,fontSize:UV(n,t,e),lineHeight:r?1:qV(n,t,e),margin:0})})),cL=GV;var KV=Object.defineProperty,mv=Object.getOwnPropertySymbols,dL=Object.prototype.hasOwnProperty,hL=Object.prototype.propertyIsEnumerable,sL=(e,t,o)=>t in e?KV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,XV=(e,t)=>{for(var o in t||(t={}))dL.call(t,o)&&sL(e,o,t[o]);if(mv)for(var o of mv(t))hL.call(t,o)&&sL(e,o,t[o]);return e},YV=(e,t)=>{var o={};for(var n in e)dL.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&mv)for(var n of mv(e))t.indexOf(n)<0&&hL.call(e,n)&&(o[n]=e[n]);return o},QV={order:1},vt=(0,uv.forwardRef)((e,t)=>{let o=S("Title",QV,e),{className:n,order:r,children:a,unstyled:i,size:l,weight:c,inline:s}=o,d=YV(o,["className","order","children","unstyled","size","weight","inline"]),{classes:h,cx:v}=cL({element:`h${r}`,weight:c,size:l,inline:s},{name:"Title",unstyled:i});return[1,2,3,4,5,6].includes(r)?uv.default.createElement(re,XV({component:`h${r}`,ref:t,className:v(h.root,n)},d),a):null});vt.displayName="@mantine/core/Title";var Qf="Apple-Musiclike-lyrics";var pv="1.8.2";var Zf=["RefinedNowPlaying"];var Ce=y(I());var be=new EventTarget;function vL(e,t){let o=0;return function(){let r=this,a=arguments;o&&clearTimeout(o),o=setTimeout(e.bind(r,a),t)}}function fv(e){let t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",o=[];for(let n=0;n{};var Pe=JV,He=Wn?(...e)=>console.warn("[AMLL-Worker]",...e):console.warn,pL=Wn?(...e)=>console.error("[AMLL-Worker]",...e):console.error;var ql=class extends Array{constructor(o=(n,r)=>Number(n)-Number(r)){super();this._comparator=o;O(this,"_sorted",!1);O(this,"sort",o=>(this._comparator=o||this._comparator,this._sorted=!0,super.sort(this._comparator)));O(this,"push",o=>(this._sorted=!1,super.push(o)));O(this,"pop",()=>(this._sorted||this.sort(),super.pop()));O(this,"peek",o=>(this._sorted||this.sort(),o===void 0&&(o=this.length-1),this[o]));O(this,"size",()=>this.length);O(this,"debug",()=>(this._sorted||this.sort(),this))}};var Gl=class{constructor(t,o,n,r,a,i,l){this.r1=t;this.r2=o;this.g1=n;this.g2=r;this.b1=a;this.b2=i;this.histo=l;O(this,"_count",-1);O(this,"_volume",0);O(this,"_avg",[]);O(this,"volume",t=>this._volume&&!t?this._volume:(this._volume=(this.r2-this.r1+1)*(this.g2-this.g1+1)*(this.b2-this.b1+1),this._volume));O(this,"count",t=>{if(this._count>-1&&!t)return this._count;let o=0,n,r,a,i;for(n=this.r1;n<=this.r2;n++)for(r=this.g1;r<=this.g2;r++)for(a=this.b1;a<=this.b2;a++)i=fi(n,r,a),o+=this.histo[i]||0;return this._count=o,this._count});O(this,"copy",()=>new Gl(this.r1,this.r2,this.g1,this.g2,this.b1,this.b2,this.histo));O(this,"avg",t=>{if(this._avg.length&&t)return this._avg;let o=0,n=1<{let[o,n,r]=t.map(a=>a>>kv);return o>=this.r1&&o<=this.r2&&n>=this.g1&&n<=this.g2&&r>=this.b1&&r<=this.b2})}};var wv=5,kv=8-wv,Jf=1e3,fL=.75,yr={naturalOrder:(e,t)=>et?1:0,sum:(e,t)=>e.reduce((o,n)=>o+(t?t.call(e,n):Number(n)),0),max:(e,t)=>Math.max.apply(null,t?e.map(t):e.map(o=>Number(o))),size:e=>e.reduce((t,o)=>o?t+1:t,0)},fi=(e,t,o)=>(e<<2*wv)+(t<{let t=new Array(1<<3*wv),o,n=1/0,r=0,a=1/0,i=0,l=1/0,c=0,s,d,h;return e.forEach(function(v){[s,d,h]=v.map(u=>u>>kv),o=fi(s,d,h),t[o]=(t[o]||0)+1,sr&&(r=s),di&&(i=d),hc&&(c=h)}),{vbox:new Gl(n,r,a,i,l,c,t),histo:t}},wL=(e,t)=>{if(!t.count())return[];if(t.count()===1)return[t.copy()];let o=t.r2-t.r1+1,n=t.g2-t.g1+1,r=t.b2-t.b1+1,a=yr.max([o,n,r]),i=[],l=0,c,s,d,h,v;if(a===o)for(c=t.r1;c<=t.r2;c++){for(h=0,s=t.g1;s<=t.g2;s++)for(d=t.b1;d<=t.b2;d++)v=fi(c,s,d),h+=e[v]||0;l+=h,i[c]=l}else if(a===n)for(c=t.g1;c<=t.g2;c++){for(h=0,s=t.r1;s<=t.r2;s++)for(d=t.b1;d<=t.b2;d++)v=fi(s,c,d),h+=e[v]||0;l+=h,i[c]=l}else for(c=t.b1;c<=t.b2;c++){for(h=0,s=t.r1;s<=t.r2;s++)for(d=t.g1;d<=t.g2;d++)v=fi(s,d,c),h+=e[v]||0;l+=h,i[c]=l}let u=w=>{let k=`${w}1`,E=`${w}2`,p,m,f,g,M;for(c=t[k];c<=t[E]&&!(i[c]>=l/2);c++);for(f=t.copy(),g=t.copy(),p=c-t[k],m=t[E]-c,M=p<=m?Math.min(t[E]-1,~~(c+m/2)):Math.max(t[k],~~(c-1-p/2));!i[M]&&M<=t[E];)M++;return f[E]=M,g[k]=M+1,[f,g]};return u(a===o?"r":a===n?"g":"b")};var Ev=class{constructor(){O(this,"vboxes");O(this,"push",t=>{this.vboxes.push({vbox:t,color:t.avg()})});O(this,"palette",()=>this.vboxes.map(t=>t.color));O(this,"size",()=>this.vboxes.size());O(this,"map",t=>{for(let o=0;o{let o,n,r,a;for(o=0;o{this.vboxes.sort((r,a)=>yr.naturalOrder(yr.sum(r.color),yr.sum(a.color)));let t=this.vboxes[0].color;t[0]<5&&t[1]<5&&t[2]<5&&(this.vboxes[0].color=[0,0,0]);let o=this.vboxes.length-1,n=this.vboxes[o].color;n[0]>251&&n[1]>251&&n[2]>251&&(this.vboxes[o].color=[255,255,255]),this.vboxes.sort(Ev._compare)});this.vboxes=new ql(Ev._compare)}},Kl=Ev;O(Kl,"_compare",(t,o)=>yr.naturalOrder(t.vbox.count()*t.vbox.volume(),o.vbox.count()*o.vbox.volume()));var EL=(e,t)=>{if(!e.length||t<1||t>256)return new Kl;let{histo:o,vbox:n}=kL(e),r=new ql((l,c)=>yr.naturalOrder(l.count(),c.count()));r.push(n);let a=(l,c)=>{let s=l.size(),d=0,h;for(;d=c||d++>Jf||!l.peek().count())return;h=l.pop();let[v,u]=wL(o,h);if(!v)return;l.push(v),u&&(l.push(u),s++)}};a(r,fL*t),r.sort((l,c)=>yr.naturalOrder(l.count()*l.volume(),c.count()*c.volume())),a(r,t);let i=new Kl;for(;r.size();)i.push(r.pop());return i};var Qn,gL="",gv;function ML(e=gL){gL=e,gv&&URL.revokeObjectURL(gv),gv=URL.createObjectURL(new Blob([e],{type:"application/javascript"})),Qn==null||Qn.removeEventListener("message",xL),Qn==null||Qn.terminate(),Qn=new Worker(gv,{name:"AMLL Worker",type:"classic"}),tk(ga),Qn.addEventListener("message",xL)}var eU={},ek=new Map;function zL(e,t,o=[]){eU[e]={funcName:e,funcBody:t};let n=0;return(...r)=>{if(Qn)return new Promise((a,i)=>{let l=`${fv(4)} - ${e} - ${n++}`;ek.set(l,[a,i]),Qn.postMessage({id:l,funcName:e,args:r},o.map(c=>r[c]).filter(c=>!!c))});APP_CONF.isOSX||He("AMLL Worker 尚未运行,正在本地线程执行函数",e,r);try{let a=t(...r);return Promise.resolve(a)}catch(a){return Promise.reject(a)}}}var bL=zL("grabImageColors",(e,t=16)=>{let o,n;if(Wn||!APP_CONF.isOSX?(o=new OffscreenCanvas(e.width,e.height),n=o.getContext("2d")):(o=document.createElement("canvas"),o.width=e.width,o.height=e.height,n=o.getContext("2d")),n){n.drawImage(e,0,0);let r=n.getImageData(0,0,o.width,o.height),a=[];for(let c=0;cl.push(c)),l}else return[]}),tk=zL("setConfigFromMain",e=>{if(Wn){for(let t in e)ki(t,e[t]);Pe("已从主线程同步配置",...Object.keys(e))}});function xL(e){let t=ek.get(e.data.id);if(t){let[o,n]=t;ek.delete(e.data.id),e.data.error?n(e.data.error):o(e.data.result)}}var yL,LL,CL=`config.betterncm.${"plugin"in globalThis?((yL=plugin==null?void 0:plugin.manifest)==null?void 0:yL.slug)||((LL=plugin==null?void 0:plugin.manifest)==null?void 0:LL.name)||Qf:Qf}`,ga=tU();function tU(){if(Wn)return{};try{return JSON.parse(localStorage.getItem(CL)||"{}")}catch(e){return He("警告:AMLL 插件配置读取失败",e),{}}}function IL(){return ga||{}}var oU=vL(function(){if(Wn){be.dispatchEvent(new Event("config-saved"));return}try{localStorage.setItem(CL,JSON.stringify(ga))}catch(t){He("警告:AMLL 插件配置保存失败",t)}be.dispatchEvent(new Event("config-saved"))},2e3);function ki(e,t){Wn||tk({[e]:t}),t===void 0?delete ga[e]:ga[e]=t,oU()}function Vt(e,t){return ga[e]===void 0?t:ga[e]}var ok=new Map;function zv(e){if(e===1)return"pausing";if(e===2)return"playing";throw new TypeError(`未知的播放状态值 ${e}`)}var nk=["https://p3.music.126.net/","https://p4.music.126.net/"],xv=0;function bv(e){return xv++,xv%=nk.length,APP_CONF.isOSX?`${nk[xv]}${Mv("R$nameDo",["encryptId",e.toString()])}/${e}.jpg`:`${nk[xv]}${channel.encryptId(e.toString())}/${e}.jpg`}function NL(e,t){return Mv(yv(),[e,t])}function yv(){let e=Vt("eapiRequestFuncName","");return Pe("加密请求函数",e),Vt("ncmPackageVersion","")!==APP_CONF.packageVersion&&(e="",ki("ncmPackageVersion",APP_CONF.packageVersion)),e===""&&(e=Xl()||"",e===""&&(e=Xl(!0)||""),ki("eapiRequestFuncName",e),be.dispatchEvent(new Event("config-changed-eapiRequestFuncName"))),e}try{yv()}catch(e){}function BL(...e){return new Promise((t,o)=>{NL(`${APP_CONF.domain}/api/v3/song/detail`,{type:"json",data:{c:JSON.stringify(e.map(n=>({id:n})))},onload:t,onerror:o})})}function Xl(e=!1){var r,a,i;let t=["_bindTokenRequest","yidun","getToken","undefined"],o=["/api","register","anonimous"],n=betterncm.ncm.findApiFunction(l=>(l.toString().includes(t.join(" "))||l.toString().includes(o.join("/")))&&l!==Xl);if(n){for(let l in n[1])if(n[1][l]===n[0]){Pe("查找到原始请求函数:",l,n);let c=l;if(e)return c;for(let s in n[1])if((i=(a=(r=n[1][s])==null?void 0:r.originalFunc)==null?void 0:a.toString())!=null&&i.includes(`.${c}(`))return Pe("查找到绑定请求函数:",s,n),s}}return Pe("查找请求函数失败"),null}function Mv(e,t){if(!ok.has(e.toString())){let n=betterncm.ncm.findApiFunction(e);if(n){let[r,a]=n;ok.set(e.toString(),r.bind(a))}}let o=ok.get(e.toString());if(o)return o.apply(null,t);throw new TypeError(`函数 ${e.toString()} 未找到`)}function rk(e){return new Promise((t,o)=>{NL(`${APP_CONF.domain}/api/song/lyric/v1`,{type:"json",query:{id:e,cp:!1,tv:0,lv:0,rv:0,kv:0,yv:0,ytv:0,yrv:0},onload:t,onerror:o})})}function Jt(){return APP_CONF.isOSX?Mv("baJ",[]):Mv("getPlaying",[])}var Lv=async(e,t=!1)=>{let o=`${plugin.pluginPath}/lyrics`,n=`${o}/${e}.json`;try{if(!t&&await betterncm.fs.exists(n)){Pe("发现歌词缓存,正在加载缓存",n);let r=await betterncm.fs.readFileText(n);return JSON.parse(r)}}catch(r){He("警告:加载已缓存歌词失败",r)}if(typeof e=="number"){let r=await rk(e);try{await betterncm.fs.exists(o)||betterncm.fs.mkdir(o),await betterncm.fs.writeFile(n,JSON.stringify(r,null,4))}catch(a){He("警告:缓存歌词失败",a)}return r}else return{}};function ak(e,t){return`${e}|${t}|${fv(6)}`}function Yl(...e){let t=[];for(let o of e)if(typeof o=="string"){let n=o.trim();t.includes(n)||t.push(n)}else for(let n in o)if(o[n]){let r=n.trim();t.includes(r)||t.push(r)}return t.join(" ")}async function jL(e,t,o){return await e.decode(),createImageBitmap(e,0,0,e.width,e.height,{resizeWidth:t!=null?t:e.width,resizeHeight:o!=null?o:e.height,resizeQuality:"pixelated"})}function Lr(e){legacyNativeCmder._envAdapter.callAdapter("winhelper.setClipBoardData",()=>{},[e])}var et={},nU=0;function rt(e,t){let o=`atom${++nU}`,n={toString:()=>o};return typeof e=="function"?n.read=e:(n.init=e,n.read=r=>r(n),n.write=(r,a,i)=>a(n,typeof i=="function"?i(r(n)):i)),t&&(n.write=t),n}var ik=e=>"init"in e,lk=e=>!!e.write,Nv=new WeakMap,rU=(e,t)=>{Nv.set(e,t),e.catch(()=>{}).finally(()=>Nv.delete(e))},HL=(e,t)=>{let o=Nv.get(e);o&&(Nv.delete(e),o(t))},WL=(e,t)=>{e.status="fulfilled",e.value=t},SL=(e,t)=>{e.status="rejected",e.reason=t},Cv=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),_L=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),ck=e=>"v"in e&&e.v instanceof Promise,Iv=e=>{if("e"in e)throw e.e;return e.v},dk=()=>{let e=new WeakMap,t=new WeakMap,o=new Map,n,r;(et.env&&et.env.MODE)!=="production"&&(n=new Set,r=new Set);let a=x=>e.get(x),i=(x,b)=>{(et.env&&et.env.MODE)!=="production"&&Object.freeze(b);let L=e.get(x);if(e.set(x,b),o.has(x)||o.set(x,L),L&&ck(L)){let C="v"in b?b.v instanceof Promise?b.v:Promise.resolve(b.v):Promise.reject(b.e);HL(L.v,C)}},l=(x,b,L)=>{let C=new Map,B=!1;L.forEach(N=>{let j=N===x?b:a(N);j?(C.set(N,j),b.d.get(N)!==j&&(B=!0)):(et.env&&et.env.MODE)!=="production"&&console.warn("[Bug] atom state not found")}),(B||b.d.size!==C.size)&&(b.d=C)},c=(x,b,L)=>{let C=a(x),B={d:(C==null?void 0:C.d)||new Map,v:b};return L&&l(x,B,L),C&&Cv(C,B)&&C.d===B.d?C:(i(x,B),B)},s=(x,b,L)=>{let C=a(x),B={d:(C==null?void 0:C.d)||new Map,e:b};return L&&l(x,B,L),C&&_L(C,B)&&C.d===B.d?C:(i(x,B),B)},d=x=>{let b=a(x);if(b&&(b.d.forEach((H,_)=>{_!==x&&!t.has(_)&&d(_)}),Array.from(b.d).every(([H,_])=>H===x||a(H)===_)))return b;let L=new Set,C=!0,B=H=>{if(L.add(H),H===x){let A=a(H);if(A)return Iv(A);if(ik(H))return H.init;throw new Error("no atom init")}let _=d(H);return Iv(_)},N,j,T={get signal(){return N||(N=new AbortController),N.signal},get setSelf(){return(et.env&&et.env.MODE)!=="production"&&!lk(x)&&console.warn("setSelf function cannot be used with read-only atom"),!j&&lk(x)&&(j=(...H)=>{if((et.env&&et.env.MODE)!=="production"&&C&&console.warn("setSelf function cannot be called in sync"),!C)return p(x,...H)}),j}};try{let H=x.read(B,T);if(H instanceof Promise){let _,A=new Promise((F,V)=>{let $=!1;H.then(U=>{$||(WL(A,U),F(U))},U=>{$||(SL(A,U),V(U))}).finally(()=>{$||($=!0,c(x,A,L))}),_=U=>{$||($=!0,U.then(oe=>WL(A,oe),oe=>SL(A,oe)),F(U))}});return A.status="pending",rU(A,F=>{F&&_(F),N==null||N.abort()}),c(x,A,L)}return c(x,H,L)}catch(H){return s(x,H,L)}finally{C=!1}},h=x=>Iv(d(x)),v=x=>{let b=t.get(x);return b||(b=m(x)),b},u=(x,b)=>!b.l.size&&(!b.t.size||b.t.size===1&&b.t.has(x)),w=x=>{let b=t.get(x);b&&u(x,b)&&f(x)},k=x=>{let b=t.get(x);b==null||b.t.forEach(L=>{if(L!==x){let C=a(L),B=d(L);(!C||!Cv(C,B))&&k(L)}})},E=(x,...b)=>{let L=!0,C=j=>Iv(d(j)),B=(j,...T)=>{let H;if(j===x){if(!ik(j))throw new Error("atom not writable");let _=a(j),A=c(j,T[0]);(!_||!Cv(_,A))&&k(j)}else H=E(j,...T);return L||M(),H},N=x.write(C,B,...b);return L=!1,N},p=(x,...b)=>{let L=E(x,...b);return M(),L},m=(x,b)=>{let L={t:new Set(b&&[b]),l:new Set};if(t.set(x,L),(et.env&&et.env.MODE)!=="production"&&r.add(x),d(x).d.forEach((C,B)=>{let N=t.get(B);N?N.t.add(x):B!==x&&m(B,x)}),d(x),lk(x)&&x.onMount){let C=x.onMount((...B)=>p(x,...B));C&&(L.u=C)}return L},f=x=>{var b;let L=(b=t.get(x))==null?void 0:b.u;L&&L(),t.delete(x),(et.env&&et.env.MODE)!=="production"&&r.delete(x);let C=a(x);C?(ck(C)&&HL(C.v),C.d.forEach((B,N)=>{if(N!==x){let j=t.get(N);j&&(j.t.delete(x),u(N,j)&&f(N))}})):(et.env&&et.env.MODE)!=="production"&&console.warn("[Bug] could not find atom state to unmount",x)},g=(x,b,L)=>{let C=new Set(b.d.keys());L==null||L.forEach((B,N)=>{if(C.has(N)){C.delete(N);return}let j=t.get(N);j&&(j.t.delete(x),u(N,j)&&f(N))}),C.forEach(B=>{let N=t.get(B);N?N.t.add(x):t.has(x)&&m(B,x)})},M=()=>{for(;o.size;){let x=Array.from(o);o.clear(),x.forEach(([b,L])=>{let C=a(b);if(C){C.d!==(L==null?void 0:L.d)&&g(b,C,L==null?void 0:L.d);let B=t.get(b);B&&!(L&&!ck(L)&&(Cv(L,C)||_L(L,C)))&&B.l.forEach(N=>N())}else(et.env&&et.env.MODE)!=="production"&&console.warn("[Bug] no atom state to flush")})}(et.env&&et.env.MODE)!=="production"&&n.forEach(x=>x())},z=(x,b)=>{let L=v(x);M();let C=L.l;return C.add(b),()=>{C.delete(b),w(x)}};return(et.env&&et.env.MODE)!=="production"?{get:h,set:p,sub:z,dev_subscribe_state:x=>(n.add(x),()=>{n.delete(x)}),dev_get_mounted_atoms:()=>r.values(),dev_get_atom_state:x=>e.get(x),dev_get_mounted:x=>t.get(x),dev_restore_atoms:x=>{for(let[b,L]of x)ik(b)&&(c(b,L),k(b));M()}}:{get:h,set:p,sub:z}},sk,OL=()=>(sk||(sk=dk()),sk);var DL=y(G(),1),eo=y(I(),1);var AL={},FL=(0,eo.createContext)(void 0),$L=e=>{let t=(0,eo.useContext)(FL);return(e==null?void 0:e.store)||t||OL()},u0=({children:e,store:t})=>{let o=(0,eo.useRef)();return!t&&!o.current&&(o.current=dk()),(0,DL.jsx)(FL.Provider,{value:t||o.current,children:e})},hU=e=>e instanceof Promise,vU=eo.default.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function me(e,t){let o=$L(t),[[n,r,a],i]=(0,eo.useReducer)(s=>{let d=o.get(e);return Object.is(s[0],d)&&s[1]===o&&s[2]===e?s:[d,o,e]},void 0,()=>[o.get(e),o,e]),l=n;(r!==o||a!==e)&&(i(),l=o.get(e));let c=t==null?void 0:t.delay;return(0,eo.useEffect)(()=>{let s=o.sub(e,()=>{if(typeof c=="number"){setTimeout(i,c);return}i()});return i(),s},[o,e,c]),(0,eo.useDebugValue)(l),hU(l)?vU(l):l}function at(e,t){let o=$L(t);return(0,eo.useCallback)((...r)=>{if((AL.env&&AL.env.MODE)!=="production"&&!("write"in e))throw new Error("not writable atom");return o.set(e,...r)},[o,e])}function to(e,t){return[me(e,t),at(e,t)]}var q0e=Symbol();var hk=(e,t,o)=>(t.has(o)?t:t.set(o,e())).get(o),mU=new WeakMap,uU=(e,t,o,n)=>{let r=hk(()=>new WeakMap,mU,t),a=hk(()=>new WeakMap,r,o);return hk(e,a,n)};function Ql(e,t,o=Object.is){return uU(()=>{let n=Symbol(),r=([i,l])=>{let c=t(i);return l!==n&&o(l,c)?l:c},a=rt(i=>{let l=i(a),c=i(e);return c instanceof Promise||l instanceof Promise?Promise.all([c,l]).then(r):r([c,l])});return a.init=n,a},e,t,o)}var pU=Symbol();function fU(e){let t,o,n={getItem:r=>{var a,i;let l=s=>{if(s=s||"",t!==s){try{o=JSON.parse(s)}catch(d){return pU}t=s}return o},c=(i=(a=e())==null?void 0:a.getItem(r))!=null?i:null;return c instanceof Promise?c.then(l):l(c)},setItem:(r,a)=>{var i;return(i=e())==null?void 0:i.setItem(r,JSON.stringify(a))},removeItem:r=>{var a;return(a=e())==null?void 0:a.removeItem(r)}};return typeof window<"u"&&typeof window.addEventListener=="function"&&(n.subscribe=(r,a)=>{let i=l=>{l.key===r&&l.newValue&&a(JSON.parse(l.newValue))};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}}),n}var G0e=fU(()=>typeof window<"u"?window.localStorage:void 0);var jv=rt(!1),e2e=rt(!1),Hv=rt(""),Wv=rt(0),xa=rt({}),Zl=rt("pausing"),Sn=rt(null),Jl=rt(-1),wi=rt(Jt()),Sv=rt(null),_v=rt([[0,0,0]]),Ov=rt(null),Pv=rt(null),Ut=Ql(wi,e=>{var t,o,n,r;return((t=e==null?void 0:e.originFromTrack)==null?void 0:t.lrcid)||((n=(o=e==null?void 0:e.originFromTrack)==null?void 0:o.track)==null?void 0:n.tid)||((r=e==null?void 0:e.data)==null?void 0:r.id)||0}),Rv=rt(e=>e(xa).lyricOffset||0,(e,t,o)=>{t(xa,n=>ge(Y({},n),{lyricOffset:o}))}),mk=Ql(wi,e=>{var t;return((t=e==null?void 0:e.data)==null?void 0:t.album)||{}}),uk=Ql(wi,e=>{var t;return((t=e==null?void 0:e.data)==null?void 0:t.name)||"未知歌名"}),VL=Ql(wi,e=>{var t;return((t=e==null?void 0:e.data)==null?void 0:t.alias)||[]}),pk=Ql(wi,e=>{var t;return((t=e==null?void 0:e.data)==null?void 0:t.artists)||[]}),UL=()=>{var e,t,o,n,r,a,i;return((t=(e=Jt())==null?void 0:e.originFromTrack)==null?void 0:t.lrcid)||((r=(n=(o=Jt())==null?void 0:o.originFromTrack)==null?void 0:n.track)==null?void 0:r.tid)||((i=(a=Jt())==null?void 0:a.data)==null?void 0:i.id)||0},Tv=rt(!1),t2e=rt(!1),Av=rt(!1),Dv=rt(!1);var vC=y(hC());function oo(e,t){var a;let[o,n]=Ce.useState((a=Vt(e,t))!=null?a:t),r=Ce.useMemo(()=>`config-changed-${e}`,[e]);return Ce.useEffect(()=>{ki(e,o),be.dispatchEvent(new Event(r))},[o]),Ce.useEffect(()=>{let i=()=>{var c;let l=(c=Vt(e,t))!=null?c:t;n(l)};return be.addEventListener(r,i),()=>{be.removeEventListener(r,i)}},[e,t,r]),[o,n]}function gt(e,t=!1){let[o,n]=oo(e,t.toString());return[Ce.useMemo(()=>o!=="false",[o]),i=>n(i.toString())]}function Jn(e,t){var a;let[o,n]=Ce.useState((a=Vt(e,t))!=null?a:t),r=Ce.useMemo(()=>`config-changed-${e}`,[e]);return Ce.useEffect(()=>{let i=()=>{var c;let l=(c=Vt(e,t))!=null?c:t;n(l)};return be.addEventListener(r,i),()=>{be.removeEventListener(r,i)}},[e,t,r]),o}function no(e,t=!1){let o=Jn(e,t.toString());return Ce.useMemo(()=>o!=="false",[o])}function tc(){let[e,t]=Ce.useState(!!document.getElementById("applemusic-like-lyrics-view"));return Ce.useEffect(()=>{t(!!document.getElementById("applemusic-like-lyrics-view"));let o=()=>{Pe("歌词页面已显示"),t(!0)},n=()=>{Pe("歌词页面已隐藏"),t(!1)};return be.addEventListener("lyric-page-open",o),be.addEventListener("lyric-page-hide",n),()=>{be.removeEventListener("lyric-page-open",o),be.removeEventListener("lyric-page-hide",n)}},[]),e}function Uv(){let[e,t]=Ce.useState(location.hash==="#/m/fm/");return Ce.useEffect(()=>{let o=()=>{t(location.hash==="#/m/fm/")};return window.addEventListener("hashchange",o),()=>{window.removeEventListener("hashchange",o)}},[]),e}var Zn;async function jU(e=!1){if(e&&(Zn=void 0),Zn!==void 0)return Zn;let t="https://raw.githubusercontent.com/Steve-xmh/applemusic-like-lyrics/main/dist/manifest.json";try{let o=await(await fetch(`https://ghproxy.com/${t}`)).json();return Zn!==o.version&&be.dispatchEvent(new Event("latest-version-updated")),Zn=o.version,Zn}catch(o){}try{let o=await(await fetch(t)).json();return Zn!==o.version&&be.dispatchEvent(new Event("latest-version-updated")),Zn=o.version,Zn}catch(o){}return Zn||""}function Ek(){let[e,t]=Ce.useState("");return Ce.useEffect(()=>{let o=()=>jU().then(t);return o(),be.addEventListener("latest-version-updated",o),()=>{be.removeEventListener("latest-version-updated",o)}},[]),e}function qv(){let e=Ek();return Ce.useMemo(()=>e!==""&&(0,vC.default)(e,pv),[e])}var Vv="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",HU=()=>new Image;function p0(e,t,o){let n=Ce.useRef(HU()),[r,a]=Ce.useState(t&&o&&t*o>0),i=Ce.useMemo(()=>{var E,p,m,f,g,M,z,x,b;let s=Jt(),d=[],h=(f=(m=(p=(E=s==null?void 0:s.originFromTrack)==null?void 0:E.track)==null?void 0:p.track)==null?void 0:m.album)==null?void 0:f.picUrl;if(h){let L=`orpheus://cache/?${h}`;d.push(`${L}?imageView&type=webp&enlarge=1&thumbnail=${t}y${o}`),d.push(L)}let v=(M=(g=s==null?void 0:s.data)==null?void 0:g.radio)==null?void 0:M.intervenePicUrl;if(v){let L=`orpheus://cache/?${v}`;d.push(`${L}?imageView&type=webp&enlarge=1&thumbnail=${t}y${o}`),d.push(L)}let u=(x=(z=s==null?void 0:s.data)==null?void 0:z.album)==null?void 0:x.picUrl;if(u){let L=`orpheus://cache/?${u}`;d.push(`${L}?imageView&type=webp&enlarge=1&thumbnail=${t}y${o}`),d.push(L)}let w=(b=s==null?void 0:s.from)==null?void 0:b.playFile;if(w){let L=`orpheus://localmusic/pic?${encodeURIComponent(w)}`;d.push(L,L)}let k=`orpheus://cache/?${bv("16601526067802346")}`;return d.push(k,k),d.push(Vv),d.push(Vv),d},[e,r,t,o]),[l,c]=Ce.useState("");return Ce.useEffect(()=>{a(t&&o&&t*o>0)},[t,o]),Ce.useEffect(()=>{if(i.length===0){c(Vv);return}c("");let s=r?0:1,d=()=>{i.includes(n.current.src)&&(c(i[s]),s%2===0&&r&&(s++,i[s]&&(n.current.src=i[s]),n.current.addEventListener("load",d,{once:!0}),n.current.addEventListener("error",h,{once:!0})))},h=v=>{if(s%2===1&&r){let u=i[s];u.lastIndexOf("?")!==-1?u+=`&t=${Date.now()}`:u+=`?t=${Date.now()}`,n.current.src=u,n.current.addEventListener("load",d,{once:!0}),n.current.addEventListener("error",h,{once:!0});return}s+=2,i[s]?(He("专辑图",i[s-2],"加载失败,正在尝试下一张",v),n.current.src=i[s],n.current.addEventListener("load",d,{once:!0}),n.current.addEventListener("error",h,{once:!0})):(He("专辑图",i[s-2],"加载失败,已无可用图链",v),c(Vv))};return n.current.addEventListener("load",d,{once:!0}),n.current.addEventListener("error",h,{once:!0}),n.current.src=i[s],()=>{n.current.removeEventListener("load",d),n.current.removeEventListener("error",h)}},[i,r]),[l.length>0,n.current,l]}function mC(e,t,o){let[,,n]=p0(e,t,o);return n}function uC(){let[e,t]=Ce.useState({});return Ce.useCallback(()=>t({}),[])}function Gv(){let e=me(Ut),t=at(xa),o=at(Sn),n=at(Pv);return Ce.useCallback(async()=>{n(null),o(null);try{let r=await Lv(e);Pe("已获取到歌词",r),t(r)}catch(r){n(r)}},[e])}var No=y(G()),pC=()=>{let e=Ek(),t=qv();return(0,No.jsxs)(No.Fragment,{children:[(0,No.jsx)(vt,{order:2,children:"关于"}),(0,No.jsx)(re,{children:"Apple Music-like lyrics"}),(0,No.jsx)(re,{children:pv}),t&&(0,No.jsxs)(re,{children:["Github 有可用更新:",e]}),(0,No.jsx)(re,{children:"By SteveXMH"}),(0,No.jsxs)(It.Group,{sx:{margin:"8px 0"},orientation:"vertical",children:[(0,No.jsx)(It,{variant:"outline",onClick:()=>{betterncm.ncm.openUrl("https://github.com/Steve-xmh/applemusic-like-lyrics")},children:"Github"}),t&&(0,No.jsx)(It,{variant:"outline",onClick:()=>{betterncm.ncm.openUrl("https://github.com/Steve-xmh/applemusic-like-lyrics/releases/latest")},children:"前往 Github Release 下载最新版本"}),t&&(0,No.jsx)(It,{variant:"outline",onClick:()=>{betterncm.ncm.openUrl("https://ghproxy.com/https://github.com/Steve-xmh/applemusic-like-lyrics/releases/latest")},children:"前往 Github Release 下载最新版本(GHProxy 镜像)"})]})]})};var gk=y(I());var Go=y(G());function fC(){let e=gk.useMemo(()=>Object.keys(loadedPlugins).filter(n=>Zf.includes(n)),[]),t=gk.useMemo(()=>Object.keys(loadedPlugins).includes("RefinedNowPlaying"),[]);return[e,t]}function kC(){let[e,t]=fC();return e.length>0||t}var wC=()=>{let[e,t]=fC();return(0,Go.jsxs)(Go.Fragment,{children:[e.length===0?(0,Go.jsx)(Go.Fragment,{}):(0,Go.jsxs)(Rs,{sx:{margin:"16px 0"},color:"red",title:"错误:检测到不兼容的插件",children:["检测到与本插件冲突的其它插件,请卸载以下插件,否则本插件有可能不能正常工作:",Zf.map(o=>(0,Go.jsxs)("span",{children:[o," "]},o))]}),t?(0,Go.jsx)(Rs,{sx:{margin:"16px 0"},color:"yellow",title:"错误:检测到不兼容的 RefinedNowPlaying 插件",children:(0,Go.jsx)("div",{children:"AMLL 插件不会主动兼容 RNP 插件,效果和稳定性不做保证"})}):(0,Go.jsx)(Go.Fragment,{})]})};var Z=y(I());function vn(){return vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(d[c]=i[c]);return d}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}var WU=["size","color","stroke"];function EC(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=er(e,WU);return Z.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-artboard",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),Z.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Z.createElement("rect",{x:8,y:8,width:8,height:8,rx:1}),Z.createElement("line",{x1:3,y1:8,x2:4,y2:8}),Z.createElement("line",{x1:3,y1:16,x2:4,y2:16}),Z.createElement("line",{x1:8,y1:3,x2:8,y2:4}),Z.createElement("line",{x1:16,y1:3,x2:16,y2:4}),Z.createElement("line",{x1:20,y1:8,x2:21,y2:8}),Z.createElement("line",{x1:20,y1:16,x2:21,y2:16}),Z.createElement("line",{x1:8,y1:20,x2:8,y2:21}),Z.createElement("line",{x1:16,y1:20,x2:16,y2:21}))}var SU=["size","color","stroke"];function gC(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=er(e,SU);return Z.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-brand-react-native",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),Z.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Z.createElement("path",{d:"M6.357 9c-2.637 .68 -4.357 1.845 -4.357 3.175c0 2.107 4.405 3.825 9.85 3.825c.74 0 1.26 -.039 1.95 -.097"}),Z.createElement("path",{d:"M9.837 15.9c-.413 -.596 -.806 -1.133 -1.18 -1.8c-2.751 -4.9 -3.488 -9.77 -1.63 -10.873c1.15 -.697 3.047 .253 4.974 2.254"}),Z.createElement("path",{d:"M6.429 15.387c-.702 2.688 -.56 4.716 .56 5.395c1.783 1.08 5.387 -1.958 8.043 -6.804c.36 -.67 .683 -1.329 .968 -1.978"}),Z.createElement("path",{d:"M12 18.52c1.928 2 3.817 2.95 4.978 2.253c1.85 -1.102 1.121 -5.972 -1.633 -10.873c-.384 -.677 -.777 -1.204 -1.18 -1.8"}),Z.createElement("path",{d:"M17.66 15c2.612 -.687 4.34 -1.85 4.34 -3.176c0 -2.11 -4.408 -3.824 -9.845 -3.824c-.747 0 -1.266 .029 -1.955 .087"}),Z.createElement("path",{d:"M8 12c.285 -.66 .607 -1.308 .968 -1.978c2.647 -4.844 6.253 -7.89 8.046 -6.801c1.11 .679 1.262 2.706 .56 5.393"}),Z.createElement("path",{d:"M12.26 12.015h-.01c-.01 .13 -.12 .24 -.26 .24a0.263 .263 0 0 1 -.25 -.26c0 -.14 .11 -.25 .24 -.25h-.01c.13 -.01 .25 .11 .25 .24"}))}var _U=["size","color","stroke"];function xC(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=er(e,_U);return Z.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-disc",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),Z.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Z.createElement("circle",{cx:12,cy:12,r:9}),Z.createElement("circle",{cx:12,cy:12,r:1}),Z.createElement("path",{d:"M7 12a5 5 0 0 1 5 -5"}),Z.createElement("path",{d:"M12 17a5 5 0 0 0 5 -5"}))}var OU=["size","color","stroke"];function Kv(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=er(e,OU);return Z.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-dots",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),Z.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Z.createElement("circle",{cx:5,cy:12,r:1}),Z.createElement("circle",{cx:12,cy:12,r:1}),Z.createElement("circle",{cx:19,cy:12,r:1}))}var PU=["size","color","stroke"];function MC(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=er(e,PU);return Z.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-heart-broken",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),Z.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Z.createElement("path",{d:"M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"}),Z.createElement("path",{d:"M12 6l-2 4l4 3l-2 4v3"}))}var RU=["size","color","stroke"];function zC(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=er(e,RU);return Z.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-heart",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),Z.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Z.createElement("path",{d:"M19.5 12.572l-7.5 7.428l-7.5 -7.428m0 0a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572"}))}var TU=["size","color","stroke"];function bC(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=er(e,TU);return Z.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-mountain",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),Z.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Z.createElement("path",{d:"M3 20h18l-6.921 -14.612a2.3 2.3 0 0 0 -4.158 0l-6.921 14.612z"}),Z.createElement("path",{d:"M7.5 11l2 2.5l2.5 -2.5l2 3l2.5 -2"}))}var AU=["size","color","stroke"];function yC(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=er(e,AU);return Z.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-player-skip-forward",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),Z.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Z.createElement("path",{d:"M4 5v14l12 -7z"}),Z.createElement("line",{x1:20,y1:5,x2:20,y2:19}))}var DU=["size","color","stroke"];function LC(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=er(e,DU);return Z.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-ripple",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),Z.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Z.createElement("path",{d:"M3 7c3 -2 6 -2 9 0s6 2 9 0"}),Z.createElement("path",{d:"M3 17c3 -2 6 -2 9 0s6 2 9 0"}),Z.createElement("path",{d:"M3 12c3 -2 6 -2 9 0s6 2 9 0"}))}var FU=["size","color","stroke"];function CC(e){var t=e.size,o=t===void 0?24:t,n=e.color,r=n===void 0?"currentColor":n,a=e.stroke,i=a===void 0?2:a,l=er(e,FU);return Z.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-trash",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:i,stroke:r,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),Z.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Z.createElement("line",{x1:4,y1:7,x2:20,y2:7}),Z.createElement("line",{x1:10,y1:11,x2:10,y2:17}),Z.createElement("line",{x1:14,y1:11,x2:14,y2:17}),Z.createElement("path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"}),Z.createElement("path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"}))}var DC=y(I());var za=y(I());var f0=class{constructor(t){O(this,"_startTime",this.curTime);O(this,"_damper",.9);O(this,"_speed",.7);O(this,"_target",0);O(this,"_position",0);O(this,"_velocity",0);this._position=this._target=t}get curTime(){return Date.now()/1e3}positionVelocity(){let t=this.curTime-this._startTime,o=this._position-this._target;if(this._speed===0)return[this._position,0];if(this._damper<1){let n=Math.sqrt(1-Math.pow(this._damper,2)),r=(this._velocity/this._speed+this._damper*o)/n,a=Math.cos(n*this._speed*t),i=Math.sin(n*this._speed*t),l=Math.pow(Math.E,this._damper*this._speed*t);return[this._target+(o*a+r*i)/l,this._speed*((n*r-this._damper*o)*a-(n*o+this._damper*r)*i)/l]}else{let n=this._velocity/this._speed+o,r=Math.pow(Math.E,this._speed*t);return[this._target+(o+n*this._speed*t)/r,this._speed*(n-o-n*this._speed*t)/r]}}resetTime(){this._startTime=this.curTime}get arrived(){let[t,o]=this.positionVelocity();return Math.abs(Math.round(t*10)-Math.round(this._target*10))2e4){let s=IC.get(o);if(s===void 0&&(s=VU(e,r.size),IC.set(o,s)),r.count>5e5){let h=0;for(let v of t)h+=(l=s.get(v))!=null?l:r.size;return h*1.01}let d=e.measureText(t);return $U(t,d.width,s,Math.max(.05,1-r.count/2e5),r.size),w0.set(o,{count:r.count+t.length,size:r.size}),d.width}let a=e.measureText(t),i=a.width/t.length;if(((c=r==null?void 0:r.count)!=null?c:0)>2e4)return a.width;if(r===void 0)w0.set(o,{count:t.length,size:i});else{let s=i-r.size,d=t.length/(r.count+t.length),h=r.size+s*d;w0.set(o,{count:r.count+t.length,size:h})}return a.width}function UU(e,t,o,n,r,a,i,l){if(t.length<=1)return t.length;if(ro;){let h=d!==void 0?0:t.lastIndexOf(" ",c-1);h>0?c=h:c--,s=E0(e,t.slice(0,Math.max(0,c)),n,i)}if(t[c]!==" "){let h=0;if(d===void 0)h=t.lastIndexOf(" ",c);else for(let v of d){if(v>c)break;h=v}h>0&&(c=h)}return c}function NC(e,t,o,n,r=!1,a){let i=`${t}_${o}_${n}px`,l=k0.get(i);if(l!==void 0)return l;if(n<=0)return[];let c=[],s=t.split(` +`),d=w0.get(o),h=t.length,v=r&&d!==void 0&&d.count>2e4;for(let u of s){let w=E0(e,u.slice(0,Math.max(0,h)),o,v),k=Math.min(u.length,h);if(w<=n)c.push(u);else{for(;w>n;){let E=UU(e,u,n,o,w,k,v,a),p=u.slice(0,Math.max(0,E));u=u.slice(p.length),c.push(p),w=E0(e,u.slice(0,Math.max(0,h)),o,v),k=Math.min(u.length,h)}w>0&&c.push(u)}}return c=c.map((u,w)=>w===0?u.trimEnd():u.trim()),k0.set(i,c),k0.size>500&&k0.delete(k0.keys().next().value),c}var Xv=class{constructor(t){this.canvas=t;O(this,"disposed",!1);O(this,"frameId",0);O(this,"currentLyrics",[]);O(this,"lineHeight",0);O(this,"currentLyricIndex",0);O(this,"ctx");O(this,"fontSizeValue","");O(this,"onFrame",()=>{this.disposed||this.onUpdateAndDraw()});O(this,"stepUpdateSpringsHandle",0);let o=t.getContext("2d");if(o)this.ctx=o,o.textBaseline="top",o.textAlign="left",o.fontKerning="auto",this.setFontSize(32);else throw new TypeError("你的网易云/系统不支持 Canvas 歌词渲染后端!")}setFontSize(t){let o=this.ctx;this.fontSizeValue=`${t*window.devicePixelRatio}px "PingFang SC"`,o.font=this.fontSizeValue,o.fillStyle="white";let n=o.measureText("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ中文");this.lineHeight=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent,this.updateLayout(),this.shouldRedraw()}setLyric(t){this.currentLyrics=t.map((o,n)=>ge(Y({},o),{vSpring:new f0(n),drawTextCache:[],height:0,isOutOfSight:!1})),this.updateLayout(),this.shouldRedraw()}setCurrentLyricIndex(t){this.currentLyricIndex=t;let o=this.currentLyrics[this.currentLyricIndex];o!=null&&o.isOutOfSight?this.updateSprings():this.stepUpdateSprings(),this.shouldRedraw()}updateLayout(){let t=this.canvas.width;this.ctx.font=this.fontSizeValue;for(let o of this.currentLyrics)o.drawTextCache=[...NC(this.ctx,o.originalLyric,this.fontSizeValue,t*.9)],o.drawTextCache.join(` +`).trim().length>0?o.height=this.lineHeight*o.drawTextCache.length+16*window.devicePixelRatio:o.height=0;this.updateSprings(!0)}updateSpringForLine(t,o=!1){let n=this.currentLyrics[t];if(n){let r=t-this.currentLyricIndex,a=Math.abs(r),i=r<0?-1:1,l=0;i===-1&&(l-=n.height);for(let c=i===1?0:1;cthis.stepUpdateSprings(t+o,o))}else{let n=!1;for(let r=0;rthis.stepUpdateSprings(t+Math.floor(o),o+.2)))}}updateSprings(t=!1){for(let o=0;on/-2){i.isOutOfSight=!1;let s=l;for(let d of i.drawTextCache)r.fillText(d,0,s),s+=this.lineHeight}else i.isOutOfSight=!0}t||this.shouldRedraw()}shouldRedraw(){this.frameId||(this.frameId=requestAnimationFrame(this.onFrame))}dispose(){this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=0),this.disposed=!0}};var jC=y(G()),BC=()=>{let e=za.useRef(null),t=za.useRef(null),o=za.useRef(new ResizeObserver(a=>{let i=a[0];if(i){let l=i.target;if(l){l.width=i.contentRect.width*window.devicePixelRatio,l.height=i.contentRect.height*window.devicePixelRatio;let c=t.current;c&&c.canvas===l&&(c.updateLayout(),c.shouldRedraw())}}})),n=me(Sn),r=me(Jl);return za.useLayoutEffect(()=>{let a=e.current;if(a){o.current.observe(a);let i=new Xv(a);return n&&i.setLyric(n),t.current=i,()=>{o.current.unobserve(a),i.dispose()}}},[]),za.useLayoutEffect(()=>{let a=t.current;a&&(n?a.setLyric(n):a.setLyric([]))},[n]),za.useLayoutEffect(()=>{let a=t.current;a&&n&&a.setCurrentLyricIndex(r)},[r]),(0,jC.jsx)("canvas",{style:{width:"100%",height:"100%",flex:"1",font:"unset"},ref:e})};var Ht=y(I());var tr=y(G()),HC=e=>{var r;let t=me(Zl),o=at(Ov),n=no("forceDynamicLyric",!1);return(0,tr.jsxs)("div",{onClick:a=>{e.onClickLyric&&e.onClickLyric(e.line,a)},onContextMenu:a=>{o(e.line),a.preventDefault()},className:Yl("am-lyric-line",{"am-lyric-line-before":e.offset<0,"am-lyric-line-after":e.offset>0,"am-lyric-line-selected":e.selected,[`am-lyric-line-o${e.offset}`]:Math.abs(e.offset)<5}),children:[e.dynamic&&e.line.dynamicLyric&&e.line.dynamicLyricTime&&(e.selected||n||Math.abs(e.offset)<5)?(0,tr.jsx)("div",{className:"am-lyric-line-dynamic",children:e.line.dynamicLyric.map((a,i)=>(0,tr.jsxs)("span",{children:[(0,tr.jsx)("span",{style:{animationDelay:`${a.time-(e.line.dynamicLyricTime||0)}ms`,animationDuration:`${a.duration}ms`,animationPlayState:t==="pausing"?"paused":void 0},className:"am-lyric-real-word",children:a.word}),(0,tr.jsx)("span",{style:{animationDelay:`${a.time-(e.line.dynamicLyricTime||0)}ms`,animationDuration:`${a.duration}ms`,animationPlayState:t==="pausing"?"paused":void 0},className:"am-lyric-fake-word",children:a.word})]},`dynamic-word-${a.word}-${i}`))}):(0,tr.jsx)("div",{className:"am-lyric-line-original",children:((r=e.line.dynamicLyric)==null?void 0:r.map(a=>a.word).join("").trim())||e.line.originalLyric}),(0,tr.jsx)("div",{className:"am-lyric-line-translated",children:e.translated?e.line.translatedLyric:""}),(0,tr.jsx)("div",{className:"am-lyric-line-roman",children:e.roman?e.line.romanLyric:""})]})};var Yv={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}},Exponential:{In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}},Back:{In:function(e){return e===1?1:e*e*(2.70158*e-1.70158)},Out:function(e){return e===0?0:--e*e*(2.70158*e+1.70158)+1},InOut:function(e){let t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-Yv.Bounce.Out(1-e)},Out:function(e){return e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375},InOut:function(e){return e<.5?Yv.Bounce.In(e*2)*.5:Yv.Bounce.Out(e*2-1)*.5+.5}},generatePow:function(e=4){return e=e1e4?1e4:e,{In:function(t){return t**e},Out:function(t){return 1-(1-t)**e},InOut:function(t){return t<.5?(t*2)**e/2:(1-(2-t*2)**e)/2+.5}}}},Qv=Yv;var g0;typeof self>"u"&&typeof process<"u"&&process.hrtime?g0=function(){let e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?g0=self.performance.now.bind(self.performance):Date.now!==void 0?g0=Date.now:g0=function(){return new Date().getTime()};var ba=g0;var ya=class{constructor(){O(this,"_tweens",{});O(this,"_tweensAddedDuringUpdate",{})}getAll(){return Object.keys(this._tweens).map(t=>this._tweens[t])}removeAll(){this._tweens={}}add(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t}remove(t){this._tweens[t.getId()]=void 0,this._tweensAddedDuringUpdate[t.getId()]=void 0}update(t=ba(),o=!1){let n=Object.keys(this._tweens);if(n.length===0)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(let r=0;r1?a(e[o],e[o-1],o-n):a(e[r],e[r+1>o?o:r+1],n-r)},Bezier:function(e,t){let o=0,n=e.length-1,r=Math.pow,a=x0.Utils.Bernstein;for(let i=0;i<=n;i++)o+=r(1-t,n-i)*r(t,i)*e[i]*a(n,i);return o},CatmullRom:function(e,t){let o=e.length-1,n=o*t,r=Math.floor(n),a=x0.Utils.CatmullRom;return e[0]===e[o]?(t<0&&(r=Math.floor(n=o*(1+t))),a(e[(r-1+o)%o],e[r],e[(r+1)%o],e[(r+2)%o],n-r)):t<0?e[0]-(a(e[0],e[0],e[1],e[1],-n)-e[0]):t>1?e[o]-(a(e[o],e[o],e[o-1],e[o-1],n-o)-e[o]):a(e[r?r-1:0],e[r],e[o1;n--)o*=n;return e[t]=o,o}}(),CatmullRom:function(e,t,o,n,r){let a=(o-e)*.5,i=(n-t)*.5,l=r*r,c=r*l;return(2*t-2*o+a+i)*c+(-3*t+3*o-2*a-i)*l+a*r+t}}},Zv=x0;var xk=class{static nextId(){return xk._nextId++}},La=xk;O(La,"_nextId",0);var M0=new ya;var Mk=class{constructor(t,o=M0){this._object=t;this._group=o;O(this,"_isPaused",!1);O(this,"_pauseStart",0);O(this,"_valuesStart",{});O(this,"_valuesEnd",{});O(this,"_valuesStartRepeat",{});O(this,"_duration",1e3);O(this,"_initialRepeat",0);O(this,"_repeat",0);O(this,"_repeatDelayTime");O(this,"_yoyo",!1);O(this,"_isPlaying",!1);O(this,"_reversed",!1);O(this,"_delayTime",0);O(this,"_startTime",0);O(this,"_easingFunction",Qv.Linear.None);O(this,"_interpolationFunction",Zv.Linear);O(this,"_chainedTweens",[]);O(this,"_onStartCallback");O(this,"_onStartCallbackFired",!1);O(this,"_onEveryStartCallback");O(this,"_onEveryStartCallbackFired",!1);O(this,"_onUpdateCallback");O(this,"_onRepeatCallback");O(this,"_onCompleteCallback");O(this,"_onStopCallback");O(this,"_id",La.nextId());O(this,"_isChainStopped",!1);O(this,"_goToEnd",!1)}getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(t,o){return this._valuesEnd=Object.create(t),o!==void 0&&(this._duration=o),this}duration(t=1e3){return this._duration=t,this}start(t=ba()){var o;if(this._isPlaying)return this;if((o=this._group)==null||o.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(let n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,o,n,r){for(let a in n){let i=t[a],l=Array.isArray(i),c=l?"array":typeof i,s=!l&&Array.isArray(n[a]);if(!(c==="undefined"||c==="function")){if(s){let d=n[a];if(d.length===0)continue;d=d.map(this._handleRelativeValue.bind(this,i)),n[a]=[i].concat(d)}if((c==="object"||l)&&i&&!s){o[a]=l?[]:{};for(let d in i)o[a][d]=i[d];r[a]=l?[]:{},this._setupProperties(i,o[a],n[a],r[a])}else typeof o[a]>"u"&&(o[a]=i),l||(o[a]*=1),s?r[a]=n[a].slice().reverse():r[a]=o[a]||0}}}stop(){var t;return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?((t=this._group)==null||t.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(t=ba()){var o;return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=t,(o=this._group)==null||o.remove(this),this)}resume(t=ba()){var o;return this._isPaused&&this._isPlaying?(this._isPaused=!1,this._startTime+=t-this._pauseStart,this._pauseStart=0,(o=this._group)==null||o.add(this),this):this}stopChainedTweens(){for(let t=0,o=this._chainedTweens.length;ta)return!1;o&&this.start(t)}if(this._goToEnd=!1,t1?1:r;let i=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,i),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let l=0,c=this._chainedTweens.length;l{let t=Ei.useRef(null),o=Ei.useRef(null),n=Ei.useRef(null),r=Ei.useRef(null);return Ei.useLayoutEffect(()=>{if(t.current&&o.current&&n.current&&e.selected&&e.duration!==0){let a=t.current,i=o.current,l=n.current;a.style.opacity="0.5",i.style.opacity="0.5",l.style.opacity="0.5";let c=new ya,s=h=>{r.current?(c.update(h),setTimeout(s,100)):c.removeAll()},d=e.duration-750;new z0({o:.5},c).delay(750).to({o:1},d/3).onStart(h=>{a.style.opacity=h.o.toString()}).onUpdate(h=>{a.style.opacity=h.o.toString()}).start(),new z0({o:.5},c).delay(750+d/3).to({o:1},d/3).onStart(h=>{i.style.opacity=h.o.toString()}).onUpdate(h=>{i.style.opacity=h.o.toString()}).start(),new z0({o:.5},c).delay(750+d/3*2).to({o:1},d/3).onStart(h=>{l.style.opacity=h.o.toString()}).onUpdate(h=>{l.style.opacity=h.o.toString()}).start(),r.current=c,setTimeout(s,100)}else r.current&&(r.current.removeAll(),r.current=null);return()=>{r.current&&(r.current.removeAll(),r.current=null)}},[e.selected,e.duration]),e.duration===0?(0,Cr.jsx)(Cr.Fragment,{}):(0,Cr.jsxs)("div",{className:Yl("am-lyric-dots",{"am-lyric-dots-selected":e.selected&&e.duration!==0,"am-lyric-line-before":e.offset<0,"am-lyric-line-after":e.offset>0,"am-lyric-line-selected":e.selected,[`am-lyric-line-o${e.offset}`]:Math.abs(e.offset)<5}),children:[(0,Cr.jsx)("div",{ref:t}),(0,Cr.jsx)("div",{ref:o}),(0,Cr.jsx)("div",{ref:n})]})};var qU=typeof Float32Array=="function";function SC(e,t){return 1-3*t+3*e}function _C(e,t){return 3*t-6*e}function OC(e){return 3*e}function Jv(e,t,o){return((SC(t,o)*e+_C(t,o))*e+OC(t))*e}function PC(e,t,o){return 3*SC(t,o)*e*e+2*_C(t,o)*e+OC(t)}function GU(e,t,o,n,r){let a,i,l=0;do i=t+(o-t)/2,a=Jv(i,n,r)-e,a>0?o=i:t=i;while(Math.abs(a)>1e-7&&++l<10);return i}function KU(e,t,o,n){for(let r=0;r<4;++r){let a=PC(t,o,n);if(a===0)return t;let i=Jv(t,o,n)-e;t-=i/a}return t}function XU(e){return e}function zk(e,t,o,n){if(!(0<=e&&e<=1&&0<=o&&o<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&o===n)return XU;let r=qU?new Float32Array(11):new Array(11);for(let i=0;i<11;++i)r[i]=Jv(i*.1,e,o);function a(i){let l=0,c=1,s=11-1;for(;c!==s&&r[c]<=i;++c)l+=.1;--c;let d=(i-r[c])/(r[c+1]-r[c]),h=l+d*.1,v=PC(h,e,o);return v>=.001?KU(i,h,e,o):v===0?h:GU(i,l,l+.1,e,o)}return function(l){return l===0||l===1?l:Jv(a(l),t,n)}}var b0=y(G()),RC=()=>{let e=me(Hv),t=me(Wv),o=me(Sn),n=me(Zl),r=uC(),[a,i]=to(Jl),l=Ht.useRef(null),c=Ht.useRef(new Set),s=no("translated-lyric",!0),d=no("dynamic-lyric",!1),h=no("roman-lyric",!0),v=no("alignTopSelectedLyric",!1),u=Ht.useRef(void 0),w=Ht.useRef(0),k=Ht.useRef(0),E=Ht.useCallback((x=!1)=>{var b;if(l.current){let L=l.current.parentElement,C=a;for(let N of c.current)C>N&&(C=N);let B=l.current.children.item(C);if(B&&L&&(x&&(u.current=void 0),B!==((b=u.current)==null?void 0:b.lyricElement))){let N=function(){let j=0;if(L&&B&&l.current){let T=L.getBoundingClientRect(),H=B.getBoundingClientRect(),_=H.height;j=H.top-T.top,v?B.innerText.trim().length>0?j-=T.height*.1:j-=window.innerHeight*.06+T.height*.1:j-=(window.innerHeight-_)/2;let A=l.current.children.item(f.current);A!=null&&A.classList.contains("am-lyric-dots")&&(j-=A.getBoundingClientRect().height)}return j};if(x){let j=++w.current,T=()=>{if(B&&!u.current&&j===w.current){let H=L.scrollTop,_=N();Math.abs(_)>10&&(L.scrollTo(0,H+_),requestAnimationFrame(T))}};requestAnimationFrame(T)}else{let j=Symbol("scroll-symbol"),T=N(),H=zk(.65,0,.35,1),_=J=>H(J),A=750;if(T>0){let J=C,he=1;for(;;){let ue=l.current.children.item(++J);if(!ue)break;if(ue.classList.contains("am-lyric-line")){let ie=A+he*100,le=Math.sqrt(T);if(Math.abs(le)<1)break;let fe=[{transform:"translateY(0px)",offset:0,composite:"add"}],se=ie/1e3*60/2;for(let ke=0;ke0;J--)F[J]-=F[J-1];F[0]&&(F[0]=0);let $=0,U,oe=0,ve=J=>{var ue;U!=null||(U=J);let he=J-U;if(((ue=u.current)==null?void 0:ue.id)===j&&${let x=document.querySelector("a[data-action='max']"),b=()=>{E(!0)},L=()=>{c.current.clear(),c.current.add(a),E(!0)};return be.addEventListener("lyric-page-open",L),x==null||x.addEventListener("click",L),window.addEventListener("resize",b),()=>{be.removeEventListener("lyric-page-open",L),x==null||x.removeEventListener("click",L),window.removeEventListener("resize",b)}},[E,a]);let p=Ht.useCallback((x,b)=>{if(console.log(b.button),b.button===0){if(k.current=0,o){let L=o.findIndex(C=>C===x);c.current.clear(),i(L)}d&&(x.dynamicLyricTime||t=0?(Pe("正在跳转到歌词时间",(x==null?void 0:x.dynamicLyricTime)||x.time),legacyNativeCmder._envAdapter.callAdapter("audioplayer.seek",()=>{},[e,ak(e,"seek"),((x==null?void 0:x.dynamicLyricTime)||x.time)/1e3])):x.time=0&&(Pe("正在跳转到歌词时间",x.time),legacyNativeCmder._envAdapter.callAdapter("audioplayer.seek",()=>{},[e,ak(e,"seek"),x.time/1e3]))}else if(b.button===2){let L="";d&&x.dynamicLyric?L+=x.dynamicLyric.map(C=>C.word).join(""):L+=x.originalLyric,s&&x.translatedLyric&&(L+=` `,L+=x.translatedLyric),h&&x.romanLyric&&(L+=` -`,L+=x.romanLyric),legacyNativeCmder._envAdapter.callAdapter("winhelper.setClipBoardData",()=>{},[L.trim()])}},[e,s,h,d,t]),m=It.useRef(Date.now()),f=It.useRef(-1),E=It.useCallback(x=>{let b=f.current;if(b===x||!o)return;let L=Date.now(),C=o[b],B=(C==null?void 0:C.originalLyric)||"";if(B.trim().length===0){c.current.clear();return}let N=Math.min(2e3,Math.max(750,tL(B)));C&&L-m.current<=N?(c.current.size<3?c.current.add(b):(c.current.size>0&&c.current.clear(),m.current=L),r(),c.current.add(x)):(m.current=L,c.current.size>0&&r(),c.current.clear())},[o]);It.useLayoutEffect(()=>()=>{f.current=a},[a]),It.useLayoutEffect(()=>{n==="playing"&&Date.now()-k.current>2e3?(E(a),g()):f.current=a},[g,E,o,a,n]),It.useLayoutEffect(()=>{g(!0),k.current=0,c.current.clear()},[s,d,h,o]);let M=x=>{k.current=Date.now()},z=It.useCallback((x,b,L)=>{let C=c.current.has(b),B=b-a;return x.originalLyric.trim().length>0?(0,E0.jsx)(eC,{selected:b===a||C,line:x,translated:s,dynamic:d,roman:h,offset:B,onClickLyric:p},`${b}-${x.time}-${x.originalLyric}`):(0,E0.jsx)(tC,{selected:b===a,time:x.time,offset:B,duration:x.duration},`${b}-dots`)},[p,o,a,d,s,h]);return(0,E0.jsx)("div",{className:"am-lyric-view",onWheel:M,children:(0,E0.jsx)("div",{ref:l,children:o==null?void 0:o.map(z)})})};var pi=y(G());var lC=e=>{switch(e.backend){case"DOM":return(0,pi.jsx)(iC,{});case"CANVAS":return(0,pi.jsx)(ZL,{});default:return(0,pi.jsx)("div",{className:"am-lyric-view",children:(0,pi.jsx)("div",{children:(0,pi.jsxs)("div",{children:["错误:未知的渲染后端类型:",e.backend]})})})}};var vk=y(I());var Jn=y(G()),be=e=>{let[t,o]=Jt(e.settingKey,String(!!e.defaultValue)),n=vk.useMemo(()=>t==="true",[t]);return(0,Jn.jsx)(i0,{disabled:e.disabled,sx:{margin:"16px 0"},checked:n,onChange:()=>o(String(!n)),label:e.label})},qv=e=>{let[t,o]=Jt(e.settingKey,e.defaultValue),l=e,{onChange:n,settingKey:r,defaultValue:a}=l,i=we(l,["onChange","settingKey","defaultValue"]);return(0,Jn.jsx)(Sl,K({sx:{margin:"8px 0"},value:t,onChange:c=>o(c.currentTarget.value)},i))},cC=e=>{let a=e,{settingKey:t}=a,o=we(a,["settingKey"]),[n,r]=Jt(t,e.defaultValue);return(0,Jn.jsx)(xh,K({sx:{margin:"8px 0"},format:"hexa",value:n,onChange:r,withEyeDropper:!0},o))},jn=e=>{let[t,o]=Jt(e.settingKey),n=vk.useMemo(()=>Number(t)||e.defaultValue,[t,e.defaultValue]);return(0,Jn.jsxs)(Jn.Fragment,{children:[(0,Jn.jsx)(oe,{sx:{margin:"8px 0"},fz:"md",children:e.label}),(0,Jn.jsx)(Pl,{sx:{margin:"8px 0"},disabled:e.disabled,step:e.step,min:e.min,max:e.max,defaultValue:e.defaultValue,label:e.formatLabel,value:n,onChange:r=>o(String(r))})]})};var st=y(G()),aU=[{icon:()=>(0,st.jsx)(FL,{}),value:"DOM",label:"DOM",desc:"传统的 DOM 元素渲染方式"},{icon:()=>(0,st.jsx)(DL,{}),value:"CANVAS",label:"Canvas(开发中)",desc:"未来的画板绘制方式,将会比 DOM 更加流畅且拥有更多效果(目前还在开发中,功能非常有限且有很多问题)"}],iU=sC.forwardRef((i,a)=>{var l=i,{label:e,icon:t,value:o,desc:n}=l,r=we(l,["label","icon","value","desc"]);return(0,st.jsx)("div",ke(K({ref:a},r),{children:(0,st.jsxs)(la,{noWrap:!0,children:[(0,st.jsx)(Al,{size:"xl",children:t()}),(0,st.jsxs)("div",{children:[(0,st.jsx)(oe,{size:"sm",children:e}),(0,st.jsx)(oe,{size:"xs",opacity:.65,children:n})]})]})}))}),dC=()=>{let[e,t]=Jt("rendererBackend","DOM");return(0,st.jsxs)(st.Fragment,{children:[(0,st.jsx)(ct,{order:2,children:"歌词设置"}),(0,st.jsx)(_l,{label:"歌词渲染方式",itemComponent:iU,data:aU,onChange:t,value:e}),(0,st.jsx)(be,{settingKey:"translated-lyric",label:"显示翻译歌词",defaultValue:!1}),(0,st.jsx)(be,{settingKey:"roman-lyric",label:"显示音译歌词",defaultValue:!1}),(0,st.jsx)(be,{settingKey:"dynamic-lyric",label:"显示逐词歌词(实验性)",defaultValue:!1}),(0,st.jsx)(be,{settingKey:"mergeOriginalOnlyLine",label:"合并没有译文的歌词",defaultValue:!1}),(0,st.jsx)(jn,{settingKey:"globalTimeStampOffset",label:"全局歌词时序偏移(秒)",formatLabel:o=>o===0?"不调整":o<0?`推迟 ${(-o).toFixed(1)} 秒`:`提前 ${o.toFixed(1)} 秒`,min:-10,step:.1,defaultValue:0,max:10})]})};var to=y(G()),hC=()=>{let e=eo("lyricFixedFontSize",!1),t=eo("fontShadow");return(0,to.jsxs)(to.Fragment,{children:[(0,to.jsx)(ct,{order:2,children:"歌词样式设置"}),(0,to.jsx)(be,{settingKey:"lyricBlurEffect",label:"歌词模糊效果"}),(0,to.jsx)(be,{settingKey:"lyricScaleEffect",label:"歌词缩放效果"}),(0,to.jsx)(be,{settingKey:"lyricHidePassed",label:"已播放歌词隐藏效果"}),(0,to.jsx)(be,{settingKey:"lyricBlurFadeInEffect",label:"未播放歌词淡入效果"}),(0,to.jsx)(be,{settingKey:"fontShadow",label:"文字阴影",defaultValue:!1}),(0,to.jsx)(jn,{settingKey:"fontShadowSize",label:"文字阴影大小",disabled:!t,formatLabel:o=>`${o}px`,min:0,step:1,defaultValue:0,max:100}),(0,to.jsx)(be,{settingKey:"alignTopSelectedLyric",label:"歌词滚动位置向上对齐"}),(0,to.jsx)(cC,{label:"字体颜色",settingKey:"fontColor",defaultValue:"#FFFFFFFF"}),(0,to.jsx)(be,{settingKey:"lyricFixedFontSize",defaultValue:e,label:"自定义字体大小(关闭以使用自适应字体大小)"}),(0,to.jsx)(jn,{step:1,min:8,max:64,defaultValue:16,disabled:!e,settingKey:"lyricFontSize",formatLabel:o=>`${o}px`,label:"歌词字体大小(像素)"})]})};var Nt=y(G()),vC=()=>(0,Nt.jsxs)(Nt.Fragment,{children:[(0,Nt.jsx)(ct,{order:2,children:"歌曲信息样式设置"}),(0,Nt.jsx)(be,{settingKey:"hideAlbumImage",label:"隐藏专辑图"}),(0,Nt.jsx)(be,{settingKey:"hideMusicName",label:"隐藏歌名"}),(0,Nt.jsx)(be,{settingKey:"hideMusicAlias",label:"隐藏歌曲别名"}),(0,Nt.jsx)(be,{settingKey:"hideMusicArtists",label:"隐藏歌手名"}),(0,Nt.jsx)(be,{settingKey:"hideMusicAlbum",label:"隐藏专辑名"}),(0,Nt.jsx)(be,{settingKey:"alignLeftMusicName",label:"歌名居左"}),(0,Nt.jsx)(be,{settingKey:"alignLeftMusicAlias",label:"歌曲别名居左"}),(0,Nt.jsx)(be,{settingKey:"alignLeftMusicArtists",label:"歌手名居左"}),(0,Nt.jsx)(be,{settingKey:"alignLeftMusicAlbum",label:"专辑名居左"}),(0,Nt.jsx)(be,{settingKey:"hideMusicArtistsLabel",label:"隐藏歌手名标签"}),(0,Nt.jsx)(be,{settingKey:"hideMusicAlbumLabel",label:"隐藏专辑名标签"}),(0,Nt.jsx)(qv,{label:"歌手名分隔符",settingKey:"musicArtistsSeparator",defaultValue:'" - "'})]});var er=y(G()),mC=()=>(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(ct,{order:2,children:"其它样式设置"}),(0,er.jsx)(be,{settingKey:"autoHideControlBar",label:"鼠标静止时自动隐藏播放栏和标题栏"}),(0,er.jsx)(jn,{step:.5,min:1,max:30,formatLabel:e=>`${e} 秒`,settingKey:"autoHideDuration",label:"鼠标静止隐藏间隔(秒)"}),(0,er.jsx)(be,{settingKey:"usePingFangFont",label:"播放页面使用苹方字体(需要系统安装)"}),(0,er.jsx)(bt,{sx:{margin:"8px 0"},variant:"outline",onClick:()=>{betterncm.ncm.openUrl("https://ghproxy.com/https://github.com/paraself/PingFang-Fonts/archive/refs/heads/master.zip")},children:"你可以在此下载安装苹方字体"})]});var mk=y(I());var $t=y(G()),uC=()=>{let e=mk.useMemo(()=>APP_CONF.packageVersion,[]),[t,o]=Jt("eapiRequestFuncName",""),n=mk.useMemo(()=>{if(t!==""){let r=betterncm.ncm.findApiFunction(t);return r===null?"":"originalFunc"in r[0]?r[0].originalFunc.toString():r.toString()}else return""},[t]);return(0,$t.jsxs)($t.Fragment,{children:[(0,$t.jsx)(ct,{order:2,children:"歌词来源设置"}),(0,$t.jsx)(oe,{fz:"md",sx:{margin:"6px 0"},children:"如果歌词无法正确显示,有可能是无法获取网易云请求函数,或者找到的函数并不是网易云请求函数,请确认此处的函数名称是对应你所使用的网易云版本的请求函数。"}),(0,$t.jsx)(oe,{fz:"md",sx:{margin:"6px 0"},children:"具体可以前往插件 Github 仓库查询或在 BetterNCM 讨论群内询问作者 SteveXMH。"}),(0,$t.jsxs)(oe,{fz:"md",sx:{margin:"6px 0"},children:["当前网易云 core.js 版本:",e]}),(0,$t.jsx)(qv,{label:"网易云请求函数名称",settingKey:"eapiRequestFuncName",defaultValue:t}),(0,$t.jsx)(oe,{fz:"md",sx:{margin:"6px 0"},c:n===""?"yellow":"green",children:n===""?"无法找到该函数,歌词将无法工作":"已找到函数,请自行确定是否是网易云请求函数:"}),(0,$t.jsxs)(bt.Group,{sx:{margin:"8px 0"},orientation:"vertical",children:[(0,$t.jsx)(bt,{variant:"outline",onClick:()=>{let r=Ul();o(r||"")},children:"尝试搜索请求函数(方式一)"}),(0,$t.jsx)(bt,{variant:"outline",onClick:()=>{let r=Ul(!0);o(r||"")},children:"尝试搜索请求函数(方式二)"})]}),n.length>0?(0,$t.jsx)(sh,{block:!0,sx:{margin:"8px 0"},className:"am-lyric-func-body",children:n}):(0,$t.jsx)($t.Fragment,{})]})};var zC=y(EC());var Xv=y(MC());(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var o=e.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))})(Prism);var Co=y(G()),bC=()=>{let[e,t]=Jt("customCssContent","");return(0,Co.jsxs)(Co.Fragment,{children:[(0,Co.jsx)(ct,{order:2,children:"自定义 CSS 设置"}),(0,Co.jsx)(At,{h:"xl"}),(0,Co.jsx)(oe,{fz:"md",children:"如果默认的预设不适合你,那么你可以在此处自定义 CSS 样式。"}),(0,Co.jsx)(At,{h:"md"}),(0,Co.jsx)(oe,{fz:"md",children:"具体如何修改可以参考本插件的源代码(关于页面有)或 DevTools 内查看元素。"}),(0,Co.jsx)(oe,{fz:"md",children:"自定义 CSS 样式"}),(0,Co.jsx)(At,{h:"md"}),(0,Co.jsx)(Rs,{type:"auto",offsetScrollbars:!0,style:{background:"#0d1117",border:"solid 1px #30363d",maxHeight:"512px",borderRadius:"4px",fontFamily:'"Fira Code Regular", "Microsoft Yahei Mono", Consolas, "Courier New", "PingFang SC", monospace',fontSize:14},children:(0,Co.jsx)(zC.default,{value:e,onValueChange:o=>t(o),highlight:o=>(0,Xv.highlight)(o,Xv.languages.css),textareaClassName:"mantine-Textarea-input",padding:8})})]})};var yC="precision highp float;uniform float time;uniform vec2 resolution;uniform sampler2D albumColorMap;uniform vec2 albumColorMapRes;float rand(vec2 n){return fract(sin(dot(n,vec2(12.9898,4.1414)))*43758.5453);}float noise(vec2 p){vec2 ip=floor(p);vec2 u=fract(p);u=u*u*(3.0-2.0*u);float res=mix(mix(rand(ip),rand(ip+vec2(1.0,0.0)),u.x),mix(rand(ip+vec2(0.0,1.0)),rand(ip+vec2(1.0,1.0)),u.x),u.y);return res*res;}const mat2 mtx=mat2(0.80,0.60,-0.60,0.80);float fbm(vec2 p){float f=0.0;f+=0.050000*noise(p+time*0.2)+time*0.008;p=mtx*p*2.02;f+=0.031250*noise(p);p=mtx*p*2.01;f+=0.250000*noise(p);p=mtx*p*2.03;return f/0.96875;}float pattern(in vec2 p){return fbm(p+fbm(p+fbm(p)));}void main(){vec2 uv=gl_FragCoord.xy/resolution.x;float shade=pattern(uv)/2.;vec4 color=texture2D(albumColorMap,vec2(shade*albumColorMapRes.x,0.));gl_FragColor=vec4(color.rgb,0.5);}";var Qv={label:"流体效果",description:"酷似 Apple Music 的背景效果",value:"fmb-wave",fragmentShaderCode:yC,afterDrawArray(){this.shouldRedraw()}};var LC=`precision highp float;uniform vec2 resolution;uniform sampler2D albumImage;uniform vec2 albumImageRes; +`,L+=x.romanLyric),legacyNativeCmder._envAdapter.callAdapter("winhelper.setClipBoardData",()=>{},[L.trim()])}},[e,s,h,d,t]),m=Ht.useRef(Date.now()),f=Ht.useRef(-1),g=Ht.useCallback(x=>{let b=f.current;if(b===x||!o)return;let L=Date.now(),C=o[b],B=(C==null?void 0:C.originalLyric)||"";if(B.trim().length===0){c.current.clear();return}let N=Math.min(2e3,Math.max(750,mL(B)));C&&L-m.current<=N?(c.current.size<3?c.current.add(b):(c.current.size>0&&c.current.clear(),m.current=L),r(),c.current.add(x)):(m.current=L,c.current.size>0&&r(),c.current.clear())},[o]);Ht.useLayoutEffect(()=>()=>{f.current=a},[a]),Ht.useLayoutEffect(()=>{n==="playing"&&Date.now()-k.current>2e3?(g(a),E()):f.current=a},[E,g,o,a,n]),Ht.useLayoutEffect(()=>{E(!0),k.current=0,c.current.clear()},[s,d,h,o]);let M=x=>{k.current=Date.now()},z=Ht.useCallback((x,b,L)=>{let C=c.current.has(b),B=b-a;return x.originalLyric.trim().length>0?(0,b0.jsx)(HC,{selected:b===a||C,line:x,translated:s,dynamic:d,roman:h,offset:B,onClickLyric:p},`${b}-${x.time}-${x.originalLyric}`):(0,b0.jsx)(WC,{selected:b===a,time:x.time,offset:B,duration:x.duration},`${b}-dots`)},[p,o,a,d,s,h]);return(0,b0.jsx)("div",{className:"am-lyric-view",onWheel:M,children:(0,b0.jsx)("div",{ref:l,children:o==null?void 0:o.map(z)})})};var gi=y(G());var TC=e=>{switch(e.backend){case"DOM":return(0,gi.jsx)(RC,{});case"CANVAS":return(0,gi.jsx)(BC,{});default:return(0,gi.jsx)("div",{className:"am-lyric-view",children:(0,gi.jsx)("div",{children:(0,gi.jsxs)("div",{children:["错误:未知的渲染后端类型:",e.backend]})})})}};var bk=y(I());var nr=y(G()),Le=e=>{let[t,o]=oo(e.settingKey,String(!!e.defaultValue)),n=bk.useMemo(()=>t==="true",[t]);return(0,nr.jsx)(h0,{disabled:e.disabled,sx:{margin:"16px 0"},checked:n,onChange:()=>o(String(!n)),label:e.label})},em=e=>{let[t,o]=oo(e.settingKey,e.defaultValue),l=e,{onChange:n,settingKey:r,defaultValue:a}=l,i=xe(l,["onChange","settingKey","defaultValue"]);return(0,nr.jsx)(Tl,Y({sx:{margin:"8px 0"},value:t,onChange:c=>o(c.currentTarget.value)},i))},AC=e=>{let a=e,{settingKey:t}=a,o=xe(a,["settingKey"]),[n,r]=oo(t,e.defaultValue);return(0,nr.jsx)(yh,Y({sx:{margin:"8px 0"},format:"hexa",value:n,onChange:r,withEyeDropper:!0},o))},_n=e=>{let[t,o]=oo(e.settingKey),n=bk.useMemo(()=>Number(t)||e.defaultValue,[t,e.defaultValue]);return(0,nr.jsxs)(nr.Fragment,{children:[(0,nr.jsx)(re,{sx:{margin:"8px 0"},fz:"md",children:e.label}),(0,nr.jsx)(Dl,{sx:{margin:"8px 0"},disabled:e.disabled,step:e.step,min:e.min,max:e.max,defaultValue:e.defaultValue,label:e.formatLabel,value:n,onChange:r=>o(String(r))})]})};var mt=y(G()),QU=[{icon:()=>(0,mt.jsx)(gC,{}),value:"DOM",label:"DOM",desc:"传统的 DOM 元素渲染方式"},{icon:()=>(0,mt.jsx)(EC,{}),value:"CANVAS",label:"Canvas(开发中)",desc:"未来的画板绘制方式,将会比 DOM 更加流畅且拥有更多效果(目前还在开发中,功能非常有限且有很多问题)"}],ZU=DC.forwardRef((i,a)=>{var l=i,{label:e,icon:t,value:o,desc:n}=l,r=xe(l,["label","icon","value","desc"]);return(0,mt.jsx)("div",ge(Y({ref:a},r),{children:(0,mt.jsxs)(ha,{noWrap:!0,children:[(0,mt.jsx)(Ul,{size:"xl",children:t()}),(0,mt.jsxs)("div",{children:[(0,mt.jsx)(re,{size:"sm",children:e}),(0,mt.jsx)(re,{size:"xs",opacity:.65,children:n})]})]})}))}),FC=()=>{let[e,t]=oo("rendererBackend","DOM");return(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(vt,{order:2,children:"歌词设置"}),(0,mt.jsx)(Al,{label:"歌词渲染方式",itemComponent:ZU,data:QU,onChange:t,value:e}),(0,mt.jsx)(Le,{settingKey:"translated-lyric",label:"显示翻译歌词",defaultValue:!1}),(0,mt.jsx)(Le,{settingKey:"roman-lyric",label:"显示音译歌词",defaultValue:!1}),(0,mt.jsx)(Le,{settingKey:"dynamic-lyric",label:"显示逐词歌词(实验性)",defaultValue:!1}),(0,mt.jsx)(Le,{settingKey:"mergeOriginalOnlyLine",label:"合并没有译文的歌词",defaultValue:!1}),(0,mt.jsx)(_n,{settingKey:"globalTimeStampOffset",label:"全局歌词时序偏移(秒)",formatLabel:o=>o===0?"不调整":o<0?`推迟 ${(-o).toFixed(1)} 秒`:`提前 ${o.toFixed(1)} 秒`,min:-10,step:.1,defaultValue:0,max:10})]})};var ro=y(G()),$C=()=>{let e=no("lyricFixedFontSize",!1),t=no("fontShadow");return(0,ro.jsxs)(ro.Fragment,{children:[(0,ro.jsx)(vt,{order:2,children:"歌词样式设置"}),(0,ro.jsx)(Le,{settingKey:"lyricBlurEffect",label:"歌词模糊效果"}),(0,ro.jsx)(Le,{settingKey:"lyricScaleEffect",label:"歌词缩放效果"}),(0,ro.jsx)(Le,{settingKey:"lyricHidePassed",label:"已播放歌词隐藏效果"}),(0,ro.jsx)(Le,{settingKey:"lyricBlurFadeInEffect",label:"未播放歌词淡入效果"}),(0,ro.jsx)(Le,{settingKey:"fontShadow",label:"文字阴影",defaultValue:!1}),(0,ro.jsx)(_n,{settingKey:"fontShadowSize",label:"文字阴影大小",disabled:!t,formatLabel:o=>`${o}px`,min:0,step:1,defaultValue:0,max:100}),(0,ro.jsx)(Le,{settingKey:"alignTopSelectedLyric",label:"歌词滚动位置向上对齐"}),(0,ro.jsx)(AC,{label:"字体颜色",settingKey:"fontColor",defaultValue:"#FFFFFFFF"}),(0,ro.jsx)(Le,{settingKey:"lyricFixedFontSize",defaultValue:e,label:"自定义字体大小(关闭以使用自适应字体大小)"}),(0,ro.jsx)(_n,{step:1,min:8,max:64,defaultValue:16,disabled:!e,settingKey:"lyricFontSize",formatLabel:o=>`${o}px`,label:"歌词字体大小(像素)"})]})};var xt=y(G()),VC=()=>(0,xt.jsxs)(xt.Fragment,{children:[(0,xt.jsx)(vt,{order:2,children:"歌曲信息样式设置"}),(0,xt.jsx)(Le,{settingKey:"hideAlbumImage",label:"隐藏专辑图"}),(0,xt.jsx)(Le,{settingKey:"hideMusicName",label:"隐藏歌名"}),(0,xt.jsx)(Le,{settingKey:"hideMusicAlias",label:"隐藏歌曲别名"}),(0,xt.jsx)(Le,{settingKey:"hideMusicArtists",label:"隐藏歌手名"}),(0,xt.jsx)(Le,{settingKey:"hideMusicAlbum",label:"隐藏专辑名"}),(0,xt.jsx)(Le,{settingKey:"alignLeftAlbumImage",label:"专辑图居左"}),(0,xt.jsx)(Le,{settingKey:"alignLeftMusicName",label:"歌名居左"}),(0,xt.jsx)(Le,{settingKey:"alignLeftMusicAlias",label:"歌曲别名居左"}),(0,xt.jsx)(Le,{settingKey:"alignLeftMusicArtists",label:"歌手名居左"}),(0,xt.jsx)(Le,{settingKey:"alignLeftMusicAlbum",label:"专辑名居左"}),(0,xt.jsx)(Le,{settingKey:"hideMusicArtistsLabel",label:"隐藏歌手名标签"}),(0,xt.jsx)(Le,{settingKey:"hideMusicAlbumLabel",label:"隐藏专辑名标签"}),(0,xt.jsx)(em,{label:"歌手名分隔符",settingKey:"musicArtistsSeparator",defaultValue:'" - "'})]});var rr=y(G()),UC=()=>(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)(vt,{order:2,children:"其它样式设置"}),(0,rr.jsx)(Le,{settingKey:"autoHideControlBar",label:"鼠标静止时自动隐藏播放栏和标题栏"}),(0,rr.jsx)(_n,{step:.5,min:1,max:30,formatLabel:e=>`${e} 秒`,settingKey:"autoHideDuration",label:"鼠标静止隐藏间隔(秒)"}),(0,rr.jsx)(Le,{settingKey:"usePingFangFont",label:"播放页面使用苹方字体(需要系统安装)"}),(0,rr.jsx)(It,{sx:{margin:"8px 0"},variant:"outline",onClick:()=>{betterncm.ncm.openUrl("https://ghproxy.com/https://github.com/paraself/PingFang-Fonts/archive/refs/heads/master.zip")},children:"你可以在此下载安装苹方字体"})]});var yk=y(I());var qt=y(G()),qC=()=>{let e=yk.useMemo(()=>APP_CONF.packageVersion,[]),[t,o]=oo("eapiRequestFuncName",""),n=yk.useMemo(()=>{if(t!==""){let r=betterncm.ncm.findApiFunction(t);return r===null?"":"originalFunc"in r[0]?r[0].originalFunc.toString():r.toString()}else return""},[t]);return(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)(vt,{order:2,children:"歌词来源设置"}),(0,qt.jsx)(re,{fz:"md",sx:{margin:"6px 0"},children:"如果歌词无法正确显示,有可能是无法获取网易云请求函数,或者找到的函数并不是网易云请求函数,请确认此处的函数名称是对应你所使用的网易云版本的请求函数。"}),(0,qt.jsx)(re,{fz:"md",sx:{margin:"6px 0"},children:"具体可以前往插件 Github 仓库查询或在 BetterNCM 讨论群内询问作者 SteveXMH。"}),(0,qt.jsxs)(re,{fz:"md",sx:{margin:"6px 0"},children:["当前网易云 core.js 版本:",e]}),(0,qt.jsx)(em,{label:"网易云请求函数名称",settingKey:"eapiRequestFuncName",defaultValue:t}),(0,qt.jsx)(re,{fz:"md",sx:{margin:"6px 0"},c:n===""?"yellow":"green",children:n===""?"无法找到该函数,歌词将无法工作":"已找到函数,请自行确定是否是网易云请求函数:"}),(0,qt.jsxs)(It.Group,{sx:{margin:"8px 0"},orientation:"vertical",children:[(0,qt.jsx)(It,{variant:"outline",onClick:()=>{let r=Xl();o(r||"")},children:"尝试搜索请求函数(方式一)"}),(0,qt.jsx)(It,{variant:"outline",onClick:()=>{let r=Xl(!0);o(r||"")},children:"尝试搜索请求函数(方式二)"})]}),n.length>0?(0,qt.jsx)(mh,{block:!0,sx:{margin:"8px 0"},className:"am-lyric-func-body",children:n}):(0,qt.jsx)(qt.Fragment,{})]})};var tI=y(ZC());var rm=y(eI());(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var o=e.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))})(Prism);var Bo=y(G()),oI=()=>{let[e,t]=oo("customCssContent","");return(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(vt,{order:2,children:"自定义 CSS 设置"}),(0,Bo.jsx)($t,{h:"xl"}),(0,Bo.jsx)(re,{fz:"md",children:"如果默认的预设不适合你,那么你可以在此处自定义 CSS 样式。"}),(0,Bo.jsx)($t,{h:"md"}),(0,Bo.jsx)(re,{fz:"md",children:"具体如何修改可以参考本插件的源代码(关于页面有)或 DevTools 内查看元素。"}),(0,Bo.jsx)(re,{fz:"md",children:"自定义 CSS 样式"}),(0,Bo.jsx)($t,{h:"md"}),(0,Bo.jsx)($s,{type:"auto",offsetScrollbars:!0,style:{background:"#0d1117",border:"solid 1px #30363d",maxHeight:"512px",borderRadius:"4px",fontFamily:'"Fira Code Regular", "Microsoft Yahei Mono", Consolas, "Courier New", "PingFang SC", monospace',fontSize:14},children:(0,Bo.jsx)(tI.default,{value:e,onValueChange:o=>t(o),highlight:o=>(0,rm.highlight)(o,rm.languages.css),textareaClassName:"mantine-Textarea-input",padding:8})})]})};var nI="precision highp float;uniform float time;uniform vec2 resolution;uniform sampler2D albumColorMap;uniform vec2 albumColorMapRes;float rand(vec2 n){return fract(sin(dot(n,vec2(12.9898,4.1414)))*43758.5453);}float noise(vec2 p){vec2 ip=floor(p);vec2 u=fract(p);u=u*u*(3.0-2.0*u);float res=mix(mix(rand(ip),rand(ip+vec2(1.0,0.0)),u.x),mix(rand(ip+vec2(0.0,1.0)),rand(ip+vec2(1.0,1.0)),u.x),u.y);return res*res;}const mat2 mtx=mat2(0.80,0.60,-0.60,0.80);float fbm(vec2 p){float f=0.0;f+=0.050000*noise(p+time*0.2)+time*0.008;p=mtx*p*2.02;f+=0.031250*noise(p);p=mtx*p*2.01;f+=0.250000*noise(p);p=mtx*p*2.03;return f/0.96875;}float pattern(in vec2 p){return fbm(p+fbm(p+fbm(p)));}void main(){vec2 uv=gl_FragCoord.xy/resolution.x;float shade=pattern(uv)/2.;vec4 color=texture2D(albumColorMap,vec2(shade*albumColorMapRes.x,0.));gl_FragColor=vec4(color.rgb,0.5);}";var am={label:"流体效果",description:"酷似 Apple Music 的背景效果",value:"fmb-wave",fragmentShaderCode:nI,afterDrawArray(){this.shouldRedraw()}};var rI=`precision highp float;uniform vec2 resolution;uniform sampler2D albumImage;uniform vec2 albumImageRes; #define SIZE (8) #define STEP (1) #define TAU (6.28318530718) #define KSIZE ((SIZE - 1) / 2) -vec3 rgb2hsv(vec3 c){vec4 K=vec4(0.0,-1.0/3.0,2.0/3.0,-1.0);vec4 p=mix(vec4(c.bg,K.wz),vec4(c.gb,K.xy),step(c.b,c.g));vec4 q=mix(vec4(p.xyw,c.r),vec4(c.r,p.yzx),step(p.x,c.r));float d=q.x-min(q.w,q.y);float e=1.0e-10;return vec3(abs(q.z+(q.w-q.y)/(6.0*d+e)),d/(q.x+e),q.x);}const vec4 hsv2rgb_K=vec4(1.0,2.0/3.0,1.0/3.0,3.0);vec3 hsv2rgb(vec3 c){vec3 p=abs(fract(c.xxx+hsv2rgb_K.xyz)*6.0-hsv2rgb_K.www);return c.z*mix(hsv2rgb_K.xxx,clamp(p-hsv2rgb_K.xxx,0.0,1.0),c.y);}float normpdf(in float x,in float sigma){return 0.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;}void main(){const int size=SIZE;const int ksize=KSIZE;vec2 uv=gl_FragCoord.xy/resolution.xy;float w=resolution.x;float h=resolution.y;float iw=albumImageRes.x;float ih=albumImageRes.y;float r=min(w/iw,h/ih);float nw=iw*r;float nh=ih*r;float ar=1.0;if(nw0.0?vec4(xyz,w):vec4(0.0);}vec3 alphaBlend(vec3 back,vec4 front){return mix(back,front.xyz,front.w);}float sRGB(float t){return mix(1.055*pow(t,1./2.4)-0.055,12.92*t,step(t,0.0031308));}vec3 sRGB(in vec3 c){return vec3(sRGB(c.x),sRGB(c.y),sRGB(c.z));}vec3 aces_approx(vec3 v){v=max(v,0.0);v*=0.6;float a=2.51;float b=0.03;float c=2.43;float d=0.59;float e=0.14;return clamp((v*(a*v+b))/(v*(c*v+d)+e),0.0,1.0);}float tanh_approx(float x){float x2=x*x;return clamp(x*(27.0+x2)/(27.0+9.0*x2),-1.0,1.0);}float hash(vec2 p){float a=dot(p,vec2(127.1,311.7));return fract(sin(a)*43758.5453123);}float vnoise(vec2 p){vec2 i=floor(p);vec2 f=fract(p);vec2 u=f*f*(3.0-2.0*f);float a=hash(i+vec2(0.0,0.0));float b=hash(i+vec2(1.0,0.0));float c=hash(i+vec2(0.0,1.0));float d=hash(i+vec2(1.0,1.0));float m0=mix(a,b,u.x);float m1=mix(c,d,u.x);float m2=mix(m0,m1,u.y);return m2;}float heightFactor(vec2 p){return 2.0*smoothstep(0.0,1.25,abs(p.x)-0.05)+1.0;}float hifbm(vec2 p){float hf=heightFactor(p);const float aa=0.5;const float pp=2.0-0.;float sum=0.0;float a=1.0;for(int i=0;i<5;++i){sum+=a*vnoise(p);a*=aa;p*=pp;}return hf*sum;}float lofbm(vec2 p){float hf=heightFactor(p);const float aa=0.5;const float pp=2.0-0.;float sum=0.0;float a=1.0;for(int i=0;i<2;++i){sum+=a*vnoise(p);a*=aa;p*=pp;}return hf*sum;}vec3 offset(float z){float a=z*0.5;vec2 p=vec2(0.33,0.1)*(vec2(cos(a),sin(a*sqrt(2.0)))+vec2(cos(a*sqrt(0.75)),sin(a*sqrt(0.5))));return vec3(p,z);}vec3 doffset(float z){float eps=0.1;return 0.5*(offset(z+eps)-offset(z-eps))/(2.0*eps);}vec3 ddoffset(float z){float eps=0.1;return 0.5*(doffset(z+eps)-doffset(z-eps))/(2.0*eps);}float hiheight(vec2 p){return hifbm(p)-1.8;}float loheight(vec2 p){return lofbm(p)-2.15;}vec4 plane(vec3 ro,vec3 rd,vec3 pp,vec3 npp,vec3 off,float n){vec2 p=(pp-off*2.0*vec3(1.0,1.0,0.0)).xy;const vec2 stp=vec2(0.5,0.33);float he=hiheight(vec2(p.x,pp.z)*stp);float lohe=loheight(vec2(p.x,pp.z)*stp);float d=p.y-he;float lod=p.y-lohe;float aa=distance(pp,npp)*sqrt(1.0/3.0);float df=tanh_approx(max(0.225*distance(ro,pp)-0.4,0.));float hf=mix(0.66,1.1,df);float gf=tanh_approx(exp(-2.0*lod));float yf=smoothstep(2.5,-1.0,pp.y);vec3 acol=hsv2rgb(vec3(hf,1.0,mix(0.2,1.0,df)));vec3 gcol=hsv2rgb(vec3(hf,1.0,1.0-gf));float t=smoothstep(aa,-aa,d);t*=mix(1.0,yf,sqrt(df));t=max(t,gf*yf*yf);vec3 col=vec3(0.0);col+=acol;col+=0.5*gcol;return vec4(col,t);}vec3 skyColor(vec3 ro,vec3 rd,vec3 nrd){const vec3 sky=HSV2RGB(vec3(0.66,0.2,1.0));return sky;}vec3 color(vec3 ww,vec3 uu,vec3 vv,vec3 ro,vec2 p){vec2 np=p+2.0/RESOLUTION.y;const float rdd=2.0;vec3 rd=normalize(-p.x*uu+p.y*vv+rdd*ww);vec3 nrd=normalize(-np.x*uu+np.y*vv+rdd*ww);const float planeDist=1.0-0.4;const int furthest=12;const int fadeFrom=furthest-3;const float fadeDist=planeDist*float(fadeFrom);const float maxDist=planeDist*float(furthest);float nz=floor(ro.z/planeDist);vec3 skyCol=skyColor(ro,rd,nrd);vec4 acol=vec4(0.0);const float cutOff=0.995;bool cutOut=false;for(int i=1;i<=furthest;++i){float pz=planeDist*nz+planeDist*float(i);float pd=(pz-ro.z)/rd.z;vec3 pp=ro+rd*pd;if(pd>0.0&&acol.wcutOff?1.0:acol.w;break;}}vec3 col=alphaBlend(skyCol,acol);return col;}vec3 effect(vec2 p,vec2 q){const mat2 rot=ROT(0.1);float z=TIME*0.3333;vec3 ro=offset(z);vec3 dro=doffset(z);vec3 ddro=ddoffset(z);dro.zy*=rot;vec3 ww=normalize(dro);vec3 uu=normalize(cross(normalize(vec3(0.0,1.0,0.0)+2.*ddro),ww));vec3 vv=cross(ww,uu);vec3 col=color(ww,uu,vv,ro,p);return col;}void main(){vec2 q=gl_FragCoord.xy/RESOLUTION.xy;vec2 p=-1.+2.*q;p.x*=RESOLUTION.x/RESOLUTION.y;vec3 col=vec3(0.0);col=effect(p,q);col+=2.0*smoothstep(4.0,0.0,TIME+length(p-vec2(0.0,1.0)));col=aces_approx(col);col=sRGB(col);gl_FragColor=vec4(col,1.0);}`;var Zv={label:"Monterey 山峦效果",description:"酷似 macOS Monterey 的流动山峦效果",value:"monterey-wannabe",fragmentShaderCode:CC,afterDrawArray(){this.shouldRedraw()}};var dt=y(G()),LU=[K({icon:()=>(0,dt.jsx)($L,{})},Ma),K({icon:()=>(0,dt.jsx)(KL,{})},Qv),K({icon:()=>(0,dt.jsx)(qL,{})},Zv)],CU=IC.forwardRef((a,r)=>{var i=a,{label:e,icon:t,description:o}=i,n=we(i,["label","icon","description"]);return(0,dt.jsx)("div",ke(K({ref:r},n),{children:(0,dt.jsxs)(la,{noWrap:!0,children:[(0,dt.jsx)(Al,{size:"xl",children:t()}),(0,dt.jsxs)("div",{children:[(0,dt.jsx)(oe,{size:"sm",children:e}),(0,dt.jsx)(oe,{size:"xs",opacity:.65,children:o})]})]})}))}),NC=()=>{let e=eo("showBackground",!0),[t,o]=Jt("backgroundRenderMethod",Ma.value);return(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)(ct,{order:2,children:"背景设置"}),(0,dt.jsx)(be,{settingKey:"showBackground",label:"显示背景",defaultValue:!0}),(0,dt.jsx)(_l,{label:"背景渲染方式",itemComponent:CU,data:LU,onChange:o,value:t}),(0,dt.jsx)(jn,{step:.05,min:.05,max:2,defaultValue:1,disabled:!e,formatLabel:n=>n.toFixed(1),settingKey:"backgroundRenderScale",label:"背景渲染分辨率比率"}),(0,dt.jsx)(jn,{step:1,min:0,max:60,defaultValue:0,disabled:!e,formatLabel:n=>n===0?"不跳帧":`跳过 ${n} 帧`,settingKey:"backgroundRenderSkipFrames",label:"背景渲染跳帧"}),(0,dt.jsx)(jn,{settingKey:"backgroundLightness",label:"背景专辑图采样色亮度",disabled:!e,min:0,max:2,step:.01,defaultValue:1,formatLabel:n=>n===1?"不调整":n<1?n<=0?"全黑":`调暗 ${Math.round(100-n*100)}%`:n>=2?"全白":`调亮 ${Math.round(n*100-100)}%`})]})};var ne=y(G()),br=e=>(0,ne.jsxs)(bh,{fluid:!0,style:{paddingLeft:"16px"},children:[e.children,(0,ne.jsx)(At,{h:"xl"})]}),IU=()=>{let e=TL(),t=d0();return(0,ne.jsxs)(Pe,{className:"am-lyrics-settings",keepMounted:!1,defaultValue:"about",orientation:"vertical",children:[(0,ne.jsxs)(Pe.List,{children:[e&&(0,ne.jsx)(Pe.Tab,{value:"warnings",children:(0,ne.jsx)(o0,{offset:-3,size:6,color:"yellow",children:"插件警告"})}),(0,ne.jsx)(Pe.Tab,{value:"lyric",children:"歌词设置"}),(0,ne.jsx)(Pe.Tab,{value:"lyric-style",children:"歌词样式设置"}),(0,ne.jsx)(Pe.Tab,{value:"song-info-style",children:"歌曲信息样式设置"}),(0,ne.jsx)(Pe.Tab,{value:"background",children:"背景设置"}),(0,ne.jsx)(Pe.Tab,{value:"other-style",children:"其它样式设置"}),(0,ne.jsx)(Pe.Tab,{value:"lyric-source",children:"EAPI 函数设置"}),(0,ne.jsx)(Pe.Tab,{value:"custom-css",children:"自定义 CSS 设置"}),(0,ne.jsx)(Pe.Tab,{value:"about",children:t!==""&&t!==Dl?(0,ne.jsx)(o0,{offset:-3,size:6,color:"yellow",children:"关于"}):(0,ne.jsx)(ne.Fragment,{children:"关于"})})]}),(0,ne.jsx)(Pe.Panel,{value:"warnings",children:(0,ne.jsx)(br,{children:(0,ne.jsx)(AL,{})})}),(0,ne.jsx)(Pe.Panel,{value:"lyric",children:(0,ne.jsx)(br,{children:(0,ne.jsx)(dC,{})})}),(0,ne.jsx)(Pe.Panel,{value:"lyric-style",children:(0,ne.jsx)(br,{children:(0,ne.jsx)(hC,{})})}),(0,ne.jsx)(Pe.Panel,{value:"song-info-style",children:(0,ne.jsx)(br,{children:(0,ne.jsx)(vC,{})})}),(0,ne.jsx)(Pe.Panel,{value:"background",children:(0,ne.jsx)(br,{children:(0,ne.jsx)(NC,{})})}),(0,ne.jsx)(Pe.Panel,{value:"other-style",children:(0,ne.jsx)(br,{children:(0,ne.jsx)(mC,{})})}),(0,ne.jsx)(Pe.Panel,{value:"lyric-source",children:(0,ne.jsx)(br,{children:(0,ne.jsx)(uC,{})})}),(0,ne.jsx)(Pe.Panel,{value:"custom-css",children:(0,ne.jsx)(br,{children:(0,ne.jsx)(bC,{})})}),(0,ne.jsx)(Pe.Panel,{value:"about",children:(0,ne.jsx)(br,{children:(0,ne.jsx)(OL,{})})})]})};plugin.onConfig(()=>{let e=document.createElement("div");return e.style.height="100%",(0,BC.createRoot)(e).render((0,ne.jsx)(s0,{children:(0,ne.jsx)(Jv,{children:(0,ne.jsx)(IU,{})})})),e});var Ck=y(Wu());var yr=y(I());var Vo=y(I());var NU="attribute vec4 a_pos;void main(){gl_Position=a_pos;}",jC=new Float32Array(128),BU=e=>Math.max(2,Math.ceil(Math.log2(Math.log2(e)))),HC=e=>{let t=e.length,o;for(;t!==0;)o=Math.floor(Math.random()*t),t--,[e[t],e[o]]=[e[o],e[t]];return e},pk=[Ma,Qv,Zv];var em=class{constructor(t){this.canvas=t;P(this,"disposed",!1);P(this,"gl");P(this,"frameId",0);P(this,"createTime",Date.now());P(this,"skipFrameRate",0);P(this,"_skipFrameRate",0);P(this,"currentRenderMethod");P(this,"onFrame",()=>{this.disposed||(this.frameId=0,this._skipFrameRate>0?(this._skipFrameRate--,this.shouldRedraw()):(this._skipFrameRate=this.skipFrameRate,this.onUpdateAndDraw()))});P(this,"vertexBuffer");P(this,"vshader");P(this,"fshader");P(this,"program");P(this,"albumColorMapSize",0);P(this,"albumColorMapTex");P(this,"albumImageSize",[0,0]);P(this,"albumImageTex");let o=t.getContext("webgl");if(o)this.gl=o,o.disable(o.DEPTH_TEST),o.enable(o.BLEND),o.blendFunc(o.SRC_ALPHA,o.ONE_MINUS_SRC_ALPHA),this.resize(),this.rebuildVertex(),this.setRenderMethod(Ma),this.setAlbumColorMap([[0,0,0]]);else throw new TypeError("你的网易云不支持 WebGL !有可能是需要开启 GPU 硬件加速或电脑硬件不支持!")}get time(){return Date.now()-this.createTime}setRenderMethod(t){this.rebuildShader(t.fragmentShaderCode),this.rebuildProgram(),this.currentRenderMethod=t}resize(t=this.canvas.width,o=this.canvas.height){let n=this.canvas;n.width=t,n.height=o,this.gl.viewport(0,0,n.width,n.height)}onUpdateAndDraw(){var o,n,r,a;this.updateUniforms(),(n=(o=this.currentRenderMethod)==null?void 0:o.beforeDrawArray)==null||n.call(this);let t=this.gl;t.drawArrays(t.TRIANGLES,0,6),(a=(r=this.currentRenderMethod)==null?void 0:r.afterDrawArray)==null||a.call(this)}shouldRedraw(){this.frameId||(this.frameId=requestAnimationFrame(this.onFrame))}dispose(){this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=0),this.disposed=!0}rebuildVertex(){let t=this.gl;this.vertexBuffer&&t.deleteBuffer(this.vertexBuffer);let o=t.createBuffer();if(!o)throw new TypeError("顶点缓冲区创建失败!");t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),t.STATIC_DRAW),this.vertexBuffer=o}rebuildShader(t,o=NU){let n=this.gl;this.vshader&&n.deleteShader(this.vshader),this.fshader&&n.deleteShader(this.fshader);let r=n.createShader(n.VERTEX_SHADER);if(!r)throw new TypeError("顶点着色器创建失败!");if(n.shaderSource(r,o),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS)){let i=n.getShaderInfoLog(r)||"未知编译错误";throw new TypeError(`顶点着色器编译失败: +vec4 alphaBlend(vec4 back,vec4 front){float w=front.w+back.w*(1.0-front.w);vec3 xyz=(front.xyz*front.w+back.xyz*back.w*(1.0-front.w))/w;return w>0.0?vec4(xyz,w):vec4(0.0);}vec3 alphaBlend(vec3 back,vec4 front){return mix(back,front.xyz,front.w);}float sRGB(float t){return mix(1.055*pow(t,1./2.4)-0.055,12.92*t,step(t,0.0031308));}vec3 sRGB(in vec3 c){return vec3(sRGB(c.x),sRGB(c.y),sRGB(c.z));}vec3 aces_approx(vec3 v){v=max(v,0.0);v*=0.6;float a=2.51;float b=0.03;float c=2.43;float d=0.59;float e=0.14;return clamp((v*(a*v+b))/(v*(c*v+d)+e),0.0,1.0);}float tanh_approx(float x){float x2=x*x;return clamp(x*(27.0+x2)/(27.0+9.0*x2),-1.0,1.0);}float hash(vec2 p){float a=dot(p,vec2(127.1,311.7));return fract(sin(a)*43758.5453123);}float vnoise(vec2 p){vec2 i=floor(p);vec2 f=fract(p);vec2 u=f*f*(3.0-2.0*f);float a=hash(i+vec2(0.0,0.0));float b=hash(i+vec2(1.0,0.0));float c=hash(i+vec2(0.0,1.0));float d=hash(i+vec2(1.0,1.0));float m0=mix(a,b,u.x);float m1=mix(c,d,u.x);float m2=mix(m0,m1,u.y);return m2;}float heightFactor(vec2 p){return 2.0*smoothstep(0.0,1.25,abs(p.x)-0.05)+1.0;}float hifbm(vec2 p){float hf=heightFactor(p);const float aa=0.5;const float pp=2.0-0.;float sum=0.0;float a=1.0;for(int i=0;i<5;++i){sum+=a*vnoise(p);a*=aa;p*=pp;}return hf*sum;}float lofbm(vec2 p){float hf=heightFactor(p);const float aa=0.5;const float pp=2.0-0.;float sum=0.0;float a=1.0;for(int i=0;i<2;++i){sum+=a*vnoise(p);a*=aa;p*=pp;}return hf*sum;}vec3 offset(float z){float a=z*0.5;vec2 p=vec2(0.33,0.1)*(vec2(cos(a),sin(a*sqrt(2.0)))+vec2(cos(a*sqrt(0.75)),sin(a*sqrt(0.5))));return vec3(p,z);}vec3 doffset(float z){float eps=0.1;return 0.5*(offset(z+eps)-offset(z-eps))/(2.0*eps);}vec3 ddoffset(float z){float eps=0.1;return 0.5*(doffset(z+eps)-doffset(z-eps))/(2.0*eps);}float hiheight(vec2 p){return hifbm(p)-1.8;}float loheight(vec2 p){return lofbm(p)-2.15;}vec4 plane(vec3 ro,vec3 rd,vec3 pp,vec3 npp,vec3 off,float n){vec2 p=(pp-off*2.0*vec3(1.0,1.0,0.0)).xy;const vec2 stp=vec2(0.5,0.33);float he=hiheight(vec2(p.x,pp.z)*stp);float lohe=loheight(vec2(p.x,pp.z)*stp);float d=p.y-he;float lod=p.y-lohe;float aa=distance(pp,npp)*sqrt(1.0/3.0);float df=tanh_approx(max(0.225*distance(ro,pp)-0.4,0.));float hf=mix(0.66,1.1,df);float gf=tanh_approx(exp(-2.0*lod));float yf=smoothstep(2.5,-1.0,pp.y);vec3 acol=hsv2rgb(vec3(hf,1.0,mix(0.2,1.0,df)));vec3 gcol=hsv2rgb(vec3(hf,1.0,1.0-gf));float t=smoothstep(aa,-aa,d);t*=mix(1.0,yf,sqrt(df));t=max(t,gf*yf*yf);vec3 col=vec3(0.0);col+=acol;col+=0.5*gcol;return vec4(col,t);}vec3 skyColor(vec3 ro,vec3 rd,vec3 nrd){const vec3 sky=HSV2RGB(vec3(0.66,0.2,1.0));return sky;}vec3 color(vec3 ww,vec3 uu,vec3 vv,vec3 ro,vec2 p){vec2 np=p+2.0/RESOLUTION.y;const float rdd=2.0;vec3 rd=normalize(-p.x*uu+p.y*vv+rdd*ww);vec3 nrd=normalize(-np.x*uu+np.y*vv+rdd*ww);const float planeDist=1.0-0.4;const int furthest=12;const int fadeFrom=furthest-3;const float fadeDist=planeDist*float(fadeFrom);const float maxDist=planeDist*float(furthest);float nz=floor(ro.z/planeDist);vec3 skyCol=skyColor(ro,rd,nrd);vec4 acol=vec4(0.0);const float cutOff=0.995;bool cutOut=false;for(int i=1;i<=furthest;++i){float pz=planeDist*nz+planeDist*float(i);float pd=(pz-ro.z)/rd.z;vec3 pp=ro+rd*pd;if(pd>0.0&&acol.wcutOff?1.0:acol.w;break;}}vec3 col=alphaBlend(skyCol,acol);return col;}vec3 effect(vec2 p,vec2 q){const mat2 rot=ROT(0.1);float z=TIME*0.3333;vec3 ro=offset(z);vec3 dro=doffset(z);vec3 ddro=ddoffset(z);dro.zy*=rot;vec3 ww=normalize(dro);vec3 uu=normalize(cross(normalize(vec3(0.0,1.0,0.0)+2.*ddro),ww));vec3 vv=cross(ww,uu);vec3 col=color(ww,uu,vv,ro,p);return col;}void main(){vec2 q=gl_FragCoord.xy/RESOLUTION.xy;vec2 p=-1.+2.*q;p.x*=RESOLUTION.x/RESOLUTION.y;vec3 col=vec3(0.0);col=effect(p,q);col+=2.0*smoothstep(4.0,0.0,TIME+length(p-vec2(0.0,1.0)));col=aces_approx(col);col=sRGB(col);gl_FragColor=vec4(col,1.0);}`;var im={label:"Monterey 山峦效果",description:"酷似 macOS Monterey 的流动山峦效果",value:"monterey-wannabe",fragmentShaderCode:aI,afterDrawArray(){this.shouldRedraw()}};var ut=y(G()),wq=[Y({icon:()=>(0,ut.jsx)(xC,{})},Ca),Y({icon:()=>(0,ut.jsx)(LC,{})},am),Y({icon:()=>(0,ut.jsx)(bC,{})},im)],Eq=iI.forwardRef((a,r)=>{var i=a,{label:e,icon:t,description:o}=i,n=xe(i,["label","icon","description"]);return(0,ut.jsx)("div",ge(Y({ref:r},n),{children:(0,ut.jsxs)(ha,{noWrap:!0,children:[(0,ut.jsx)(Ul,{size:"xl",children:t()}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(re,{size:"sm",children:e}),(0,ut.jsx)(re,{size:"xs",opacity:.65,children:o})]})]})}))}),lI=()=>{let e=no("showBackground",!0),[t,o]=oo("backgroundRenderMethod",Ca.value);return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(vt,{order:2,children:"背景设置"}),(0,ut.jsx)(Le,{settingKey:"showBackground",label:"显示背景",defaultValue:!0}),(0,ut.jsx)(Al,{label:"背景渲染方式",itemComponent:Eq,data:wq,onChange:o,value:t}),(0,ut.jsx)(_n,{step:.05,min:.05,max:2,defaultValue:1,disabled:!e,formatLabel:n=>n.toFixed(1),settingKey:"backgroundRenderScale",label:"背景渲染分辨率比率"}),(0,ut.jsx)(_n,{step:1,min:0,max:60,defaultValue:0,disabled:!e,formatLabel:n=>n===0?"不跳帧":`跳过 ${n} 帧`,settingKey:"backgroundRenderSkipFrames",label:"背景渲染跳帧"}),(0,ut.jsx)(_n,{settingKey:"backgroundLightness",label:"背景专辑图采样色亮度",disabled:!e,min:0,max:2,step:.01,defaultValue:1,formatLabel:n=>n===1?"不调整":n<1?n<=0?"全黑":`调暗 ${Math.round(100-n*100)}%`:n>=2?"全白":`调亮 ${Math.round(n*100-100)}%`})]})};var ae=y(G()),Ir=e=>(0,ae.jsxs)(Ih,{fluid:!0,style:{paddingLeft:"16px"},children:[e.children,(0,ae.jsx)($t,{h:"xl"})]}),gq=()=>{let e=kC(),t=qv();return(0,ae.jsxs)(Ae,{className:"am-lyrics-settings",keepMounted:!1,defaultValue:"about",orientation:"vertical",children:[(0,ae.jsxs)(Ae.List,{children:[e&&(0,ae.jsx)(Ae.Tab,{value:"warnings",children:(0,ae.jsx)(l0,{offset:-3,size:6,color:"yellow",children:"插件警告"})}),(0,ae.jsx)(Ae.Tab,{value:"lyric",children:"歌词设置"}),(0,ae.jsx)(Ae.Tab,{value:"lyric-style",children:"歌词样式设置"}),(0,ae.jsx)(Ae.Tab,{value:"song-info-style",children:"歌曲信息样式设置"}),(0,ae.jsx)(Ae.Tab,{value:"background",children:"背景设置"}),(0,ae.jsx)(Ae.Tab,{value:"other-style",children:"其它样式设置"}),(0,ae.jsx)(Ae.Tab,{value:"lyric-source",children:"EAPI 函数设置"}),(0,ae.jsx)(Ae.Tab,{value:"custom-css",children:"自定义 CSS 设置"}),(0,ae.jsx)(Ae.Tab,{value:"about",children:t?(0,ae.jsx)(l0,{offset:-3,size:6,color:"yellow",children:"关于"}):(0,ae.jsx)(ae.Fragment,{children:"关于"})})]}),(0,ae.jsx)(Ae.Panel,{value:"warnings",children:(0,ae.jsx)(Ir,{children:(0,ae.jsx)(wC,{})})}),(0,ae.jsx)(Ae.Panel,{value:"lyric",children:(0,ae.jsx)(Ir,{children:(0,ae.jsx)(FC,{})})}),(0,ae.jsx)(Ae.Panel,{value:"lyric-style",children:(0,ae.jsx)(Ir,{children:(0,ae.jsx)($C,{})})}),(0,ae.jsx)(Ae.Panel,{value:"song-info-style",children:(0,ae.jsx)(Ir,{children:(0,ae.jsx)(VC,{})})}),(0,ae.jsx)(Ae.Panel,{value:"background",children:(0,ae.jsx)(Ir,{children:(0,ae.jsx)(lI,{})})}),(0,ae.jsx)(Ae.Panel,{value:"other-style",children:(0,ae.jsx)(Ir,{children:(0,ae.jsx)(UC,{})})}),(0,ae.jsx)(Ae.Panel,{value:"lyric-source",children:(0,ae.jsx)(Ir,{children:(0,ae.jsx)(qC,{})})}),(0,ae.jsx)(Ae.Panel,{value:"custom-css",children:(0,ae.jsx)(Ir,{children:(0,ae.jsx)(oI,{})})}),(0,ae.jsx)(Ae.Panel,{value:"about",children:(0,ae.jsx)(Ir,{children:(0,ae.jsx)(pC,{})})})]})};plugin.onConfig(()=>{let e=document.createElement("div");return e.style.height="100%",(0,cI.createRoot)(e).render((0,ae.jsx)(u0,{children:(0,ae.jsx)(lm,{children:(0,ae.jsx)(gq,{})})})),e});var Tk=y(Du());var Nr=y(I());var Ko=y(I());var xq="attribute vec4 a_pos;void main(){gl_Position=a_pos;}",sI=new Float32Array(128),Mq=e=>Math.max(2,Math.ceil(Math.log2(Math.log2(e)))),dI=e=>{let t=e.length,o;for(;t!==0;)o=Math.floor(Math.random()*t),t--,[e[t],e[o]]=[e[o],e[t]];return e},Ck=[Ca,am,im];var cm=class{constructor(t){this.canvas=t;O(this,"disposed",!1);O(this,"gl");O(this,"frameId",0);O(this,"createTime",Date.now());O(this,"skipFrameRate",0);O(this,"_skipFrameRate",0);O(this,"currentRenderMethod");O(this,"onFrame",()=>{this.disposed||(this.frameId=0,this._skipFrameRate>0?(this._skipFrameRate--,this.shouldRedraw()):(this._skipFrameRate=this.skipFrameRate,this.onUpdateAndDraw()))});O(this,"vertexBuffer");O(this,"vshader");O(this,"fshader");O(this,"program");O(this,"albumColorMapSize",0);O(this,"albumColorMapTex");O(this,"albumImageSize",[0,0]);O(this,"albumImageTex");let o=t.getContext("webgl");if(o)this.gl=o,o.disable(o.DEPTH_TEST),o.enable(o.BLEND),o.blendFunc(o.SRC_ALPHA,o.ONE_MINUS_SRC_ALPHA),this.resize(),this.rebuildVertex(),this.setRenderMethod(Ca),this.setAlbumColorMap([[0,0,0]]);else throw new TypeError("你的网易云不支持 WebGL !有可能是需要开启 GPU 硬件加速或电脑硬件不支持!")}get time(){return Date.now()-this.createTime}setRenderMethod(t){this.rebuildShader(t.fragmentShaderCode),this.rebuildProgram(),this.currentRenderMethod=t}resize(t=this.canvas.width,o=this.canvas.height){let n=this.canvas;n.width=t,n.height=o,this.gl.viewport(0,0,n.width,n.height)}onUpdateAndDraw(){var o,n,r,a;this.updateUniforms(),(n=(o=this.currentRenderMethod)==null?void 0:o.beforeDrawArray)==null||n.call(this);let t=this.gl;t.drawArrays(t.TRIANGLES,0,6),(a=(r=this.currentRenderMethod)==null?void 0:r.afterDrawArray)==null||a.call(this)}shouldRedraw(){this.frameId||(this.frameId=requestAnimationFrame(this.onFrame))}dispose(){this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=0),this.disposed=!0}rebuildVertex(){let t=this.gl;this.vertexBuffer&&t.deleteBuffer(this.vertexBuffer);let o=t.createBuffer();if(!o)throw new TypeError("顶点缓冲区创建失败!");t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),t.STATIC_DRAW),this.vertexBuffer=o}rebuildShader(t,o=xq){let n=this.gl;this.vshader&&n.deleteShader(this.vshader),this.fshader&&n.deleteShader(this.fshader);let r=n.createShader(n.VERTEX_SHADER);if(!r)throw new TypeError("顶点着色器创建失败!");if(n.shaderSource(r,o),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS)){let i=n.getShaderInfoLog(r)||"未知编译错误";throw new TypeError(`顶点着色器编译失败: `+i)}let a=n.createShader(n.FRAGMENT_SHADER);if(!a)throw new TypeError("片段着色器创建失败!");if(n.shaderSource(a,t),n.compileShader(a),!n.getShaderParameter(a,n.COMPILE_STATUS)){let i=n.getShaderInfoLog(a)||"未知编译错误";throw new TypeError(`片段着色器编译失败: -`+i)}this.vshader=r,this.fshader=a}rebuildProgram(){let t=this.gl;this.program&&t.deleteProgram(this.program);let o=t.createProgram();if(!o)throw new TypeError("渲染程序句柄创建失败!");if(t.attachShader(o,this.vshader),t.attachShader(o,this.fshader),t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)){let r=t.getProgramInfoLog(o)||"未知链接错误";throw new TypeError(`渲染管线程序链接错误:${r}`)}t.useProgram(o);let n=t.getAttribLocation(o,"a_pos");if(n===-1)throw new TypeError("无法找到渲染程序顶点着色器中的 a_pos 属性!");t.enableVertexAttribArray(n),t.vertexAttribPointer(n,2,t.FLOAT,!1,0,0),this.program=o}setAlbumColorMap(t){let o=[...t];HC(o);let n=Math.pow(2,BU(o.length)),r=[],a=0;for(let i=0;i=o.length&&(HC(o),a=0)}We("已创建颜色数量为",o.length,"色图尺寸为",n,"像素数量为",r.length/4,"的材质",r),this.albumColorMapSize=n,this.albumColorMapTex=this.rebuildTextureFromPixels(this.gl.TEXTURE1,this.albumColorMapSize,new Uint8Array(r),this.albumColorMapTex),this.updateAllUniforms()}setAlbumImage(t){this.albumImageSize=[t.width,t.height];let o=Math.min(this.gl.getParameter(this.gl.MAX_TEXTURE_SIZE),Math.pow(2,Math.round(Math.log2(Math.max(t.width,t.height))))),n=oL(t,o,o);We("设置了大小为",t.width,"x",t.height,"->",n.width,"x",n.height,"的专辑图片"),this.albumImageTex=this.rebuildTextureFromPixels(this.gl.TEXTURE2,o,n.data,this.albumImageTex),this.updateAllUniforms()}rebuildTextureFromImage(t,o,n){let r=this.gl;n&&r.deleteTexture(n);let a=r.createTexture();if(!a)throw new TypeError("材质句柄创建失败!");return r.activeTexture(t),r.bindTexture(r.TEXTURE_2D,a),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,o),a}rebuildTextureFromPixels(t,o,n,r){if(!Number.isInteger(Math.log2(o)))throw new TypeError("材质大小不是二的次幂!");let a=this.gl;r&&a.deleteTexture(r);let i=a.createTexture();if(!i)throw new TypeError("材质句柄创建失败!");return a.activeTexture(t),a.bindTexture(a.TEXTURE_2D,i),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,o,o,0,a.RGBA,a.UNSIGNED_BYTE,n),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),i}updateAllUniforms(){this.updateUniforms()}updateUniforms(){let t=this.gl;{let o=t.getUniformLocation(this.program,"time");o&&t.uniform1f(o,this.time/1e3)}{let o=t.getUniformLocation(this.program,"resolution");o&&t.uniform2f(o,this.canvas.width,this.canvas.height)}{let o=t.getUniformLocation(this.program,"albumColorMapRes");o&&t.uniform2f(o,this.albumColorMapSize,this.albumColorMapSize)}{let o=t.getUniformLocation(this.program,"albumImageRes");o&&t.uniform2f(o,this.albumImageSize[0],this.albumImageSize[1])}{let o=t.getUniformLocation(this.program,"albumColorMap");o&&t.uniform1i(o,1)}{let o=t.getUniformLocation(this.program,"albumImage");o&&t.uniform1i(o,2)}{let o=t.getUniformLocation(this.program,"audioWaveBuffer");o&&t.uniform1fv(o,jC)}{let o=t.getUniformLocation(this.program,"audioFFTBuffer");o&&t.uniform1fv(o,jC)}}};var om=y(AC()),DC=e=>{let t=om.rgb.hsv.raw(e);return t[2]=Math.min(80,Math.max(20,t[2])),om.hsv.rgb(t)};var tr=y(G()),FC=()=>{let e=Vo.useRef(null),t=Vo.useRef(null),o=he(Bv),n=Yn("backgroundLightness","1"),r=Yn("backgroundRenderScale","1"),a=Xl(),i=Yn("backgroundRenderMethod",Ma.value),l=Yn("backgroundRenderSkipFrames","0"),c=he(Ft),[s,d,h]=h0(c),[v,u]=Vo.useState(""),w=Vo.useRef(new ResizeObserver(k=>{let g=k[0],p=Math.max(.01,Number(Dt("backgroundRenderScale","1"))||1);if(g){let m=g.target;if(m){let f=t.current;f&&f.canvas===m&&(f.resize(g.contentRect.width*p,g.contentRect.height*p),f.shouldRedraw())}}}));return Vo.useEffect(()=>{let k=Number(l),g=t.current;g&&(g.skipFrameRate=k,g.shouldRedraw())},[l]),Vo.useEffect(()=>{let k=t.current,g=e.current;if(k&&g&&a){let p=Math.max(.01,Number(r)||1);k.resize(g.clientWidth*p,g.clientHeight*p),k.shouldRedraw()}},[r,a]),Vo.useEffect(()=>{let k=t.current;if(k){let g=pk.find(p=>p.value===i);g&&(We("已切换背景渲染方式为",i),k.setRenderMethod(g),k.shouldRedraw())}},[i]),Vo.useEffect(()=>{u("");try{let k=e.current;if(k){w.current.observe(k);let g=new em(k),p=pk.find(m=>m.value===i);return p&&(We("已切换背景渲染方式为",i),g.setRenderMethod(p)),t.current=g,()=>{w.current.unobserve(k),g.dispose()}}}catch(k){Ne("切换渲染方式发生错误",k),u(`切换渲染方式发生错误:${k}`)}},[e.current]),Vo.useEffect(()=>{try{let k=o.slice(0,2).map(DC);k.reverse();let g=Number(n);Number.isNaN(g)&&(g=1),g=Math.max(Math.min(2,g),0),k.forEach(f=>{if(g>1){let E=2-g;f[0]=Math.round(255-(255-f[0])*E),f[1]=Math.round(255-(255-f[1])*E),f[2]=Math.round(255-(255-f[2])*E)}else g<1&&(f[0]=Math.round(f[0]*g),f[1]=Math.round(f[1]*g),f[2]=Math.round(f[2]*g))});let p=[...k];for(let f=0;f<30;f++)k.push(...p);let m=t.current;m?(m.setAlbumColorMap(k),m.shouldRedraw()):Ne("错误:渲染器对象不存在")}catch(k){Ne("更新专辑图主要颜色表到渲染管线时发生错误",k),u(`更新专辑图主要颜色表到渲染管线时发生错误:${k}`)}},[o,n]),Vo.useEffect(()=>{u("");let k=!1;return(async()=>{try{if(s&&d){await d.decode();let g=t.current;g&&!k&&(g.setAlbumImage(d),g.shouldRedraw())}}catch(g){Ne("更新专辑图片到渲染管线时发生错误",g),u(`更新专辑图片到渲染管线时发生错误:${g}`)}})(),()=>{k=!0}},[s,d,h]),(0,tr.jsxs)(tr.Fragment,{children:[(0,tr.jsx)("canvas",{ref:e,className:"am-lyric-background",style:{position:"fixed",left:"0",top:"0",width:"100%",height:"100%",color:"yellow"}}),v.length>0&&(0,tr.jsxs)("div",{className:"am-lyric-background am-lyric-bg-error",style:{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"},children:[(0,tr.jsx)(oe,{children:"背景渲染发生错误,请检查插件设置中的背景设置"}),(0,tr.jsx)(oe,{children:"错误信息:"}),(0,tr.jsx)("pre",{children:v})]})]})};var nm=y(G()),$C=()=>{let e=tt(Lv);return(0,nm.jsx)("div",{className:"am-lyric-options",children:(0,nm.jsx)(on,{radius:"md",onClick:()=>e(!0),variant:"transparent",children:(0,nm.jsx)(Av,{color:"#FFFFFF",size:18})})})};var b0=y(G()),VC=()=>(0,b0.jsxs)("div",{className:"am-lyric-view-no-lyric",children:[(0,b0.jsx)(oe,{fz:"md",children:"没有可用歌词,但是你可以通过右上角的菜单手动指定需要使用的歌词。"}),(0,b0.jsx)(oe,{fz:"md",children:"如果你确信是有歌词的,那么有可能是请求函数有误,请在插件设置内重新搜索函数或更新网易云解决。"})]});var KC=y(I());var Zl=y(I()),rm=y(G()),y0=e=>{let t=Zl.useRef(null),o=ap(),[n,r]=Zl.useState([0,0]);return Zl.useLayoutEffect(()=>{let a=t.current;if(a){let i=a.getBoundingClientRect(),{x:l,y:c}=o;l>i.width&&(l+i.width>=window.innerWidth||l>window.innerWidth/2)&&(l-=i.width),(c>i.height&&c+i.height>=window.innerHeight||c>window.innerHeight/2)&&(c-=i.height),r([l,c])}else r([0,0])},[e.opened,t.current]),(0,rm.jsx)("div",{style:{display:e.opened?"block":"none",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:"999",backgroundColor:"transparent"},className:"amll-menu-wrapper",onClick:a=>{a.target===a.currentTarget&&e.onClose()},children:(0,rm.jsx)("div",{style:{position:"fixed",left:`${n[0]}px`,top:`${n[1]}px`},className:e.hasCheckBoxMenuItems?"appkit-menu with-checkbox":"appkit-menu",ref:t,onClick:a=>a.stopPropagation(),children:(0,rm.jsx)("div",{children:e.children})})})};var Uo=y(I());var Jl=y(G()),UC=Uo.createContext(0),Fe=e=>{let t=Uo.useContext(UC)||999,o=Uo.useRef(null),n=Uo.useRef(null),[r,a]=Uo.useState(!1),[i,l]=Uo.useState(!1),[c,s]=Uo.useState([0,0]);return Uo.useLayoutEffect(()=>{let d=o.current,h=n.current;if(d&&h){let v=d.getBoundingClientRect(),u=h.getBoundingClientRect(),w=window.innerWidth,k=window.innerHeight,g=v.right-6,p=v.top-7;v.right+u.width>=w&&(g=v.left-u.width+6),v.bottom+u.height>=k&&(v.bottom-u.height>0?p=v.bottom-u.height+7:p=window.innerHeight*.1),s([g,p])}},[e.children,r]),(0,Jl.jsxs)("button",{ref:o,className:ql("appkit-menu-item",{checked:!!e.checked,"label-only":!!e.labelOnly,"has-submenu":!!e.children}),onClick:d=>{let h=e.onClick;h&&h(),d.stopPropagation()},onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[e.children&&(0,Jl.jsx)(UC.Provider,{value:t+1,children:(0,Jl.jsx)("div",{ref:n,className:"appkit-menu is-submenu",style:{left:c[0],top:c[1],zIndex:t+1,visibility:r||i?void 0:"hidden"},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:(0,Jl.jsx)("div",{children:e.children})})}),e.label]})};var qC=y(G()),ec=()=>(0,qC.jsx)("div",{className:"appkit-menu-item-devider"});var am=y(I()),sn=y(G()),GC=()=>{var o,n;let[e,t]=am.useState(((n=(o=document.querySelector(".m-fm .btn_pc_like"))==null?void 0:o.dataset)==null?void 0:n.action)==="like");return am.useEffect(()=>{let r=document.querySelector(".m-fm .btn_pc_like");if(r){let a=new MutationObserver(()=>{var i;t(((i=r==null?void 0:r.dataset)==null?void 0:i.action)==="like")});return a.observe(r,{attributes:!0,attributeFilter:["data-action"]}),()=>{a.disconnect()}}},[]),(0,sn.jsxs)("div",{className:"am-fm-player-ctl",children:[(0,sn.jsx)(on,{size:"xl",loading:e===null,onClick:()=>{var r;t(null),(r=document.querySelector(".m-fm .btn_pc_like"))==null||r.click()},children:e?(0,sn.jsx)(UL,{size:34}):(0,sn.jsx)(VL,{size:34})}),(0,sn.jsx)(on,{size:"xl",onClick:()=>{var r;(r=document.querySelector(".m-fm [data-action=hate]"))==null||r.click()},children:(0,sn.jsx)(YL,{size:34})}),(0,sn.jsx)(on,{size:"xl",onClick:()=>{var r;(r=document.querySelector(".m-fm [data-action=next]"))==null||r.click()},children:(0,sn.jsx)(GL,{size:34})}),(0,sn.jsx)(on,{size:"xl",onClick:()=>{var r;(r=document.querySelector(".m-fm [data-action=more]"))==null||r.click()},children:(0,sn.jsx)(Av,{size:34})})]})};var pe=y(G()),wk=e=>{let t=he(Ft),o=he(ak),n=he(lk),r=he(ik),a=he(Nv);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Fe,{label:`复制音乐 ID:${t}`,onClick:()=>Mr(String(t))}),(0,pe.jsx)(Fe,{label:`复制音乐名称:${r}`}),n.length===1&&(0,pe.jsx)(Fe,{label:`查看歌手:${n[0].name}`,onClick:()=>{location.hash=`#/m/artist/?id=${n[0].id}`,e.onCloseMenu()}}),n.length>1&&(0,pe.jsx)(Fe,{label:"查看歌手...",children:n.map(i=>(0,pe.jsx)(Fe,{label:i.name,onClick:()=>{location.hash=`#/m/artist/?id=${i.id}`,e.onCloseMenu()}},`song-artist-${i.id}`))}),o&&(0,pe.jsx)(Fe,{label:`查看专辑:${o.name}`,onClick:()=>{location.hash=`#/m/album/?id=${o==null?void 0:o.id}`,e.onCloseMenu()}}),(0,pe.jsx)(Fe,{label:"复制专辑图片链接",labelOnly:a===null,onClick:()=>{let i=a;i&&(i.startsWith("orpheus://cache/?")&&(i=i.slice(17)),Mr(i),e.onCloseMenu())}}),(0,pe.jsx)(Fe,{label:"在浏览器打开专辑图片",labelOnly:a===null,onClick:()=>{let i=a;i&&(i.startsWith("orpheus://cache/?")&&(i=i.slice(17)),betterncm.ncm.openUrl(i),e.onCloseMenu())}})]})},YC=e=>{let t=he(Ft),o=he(ak),n=he(ik),r=he(HL),a=he(lk),i=_L(t,64,64),[l,c]=KC.useState(!1),[s]=kt("hideAlbumImage",!1),[d]=kt("hideMusicName",!1),[h]=kt("hideMusicAlias",!1),[v]=kt("hideMusicArtists",!1),[u]=kt("hideMusicAlbum",!1);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(y0,{onClose:()=>c(!1),opened:l,children:(0,pe.jsx)(wk,{onCloseMenu:()=>c(!1)})}),!(s&&d&&h&&v&&u)&&(0,pe.jsxs)("div",{className:"am-player-song-info",onContextMenu:w=>{c(!0),w.preventDefault()},children:[(0,pe.jsx)("div",{className:"am-music-info-spacer"}),!s&&(0,pe.jsx)("div",{className:"am-album-image",children:(0,pe.jsxs)("div",{children:[(0,pe.jsx)(va,{loader:(0,pe.jsx)(tn,{size:50,style:{width:"50px",height:"50px"}}),sx:{borderRadius:"3%"},visible:i.length===0}),(0,pe.jsx)("img",{alt:"专辑图片",src:i,style:{opacity:i.length>0?1:0}})]})}),(0,pe.jsxs)("div",{className:"am-music-info",children:[!d&&(0,pe.jsx)("div",{className:"am-music-name",children:n}),!h&&r.length>0&&(0,pe.jsx)("div",{className:"am-music-alias",children:r.map((w,k)=>(0,pe.jsx)("div",{children:w},`${w}-${k}`))}),!v&&(0,pe.jsxs)("div",{className:"am-music-artists",children:[(0,pe.jsx)("div",{className:"am-artists-label",children:"歌手:"}),(0,pe.jsx)("div",{className:"am-artists",children:a.map((w,k)=>(0,pe.jsx)("a",{href:`#/m/artist/?id=${w.id}`,children:w.name},`${w.id}-${w.name}-${k}`))})]}),!u&&o&&(0,pe.jsxs)("div",{className:"am-music-album",children:[(0,pe.jsx)("div",{className:"am-album-label",children:"专辑:"}),(0,pe.jsx)("div",{className:"am-album",children:(0,pe.jsx)("a",{href:`#/m/album/?id=${o==null?void 0:o.id}`,children:o.name})})]}),e.isFM&&(0,pe.jsx)(GC,{})]})]})]})};var za=y(G()),XC=()=>{let e=he(Ft),t=he(ka),[o,n]=Zt(Wv),[r,a]=Zt(Pv),i=Number(Yn("globalTimeStampOffset","0"))||0;return(0,za.jsxs)(ma,{title:"设置当前歌曲歌词时序位移",opened:r,closeOnClickOutside:!0,onClose:()=>a(!1),zIndex:151,centered:!0,children:[(0,za.jsx)(oe,{children:"注:本设置用于调节单独歌曲的位移,该位移将会和全局位移叠加。"}),(0,za.jsx)(oe,{children:"  如果需要调节全局时序位移,请在插件设置内进行调整。"}),(0,za.jsx)(Pl,{sx:{margin:"8px 0"},min:-10,step:.1,max:10,defaultValue:o,label:l=>{if(l===0)return"不调整";if(i===0)return l<0?`推迟 ${(-l).toFixed(1)} 秒`:`提前 ${l.toFixed(1)} 秒`;{let c=i+l,s="在全局位移";return i<0?s+=`推迟 ${(-i).toFixed(1)} 秒`:s+=`提前 ${i.toFixed(1)} 秒`,s+="的基础上",o<0?s+=`推迟 ${(-l).toFixed(1)} 秒`:s+=`提前 ${l.toFixed(1)} 秒`,Math.round(c*10)===0?s+="(即不调整)":c<0?s+=`(共计推迟 ${(-c).toFixed(1)} 秒)`:s+=`(共计提前 ${c.toFixed(1)} 秒)`,s}},value:o,onChange:l=>n(l)}),(0,za.jsx)(At,{h:"xl"}),(0,za.jsx)(bt,{onClick:async()=>{a(!1);try{let l=`${plugin.pluginPath}/lyrics`,c=`${l}/${e}.json`;await betterncm.fs.exists(l)||betterncm.fs.mkdir(l),await betterncm.fs.exists(c)&&await betterncm.fs.remove(c),await betterncm.fs.writeFile(c,JSON.stringify(t))}catch(l){Ne("警告:歌曲歌词时序设置保存失败",l)}},children:"保存"})]})};var tc=y(I());var qo=y(G()),QC=()=>{let e=he(Ft),t=Tv(),[o,n]=Zt(_v),[r,a]=tc.useState(!1),[i,l]=tc.useState(null),[c,s]=tc.useState(null),[d,h]=tc.useState(null),[v,u]=tc.useState(null);return(0,qo.jsxs)(ma,{title:"导入歌词文件",opened:o,closeOnClickOutside:!r,onClose:()=>n(!1),centered:!0,zIndex:151,children:[(0,qo.jsx)(va,{visible:r,radius:"sm",zIndex:153,size:50,loaderProps:{style:{width:"50px",height:"50px"}}}),(0,qo.jsx)(Wl,{label:"原文歌词文件",value:i,onChange:l,accept:".lrc"}),(0,qo.jsx)(At,{h:"md"}),(0,qo.jsx)(Wl,{label:"翻译歌词文件",value:c,onChange:s,accept:".lrc"}),(0,qo.jsx)(At,{h:"md"}),(0,qo.jsx)(Wl,{label:"音译歌词文件",value:d,onChange:h,accept:".lrc"}),(0,qo.jsx)(At,{h:"md"}),(0,qo.jsx)(Wl,{label:"逐词歌词文件",value:v,onChange:u,accept:".yrc,.lrc"}),(0,qo.jsx)(At,{h:"xl"}),(0,qo.jsx)(bt,{disabled:!i,onClick:async()=>{if(i){a(!0);try{let w=`${plugin.pluginPath}/lyrics`,k=`${w}/${e}.json`;await betterncm.fs.exists(w)||betterncm.fs.mkdir(w),await betterncm.fs.exists(k)&&await betterncm.fs.remove(k);let g=await i.text(),p=await(c==null?void 0:c.text())||"",m=await(d==null?void 0:d.text())||"",f=await(v==null?void 0:v.text())||"";await betterncm.fs.writeFile(k,JSON.stringify({sgc:!1,sfy:!1,qfy:!1,lyricUser:{id:0,status:0,demand:0,userid:0,nickname:"手动添加的歌词",uptime:Date.now()},lrc:{version:0,lyric:g},klyric:{version:0,lyric:""},tlyric:{version:0,lyric:p},romalrc:{version:0,lyric:m},yrc:{version:0,lyric:f},code:200})),await t(),n(!1)}catch(w){Ne("警告:歌词转换失败",w)}a(!1)}},children:"使用该歌词"})]})};var or=y(I());var uo=y(G()),AU=e=>{let[t,o]=or.useState(),n=or.useMemo(()=>t===void 0?void 0:(t==null?void 0:t.songs[0])||null,[t]);return or.useEffect(()=>{o(void 0);let r=!1;return(async()=>{if(e.id){let a=await wL(e.id);r||o(a)}})(),()=>{r=!0}},[e.id]),(0,uo.jsx)(Zp,{children:(0,uo.jsxs)(jh,{justify:"flex-start",align:n?"flex-start":"center",direction:"row",wrap:"nowrap",gap:"md",children:[(0,uo.jsx)(Wh,{src:n?n.al.picUrl:`orpheus://cache/?${gv("16601526067802346")}`,radius:"md",height:64,width:64}),(0,uo.jsxs)(D,{children:[(0,uo.jsx)(oe,{size:"md",children:e.id?n===void 0?"正在加载":n===null?"无此歌曲":n.name:"未知音乐"}),(0,uo.jsx)(oe,{lineClamp:1,children:e.id?n?n.ar.map(r=>r.name).join(" / "):"":"未知歌手"}),(0,uo.jsx)(oe,{lineClamp:1,children:e.id?n?n.al.name:"":"未知专辑"})]})]})})},ZC=()=>{let[e,t]=Zt(Sv),o=he(Ft),[n,r]=or.useState(!1),[a,i]=or.useState(0);or.useLayoutEffect(()=>{e||i(+o)},[o,e]);let l=Tv();return(0,uo.jsxs)(ma,{title:"输入音乐 ID 以加载对应的歌词",opened:e,onClose:()=>t(!1),closeOnClickOutside:!n,centered:!0,zIndex:151,children:[(0,uo.jsx)(va,{visible:n,radius:"sm",zIndex:153,size:50,loaderProps:{style:{width:"50px",height:"50px"}}}),(0,uo.jsx)(AU,{id:a}),(0,uo.jsx)(Fh,{label:"音乐 ID",hideControls:!0,"data-autofocus":!0,value:a,onChange:i}),(0,uo.jsx)(At,{h:"xl"}),(0,uo.jsx)(bt,{onClick:async()=>{if(a){r(!0);try{let c=await Xf(a),s=`${plugin.pluginPath}/lyrics`,d=`${s}/${o}.json`;await betterncm.fs.exists(s)||betterncm.fs.mkdir(s),await betterncm.fs.exists(d)&&await betterncm.fs.remove(d),await betterncm.fs.writeFile(d,JSON.stringify(c)),await l(),t(!1)}catch(c){Ne("警告:歌词加载失败",c)}r(!1)}},children:"使用该音乐"})]})};var ba=y(G()),JC=()=>(0,ba.jsxs)(ba.Fragment,{children:[(0,ba.jsx)(ZC,{}),(0,ba.jsx)(QC,{}),(0,ba.jsx)(XC,{})]});var tI=y(eI()),xk=[{time:0,duration:594e4,originalLyric:"纯音乐,请欣赏"}],oI={sgc:!1,sfy:!1,qfy:!1,needDesc:!0,lrc:{version:1,lyric:`[99:00.00]纯音乐,请欣赏 -`},code:200,briefDesc:null};function Mk(e,t,o,n){var r;if(n.trim().length===0){let a=L0(e).map(l=>({time:l.time,originalLyric:l.lyric,duration:0}));L0(t).forEach(l=>{let c=a.find(s=>s.time===l.time);c&&(c.translatedLyric=l.lyric)}),L0(o).forEach(l=>{let c=a.find(s=>s.time===l.time);c&&(c.romanLyric=l.lyric)}),a.sort((l,c)=>l.time-c.time);let i=Ek(a);for(let l=0;l{let l=a.find(c=>c.time===i.time);l||a.forEach(c=>{l?Math.abs(l.time-i.time)>Math.abs(c.time-i.time)&&(l=c):l=c}),l&&(l.translatedLyric=l.translatedLyric||"",l.translatedLyric.length>0&&(l.translatedLyric+=" "),l.translatedLyric+=i.lyric)}),L0(o).forEach(i=>{let l=null;a.forEach(c=>{l?Math.abs(l.time-i.time)>Math.abs(c.time-i.time)&&(l=c):l=c}),l&&(l.romanLyric=l.romanLyric||"",l.romanLyric.length>0&&(l.romanLyric+=" "),l.romanLyric+=i.lyric)}),Dt("mergeOriginalOnlyLine","false")==="true"&&t.trim().length+o.trim().length>0){let i=0;for(;a[i];)if(i&&(t.trim().length>0&&a[i].translatedLyric===void 0||o.trim().length>0&&a[i].romanLyric===void 0)){let l=a.splice(i,1)[0],c=l.dynamicLyric||[];(r=a[i-1].dynamicLyric)==null||r.push({word:" ",time:a[i-1].time+a[i-1].duration,duration:0,flag:0},...c),a[i-1].duration=l.duration+l.time-a[i-1].time}else i++}for(let i=0;i0&&c.originalLyric.trim().length>0&&l.duration>0){let s=((l==null?void 0:l.dynamicLyricTime)||l.time)+l.duration,d=c.time;c.dynamicLyricTime&&d>c.dynamicLyricTime&&(d=c.dynamicLyricTime),d-s>=5e3&&a.splice(i+1,0,{time:s,originalLyric:"",duration:d-s})}}return Ek(a)}}var DU=new RegExp("^\\[(?