@protonradio/proton-ui 0.7.4 → 0.7.5-beta10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +13 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +50 -25
- package/dist/index.es.js +1719 -1662
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils-KedSkjS1.mjs +452 -0
- package/dist/utils-KedSkjS1.mjs.map +1 -0
- package/dist/utils-ZbliEUT6.js +2 -0
- package/dist/utils-ZbliEUT6.js.map +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +12 -1
- package/dist/utils.es.js +12 -10
- package/package.json +3 -3
- package/dist/utils-DW0aDmds.js +0 -2
- package/dist/utils-DW0aDmds.js.map +0 -1
- package/dist/utils-lYqR6GD0.mjs +0 -222
- package/dist/utils-lYqR6GD0.mjs.map +0 -1
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--proton-rem: calc(12px + .39vw) ;--proton-color__primary:#e26014;--proton-color__primary-light:#fbe5d7;--proton-color__secondary:#f2f2f2;--proton-color__gray-super-dark:#141211;--proton-color__gray-dark:#4d4d4d;--proton-color__gray-medium:#7d7d7d;--proton-color__gray-medium-light:#b1b1b1;--proton-color__gray-light:#ddd;--proton-color__gray-lightest:#f0f1f2;--proton-color__gray-super-light:#f7f8f9;--proton-color__white:#fff;--proton-color__danger-super-dark:#991b1b;--proton-color__danger-dark:#a80724;--proton-color__danger-medium:#e23f5c;--proton-color__danger-light:#f16880;--proton-color__danger-super-light:#ffe1e1;--proton-color__warning-dark:#8b5600;--proton-color__warning-medium:#b37208;--proton-color__warning-light:#ffac23;--proton-color__warning-super-light:#fff0c9;--proton-color__success-dark:#247800;--proton-color__success-medium:#339a07;--proton-color__success-light:#66cf39;--proton-color__success-super-light:#deffd1;--proton-control__text-color:var(--proton-color__white);--proton-control__background-color:var(--proton-color__white);--proton-control__border-color:var(--proton-color__gray-dark);--proton-control__shadow-color:var(--proton-color__gray-dark)}.proton-ActionMenu__background{z-index:10;background:#000000bf;width:100%;height:100%;transition:opacity .3s ease-in-out;position:fixed;top:0;left:0}@media (min-width:768px){.proton-ActionMenu__background{display:none}}.proton-ActionMenu__wrapper{z-index:10;max-height:100vh;overflow:none;flex:1;width:100%;position:fixed;bottom:0;left:0}@media (min-width:768px){.proton-ActionMenu__wrapper{display:none}}.proton-ActionMenu__wrapper--scrollable{overflow-y:scroll}.proton-ActionMenu__card{background:var(--proton-control__background-color);color:var(--proton-control__text-color);z-index:1;border-radius:14px 14px 0 0;flex-direction:column;height:0;transition:height .3s cubic-bezier(.34,1.56,.64,1);display:flex;position:relative;overflow:hidden;box-shadow:0 0 4px #0000001a,0 0 20px #00000026}.proton-ActionMenu__card>div{flex-direction:column;flex:1;display:flex}@media (min-width:768px){.proton-ActionMenu__card{border-radius:.8rem;min-width:300px}}.proton-ui__theme--custom-dark .proton-ActionMenu__card{background:var(--proton-control__background-color)}.proton-ActionMenu__close-button{fill:var(--proton-color__white);color:var(--proton-color__white);pointer-events:none;text-align:center;margin-right:12px;transition:visibility ease-out,opacity .35s ease-out;position:fixed;top:1rem;right:0}.proton-ActionMenu__close-button div{letter-spacing:.1em;margin:.5rem;font-weight:500;display:block}.proton-ActionMenu__cancel-button{margin:0 12px 16px}.proton-ActionMenu__cancel-button button{justify-content:center;width:100%}.proton-ActionMenu__content{padding:12px 12px 0}.proton-ActionMenu__list{flex-direction:column;margin:10px 0;display:flex}.proton-ActionMenu__list--disabled{opacity:.5;cursor:not-allowed}.proton-ActionMenu__item{color:inherit;cursor:pointer;padding:12px 8px 12px 12px;text-decoration:none;transition:background-color .1s}.proton-ActionMenu__item:hover,.proton-ActionMenu__item:focus{background-color:var(--proton-color__gray-super-light);border:none;outline:none}.proton-ui__theme--dark .proton-ActionMenu__item:hover,.proton-ui__theme--dark .proton-ActionMenu__item:focus,.proton-ui__theme--custom-dark .proton-ActionMenu__item:focus,.proton-ui__theme--custom-dark .proton-ActionMenu__item:hover{background-color:#606060fa}.proton-ActionMenu__item[aria-checked=true]{background-color:var(--proton-color__primary-light);color:var(--proton-color__primary)}.proton-ui__theme--custom-dark .proton-ActionMenu__item[aria-checked=true],.proton-ui__theme--dark .proton-ActionMenu__item[aria-checked=true]{background-color:var(--proton-color__primary);color:var(--proton-control__text-color)}.proton-ActionMenu__item[aria-disabled=true]{opacity:.5;cursor:not-allowed}.proton-ActionMenu__item[aria-disabled=true]:hover{background-color:#0000}.proton-ActionMenu__content:has(.proton-ListBox){padding:0}html .proton-ActionMenu__content>.proton-ListBox{box-shadow:none;background:0 0;border:none;border-radius:0;margin-bottom:12px}.proton-Badge{letter-spacing:.2em;text-align:center;text-transform:uppercase;white-space:nowrap;height:1.6rem;color:var(--proton-control__text-color);border-radius:10rem;padding-bottom:calc(1rem - 1.1em);padding-left:1rem;padding-right:calc(1rem - .2em);font-size:max(11px,min(.6875rem + .1vw,16px));font-weight:500;line-height:1.8rem;display:inline-block}.proton-ui__theme--dark.proton-Badge:not([class*=proton-Badge--]){background-color:var(--proton-control__background-color)}.proton-ui__theme--light.proton-Badge:not([class*=proton-Badge--]),.proton-ui__theme--light.proton-Badge--secondary{background-color:var(--proton-color__secondary);color:#666}.proton-ui__theme--dark.proton-Badge--secondary{background-color:#ffffff26}.proton-ui__theme--custom-dark.proton-Badge:not([class*=proton-Badge--]){background-color:var(--proton-color__primary)}.proton-ui__theme--custom-dark.proton-Badge--secondary{background-color:var(--proton-control__primary-dark)}.proton-Badge--primary{background-color:var(--proton-color__primary);color:var(--proton-color__white)}.proton-Badge--success{background-color:var(--proton-color__success-super-light);color:var(--proton-color__success-dark)}.proton-Badge--warning{background-color:var(--proton-color__warning-super-light);color:var(--proton-color__warning-dark)}.proton-Badge--danger{background-color:var(--proton-color__danger-super-light);color:var(--proton-color__danger-dark)}.proton-Badge--transparent{color:#666;background-color:#0000}.proton-Button{font-size:var(--proton-rem);letter-spacing:.05em;border:0;border-radius:4px;align-items:center;column-gap:.4em;padding:.4em .86em;font-weight:300;text-decoration:none;transition:filter .1s,background-color .1s;display:flex}.proton-Button:hover{filter:brightness(1.08);cursor:pointer;text-decoration:none}.proton-Button--primary,.proton-Button--primary:hover{color:var(--proton-color__white);background-color:var(--proton-color__primary)}.proton-Button--secondary,.proton-Button--secondary:hover{color:var(--proton-color__gray-dark);background-color:var(--proton-color__gray-light)}.proton-Button--danger{color:var(--proton-color__white);background-color:var(--proton-color__danger-medium)}.proton-Button--success{color:var(--proton-color__white);background-color:var(--proton-color__success-medium)}.proton-Button--translucent{color:var(--proton-color__white);background-color:#ffffff1a}.proton-Button--translucent:hover{background-color:#ffffff24}.proton-Button--disabled,.proton-Button--disabled:hover{opacity:.5;filter:none;cursor:not-allowed}.proton-Button:focus{outline:solid var(--proton-color__primary)1px;border:none}.proton-Button:focus-visible{outline:solid var(--proton-color__primary)1px;border:none}:root{--banner__default-background:var(--proton-color__gray-lightest);--banner__default-title:var(--proton-color__gray-dark);--banner__default-content:var(--proton-color__gray-medium);--banner__default-icon:var(--proton-color__gray-medium-light);--banner__warning-background:var(--proton-color__warning-super-light);--banner__warning-title:var(--proton-color__warning-dark);--banner__warning-content:var(--proton-color__warning-medium);--banner__warning-icon:var(--proton-color__warning-light);--banner__success-background:var(--proton-color__success-super-light);--banner__success-title:var(--proton-color__success-dark);--banner__success-content:var(--proton-color__success-medium);--banner__success-icon:var(--proton-color__success-light);--banner__danger-background:var(--proton-color__danger-super-light);--banner__danger-title:var(--proton-color__danger-dark);--banner__danger-content:var(--proton-color__danger-medium);--banner__danger-icon:var(--proton-color__danger-light)}.proton-Banner{margin:0}.proton-Banner--rounded{border-radius:.375rem}.proton-Banner__wrapper{padding:2rem;display:flex}.proton-Banner__wrapper--compact{padding:1rem}.proton-Banner__content-wrapper{flex:1;min-width:0}.proton-Banner__container{flex-direction:column;padding:0 10px;display:flex}.proton-Banner__title{letter-spacing:.01rem;margin:0;font-size:max(14px,min(1.8rem,20px));font-weight:600}.proton-Banner__actions{gap:.5rem;margin:6px 0 0;display:flex}.proton-Banner__icon{margin-top:2px}@media (min-width:768px){.proton-Banner__container{grid-template-columns:1fr auto;align-items:center;display:grid}.proton-Banner__container>.proton-Banner__title,.proton-Banner__container>.proton-Banner__content{grid-column:1}.proton-Banner__container>div:last-child{grid-area:1/2/span 2}.proton-Banner__actions{margin:0 0 0 12px}}.proton-Banner--default{background-color:var(--banner__default-background)}.proton-Banner--default__title{color:var(--banner__default-title)}.proton-Banner--default__content{color:var(--banner__default-content)}.proton-Banner--default__icon{fill:var(--banner__default-icon)}.proton-Banner--warning{background-color:var(--banner__warning-background)}.proton-Banner--warning__title{color:var(--banner__warning-title)}.proton-Banner--warning__content{color:var(--banner__warning-content)}.proton-Banner--warning__icon{fill:var(--banner__warning-icon)}.proton-Banner--success{background-color:var(--banner__success-background)}.proton-Banner--success__title{color:var(--banner__success-title)}.proton-Banner--success__content{color:var(--banner__success-content)}.proton-Banner--success__icon{fill:var(--banner__success-icon)}.proton-Banner--danger{background-color:var(--banner__danger-background)}.proton-Banner--danger__title{color:var(--banner__danger-title)}.proton-Banner--danger__content{color:var(--banner__danger-content)}.proton-Banner--danger__icon{fill:var(--banner__danger-icon)}.proton-ButtonGroup{font-size:var(--proton-rem);border:1px solid var(--proton-color__gray-light);border-radius:4px;font-weight:400;display:flex;overflow:hidden}.proton-ButtonGroup__option{background-color:var(--proton-color__gray-super-light);cursor:pointer;border-left:1px solid var(--proton-color__gray-light);color:var(--proton-color__gray-dark);text-align:center;border-radius:0;flex:1;padding:.5em 1em}.proton-ButtonGroup__option:first-child{border-left:0}.proton-ButtonGroup__option--selected{background-color:var(--proton-color__white);color:var(--proton-color__primary);z-index:2;cursor:default;border-radius:inherit;box-shadow:0 0 6px #00000026}.proton-ButtonGroup__option--selected+.proton-ButtonGroup__option{border-left:1px solid #0000}.proton-Dialog{background-color:var(--proton-color__primary);box-shadow:0 0 2px 0 var(--proton-control__shadow-color),0 0 12px 0 var(--proton-control__shadow-color);color:var(--proton-control__text-color);border-radius:4px;outline:none;padding:.65rem .85rem;font-weight:300}.proton-Dialog__header{margin-top:0;margin-bottom:5px}.proton-Input{box-sizing:border-box;background-color:var(--proton-color__primary);outline:1px solid var(--proton-control__border-color);width:100%;min-height:40px;color:var(--proton-control__text-color);border:1px solid #0000;border-radius:4px;flex:1;padding-left:12px;transition:all .2s ease-in-out}.proton-Input:disabled{opacity:.6;cursor:not-allowed}.proton-Input:not(.proton-Input--error):focus{outline:1px solid var(--proton-color__primary-light)}.proton-Input:not(.proton-Input--error):focus-visible{outline:1px solid var(--proton-color__primary-light)}.proton-Input.proton-Input--error{outline:1px solid var(--proton-color__danger-dark)}.proton-Input__container{flex-direction:column;flex:1;width:100%;display:flex}.proton-Input__container-inner{flex:1;align-items:center;display:flex;position:relative}.proton-Input__descriptor{z-index:1;background-position:50%;background-repeat:no-repeat;background-size:50%;justify-content:center;align-items:center;height:100%;display:flex;position:absolute;top:50%;transform:translateY(-50%)}.proton-Input__prefix,.proton-Input__suffix{flex:0 0 32px;justify-content:center;align-items:center;display:flex}.proton-Input__prefix{opacity:.5;cursor:text;margin-left:12px;left:0}.proton-Input__suffix{outline:none;padding-right:12px;right:0}.proton-Input__container-inner:has(.proton-Input__prefix) .proton-Input{padding-left:32px}.proton-Input__container-inner:has(.proton-Input__suffix) .proton-Input{padding-right:44px}.proton-Input__text{color:var(--proton-color__gray-medium);padding:4px 0;font-size:.75rem}.proton-ui__theme--custom-dark .proton-Input__text{color:var(--proton-color__gray-medium-light)}.proton-Input__error{color:var(--proton-color__danger-medium)}.proton-Input__label-top{padding-top:24px;padding-bottom:8px}.proton-Input__label{color:var(--proton-color__gray-medium-light);pointer-events:none;transform-origin:left center 0px;transition:color .2s,font-size .5s,top .5s;position:absolute;top:15px;left:14px}.proton-Input:focus+.proton-Input__label,.proton-Input__label--filled{font-size:.75rem;top:7px}.proton-Input:focus+.proton-Input__label{color:var(--proton-color__primary)}.proton-ui__theme--custom-dark .proton-Input:focus+.proton-Input__label{color:var(--proton-color__primary-light)}.proton-Input__label--hide{display:none}.proton-SearchInput__wrapper{width:100%}.proton-SearchInput__wrapper input{border-radius:50px;padding-left:44px!important}.proton-SearchInput__button{color:currentColor;cursor:pointer;opacity:1;background-color:#0000;border:none;transition:opacity .2s ease-in-out}.proton-SearchInput__button--hide{opacity:0}.proton-SearchInput__wrapper input[type=search]::-ms-clear{width:0;height:0;display:none}.proton-SearchInput__wrapper input[type=search]::-ms-reveal{width:0;height:0;display:none}.proton-SearchInput__wrapper input[type=search]::-webkit-search-decoration{display:none}.proton-SearchInput__wrapper input[type=search]::-webkit-search-cancel-button{display:none}.proton-SearchInput__wrapper input[type=search]::-webkit-search-results-button{display:none}.proton-SearchInput__wrapper input[type=search]::-webkit-search-results-decoration{display:none}.proton-Popover{transform-origin:top}.proton-Popover[data-entering]{animation:.2s ease-out forwards slideDown}@keyframes slideDown{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}.arrow{fill:var(--proton-color__primary);stroke-width:1px;width:12px;height:12px;position:absolute}.arrow[data-placement=top]{top:100%;transform:translate(-50%)}.arrow[data-placement=bottom]{bottom:100%;transform:translate(-50%)rotate(180deg)}.arrow[data-placement=left]{left:100%;transform:translateY(-50%)rotate(-90deg)}.arrow[data-placement=right]{right:100%;transform:translateY(-50%)rotate(90deg)}.proton-ResponsiveMenuTrigger{display:inline-block;position:relative}.proton-ResponsiveMenuTrigger__button{cursor:pointer;color:var(--proton-control__text-color);background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:4px;display:flex}.proton-ResponsiveMenuTrigger__button:disabled{cursor:not-allowed;opacity:.5}.proton-ui__theme--dark .proton-ResponsiveMenuTrigger__button:disabled:hover,.proton-ResponsiveMenuTrigger__button:disabled:hover{background:0 0}.proton-ResponsiveMenuTrigger__button:focus{outline:2px solid var(--proton-control__border-color)}.proton-ResponsiveMenuTrigger__button:hover{background-color:#60606026}.proton-ui__theme--dark .proton-ResponsiveMenuTrigger__button:hover{background-color:#ffffff1a}.proton-ListBox{letter-spacing:.05em;background:var(--proton-control__background-color);border:1px solid var(--proton-control__border-color);min-width:100px;color:var(--proton-control__text-color);box-shadow:0 0 3px var(--proton-control__shadow-color);border-radius:10px;margin:.5rem 0 0;padding:0;list-style:none;overflow:auto}.proton-ui__theme--custom-dark .proton-ListBox{background:var(--proton-color__primary)}.proton-ListBox:focus{outline:none}.proton-ListBox:focus-visible{outline:none}.proton-ListBox__item{cursor:pointer;outline:none;justify-content:space-between;padding:8px 16px;transition:background-color .1s;display:flex}.proton-ListBox__item:hover{background:#0000000a}.proton-ui__theme--dark .proton-ListBox__item:hover,.proton-ui__theme--custom-dark .proton-ListBox__item:hover{background:#ffffff1a}.proton-ListBox__item--disabled{opacity:.5;cursor:not-allowed}.proton-ListBox__item--selected{background:var(--proton-color__primary-light)}.proton-Select{flex-direction:column;width:100%;margin:0;display:flex}.proton-Select__label{color:var(--proton-control__text-color);margin-bottom:2px}.proton-Select__trigger{color:var(--proton-control__text-color);font-size:inherit;border-radius:50px;flex:1;justify-content:space-between;align-items:center;width:100%;padding:.2rem .6rem .2rem 1rem;display:flex}button.proton-Select__trigger{letter-spacing:.05em;cursor:pointer;background:var(--proton-control__background-color);outline:1px solid var(--proton-control__border-color);border:1px solid #0000;font-weight:400;transition:outline .2s;position:relative}.proton-ui__theme--custom-dark button.proton-Select__trigger{background:var(--proton-color__primary)}button.proton-Select__trigger:hover:after{content:"";-webkit-backdrop-filter:brightness(98%);backdrop-filter:brightness(98%);z-index:1;border-radius:50px;width:100%;height:100%;position:absolute;left:0}button.proton-Select__trigger:focus{outline:solid var(--proton-color__primary)1px;border:1px solid #0000}button.proton-Select__trigger:focus-visible{outline:solid var(--proton-color__primary)1px;border:1px solid #0000}.proton-ui__theme--custom-dark button.proton-Select__trigger:focus{outline:solid var(--proton-color__gray-medium-light)1px;border:1px solid #0000}.proton-ui__theme--custom-dark button.proton-Select__trigger:focus-visible{outline:solid var(--proton-color__gray-medium-light)1px;border:1px solid #0000}.proton-Select__popover{padding-left:.25rem}.proton-Select__trigger_icon{color:var(--proton-control__text-color);width:.75em;height:.75em;margin-left:.8em;transition:transform .2s;position:relative}.proton-Select__trigger_icon svg{width:100%;height:100%;position:absolute;top:50%;left:0;transform:translateY(-50%)}.proton-Select__trigger_icon--flipped{transform:rotateX(180deg)}.proton-Select:hover{cursor:pointer}.proton-Select__trigger--disabled,.proton-Select__trigger--disabled:hover{opacity:.5;filter:none;cursor:not-allowed}.proton-Select__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.proton-Switch{font-size:var(--proton-rem);flex-flow:column;row-gap:5px;display:flex}.proton-Switch__label{text-transform:uppercase;letter-spacing:.1em;color:var(--proton-color__gray-dark);font-size:.7em;font-weight:600}.proton-Switch__description{color:var(--proton-color__gray-medium);align-self:center;font-size:.9em}.proton-Switch__wrapper{column-gap:12px;display:flex}.proton-Switch__toggle{background-color:var(--proton-color__gray-light);cursor:pointer;border-radius:26px;flex-shrink:0;width:50px;height:26px;position:relative}.proton-ui__theme--dark .proton-Switch__toggle,.proton-ui__theme--custom-dark .proton-Switch__toggle{background-color:var(--proton-color__gray-dark)}.proton-Switch__slider{background-color:#fff;border-radius:22px;width:22px;height:22px;transition:left .2s;position:absolute;top:2px;left:2px}.proton-Switch--on .proton-Switch__toggle{background-color:var(--proton-color__primary)}.proton-Switch--on .proton-Switch__slider{left:26px}.proton-Switch--disabled{opacity:.4}.proton-Switch--disabled .proton-Switch__toggle{cursor:not-allowed}.proton-Table{border-collapse:collapse;color:var(--proton-control__text-color);width:100%;font-weight:300}.proton-Table__header{cursor:default;letter-spacing:.1em;text-transform:uppercase;text-align:left;outline:none;padding:7px 10px;font-size:.75rem;font-weight:500;line-height:1rem}.proton-Table__header--center{text-align:center}.proton-Table__header--right{text-align:right}.proton-Table__headerSortIcon{padding:0 2px}.proton-Table__row{cursor:default;border-top:1px solid #ccc;outline:none}.proton-Table__row:last-child{border-bottom:1px solid #ccc}.proton-Table__cell{vertical-align:middle;outline:none;padding:7px 10px}.proton-Table__cell--center{text-align:center}.proton-Table__cell--right{text-align:right}.proton-TextEmphasis{background-image:linear-gradient(to top,#0000 0,#0000 15%,var(--proton-color__primary)15%,var(--proton-color__primary)35%,transparent 35%,transparent 100%);color:var(--proton-color__gray-super-dark);padding:0 .05rem;font-style:normal;font-weight:700}.proton-TextEmphasis a{color:inherit;text-decoration:none;transition:color .15s}.proton-TextEmphasis a:hover{color:var(--proton-color__primary);text-decoration:none}.proton-ui__theme--custom-dark .proton-TextEmphasis,.proton-ui__theme--dark .proton-TextEmphasis{color:var(--proton-color__gray-lightest)}.proton-TextEmphasis--tooltip{background-image:linear-gradient(to top,#0000 0,#0000 15%,var(--proton-color__primary)25%,var(--proton-color__primary)87%,transparent 80%,transparent 100%);background-position:bottom;background-repeat:no-repeat;background-size:100% 35%;font-style:italic;font-weight:400;transition:background-size .3s,border-radius .3s}.proton-TextEmphasis--tooltip:hover{background-size:100% 100%;border-radius:2px}.proton-TextEmphasis--tooltip:not(:hover){transition-delay:.2s}.proton__Tooltip{background-color:var(--proton-color__primary);color:var(--proton-control__text-color);position:absolute}.proton__TooltipTrigger{all:unset}.proton__Tooltip[data-placement=top]{--origin:translateY(4px);margin-bottom:8px}.proton__Tooltip[data-placement=bottom]{--origin:translateY(-4px);margin-top:8px}.proton__Tooltip[data-placement=bottom] .proton__TooltipArrow svg{transform:rotate(180deg)}.proton__Tooltip[data-placement=right]{--origin:translateX(-4px);margin-left:8px}.proton__Tooltip[data-placement=right] .proton__TooltipArrow svg{transform:rotate(90deg)}.proton__Tooltip[data-placement=left]{--origin:translateX(4px);margin-right:8px}.proton__Tooltip[data-placement=left] .proton__TooltipArrow svg{transform:rotate(-90deg)}.proton__Tooltip .proton__TooltipArrow svg{fill:var(--proton-color__primary);display:block}.proton__Tooltip[data-entering]{animation:.2s slide}.proton__Tooltip[data-exiting]{animation:.2s reverse slide}@keyframes slide{0%{opacity:0;transform:var(--origin)}to{opacity:1;transform:translateY(0)}}:root{--waveform-bar-color-dark:#ffffffe6;--waveform-bar-color-light:#000000b3;--waveform-disabled-color-dark:#fff3;--waveform-disabled-color-light:#0003;--waveform-animation-curve:cubic-bezier(.34,1.56,.64,1);--waveform-animation-duration:.4s;--waveform-bar-delay-multiplier:.7ms;--waveform-timestamp-padding:.25rem;--waveform-timestamp-font-size:.75rem;--waveform-timestamp-border-radius:.125rem;--waveform-hover-line-width:2px}.proton-Waveform{flex-direction:row;align-items:center;width:100%;height:100%;display:flex;position:relative}.proton-Waveform__container{z-index:0;flex:1;align-items:center;width:100%;height:100%;display:flex;position:relative}.proton-Waveform__timestamp{pointer-events:none;border-radius:var(--waveform-timestamp-border-radius);padding:0 var(--waveform-timestamp-padding);font-size:var(--waveform-timestamp-font-size);z-index:1;background-color:#0009;position:absolute}.proton-ui__theme--light .proton-Waveform__timestamp{color:#000c;background-color:#ffffffe6;box-shadow:0 2px 2px #0000004d}.proton-ui__theme--dark .proton-Waveform__timestamp{background-color:var(--proton-control__background-color)}.proton-ui__theme--custom-dark .proton-Waveform__timestamp{background-color:var(--proton-control__primary-dark)}.proton-Waveform__timestamp--left{left:1px}.proton-Waveform__timestamp--right{right:3px}.proton-Waveform__hover-line{width:var(--waveform-hover-line-width);background-color:#ffffff80;position:absolute;top:0;bottom:0;transform:translate(-50%)}.proton-ui__theme--light .proton-Waveform__hover-line{background-color:#00000080}.proton-Waveform__bar-wrapper{flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex;position:relative}.proton-Waveform__bar{background-color:var(--waveform-bar-color-dark);transform-origin:50%;width:100%;height:0;transition:height var(--waveform-animation-duration)var(--waveform-animation-curve);position:relative}.proton-Waveform__bar.proton-Waveform__bar--visible{height:var(--target-height);transition-delay:calc(var(--index)*var(--waveform-bar-delay-multiplier))}.proton-Waveform__bar.proton-Waveform__bar--upper{transform-origin:bottom}.proton-Waveform__bar.proton-Waveform__bar--lower{transform-origin:top}.proton-ui__theme--light .proton-Waveform__bar{background-color:var(--waveform-bar-color-light)}.proton-Waveform__bar.proton-Waveform__bar--disabled{background-color:var(--waveform-disabled-color-dark)}.proton-ui__theme--light .proton-Waveform__bar.proton-Waveform__bar--disabled{background-color:var(--waveform-disabled-color-light)}.proton-Waveform__bar.proton-Waveform__bar--disabled.proton-Waveform__bar--played{background-color:var(--waveform-disabled-color-dark)}.proton-ui__theme--light .proton-Waveform__bar.proton-Waveform__bar--disabled.proton-Waveform__bar--played{background-color:var(--waveform-disabled-color-light)}.proton-Waveform__bar.proton-Waveform__bar--played{background-color:var(--proton-color__primary)}.proton-Waveform__bar--hover{height:var(--hover-height);z-index:10;background-color:color-mix(in srgb,var(--proton-color__primary)50%,transparent);mix-blend-mode:darken;width:100%;position:absolute;top:50%;transform:translateY(-50%)}.proton-ui__theme--light .proton-Waveform__bar--hover{background-color:color-mix(in srgb,var(--proton-color__primary)50%,white);mix-blend-mode:lighten}.proton-Waveform__bar-unavailable{pointer-events:none;text-align:center;z-index:10;color:#fff;background-color:#000000b3;border-radius:4px;padding:3px 6px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.proton-ui__theme--light .proton-Waveform__bar-unavailable{color:#000;background-color:#fff;box-shadow:0 5px 5px #0000004d}.proton-ui__theme--dark .proton-Waveform__bar-unavailable{background-color:var(--proton-control__background-color)}.proton-ui__theme--custom-dark .proton-Waveform__bar-unavailable{background-color:var(--proton-control__primary-dark)}.proton-Waveform__active-region{pointer-events:none;z-index:1;border:1.5px solid #ffffffb3;border-radius:4px;position:absolute;top:0;bottom:0}.proton-ui__theme--light .proton-Waveform__active-region{border-color:#0000004d}@keyframes shimmer{0%{background-position:-300px 0}to{background-position:800px 0}}.tombstone{background-position:-300px 0;background-repeat:no-repeat;background-size:300px 100%;animation:1.5s linear infinite shimmer}.tombstone.light{background-color:#d1d1d1;background-image:linear-gradient(-90deg,#d1d1d1,#b8b8b8,#d1d1d1)}.tombstone.dark{background-color:#3c3c3c;background-image:linear-gradient(-90deg,#363636,#292727,#353535)}.tombstone.custom-dark{background-image:linear-gradient(-90deg,var(--tombstone-custom-primary)0%,var(--tombstone-custom-secondary)50%,var(--tombstone-custom-primary)100%);background-color:var(--tombstone-custom-background)}
|
|
1
|
+
:root{--proton-rem: calc(12px + .39vw) ;--proton-color__primary:#e26014;--proton-color__primary-light:#fbe5d7;--proton-color__secondary:#f2f2f2;--proton-color__gray-super-dark:#141211;--proton-color__gray-dark:#4d4d4d;--proton-color__gray-medium:#7d7d7d;--proton-color__gray-medium-light:#b1b1b1;--proton-color__gray-light:#ddd;--proton-color__gray-lightest:#f0f1f2;--proton-color__gray-super-light:#f7f8f9;--proton-color__white:#fff;--proton-color__danger-super-dark:#991b1b;--proton-color__danger-dark:#a80724;--proton-color__danger-medium:#e23f5c;--proton-color__danger-light:#f16880;--proton-color__danger-super-light:#ffe1e1;--proton-color__warning-dark:#8b5600;--proton-color__warning-medium:#b37208;--proton-color__warning-light:#ffac23;--proton-color__warning-super-light:#fff0c9;--proton-color__success-dark:#247800;--proton-color__success-medium:#339a07;--proton-color__success-light:#66cf39;--proton-color__success-super-light:#deffd1;--proton-control__text-color:var(--proton-color__white);--proton-control__background-color:var(--proton-color__white);--proton-control__border-color:var(--proton-color__gray-dark);--proton-control__shadow-color:var(--proton-color__gray-dark)}.proton-ActionMenu__background{z-index:10;background:#000000bf;width:100%;height:100%;transition:opacity .3s ease-in-out;position:fixed;top:0;left:0}@media (min-width:768px){.proton-ActionMenu__background{display:none}}.proton-ActionMenu__wrapper{z-index:10;max-height:100vh;overflow:none;flex:1;width:100%;position:fixed;bottom:0;left:0}@media (min-width:768px){.proton-ActionMenu__wrapper{display:none}}.proton-ActionMenu__wrapper--scrollable{overflow-y:scroll}.proton-ActionMenu__card{background:var(--proton-control__background-color);color:var(--proton-control__text-color);z-index:1;border-radius:14px 14px 0 0;flex-direction:column;height:0;transition:height .3s cubic-bezier(.34,1.56,.64,1);display:flex;position:relative;overflow:hidden;box-shadow:0 0 4px #0000001a,0 0 20px #00000026}.proton-ActionMenu__card>div{flex-direction:column;flex:1;display:flex}@media (min-width:768px){.proton-ActionMenu__card{border-radius:.8rem;min-width:300px}}.proton-ui__theme--custom-dark .proton-ActionMenu__card{background:var(--proton-control__background-color)}.proton-ActionMenu__close-button{fill:var(--proton-color__white);color:var(--proton-color__white);pointer-events:none;text-align:center;margin-right:12px;transition:visibility ease-out,opacity .35s ease-out;position:fixed;top:1rem;right:0}.proton-ActionMenu__close-button div{letter-spacing:.1em;margin:.5rem;font-weight:500;display:block}.proton-ActionMenu__cancel-button{margin:0 12px 16px}.proton-ActionMenu__cancel-button button{justify-content:center;width:100%}.proton-ActionMenu__content{padding:12px 12px 0}.proton-ActionMenu__list{flex-direction:column;margin:10px 0;display:flex}.proton-ActionMenu__list--disabled{opacity:.5;cursor:not-allowed}.proton-ActionMenu__item{color:inherit;cursor:pointer;padding:12px 8px 12px 12px;text-decoration:none;transition:background-color .1s}.proton-ActionMenu__item:hover,.proton-ActionMenu__item:focus{background-color:var(--proton-color__gray-super-light);border:none;outline:none}.proton-ui__theme--dark .proton-ActionMenu__item:hover,.proton-ui__theme--dark .proton-ActionMenu__item:focus,.proton-ui__theme--custom-dark .proton-ActionMenu__item:focus,.proton-ui__theme--custom-dark .proton-ActionMenu__item:hover{background-color:#606060fa}.proton-ActionMenu__item[aria-checked=true]{background-color:var(--proton-color__primary-light);color:var(--proton-color__primary)}.proton-ui__theme--custom-dark .proton-ActionMenu__item[aria-checked=true],.proton-ui__theme--dark .proton-ActionMenu__item[aria-checked=true]{background-color:var(--proton-color__primary);color:var(--proton-control__text-color)}.proton-ActionMenu__item[aria-disabled=true]{opacity:.5;cursor:not-allowed}.proton-ActionMenu__item[aria-disabled=true]:hover{background-color:#0000}.proton-ActionMenu__content:has(.proton-ListBox){padding:0}html .proton-ActionMenu__content>.proton-ListBox{box-shadow:none;background:0 0;border:none;border-radius:0;margin-bottom:12px}.proton-Badge{letter-spacing:.2em;text-align:center;text-transform:uppercase;white-space:nowrap;height:1.6rem;color:var(--proton-control__text-color);border-radius:10rem;padding-bottom:calc(1rem - 1.1em);padding-left:1rem;padding-right:calc(1rem - .2em);font-size:max(11px,min(.6875rem + .1vw,16px));font-weight:500;line-height:1.8rem;display:inline-block}.proton-ui__theme--dark.proton-Badge:not([class*=proton-Badge--]){background-color:var(--proton-control__background-color)}.proton-ui__theme--light.proton-Badge:not([class*=proton-Badge--]),.proton-ui__theme--light.proton-Badge--secondary{background-color:var(--proton-color__secondary);color:#666}.proton-ui__theme--dark.proton-Badge--secondary{background-color:#ffffff26}.proton-ui__theme--custom-dark.proton-Badge:not([class*=proton-Badge--]){background-color:var(--proton-color__primary)}.proton-ui__theme--custom-dark.proton-Badge--secondary{background-color:var(--proton-control__primary-dark)}.proton-Badge--primary{background-color:var(--proton-color__primary);color:var(--proton-color__white)}.proton-Badge--success{background-color:var(--proton-color__success-super-light);color:var(--proton-color__success-dark)}.proton-Badge--warning{background-color:var(--proton-color__warning-super-light);color:var(--proton-color__warning-dark)}.proton-Badge--danger{background-color:var(--proton-color__danger-super-light);color:var(--proton-color__danger-dark)}.proton-Badge--transparent{color:#666;background-color:#0000}.proton-Button{font-size:var(--proton-rem);letter-spacing:.05em;border:0;border-radius:4px;align-items:center;column-gap:.4em;padding:.4em .86em;font-weight:300;text-decoration:none;transition:filter .1s,background-color .1s;display:flex}.proton-Button:hover{filter:brightness(1.08);cursor:pointer;text-decoration:none}.proton-Button--primary,.proton-Button--primary:hover{color:var(--proton-color__white);background-color:var(--proton-color__primary)}.proton-Button--secondary,.proton-Button--secondary:hover{color:var(--proton-color__gray-dark);background-color:var(--proton-color__gray-light)}.proton-Button--danger{color:var(--proton-color__white);background-color:var(--proton-color__danger-medium)}.proton-Button--success{color:var(--proton-color__white);background-color:var(--proton-color__success-medium)}.proton-Button--translucent{color:var(--proton-color__white);background-color:#ffffff1a}.proton-Button--translucent:hover{background-color:#ffffff24}.proton-Button--disabled,.proton-Button--disabled:hover{opacity:.5;filter:none;cursor:not-allowed}.proton-Button:focus{outline:solid var(--proton-color__primary)1px;border:none}.proton-Button:focus-visible{outline:solid var(--proton-color__primary)1px;border:none}:root{--banner__default-background:var(--proton-color__gray-lightest);--banner__default-title:var(--proton-color__gray-dark);--banner__default-content:var(--proton-color__gray-medium);--banner__default-icon:var(--proton-color__gray-medium-light);--banner__warning-background:var(--proton-color__warning-super-light);--banner__warning-title:var(--proton-color__warning-dark);--banner__warning-content:var(--proton-color__warning-medium);--banner__warning-icon:var(--proton-color__warning-light);--banner__success-background:var(--proton-color__success-super-light);--banner__success-title:var(--proton-color__success-dark);--banner__success-content:var(--proton-color__success-medium);--banner__success-icon:var(--proton-color__success-light);--banner__danger-background:var(--proton-color__danger-super-light);--banner__danger-title:var(--proton-color__danger-dark);--banner__danger-content:var(--proton-color__danger-medium);--banner__danger-icon:var(--proton-color__danger-light)}.proton-Banner{margin:0}.proton-Banner--rounded{border-radius:.375rem}.proton-Banner__wrapper{padding:2rem;display:flex}.proton-Banner__wrapper--compact{padding:1rem}.proton-Banner__content-wrapper{flex:1;min-width:0}.proton-Banner__container{flex-direction:column;padding:0 10px;display:flex}.proton-Banner__title{letter-spacing:.01rem;margin:0;font-size:max(14px,min(1.8rem,20px));font-weight:600}.proton-Banner__actions{gap:.5rem;margin:6px 0 0;display:flex}.proton-Banner__icon{margin-top:2px}@media (min-width:768px){.proton-Banner__container{grid-template-columns:1fr auto;align-items:center;display:grid}.proton-Banner__container>.proton-Banner__title,.proton-Banner__container>.proton-Banner__content{grid-column:1}.proton-Banner__container>div:last-child{grid-area:1/2/span 2}.proton-Banner__actions{margin:0 0 0 12px}}.proton-Banner--default{background-color:var(--banner__default-background)}.proton-Banner--default__title{color:var(--banner__default-title)}.proton-Banner--default__content{color:var(--banner__default-content)}.proton-Banner--default__icon{fill:var(--banner__default-icon)}.proton-Banner--warning{background-color:var(--banner__warning-background)}.proton-Banner--warning__title{color:var(--banner__warning-title)}.proton-Banner--warning__content{color:var(--banner__warning-content)}.proton-Banner--warning__icon{fill:var(--banner__warning-icon)}.proton-Banner--success{background-color:var(--banner__success-background)}.proton-Banner--success__title{color:var(--banner__success-title)}.proton-Banner--success__content{color:var(--banner__success-content)}.proton-Banner--success__icon{fill:var(--banner__success-icon)}.proton-Banner--danger{background-color:var(--banner__danger-background)}.proton-Banner--danger__title{color:var(--banner__danger-title)}.proton-Banner--danger__content{color:var(--banner__danger-content)}.proton-Banner--danger__icon{fill:var(--banner__danger-icon)}.proton-ButtonGroup{font-size:var(--proton-rem);border:1px solid var(--proton-color__gray-light);border-radius:4px;font-weight:400;display:flex;overflow:hidden}.proton-ButtonGroup__option{background-color:var(--proton-color__gray-super-light);cursor:pointer;border-left:1px solid var(--proton-color__gray-light);color:var(--proton-color__gray-dark);text-align:center;border-radius:0;flex:1;padding:.5em 1em}.proton-ButtonGroup__option:first-child{border-left:0}.proton-ButtonGroup__option--selected{background-color:var(--proton-color__white);color:var(--proton-color__primary);z-index:2;cursor:default;border-radius:inherit;box-shadow:0 0 6px #00000026}.proton-ButtonGroup__option--selected+.proton-ButtonGroup__option{border-left:1px solid #0000}.proton-Dialog{background-color:var(--proton-color__primary);box-shadow:0 0 2px 0 var(--proton-control__shadow-color),0 0 12px 0 var(--proton-control__shadow-color);color:var(--proton-control__text-color);border-radius:4px;outline:none;padding:.65rem .85rem;font-weight:300}.proton-Dialog__header{margin-top:0;margin-bottom:5px}.proton-Input{box-sizing:border-box;background-color:var(--proton-color__primary);outline:1px solid var(--proton-control__border-color);width:100%;min-height:40px;color:var(--proton-control__text-color);border:1px solid #0000;border-radius:4px;flex:1;padding-left:12px;transition:all .2s ease-in-out}.proton-Input:disabled{opacity:.6;cursor:not-allowed}.proton-Input:not(.proton-Input--error):focus{outline:1px solid var(--proton-color__primary-light)}.proton-Input:not(.proton-Input--error):focus-visible{outline:1px solid var(--proton-color__primary-light)}.proton-Input.proton-Input--error{outline:1px solid var(--proton-color__danger-dark)}.proton-Input__container{flex-direction:column;flex:1;width:100%;display:flex}.proton-Input__container-inner{flex:1;align-items:center;display:flex;position:relative}.proton-Input__descriptor{z-index:1;background-position:50%;background-repeat:no-repeat;background-size:50%;justify-content:center;align-items:center;height:100%;display:flex;position:absolute;top:50%;transform:translateY(-50%)}.proton-Input__prefix,.proton-Input__suffix{flex:0 0 32px;justify-content:center;align-items:center;display:flex}.proton-Input__prefix{opacity:.5;cursor:text;margin-left:12px;left:0}.proton-Input__suffix{outline:none;padding-right:12px;right:0}.proton-Input__container-inner:has(.proton-Input__prefix) .proton-Input{padding-left:32px}.proton-Input__container-inner:has(.proton-Input__suffix) .proton-Input{padding-right:44px}.proton-Input__text{color:var(--proton-color__gray-medium);padding:4px 0;font-size:.75rem}.proton-ui__theme--custom-dark .proton-Input__text{color:var(--proton-color__gray-medium-light)}.proton-Input__error{color:var(--proton-color__danger-medium)}.proton-Input__label-top{padding-top:24px;padding-bottom:8px}.proton-Input__label{color:var(--proton-color__gray-medium-light);pointer-events:none;transform-origin:left center 0px;transition:color .2s,font-size .5s,top .5s;position:absolute;top:15px;left:14px}.proton-Input:focus+.proton-Input__label,.proton-Input__label--filled{font-size:.75rem;top:7px}.proton-Input:focus+.proton-Input__label{color:var(--proton-color__primary)}.proton-ui__theme--custom-dark .proton-Input:focus+.proton-Input__label{color:var(--proton-color__primary-light)}.proton-Input__label--hide{display:none}.proton-SearchInput__wrapper{width:100%}.proton-SearchInput__wrapper input{border-radius:50px;padding-left:44px!important}.proton-SearchInput__button{color:currentColor;cursor:pointer;opacity:1;background-color:#0000;border:none;transition:opacity .2s ease-in-out}.proton-SearchInput__button--hide{opacity:0}.proton-SearchInput__wrapper input[type=search]::-ms-clear{width:0;height:0;display:none}.proton-SearchInput__wrapper input[type=search]::-ms-reveal{width:0;height:0;display:none}.proton-SearchInput__wrapper input[type=search]::-webkit-search-decoration{display:none}.proton-SearchInput__wrapper input[type=search]::-webkit-search-cancel-button{display:none}.proton-SearchInput__wrapper input[type=search]::-webkit-search-results-button{display:none}.proton-SearchInput__wrapper input[type=search]::-webkit-search-results-decoration{display:none}.proton-Popover{transform-origin:top}.proton-Popover[data-entering]{animation:.2s ease-out forwards slideDown}@keyframes slideDown{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}.arrow{fill:var(--proton-color__primary);stroke-width:1px;width:12px;height:12px;position:absolute}.arrow[data-placement=top]{top:100%;transform:translate(-50%)}.arrow[data-placement=bottom]{bottom:100%;transform:translate(-50%)rotate(180deg)}.arrow[data-placement=left]{left:100%;transform:translateY(-50%)rotate(-90deg)}.arrow[data-placement=right]{right:100%;transform:translateY(-50%)rotate(90deg)}.proton-ResponsiveMenuTrigger{display:inline-block;position:relative}.proton-ResponsiveMenuTrigger__button{cursor:pointer;color:var(--proton-control__text-color);background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:4px;display:flex}.proton-ResponsiveMenuTrigger__button:disabled{cursor:not-allowed;opacity:.5}.proton-ui__theme--dark .proton-ResponsiveMenuTrigger__button:disabled:hover,.proton-ResponsiveMenuTrigger__button:disabled:hover{background:0 0}.proton-ResponsiveMenuTrigger__button:focus{outline:2px solid var(--proton-control__border-color)}.proton-ResponsiveMenuTrigger__button:hover{background-color:#60606026}.proton-ui__theme--dark .proton-ResponsiveMenuTrigger__button:hover{background-color:#ffffff1a}.proton-ListBox{letter-spacing:.05em;background:var(--proton-control__background-color);border:1px solid var(--proton-control__border-color);min-width:100px;color:var(--proton-control__text-color);box-shadow:0 0 3px var(--proton-control__shadow-color);border-radius:10px;margin:.5rem 0 0;padding:0;list-style:none;overflow:auto}.proton-ui__theme--custom-dark .proton-ListBox{background:var(--proton-color__primary)}.proton-ListBox:focus{outline:none}.proton-ListBox:focus-visible{outline:none}.proton-ListBox__item{cursor:pointer;outline:none;justify-content:space-between;padding:8px 16px;transition:background-color .1s;display:flex}.proton-ListBox__item:hover{background:#0000000a}.proton-ui__theme--dark .proton-ListBox__item:hover,.proton-ui__theme--custom-dark .proton-ListBox__item:hover{background:#ffffff1a}.proton-ListBox__item--disabled{opacity:.5;cursor:not-allowed}.proton-ListBox__item--selected{background:var(--proton-color__primary-light)}.proton-Select{flex-direction:column;width:100%;margin:0;display:flex}.proton-Select__label{color:var(--proton-control__text-color);margin-bottom:2px}.proton-Select__trigger{color:var(--proton-control__text-color);font-size:inherit;border-radius:50px;flex:1;justify-content:space-between;align-items:center;width:100%;padding:.2rem .6rem .2rem 1rem;display:flex}button.proton-Select__trigger{letter-spacing:.05em;cursor:pointer;background:var(--proton-control__background-color);outline:1px solid var(--proton-control__border-color);border:1px solid #0000;font-weight:400;transition:outline .2s;position:relative}.proton-ui__theme--custom-dark button.proton-Select__trigger{background:var(--proton-color__primary)}button.proton-Select__trigger:hover:after{content:"";-webkit-backdrop-filter:brightness(98%);backdrop-filter:brightness(98%);z-index:1;border-radius:50px;width:100%;height:100%;position:absolute;left:0}button.proton-Select__trigger:focus{outline:solid var(--proton-color__primary)1px;border:1px solid #0000}button.proton-Select__trigger:focus-visible{outline:solid var(--proton-color__primary)1px;border:1px solid #0000}.proton-ui__theme--custom-dark button.proton-Select__trigger:focus{outline:solid var(--proton-color__gray-medium-light)1px;border:1px solid #0000}.proton-ui__theme--custom-dark button.proton-Select__trigger:focus-visible{outline:solid var(--proton-color__gray-medium-light)1px;border:1px solid #0000}.proton-Select__popover{padding-left:.25rem}.proton-Select__trigger_icon{color:var(--proton-control__text-color);width:.75em;height:.75em;margin-left:.8em;transition:transform .2s;position:relative}.proton-Select__trigger_icon svg{width:100%;height:100%;position:absolute;top:50%;left:0;transform:translateY(-50%)}.proton-Select__trigger_icon--flipped{transform:rotateX(180deg)}.proton-Select:hover{cursor:pointer}.proton-Select__trigger--disabled,.proton-Select__trigger--disabled:hover{opacity:.5;filter:none;cursor:not-allowed}.proton-Select__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.proton-Switch{font-size:var(--proton-rem);flex-flow:column;row-gap:5px;display:flex}.proton-Switch__label{text-transform:uppercase;letter-spacing:.1em;color:var(--proton-color__gray-dark);font-size:.7em;font-weight:600}.proton-Switch__description{color:var(--proton-color__gray-medium);align-self:center;font-size:.9em}.proton-Switch__wrapper{column-gap:12px;display:flex}.proton-Switch__toggle{background-color:var(--proton-color__gray-light);cursor:pointer;border-radius:26px;flex-shrink:0;width:50px;height:26px;position:relative}.proton-ui__theme--dark .proton-Switch__toggle,.proton-ui__theme--custom-dark .proton-Switch__toggle{background-color:var(--proton-color__gray-dark)}.proton-Switch__slider{background-color:#fff;border-radius:22px;width:22px;height:22px;transition:left .2s;position:absolute;top:2px;left:2px}.proton-Switch--on .proton-Switch__toggle{background-color:var(--proton-color__primary)}.proton-Switch--on .proton-Switch__slider{left:26px}.proton-Switch--disabled{opacity:.4}.proton-Switch--disabled .proton-Switch__toggle{cursor:not-allowed}.proton-Table{border-collapse:collapse;color:var(--proton-control__text-color);width:100%;font-weight:300}.proton-Table__header{cursor:default;letter-spacing:.1em;text-transform:uppercase;text-align:left;outline:none;padding:7px 10px;font-size:.75rem;font-weight:500;line-height:1rem}.proton-Table__header--center{text-align:center}.proton-Table__header--right{text-align:right}.proton-Table__headerSortIcon{padding:0 2px}.proton-Table__row{cursor:default;border-top:1px solid #ccc;outline:none}.proton-Table__row:last-child{border-bottom:1px solid #ccc}.proton-Table__cell{vertical-align:middle;outline:none;padding:7px 10px}.proton-Table__cell--center{text-align:center}.proton-Table__cell--right{text-align:right}.proton-TextEmphasis{color:var(--proton-color__gray-super-dark);background-image:linear-gradient(0deg,#0000 0,#0000 15%,#ff713480 15%,#ff713480 35%,#0000 35%,#0000);padding:0 .05rem;font-style:normal;font-weight:700}.proton-TextEmphasis a{color:inherit;text-decoration:none;transition:color .15s}.proton-TextEmphasis a:hover{color:var(--proton-color__primary);text-decoration:none}.proton-ui__theme--custom-dark .proton-TextEmphasis,.proton-ui__theme--dark .proton-TextEmphasis{color:var(--proton-control__text-color)}.proton-TextEmphasis--tooltip{background-image:linear-gradient(0deg,#0000 0,#0000 15%,#ff713480 25%,#ff713480 87%,#0000 80%,#0000);background-position:bottom;background-repeat:no-repeat;background-size:100% 35%;font-style:italic;font-weight:400;transition:background-size .3s,border-radius .3s}.proton-TextEmphasis--tooltip:hover{background-size:100% 100%;border-radius:2px}.proton-TextEmphasis--tooltip:not(:hover){transition-delay:.2s}.proton__Tooltip{background-color:var(--proton-color__primary);color:var(--proton-control__text-color);position:absolute}.proton__TooltipTrigger{all:unset}.proton__Tooltip[data-placement=top]{--origin:translateY(4px);margin-bottom:8px}.proton__Tooltip[data-placement=bottom]{--origin:translateY(-4px);margin-top:8px}.proton__Tooltip[data-placement=bottom] .proton__TooltipArrow svg{transform:rotate(180deg)}.proton__Tooltip[data-placement=right]{--origin:translateX(-4px);margin-left:8px}.proton__Tooltip[data-placement=right] .proton__TooltipArrow svg{transform:rotate(90deg)}.proton__Tooltip[data-placement=left]{--origin:translateX(4px);margin-right:8px}.proton__Tooltip[data-placement=left] .proton__TooltipArrow svg{transform:rotate(-90deg)}.proton__Tooltip .proton__TooltipArrow svg{fill:var(--proton-color__primary);display:block}.proton__Tooltip[data-entering]{animation:.2s slide}.proton__Tooltip[data-exiting]{animation:.2s reverse slide}@keyframes slide{0%{opacity:0;transform:var(--origin)}to{opacity:1;transform:translateY(0)}}:root{--waveform-bar-color-dark:#ffffffe6;--waveform-bar-color-light:#000000b3;--waveform-disabled-color-dark:#fff3;--waveform-disabled-color-light:#0003;--waveform-animation-curve:cubic-bezier(.34,1.56,.64,1);--waveform-animation-duration:.4s;--waveform-bar-delay-multiplier:.7ms;--waveform-timestamp-padding:.25rem;--waveform-timestamp-font-size:.75rem;--waveform-timestamp-border-radius:.125rem;--waveform-hover-line-width:2px}.proton-Waveform{flex-direction:row;align-items:center;width:100%;height:100%;display:flex;position:relative}.proton-Waveform__container{z-index:0;flex:1;align-items:center;width:100%;height:100%;display:flex;position:relative}.proton-Waveform__timestamp{pointer-events:none;border-radius:var(--waveform-timestamp-border-radius);padding:0 var(--waveform-timestamp-padding);font-size:var(--waveform-timestamp-font-size);z-index:1;background-color:#0009;position:absolute}.proton-ui__theme--light .proton-Waveform__timestamp{color:#000c;background-color:#ffffffe6;box-shadow:0 2px 2px #0000004d}.proton-ui__theme--dark .proton-Waveform__timestamp{background-color:var(--proton-control__background-color)}.proton-ui__theme--custom-dark .proton-Waveform__timestamp{background-color:var(--proton-control__primary-dark)}.proton-Waveform__timestamp--left{left:1px}.proton-Waveform__timestamp--right{right:3px}.proton-Waveform__hover-line{width:var(--waveform-hover-line-width);background-color:#ffffff80;position:absolute;top:0;bottom:0;transform:translate(-50%)}.proton-ui__theme--light .proton-Waveform__hover-line{background-color:#00000080}.proton-Waveform__bar-wrapper{flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex;position:relative}.proton-Waveform__bar{background-color:var(--waveform-bar-color-dark);transform-origin:50%;width:100%;height:0;transition:height var(--waveform-animation-duration)var(--waveform-animation-curve);position:relative}.proton-Waveform__bar.proton-Waveform__bar--visible{height:var(--target-height);transition-delay:calc(var(--index)*var(--waveform-bar-delay-multiplier))}.proton-Waveform__bar.proton-Waveform__bar--upper{transform-origin:bottom}.proton-Waveform__bar.proton-Waveform__bar--lower{transform-origin:top}.proton-ui__theme--light .proton-Waveform__bar{background-color:var(--waveform-bar-color-light)}.proton-Waveform__bar.proton-Waveform__bar--disabled{background-color:var(--waveform-disabled-color-dark)}.proton-ui__theme--light .proton-Waveform__bar.proton-Waveform__bar--disabled{background-color:var(--waveform-disabled-color-light)}.proton-Waveform__bar.proton-Waveform__bar--disabled.proton-Waveform__bar--played{background-color:var(--waveform-disabled-color-dark)}.proton-ui__theme--light .proton-Waveform__bar.proton-Waveform__bar--disabled.proton-Waveform__bar--played{background-color:var(--waveform-disabled-color-light)}.proton-Waveform__bar.proton-Waveform__bar--played{background-color:var(--proton-color__primary)}.proton-Waveform__bar--hover{height:var(--hover-height);z-index:10;background-color:color-mix(in srgb,var(--proton-color__primary)50%,transparent);mix-blend-mode:darken;width:100%;position:absolute;top:50%;transform:translateY(-50%)}.proton-ui__theme--light .proton-Waveform__bar--hover{background-color:color-mix(in srgb,var(--proton-color__primary)50%,white);mix-blend-mode:lighten}.proton-Waveform__bar-unavailable{pointer-events:none;text-align:center;z-index:10;color:#fff;background-color:#000000b3;border-radius:4px;padding:3px 6px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.proton-ui__theme--light .proton-Waveform__bar-unavailable{color:#000;background-color:#fff;box-shadow:0 5px 5px #0000004d}.proton-ui__theme--dark .proton-Waveform__bar-unavailable{background-color:var(--proton-control__background-color)}.proton-ui__theme--custom-dark .proton-Waveform__bar-unavailable{background-color:var(--proton-control__primary-dark)}.proton-Waveform__active-region{pointer-events:none;z-index:1;border:1.5px solid #ffffffb3;border-radius:4px;position:absolute;top:0;bottom:0}.proton-ui__theme--light .proton-Waveform__active-region{border-color:#0000004d}.proton-Backdrop__background{justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:fixed;top:0;left:0}.proton-Backdrop__overlay{background-color:#000c}.proton-Backdrop__image{object-fit:cover;width:100%;height:100%;position:absolute}.proton-Backdrop__blur{-webkit-backdrop-filter:blur(24px)brightness(75%);backdrop-filter:blur(24px)brightness(75%);filter:brightness(50%);position:absolute;top:0;bottom:0;left:0;right:0}@keyframes fadeInBackground{0%{-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);background:#0000001a}to{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#000c}}.proton-Backdrop__fade-in{animation:.2s ease-in-out forwards fadeInBackground}.proton-Backdrop__close-button{fill:var(--proton-color__white);color:var(--proton-color__white);pointer-events:none;text-align:center;margin-right:12px;transition:visibility ease-out,opacity .35s ease-out;position:fixed;top:1rem;right:0}.proton-Backdrop__close-button div{letter-spacing:.1em;margin:.5rem;font-weight:500;display:block}
|
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
import { B as z, G as E } from "./colors-Dwh4VIMR.mjs";
|
|
2
|
+
import { toRgba as M, transparentize as J, saturate as Q, desaturate as V, getScale as j, adjustHue as Z, getLuminance as P, lighten as H, darken as U, hasBadContrast as W } from "color2k";
|
|
3
|
+
var x = function(n, r) {
|
|
4
|
+
return n < r ? -1 : n > r ? 1 : 0;
|
|
5
|
+
}, k = function(n) {
|
|
6
|
+
return n.reduce(function(r, a) {
|
|
7
|
+
return r + a;
|
|
8
|
+
}, 0);
|
|
9
|
+
}, tt = /* @__PURE__ */ function() {
|
|
10
|
+
function n(a) {
|
|
11
|
+
this.colors = a;
|
|
12
|
+
}
|
|
13
|
+
var r = n.prototype;
|
|
14
|
+
return r.palette = function() {
|
|
15
|
+
return this.colors;
|
|
16
|
+
}, r.map = function(a) {
|
|
17
|
+
return a;
|
|
18
|
+
}, n;
|
|
19
|
+
}(), nt = function() {
|
|
20
|
+
function n(e, t, s) {
|
|
21
|
+
return (e << 10) + (t << 5) + s;
|
|
22
|
+
}
|
|
23
|
+
function r(e) {
|
|
24
|
+
var t = [], s = !1;
|
|
25
|
+
function u() {
|
|
26
|
+
t.sort(e), s = !0;
|
|
27
|
+
}
|
|
28
|
+
return { push: function(c) {
|
|
29
|
+
t.push(c), s = !1;
|
|
30
|
+
}, peek: function(c) {
|
|
31
|
+
return s || u(), c === void 0 && (c = t.length - 1), t[c];
|
|
32
|
+
}, pop: function() {
|
|
33
|
+
return s || u(), t.pop();
|
|
34
|
+
}, size: function() {
|
|
35
|
+
return t.length;
|
|
36
|
+
}, map: function(c) {
|
|
37
|
+
return t.map(c);
|
|
38
|
+
}, debug: function() {
|
|
39
|
+
return s || u(), t;
|
|
40
|
+
} };
|
|
41
|
+
}
|
|
42
|
+
function a(e, t, s, u, c, o, h) {
|
|
43
|
+
var f = this;
|
|
44
|
+
f.r1 = e, f.r2 = t, f.g1 = s, f.g2 = u, f.b1 = c, f.b2 = o, f.histo = h;
|
|
45
|
+
}
|
|
46
|
+
function l() {
|
|
47
|
+
this.vboxes = new r(function(e, t) {
|
|
48
|
+
return x(e.vbox.count() * e.vbox.volume(), t.vbox.count() * t.vbox.volume());
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function R(e, t) {
|
|
52
|
+
if (t.count()) {
|
|
53
|
+
var s = t.r2 - t.r1 + 1, u = t.g2 - t.g1 + 1, c = Math.max.apply(null, [s, u, t.b2 - t.b1 + 1]);
|
|
54
|
+
if (t.count() == 1) return [t.copy()];
|
|
55
|
+
var o, h, f, g, p = 0, v = [], Y = [];
|
|
56
|
+
if (c == s) for (o = t.r1; o <= t.r2; o++) {
|
|
57
|
+
for (g = 0, h = t.g1; h <= t.g2; h++) for (f = t.b1; f <= t.b2; f++) g += e[n(o, h, f)] || 0;
|
|
58
|
+
v[o] = p += g;
|
|
59
|
+
}
|
|
60
|
+
else if (c == u) for (o = t.g1; o <= t.g2; o++) {
|
|
61
|
+
for (g = 0, h = t.r1; h <= t.r2; h++) for (f = t.b1; f <= t.b2; f++) g += e[n(h, o, f)] || 0;
|
|
62
|
+
v[o] = p += g;
|
|
63
|
+
}
|
|
64
|
+
else for (o = t.b1; o <= t.b2; o++) {
|
|
65
|
+
for (g = 0, h = t.r1; h <= t.r2; h++) for (f = t.g1; f <= t.g2; f++) g += e[n(h, f, o)] || 0;
|
|
66
|
+
v[o] = p += g;
|
|
67
|
+
}
|
|
68
|
+
return v.forEach(function(S, m) {
|
|
69
|
+
Y[m] = p - S;
|
|
70
|
+
}), function(S) {
|
|
71
|
+
var m, I, A, d, _, w = S + "1", D = S + "2", G = 0;
|
|
72
|
+
for (o = t[w]; o <= t[D]; o++) if (v[o] > p / 2) {
|
|
73
|
+
for (A = t.copy(), d = t.copy(), _ = (m = o - t[w]) <= (I = t[D] - o) ? Math.min(t[D] - 1, ~~(o + I / 2)) : Math.max(t[w], ~~(o - 1 - m / 2)); !v[_]; ) _++;
|
|
74
|
+
for (G = Y[_]; !G && v[_ - 1]; ) G = Y[--_];
|
|
75
|
+
return A[D] = _, d[w] = A[D] + 1, [A, d];
|
|
76
|
+
}
|
|
77
|
+
}(c == s ? "r" : c == u ? "g" : "b");
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return a.prototype = { volume: function(e) {
|
|
81
|
+
var t = this;
|
|
82
|
+
return t._volume && !e || (t._volume = (t.r2 - t.r1 + 1) * (t.g2 - t.g1 + 1) * (t.b2 - t.b1 + 1)), t._volume;
|
|
83
|
+
}, count: function(e) {
|
|
84
|
+
var t = this, s = t.histo;
|
|
85
|
+
if (!t._count_set || e) {
|
|
86
|
+
var u, c, o, h = 0;
|
|
87
|
+
for (u = t.r1; u <= t.r2; u++) for (c = t.g1; c <= t.g2; c++) for (o = t.b1; o <= t.b2; o++) h += s[n(u, c, o)] || 0;
|
|
88
|
+
t._count = h, t._count_set = !0;
|
|
89
|
+
}
|
|
90
|
+
return t._count;
|
|
91
|
+
}, copy: function() {
|
|
92
|
+
var e = this;
|
|
93
|
+
return new a(e.r1, e.r2, e.g1, e.g2, e.b1, e.b2, e.histo);
|
|
94
|
+
}, avg: function(e) {
|
|
95
|
+
var t = this, s = t.histo;
|
|
96
|
+
if (!t._avg || e) {
|
|
97
|
+
var u, c, o, h, f = 0, g = 0, p = 0, v = 0;
|
|
98
|
+
if (t.r1 === t.r2 && t.g1 === t.g2 && t.b1 === t.b2) t._avg = [t.r1 << 3, t.g1 << 3, t.b1 << 3];
|
|
99
|
+
else {
|
|
100
|
+
for (c = t.r1; c <= t.r2; c++) for (o = t.g1; o <= t.g2; o++) for (h = t.b1; h <= t.b2; h++) f += u = s[n(c, o, h)] || 0, g += u * (c + 0.5) * 8, p += u * (o + 0.5) * 8, v += u * (h + 0.5) * 8;
|
|
101
|
+
t._avg = f ? [~~(g / f), ~~(p / f), ~~(v / f)] : [~~(8 * (t.r1 + t.r2 + 1) / 2), ~~(8 * (t.g1 + t.g2 + 1) / 2), ~~(8 * (t.b1 + t.b2 + 1) / 2)];
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return t._avg;
|
|
105
|
+
}, contains: function(e) {
|
|
106
|
+
var t = this, s = e[0] >> 3;
|
|
107
|
+
return gval = e[1] >> 3, bval = e[2] >> 3, s >= t.r1 && s <= t.r2 && gval >= t.g1 && gval <= t.g2 && bval >= t.b1 && bval <= t.b2;
|
|
108
|
+
} }, l.prototype = { push: function(e) {
|
|
109
|
+
this.vboxes.push({ vbox: e, color: e.avg() });
|
|
110
|
+
}, palette: function() {
|
|
111
|
+
return this.vboxes.map(function(e) {
|
|
112
|
+
return e.color;
|
|
113
|
+
});
|
|
114
|
+
}, size: function() {
|
|
115
|
+
return this.vboxes.size();
|
|
116
|
+
}, map: function(e) {
|
|
117
|
+
for (var t = this.vboxes, s = 0; s < t.size(); s++) if (t.peek(s).vbox.contains(e)) return t.peek(s).color;
|
|
118
|
+
return this.nearest(e);
|
|
119
|
+
}, nearest: function(e) {
|
|
120
|
+
for (var t, s, u, c = this.vboxes, o = 0; o < c.size(); o++) ((s = Math.sqrt(Math.pow(e[0] - c.peek(o).color[0], 2) + Math.pow(e[1] - c.peek(o).color[1], 2) + Math.pow(e[2] - c.peek(o).color[2], 2))) < t || t === void 0) && (t = s, u = c.peek(o).color);
|
|
121
|
+
return u;
|
|
122
|
+
}, forcebw: function() {
|
|
123
|
+
var e = this.vboxes;
|
|
124
|
+
e.sort(function(c, o) {
|
|
125
|
+
return x(k(c.color), k(o.color));
|
|
126
|
+
});
|
|
127
|
+
var t = e[0].color;
|
|
128
|
+
t[0] < 5 && t[1] < 5 && t[2] < 5 && (e[0].color = [0, 0, 0]);
|
|
129
|
+
var s = e.length - 1, u = e[s].color;
|
|
130
|
+
u[0] > 251 && u[1] > 251 && u[2] > 251 && (e[s].color = [255, 255, 255]);
|
|
131
|
+
} }, { quantize: function(e, t) {
|
|
132
|
+
if (!Number.isInteger(t) || t < 1 || t > 256) throw new Error("Invalid maximum color count. It must be an integer between 1 and 256.");
|
|
133
|
+
if (!e.length || t < 2 || t > 256 || !e.length || t < 2 || t > 256) return !1;
|
|
134
|
+
for (var s = [], u = /* @__PURE__ */ new Set(), c = 0; c < e.length; c++) {
|
|
135
|
+
var o = e[c], h = o.join(",");
|
|
136
|
+
u.has(h) || (u.add(h), s.push(o));
|
|
137
|
+
}
|
|
138
|
+
if (s.length <= t) return new tt(s);
|
|
139
|
+
var f = function(m) {
|
|
140
|
+
var I, A = new Array(32768);
|
|
141
|
+
return m.forEach(function(d) {
|
|
142
|
+
I = n(d[0] >> 3, d[1] >> 3, d[2] >> 3), A[I] = (A[I] || 0) + 1;
|
|
143
|
+
}), A;
|
|
144
|
+
}(e);
|
|
145
|
+
f.forEach(function() {
|
|
146
|
+
});
|
|
147
|
+
var g = function(m, I) {
|
|
148
|
+
var A, d, _, w = 1e6, D = 0, G = 1e6, N = 0, O = 1e6, F = 0;
|
|
149
|
+
return m.forEach(function(K) {
|
|
150
|
+
(A = K[0] >> 3) < w ? w = A : A > D && (D = A), (d = K[1] >> 3) < G ? G = d : d > N && (N = d), (_ = K[2] >> 3) < O ? O = _ : _ > F && (F = _);
|
|
151
|
+
}), new a(w, D, G, N, O, F, I);
|
|
152
|
+
}(e, f), p = new r(function(m, I) {
|
|
153
|
+
return x(m.count(), I.count());
|
|
154
|
+
});
|
|
155
|
+
function v(m, I) {
|
|
156
|
+
for (var A, d = m.size(), _ = 0; _ < 1e3; ) {
|
|
157
|
+
if (d >= I || _++ > 1e3) return;
|
|
158
|
+
if ((A = m.pop()).count()) {
|
|
159
|
+
var w = R(f, A), D = w[0], G = w[1];
|
|
160
|
+
if (!D) return;
|
|
161
|
+
m.push(D), G && (m.push(G), d++);
|
|
162
|
+
} else m.push(A), _++;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
p.push(g), v(p, 0.75 * t);
|
|
166
|
+
for (var Y = new r(function(m, I) {
|
|
167
|
+
return x(m.count() * m.volume(), I.count() * I.volume());
|
|
168
|
+
}); p.size(); ) Y.push(p.pop());
|
|
169
|
+
v(Y, t);
|
|
170
|
+
for (var S = new l(); Y.size(); ) S.push(Y.pop());
|
|
171
|
+
return S;
|
|
172
|
+
} };
|
|
173
|
+
}().quantize, X = function(n) {
|
|
174
|
+
this.canvas = document.createElement("canvas"), this.context = this.canvas.getContext("2d"), this.width = this.canvas.width = n.naturalWidth, this.height = this.canvas.height = n.naturalHeight, this.context.drawImage(n, 0, 0, this.width, this.height);
|
|
175
|
+
};
|
|
176
|
+
X.prototype.getImageData = function() {
|
|
177
|
+
return this.context.getImageData(0, 0, this.width, this.height);
|
|
178
|
+
};
|
|
179
|
+
var L = function() {
|
|
180
|
+
};
|
|
181
|
+
L.prototype.getColor = function(n, r) {
|
|
182
|
+
return r === void 0 && (r = 10), this.getPalette(n, 5, r)[0];
|
|
183
|
+
}, L.prototype.getPalette = function(n, r, a) {
|
|
184
|
+
var l = function(s) {
|
|
185
|
+
var u = s.colorCount, c = s.quality;
|
|
186
|
+
if (u !== void 0 && Number.isInteger(u)) {
|
|
187
|
+
if (u === 1) throw new Error("colorCount should be between 2 and 20. To get one color, call getColor() instead of getPalette()");
|
|
188
|
+
u = Math.max(u, 2), u = Math.min(u, 20);
|
|
189
|
+
} else u = 10;
|
|
190
|
+
return (c === void 0 || !Number.isInteger(c) || c < 1) && (c = 10), { colorCount: u, quality: c };
|
|
191
|
+
}({ colorCount: r, quality: a }), R = new X(n), e = function(s, u, c) {
|
|
192
|
+
for (var o, h, f, g, p, v = s, Y = [], S = 0; S < u; S += c) h = v[0 + (o = 4 * S)], f = v[o + 1], g = v[o + 2], ((p = v[o + 3]) === void 0 || p >= 125) && (h > 250 && f > 250 && g > 250 || Y.push([h, f, g]));
|
|
193
|
+
return Y;
|
|
194
|
+
}(R.getImageData().data, R.width * R.height, l.quality), t = nt(e, l.colorCount);
|
|
195
|
+
return t ? t.palette() : null;
|
|
196
|
+
}, L.prototype.getColorFromUrl = function(n, r, a) {
|
|
197
|
+
var l = this, R = document.createElement("img");
|
|
198
|
+
R.addEventListener("load", function() {
|
|
199
|
+
var e = l.getPalette(R, 5, a);
|
|
200
|
+
r(e[0], n);
|
|
201
|
+
}), R.src = n;
|
|
202
|
+
}, L.prototype.getImageData = function(n, r) {
|
|
203
|
+
var a = new XMLHttpRequest();
|
|
204
|
+
a.open("GET", n, !0), a.responseType = "arraybuffer", a.onload = function() {
|
|
205
|
+
if (this.status == 200) {
|
|
206
|
+
var l = new Uint8Array(this.response);
|
|
207
|
+
i = l.length;
|
|
208
|
+
for (var R = new Array(i), e = 0; e < l.length; e++) R[e] = String.fromCharCode(l[e]);
|
|
209
|
+
var t = R.join(""), s = window.btoa(t);
|
|
210
|
+
r("data:image/png;base64," + s);
|
|
211
|
+
}
|
|
212
|
+
}, a.send();
|
|
213
|
+
}, L.prototype.getColorAsync = function(n, r, a) {
|
|
214
|
+
var l = this;
|
|
215
|
+
this.getImageData(n, function(R) {
|
|
216
|
+
var e = document.createElement("img");
|
|
217
|
+
e.addEventListener("load", function() {
|
|
218
|
+
var t = l.getPalette(e, 5, a);
|
|
219
|
+
r(t[0], this);
|
|
220
|
+
}), e.src = R;
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
const et = "rgba(83, 82, 83, 1)", ut = {
|
|
224
|
+
BASE_COLOR: et,
|
|
225
|
+
BRAND: {
|
|
226
|
+
PRIMARY: z.PRIMARY,
|
|
227
|
+
PRIMARY_LIGHT: z.PRIMARY_LIGHT,
|
|
228
|
+
SECONDARY: z.SECONDARY
|
|
229
|
+
},
|
|
230
|
+
PRIMARY: {
|
|
231
|
+
PRIMARY_SUPER_DARK: E.GRAY_SUPER_DARK,
|
|
232
|
+
PRIMARY_DARK: E.GRAY_DARK,
|
|
233
|
+
PRIMARY_MEDIUM: E.GRAY_MEDIUM,
|
|
234
|
+
PRIMARY_MEDIUM_LIGHT: E.GRAY_MEDIUM_LIGHT,
|
|
235
|
+
PRIMARY_LIGHT: E.GRAY_LIGHT,
|
|
236
|
+
PRIMARY_LIGHTEST: E.GRAY_LIGHTEST,
|
|
237
|
+
PRIMARY_SUPER_LIGHT: E.GRAY_SUPER_LIGHT
|
|
238
|
+
},
|
|
239
|
+
SECONDARY: {
|
|
240
|
+
SECONDARY_SUPER_DARK: E.GRAY_SUPER_DARK,
|
|
241
|
+
SECONDARY_DARK: E.GRAY_DARK,
|
|
242
|
+
SECONDARY_MEDIUM: E.GRAY_MEDIUM,
|
|
243
|
+
SECONDARY_MEDIUM_LIGHT: E.GRAY_MEDIUM_LIGHT,
|
|
244
|
+
SECONDARY_LIGHT: E.GRAY_LIGHT,
|
|
245
|
+
SECONDARY_LIGHTEST: E.GRAY_LIGHTEST,
|
|
246
|
+
SECONDARY_SUPER_LIGHT: E.GRAY_SUPER_LIGHT
|
|
247
|
+
}
|
|
248
|
+
// Success, Warning & Danger palettes go here...
|
|
249
|
+
}, $ = (n, r) => r === void 0 ? `rgb(${n[0]}, ${n[1]}, ${n[2]})` : `rgba(${n[0]}, ${n[1]}, ${n[2]}, ${r})`, ct = (n, r) => M(J(n, r)), T = (n, r) => M(Q(n, r)), C = (n, r) => M(V(n, r)), lt = (n) => {
|
|
250
|
+
try {
|
|
251
|
+
return new L().getColor(n);
|
|
252
|
+
} catch {
|
|
253
|
+
return [255, 255, 255];
|
|
254
|
+
}
|
|
255
|
+
}, ft = (n) => {
|
|
256
|
+
const r = $(n), a = j("#FFFFFF", r, "#000000"), l = Array.from({ length: 12 }, (o, h) => {
|
|
257
|
+
const f = a(h / 11);
|
|
258
|
+
return C(f, 85e-4);
|
|
259
|
+
}), R = l.map(
|
|
260
|
+
(o) => T(q(o), 5e-3)
|
|
261
|
+
), e = M(T(Z(r, 180), 1)), t = j("#FFFFFF", e, "#000000"), s = Array.from({ length: 12 }, (o, h) => {
|
|
262
|
+
const f = t(h / 11);
|
|
263
|
+
return C(f, 0.1);
|
|
264
|
+
}), u = s.map(
|
|
265
|
+
(o) => C(q(o), 0.22)
|
|
266
|
+
), c = C(
|
|
267
|
+
rt(T(R[5], 0.115)),
|
|
268
|
+
0.05
|
|
269
|
+
);
|
|
270
|
+
return {
|
|
271
|
+
BASE_COLOR: $(n),
|
|
272
|
+
BRAND: {
|
|
273
|
+
PRIMARY: c,
|
|
274
|
+
PRIMARY_LIGHT: b(c, 0.25, {
|
|
275
|
+
min: 0.6,
|
|
276
|
+
max: 0.8
|
|
277
|
+
}),
|
|
278
|
+
SECONDARY: C(u[4], 0.02)
|
|
279
|
+
},
|
|
280
|
+
PRIMARY: {
|
|
281
|
+
//backgrounds
|
|
282
|
+
PRIMARY_SUPER_DARK: b(
|
|
283
|
+
y(l[9]),
|
|
284
|
+
-0.6,
|
|
285
|
+
{
|
|
286
|
+
min: 0,
|
|
287
|
+
max: 0.02
|
|
288
|
+
}
|
|
289
|
+
),
|
|
290
|
+
PRIMARY_DARK: b(
|
|
291
|
+
y(l[8]),
|
|
292
|
+
-0.4,
|
|
293
|
+
{
|
|
294
|
+
min: 0.01,
|
|
295
|
+
max: 0.02
|
|
296
|
+
}
|
|
297
|
+
),
|
|
298
|
+
//interactive components
|
|
299
|
+
PRIMARY_MEDIUM: b(R[7], -0.2, {
|
|
300
|
+
min: 0,
|
|
301
|
+
max: 0.11
|
|
302
|
+
}),
|
|
303
|
+
//borders and seperators
|
|
304
|
+
PRIMARY_MEDIUM_LIGHT: b(
|
|
305
|
+
C(R[6], 0.1),
|
|
306
|
+
0.08
|
|
307
|
+
),
|
|
308
|
+
//solid colors
|
|
309
|
+
PRIMARY_LIGHT: b(
|
|
310
|
+
T(R[5], 0.1),
|
|
311
|
+
0.16
|
|
312
|
+
),
|
|
313
|
+
//accessible text
|
|
314
|
+
PRIMARY_LIGHTEST: b(
|
|
315
|
+
T(R[3], 0.2),
|
|
316
|
+
0.12,
|
|
317
|
+
{
|
|
318
|
+
min: 0.5,
|
|
319
|
+
max: 0.9
|
|
320
|
+
}
|
|
321
|
+
),
|
|
322
|
+
PRIMARY_SUPER_LIGHT: b(R[1], 0.02, {
|
|
323
|
+
min: 0.86,
|
|
324
|
+
max: 0.98
|
|
325
|
+
})
|
|
326
|
+
},
|
|
327
|
+
SECONDARY: {
|
|
328
|
+
//backgrounds
|
|
329
|
+
SECONDARY_SUPER_DARK: b(
|
|
330
|
+
y(s[9]),
|
|
331
|
+
-0.6,
|
|
332
|
+
{
|
|
333
|
+
min: 0,
|
|
334
|
+
max: 0.02
|
|
335
|
+
}
|
|
336
|
+
),
|
|
337
|
+
SECONDARY_DARK: b(
|
|
338
|
+
y(s[8]),
|
|
339
|
+
-0.4,
|
|
340
|
+
{
|
|
341
|
+
min: 0.01,
|
|
342
|
+
max: 0.02
|
|
343
|
+
}
|
|
344
|
+
),
|
|
345
|
+
// interactive components
|
|
346
|
+
SECONDARY_MEDIUM: b(u[7], -0.2, {
|
|
347
|
+
min: 0,
|
|
348
|
+
max: 0.11
|
|
349
|
+
}),
|
|
350
|
+
//borders and seperators
|
|
351
|
+
SECONDARY_MEDIUM_LIGHT: b(
|
|
352
|
+
u[6],
|
|
353
|
+
0.1
|
|
354
|
+
),
|
|
355
|
+
//solid colors
|
|
356
|
+
SECONDARY_LIGHT: b(
|
|
357
|
+
T(u[5], 0.1),
|
|
358
|
+
0.16
|
|
359
|
+
),
|
|
360
|
+
//accessible text
|
|
361
|
+
SECONDARY_LIGHTEST: b(
|
|
362
|
+
T(u[3], 0.2),
|
|
363
|
+
0.12,
|
|
364
|
+
{
|
|
365
|
+
min: 0.5,
|
|
366
|
+
max: 0.9
|
|
367
|
+
}
|
|
368
|
+
),
|
|
369
|
+
SECONDARY_SUPER_LIGHT: b(
|
|
370
|
+
u[0],
|
|
371
|
+
0.02,
|
|
372
|
+
{
|
|
373
|
+
min: 0.86,
|
|
374
|
+
max: 0.98
|
|
375
|
+
}
|
|
376
|
+
)
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
}, b = (n, r, a = { min: 0.03, max: 0.97 }) => {
|
|
380
|
+
let l = n, R = P(l);
|
|
381
|
+
if (a.min < 0 && (a.min = 0), a.max > 1 && (a.max = 1), a.min >= a.max)
|
|
382
|
+
throw new Error("Invalid range: min must be less than max");
|
|
383
|
+
if (r > 0) {
|
|
384
|
+
const t = a.max - R;
|
|
385
|
+
if (t <= 0) return M(l);
|
|
386
|
+
const s = r * (t / (1 - R));
|
|
387
|
+
l = H(l, s);
|
|
388
|
+
} else if (r < 0) {
|
|
389
|
+
const t = R - a.min;
|
|
390
|
+
if (t <= 0) return M(l);
|
|
391
|
+
const s = r * (t / R);
|
|
392
|
+
l = U(l, Math.abs(s));
|
|
393
|
+
}
|
|
394
|
+
const e = P(l);
|
|
395
|
+
return (e > a.max || e < a.min) && (l = B(l, a)), M(l);
|
|
396
|
+
}, B = (n, r) => {
|
|
397
|
+
let a = n, l = P(a);
|
|
398
|
+
for (; l > r.max; )
|
|
399
|
+
a = U(a, 0.05), l = P(a);
|
|
400
|
+
for (; l < r.min; )
|
|
401
|
+
a = H(a, 0.05), l = P(a);
|
|
402
|
+
return M(a);
|
|
403
|
+
}, y = (n) => {
|
|
404
|
+
for (; W(n, "readable", E.GRAY_DARK); )
|
|
405
|
+
n = H(n, 0.01);
|
|
406
|
+
return M(n);
|
|
407
|
+
}, rt = (n) => {
|
|
408
|
+
for (; W(E.GRAY_SUPER_LIGHT, "readable", n); )
|
|
409
|
+
n = U(n, 0.01);
|
|
410
|
+
return M(n);
|
|
411
|
+
}, q = (n) => {
|
|
412
|
+
let r = n, a = P(M(r)), l = 0;
|
|
413
|
+
const R = 6;
|
|
414
|
+
for (; a < 0.16 && l < R; )
|
|
415
|
+
l++, r = H(r, 0.1), a = P(M(r));
|
|
416
|
+
for (; a > 0.6 && l < R; )
|
|
417
|
+
l++, r = U(r, 0.1), a = P(M(r));
|
|
418
|
+
return M(r);
|
|
419
|
+
}, ot = (n) => typeof n == "string" || n instanceof String;
|
|
420
|
+
function ht(...n) {
|
|
421
|
+
return n.filter(ot).join(" ");
|
|
422
|
+
}
|
|
423
|
+
const at = (n) => {
|
|
424
|
+
if (/^https?:\/\//.test(n)) {
|
|
425
|
+
const r = document.createElement("a");
|
|
426
|
+
return r.href = n, r.hostname;
|
|
427
|
+
}
|
|
428
|
+
return window.location.hostname;
|
|
429
|
+
}, Rt = (n) => {
|
|
430
|
+
const r = window.location.hostname, a = at(n);
|
|
431
|
+
return r !== a;
|
|
432
|
+
}, mt = (n, r) => {
|
|
433
|
+
if (n.metaKey || n.altKey || n.ctrlKey || n.shiftKey || n.button && n.button !== 0)
|
|
434
|
+
return;
|
|
435
|
+
n.preventDefault();
|
|
436
|
+
const a = r.startsWith("/") ? r : `/${r}`;
|
|
437
|
+
window.history.pushState({}, "", a), window.dispatchEvent(new PopStateEvent("popstate"));
|
|
438
|
+
};
|
|
439
|
+
export {
|
|
440
|
+
et as D,
|
|
441
|
+
ut as a,
|
|
442
|
+
$ as b,
|
|
443
|
+
ft as c,
|
|
444
|
+
C as d,
|
|
445
|
+
ht as e,
|
|
446
|
+
lt as g,
|
|
447
|
+
mt as h,
|
|
448
|
+
Rt as i,
|
|
449
|
+
T as s,
|
|
450
|
+
ct as t
|
|
451
|
+
};
|
|
452
|
+
//# sourceMappingURL=utils-KedSkjS1.mjs.map
|