@curiouslearning/gdl-player-core 1.2.7 → 1.3.0
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 +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +737 -733
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Swiper as m, SwiperSlide as h, useSwiper as g } from "swiper/react";
|
|
|
5
5
|
import { Pagination as _ } from "swiper/modules";
|
|
6
6
|
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/Player.scss?inline
|
|
8
|
-
var x = ":root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{z-index:1;width:100%;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate(0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:\"\";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}.swiper-lazy-preloader{z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-top-color:#0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}:is(.swiper:not(.swiper-watch-progress),.swiper-watch-progress .swiper-slide-visible) .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translate(0,0)}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);width:100%;left:0}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);display:inline-block}button.swiper-pagination-bullet{box-shadow:none;appearance:none;border:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity,1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets) .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets) .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:100% 0}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size,4px);height:100%;top:0;left:0}.swiper-pagination-lock{display:none}:host,:root{all:initial;--player-font-family:\"Quicksand\";--swiper-theme-color:#007aff}*,:before,:after{box-sizing:border-box}html,body,div,span,object,iframe,figure,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,code,em,img,small,strike,strong,sub,sup,tt,b,u,i,ol,ul,li,fieldset,form,label,table,caption,tbody,tfoot,thead,tr,th,td,main,canvas,embed,footer,header,nav,section,video{font-size:100%;font:inherit;vertical-align:baseline;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;color:initial;border:0;margin:0;padding:0}footer,header,nav,section,main{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:\"\";content:none}table{border-collapse:collapse;border-spacing:0}input{appearance:none;border-radius:0}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}*,:after,:before{box-sizing:border-box;border:0 solid #d7d8e4}.swiper{width:100%;height:100%}.swiper-slide{background:#fff;justify-content:center;align-items:center;font-size:18px;display:flex}.swiper-slide img{object-fit:cover;width:100%;height:100%;display:block}.player{width:100%;height:100dvh;font-family:var(--player-font-family), sans-serif;background:#fff;font-style:normal;font-weight:700;line-height:1.5;position:relative;overflow:hidden}.player .view-box{align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.player .view-box .bg{object-fit:contain;place-self:center;max-width:100%;max-height:100%;display:flex}.player .view-box .pagetext-wrapper{opacity:.8;color:#161e33;z-index:999;background:#e7e9ff;flex-direction:row;justify-content:center;align-items:center;height:clamp(1.875rem,6.9231vw - .6635rem,4.875rem);min-height:max-content;font-size:clamp(1rem,.375rem + 2vw,1.5rem);line-height:1;display:flex;position:absolute;bottom:0;left:0;right:0}.worditem.HL .word{will-change:transform;color:#3345e0;border-color:#3345e0;animation:1s ease-in-out infinite alternate glow;transform:scale(1.15)}.worditem .word{cursor:pointer;letter-spacing:0;border-bottom:2px solid #dcdcdc00;margin:0 2px;padding:0 2px;transition:all .25s ease-in-out;display:inline-block}.worditem :hover{color:#3345e0;border-color:#3345e0;animation:1s ease-in-out infinite alternate glow}.cover-page{flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex}.cover-page .cover-illustration{max-width:20rem;overflow:hidden}.cover-page .cover-illustration img{object-fit:cover;object-position:center}.cover-page .cover-text h1{color:#000;font-size:clamp(1rem,4vw - .25rem,1.75rem);font-weight:700}.cover-page .cover-text small{white-space:pre-wrap;font-size:clamp(.8rem,2vw - .2rem,1rem)}.credits-page{background-color:#f5f3ff;flex-direction:column;align-items:center;width:100%;height:100%;display:flex;overflow:auto}.credits-page .credits-page-inner{background-color:#fff;flex-flow:wrap;justify-content:center;align-items:center;gap:2rem;width:100%;padding:clamp(1.5rem,.25rem + 4vw,2.5rem) clamp(1rem,3vw,3rem);display:flex}.credits-page .credits-page-inner .logo-item{height:clamp(3rem,1.0916rem + 6.1069vw,5rem)}.credits-page .credits-page-inner .logo-item img{max-height:100%}.credits-page .credits-page-bottom{text-align:center;margin-top:.5rem;padding-left:clamp(2.5rem,16.7939vw - 2.7481rem,8rem);padding-right:clamp(2.5rem,16.7939vw - 2.7481rem,8rem)}.credits-page .credits-page-bottom h1{color:#000;padding-top:1rem;padding-bottom:1rem;font-size:clamp(1rem,4vw - .25rem,2rem);font-weight:700}.credits-page .credits-page-bottom small{white-space:pre-wrap;font-size:clamp(.8rem,2vw - .2rem,1rem)}.absolute{position:absolute}.mirror-item{transform:scaleX(-1)}.pageContentWrapper{width:100%;height:100%;display:flex;position:relative;overflow:hidden}.pageContentWrapper.layout-btm-aligned .pagetext-wrapper{width:100%;bottom:0}.page-text-overlay{z-index:10;position:absolute}.pagetext-wrapper{text-align:center;font-weight:700}.pagetext-wrapper .textwrapper-inner{flex:auto;min-width:0;max-width:100%;margin:0 auto;position:relative}.pagetext-wrapper .textcontainer{white-space:normal;word-break:break-word;width:100%;display:block}.page-text-overlay *,.pagetext-wrapper *{color:inherit}.background{width:100%;height:100%}.background img{object-fit:cover;width:100%;height:100%}.lazysvg{display:inline-block}.lazysvg img{z-index:-10;width:100%;max-width:100%;height:100%;max-height:100%}.ui.btn{z-index:50;border-radius:100%;justify-content:center;align-items:center;transition:background-color .1s linear;display:flex;position:absolute;box-shadow:0 12px 16px -8px #3f265833}.ui.btn.audioplay{color:#fff;background:#007737;width:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);height:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);top:1.5%;right:1.5%}.ui.btn.audioplay>svg{margin-left:.25rem}.ui.btn.audioplay:disabled{background:#d7d8e4}.ui.btn.audioplay:active{background:#018d41}.ui.btn.audioplay.playing{color:#9391ac;cursor:default}.ui.btn:active{box-shadow:none}.ui.btn.swipe{color:#5968ec;cursor:pointer;background:#f2f4ff;width:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);height:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);top:45%}.ui.btn.swipe:active{background-color:#dde0ff}.ui.btn:focus-visible{outline-color:#161e33}.ui.btn.swipe.prev{left:1%}.ui.btn.swipe.next{right:1%}.ui.btn.swipe:disabled{cursor:default;background-color:#d7d8e4;transition:background-color .1s linear}.ui.btn.swipe:disabled svg{stroke:#9391ac;fill:#9391ac}[dir=rtl] .ui.btn.audioplay{left:1.5%;right:auto}", S = (e) => e.replace(/\\/g, "\\\\").replace(/'/g, "\\'"), C = (e = [], t, n) => {
|
|
8
|
+
var x = ":root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{z-index:1;width:100%;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate(0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:\"\";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}.swiper-lazy-preloader{z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-top-color:#0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}:is(.swiper:not(.swiper-watch-progress),.swiper-watch-progress .swiper-slide-visible) .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translate(0,0)}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);width:100%;left:0}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);display:inline-block}button.swiper-pagination-bullet{box-shadow:none;appearance:none;border:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity,1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets) .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets) .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:100% 0}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size,4px);height:100%;top:0;left:0}.swiper-pagination-lock{display:none}:host,:root{all:initial;--player-font-family:\"Quicksand\";--swiper-theme-color:#007aff}*,:before,:after{box-sizing:border-box}html,body,div,span,object,iframe,figure,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,code,em,img,small,strike,strong,sub,sup,tt,b,u,i,ol,ul,li,fieldset,form,label,table,caption,tbody,tfoot,thead,tr,th,td,main,canvas,embed,footer,header,nav,section,video{font-size:100%;font:inherit;vertical-align:baseline;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;color:initial;border:0;margin:0;padding:0}footer,header,nav,section,main{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:\"\";content:none}table{border-collapse:collapse;border-spacing:0}input{appearance:none;border-radius:0}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}*,:after,:before{box-sizing:border-box;border:0 solid #d7d8e4}.swiper{width:100%;height:100%}.swiper-slide{background:#fff;justify-content:center;align-items:center;font-size:18px;display:flex}.swiper-slide img{object-fit:cover;width:100%;height:100%;display:block}.player{width:100%;height:100dvh;font-family:var(--player-font-family), sans-serif;background:#fff;font-style:normal;font-weight:700;line-height:1.5;position:relative;overflow:hidden}.player.centered{justify-content:center;align-items:center;display:flex}.player .loader{border:.25rem solid #0000001a;border-top-color:var(--swiper-theme-color,#007aff);border-radius:50%;width:2.5rem;height:2.5rem;animation:.8s linear infinite player-loader-spin}.player .view-box{align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.player .view-box .bg{object-fit:contain;place-self:center;max-width:100%;max-height:100%;display:flex}.player .view-box .pagetext-wrapper{opacity:.8;color:#161e33;z-index:999;background:#e7e9ff;flex-direction:row;justify-content:center;align-items:center;height:clamp(1.875rem,6.9231vw - .6635rem,4.875rem);min-height:max-content;font-size:clamp(1rem,.375rem + 2vw,1.5rem);line-height:1;display:flex;position:absolute;bottom:0;left:0;right:0}.worditem.HL .word{will-change:transform;color:#3345e0;border-color:#3345e0;animation:1s ease-in-out infinite alternate glow;transform:scale(1.15)}.worditem .word{cursor:pointer;letter-spacing:0;border-bottom:2px solid #dcdcdc00;margin:0 2px;padding:0 2px;transition:all .25s ease-in-out;display:inline-block}.worditem :hover{color:#3345e0;border-color:#3345e0;animation:1s ease-in-out infinite alternate glow}.cover-page{flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex}.cover-page .cover-illustration{max-width:20rem;overflow:hidden}.cover-page .cover-illustration img{object-fit:cover;object-position:center}.cover-page .cover-text h1{color:#000;font-size:clamp(1rem,4vw - .25rem,1.75rem);font-weight:700}.cover-page .cover-text small{white-space:pre-wrap;font-size:clamp(.8rem,2vw - .2rem,1rem)}.credits-page{background-color:#f5f3ff;flex-direction:column;align-items:center;width:100%;height:100%;display:flex;overflow:auto}.credits-page .credits-page-inner{background-color:#fff;flex-flow:wrap;justify-content:center;align-items:center;gap:2rem;width:100%;padding:clamp(1.5rem,.25rem + 4vw,2.5rem) clamp(1rem,3vw,3rem);display:flex}.credits-page .credits-page-inner .logo-item{height:clamp(3rem,1.0916rem + 6.1069vw,5rem)}.credits-page .credits-page-inner .logo-item img{max-height:100%}.credits-page .credits-page-bottom{text-align:center;margin-top:.5rem;padding-left:clamp(2.5rem,16.7939vw - 2.7481rem,8rem);padding-right:clamp(2.5rem,16.7939vw - 2.7481rem,8rem)}.credits-page .credits-page-bottom h1{color:#000;padding-top:1rem;padding-bottom:1rem;font-size:clamp(1rem,4vw - .25rem,2rem);font-weight:700}.credits-page .credits-page-bottom small{white-space:pre-wrap;font-size:clamp(.8rem,2vw - .2rem,1rem)}.absolute{position:absolute}.mirror-item{transform:scaleX(-1)}.pageContentWrapper{width:100%;height:100%;display:flex;position:relative;overflow:hidden}.pageContentWrapper.layout-btm-aligned .pagetext-wrapper{width:100%;bottom:0}.page-text-overlay{z-index:10;position:absolute}.pagetext-wrapper{text-align:center;font-weight:700}.pagetext-wrapper .textwrapper-inner{flex:auto;min-width:0;max-width:100%;margin:0 auto;position:relative}.pagetext-wrapper .textcontainer{white-space:normal;word-break:break-word;width:100%;display:block}.page-text-overlay *,.pagetext-wrapper *{color:inherit}.background{width:100%;height:100%}.background img{object-fit:cover;width:100%;height:100%}.lazysvg{display:inline-block}.lazysvg img{z-index:-10;width:100%;max-width:100%;height:100%;max-height:100%}.ui.btn{z-index:50;border-radius:100%;justify-content:center;align-items:center;transition:background-color .1s linear;display:flex;position:absolute;box-shadow:0 12px 16px -8px #3f265833}.ui.btn.audioplay{color:#fff;background:#007737;width:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);height:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);top:1.5%;right:1.5%}.ui.btn.audioplay>svg{margin-left:.25rem}.ui.btn.audioplay:disabled{background:#d7d8e4}.ui.btn.audioplay:active{background:#018d41}.ui.btn.audioplay.playing{color:#9391ac;cursor:default}.ui.btn:active{box-shadow:none}.ui.btn.swipe{color:#5968ec;cursor:pointer;background:#f2f4ff;width:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);height:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);top:45%}.ui.btn.swipe:active{background-color:#dde0ff}.ui.btn:focus-visible{outline-color:#161e33}.ui.btn.swipe.prev{left:1%}.ui.btn.swipe.next{right:1%}.ui.btn.swipe:disabled{cursor:default;background-color:#d7d8e4;transition:background-color .1s linear}.ui.btn.swipe:disabled svg{stroke:#9391ac;fill:#9391ac}[dir=rtl] .ui.btn.audioplay{left:1.5%;right:auto}@keyframes player-loader-spin{to{transform:rotate(360deg)}}", S = (e) => e.replace(/\\/g, "\\\\").replace(/'/g, "\\'"), C = (e = [], t, n) => {
|
|
9
9
|
if (e.length === 0 || !t && !n) return e;
|
|
10
10
|
if (t) {
|
|
11
11
|
let n = e.filter((e) => e.language && e.language.includes(t));
|
|
@@ -30,21 +30,21 @@ var x = ":root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;mar
|
|
|
30
30
|
className: void 0,
|
|
31
31
|
style: void 0,
|
|
32
32
|
attr: void 0
|
|
33
|
-
}, E = a.createContext && /*#__PURE__*/ a.createContext(T),
|
|
33
|
+
}, E = a.createContext && /*#__PURE__*/ a.createContext(T), D = [
|
|
34
34
|
"attr",
|
|
35
35
|
"size",
|
|
36
36
|
"title"
|
|
37
37
|
];
|
|
38
|
-
function
|
|
38
|
+
function ee(e, t) {
|
|
39
39
|
if (e == null) return {};
|
|
40
|
-
var n, r, i =
|
|
40
|
+
var n, r, i = te(e, t);
|
|
41
41
|
if (Object.getOwnPropertySymbols) {
|
|
42
42
|
var a = Object.getOwnPropertySymbols(e);
|
|
43
43
|
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
44
44
|
}
|
|
45
45
|
return i;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function te(e, t) {
|
|
48
48
|
if (e == null) return {};
|
|
49
49
|
var n = {};
|
|
50
50
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -53,16 +53,16 @@ function ne(e, t) {
|
|
|
53
53
|
}
|
|
54
54
|
return n;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return
|
|
56
|
+
function O() {
|
|
57
|
+
return O = Object.assign ? Object.assign.bind() : function(e) {
|
|
58
58
|
for (var t = 1; t < arguments.length; t++) {
|
|
59
59
|
var n = arguments[t];
|
|
60
60
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
61
61
|
}
|
|
62
62
|
return e;
|
|
63
|
-
},
|
|
63
|
+
}, O.apply(null, arguments);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function k(e, t) {
|
|
66
66
|
var n = Object.keys(e);
|
|
67
67
|
if (Object.getOwnPropertySymbols) {
|
|
68
68
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -72,30 +72,30 @@ function O(e, t) {
|
|
|
72
72
|
}
|
|
73
73
|
return n;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function A(e) {
|
|
76
76
|
for (var t = 1; t < arguments.length; t++) {
|
|
77
77
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
78
|
-
t % 2 ?
|
|
79
|
-
|
|
80
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
78
|
+
t % 2 ? k(Object(n), !0).forEach(function(t) {
|
|
79
|
+
j(e, t, n[t]);
|
|
80
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k(Object(n)).forEach(function(t) {
|
|
81
81
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
return e;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return (t =
|
|
86
|
+
function j(e, t, n) {
|
|
87
|
+
return (t = M(t)) in e ? Object.defineProperty(e, t, {
|
|
88
88
|
value: n,
|
|
89
89
|
enumerable: !0,
|
|
90
90
|
configurable: !0,
|
|
91
91
|
writable: !0
|
|
92
92
|
}) : e[t] = n, e;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
var t =
|
|
94
|
+
function M(e) {
|
|
95
|
+
var t = N(e, "string");
|
|
96
96
|
return typeof t == "symbol" ? t : t + "";
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function N(e, t) {
|
|
99
99
|
if (typeof e != "object" || !e) return e;
|
|
100
100
|
var n = e[Symbol.toPrimitive];
|
|
101
101
|
if (n !== void 0) {
|
|
@@ -105,22 +105,22 @@ function M(e, t) {
|
|
|
105
105
|
}
|
|
106
106
|
return (t === "string" ? String : Number)(e);
|
|
107
107
|
}
|
|
108
|
-
function N(e) {
|
|
109
|
-
return e && e.map((e, t) => /*#__PURE__*/ a.createElement(e.tag, k({ key: t }, e.attr), N(e.child)));
|
|
110
|
-
}
|
|
111
108
|
function P(e) {
|
|
112
|
-
return (t) => /*#__PURE__*/ a.createElement(
|
|
109
|
+
return e && e.map((e, t) => /*#__PURE__*/ a.createElement(e.tag, A({ key: t }, e.attr), P(e.child)));
|
|
113
110
|
}
|
|
114
|
-
function
|
|
111
|
+
function F(e) {
|
|
112
|
+
return (t) => /*#__PURE__*/ a.createElement(ne, O({ attr: A({}, e.attr) }, t), P(e.child));
|
|
113
|
+
}
|
|
114
|
+
function ne(e) {
|
|
115
115
|
var t = (t) => {
|
|
116
|
-
var { attr: n, size: r, title: i } = e, o =
|
|
117
|
-
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /*#__PURE__*/ a.createElement("svg",
|
|
116
|
+
var { attr: n, size: r, title: i } = e, o = ee(e, D), s = r || t.size || "1em", c;
|
|
117
|
+
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /*#__PURE__*/ a.createElement("svg", O({
|
|
118
118
|
stroke: "currentColor",
|
|
119
119
|
fill: "currentColor",
|
|
120
120
|
strokeWidth: "0"
|
|
121
121
|
}, t.attr, n, o, {
|
|
122
122
|
className: c,
|
|
123
|
-
style:
|
|
123
|
+
style: A(A({ color: e.color || t.color }, t.style), e.style),
|
|
124
124
|
height: s,
|
|
125
125
|
width: s,
|
|
126
126
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -130,8 +130,8 @@ function re(e) {
|
|
|
130
130
|
}
|
|
131
131
|
//#endregion
|
|
132
132
|
//#region node_modules/react-icons/io/index.mjs
|
|
133
|
-
function
|
|
134
|
-
return
|
|
133
|
+
function I(e) {
|
|
134
|
+
return F({
|
|
135
135
|
tag: "svg",
|
|
136
136
|
attr: { viewBox: "0 0 512 512" },
|
|
137
137
|
child: [{
|
|
@@ -141,8 +141,8 @@ function ie(e) {
|
|
|
141
141
|
}]
|
|
142
142
|
})(e);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
return
|
|
144
|
+
function re(e) {
|
|
145
|
+
return F({
|
|
146
146
|
tag: "svg",
|
|
147
147
|
attr: { viewBox: "0 0 512 512" },
|
|
148
148
|
child: [{
|
|
@@ -154,7 +154,7 @@ function ae(e) {
|
|
|
154
154
|
}
|
|
155
155
|
//#endregion
|
|
156
156
|
//#region src/components/SwipeNav.tsx
|
|
157
|
-
var
|
|
157
|
+
var ie = ({ isFirst: e, isLast: t, activeIndex: n, textDirection: r }) => {
|
|
158
158
|
let i = g(), a = r === "RTL";
|
|
159
159
|
return /* @__PURE__ */ b("div", {
|
|
160
160
|
className: "swipernavigation",
|
|
@@ -166,7 +166,7 @@ var oe = ({ isFirst: e, isLast: t, activeIndex: n, textDirection: r }) => {
|
|
|
166
166
|
onClick: () => {
|
|
167
167
|
a ? i.slideNext() : i.slidePrev();
|
|
168
168
|
},
|
|
169
|
-
children: /* @__PURE__ */ y(
|
|
169
|
+
children: /* @__PURE__ */ y(re, { size: "75%" })
|
|
170
170
|
}), /* @__PURE__ */ y("button", {
|
|
171
171
|
disabled: a ? e : t,
|
|
172
172
|
"aria-label": a ? "Previous page" : "Next page",
|
|
@@ -174,14 +174,14 @@ var oe = ({ isFirst: e, isLast: t, activeIndex: n, textDirection: r }) => {
|
|
|
174
174
|
a ? i.slidePrev() : i.slideNext();
|
|
175
175
|
},
|
|
176
176
|
className: `ui btn swipe next ${(a ? e : t) ? " disabled" : ""}`,
|
|
177
|
-
children: /* @__PURE__ */ y(
|
|
177
|
+
children: /* @__PURE__ */ y(I, { size: "75%" })
|
|
178
178
|
})]
|
|
179
179
|
});
|
|
180
180
|
};
|
|
181
181
|
//#endregion
|
|
182
182
|
//#region node_modules/react-icons/fa/index.mjs
|
|
183
|
-
function
|
|
184
|
-
return
|
|
183
|
+
function ae(e) {
|
|
184
|
+
return F({
|
|
185
185
|
tag: "svg",
|
|
186
186
|
attr: { viewBox: "0 0 448 512" },
|
|
187
187
|
child: [{
|
|
@@ -193,9 +193,9 @@ function se(e) {
|
|
|
193
193
|
}
|
|
194
194
|
//#endregion
|
|
195
195
|
//#region src/types/book.ts
|
|
196
|
-
var
|
|
196
|
+
var oe = /* @__PURE__ */ function(e) {
|
|
197
197
|
return e[e.BOTTOM = 1] = "BOTTOM", e[e.DYNAMIC = 2] = "DYNAMIC", e;
|
|
198
|
-
}({}),
|
|
198
|
+
}({}), se = (t) => {
|
|
199
199
|
let { background: r } = t, i = e();
|
|
200
200
|
return /* @__PURE__ */ y("div", {
|
|
201
201
|
className: "background",
|
|
@@ -206,7 +206,7 @@ var ce = /* @__PURE__ */ function(e) {
|
|
|
206
206
|
loading: "lazy"
|
|
207
207
|
}), /* @__PURE__ */ y("div", { className: "swiper-lazy-preloader" })] })
|
|
208
208
|
});
|
|
209
|
-
},
|
|
209
|
+
}, ce = a.memo(({ segments: t, pageAudio: n, setIsPlaying: i, onWordSelect: a, highlightIds: o, ref: s, textDirection: c = "LTR" }) => {
|
|
210
210
|
let d = f(null), [m, h] = p(!1), g = f([]), _ = e(), x = f(null), S = f(new Audio()), C = f(null), w = () => {
|
|
211
211
|
x.current && clearInterval(x.current);
|
|
212
212
|
let e = () => {
|
|
@@ -271,7 +271,7 @@ var ce = /* @__PURE__ */ function(e) {
|
|
|
271
271
|
]
|
|
272
272
|
}, e.uid))
|
|
273
273
|
}) });
|
|
274
|
-
}),
|
|
274
|
+
}), le = (e) => e / 600 * 100, ue = (e) => e / 1280 * 100, de = ({ item: e, screenScale: t, children: n, onActivate: r }) => {
|
|
275
275
|
let { position: i, scaleSize: a } = e, { top: o, left: s } = i, c = !!e.effect?.type || e.mediaType === "lottie";
|
|
276
276
|
return /* @__PURE__ */ y("div", {
|
|
277
277
|
className: `absolute ${e.mirror ? "mirror-item" : ""}`,
|
|
@@ -279,8 +279,8 @@ var ce = /* @__PURE__ */ function(e) {
|
|
|
279
279
|
zIndex: e.zIndex || 10,
|
|
280
280
|
width: `${e.width * a / 100 * t / 100}px`,
|
|
281
281
|
height: e.height === 0 ? "auto" : `${e.height * a / 100 * t / 100}px`,
|
|
282
|
-
top: `${
|
|
283
|
-
left: `${
|
|
282
|
+
top: `${le(o)}%`,
|
|
283
|
+
left: `${ue(s)}%`
|
|
284
284
|
},
|
|
285
285
|
...c ? {
|
|
286
286
|
role: "button",
|
|
@@ -294,14 +294,14 @@ var ce = /* @__PURE__ */ function(e) {
|
|
|
294
294
|
children: n && n
|
|
295
295
|
});
|
|
296
296
|
};
|
|
297
|
-
|
|
297
|
+
de.displayName = "MediaItemWrapper";
|
|
298
298
|
//#endregion
|
|
299
299
|
//#region src/components/effectlib/noeffect.tsx
|
|
300
|
-
var
|
|
300
|
+
var fe = {
|
|
301
301
|
display: "block",
|
|
302
302
|
width: "100%",
|
|
303
303
|
height: "100%"
|
|
304
|
-
},
|
|
304
|
+
}, pe = ({ item: e, children: t, effectCallback: n, onEffectEnd: r, onEffectStart: i, ref: a }) => {
|
|
305
305
|
let [o, s] = p(!1), c = f(!1), l = (t = !0) => {
|
|
306
306
|
!o && !c.current && (c.current = !0, s(!0), i && i(), !t && n && n(e), c.current = !1, s(!1), r && r());
|
|
307
307
|
};
|
|
@@ -313,62 +313,62 @@ var me = {
|
|
|
313
313
|
onClick: (e) => {
|
|
314
314
|
e.stopPropagation(), l(!1);
|
|
315
315
|
},
|
|
316
|
-
style:
|
|
316
|
+
style: fe,
|
|
317
317
|
children: t
|
|
318
318
|
});
|
|
319
319
|
};
|
|
320
320
|
//#endregion
|
|
321
321
|
//#region node_modules/framer-motion/dist/es/utils/use-constant.mjs
|
|
322
|
-
function
|
|
322
|
+
function me(e) {
|
|
323
323
|
let t = f(null);
|
|
324
324
|
return t.current === null && (t.current = e()), t.current;
|
|
325
325
|
}
|
|
326
326
|
//#endregion
|
|
327
327
|
//#region node_modules/motion-utils/dist/es/array.mjs
|
|
328
|
-
function
|
|
328
|
+
function he(e, t) {
|
|
329
329
|
e.indexOf(t) === -1 && e.push(t);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function ge(e, t) {
|
|
332
332
|
let n = e.indexOf(t);
|
|
333
333
|
n > -1 && e.splice(n, 1);
|
|
334
334
|
}
|
|
335
335
|
//#endregion
|
|
336
336
|
//#region node_modules/motion-utils/dist/es/clamp.mjs
|
|
337
|
-
var
|
|
337
|
+
var L = (e, t, n) => n > t ? t : n < e ? e : n;
|
|
338
338
|
//#endregion
|
|
339
339
|
//#region node_modules/motion-utils/dist/es/format-error-message.mjs
|
|
340
|
-
function
|
|
340
|
+
function _e(e, t) {
|
|
341
341
|
return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
|
|
342
342
|
}
|
|
343
343
|
//#endregion
|
|
344
344
|
//#region node_modules/motion-utils/dist/es/errors.mjs
|
|
345
|
-
var
|
|
346
|
-
typeof process < "u" && process.env.NODE_ENV !== "production" && (
|
|
347
|
-
!e && typeof console < "u" && console.warn(
|
|
348
|
-
},
|
|
349
|
-
if (!e) throw Error(
|
|
345
|
+
var ve = () => {}, R = () => {};
|
|
346
|
+
typeof process < "u" && process.env.NODE_ENV !== "production" && (ve = (e, t, n) => {
|
|
347
|
+
!e && typeof console < "u" && console.warn(_e(t, n));
|
|
348
|
+
}, R = (e, t, n) => {
|
|
349
|
+
if (!e) throw Error(_e(t, n));
|
|
350
350
|
});
|
|
351
351
|
//#endregion
|
|
352
352
|
//#region node_modules/motion-utils/dist/es/global-config.mjs
|
|
353
|
-
var
|
|
353
|
+
var z = {}, ye = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), be = (e) => typeof e == "object" && !!e, xe = (e) => /^0[^.\s]+$/u.test(e);
|
|
354
354
|
//#endregion
|
|
355
355
|
//#region node_modules/motion-utils/dist/es/memo.mjs
|
|
356
356
|
/*#__NO_SIDE_EFFECTS__*/
|
|
357
|
-
function
|
|
357
|
+
function Se(e) {
|
|
358
358
|
let t;
|
|
359
359
|
return () => (t === void 0 && (t = e()), t);
|
|
360
360
|
}
|
|
361
361
|
//#endregion
|
|
362
362
|
//#region node_modules/motion-utils/dist/es/noop.mjs
|
|
363
|
-
var
|
|
363
|
+
var Ce = /* @__NO_SIDE_EFFECTS__ */ (e) => e, we = (...e) => e.reduce((e, t) => (n) => t(e(n))), Te = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
|
|
364
364
|
let r = t - e;
|
|
365
365
|
return r ? (n - e) / r : 1;
|
|
366
|
-
},
|
|
366
|
+
}, Ee = class {
|
|
367
367
|
constructor() {
|
|
368
368
|
this.subscriptions = [];
|
|
369
369
|
}
|
|
370
370
|
add(e) {
|
|
371
|
-
return
|
|
371
|
+
return he(this.subscriptions, e), () => ge(this.subscriptions, e);
|
|
372
372
|
}
|
|
373
373
|
notify(e, t, n) {
|
|
374
374
|
let r = this.subscriptions.length;
|
|
@@ -384,60 +384,60 @@ var Te = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Ee = (...e) => e.reduce((e, t) =>
|
|
|
384
384
|
clear() {
|
|
385
385
|
this.subscriptions.length = 0;
|
|
386
386
|
}
|
|
387
|
-
},
|
|
388
|
-
function
|
|
389
|
-
e ||
|
|
387
|
+
}, B = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, V = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, De = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, Oe = /* @__PURE__ */ new Set();
|
|
388
|
+
function ke(e, t, n) {
|
|
389
|
+
e || Oe.has(t) || (console.warn(_e(t, n)), Oe.add(t));
|
|
390
390
|
}
|
|
391
391
|
//#endregion
|
|
392
392
|
//#region node_modules/motion-utils/dist/es/wrap.mjs
|
|
393
|
-
var
|
|
393
|
+
var Ae = (e, t, n) => {
|
|
394
394
|
let r = t - e;
|
|
395
395
|
return ((n - e) % r + r) % r + e;
|
|
396
|
-
},
|
|
397
|
-
function
|
|
396
|
+
}, je = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Me = 1e-7, Ne = 12;
|
|
397
|
+
function Pe(e, t, n, r, i) {
|
|
398
398
|
let a, o, s = 0;
|
|
399
399
|
do
|
|
400
|
-
o = t + (n - t) / 2, a =
|
|
401
|
-
while (Math.abs(a) >
|
|
400
|
+
o = t + (n - t) / 2, a = je(o, r, i) - e, a > 0 ? n = o : t = o;
|
|
401
|
+
while (Math.abs(a) > Me && ++s < Ne);
|
|
402
402
|
return o;
|
|
403
403
|
}
|
|
404
404
|
/*#__NO_SIDE_EFFECTS__*/
|
|
405
|
-
function
|
|
406
|
-
if (e === t && n === r) return
|
|
407
|
-
let i = (t) =>
|
|
408
|
-
return (e) => e === 0 || e === 1 ? e :
|
|
405
|
+
function Fe(e, t, n, r) {
|
|
406
|
+
if (e === t && n === r) return Ce;
|
|
407
|
+
let i = (t) => Pe(t, 0, 1, e, n);
|
|
408
|
+
return (e) => e === 0 || e === 1 ? e : je(i(e), t, r);
|
|
409
409
|
}
|
|
410
410
|
//#endregion
|
|
411
411
|
//#region node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
|
|
412
|
-
var
|
|
412
|
+
var Ie = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Le = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), Re = /*@__PURE__*/ Fe(.33, 1.53, .69, .99), ze = /*@__PURE__*/ Le(Re), Be = /*@__PURE__*/ Ie(ze), Ve = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * ze(e) : .5 * (2 - 2 ** (-10 * (e - 1))), He = (e) => 1 - Math.sin(Math.acos(e)), Ue = /* @__PURE__ */ Le(He), We = /* @__PURE__ */ Ie(He), Ge = /*@__PURE__*/ Fe(.42, 0, 1, 1), Ke = /*@__PURE__*/ Fe(0, 0, .58, 1), qe = /*@__PURE__*/ Fe(.42, 0, .58, 1), Je = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
|
|
413
413
|
//#endregion
|
|
414
414
|
//#region node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs
|
|
415
415
|
/*#__NO_SIDE_EFFECTS__*/
|
|
416
|
-
function
|
|
417
|
-
return /* @__PURE__ */
|
|
416
|
+
function Ye(e, t) {
|
|
417
|
+
return /* @__PURE__ */ Je(e) ? e[Ae(0, e.length, t)] : e;
|
|
418
418
|
}
|
|
419
419
|
//#endregion
|
|
420
420
|
//#region node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs
|
|
421
|
-
var
|
|
422
|
-
linear:
|
|
423
|
-
easeIn:
|
|
424
|
-
easeInOut:
|
|
425
|
-
easeOut:
|
|
426
|
-
circIn:
|
|
427
|
-
circInOut:
|
|
428
|
-
circOut:
|
|
429
|
-
backIn:
|
|
430
|
-
backInOut:
|
|
431
|
-
backOut:
|
|
432
|
-
anticipate:
|
|
433
|
-
},
|
|
434
|
-
if (/* @__PURE__ */
|
|
435
|
-
|
|
421
|
+
var Xe = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", Ze = {
|
|
422
|
+
linear: Ce,
|
|
423
|
+
easeIn: Ge,
|
|
424
|
+
easeInOut: qe,
|
|
425
|
+
easeOut: Ke,
|
|
426
|
+
circIn: He,
|
|
427
|
+
circInOut: We,
|
|
428
|
+
circOut: Ue,
|
|
429
|
+
backIn: ze,
|
|
430
|
+
backInOut: Be,
|
|
431
|
+
backOut: Re,
|
|
432
|
+
anticipate: Ve
|
|
433
|
+
}, Qe = (e) => typeof e == "string", $e = (e) => {
|
|
434
|
+
if (/* @__PURE__ */ Xe(e)) {
|
|
435
|
+
R(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
436
436
|
let [t, n, r, i] = e;
|
|
437
|
-
return /* @__PURE__ */
|
|
438
|
-
} else if (
|
|
437
|
+
return /* @__PURE__ */ Fe(t, n, r, i);
|
|
438
|
+
} else if (Qe(e)) return R(Ze[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Ze[e];
|
|
439
439
|
return e;
|
|
440
|
-
},
|
|
440
|
+
}, et = [
|
|
441
441
|
"setup",
|
|
442
442
|
"read",
|
|
443
443
|
"resolveKeyframes",
|
|
@@ -446,13 +446,13 @@ var Qe = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "n
|
|
|
446
446
|
"preRender",
|
|
447
447
|
"render",
|
|
448
448
|
"postRender"
|
|
449
|
-
],
|
|
449
|
+
], tt = {
|
|
450
450
|
value: null,
|
|
451
451
|
addProjectionMetrics: null
|
|
452
452
|
};
|
|
453
453
|
//#endregion
|
|
454
454
|
//#region node_modules/motion-dom/dist/es/frameloop/render-step.mjs
|
|
455
|
-
function
|
|
455
|
+
function nt(e, t) {
|
|
456
456
|
let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, a = !1, o = /* @__PURE__ */ new WeakSet(), s = {
|
|
457
457
|
delta: 0,
|
|
458
458
|
timestamp: 0,
|
|
@@ -476,32 +476,32 @@ function it(e, t) {
|
|
|
476
476
|
}
|
|
477
477
|
i = !0;
|
|
478
478
|
let o = n;
|
|
479
|
-
n = r, r = o, n.forEach(l), t &&
|
|
479
|
+
n = r, r = o, n.forEach(l), t && tt.value && tt.value.frameloop[t].push(c), c = 0, n.clear(), i = !1, a && (a = !1, u.process(e));
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
return u;
|
|
483
483
|
}
|
|
484
484
|
//#endregion
|
|
485
485
|
//#region node_modules/motion-dom/dist/es/frameloop/batcher.mjs
|
|
486
|
-
var
|
|
487
|
-
function
|
|
486
|
+
var rt = 40;
|
|
487
|
+
function it(e, t) {
|
|
488
488
|
let n = !1, r = !0, i = {
|
|
489
489
|
delta: 0,
|
|
490
490
|
timestamp: 0,
|
|
491
491
|
isProcessing: !1
|
|
492
|
-
}, a = () => n = !0, o =
|
|
493
|
-
let a =
|
|
494
|
-
n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp,
|
|
492
|
+
}, a = () => n = !0, o = et.reduce((e, n) => (e[n] = nt(a, t ? n : void 0), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
|
|
493
|
+
let a = z.useManualTiming, o = a ? i.timestamp : performance.now();
|
|
494
|
+
n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, rt), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
|
|
495
495
|
}, g = () => {
|
|
496
496
|
n = !0, r = !0, i.isProcessing || e(h);
|
|
497
497
|
};
|
|
498
498
|
return {
|
|
499
|
-
schedule:
|
|
499
|
+
schedule: et.reduce((e, t) => {
|
|
500
500
|
let r = o[t];
|
|
501
501
|
return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
|
|
502
502
|
}, {}),
|
|
503
503
|
cancel: (e) => {
|
|
504
|
-
for (let t = 0; t <
|
|
504
|
+
for (let t = 0; t < et.length; t++) o[et[t]].cancel(e);
|
|
505
505
|
},
|
|
506
506
|
state: i,
|
|
507
507
|
steps: o
|
|
@@ -509,63 +509,63 @@ function ot(e, t) {
|
|
|
509
509
|
}
|
|
510
510
|
//#endregion
|
|
511
511
|
//#region node_modules/motion-dom/dist/es/frameloop/frame.mjs
|
|
512
|
-
var { schedule:
|
|
513
|
-
function
|
|
514
|
-
|
|
512
|
+
var { schedule: H, cancel: at, state: ot, steps: st } = /* @__PURE__ */ it(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Ce, !0), ct;
|
|
513
|
+
function lt() {
|
|
514
|
+
ct = void 0;
|
|
515
515
|
}
|
|
516
|
-
var
|
|
517
|
-
now: () => (
|
|
516
|
+
var U = {
|
|
517
|
+
now: () => (ct === void 0 && U.set(ot.isProcessing || z.useManualTiming ? ot.timestamp : performance.now()), ct),
|
|
518
518
|
set: (e) => {
|
|
519
|
-
|
|
519
|
+
ct = e, queueMicrotask(lt);
|
|
520
520
|
}
|
|
521
|
-
},
|
|
521
|
+
}, ut = {
|
|
522
522
|
layout: 0,
|
|
523
523
|
mainThread: 0,
|
|
524
524
|
waapi: 0
|
|
525
|
-
},
|
|
526
|
-
function
|
|
525
|
+
}, dt = (e) => (t) => typeof t == "string" && t.startsWith(e), ft = /*@__PURE__*/ dt("--"), pt = /*@__PURE__*/ dt("var(--"), mt = (e) => pt(e) ? ht.test(e.split("/*")[0].trim()) : !1, ht = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
526
|
+
function gt(e) {
|
|
527
527
|
return typeof e == "string" ? e.split("/*")[0].includes("var(--") : !1;
|
|
528
528
|
}
|
|
529
529
|
//#endregion
|
|
530
530
|
//#region node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
|
|
531
|
-
var
|
|
531
|
+
var _t = {
|
|
532
532
|
test: (e) => typeof e == "number",
|
|
533
533
|
parse: parseFloat,
|
|
534
534
|
transform: (e) => e
|
|
535
|
-
},
|
|
536
|
-
...
|
|
537
|
-
transform: (e) =>
|
|
538
|
-
},
|
|
539
|
-
...
|
|
535
|
+
}, vt = {
|
|
536
|
+
..._t,
|
|
537
|
+
transform: (e) => L(0, 1, e)
|
|
538
|
+
}, yt = {
|
|
539
|
+
..._t,
|
|
540
540
|
default: 1
|
|
541
|
-
},
|
|
541
|
+
}, bt = (e) => Math.round(e * 1e5) / 1e5, xt = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
542
542
|
//#endregion
|
|
543
543
|
//#region node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
|
|
544
|
-
function
|
|
544
|
+
function St(e) {
|
|
545
545
|
return e == null;
|
|
546
546
|
}
|
|
547
547
|
//#endregion
|
|
548
548
|
//#region node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
|
|
549
|
-
var
|
|
549
|
+
var Ct = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, wt = (e, t) => (n) => !!(typeof n == "string" && Ct.test(n) && n.startsWith(e) || t && !St(n) && Object.prototype.hasOwnProperty.call(n, t)), Tt = (e, t, n) => (r) => {
|
|
550
550
|
if (typeof r != "string") return r;
|
|
551
|
-
let [i, a, o, s] = r.match(
|
|
551
|
+
let [i, a, o, s] = r.match(xt);
|
|
552
552
|
return {
|
|
553
553
|
[e]: parseFloat(i),
|
|
554
554
|
[t]: parseFloat(a),
|
|
555
555
|
[n]: parseFloat(o),
|
|
556
556
|
alpha: s === void 0 ? 1 : parseFloat(s)
|
|
557
557
|
};
|
|
558
|
-
},
|
|
559
|
-
...
|
|
560
|
-
transform: (e) => Math.round(
|
|
561
|
-
},
|
|
562
|
-
test: /*@__PURE__*/
|
|
563
|
-
parse: /*@__PURE__*/
|
|
564
|
-
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" +
|
|
558
|
+
}, Et = (e) => L(0, 255, e), Dt = {
|
|
559
|
+
..._t,
|
|
560
|
+
transform: (e) => Math.round(Et(e))
|
|
561
|
+
}, W = {
|
|
562
|
+
test: /*@__PURE__*/ wt("rgb", "red"),
|
|
563
|
+
parse: /*@__PURE__*/ Tt("red", "green", "blue"),
|
|
564
|
+
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Dt.transform(e) + ", " + Dt.transform(t) + ", " + Dt.transform(n) + ", " + bt(vt.transform(r)) + ")"
|
|
565
565
|
};
|
|
566
566
|
//#endregion
|
|
567
567
|
//#region node_modules/motion-dom/dist/es/value/types/color/hex.mjs
|
|
568
|
-
function
|
|
568
|
+
function Ot(e) {
|
|
569
569
|
let t = "", n = "", r = "", i = "";
|
|
570
570
|
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
|
|
571
571
|
red: parseInt(t, 16),
|
|
@@ -574,38 +574,38 @@ function At(e) {
|
|
|
574
574
|
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
575
575
|
};
|
|
576
576
|
}
|
|
577
|
-
var
|
|
578
|
-
test: /*@__PURE__*/
|
|
579
|
-
parse:
|
|
580
|
-
transform:
|
|
581
|
-
},
|
|
577
|
+
var kt = {
|
|
578
|
+
test: /*@__PURE__*/ wt("#"),
|
|
579
|
+
parse: Ot,
|
|
580
|
+
transform: W.transform
|
|
581
|
+
}, At = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
582
582
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
583
583
|
parse: parseFloat,
|
|
584
584
|
transform: (t) => `${t}${e}`
|
|
585
|
-
}),
|
|
586
|
-
...
|
|
587
|
-
parse: (e) =>
|
|
588
|
-
transform: (e) =>
|
|
589
|
-
},
|
|
590
|
-
test: /*@__PURE__*/
|
|
591
|
-
parse: /*@__PURE__*/
|
|
592
|
-
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " +
|
|
593
|
-
},
|
|
594
|
-
test: (e) =>
|
|
595
|
-
parse: (e) =>
|
|
596
|
-
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ?
|
|
585
|
+
}), G = /*@__PURE__*/ At("deg"), jt = /*@__PURE__*/ At("%"), K = /*@__PURE__*/ At("px"), Mt = /*@__PURE__*/ At("vh"), Nt = /*@__PURE__*/ At("vw"), Pt = {
|
|
586
|
+
...jt,
|
|
587
|
+
parse: (e) => jt.parse(e) / 100,
|
|
588
|
+
transform: (e) => jt.transform(e * 100)
|
|
589
|
+
}, Ft = {
|
|
590
|
+
test: /*@__PURE__*/ wt("hsl", "hue"),
|
|
591
|
+
parse: /*@__PURE__*/ Tt("hue", "saturation", "lightness"),
|
|
592
|
+
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + jt.transform(bt(t)) + ", " + jt.transform(bt(n)) + ", " + bt(vt.transform(r)) + ")"
|
|
593
|
+
}, q = {
|
|
594
|
+
test: (e) => W.test(e) || kt.test(e) || Ft.test(e),
|
|
595
|
+
parse: (e) => W.test(e) ? W.parse(e) : Ft.test(e) ? Ft.parse(e) : kt.parse(e),
|
|
596
|
+
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? W.transform(e) : Ft.transform(e),
|
|
597
597
|
getAnimatableNone: (e) => {
|
|
598
|
-
let t =
|
|
599
|
-
return t.alpha = 0,
|
|
598
|
+
let t = q.parse(e);
|
|
599
|
+
return t.alpha = 0, q.transform(t);
|
|
600
600
|
}
|
|
601
|
-
},
|
|
601
|
+
}, It = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
602
602
|
//#endregion
|
|
603
603
|
//#region node_modules/motion-dom/dist/es/value/types/complex/index.mjs
|
|
604
|
-
function
|
|
605
|
-
return isNaN(e) && typeof e == "string" && (e.match(
|
|
604
|
+
function Lt(e) {
|
|
605
|
+
return isNaN(e) && typeof e == "string" && (e.match(xt)?.length || 0) + (e.match(It)?.length || 0) > 0;
|
|
606
606
|
}
|
|
607
|
-
var
|
|
608
|
-
function
|
|
607
|
+
var Rt = "number", zt = "color", Bt = "var", Vt = "var(", Ht = "${}", Ut = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
608
|
+
function Wt(e) {
|
|
609
609
|
let t = e.toString(), n = [], r = {
|
|
610
610
|
color: [],
|
|
611
611
|
number: [],
|
|
@@ -613,51 +613,51 @@ function Gt(e) {
|
|
|
613
613
|
}, i = [], a = 0;
|
|
614
614
|
return {
|
|
615
615
|
values: n,
|
|
616
|
-
split: t.replace(
|
|
616
|
+
split: t.replace(Ut, (e) => (q.test(e) ? (r.color.push(a), i.push(zt), n.push(q.parse(e))) : e.startsWith(Vt) ? (r.var.push(a), i.push(Bt), n.push(e)) : (r.number.push(a), i.push(Rt), n.push(parseFloat(e))), ++a, Ht)).split(Ht),
|
|
617
617
|
indexes: r,
|
|
618
618
|
types: i
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
621
|
+
function Gt(e) {
|
|
622
|
+
return Wt(e).values;
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Kt({ split: e, types: t }) {
|
|
625
625
|
let n = e.length;
|
|
626
626
|
return (r) => {
|
|
627
627
|
let i = "";
|
|
628
628
|
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
|
|
629
629
|
let e = t[a];
|
|
630
|
-
e ===
|
|
630
|
+
e === Rt ? i += bt(r[a]) : e === zt ? i += q.transform(r[a]) : i += r[a];
|
|
631
631
|
}
|
|
632
632
|
return i;
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
return
|
|
635
|
+
function qt(e) {
|
|
636
|
+
return Kt(Wt(e));
|
|
637
637
|
}
|
|
638
|
-
var
|
|
639
|
-
function
|
|
640
|
-
let t =
|
|
641
|
-
return
|
|
638
|
+
var Jt = (e) => typeof e == "number" ? 0 : q.test(e) ? q.getAnimatableNone(e) : e, Yt = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Jt(e);
|
|
639
|
+
function Xt(e) {
|
|
640
|
+
let t = Wt(e);
|
|
641
|
+
return Kt(t)(t.values.map((e, n) => Yt(e, t.split[n])));
|
|
642
642
|
}
|
|
643
|
-
var
|
|
644
|
-
test:
|
|
645
|
-
parse:
|
|
646
|
-
createTransformer:
|
|
647
|
-
getAnimatableNone:
|
|
643
|
+
var J = {
|
|
644
|
+
test: Lt,
|
|
645
|
+
parse: Gt,
|
|
646
|
+
createTransformer: qt,
|
|
647
|
+
getAnimatableNone: Xt
|
|
648
648
|
};
|
|
649
649
|
//#endregion
|
|
650
650
|
//#region node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
|
|
651
|
-
function
|
|
651
|
+
function Zt(e, t, n) {
|
|
652
652
|
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function Qt({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
655
655
|
e /= 360, t /= 100, n /= 100;
|
|
656
656
|
let i = 0, a = 0, o = 0;
|
|
657
657
|
if (!t) i = a = o = n;
|
|
658
658
|
else {
|
|
659
659
|
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
|
|
660
|
-
i =
|
|
660
|
+
i = Zt(s, r, e + 1 / 3), a = Zt(s, r, e), o = Zt(s, r, e - 1 / 3);
|
|
661
661
|
}
|
|
662
662
|
return {
|
|
663
663
|
red: Math.round(i * 255),
|
|
@@ -668,61 +668,61 @@ function $t({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
|
668
668
|
}
|
|
669
669
|
//#endregion
|
|
670
670
|
//#region node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
|
|
671
|
-
function
|
|
671
|
+
function $t(e, t) {
|
|
672
672
|
return (n) => n > 0 ? t : e;
|
|
673
673
|
}
|
|
674
674
|
//#endregion
|
|
675
675
|
//#region node_modules/motion-dom/dist/es/utils/mix/number.mjs
|
|
676
|
-
var
|
|
676
|
+
var en = (e, t, n) => e + (t - e) * n, tn = (e, t, n) => {
|
|
677
677
|
let r = e * e, i = n * (t * t - r) + r;
|
|
678
678
|
return i < 0 ? 0 : Math.sqrt(i);
|
|
679
|
-
},
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
],
|
|
684
|
-
function
|
|
685
|
-
let t =
|
|
686
|
-
if (
|
|
679
|
+
}, nn = [
|
|
680
|
+
kt,
|
|
681
|
+
W,
|
|
682
|
+
Ft
|
|
683
|
+
], rn = (e) => nn.find((t) => t.test(e));
|
|
684
|
+
function an(e) {
|
|
685
|
+
let t = rn(e);
|
|
686
|
+
if (ve(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t) return !1;
|
|
687
687
|
let n = t.parse(e);
|
|
688
|
-
return t ===
|
|
688
|
+
return t === Ft && (n = Qt(n)), n;
|
|
689
689
|
}
|
|
690
|
-
var
|
|
691
|
-
let n =
|
|
692
|
-
if (!n || !r) return
|
|
690
|
+
var on = (e, t) => {
|
|
691
|
+
let n = an(e), r = an(t);
|
|
692
|
+
if (!n || !r) return $t(e, t);
|
|
693
693
|
let i = { ...n };
|
|
694
|
-
return (e) => (i.red =
|
|
695
|
-
},
|
|
696
|
-
function
|
|
697
|
-
return
|
|
694
|
+
return (e) => (i.red = tn(n.red, r.red, e), i.green = tn(n.green, r.green, e), i.blue = tn(n.blue, r.blue, e), i.alpha = en(n.alpha, r.alpha, e), W.transform(i));
|
|
695
|
+
}, sn = new Set(["none", "hidden"]);
|
|
696
|
+
function cn(e, t) {
|
|
697
|
+
return sn.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
698
698
|
}
|
|
699
699
|
//#endregion
|
|
700
700
|
//#region node_modules/motion-dom/dist/es/utils/mix/complex.mjs
|
|
701
|
-
function
|
|
702
|
-
return (n) =>
|
|
701
|
+
function ln(e, t) {
|
|
702
|
+
return (n) => en(e, t, n);
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
return typeof e == "number" ?
|
|
704
|
+
function un(e) {
|
|
705
|
+
return typeof e == "number" ? ln : typeof e == "string" ? mt(e) ? $t : q.test(e) ? on : mn : Array.isArray(e) ? dn : typeof e == "object" ? q.test(e) ? on : fn : $t;
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
let n = [...e], r = n.length, i = e.map((e, n) =>
|
|
707
|
+
function dn(e, t) {
|
|
708
|
+
let n = [...e], r = n.length, i = e.map((e, n) => un(e)(e, t[n]));
|
|
709
709
|
return (e) => {
|
|
710
710
|
for (let t = 0; t < r; t++) n[t] = i[t](e);
|
|
711
711
|
return n;
|
|
712
712
|
};
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function fn(e, t) {
|
|
715
715
|
let n = {
|
|
716
716
|
...e,
|
|
717
717
|
...t
|
|
718
718
|
}, r = {};
|
|
719
|
-
for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] =
|
|
719
|
+
for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = un(e[i])(e[i], t[i]));
|
|
720
720
|
return (e) => {
|
|
721
721
|
for (let t in r) n[t] = r[t](e);
|
|
722
722
|
return n;
|
|
723
723
|
};
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function pn(e, t) {
|
|
726
726
|
let n = [], r = {
|
|
727
727
|
color: 0,
|
|
728
728
|
var: 0,
|
|
@@ -734,50 +734,50 @@ function mn(e, t) {
|
|
|
734
734
|
}
|
|
735
735
|
return n;
|
|
736
736
|
}
|
|
737
|
-
var
|
|
738
|
-
let n =
|
|
739
|
-
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ?
|
|
737
|
+
var mn = (e, t) => {
|
|
738
|
+
let n = J.createTransformer(t), r = Wt(e), i = Wt(t);
|
|
739
|
+
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? sn.has(e) && !i.values.length || sn.has(t) && !r.values.length ? cn(e, t) : we(dn(pn(r, i), i.values), n) : (ve(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), $t(e, t));
|
|
740
740
|
};
|
|
741
741
|
//#endregion
|
|
742
742
|
//#region node_modules/motion-dom/dist/es/utils/mix/index.mjs
|
|
743
|
-
function
|
|
744
|
-
return typeof e == "number" && typeof t == "number" && typeof n == "number" ?
|
|
743
|
+
function hn(e, t, n) {
|
|
744
|
+
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? en(e, t, n) : un(e)(e, t);
|
|
745
745
|
}
|
|
746
746
|
//#endregion
|
|
747
747
|
//#region node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
|
|
748
|
-
var
|
|
748
|
+
var gn = (e) => {
|
|
749
749
|
let t = ({ timestamp: t }) => e(t);
|
|
750
750
|
return {
|
|
751
|
-
start: (e = !0) =>
|
|
752
|
-
stop: () =>
|
|
753
|
-
now: () =>
|
|
751
|
+
start: (e = !0) => H.update(t, e),
|
|
752
|
+
stop: () => at(t),
|
|
753
|
+
now: () => ot.isProcessing ? ot.timestamp : U.now()
|
|
754
754
|
};
|
|
755
|
-
},
|
|
755
|
+
}, _n = (e, t, n = 10) => {
|
|
756
756
|
let r = "", i = Math.max(Math.round(t / n), 2);
|
|
757
757
|
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
|
|
758
758
|
return `linear(${r.substring(0, r.length - 2)})`;
|
|
759
|
-
},
|
|
760
|
-
function
|
|
759
|
+
}, vn = 2e4;
|
|
760
|
+
function yn(e) {
|
|
761
761
|
let t = 0, n = e.next(t);
|
|
762
762
|
for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
|
|
763
763
|
return t >= 2e4 ? Infinity : t;
|
|
764
764
|
}
|
|
765
765
|
//#endregion
|
|
766
766
|
//#region node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
|
|
767
|
-
function
|
|
767
|
+
function bn(e, t = 100, n) {
|
|
768
768
|
let r = n({
|
|
769
769
|
...e,
|
|
770
770
|
keyframes: [0, t]
|
|
771
|
-
}), i = Math.min(
|
|
771
|
+
}), i = Math.min(yn(r), vn);
|
|
772
772
|
return {
|
|
773
773
|
type: "keyframes",
|
|
774
774
|
ease: (e) => r.next(i * e).value / t,
|
|
775
|
-
duration: /* @__PURE__ */
|
|
775
|
+
duration: /* @__PURE__ */ V(i)
|
|
776
776
|
};
|
|
777
777
|
}
|
|
778
778
|
//#endregion
|
|
779
779
|
//#region node_modules/motion-dom/dist/es/animation/generators/spring.mjs
|
|
780
|
-
var
|
|
780
|
+
var Y = {
|
|
781
781
|
stiffness: 100,
|
|
782
782
|
damping: 10,
|
|
783
783
|
mass: 1,
|
|
@@ -798,31 +798,31 @@ var J = {
|
|
|
798
798
|
minDamping: .05,
|
|
799
799
|
maxDamping: 1
|
|
800
800
|
};
|
|
801
|
-
function
|
|
801
|
+
function xn(e, t) {
|
|
802
802
|
return e * Math.sqrt(1 - t * t);
|
|
803
803
|
}
|
|
804
|
-
var
|
|
805
|
-
function
|
|
804
|
+
var Sn = 12;
|
|
805
|
+
function Cn(e, t, n) {
|
|
806
806
|
let r = n;
|
|
807
|
-
for (let n = 1; n <
|
|
807
|
+
for (let n = 1; n < Sn; n++) r -= e(r) / t(r);
|
|
808
808
|
return r;
|
|
809
809
|
}
|
|
810
|
-
var
|
|
811
|
-
function
|
|
810
|
+
var wn = .001;
|
|
811
|
+
function Tn({ duration: e = Y.duration, bounce: t = Y.bounce, velocity: n = Y.velocity, mass: r = Y.mass }) {
|
|
812
812
|
let i, a;
|
|
813
|
-
|
|
813
|
+
ve(e <= /* @__PURE__ */ B(Y.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
814
814
|
let o = 1 - t;
|
|
815
|
-
o =
|
|
816
|
-
let r = t * o, i = r * e, a = r - n, s =
|
|
817
|
-
return
|
|
815
|
+
o = L(Y.minDamping, Y.maxDamping, o), e = L(Y.minDuration, Y.maxDuration, /* @__PURE__ */ V(e)), o < 1 ? (i = (t) => {
|
|
816
|
+
let r = t * o, i = r * e, a = r - n, s = xn(t, o), c = Math.exp(-i);
|
|
817
|
+
return wn - a / s * c;
|
|
818
818
|
}, a = (t) => {
|
|
819
|
-
let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l =
|
|
820
|
-
return (-i(t) +
|
|
819
|
+
let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = xn(t ** 2, o);
|
|
820
|
+
return (-i(t) + wn > 0 ? -1 : 1) * ((a - s) * c) / l;
|
|
821
821
|
}) : (i = (t) => -.001 + Math.exp(-t * e) * ((t - n) * e + 1), a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
|
|
822
|
-
let s = 5 / e, c =
|
|
823
|
-
if (e = /* @__PURE__ */
|
|
824
|
-
stiffness:
|
|
825
|
-
damping:
|
|
822
|
+
let s = 5 / e, c = Cn(i, a, s);
|
|
823
|
+
if (e = /* @__PURE__ */ B(e), isNaN(c)) return {
|
|
824
|
+
stiffness: Y.stiffness,
|
|
825
|
+
damping: Y.damping,
|
|
826
826
|
duration: e
|
|
827
827
|
};
|
|
828
828
|
{
|
|
@@ -834,45 +834,45 @@ function En({ duration: e = J.duration, bounce: t = J.bounce, velocity: n = J.ve
|
|
|
834
834
|
};
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
|
-
var
|
|
837
|
+
var En = ["duration", "bounce"], Dn = [
|
|
838
838
|
"stiffness",
|
|
839
839
|
"damping",
|
|
840
840
|
"mass"
|
|
841
841
|
];
|
|
842
|
-
function
|
|
842
|
+
function On(e, t) {
|
|
843
843
|
return t.some((t) => e[t] !== void 0);
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function kn(e) {
|
|
846
846
|
let t = {
|
|
847
|
-
velocity:
|
|
848
|
-
stiffness:
|
|
849
|
-
damping:
|
|
850
|
-
mass:
|
|
847
|
+
velocity: Y.velocity,
|
|
848
|
+
stiffness: Y.stiffness,
|
|
849
|
+
damping: Y.damping,
|
|
850
|
+
mass: Y.mass,
|
|
851
851
|
isResolvedFromDuration: !1,
|
|
852
852
|
...e
|
|
853
853
|
};
|
|
854
|
-
if (!
|
|
855
|
-
let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 *
|
|
854
|
+
if (!On(e, Dn) && On(e, En)) if (t.velocity = 0, e.visualDuration) {
|
|
855
|
+
let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * L(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
|
|
856
856
|
t = {
|
|
857
857
|
...t,
|
|
858
|
-
mass:
|
|
858
|
+
mass: Y.mass,
|
|
859
859
|
stiffness: i,
|
|
860
860
|
damping: a
|
|
861
861
|
};
|
|
862
862
|
} else {
|
|
863
|
-
let n =
|
|
863
|
+
let n = Tn({
|
|
864
864
|
...e,
|
|
865
865
|
velocity: 0
|
|
866
866
|
});
|
|
867
867
|
t = {
|
|
868
868
|
...t,
|
|
869
869
|
...n,
|
|
870
|
-
mass:
|
|
870
|
+
mass: Y.mass
|
|
871
871
|
}, t.isResolvedFromDuration = !0;
|
|
872
872
|
}
|
|
873
873
|
return t;
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function An(e = Y.visualDuration, t = Y.bounce) {
|
|
876
876
|
let n = typeof e == "object" ? e : {
|
|
877
877
|
visualDuration: e,
|
|
878
878
|
keyframes: [0, 1],
|
|
@@ -880,13 +880,13 @@ function jn(e = J.visualDuration, t = J.bounce) {
|
|
|
880
880
|
}, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
|
|
881
881
|
done: !1,
|
|
882
882
|
value: a
|
|
883
|
-
}, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } =
|
|
883
|
+
}, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = kn({
|
|
884
884
|
...n,
|
|
885
|
-
velocity: -/* @__PURE__ */
|
|
886
|
-
}), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */
|
|
887
|
-
r ||= v ?
|
|
885
|
+
velocity: -/* @__PURE__ */ V(n.velocity || 0)
|
|
886
|
+
}), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ V(Math.sqrt(c / u)), v = Math.abs(g) < 5;
|
|
887
|
+
r ||= v ? Y.restSpeed.granular : Y.restSpeed.default, i ||= v ? Y.restDelta.granular : Y.restDelta.default;
|
|
888
888
|
let y, b, x, S, C, w;
|
|
889
|
-
if (h < 1) x =
|
|
889
|
+
if (h < 1) x = xn(_, h), S = (m + h * _ * g) / x, y = (e) => o - Math.exp(-h * _ * e) * (S * Math.sin(x * e) + g * Math.cos(x * e)), C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
|
|
890
890
|
else if (h === 1) {
|
|
891
891
|
y = (e) => o - Math.exp(-_ * e) * (g + (m + _ * g) * e);
|
|
892
892
|
let e = m + _ * g;
|
|
@@ -905,42 +905,42 @@ function jn(e = J.visualDuration, t = J.bounce) {
|
|
|
905
905
|
}
|
|
906
906
|
let T = {
|
|
907
907
|
calculatedDuration: p && d || null,
|
|
908
|
-
velocity: (e) => /* @__PURE__ */
|
|
908
|
+
velocity: (e) => /* @__PURE__ */ B(b(e)),
|
|
909
909
|
next: (e) => {
|
|
910
910
|
if (!p && h < 1) {
|
|
911
|
-
let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */
|
|
911
|
+
let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ B(t * (C * n + w * a));
|
|
912
912
|
return s.done = Math.abs(l) <= r && Math.abs(o - c) <= i, s.value = s.done ? o : c, s;
|
|
913
913
|
}
|
|
914
914
|
let t = y(e);
|
|
915
915
|
if (p) s.done = e >= d;
|
|
916
916
|
else {
|
|
917
|
-
let n = /* @__PURE__ */
|
|
917
|
+
let n = /* @__PURE__ */ B(b(e));
|
|
918
918
|
s.done = Math.abs(n) <= r && Math.abs(o - t) <= i;
|
|
919
919
|
}
|
|
920
920
|
return s.value = s.done ? o : t, s;
|
|
921
921
|
},
|
|
922
922
|
toString: () => {
|
|
923
|
-
let e = Math.min(
|
|
923
|
+
let e = Math.min(yn(T), vn), t = _n((t) => T.next(e * t).value, e, 30);
|
|
924
924
|
return e + "ms " + t;
|
|
925
925
|
},
|
|
926
926
|
toTransition: () => {}
|
|
927
927
|
};
|
|
928
928
|
return T;
|
|
929
929
|
}
|
|
930
|
-
|
|
931
|
-
let t =
|
|
932
|
-
return e.ease = t.ease, e.duration = /* @__PURE__ */
|
|
930
|
+
An.applyToOptions = (e) => {
|
|
931
|
+
let t = bn(e, 100, An);
|
|
932
|
+
return e.ease = t.ease, e.duration = /* @__PURE__ */ B(t.duration), e.type = "keyframes", e;
|
|
933
933
|
};
|
|
934
934
|
//#endregion
|
|
935
935
|
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
|
|
936
|
-
var
|
|
937
|
-
function
|
|
938
|
-
let r = Math.max(t -
|
|
939
|
-
return /* @__PURE__ */
|
|
936
|
+
var jn = 5;
|
|
937
|
+
function Mn(e, t, n) {
|
|
938
|
+
let r = Math.max(t - jn, 0);
|
|
939
|
+
return /* @__PURE__ */ De(n - e(r), t - r);
|
|
940
940
|
}
|
|
941
941
|
//#endregion
|
|
942
942
|
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
|
|
943
|
-
function
|
|
943
|
+
function Nn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
|
|
944
944
|
let d = e[0], f = {
|
|
945
945
|
done: !1,
|
|
946
946
|
value: d
|
|
@@ -950,9 +950,9 @@ function Pn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
|
|
|
950
950
|
let t = v(e), n = y(e);
|
|
951
951
|
f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;
|
|
952
952
|
}, x, S, C = (e) => {
|
|
953
|
-
p(f.value) && (x = e, S =
|
|
953
|
+
p(f.value) && (x = e, S = An({
|
|
954
954
|
keyframes: [f.value, m(f.value)],
|
|
955
|
-
velocity:
|
|
955
|
+
velocity: Mn(y, e, f.value),
|
|
956
956
|
damping: i,
|
|
957
957
|
stiffness: a,
|
|
958
958
|
restDelta: l,
|
|
@@ -969,59 +969,59 @@ function Pn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
|
|
|
969
969
|
}
|
|
970
970
|
//#endregion
|
|
971
971
|
//#region node_modules/motion-dom/dist/es/utils/interpolate.mjs
|
|
972
|
-
function
|
|
973
|
-
let r = [], i = n ||
|
|
972
|
+
function Pn(e, t, n) {
|
|
973
|
+
let r = [], i = n || z.mix || hn, a = e.length - 1;
|
|
974
974
|
for (let n = 0; n < a; n++) {
|
|
975
975
|
let a = i(e[n], e[n + 1]);
|
|
976
|
-
t && (a =
|
|
976
|
+
t && (a = we(Array.isArray(t) ? t[n] || Ce : t, a)), r.push(a);
|
|
977
977
|
}
|
|
978
978
|
return r;
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function Fn(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
981
981
|
let a = e.length;
|
|
982
|
-
if (
|
|
982
|
+
if (R(a === t.length, "Both input and output ranges must be the same length", "range-length"), a === 1) return () => t[0];
|
|
983
983
|
if (a === 2 && t[0] === t[1]) return () => t[1];
|
|
984
984
|
let o = e[0] === e[1];
|
|
985
985
|
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
986
|
-
let s =
|
|
986
|
+
let s = Pn(t, r, i), c = s.length, l = (n) => {
|
|
987
987
|
if (o && n < e[0]) return t[0];
|
|
988
988
|
let r = 0;
|
|
989
989
|
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
|
|
990
|
-
let i = /* @__PURE__ */
|
|
990
|
+
let i = /* @__PURE__ */ Te(e[r], e[r + 1], n);
|
|
991
991
|
return s[r](i);
|
|
992
992
|
};
|
|
993
|
-
return n ? (t) => l(
|
|
993
|
+
return n ? (t) => l(L(e[0], e[a - 1], t)) : l;
|
|
994
994
|
}
|
|
995
995
|
//#endregion
|
|
996
996
|
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
|
|
997
|
-
function
|
|
997
|
+
function In(e, t) {
|
|
998
998
|
let n = e[e.length - 1];
|
|
999
999
|
for (let r = 1; r <= t; r++) {
|
|
1000
|
-
let i = /* @__PURE__ */
|
|
1001
|
-
e.push(
|
|
1000
|
+
let i = /* @__PURE__ */ Te(0, t, r);
|
|
1001
|
+
e.push(en(n, 1, i));
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
//#endregion
|
|
1005
1005
|
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
|
|
1006
|
-
function
|
|
1006
|
+
function Ln(e) {
|
|
1007
1007
|
let t = [0];
|
|
1008
|
-
return
|
|
1008
|
+
return In(t, e.length - 1), t;
|
|
1009
1009
|
}
|
|
1010
1010
|
//#endregion
|
|
1011
1011
|
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
|
|
1012
|
-
function
|
|
1012
|
+
function Rn(e, t) {
|
|
1013
1013
|
return e.map((e) => e * t);
|
|
1014
1014
|
}
|
|
1015
1015
|
//#endregion
|
|
1016
1016
|
//#region node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
|
|
1017
|
-
function
|
|
1018
|
-
return e.map(() => t ||
|
|
1017
|
+
function zn(e, t) {
|
|
1018
|
+
return e.map(() => t || qe).splice(0, e.length - 1);
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1021
|
-
let i = /* @__PURE__ */
|
|
1020
|
+
function Bn({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
|
|
1021
|
+
let i = /* @__PURE__ */ Je(r) ? r.map($e) : $e(r), a = {
|
|
1022
1022
|
done: !1,
|
|
1023
1023
|
value: t[0]
|
|
1024
|
-
}, o =
|
|
1024
|
+
}, o = Fn(Rn(n && n.length === t.length ? n : Ln(t), e), t, { ease: Array.isArray(i) ? i : zn(t, i) });
|
|
1025
1025
|
return {
|
|
1026
1026
|
calculatedDuration: e,
|
|
1027
1027
|
next: (t) => (a.value = o(t), a.done = t >= e, a)
|
|
@@ -1029,26 +1029,26 @@ function Vn({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
|
|
|
1029
1029
|
}
|
|
1030
1030
|
//#endregion
|
|
1031
1031
|
//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
|
|
1032
|
-
var
|
|
1033
|
-
function
|
|
1034
|
-
let a = e.filter(
|
|
1032
|
+
var Vn = (e) => e !== null;
|
|
1033
|
+
function Hn(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
|
|
1034
|
+
let a = e.filter(Vn), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
|
|
1035
1035
|
return !o || r === void 0 ? a[o] : r;
|
|
1036
1036
|
}
|
|
1037
1037
|
//#endregion
|
|
1038
1038
|
//#region node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
|
|
1039
|
-
var
|
|
1040
|
-
decay:
|
|
1041
|
-
inertia:
|
|
1042
|
-
tween:
|
|
1043
|
-
keyframes:
|
|
1044
|
-
spring:
|
|
1039
|
+
var Un = {
|
|
1040
|
+
decay: Nn,
|
|
1041
|
+
inertia: Nn,
|
|
1042
|
+
tween: Bn,
|
|
1043
|
+
keyframes: Bn,
|
|
1044
|
+
spring: An
|
|
1045
1045
|
};
|
|
1046
|
-
function
|
|
1047
|
-
typeof e.type == "string" && (e.type =
|
|
1046
|
+
function Wn(e) {
|
|
1047
|
+
typeof e.type == "string" && (e.type = Un[e.type]);
|
|
1048
1048
|
}
|
|
1049
1049
|
//#endregion
|
|
1050
1050
|
//#region node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
|
|
1051
|
-
var
|
|
1051
|
+
var Gn = class {
|
|
1052
1052
|
constructor() {
|
|
1053
1053
|
this.updateFinished();
|
|
1054
1054
|
}
|
|
@@ -1066,21 +1066,21 @@ var Kn = class {
|
|
|
1066
1066
|
then(e, t) {
|
|
1067
1067
|
return this.finished.then(e, t);
|
|
1068
1068
|
}
|
|
1069
|
-
},
|
|
1069
|
+
}, Kn = (e) => e / 100, qn = class extends Gn {
|
|
1070
1070
|
constructor(e) {
|
|
1071
1071
|
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
|
|
1072
1072
|
done: !1,
|
|
1073
1073
|
value: void 0
|
|
1074
1074
|
}, this.stop = () => {
|
|
1075
1075
|
let { motionValue: e } = this.options;
|
|
1076
|
-
e && e.updatedAt !==
|
|
1077
|
-
},
|
|
1076
|
+
e && e.updatedAt !== U.now() && this.tick(U.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
|
|
1077
|
+
}, ut.mainThread++, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
|
|
1078
1078
|
}
|
|
1079
1079
|
initAnimation() {
|
|
1080
1080
|
let { options: e } = this;
|
|
1081
|
-
|
|
1082
|
-
let { type: t =
|
|
1083
|
-
process.env.NODE_ENV !== "production" && s !==
|
|
1081
|
+
Wn(e);
|
|
1082
|
+
let { type: t = Bn, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Bn;
|
|
1083
|
+
process.env.NODE_ENV !== "production" && s !== Bn && R(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), s !== Bn && typeof o[0] != "number" && (this.mixKeyframes = we(Kn, hn(o[0], o[1])), o = [0, 100]);
|
|
1084
1084
|
let c = s({
|
|
1085
1085
|
...e,
|
|
1086
1086
|
keyframes: o
|
|
@@ -1089,7 +1089,7 @@ var Kn = class {
|
|
|
1089
1089
|
...e,
|
|
1090
1090
|
keyframes: [...o].reverse(),
|
|
1091
1091
|
velocity: -a
|
|
1092
|
-
})), c.calculatedDuration === null && (c.calculatedDuration =
|
|
1092
|
+
})), c.calculatedDuration === null && (c.calculatedDuration = yn(c));
|
|
1093
1093
|
let { calculatedDuration: l } = c;
|
|
1094
1094
|
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
|
|
1095
1095
|
}
|
|
@@ -1107,54 +1107,54 @@ var Kn = class {
|
|
|
1107
1107
|
let v = this.currentTime, y = n;
|
|
1108
1108
|
if (u) {
|
|
1109
1109
|
let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;
|
|
1110
|
-
!n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v =
|
|
1110
|
+
!n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = L(0, 1, n) * o;
|
|
1111
1111
|
}
|
|
1112
1112
|
let b;
|
|
1113
1113
|
_ ? (this.delayState.value = l[0], b = this.delayState) : b = y.next(v), i && !_ && (b.value = i(b.value));
|
|
1114
1114
|
let { done: x } = b;
|
|
1115
1115
|
!_ && s !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
|
|
1116
1116
|
let S = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
|
|
1117
|
-
return S && p !==
|
|
1117
|
+
return S && p !== Nn && (b.value = Hn(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
|
|
1118
1118
|
}
|
|
1119
1119
|
then(e, t) {
|
|
1120
1120
|
return this.finished.then(e, t);
|
|
1121
1121
|
}
|
|
1122
1122
|
get duration() {
|
|
1123
|
-
return /* @__PURE__ */
|
|
1123
|
+
return /* @__PURE__ */ V(this.calculatedDuration);
|
|
1124
1124
|
}
|
|
1125
1125
|
get iterationDuration() {
|
|
1126
1126
|
let { delay: e = 0 } = this.options || {};
|
|
1127
|
-
return this.duration + /* @__PURE__ */
|
|
1127
|
+
return this.duration + /* @__PURE__ */ V(e);
|
|
1128
1128
|
}
|
|
1129
1129
|
get time() {
|
|
1130
|
-
return /* @__PURE__ */
|
|
1130
|
+
return /* @__PURE__ */ V(this.currentTime);
|
|
1131
1131
|
}
|
|
1132
1132
|
set time(e) {
|
|
1133
|
-
e = /* @__PURE__ */
|
|
1133
|
+
e = /* @__PURE__ */ B(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
|
|
1134
1134
|
}
|
|
1135
1135
|
getGeneratorVelocity() {
|
|
1136
1136
|
let e = this.currentTime;
|
|
1137
1137
|
if (e <= 0) return this.options.velocity || 0;
|
|
1138
1138
|
if (this.generator.velocity) return this.generator.velocity(e);
|
|
1139
1139
|
let t = this.generator.next(e).value;
|
|
1140
|
-
return
|
|
1140
|
+
return Mn((e) => this.generator.next(e).value, e, t);
|
|
1141
1141
|
}
|
|
1142
1142
|
get speed() {
|
|
1143
1143
|
return this.playbackSpeed;
|
|
1144
1144
|
}
|
|
1145
1145
|
set speed(e) {
|
|
1146
1146
|
let t = this.playbackSpeed !== e;
|
|
1147
|
-
t && this.driver && this.updateTime(
|
|
1147
|
+
t && this.driver && this.updateTime(U.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ V(this.currentTime));
|
|
1148
1148
|
}
|
|
1149
1149
|
play() {
|
|
1150
1150
|
if (this.isStopped) return;
|
|
1151
|
-
let { driver: e =
|
|
1151
|
+
let { driver: e = gn, startTime: t } = this.options;
|
|
1152
1152
|
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
|
|
1153
1153
|
let n = this.driver.now();
|
|
1154
1154
|
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
|
|
1155
1155
|
}
|
|
1156
1156
|
pause() {
|
|
1157
|
-
this.state = "paused", this.updateTime(
|
|
1157
|
+
this.state = "paused", this.updateTime(U.now()), this.holdTime = this.currentTime;
|
|
1158
1158
|
}
|
|
1159
1159
|
complete() {
|
|
1160
1160
|
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
|
|
@@ -1166,7 +1166,7 @@ var Kn = class {
|
|
|
1166
1166
|
this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
|
|
1167
1167
|
}
|
|
1168
1168
|
teardown() {
|
|
1169
|
-
this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null,
|
|
1169
|
+
this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null, ut.mainThread--;
|
|
1170
1170
|
}
|
|
1171
1171
|
stopDriver() {
|
|
1172
1172
|
this.driver &&= (this.driver.stop(), void 0);
|
|
@@ -1180,12 +1180,12 @@ var Kn = class {
|
|
|
1180
1180
|
};
|
|
1181
1181
|
//#endregion
|
|
1182
1182
|
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
|
|
1183
|
-
function
|
|
1183
|
+
function Jn(e) {
|
|
1184
1184
|
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
|
|
1185
1185
|
}
|
|
1186
1186
|
//#endregion
|
|
1187
1187
|
//#region node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
|
|
1188
|
-
var
|
|
1188
|
+
var X = (e) => e * 180 / Math.PI, Yn = (e) => Zn(X(Math.atan2(e[1], e[0]))), Xn = {
|
|
1189
1189
|
x: 4,
|
|
1190
1190
|
y: 5,
|
|
1191
1191
|
translateX: 4,
|
|
@@ -1193,54 +1193,54 @@ var Y = (e) => e * 180 / Math.PI, Xn = (e) => Qn(Y(Math.atan2(e[1], e[0]))), Zn
|
|
|
1193
1193
|
scaleX: 0,
|
|
1194
1194
|
scaleY: 3,
|
|
1195
1195
|
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
1196
|
-
rotate:
|
|
1197
|
-
rotateZ:
|
|
1198
|
-
skewX: (e) =>
|
|
1199
|
-
skewY: (e) =>
|
|
1196
|
+
rotate: Yn,
|
|
1197
|
+
rotateZ: Yn,
|
|
1198
|
+
skewX: (e) => X(Math.atan(e[1])),
|
|
1199
|
+
skewY: (e) => X(Math.atan(e[2])),
|
|
1200
1200
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
1201
|
-
},
|
|
1201
|
+
}, Zn = (e) => (e %= 360, e < 0 && (e += 360), e), Qn = Yn, $n = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), er = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), tr = {
|
|
1202
1202
|
x: 12,
|
|
1203
1203
|
y: 13,
|
|
1204
1204
|
z: 14,
|
|
1205
1205
|
translateX: 12,
|
|
1206
1206
|
translateY: 13,
|
|
1207
1207
|
translateZ: 14,
|
|
1208
|
-
scaleX:
|
|
1209
|
-
scaleY:
|
|
1210
|
-
scale: (e) => (
|
|
1211
|
-
rotateX: (e) =>
|
|
1212
|
-
rotateY: (e) =>
|
|
1213
|
-
rotateZ:
|
|
1214
|
-
rotate:
|
|
1215
|
-
skewX: (e) =>
|
|
1216
|
-
skewY: (e) =>
|
|
1208
|
+
scaleX: $n,
|
|
1209
|
+
scaleY: er,
|
|
1210
|
+
scale: (e) => ($n(e) + er(e)) / 2,
|
|
1211
|
+
rotateX: (e) => Zn(X(Math.atan2(e[6], e[5]))),
|
|
1212
|
+
rotateY: (e) => Zn(X(Math.atan2(-e[2], e[0]))),
|
|
1213
|
+
rotateZ: Qn,
|
|
1214
|
+
rotate: Qn,
|
|
1215
|
+
skewX: (e) => X(Math.atan(e[4])),
|
|
1216
|
+
skewY: (e) => X(Math.atan(e[1])),
|
|
1217
1217
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
1218
1218
|
};
|
|
1219
|
-
function
|
|
1219
|
+
function nr(e) {
|
|
1220
1220
|
return +!!e.includes("scale");
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1223
|
-
if (!e || e === "none") return
|
|
1222
|
+
function rr(e, t) {
|
|
1223
|
+
if (!e || e === "none") return nr(t);
|
|
1224
1224
|
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
|
|
1225
|
-
if (n) r =
|
|
1225
|
+
if (n) r = tr, i = n;
|
|
1226
1226
|
else {
|
|
1227
1227
|
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
|
|
1228
|
-
r =
|
|
1228
|
+
r = Xn, i = t;
|
|
1229
1229
|
}
|
|
1230
|
-
if (!i) return
|
|
1231
|
-
let a = r[t], o = i[1].split(",").map(
|
|
1230
|
+
if (!i) return nr(t);
|
|
1231
|
+
let a = r[t], o = i[1].split(",").map(ar);
|
|
1232
1232
|
return typeof a == "function" ? a(o) : o[a];
|
|
1233
1233
|
}
|
|
1234
|
-
var
|
|
1234
|
+
var ir = (e, t) => {
|
|
1235
1235
|
let { transform: n = "none" } = getComputedStyle(e);
|
|
1236
|
-
return
|
|
1236
|
+
return rr(n, t);
|
|
1237
1237
|
};
|
|
1238
|
-
function
|
|
1238
|
+
function ar(e) {
|
|
1239
1239
|
return parseFloat(e.trim());
|
|
1240
1240
|
}
|
|
1241
1241
|
//#endregion
|
|
1242
1242
|
//#region node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
|
|
1243
|
-
var
|
|
1243
|
+
var or = [
|
|
1244
1244
|
"transformPerspective",
|
|
1245
1245
|
"x",
|
|
1246
1246
|
"y",
|
|
@@ -1258,19 +1258,19 @@ var sr = [
|
|
|
1258
1258
|
"skew",
|
|
1259
1259
|
"skewX",
|
|
1260
1260
|
"skewY"
|
|
1261
|
-
],
|
|
1261
|
+
], sr = /* @__PURE__ */ new Set([...or, "pathRotation"]), cr = (e) => e === _t || e === K, lr = new Set([
|
|
1262
1262
|
"x",
|
|
1263
1263
|
"y",
|
|
1264
1264
|
"z"
|
|
1265
|
-
]),
|
|
1266
|
-
function
|
|
1265
|
+
]), ur = or.filter((e) => !lr.has(e));
|
|
1266
|
+
function dr(e) {
|
|
1267
1267
|
let t = [];
|
|
1268
|
-
return
|
|
1268
|
+
return ur.forEach((n) => {
|
|
1269
1269
|
let r = e.getValue(n);
|
|
1270
1270
|
r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
|
|
1271
1271
|
}), t;
|
|
1272
1272
|
}
|
|
1273
|
-
var
|
|
1273
|
+
var Z = {
|
|
1274
1274
|
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }) => {
|
|
1275
1275
|
let i = e.max - e.min;
|
|
1276
1276
|
return r === "border-box" ? i : i - parseFloat(t) - parseFloat(n);
|
|
@@ -1283,18 +1283,18 @@ var X = {
|
|
|
1283
1283
|
left: (e, { left: t }) => parseFloat(t),
|
|
1284
1284
|
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
|
|
1285
1285
|
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
|
|
1286
|
-
x: (e, { transform: t }) =>
|
|
1287
|
-
y: (e, { transform: t }) =>
|
|
1286
|
+
x: (e, { transform: t }) => rr(t, "x"),
|
|
1287
|
+
y: (e, { transform: t }) => rr(t, "y")
|
|
1288
1288
|
};
|
|
1289
|
-
|
|
1289
|
+
Z.translateX = Z.x, Z.translateY = Z.y;
|
|
1290
1290
|
//#endregion
|
|
1291
1291
|
//#region node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
|
|
1292
|
-
var
|
|
1293
|
-
function
|
|
1294
|
-
if (
|
|
1295
|
-
let e = Array.from(
|
|
1292
|
+
var Q = /* @__PURE__ */ new Set(), fr = !1, pr = !1, mr = !1;
|
|
1293
|
+
function hr() {
|
|
1294
|
+
if (pr) {
|
|
1295
|
+
let e = Array.from(Q).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
|
|
1296
1296
|
t.forEach((e) => {
|
|
1297
|
-
let t =
|
|
1297
|
+
let t = dr(e);
|
|
1298
1298
|
t.length && (n.set(e, t), e.render());
|
|
1299
1299
|
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
|
|
1300
1300
|
e.render();
|
|
@@ -1306,22 +1306,22 @@ function gr() {
|
|
|
1306
1306
|
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
|
|
1307
1307
|
});
|
|
1308
1308
|
}
|
|
1309
|
-
|
|
1309
|
+
pr = !1, fr = !1, Q.forEach((e) => e.complete(mr)), Q.clear();
|
|
1310
1310
|
}
|
|
1311
|
-
function
|
|
1312
|
-
|
|
1313
|
-
e.readKeyframes(), e.needsMeasurement && (
|
|
1311
|
+
function gr() {
|
|
1312
|
+
Q.forEach((e) => {
|
|
1313
|
+
e.readKeyframes(), e.needsMeasurement && (pr = !0);
|
|
1314
1314
|
});
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1317
|
-
|
|
1316
|
+
function _r() {
|
|
1317
|
+
mr = !0, gr(), hr(), mr = !1;
|
|
1318
1318
|
}
|
|
1319
|
-
var
|
|
1319
|
+
var vr = class {
|
|
1320
1320
|
constructor(e, t, n, r, i, a = !1) {
|
|
1321
1321
|
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
|
|
1322
1322
|
}
|
|
1323
1323
|
scheduleResolve() {
|
|
1324
|
-
this.state = "scheduled", this.isAsync ? (
|
|
1324
|
+
this.state = "scheduled", this.isAsync ? (Q.add(this), fr || (fr = !0, H.read(gr), H.resolveKeyframes(hr))) : (this.readKeyframes(), this.complete());
|
|
1325
1325
|
}
|
|
1326
1326
|
readKeyframes() {
|
|
1327
1327
|
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
|
|
@@ -1334,70 +1334,70 @@ var yr = class {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
|
|
1336
1336
|
}
|
|
1337
|
-
|
|
1337
|
+
Jn(e);
|
|
1338
1338
|
}
|
|
1339
1339
|
setFinalKeyframe() {}
|
|
1340
1340
|
measureInitialState() {}
|
|
1341
1341
|
renderEndStyles() {}
|
|
1342
1342
|
measureEndState() {}
|
|
1343
1343
|
complete(e = !1) {
|
|
1344
|
-
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e),
|
|
1344
|
+
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Q.delete(this);
|
|
1345
1345
|
}
|
|
1346
1346
|
cancel() {
|
|
1347
|
-
this.state === "scheduled" && (
|
|
1347
|
+
this.state === "scheduled" && (Q.delete(this), this.state = "pending");
|
|
1348
1348
|
}
|
|
1349
1349
|
resume() {
|
|
1350
1350
|
this.state === "pending" && this.scheduleResolve();
|
|
1351
1351
|
}
|
|
1352
|
-
},
|
|
1352
|
+
}, yr = (e) => e.startsWith("--");
|
|
1353
1353
|
//#endregion
|
|
1354
1354
|
//#region node_modules/motion-dom/dist/es/render/dom/style-set.mjs
|
|
1355
|
-
function
|
|
1356
|
-
|
|
1355
|
+
function br(e, t, n) {
|
|
1356
|
+
yr(t) ? e.style.setProperty(t, n) : e.style[t] = n;
|
|
1357
1357
|
}
|
|
1358
1358
|
//#endregion
|
|
1359
1359
|
//#region node_modules/motion-dom/dist/es/utils/supports/flags.mjs
|
|
1360
|
-
var
|
|
1360
|
+
var xr = {};
|
|
1361
1361
|
//#endregion
|
|
1362
1362
|
//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs
|
|
1363
|
-
function
|
|
1364
|
-
let n = /* @__PURE__ */
|
|
1365
|
-
return () =>
|
|
1363
|
+
function Sr(e, t) {
|
|
1364
|
+
let n = /* @__PURE__ */ Se(e);
|
|
1365
|
+
return () => xr[t] ?? n();
|
|
1366
1366
|
}
|
|
1367
1367
|
//#endregion
|
|
1368
1368
|
//#region node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
|
|
1369
|
-
var
|
|
1369
|
+
var Cr = /* @__PURE__ */ Sr(() => window.ScrollTimeline !== void 0, "scrollTimeline"), wr = /*@__PURE__*/ Sr(() => {
|
|
1370
1370
|
try {
|
|
1371
1371
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
1372
1372
|
} catch {
|
|
1373
1373
|
return !1;
|
|
1374
1374
|
}
|
|
1375
1375
|
return !0;
|
|
1376
|
-
}, "linearEasing"),
|
|
1376
|
+
}, "linearEasing"), Tr = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, Er = {
|
|
1377
1377
|
linear: "linear",
|
|
1378
1378
|
ease: "ease",
|
|
1379
1379
|
easeIn: "ease-in",
|
|
1380
1380
|
easeOut: "ease-out",
|
|
1381
1381
|
easeInOut: "ease-in-out",
|
|
1382
|
-
circIn: /*@__PURE__*/
|
|
1382
|
+
circIn: /*@__PURE__*/ Tr([
|
|
1383
1383
|
0,
|
|
1384
1384
|
.65,
|
|
1385
1385
|
.55,
|
|
1386
1386
|
1
|
|
1387
1387
|
]),
|
|
1388
|
-
circOut: /*@__PURE__*/
|
|
1388
|
+
circOut: /*@__PURE__*/ Tr([
|
|
1389
1389
|
.55,
|
|
1390
1390
|
0,
|
|
1391
1391
|
1,
|
|
1392
1392
|
.45
|
|
1393
1393
|
]),
|
|
1394
|
-
backIn: /*@__PURE__*/
|
|
1394
|
+
backIn: /*@__PURE__*/ Tr([
|
|
1395
1395
|
.31,
|
|
1396
1396
|
.01,
|
|
1397
1397
|
.66,
|
|
1398
1398
|
-.59
|
|
1399
1399
|
]),
|
|
1400
|
-
backOut: /*@__PURE__*/
|
|
1400
|
+
backOut: /*@__PURE__*/ Tr([
|
|
1401
1401
|
.33,
|
|
1402
1402
|
1.53,
|
|
1403
1403
|
.69,
|
|
@@ -1406,16 +1406,16 @@ var wr = /* @__PURE__ */ Cr(() => window.ScrollTimeline !== void 0, "scrollTimel
|
|
|
1406
1406
|
};
|
|
1407
1407
|
//#endregion
|
|
1408
1408
|
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
|
|
1409
|
-
function
|
|
1410
|
-
if (e) return typeof e == "function" ?
|
|
1409
|
+
function Dr(e, t) {
|
|
1410
|
+
if (e) return typeof e == "function" ? wr() ? _n(e, t) : "ease-out" : /* @__PURE__ */ Xe(e) ? Tr(e) : Array.isArray(e) ? e.map((e) => Dr(e, t) || Er.easeOut) : Er[e];
|
|
1411
1411
|
}
|
|
1412
1412
|
//#endregion
|
|
1413
1413
|
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
|
|
1414
|
-
function
|
|
1414
|
+
function Or(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
|
|
1415
1415
|
let u = { [t]: n };
|
|
1416
1416
|
c && (u.offset = c);
|
|
1417
|
-
let d =
|
|
1418
|
-
Array.isArray(d) && (u.easing = d),
|
|
1417
|
+
let d = Dr(s, i);
|
|
1418
|
+
Array.isArray(d) && (u.easing = d), tt.value && ut.waapi++;
|
|
1419
1419
|
let f = {
|
|
1420
1420
|
delay: r,
|
|
1421
1421
|
duration: i,
|
|
@@ -1426,32 +1426,32 @@ function kr(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTyp
|
|
|
1426
1426
|
};
|
|
1427
1427
|
l && (f.pseudoElement = l);
|
|
1428
1428
|
let p = e.animate(u, f);
|
|
1429
|
-
return
|
|
1430
|
-
|
|
1429
|
+
return tt.value && p.finished.finally(() => {
|
|
1430
|
+
ut.waapi--;
|
|
1431
1431
|
}), p;
|
|
1432
1432
|
}
|
|
1433
1433
|
//#endregion
|
|
1434
1434
|
//#region node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
|
|
1435
|
-
function
|
|
1435
|
+
function kr(e) {
|
|
1436
1436
|
return typeof e == "function" && "applyToOptions" in e;
|
|
1437
1437
|
}
|
|
1438
1438
|
//#endregion
|
|
1439
1439
|
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
|
|
1440
|
-
function
|
|
1441
|
-
return
|
|
1440
|
+
function Ar({ type: e, ...t }) {
|
|
1441
|
+
return kr(e) && wr() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
|
|
1442
1442
|
}
|
|
1443
1443
|
//#endregion
|
|
1444
1444
|
//#region node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
|
|
1445
|
-
var
|
|
1445
|
+
var jr = class extends Gn {
|
|
1446
1446
|
constructor(e) {
|
|
1447
1447
|
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
|
|
1448
1448
|
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
|
|
1449
|
-
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e,
|
|
1450
|
-
let c =
|
|
1451
|
-
this.animation =
|
|
1449
|
+
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, R(typeof e.type != "string", "Mini animate() doesn't support \"type\" as a string.", "mini-spring");
|
|
1450
|
+
let c = Ar(e);
|
|
1451
|
+
this.animation = Or(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
|
|
1452
1452
|
if (this.finishedTime = this.time, !i) {
|
|
1453
|
-
let e =
|
|
1454
|
-
this.updateMotionValue && this.updateMotionValue(e),
|
|
1453
|
+
let e = Hn(r, this.options, o, this.speed);
|
|
1454
|
+
this.updateMotionValue && this.updateMotionValue(e), br(t, n, e), this.animation.cancel();
|
|
1455
1455
|
}
|
|
1456
1456
|
s?.(), this.notifyFinished();
|
|
1457
1457
|
};
|
|
@@ -1482,18 +1482,18 @@ var Mr = class extends Kn {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
get duration() {
|
|
1484
1484
|
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
|
|
1485
|
-
return /* @__PURE__ */
|
|
1485
|
+
return /* @__PURE__ */ V(Number(e));
|
|
1486
1486
|
}
|
|
1487
1487
|
get iterationDuration() {
|
|
1488
1488
|
let { delay: e = 0 } = this.options || {};
|
|
1489
|
-
return this.duration + /* @__PURE__ */
|
|
1489
|
+
return this.duration + /* @__PURE__ */ V(e);
|
|
1490
1490
|
}
|
|
1491
1491
|
get time() {
|
|
1492
|
-
return /* @__PURE__ */
|
|
1492
|
+
return /* @__PURE__ */ V(Number(this.animation.currentTime) || 0);
|
|
1493
1493
|
}
|
|
1494
1494
|
set time(e) {
|
|
1495
1495
|
let t = this.finishedTime !== null;
|
|
1496
|
-
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */
|
|
1496
|
+
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ B(e), t && this.animation.pause();
|
|
1497
1497
|
}
|
|
1498
1498
|
get speed() {
|
|
1499
1499
|
return this.animation.playbackRate;
|
|
@@ -1511,24 +1511,24 @@ var Mr = class extends Kn {
|
|
|
1511
1511
|
this.manualStartTime = this.animation.startTime = e;
|
|
1512
1512
|
}
|
|
1513
1513
|
attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
|
|
1514
|
-
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e &&
|
|
1514
|
+
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Cr() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), Ce) : r(this);
|
|
1515
1515
|
}
|
|
1516
|
-
},
|
|
1517
|
-
anticipate:
|
|
1518
|
-
backInOut:
|
|
1519
|
-
circInOut:
|
|
1516
|
+
}, Mr = {
|
|
1517
|
+
anticipate: Ve,
|
|
1518
|
+
backInOut: Be,
|
|
1519
|
+
circInOut: We
|
|
1520
1520
|
};
|
|
1521
|
-
function
|
|
1522
|
-
return e in
|
|
1521
|
+
function Nr(e) {
|
|
1522
|
+
return e in Mr;
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1525
|
-
typeof e.ease == "string" &&
|
|
1524
|
+
function Pr(e) {
|
|
1525
|
+
typeof e.ease == "string" && Nr(e.ease) && (e.ease = Mr[e.ease]);
|
|
1526
1526
|
}
|
|
1527
1527
|
//#endregion
|
|
1528
1528
|
//#region node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
|
|
1529
|
-
var
|
|
1529
|
+
var Fr = 10, Ir = class extends jr {
|
|
1530
1530
|
constructor(e) {
|
|
1531
|
-
|
|
1531
|
+
Pr(e), Wn(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
|
|
1532
1532
|
}
|
|
1533
1533
|
updateMotionValue(e) {
|
|
1534
1534
|
let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;
|
|
@@ -1537,47 +1537,47 @@ var Ir = 10, Lr = class extends Mr {
|
|
|
1537
1537
|
t.set(e);
|
|
1538
1538
|
return;
|
|
1539
1539
|
}
|
|
1540
|
-
let o = new
|
|
1540
|
+
let o = new qn({
|
|
1541
1541
|
...a,
|
|
1542
1542
|
autoplay: !1
|
|
1543
|
-
}), s = Math.max(
|
|
1544
|
-
i && u &&
|
|
1543
|
+
}), s = Math.max(Fr, U.now() - this.startTime), c = L(0, Fr, s - Fr), l = o.sample(s).value, { name: u } = this.options;
|
|
1544
|
+
i && u && br(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
|
|
1545
1545
|
}
|
|
1546
|
-
},
|
|
1546
|
+
}, Lr = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (J.test(e) || e === "0") && !e.startsWith("url("));
|
|
1547
1547
|
//#endregion
|
|
1548
1548
|
//#region node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
|
|
1549
|
-
function
|
|
1549
|
+
function Rr(e) {
|
|
1550
1550
|
let t = e[0];
|
|
1551
1551
|
if (e.length === 1) return !0;
|
|
1552
1552
|
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function zr(e, t, n, r) {
|
|
1555
1555
|
let i = e[0];
|
|
1556
1556
|
if (i === null) return !1;
|
|
1557
1557
|
if (t === "display" || t === "visibility") return !0;
|
|
1558
|
-
let a = e[e.length - 1], o =
|
|
1559
|
-
return
|
|
1558
|
+
let a = e[e.length - 1], o = Lr(i, t), s = Lr(a, t);
|
|
1559
|
+
return ve(o === s, `You are trying to animate ${t} from "${i}" to "${a}". "${o ? a : i}" is not an animatable value.`, "value-not-animatable"), !o || !s ? !1 : Rr(e) || (n === "spring" || kr(n)) && r;
|
|
1560
1560
|
}
|
|
1561
1561
|
//#endregion
|
|
1562
1562
|
//#region node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
|
|
1563
|
-
function
|
|
1563
|
+
function Br(e) {
|
|
1564
1564
|
e.duration = 0, e.type = "keyframes";
|
|
1565
1565
|
}
|
|
1566
1566
|
//#endregion
|
|
1567
1567
|
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
|
|
1568
|
-
var
|
|
1568
|
+
var Vr = new Set([
|
|
1569
1569
|
"opacity",
|
|
1570
1570
|
"clipPath",
|
|
1571
1571
|
"filter",
|
|
1572
1572
|
"transform"
|
|
1573
|
-
]),
|
|
1574
|
-
function
|
|
1575
|
-
for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" &&
|
|
1573
|
+
]), Hr = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
|
|
1574
|
+
function Ur(e) {
|
|
1575
|
+
for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Hr.test(e[t])) return !0;
|
|
1576
1576
|
return !1;
|
|
1577
1577
|
}
|
|
1578
1578
|
//#endregion
|
|
1579
1579
|
//#region node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
|
|
1580
|
-
var
|
|
1580
|
+
var Wr = new Set([
|
|
1581
1581
|
"color",
|
|
1582
1582
|
"backgroundColor",
|
|
1583
1583
|
"outlineColor",
|
|
@@ -1588,20 +1588,20 @@ var Gr = new Set([
|
|
|
1588
1588
|
"borderRightColor",
|
|
1589
1589
|
"borderBottomColor",
|
|
1590
1590
|
"borderLeftColor"
|
|
1591
|
-
]),
|
|
1592
|
-
function
|
|
1591
|
+
]), Gr = /*@__PURE__*/ Se(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
1592
|
+
function Kr(e) {
|
|
1593
1593
|
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
|
|
1594
1594
|
if (!(t?.owner?.current instanceof HTMLElement)) return !1;
|
|
1595
1595
|
let { onUpdate: c, transformTemplate: l } = t.owner.getProps();
|
|
1596
|
-
return
|
|
1596
|
+
return Gr() && n && (Vr.has(n) || Wr.has(n) && Ur(s)) && (n !== "transform" || !l) && !c && !r && i !== "mirror" && a !== 0 && o !== "inertia";
|
|
1597
1597
|
}
|
|
1598
1598
|
//#endregion
|
|
1599
1599
|
//#region node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
|
|
1600
|
-
var
|
|
1600
|
+
var qr = 40, Jr = class extends Gn {
|
|
1601
1601
|
constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
|
|
1602
1602
|
super(), this.stop = () => {
|
|
1603
1603
|
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
|
|
1604
|
-
}, this.createdAt =
|
|
1604
|
+
}, this.createdAt = U.now();
|
|
1605
1605
|
let d = {
|
|
1606
1606
|
autoplay: e,
|
|
1607
1607
|
delay: t,
|
|
@@ -1613,33 +1613,33 @@ var Jr = 40, Yr = class extends Kn {
|
|
|
1613
1613
|
motionValue: c,
|
|
1614
1614
|
element: l,
|
|
1615
1615
|
...u
|
|
1616
|
-
}, f = l?.KeyframeResolver ||
|
|
1616
|
+
}, f = l?.KeyframeResolver || vr;
|
|
1617
1617
|
this.keyframeResolver = new f(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
|
|
1618
1618
|
}
|
|
1619
1619
|
onKeyframesResolved(e, t, n, r) {
|
|
1620
1620
|
this.keyframeResolver = void 0;
|
|
1621
1621
|
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
|
|
1622
|
-
this.resolvedAt =
|
|
1622
|
+
this.resolvedAt = U.now();
|
|
1623
1623
|
let u = !0;
|
|
1624
|
-
|
|
1624
|
+
zr(e, i, a, o) || (u = !1, (z.instantAnimations || !s) && l?.(Hn(e, n, t)), e[0] = e[e.length - 1], Br(n), n.repeat = 0);
|
|
1625
1625
|
let d = {
|
|
1626
|
-
startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt >
|
|
1626
|
+
startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > qr ? this.resolvedAt : this.createdAt : void 0,
|
|
1627
1627
|
finalKeyframe: t,
|
|
1628
1628
|
...n,
|
|
1629
1629
|
keyframes: e
|
|
1630
|
-
}, f = u && !c &&
|
|
1630
|
+
}, f = u && !c && Kr(d), p = d.motionValue?.owner?.current, m;
|
|
1631
1631
|
if (f) try {
|
|
1632
|
-
m = new
|
|
1632
|
+
m = new Ir({
|
|
1633
1633
|
...d,
|
|
1634
1634
|
element: p
|
|
1635
1635
|
});
|
|
1636
1636
|
} catch {
|
|
1637
|
-
m = new
|
|
1637
|
+
m = new qn(d);
|
|
1638
1638
|
}
|
|
1639
|
-
else m = new
|
|
1639
|
+
else m = new qn(d);
|
|
1640
1640
|
m.finished.then(() => {
|
|
1641
1641
|
this.notifyFinished();
|
|
1642
|
-
}).catch(
|
|
1642
|
+
}).catch(Ce), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
|
|
1643
1643
|
}
|
|
1644
1644
|
get finished() {
|
|
1645
1645
|
return this._animation ? this.animation.finished : this._finished;
|
|
@@ -1648,7 +1648,7 @@ var Jr = 40, Yr = class extends Kn {
|
|
|
1648
1648
|
return this.finished.finally(e).then(() => {});
|
|
1649
1649
|
}
|
|
1650
1650
|
get animation() {
|
|
1651
|
-
return this._animation || (this.keyframeResolver?.resume(),
|
|
1651
|
+
return this._animation || (this.keyframeResolver?.resume(), _r()), this._animation;
|
|
1652
1652
|
}
|
|
1653
1653
|
get duration() {
|
|
1654
1654
|
return this.animation.duration;
|
|
@@ -1689,7 +1689,7 @@ var Jr = 40, Yr = class extends Kn {
|
|
|
1689
1689
|
cancel() {
|
|
1690
1690
|
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
|
|
1691
1691
|
}
|
|
1692
|
-
},
|
|
1692
|
+
}, Yr = class {
|
|
1693
1693
|
constructor(e) {
|
|
1694
1694
|
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
|
1695
1695
|
}
|
|
@@ -1729,10 +1729,10 @@ var Jr = 40, Yr = class extends Kn {
|
|
|
1729
1729
|
return this.getAll("startTime");
|
|
1730
1730
|
}
|
|
1731
1731
|
get duration() {
|
|
1732
|
-
return
|
|
1732
|
+
return Xr(this.animations, "duration");
|
|
1733
1733
|
}
|
|
1734
1734
|
get iterationDuration() {
|
|
1735
|
-
return
|
|
1735
|
+
return Xr(this.animations, "iterationDuration");
|
|
1736
1736
|
}
|
|
1737
1737
|
runAll(e) {
|
|
1738
1738
|
this.animations.forEach((t) => t[e]());
|
|
@@ -1750,7 +1750,7 @@ var Jr = 40, Yr = class extends Kn {
|
|
|
1750
1750
|
this.runAll("complete");
|
|
1751
1751
|
}
|
|
1752
1752
|
};
|
|
1753
|
-
function
|
|
1753
|
+
function Xr(e, t) {
|
|
1754
1754
|
let n = 0;
|
|
1755
1755
|
for (let r = 0; r < e.length; r++) {
|
|
1756
1756
|
let i = e[r][t];
|
|
@@ -1760,31 +1760,31 @@ function Zr(e, t) {
|
|
|
1760
1760
|
}
|
|
1761
1761
|
//#endregion
|
|
1762
1762
|
//#region node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
|
|
1763
|
-
var
|
|
1763
|
+
var Zr = class extends Yr {
|
|
1764
1764
|
then(e, t) {
|
|
1765
1765
|
return this.finished.finally(e).then(() => {});
|
|
1766
1766
|
}
|
|
1767
|
-
},
|
|
1767
|
+
}, Qr = 30, $r = (e) => !isNaN(parseFloat(e)), ei = { current: void 0 }, ti = class {
|
|
1768
1768
|
constructor(e, t = {}) {
|
|
1769
1769
|
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
|
|
1770
|
-
let t =
|
|
1770
|
+
let t = U.now();
|
|
1771
1771
|
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents)) for (let e of this.dependents) e.dirty();
|
|
1772
1772
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
|
|
1773
1773
|
}
|
|
1774
1774
|
setCurrent(e) {
|
|
1775
|
-
this.current = e, this.updatedAt =
|
|
1775
|
+
this.current = e, this.updatedAt = U.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = $r(this.current));
|
|
1776
1776
|
}
|
|
1777
1777
|
setPrevFrameValue(e = this.current) {
|
|
1778
1778
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
1779
1779
|
}
|
|
1780
1780
|
onChange(e) {
|
|
1781
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1781
|
+
return process.env.NODE_ENV !== "production" && ke(!1, "value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback)."), this.on("change", e);
|
|
1782
1782
|
}
|
|
1783
1783
|
on(e, t) {
|
|
1784
|
-
this.events[e] || (this.events[e] = new
|
|
1784
|
+
this.events[e] || (this.events[e] = new Ee());
|
|
1785
1785
|
let n = this.events[e].add(t);
|
|
1786
1786
|
return e === "change" ? () => {
|
|
1787
|
-
n(),
|
|
1787
|
+
n(), H.read(() => {
|
|
1788
1788
|
this.events.change.getSize() || this.stop();
|
|
1789
1789
|
});
|
|
1790
1790
|
} : n;
|
|
@@ -1814,16 +1814,16 @@ var Qr = class extends Xr {
|
|
|
1814
1814
|
this.dependents && this.dependents.delete(e);
|
|
1815
1815
|
}
|
|
1816
1816
|
get() {
|
|
1817
|
-
return
|
|
1817
|
+
return ei.current && ei.current.push(this), this.current;
|
|
1818
1818
|
}
|
|
1819
1819
|
getPrevious() {
|
|
1820
1820
|
return this.prev;
|
|
1821
1821
|
}
|
|
1822
1822
|
getVelocity() {
|
|
1823
|
-
let e =
|
|
1824
|
-
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt >
|
|
1825
|
-
let t = Math.min(this.updatedAt - this.prevUpdatedAt,
|
|
1826
|
-
return /* @__PURE__ */
|
|
1823
|
+
let e = U.now();
|
|
1824
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Qr) return 0;
|
|
1825
|
+
let t = Math.min(this.updatedAt - this.prevUpdatedAt, Qr);
|
|
1826
|
+
return /* @__PURE__ */ De(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
|
|
1827
1827
|
}
|
|
1828
1828
|
start(e) {
|
|
1829
1829
|
return this.stop(), new Promise((t) => {
|
|
@@ -1845,8 +1845,8 @@ var Qr = class extends Xr {
|
|
|
1845
1845
|
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1846
1846
|
}
|
|
1847
1847
|
};
|
|
1848
|
-
function
|
|
1849
|
-
return new
|
|
1848
|
+
function ni(e, t) {
|
|
1849
|
+
return new ti(e, t);
|
|
1850
1850
|
}
|
|
1851
1851
|
//#endregion
|
|
1852
1852
|
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
|
|
@@ -1890,7 +1890,7 @@ var ai = {
|
|
|
1890
1890
|
1
|
|
1891
1891
|
],
|
|
1892
1892
|
duration: .3
|
|
1893
|
-
}, li = (e, { keyframes: t }) => t.length > 2 ? si :
|
|
1893
|
+
}, li = (e, { keyframes: t }) => t.length > 2 ? si : sr.has(e) ? e.startsWith("scale") ? oi(t[1]) : ai : ci, ui = new Set([
|
|
1894
1894
|
"when",
|
|
1895
1895
|
"delay",
|
|
1896
1896
|
"delayChildren",
|
|
@@ -1910,7 +1910,7 @@ function di(e) {
|
|
|
1910
1910
|
//#region node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
|
|
1911
1911
|
var fi = (e, t, n, r = {}, i, a) => (o) => {
|
|
1912
1912
|
let s = ii(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
|
|
1913
|
-
l -= /* @__PURE__ */
|
|
1913
|
+
l -= /* @__PURE__ */ B(c);
|
|
1914
1914
|
let u = {
|
|
1915
1915
|
keyframes: Array.isArray(n) ? n : [null, n],
|
|
1916
1916
|
ease: "easeOut",
|
|
@@ -1927,18 +1927,18 @@ var fi = (e, t, n, r = {}, i, a) => (o) => {
|
|
|
1927
1927
|
motionValue: t,
|
|
1928
1928
|
element: a ? void 0 : i
|
|
1929
1929
|
};
|
|
1930
|
-
di(s) || Object.assign(u, li(e, u)), u.duration &&= /* @__PURE__ */
|
|
1930
|
+
di(s) || Object.assign(u, li(e, u)), u.duration &&= /* @__PURE__ */ B(u.duration), u.repeatDelay &&= /* @__PURE__ */ B(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
1931
1931
|
let d = !1;
|
|
1932
|
-
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (
|
|
1933
|
-
let e =
|
|
1932
|
+
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Br(u), u.delay === 0 && (d = !0)), (z.instantAnimations || z.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, Br(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
|
|
1933
|
+
let e = Hn(u.keyframes, s);
|
|
1934
1934
|
if (e !== void 0) {
|
|
1935
|
-
|
|
1935
|
+
H.update(() => {
|
|
1936
1936
|
u.onUpdate(e), u.onComplete();
|
|
1937
1937
|
});
|
|
1938
1938
|
return;
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
|
-
return s.isSync ? new
|
|
1941
|
+
return s.isSync ? new qn(u) : new Jr(u);
|
|
1942
1942
|
}, pi = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
|
|
1943
1943
|
function mi(e) {
|
|
1944
1944
|
let t = pi.exec(e);
|
|
@@ -1948,15 +1948,15 @@ function mi(e) {
|
|
|
1948
1948
|
}
|
|
1949
1949
|
var hi = 4;
|
|
1950
1950
|
function gi(e, t, n = 1) {
|
|
1951
|
-
|
|
1951
|
+
R(n <= hi, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
1952
1952
|
let [r, i] = mi(e);
|
|
1953
1953
|
if (!r) return;
|
|
1954
1954
|
let a = window.getComputedStyle(t).getPropertyValue(r);
|
|
1955
1955
|
if (a) {
|
|
1956
1956
|
let e = a.trim();
|
|
1957
|
-
return
|
|
1957
|
+
return ye(e) ? parseFloat(e) : e;
|
|
1958
1958
|
}
|
|
1959
|
-
return
|
|
1959
|
+
return mt(i) ? gi(i, t, n + 1) : i;
|
|
1960
1960
|
}
|
|
1961
1961
|
//#endregion
|
|
1962
1962
|
//#region node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
|
|
@@ -1992,12 +1992,12 @@ var bi = new Set([
|
|
|
1992
1992
|
"left",
|
|
1993
1993
|
"right",
|
|
1994
1994
|
"bottom",
|
|
1995
|
-
...
|
|
1995
|
+
...or
|
|
1996
1996
|
]), xi = (e) => Array.isArray(e);
|
|
1997
1997
|
//#endregion
|
|
1998
1998
|
//#region node_modules/motion-dom/dist/es/render/utils/setters.mjs
|
|
1999
1999
|
function Si(e, t, n) {
|
|
2000
|
-
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t,
|
|
2000
|
+
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, ni(n));
|
|
2001
2001
|
}
|
|
2002
2002
|
function Ci(e) {
|
|
2003
2003
|
return xi(e) ? e[e.length - 1] || 0 : e;
|
|
@@ -2023,8 +2023,8 @@ function Ti(e) {
|
|
|
2023
2023
|
function Ei(e, t) {
|
|
2024
2024
|
let n = e.getValue("willChange");
|
|
2025
2025
|
if (Ti(n)) return n.add(t);
|
|
2026
|
-
if (!n &&
|
|
2027
|
-
let n = new
|
|
2026
|
+
if (!n && z.WillChange) {
|
|
2027
|
+
let n = new z.WillChange("auto");
|
|
2028
2028
|
e.addValue("willChange", n), n.add(t);
|
|
2029
2029
|
}
|
|
2030
2030
|
}
|
|
@@ -2062,14 +2062,14 @@ function ji(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
2062
2062
|
u && (o.skipAnimations = !0);
|
|
2063
2063
|
let c = r.get();
|
|
2064
2064
|
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
|
|
2065
|
-
|
|
2065
|
+
H.update(() => r.set(i));
|
|
2066
2066
|
continue;
|
|
2067
2067
|
}
|
|
2068
2068
|
let p = !1;
|
|
2069
2069
|
if (window.MotionHandoffAnimation) {
|
|
2070
2070
|
let n = ki(e);
|
|
2071
2071
|
if (n) {
|
|
2072
|
-
let e = window.MotionHandoffAnimation(n, t,
|
|
2072
|
+
let e = window.MotionHandoffAnimation(n, t, H);
|
|
2073
2073
|
e !== null && (o.startTime = e, p = !0);
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
@@ -2080,7 +2080,7 @@ function ji(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
2080
2080
|
h && d.push(h);
|
|
2081
2081
|
}
|
|
2082
2082
|
if (o) {
|
|
2083
|
-
let t = () =>
|
|
2083
|
+
let t = () => H.update(() => {
|
|
2084
2084
|
o && wi(e, o);
|
|
2085
2085
|
});
|
|
2086
2086
|
d.length ? Promise.all(d).then(t) : t();
|
|
@@ -2093,18 +2093,18 @@ var Mi = {
|
|
|
2093
2093
|
test: (e) => e === "auto",
|
|
2094
2094
|
parse: (e) => e
|
|
2095
2095
|
}, Ni = (e) => (t) => t.test(e), Pi = [
|
|
2096
|
-
|
|
2097
|
-
|
|
2096
|
+
_t,
|
|
2097
|
+
K,
|
|
2098
|
+
jt,
|
|
2099
|
+
G,
|
|
2098
2100
|
Nt,
|
|
2099
|
-
|
|
2100
|
-
Ft,
|
|
2101
|
-
Pt,
|
|
2101
|
+
Mt,
|
|
2102
2102
|
Mi
|
|
2103
2103
|
], Fi = (e) => Pi.find(Ni(e));
|
|
2104
2104
|
//#endregion
|
|
2105
2105
|
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
|
|
2106
2106
|
function Ii(e) {
|
|
2107
|
-
return typeof e == "number" ? e === 0 : e === null ? !0 : e === "none" || e === "0" ||
|
|
2107
|
+
return typeof e == "number" ? e === 0 : e === null ? !0 : e === "none" || e === "0" || xe(e);
|
|
2108
2108
|
}
|
|
2109
2109
|
//#endregion
|
|
2110
2110
|
//#region node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
|
|
@@ -2117,121 +2117,121 @@ var Li = new Set([
|
|
|
2117
2117
|
function Ri(e) {
|
|
2118
2118
|
let [t, n] = e.slice(0, -1).split("(");
|
|
2119
2119
|
if (t === "drop-shadow") return e;
|
|
2120
|
-
let [r] = n.match(
|
|
2120
|
+
let [r] = n.match(xt) || [];
|
|
2121
2121
|
if (!r) return e;
|
|
2122
2122
|
let i = n.replace(r, ""), a = +!!Li.has(t);
|
|
2123
2123
|
return r !== n && (a *= 100), t + "(" + a + i + ")";
|
|
2124
2124
|
}
|
|
2125
2125
|
var zi = /\b([a-z-]*)\(.*?\)/gu, Bi = {
|
|
2126
|
-
...
|
|
2126
|
+
...J,
|
|
2127
2127
|
getAnimatableNone: (e) => {
|
|
2128
2128
|
let t = e.match(zi);
|
|
2129
2129
|
return t ? t.map(Ri).join(" ") : e;
|
|
2130
2130
|
}
|
|
2131
2131
|
}, Vi = {
|
|
2132
|
-
...
|
|
2132
|
+
...J,
|
|
2133
2133
|
getAnimatableNone: (e) => {
|
|
2134
|
-
let t =
|
|
2135
|
-
return
|
|
2134
|
+
let t = J.parse(e);
|
|
2135
|
+
return J.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
|
|
2136
2136
|
...e,
|
|
2137
2137
|
alpha: 1
|
|
2138
2138
|
} : e));
|
|
2139
2139
|
}
|
|
2140
2140
|
}, Hi = {
|
|
2141
|
-
...
|
|
2141
|
+
..._t,
|
|
2142
2142
|
transform: Math.round
|
|
2143
2143
|
}, Ui = {
|
|
2144
|
-
borderWidth:
|
|
2145
|
-
borderTopWidth:
|
|
2146
|
-
borderRightWidth:
|
|
2147
|
-
borderBottomWidth:
|
|
2148
|
-
borderLeftWidth:
|
|
2149
|
-
borderRadius:
|
|
2150
|
-
borderTopLeftRadius:
|
|
2151
|
-
borderTopRightRadius:
|
|
2152
|
-
borderBottomRightRadius:
|
|
2153
|
-
borderBottomLeftRadius:
|
|
2154
|
-
width:
|
|
2155
|
-
maxWidth:
|
|
2156
|
-
height:
|
|
2157
|
-
maxHeight:
|
|
2158
|
-
top:
|
|
2159
|
-
right:
|
|
2160
|
-
bottom:
|
|
2161
|
-
left:
|
|
2162
|
-
inset:
|
|
2163
|
-
insetBlock:
|
|
2164
|
-
insetBlockStart:
|
|
2165
|
-
insetBlockEnd:
|
|
2166
|
-
insetInline:
|
|
2167
|
-
insetInlineStart:
|
|
2168
|
-
insetInlineEnd:
|
|
2169
|
-
padding:
|
|
2170
|
-
paddingTop:
|
|
2171
|
-
paddingRight:
|
|
2172
|
-
paddingBottom:
|
|
2173
|
-
paddingLeft:
|
|
2174
|
-
paddingBlock:
|
|
2175
|
-
paddingBlockStart:
|
|
2176
|
-
paddingBlockEnd:
|
|
2177
|
-
paddingInline:
|
|
2178
|
-
paddingInlineStart:
|
|
2179
|
-
paddingInlineEnd:
|
|
2180
|
-
margin:
|
|
2181
|
-
marginTop:
|
|
2182
|
-
marginRight:
|
|
2183
|
-
marginBottom:
|
|
2184
|
-
marginLeft:
|
|
2185
|
-
marginBlock:
|
|
2186
|
-
marginBlockStart:
|
|
2187
|
-
marginBlockEnd:
|
|
2188
|
-
marginInline:
|
|
2189
|
-
marginInlineStart:
|
|
2190
|
-
marginInlineEnd:
|
|
2191
|
-
fontSize:
|
|
2192
|
-
backgroundPositionX:
|
|
2193
|
-
backgroundPositionY:
|
|
2194
|
-
rotate:
|
|
2195
|
-
pathRotation:
|
|
2196
|
-
rotateX:
|
|
2197
|
-
rotateY:
|
|
2198
|
-
rotateZ:
|
|
2199
|
-
scale:
|
|
2200
|
-
scaleX:
|
|
2201
|
-
scaleY:
|
|
2202
|
-
scaleZ:
|
|
2203
|
-
skew:
|
|
2204
|
-
skewX:
|
|
2205
|
-
skewY:
|
|
2206
|
-
distance:
|
|
2207
|
-
translateX:
|
|
2208
|
-
translateY:
|
|
2209
|
-
translateZ:
|
|
2210
|
-
x:
|
|
2211
|
-
y:
|
|
2212
|
-
z:
|
|
2213
|
-
perspective:
|
|
2214
|
-
transformPerspective:
|
|
2215
|
-
opacity:
|
|
2216
|
-
originX:
|
|
2217
|
-
originY:
|
|
2218
|
-
originZ:
|
|
2144
|
+
borderWidth: K,
|
|
2145
|
+
borderTopWidth: K,
|
|
2146
|
+
borderRightWidth: K,
|
|
2147
|
+
borderBottomWidth: K,
|
|
2148
|
+
borderLeftWidth: K,
|
|
2149
|
+
borderRadius: K,
|
|
2150
|
+
borderTopLeftRadius: K,
|
|
2151
|
+
borderTopRightRadius: K,
|
|
2152
|
+
borderBottomRightRadius: K,
|
|
2153
|
+
borderBottomLeftRadius: K,
|
|
2154
|
+
width: K,
|
|
2155
|
+
maxWidth: K,
|
|
2156
|
+
height: K,
|
|
2157
|
+
maxHeight: K,
|
|
2158
|
+
top: K,
|
|
2159
|
+
right: K,
|
|
2160
|
+
bottom: K,
|
|
2161
|
+
left: K,
|
|
2162
|
+
inset: K,
|
|
2163
|
+
insetBlock: K,
|
|
2164
|
+
insetBlockStart: K,
|
|
2165
|
+
insetBlockEnd: K,
|
|
2166
|
+
insetInline: K,
|
|
2167
|
+
insetInlineStart: K,
|
|
2168
|
+
insetInlineEnd: K,
|
|
2169
|
+
padding: K,
|
|
2170
|
+
paddingTop: K,
|
|
2171
|
+
paddingRight: K,
|
|
2172
|
+
paddingBottom: K,
|
|
2173
|
+
paddingLeft: K,
|
|
2174
|
+
paddingBlock: K,
|
|
2175
|
+
paddingBlockStart: K,
|
|
2176
|
+
paddingBlockEnd: K,
|
|
2177
|
+
paddingInline: K,
|
|
2178
|
+
paddingInlineStart: K,
|
|
2179
|
+
paddingInlineEnd: K,
|
|
2180
|
+
margin: K,
|
|
2181
|
+
marginTop: K,
|
|
2182
|
+
marginRight: K,
|
|
2183
|
+
marginBottom: K,
|
|
2184
|
+
marginLeft: K,
|
|
2185
|
+
marginBlock: K,
|
|
2186
|
+
marginBlockStart: K,
|
|
2187
|
+
marginBlockEnd: K,
|
|
2188
|
+
marginInline: K,
|
|
2189
|
+
marginInlineStart: K,
|
|
2190
|
+
marginInlineEnd: K,
|
|
2191
|
+
fontSize: K,
|
|
2192
|
+
backgroundPositionX: K,
|
|
2193
|
+
backgroundPositionY: K,
|
|
2194
|
+
rotate: G,
|
|
2195
|
+
pathRotation: G,
|
|
2196
|
+
rotateX: G,
|
|
2197
|
+
rotateY: G,
|
|
2198
|
+
rotateZ: G,
|
|
2199
|
+
scale: yt,
|
|
2200
|
+
scaleX: yt,
|
|
2201
|
+
scaleY: yt,
|
|
2202
|
+
scaleZ: yt,
|
|
2203
|
+
skew: G,
|
|
2204
|
+
skewX: G,
|
|
2205
|
+
skewY: G,
|
|
2206
|
+
distance: K,
|
|
2207
|
+
translateX: K,
|
|
2208
|
+
translateY: K,
|
|
2209
|
+
translateZ: K,
|
|
2210
|
+
x: K,
|
|
2211
|
+
y: K,
|
|
2212
|
+
z: K,
|
|
2213
|
+
perspective: K,
|
|
2214
|
+
transformPerspective: K,
|
|
2215
|
+
opacity: vt,
|
|
2216
|
+
originX: Pt,
|
|
2217
|
+
originY: Pt,
|
|
2218
|
+
originZ: K,
|
|
2219
2219
|
zIndex: Hi,
|
|
2220
|
-
fillOpacity:
|
|
2221
|
-
strokeOpacity:
|
|
2220
|
+
fillOpacity: vt,
|
|
2221
|
+
strokeOpacity: vt,
|
|
2222
2222
|
numOctaves: Hi
|
|
2223
2223
|
}, Wi = {
|
|
2224
2224
|
...Ui,
|
|
2225
|
-
color:
|
|
2226
|
-
backgroundColor:
|
|
2227
|
-
outlineColor:
|
|
2228
|
-
fill:
|
|
2229
|
-
stroke:
|
|
2230
|
-
borderColor:
|
|
2231
|
-
borderTopColor:
|
|
2232
|
-
borderRightColor:
|
|
2233
|
-
borderBottomColor:
|
|
2234
|
-
borderLeftColor:
|
|
2225
|
+
color: q,
|
|
2226
|
+
backgroundColor: q,
|
|
2227
|
+
outlineColor: q,
|
|
2228
|
+
fill: q,
|
|
2229
|
+
stroke: q,
|
|
2230
|
+
borderColor: q,
|
|
2231
|
+
borderTopColor: q,
|
|
2232
|
+
borderRightColor: q,
|
|
2233
|
+
borderBottomColor: q,
|
|
2234
|
+
borderLeftColor: q,
|
|
2235
2235
|
filter: Bi,
|
|
2236
2236
|
WebkitFilter: Bi,
|
|
2237
2237
|
mask: Vi,
|
|
@@ -2239,7 +2239,7 @@ var zi = /\b([a-z-]*)\(.*?\)/gu, Bi = {
|
|
|
2239
2239
|
}, Gi = (e) => Wi[e], Ki = /*@__PURE__*/ new Set([Bi, Vi]);
|
|
2240
2240
|
function qi(e, t) {
|
|
2241
2241
|
let n = Gi(e);
|
|
2242
|
-
return Ki.has(n) || (n =
|
|
2242
|
+
return Ki.has(n) || (n = J), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
2243
2243
|
}
|
|
2244
2244
|
//#endregion
|
|
2245
2245
|
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
|
|
@@ -2252,13 +2252,13 @@ function Yi(e, t, n) {
|
|
|
2252
2252
|
let r = 0, i;
|
|
2253
2253
|
for (; r < e.length && !i;) {
|
|
2254
2254
|
let t = e[r];
|
|
2255
|
-
typeof t == "string" && !Ji.has(t) &&
|
|
2255
|
+
typeof t == "string" && !Ji.has(t) && Wt(t).values.length && (i = e[r]), r++;
|
|
2256
2256
|
}
|
|
2257
2257
|
if (i && n) for (let r of t) e[r] = qi(n, i);
|
|
2258
2258
|
}
|
|
2259
2259
|
//#endregion
|
|
2260
2260
|
//#region node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
|
|
2261
|
-
var Xi = class extends
|
|
2261
|
+
var Xi = class extends vr {
|
|
2262
2262
|
constructor(e, t, n, r, i) {
|
|
2263
2263
|
super(e, t, n, r, i, !0);
|
|
2264
2264
|
}
|
|
@@ -2268,22 +2268,22 @@ var Xi = class extends yr {
|
|
|
2268
2268
|
super.readKeyframes();
|
|
2269
2269
|
for (let n = 0; n < e.length; n++) {
|
|
2270
2270
|
let r = e[n];
|
|
2271
|
-
if (typeof r == "string" && (r = r.trim(),
|
|
2271
|
+
if (typeof r == "string" && (r = r.trim(), mt(r))) {
|
|
2272
2272
|
let i = gi(r, t.current);
|
|
2273
2273
|
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
|
|
2274
2274
|
}
|
|
2275
2275
|
}
|
|
2276
2276
|
if (this.resolveNoneKeyframes(), !bi.has(n) || e.length !== 2) return;
|
|
2277
2277
|
let [r, i] = e, a = Fi(r), o = Fi(i);
|
|
2278
|
-
if (
|
|
2278
|
+
if (gt(r) !== gt(i) && Z[n]) {
|
|
2279
2279
|
this.needsMeasurement = !0;
|
|
2280
2280
|
return;
|
|
2281
2281
|
}
|
|
2282
|
-
if (a !== o) if (
|
|
2282
|
+
if (a !== o) if (cr(a) && cr(o)) for (let t = 0; t < e.length; t++) {
|
|
2283
2283
|
let n = e[t];
|
|
2284
2284
|
typeof n == "string" && (e[t] = parseFloat(n));
|
|
2285
2285
|
}
|
|
2286
|
-
else
|
|
2286
|
+
else Z[n] && (this.needsMeasurement = !0);
|
|
2287
2287
|
}
|
|
2288
2288
|
resolveNoneKeyframes() {
|
|
2289
2289
|
let { unresolvedKeyframes: e, name: t } = this, n = [];
|
|
@@ -2293,7 +2293,7 @@ var Xi = class extends yr {
|
|
|
2293
2293
|
measureInitialState() {
|
|
2294
2294
|
let { element: e, unresolvedKeyframes: t, name: n } = this;
|
|
2295
2295
|
if (!e || !e.current) return;
|
|
2296
|
-
n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin =
|
|
2296
|
+
n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Z[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
|
|
2297
2297
|
let r = t[t.length - 1];
|
|
2298
2298
|
r !== void 0 && e.getValue(n, r).jump(r, !1);
|
|
2299
2299
|
}
|
|
@@ -2303,7 +2303,7 @@ var Xi = class extends yr {
|
|
|
2303
2303
|
let r = e.getValue(t);
|
|
2304
2304
|
r && r.jump(this.measuredOrigin, !1);
|
|
2305
2305
|
let i = n.length - 1, a = n[i];
|
|
2306
|
-
n[i] =
|
|
2306
|
+
n[i] = Z[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
|
|
2307
2307
|
e.getValue(t).set(n);
|
|
2308
2308
|
}), this.resolveNoneKeyframes();
|
|
2309
2309
|
}
|
|
@@ -2323,11 +2323,11 @@ function Zi(e, t, n) {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
//#endregion
|
|
2325
2325
|
//#region node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
|
|
2326
|
-
var Qi = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: $i, cancel: ea } = /* @__PURE__ */
|
|
2326
|
+
var Qi = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: $i, cancel: ea } = /* @__PURE__ */ it(queueMicrotask, !1);
|
|
2327
2327
|
//#endregion
|
|
2328
2328
|
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
|
|
2329
2329
|
function ta(e) {
|
|
2330
|
-
return
|
|
2330
|
+
return be(e) && "ownerSVGElement" in e;
|
|
2331
2331
|
}
|
|
2332
2332
|
//#endregion
|
|
2333
2333
|
//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
|
|
@@ -2338,8 +2338,8 @@ function na(e) {
|
|
|
2338
2338
|
//#region node_modules/motion-dom/dist/es/value/types/utils/find.mjs
|
|
2339
2339
|
var ra = [
|
|
2340
2340
|
...Pi,
|
|
2341
|
-
|
|
2342
|
-
|
|
2341
|
+
q,
|
|
2342
|
+
J
|
|
2343
2343
|
], ia = (e) => ra.find(Ni(e)), aa = () => ({
|
|
2344
2344
|
min: 0,
|
|
2345
2345
|
max: 0
|
|
@@ -2381,13 +2381,13 @@ function pa(e, t, n) {
|
|
|
2381
2381
|
for (let r in t) {
|
|
2382
2382
|
let i = t[r], a = n[r];
|
|
2383
2383
|
if ($(i)) e.addValue(r, i);
|
|
2384
|
-
else if ($(a)) e.addValue(r,
|
|
2384
|
+
else if ($(a)) e.addValue(r, ni(i, { owner: e }));
|
|
2385
2385
|
else if (a !== i) if (e.hasValue(r)) {
|
|
2386
2386
|
let t = e.getValue(r);
|
|
2387
2387
|
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
|
|
2388
2388
|
} else {
|
|
2389
2389
|
let t = e.getStaticValue(r);
|
|
2390
|
-
e.addValue(r,
|
|
2390
|
+
e.addValue(r, ni(t === void 0 ? i : t, { owner: e }));
|
|
2391
2391
|
}
|
|
2392
2392
|
}
|
|
2393
2393
|
for (let r in n) t[r] === void 0 && e.removeValue(r);
|
|
@@ -2417,11 +2417,11 @@ var va = [
|
|
|
2417
2417
|
return {};
|
|
2418
2418
|
}
|
|
2419
2419
|
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
|
|
2420
|
-
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver =
|
|
2420
|
+
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = vr, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
2421
2421
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
2422
2422
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
2423
|
-
let e =
|
|
2424
|
-
this.renderScheduledAt < e && (this.renderScheduledAt = e,
|
|
2423
|
+
let e = U.now();
|
|
2424
|
+
this.renderScheduledAt < e && (this.renderScheduledAt = e, H.render(this.render, !1, !0));
|
|
2425
2425
|
};
|
|
2426
2426
|
let { latestValues: c, renderState: l } = o;
|
|
2427
2427
|
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = da(t), this.isVariantNode = fa(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
@@ -2433,10 +2433,10 @@ var va = [
|
|
|
2433
2433
|
}
|
|
2434
2434
|
mount(e) {
|
|
2435
2435
|
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
|
|
2436
|
-
this.current = e, sa.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (ha.current || _a(), this.shouldReduceMotion = ma.current), process.env.NODE_ENV !== "production" &&
|
|
2436
|
+
this.current = e, sa.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (ha.current || _a(), this.shouldReduceMotion = ma.current), process.env.NODE_ENV !== "production" && ke(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
|
|
2437
2437
|
}
|
|
2438
2438
|
unmount() {
|
|
2439
|
-
this.projection && this.projection.unmount(),
|
|
2439
|
+
this.projection && this.projection.unmount(), at(this.notifyUpdate), at(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
2440
2440
|
for (let e in this.events) this.events[e].clear();
|
|
2441
2441
|
for (let e in this.features) {
|
|
2442
2442
|
let t = this.features[e];
|
|
@@ -2451,24 +2451,24 @@ var va = [
|
|
|
2451
2451
|
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
|
|
2452
2452
|
}
|
|
2453
2453
|
bindToMotionValue(e, t) {
|
|
2454
|
-
if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate &&
|
|
2455
|
-
let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new
|
|
2454
|
+
if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && Vr.has(e) && this.current instanceof HTMLElement) {
|
|
2455
|
+
let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new jr({
|
|
2456
2456
|
element: this.current,
|
|
2457
2457
|
name: e,
|
|
2458
2458
|
keyframes: r,
|
|
2459
2459
|
times: i,
|
|
2460
2460
|
ease: a,
|
|
2461
|
-
duration: /* @__PURE__ */
|
|
2461
|
+
duration: /* @__PURE__ */ B(o)
|
|
2462
2462
|
}), c = n(s);
|
|
2463
2463
|
this.valueSubscriptions.set(e, () => {
|
|
2464
2464
|
c(), s.cancel();
|
|
2465
2465
|
});
|
|
2466
2466
|
return;
|
|
2467
2467
|
}
|
|
2468
|
-
let n =
|
|
2468
|
+
let n = sr.has(e);
|
|
2469
2469
|
n && this.onBindTransform && this.onBindTransform();
|
|
2470
2470
|
let r = t.on("change", (t) => {
|
|
2471
|
-
this.latestValues[e] = t, this.props.onUpdate &&
|
|
2471
|
+
this.latestValues[e] = t, this.props.onUpdate && H.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
|
|
2472
2472
|
}), i;
|
|
2473
2473
|
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
|
|
2474
2474
|
r(), i && i();
|
|
@@ -2545,11 +2545,11 @@ var va = [
|
|
|
2545
2545
|
getValue(e, t) {
|
|
2546
2546
|
if (this.props.values && this.props.values[e]) return this.props.values[e];
|
|
2547
2547
|
let n = this.values.get(e);
|
|
2548
|
-
return n === void 0 && t !== void 0 && (n =
|
|
2548
|
+
return n === void 0 && t !== void 0 && (n = ni(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
|
|
2549
2549
|
}
|
|
2550
2550
|
readValue(e, t) {
|
|
2551
2551
|
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
|
|
2552
|
-
return n != null && (typeof n == "string" && (
|
|
2552
|
+
return n != null && (typeof n == "string" && (ye(n) || xe(n)) ? n = parseFloat(n) : !ia(n) && J.test(t) && (n = qi(e, t)), this.setBaseTarget(e, $(n) ? n.get() : n)), $(n) ? n.get() : n;
|
|
2553
2553
|
}
|
|
2554
2554
|
setBaseTarget(e, t) {
|
|
2555
2555
|
this.baseTarget[e] = t;
|
|
@@ -2565,7 +2565,7 @@ var va = [
|
|
|
2565
2565
|
return r !== void 0 && !$(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
|
|
2566
2566
|
}
|
|
2567
2567
|
on(e, t) {
|
|
2568
|
-
return this.events[e] || (this.events[e] = new
|
|
2568
|
+
return this.events[e] || (this.events[e] = new Ee()), this.events[e].add(t);
|
|
2569
2569
|
}
|
|
2570
2570
|
notify(e, ...t) {
|
|
2571
2571
|
this.events[e] && this.events[e].notify(...t);
|
|
@@ -2637,11 +2637,11 @@ var Ta = {
|
|
|
2637
2637
|
y: "translateY",
|
|
2638
2638
|
z: "translateZ",
|
|
2639
2639
|
transformPerspective: "perspective"
|
|
2640
|
-
}, Ea =
|
|
2640
|
+
}, Ea = or.length;
|
|
2641
2641
|
function Da(e, t, n) {
|
|
2642
2642
|
let r = "", i = !0;
|
|
2643
2643
|
for (let a = 0; a < Ea; a++) {
|
|
2644
|
-
let o =
|
|
2644
|
+
let o = or[a], s = e[o];
|
|
2645
2645
|
if (s === void 0) continue;
|
|
2646
2646
|
let c = !0;
|
|
2647
2647
|
if (typeof s == "number") c = s === +!!o.startsWith("scale");
|
|
@@ -2668,10 +2668,10 @@ function Oa(e, t, n) {
|
|
|
2668
2668
|
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
|
|
2669
2669
|
for (let e in t) {
|
|
2670
2670
|
let n = t[e];
|
|
2671
|
-
if (
|
|
2671
|
+
if (sr.has(e)) {
|
|
2672
2672
|
o = !0;
|
|
2673
2673
|
continue;
|
|
2674
|
-
} else if (
|
|
2674
|
+
} else if (ft(e)) {
|
|
2675
2675
|
i[e] = n;
|
|
2676
2676
|
continue;
|
|
2677
2677
|
} else {
|
|
@@ -2698,15 +2698,15 @@ function Aa(e, t) {
|
|
|
2698
2698
|
}
|
|
2699
2699
|
var ja = { correct: (e, t) => {
|
|
2700
2700
|
if (!t.target) return e;
|
|
2701
|
-
if (typeof e == "string") if (
|
|
2701
|
+
if (typeof e == "string") if (K.test(e)) e = parseFloat(e);
|
|
2702
2702
|
else return e;
|
|
2703
2703
|
return `${Aa(e, t.target.x)}% ${Aa(e, t.target.y)}%`;
|
|
2704
2704
|
} }, Ma = { correct: (e, { treeScale: t, projectionDelta: n }) => {
|
|
2705
|
-
let r = e, i =
|
|
2705
|
+
let r = e, i = J.parse(e);
|
|
2706
2706
|
if (i.length > 5) return r;
|
|
2707
|
-
let a =
|
|
2707
|
+
let a = J.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
|
|
2708
2708
|
i[0 + o] /= s, i[1 + o] /= c;
|
|
2709
|
-
let l =
|
|
2709
|
+
let l = en(s, c, .5);
|
|
2710
2710
|
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
|
|
2711
2711
|
} }, Na = {
|
|
2712
2712
|
borderRadius: {
|
|
@@ -2727,7 +2727,7 @@ var ja = { correct: (e, t) => {
|
|
|
2727
2727
|
//#endregion
|
|
2728
2728
|
//#region node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
|
|
2729
2729
|
function Pa(e, { layout: t, layoutId: n }) {
|
|
2730
|
-
return
|
|
2730
|
+
return sr.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Na[e] || e === "opacity");
|
|
2731
2731
|
}
|
|
2732
2732
|
//#endregion
|
|
2733
2733
|
//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
|
|
@@ -2747,9 +2747,9 @@ var La = class extends xa {
|
|
|
2747
2747
|
super(...arguments), this.type = "html", this.renderInstance = ka;
|
|
2748
2748
|
}
|
|
2749
2749
|
readValueFromInstance(e, t) {
|
|
2750
|
-
if (
|
|
2750
|
+
if (sr.has(t)) return this.projection?.isProjecting ? nr(t) : ir(e, t);
|
|
2751
2751
|
{
|
|
2752
|
-
let n = Ia(e), r = (
|
|
2752
|
+
let n = Ia(e), r = (ft(t) ? n.getPropertyValue(t) : n[t]) || 0;
|
|
2753
2753
|
return typeof r == "string" ? r.trim() : r;
|
|
2754
2754
|
}
|
|
2755
2755
|
}
|
|
@@ -2863,7 +2863,7 @@ function qa(e, t, n, r) {
|
|
|
2863
2863
|
function Ja(e, t, n) {
|
|
2864
2864
|
let r = Fa(e, t, n);
|
|
2865
2865
|
for (let n in e) if ($(e[n]) || $(t[n])) {
|
|
2866
|
-
let t =
|
|
2866
|
+
let t = or.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
|
|
2867
2867
|
r[t] = e[n];
|
|
2868
2868
|
}
|
|
2869
2869
|
return r;
|
|
@@ -2878,7 +2878,7 @@ var Ya = class extends xa {
|
|
|
2878
2878
|
return e[t];
|
|
2879
2879
|
}
|
|
2880
2880
|
readValueFromInstance(e, t) {
|
|
2881
|
-
if (
|
|
2881
|
+
if (sr.has(t)) {
|
|
2882
2882
|
let e = Gi(t);
|
|
2883
2883
|
return e && e.default || 0;
|
|
2884
2884
|
}
|
|
@@ -2900,7 +2900,7 @@ var Ya = class extends xa {
|
|
|
2900
2900
|
//#endregion
|
|
2901
2901
|
//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
|
|
2902
2902
|
function Xa(e, t, n) {
|
|
2903
|
-
let r = $(e) ? e :
|
|
2903
|
+
let r = $(e) ? e : ni(e);
|
|
2904
2904
|
return r.start(fi("", r, t, n)), r.animation;
|
|
2905
2905
|
}
|
|
2906
2906
|
//#endregion
|
|
@@ -2920,7 +2920,7 @@ function Qa(e) {
|
|
|
2920
2920
|
function $a() {
|
|
2921
2921
|
!ha.current && _a();
|
|
2922
2922
|
let [e] = p(ma.current);
|
|
2923
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2923
|
+
return process.env.NODE_ENV !== "production" && ke(e !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), e;
|
|
2924
2924
|
}
|
|
2925
2925
|
//#endregion
|
|
2926
2926
|
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs
|
|
@@ -2953,15 +2953,15 @@ function io(e, t, n, r) {
|
|
|
2953
2953
|
function ao(e, t, n) {
|
|
2954
2954
|
for (let r = 0; r < e.length; r++) {
|
|
2955
2955
|
let i = e[r];
|
|
2956
|
-
i.at > t && i.at < n && (
|
|
2956
|
+
i.at > t && i.at < n && (ge(e, i), r--);
|
|
2957
2957
|
}
|
|
2958
2958
|
}
|
|
2959
2959
|
function oo(e, t, n, r, i, a) {
|
|
2960
2960
|
ao(e, i, a);
|
|
2961
2961
|
for (let o = 0; o < t.length; o++) e.push({
|
|
2962
2962
|
value: t[o],
|
|
2963
|
-
at:
|
|
2964
|
-
easing: /* @__PURE__ */
|
|
2963
|
+
at: en(i, a, r[o]),
|
|
2964
|
+
easing: /* @__PURE__ */ Ye(n, o)
|
|
2965
2965
|
});
|
|
2966
2966
|
}
|
|
2967
2967
|
//#endregion
|
|
@@ -2992,7 +2992,7 @@ function fo(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
2992
2992
|
let [p, m, h = {}] = o;
|
|
2993
2993
|
h.at !== void 0 && (d = io(d, h.at, u, l));
|
|
2994
2994
|
let g = 0, _ = (e, n, r, o = 0, s = 0) => {
|
|
2995
|
-
let c = ho(e), { delay: l = 0, times: u =
|
|
2995
|
+
let c = ho(e), { delay: l = 0, times: u = Ln(c), type: p = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: _ = 0, ...v } = n, { ease: y = t.ease || "easeOut", duration: b } = n, x = typeof l == "function" ? l(o, s) : l, S = c.length, C = kr(p) ? p : i?.[p || "keyframes"];
|
|
2996
2996
|
if (S <= 2 && C) {
|
|
2997
2997
|
let e = 100;
|
|
2998
2998
|
if (S === 2 && vo(c)) {
|
|
@@ -3003,25 +3003,25 @@ function fo(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
3003
3003
|
...t,
|
|
3004
3004
|
...v
|
|
3005
3005
|
};
|
|
3006
|
-
b !== void 0 && (n.duration = /* @__PURE__ */
|
|
3007
|
-
let r =
|
|
3006
|
+
b !== void 0 && (n.duration = /* @__PURE__ */ B(b));
|
|
3007
|
+
let r = bn(n, e, C);
|
|
3008
3008
|
y = r.ease, b = r.duration;
|
|
3009
3009
|
}
|
|
3010
3010
|
b ??= a;
|
|
3011
3011
|
let w = d + x;
|
|
3012
3012
|
u.length === 1 && u[0] === 0 && (u[1] = 1);
|
|
3013
3013
|
let T = u.length - c.length;
|
|
3014
|
-
if (T > 0 &&
|
|
3014
|
+
if (T > 0 && In(u, T), c.length === 1 && c.unshift(null), m && ve(m < uo, `Sequence segments can't repeat ${m} times — ignoring repeat option. Use a value below ${uo} or apply repeat at the sequence level instead.`), m && m < uo) {
|
|
3015
3015
|
let e = b > 0 ? _ / b : 0;
|
|
3016
3016
|
b = ro(b, m, _);
|
|
3017
3017
|
let t = [...c], n = [...u];
|
|
3018
3018
|
y = Array.isArray(y) ? [...y] : [y];
|
|
3019
3019
|
let r = [...y], i = h === "reverse" || h === "mirror", a = t, o = r;
|
|
3020
|
-
i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */
|
|
3020
|
+
i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ Le(e) : e)));
|
|
3021
3021
|
for (let s = 0; s < m; s++) {
|
|
3022
3022
|
let l = i && s % 2 == 0, d = l ? a : t, f = l ? o : r, p = (s + 1) * (1 + e);
|
|
3023
3023
|
e > 0 && (c.push(c[c.length - 1]), u.push(p), y.push("linear")), c.push(...d);
|
|
3024
|
-
for (let e = 0; e < d.length; e++) u.push(n[e] + p), y.push(e === 0 ? "linear" : /* @__PURE__ */
|
|
3024
|
+
for (let e = 0; e < d.length; e++) u.push(n[e] + p), y.push(e === 0 ? "linear" : /* @__PURE__ */ Ye(f, e - 1));
|
|
3025
3025
|
}
|
|
3026
3026
|
so(u, m, e);
|
|
3027
3027
|
}
|
|
@@ -3048,7 +3048,7 @@ function fo(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
3048
3048
|
let s = [], c = [], l = [];
|
|
3049
3049
|
for (let e = 0; e < a.length; e++) {
|
|
3050
3050
|
let { at: t, value: n, easing: r } = a[e];
|
|
3051
|
-
s.push(n), c.push(/* @__PURE__ */
|
|
3051
|
+
s.push(n), c.push(/* @__PURE__ */ Te(0, f, t)), l.push(r || "easeOut");
|
|
3052
3052
|
}
|
|
3053
3053
|
c[0] !== 0 && (c.unshift(0), s.unshift(s[0]), l.unshift(lo)), c[c.length - 1] !== 1 && (c.push(1), s.push(null)), o.has(r) || o.set(r, {
|
|
3054
3054
|
keyframes: {},
|
|
@@ -3124,7 +3124,7 @@ function So(e, t, n, r) {
|
|
|
3124
3124
|
else {
|
|
3125
3125
|
if (e == null) return i;
|
|
3126
3126
|
let a = no(e, t, r), o = a.length;
|
|
3127
|
-
|
|
3127
|
+
R(!!o, "No valid elements provided.", "no-valid-elements");
|
|
3128
3128
|
for (let e = 0; e < o; e++) {
|
|
3129
3129
|
let r = a[e], s = r instanceof Element ? yo : bo;
|
|
3130
3130
|
sa.has(r) || s(r);
|
|
@@ -3143,7 +3143,7 @@ function Co(e, t, n) {
|
|
|
3143
3143
|
let r = [];
|
|
3144
3144
|
return fo(e.map((e) => {
|
|
3145
3145
|
if (Array.isArray(e) && typeof e[0] == "function") {
|
|
3146
|
-
let t = e[0], n =
|
|
3146
|
+
let t = e[0], n = ni(0);
|
|
3147
3147
|
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
|
|
3148
3148
|
n,
|
|
3149
3149
|
[0, 1],
|
|
@@ -3155,7 +3155,7 @@ function Co(e, t, n) {
|
|
|
3155
3155
|
];
|
|
3156
3156
|
}
|
|
3157
3157
|
return e;
|
|
3158
|
-
}), t, n, { spring:
|
|
3158
|
+
}), t, n, { spring: An }).forEach(({ keyframes: e, transition: t }, n) => {
|
|
3159
3159
|
r.push(...So(n, e, t));
|
|
3160
3160
|
}), r;
|
|
3161
3161
|
}
|
|
@@ -3181,9 +3181,9 @@ function To(e = {}) {
|
|
|
3181
3181
|
...r
|
|
3182
3182
|
}, t);
|
|
3183
3183
|
}
|
|
3184
|
-
let l = new
|
|
3184
|
+
let l = new Zr(o);
|
|
3185
3185
|
return s && l.finished.then(s), t && (t.animations.push(l), l.finished.then(() => {
|
|
3186
|
-
|
|
3186
|
+
ge(t.animations, l);
|
|
3187
3187
|
})), l;
|
|
3188
3188
|
}
|
|
3189
3189
|
return i;
|
|
@@ -3192,7 +3192,7 @@ To();
|
|
|
3192
3192
|
//#endregion
|
|
3193
3193
|
//#region node_modules/framer-motion/dist/es/animation/hooks/use-animate.mjs
|
|
3194
3194
|
function Eo() {
|
|
3195
|
-
let e =
|
|
3195
|
+
let e = me(() => ({
|
|
3196
3196
|
current: null,
|
|
3197
3197
|
animations: []
|
|
3198
3198
|
})), t = eo() ?? void 0, { skipAnimations: n } = c(Za), r = d(() => To({
|
|
@@ -3490,7 +3490,7 @@ var Do = {
|
|
|
3490
3490
|
},
|
|
3491
3491
|
settings: i.settings,
|
|
3492
3492
|
children: b()
|
|
3493
|
-
}) : null : /* @__PURE__ */ y(
|
|
3493
|
+
}) : null : /* @__PURE__ */ y(pe, {
|
|
3494
3494
|
onEffectEnd: v,
|
|
3495
3495
|
onEffectStart: _,
|
|
3496
3496
|
item: e,
|
|
@@ -3514,102 +3514,102 @@ Bo.displayName = "LazySvg";
|
|
|
3514
3514
|
var Vo = a.memo(Bo), Ho = {
|
|
3515
3515
|
left: 0,
|
|
3516
3516
|
top: 480
|
|
3517
|
-
}, Uo = "clamp(18px, 3.8vmin, 34px)", Wo = ({ page: t, screenScale:
|
|
3518
|
-
let
|
|
3517
|
+
}, Uo = "clamp(18px, 3.8vmin, 34px)", Wo = ({ page: t, screenScale: r, isActive: a, textDirection: o = "LTR" }) => {
|
|
3518
|
+
let c = g(), u = e(), { bookId: m, slug: h, analytics: _ } = u, { audio: x, words: S, background: C, media: w = [], layoutStyle: T = oe.BOTTOM, textPosition: E, textStyle: D } = t, ee = T === oe.BOTTOM ? "layout-btm-aligned" : "", [te, O] = p([]), k = f([]), A = f(null), [j, M] = p(null), N = f(null), P = f(!0), F = navigator?.userActivation.hasBeenActive, ne = c.activeIndex > (c.previousIndex ?? -1), I = d(() => x?.pageAudio?.segments ? x.pageAudio.segments : S && S.length > 0 ? S : [], [x, S]);
|
|
3519
3519
|
l(() => {
|
|
3520
3520
|
let e = null;
|
|
3521
|
-
return
|
|
3522
|
-
|
|
3523
|
-
}, 750)), !
|
|
3521
|
+
return a && j === null && F && ne && (e = setTimeout(() => {
|
|
3522
|
+
le();
|
|
3523
|
+
}, 750)), !a && j === !0 && (_?.onAudioPaused?.(m, t._id), A.current?.onAbortAudio()), () => {
|
|
3524
3524
|
e && clearTimeout(e);
|
|
3525
3525
|
};
|
|
3526
3526
|
}, [
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
]), l(() => (
|
|
3532
|
-
|
|
3527
|
+
a,
|
|
3528
|
+
j,
|
|
3529
|
+
F,
|
|
3530
|
+
ne
|
|
3531
|
+
]), l(() => (P.current = !0, () => {
|
|
3532
|
+
P.current = !1;
|
|
3533
3533
|
}), []), l(() => {
|
|
3534
|
-
|
|
3535
|
-
}, [
|
|
3534
|
+
N.current === !0 && j === !1 && a && _?.onAudioCompleted?.(m, t._id, x?.pageAudio?.mp3 ?? t._id), N.current = j;
|
|
3535
|
+
}, [j]);
|
|
3536
3536
|
let re = s(async (e) => {
|
|
3537
|
-
|
|
3537
|
+
_?.onWordTapped?.(m, t._id, e.word), k.current.forEach((t) => {
|
|
3538
3538
|
t.mediaItem.effect?.timing?.forEach((n) => {
|
|
3539
3539
|
e.word === n.word && t.element.triggerEffect();
|
|
3540
3540
|
});
|
|
3541
3541
|
});
|
|
3542
|
-
let n =
|
|
3542
|
+
let n = I.findIndex((t) => t.word === e.word && t.start === e.start);
|
|
3543
3543
|
if (n > -1) {
|
|
3544
|
-
let e =
|
|
3545
|
-
|
|
3544
|
+
let e = I[n];
|
|
3545
|
+
O([n]), await i((e.end - e.start) * 1e3 + 500), P.current && O([]);
|
|
3546
3546
|
}
|
|
3547
3547
|
}, [
|
|
3548
|
+
_,
|
|
3548
3549
|
m,
|
|
3549
|
-
c,
|
|
3550
3550
|
t._id,
|
|
3551
|
-
|
|
3551
|
+
I
|
|
3552
3552
|
]), ie = s((e) => {
|
|
3553
3553
|
if (!e) return;
|
|
3554
|
-
|
|
3554
|
+
_?.onAnimationTriggered?.(m, t._id, e._id, e.effect?.type);
|
|
3555
3555
|
let { effect: n } = e, r = [], i = [];
|
|
3556
3556
|
n?.timing?.forEach((e) => {
|
|
3557
|
-
let t =
|
|
3557
|
+
let t = I.findIndex((t) => t.word === e.word && t.start === e.start);
|
|
3558
3558
|
t > -1 && (r.push(t), i.push({
|
|
3559
3559
|
...e,
|
|
3560
3560
|
index: t
|
|
3561
3561
|
}), re(e));
|
|
3562
3562
|
});
|
|
3563
3563
|
}, [
|
|
3564
|
+
_,
|
|
3564
3565
|
m,
|
|
3565
|
-
c,
|
|
3566
3566
|
t._id,
|
|
3567
|
-
|
|
3567
|
+
I,
|
|
3568
3568
|
re
|
|
3569
|
-
]),
|
|
3570
|
-
|
|
3569
|
+
]), le = s(async () => {
|
|
3570
|
+
A.current?.isPlaying || (k.current.forEach((e) => {
|
|
3571
3571
|
e.mediaItem?.effect?.timing?.forEach((t) => {
|
|
3572
3572
|
setTimeout(() => {
|
|
3573
3573
|
e.element?.triggerEffect();
|
|
3574
3574
|
}, t.start * 1e3);
|
|
3575
3575
|
});
|
|
3576
|
-
}),
|
|
3576
|
+
}), A.current?.onPlay(), _?.onAudioPlayed?.(m, t._id, x?.pageAudio?.mp3 ?? t._id));
|
|
3577
3577
|
}, [
|
|
3578
|
+
_,
|
|
3578
3579
|
m,
|
|
3579
|
-
c,
|
|
3580
3580
|
t._id,
|
|
3581
|
-
|
|
3582
|
-
]),
|
|
3581
|
+
x
|
|
3582
|
+
]), ue = E ?? Ho, fe = ue.left * r / 100, pe = ue.top * r / 100, me = 1200 * r / 100, he = I.length > 0 ? T === oe.DYNAMIC ? /* @__PURE__ */ y("div", {
|
|
3583
3583
|
className: "page-text-overlay",
|
|
3584
|
-
dir:
|
|
3584
|
+
dir: o.toLowerCase(),
|
|
3585
3585
|
style: {
|
|
3586
3586
|
left: 0,
|
|
3587
3587
|
top: 0,
|
|
3588
|
-
transform: `translate(${
|
|
3589
|
-
width:
|
|
3588
|
+
transform: `translate(${fe}px, ${pe}px)`,
|
|
3589
|
+
width: D?.textWidth ? `${D.textWidth * r / 100}px` : "fit-content",
|
|
3590
3590
|
maxWidth: `${me}px`
|
|
3591
3591
|
},
|
|
3592
3592
|
children: /* @__PURE__ */ y("div", {
|
|
3593
3593
|
style: {
|
|
3594
3594
|
display: "inline-block",
|
|
3595
|
-
width:
|
|
3595
|
+
width: D?.textWidth ? "100%" : void 0,
|
|
3596
3596
|
padding: "6px 8px",
|
|
3597
|
-
fontSize:
|
|
3597
|
+
fontSize: D?.fontSize ?? Uo,
|
|
3598
3598
|
lineHeight: 1.2,
|
|
3599
|
-
backgroundColor:
|
|
3600
|
-
color:
|
|
3601
|
-
whiteSpace:
|
|
3602
|
-
wordBreak:
|
|
3599
|
+
backgroundColor: D?.background ?? "transparent",
|
|
3600
|
+
color: D?.color ?? "inherit",
|
|
3601
|
+
whiteSpace: D?.textWidth ? "normal" : "nowrap",
|
|
3602
|
+
wordBreak: D?.textWidth ? "break-word" : void 0,
|
|
3603
3603
|
boxSizing: "border-box"
|
|
3604
3604
|
},
|
|
3605
|
-
children: /* @__PURE__ */ y(
|
|
3605
|
+
children: /* @__PURE__ */ y(ce, {
|
|
3606
3606
|
onWordSelect: re,
|
|
3607
|
-
segments:
|
|
3608
|
-
pageAudio:
|
|
3609
|
-
ref:
|
|
3610
|
-
setIsPlaying:
|
|
3611
|
-
highlightIds:
|
|
3612
|
-
textDirection:
|
|
3607
|
+
segments: I,
|
|
3608
|
+
pageAudio: x?.pageAudio?.path ? x.pageAudio : null,
|
|
3609
|
+
ref: A,
|
|
3610
|
+
setIsPlaying: M,
|
|
3611
|
+
highlightIds: te,
|
|
3612
|
+
textDirection: o
|
|
3613
3613
|
})
|
|
3614
3614
|
})
|
|
3615
3615
|
}) : /* @__PURE__ */ y("div", {
|
|
@@ -3618,86 +3618,86 @@ var Vo = a.memo(Bo), Ho = {
|
|
|
3618
3618
|
className: "textwrapper-inner",
|
|
3619
3619
|
children: /* @__PURE__ */ y("div", {
|
|
3620
3620
|
className: "textcontainer",
|
|
3621
|
-
dir:
|
|
3622
|
-
children: /* @__PURE__ */ y(
|
|
3621
|
+
dir: o.toLowerCase(),
|
|
3622
|
+
children: /* @__PURE__ */ y(ce, {
|
|
3623
3623
|
onWordSelect: re,
|
|
3624
|
-
segments:
|
|
3625
|
-
pageAudio:
|
|
3626
|
-
ref:
|
|
3627
|
-
setIsPlaying:
|
|
3628
|
-
highlightIds:
|
|
3629
|
-
textDirection:
|
|
3624
|
+
segments: I,
|
|
3625
|
+
pageAudio: x?.pageAudio?.path ? x.pageAudio : null,
|
|
3626
|
+
ref: A,
|
|
3627
|
+
setIsPlaying: M,
|
|
3628
|
+
highlightIds: te,
|
|
3629
|
+
textDirection: o
|
|
3630
3630
|
})
|
|
3631
3631
|
})
|
|
3632
3632
|
})
|
|
3633
3633
|
}) : null;
|
|
3634
|
-
return
|
|
3635
|
-
className: ` pageContentWrapper ${
|
|
3636
|
-
dir:
|
|
3634
|
+
return a ? /* @__PURE__ */ b("div", {
|
|
3635
|
+
className: ` pageContentWrapper ${ee}`,
|
|
3636
|
+
dir: o.toLowerCase(),
|
|
3637
3637
|
children: [
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
disabled:
|
|
3641
|
-
onClick:
|
|
3642
|
-
"aria-label":
|
|
3643
|
-
className: `ui btn audioplay ${
|
|
3644
|
-
children: /* @__PURE__ */ y(
|
|
3638
|
+
C && /* @__PURE__ */ y(se, { background: C }),
|
|
3639
|
+
x && /* @__PURE__ */ y("button", {
|
|
3640
|
+
disabled: j === !0,
|
|
3641
|
+
onClick: le,
|
|
3642
|
+
"aria-label": j ? "Audio is playing" : "Play audio",
|
|
3643
|
+
className: `ui btn audioplay ${j ? "playing" : ""}`,
|
|
3644
|
+
children: /* @__PURE__ */ y(ae, {
|
|
3645
3645
|
size: "50%",
|
|
3646
|
-
className: `${
|
|
3646
|
+
className: `${j ? "playing" : ""}`
|
|
3647
3647
|
})
|
|
3648
3648
|
}),
|
|
3649
|
-
|
|
3649
|
+
w && w.map((e, t) => e.effect ? /* @__PURE__ */ y(de, {
|
|
3650
3650
|
item: e,
|
|
3651
|
-
screenScale:
|
|
3651
|
+
screenScale: r,
|
|
3652
3652
|
children: /* @__PURE__ */ y(zo, {
|
|
3653
|
-
screenScale:
|
|
3653
|
+
screenScale: r,
|
|
3654
3654
|
item: e,
|
|
3655
3655
|
onMediaClick: ie,
|
|
3656
3656
|
ref: (n) => {
|
|
3657
|
-
|
|
3657
|
+
k.current[t] = {
|
|
3658
3658
|
element: n,
|
|
3659
3659
|
mediaItem: e
|
|
3660
3660
|
};
|
|
3661
3661
|
}
|
|
3662
3662
|
})
|
|
3663
|
-
}, e.id) : /* @__PURE__ */ b(
|
|
3663
|
+
}, e.id) : /* @__PURE__ */ b(de, {
|
|
3664
3664
|
item: e,
|
|
3665
|
-
screenScale:
|
|
3665
|
+
screenScale: r,
|
|
3666
3666
|
children: [e.mediaType === "lottie" && /* @__PURE__ */ y(v, { children: /* @__PURE__ */ y(zo, {
|
|
3667
3667
|
item: e,
|
|
3668
|
-
screenScale:
|
|
3668
|
+
screenScale: r,
|
|
3669
3669
|
onMediaClick: ie,
|
|
3670
3670
|
ref: (n) => {
|
|
3671
|
-
|
|
3671
|
+
k.current[t] = {
|
|
3672
3672
|
element: n,
|
|
3673
3673
|
mediaItem: e
|
|
3674
3674
|
};
|
|
3675
3675
|
}
|
|
3676
3676
|
}) }), e.mediaType !== "lottie" && /* @__PURE__ */ y(Vo, {
|
|
3677
|
-
path: e
|
|
3677
|
+
path: n(u, e),
|
|
3678
3678
|
mediaType: e.mediaType
|
|
3679
3679
|
})]
|
|
3680
3680
|
}, e.id)),
|
|
3681
3681
|
he
|
|
3682
3682
|
]
|
|
3683
3683
|
}) : /* @__PURE__ */ b("div", {
|
|
3684
|
-
className: `pageContentWrapper ${
|
|
3684
|
+
className: `pageContentWrapper ${ee}`,
|
|
3685
3685
|
inert: !0,
|
|
3686
3686
|
tabIndex: -1,
|
|
3687
3687
|
"aria-hidden": "true",
|
|
3688
|
-
children: [
|
|
3688
|
+
children: [C && /* @__PURE__ */ y(se, { background: C }), he]
|
|
3689
3689
|
});
|
|
3690
3690
|
}, Go = 1280, Ko = 600, qo = Go / Ko, Jo = ({ id: e, analytics: r, fonts: i = [], bookSource: a = {
|
|
3691
3691
|
type: "static",
|
|
3692
3692
|
staticFolder: "GDLBookContent"
|
|
3693
3693
|
} }) => {
|
|
3694
|
-
let [o, s] = p(null), [c, u] = p(null), [d, f] = p(null), [g, T] = p(null), E = C([...o?.fonts ?? [], ...i], o?.language, o?.script),
|
|
3694
|
+
let [o, s] = p(null), [c, u] = p(null), [d, f] = p(null), [g, T] = p(null), E = C([...o?.fonts ?? [], ...i], o?.language, o?.script), D = w(E), ee = E[0]?.family || "Quicksand", te = o?.illustration && o.illustration.path || o?.coverText && o.coverText !== "", O = o?.credits && o.credits?.text || o?.credits?.logos && o.credits?.logos.length > 0, [k, A] = p({
|
|
3695
3695
|
width: 0,
|
|
3696
3696
|
height: 0
|
|
3697
|
-
}), { width:
|
|
3697
|
+
}), { width: j, height: M } = k, N = o?.config.textDirection || "LTR";
|
|
3698
3698
|
l(() => {
|
|
3699
3699
|
let e = () => {
|
|
3700
|
-
|
|
3700
|
+
A({
|
|
3701
3701
|
width: window.innerWidth,
|
|
3702
3702
|
height: window.innerHeight
|
|
3703
3703
|
});
|
|
@@ -3706,17 +3706,17 @@ var Vo = a.memo(Bo), Ho = {
|
|
|
3706
3706
|
window.removeEventListener("resize", e);
|
|
3707
3707
|
};
|
|
3708
3708
|
}, []);
|
|
3709
|
-
let
|
|
3709
|
+
let P = 100, F = {
|
|
3710
3710
|
width: Go,
|
|
3711
3711
|
height: Ko
|
|
3712
3712
|
};
|
|
3713
|
-
return (
|
|
3714
|
-
height:
|
|
3715
|
-
width:
|
|
3716
|
-
},
|
|
3717
|
-
width:
|
|
3718
|
-
height:
|
|
3719
|
-
},
|
|
3713
|
+
return (j < Go || M < Ko) && (Ko / M > Go / j ? (F = {
|
|
3714
|
+
height: M,
|
|
3715
|
+
width: M * qo
|
|
3716
|
+
}, P = M / Ko * 100) : (F = {
|
|
3717
|
+
width: j,
|
|
3718
|
+
height: j / qo
|
|
3719
|
+
}, P = j / Go * 100)), l(() => {
|
|
3720
3720
|
!o && e && (async (e) => {
|
|
3721
3721
|
let t = a.type === "api" ? `${a.apiHost}/api/book?slug=${e}` : `/${a.staticFolder}/${e}/content.json`;
|
|
3722
3722
|
try {
|
|
@@ -3732,11 +3732,12 @@ var Vo = a.memo(Bo), Ho = {
|
|
|
3732
3732
|
role: "alert",
|
|
3733
3733
|
className: "player",
|
|
3734
3734
|
children: ["Error: ", c]
|
|
3735
|
-
}) : !o || !e ? /* @__PURE__ */ y("
|
|
3735
|
+
}) : !o || !e ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("style", { children: x }), /* @__PURE__ */ y("div", {
|
|
3736
3736
|
role: "status",
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3737
|
+
"aria-label": "Loading",
|
|
3738
|
+
className: "player centered",
|
|
3739
|
+
children: /* @__PURE__ */ y("span", { className: "loader" })
|
|
3740
|
+
})] }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("style", { children: `:root, :host, .player { --player-font-family: '${S(ee)}'; }${D}${x}` }), /* @__PURE__ */ y(t, {
|
|
3740
3741
|
bookId: o._id,
|
|
3741
3742
|
slug: o.slug,
|
|
3742
3743
|
assetConfig: a,
|
|
@@ -3751,7 +3752,7 @@ var Vo = a.memo(Bo), Ho = {
|
|
|
3751
3752
|
},
|
|
3752
3753
|
className: "mySwiper swiper-container",
|
|
3753
3754
|
speed: 1200,
|
|
3754
|
-
dir:
|
|
3755
|
+
dir: N.toLowerCase() ?? "ltr",
|
|
3755
3756
|
modules: [_],
|
|
3756
3757
|
pagination: {
|
|
3757
3758
|
clickable: !1,
|
|
@@ -3760,14 +3761,14 @@ var Vo = a.memo(Bo), Ho = {
|
|
|
3760
3761
|
onSwiper: (e) => {
|
|
3761
3762
|
T(e);
|
|
3762
3763
|
},
|
|
3763
|
-
style: { ...
|
|
3764
|
+
style: { ...F },
|
|
3764
3765
|
a11y: {
|
|
3765
3766
|
enabled: !0,
|
|
3766
3767
|
prevSlideMessage: "Previous page",
|
|
3767
3768
|
nextSlideMessage: "Next page"
|
|
3768
3769
|
},
|
|
3769
3770
|
children: [
|
|
3770
|
-
|
|
3771
|
+
te && /* @__PURE__ */ y(h, {
|
|
3771
3772
|
"data-hash": "cover",
|
|
3772
3773
|
children: ({ isActive: e }) => /* @__PURE__ */ b("div", {
|
|
3773
3774
|
className: "cover-page",
|
|
@@ -3784,7 +3785,7 @@ var Vo = a.memo(Bo), Ho = {
|
|
|
3784
3785
|
})
|
|
3785
3786
|
}), /* @__PURE__ */ b("div", {
|
|
3786
3787
|
className: "cover-text",
|
|
3787
|
-
dir:
|
|
3788
|
+
dir: N.toLowerCase() || "ltr",
|
|
3788
3789
|
children: [/* @__PURE__ */ y("h1", { children: o.title }), o.coverText && /* @__PURE__ */ y("small", { children: o.coverText })]
|
|
3789
3790
|
})]
|
|
3790
3791
|
})
|
|
@@ -3793,13 +3794,13 @@ var Vo = a.memo(Bo), Ho = {
|
|
|
3793
3794
|
className: "overflow-hidden",
|
|
3794
3795
|
"data-hash": e._id,
|
|
3795
3796
|
children: ({ isActive: t }) => /* @__PURE__ */ y(Wo, {
|
|
3796
|
-
screenScale:
|
|
3797
|
+
screenScale: P,
|
|
3797
3798
|
page: e,
|
|
3798
3799
|
isActive: t,
|
|
3799
|
-
textDirection:
|
|
3800
|
+
textDirection: N
|
|
3800
3801
|
})
|
|
3801
3802
|
}, e._id)),
|
|
3802
|
-
|
|
3803
|
+
O && /* @__PURE__ */ y(h, {
|
|
3803
3804
|
"data-hash": "credits",
|
|
3804
3805
|
children: ({ isActive: e }) => /* @__PURE__ */ b("div", {
|
|
3805
3806
|
className: "credits-page",
|
|
@@ -3815,7 +3816,7 @@ var Vo = a.memo(Bo), Ho = {
|
|
|
3815
3816
|
}, e))
|
|
3816
3817
|
}), /* @__PURE__ */ b("div", {
|
|
3817
3818
|
className: "credits-page-bottom",
|
|
3818
|
-
dir:
|
|
3819
|
+
dir: N.toLowerCase() || "ltr",
|
|
3819
3820
|
children: [/* @__PURE__ */ b("h1", { children: [
|
|
3820
3821
|
"\"",
|
|
3821
3822
|
o.title,
|
|
@@ -3824,17 +3825,20 @@ var Vo = a.memo(Bo), Ho = {
|
|
|
3824
3825
|
})]
|
|
3825
3826
|
})
|
|
3826
3827
|
}),
|
|
3827
|
-
g && g.slides.length > 1 && /* @__PURE__ */ y(
|
|
3828
|
+
g && g.slides.length > 1 && /* @__PURE__ */ y(ie, {
|
|
3828
3829
|
isFirst: g.isBeginning === !0,
|
|
3829
3830
|
isLast: g.isEnd === !0,
|
|
3830
3831
|
activeIndex: d,
|
|
3831
|
-
textDirection:
|
|
3832
|
+
textDirection: N
|
|
3832
3833
|
})
|
|
3833
3834
|
]
|
|
3834
3835
|
})
|
|
3835
3836
|
})
|
|
3836
3837
|
})
|
|
3837
3838
|
})] });
|
|
3838
|
-
};
|
|
3839
|
+
}, Yo = "1.3.0";
|
|
3840
|
+
function Xo() {
|
|
3841
|
+
return "1.3.0";
|
|
3842
|
+
}
|
|
3839
3843
|
//#endregion
|
|
3840
|
-
export { Jo as Player };
|
|
3844
|
+
export { Yo as PLAYER_VERSION, Jo as Player, Xo as getPlayerVersion };
|