@vanelsas/baredom 4.1.0 → 4.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/CHANGELOG.md +73 -0
- package/README.md +1 -1
- package/dist/baremirror-alpha.js +28 -24
- package/dist/base.js +675 -684
- package/dist/integrity.json +112 -112
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +10 -10
- package/dist/x-avatar.js +14 -14
- package/dist/x-badge.js +9 -9
- package/dist/x-bento-grid.js +6 -6
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +16 -16
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +41 -41
- package/dist/x-cancel-dialogue.js +16 -16
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +34 -34
- package/dist/x-chart.js +48 -48
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +28 -28
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +45 -45
- package/dist/x-combobox.js +34 -34
- package/dist/x-command-palette.js +30 -30
- package/dist/x-confetti.js +24 -24
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +19 -19
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +24 -24
- package/dist/x-date-picker.js +44 -44
- package/dist/x-divider.js +8 -8
- package/dist/x-drag-panel.js +33 -33
- package/dist/x-drawer.js +12 -12
- package/dist/x-drop-zone.js +11 -11
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +14 -14
- package/dist/x-file-upload.js +27 -27
- package/dist/x-floating-panel.js +22 -22
- package/dist/x-form-field.js +18 -18
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +13 -13
- package/dist/x-grid.js +8 -8
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +17 -17
- package/dist/x-kbd.js +13 -13
- package/dist/x-kinetic-canvas.js +25 -25
- package/dist/x-kinetic-font.js +26 -26
- package/dist/x-kinetic-typography.js +34 -34
- package/dist/x-liquid-dock.js +31 -31
- package/dist/x-liquid-fill.js +39 -39
- package/dist/x-liquid-glass.js +36 -36
- package/dist/x-menu-item.js +9 -9
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +26 -26
- package/dist/x-modal.js +13 -13
- package/dist/x-morph-stack.js +38 -38
- package/dist/x-multi-combobox.js +41 -41
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +29 -29
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +18 -18
- package/dist/x-organic-progress.js +34 -34
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-otp-input.js +22 -22
- package/dist/x-pagination.js +16 -16
- package/dist/x-particle-button.js +51 -51
- package/dist/x-popover.js +26 -26
- package/dist/x-progress-circle.js +7 -7
- package/dist/x-progress.js +7 -7
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +13 -13
- package/dist/x-range-slider.js +30 -30
- package/dist/x-rating.js +23 -23
- package/dist/x-ripple-effect.js +10 -10
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +17 -17
- package/dist/x-scroll-story.js +31 -31
- package/dist/x-scroll-timeline.js +46 -46
- package/dist/x-scroll.js +38 -38
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +17 -17
- package/dist/x-skeleton-group.js +13 -13
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +17 -17
- package/dist/x-soft-body.js +17 -17
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +4 -4
- package/dist/x-splash.js +13 -13
- package/dist/x-split-pane.js +15 -15
- package/dist/x-spotlight-card.js +12 -12
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +14 -14
- package/dist/x-switch.js +12 -12
- package/dist/x-tab.js +9 -9
- package/dist/x-table-cell.js +20 -20
- package/dist/x-table-row.js +9 -9
- package/dist/x-table.js +14 -14
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +20 -20
- package/dist/x-theme.js +26 -26
- package/dist/x-timeline-item.js +21 -21
- package/dist/x-timeline.js +8 -8
- package/dist/x-toast.js +22 -22
- package/dist/x-toaster.js +6 -6
- package/dist/x-tooltip.js +13 -13
- package/dist/x-trace-history.js +117 -117
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +62 -62
- package/package.json +1 -1
package/dist/x-scroll-story.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
$APP.
|
|
4
|
-
"name","media");var r=document.createElement("div");$APP.U(r,"part","indicator");e.appendChild(r);e.appendChild(h);$APP.U(f,"part","steps");f.appendChild(k);d.appendChild(e);d.appendChild(f);$APP.U(n,"part","live");$APP.U(n,"aria-live","polite");$APP.U(n,"aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(n);$APP.
|
|
5
|
-
$APP.
|
|
6
|
-
$APP.C(b,$APP.
|
|
7
|
-
return typeof a==="string"&&$APP.M.j(a,"")?a:null},
|
|
8
|
-
|
|
9
|
-
e){if(h<$APP.
|
|
10
|
-
"__xScrollStoryModel");return $APP.m(n)?n:
|
|
11
|
-
|
|
12
|
-
if($APP.m(function(){if($APP.m(e)){var k=$APP.
|
|
13
|
-
requestAnimationFrame(d))}}return null}},
|
|
14
|
-
d=c>=0&&c<d.length?
|
|
15
|
-
$APP.l(a,"__xScrollStoryActiveIndex");return $APP.m(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?
|
|
16
|
-
$APP.l(b,"pointerup")),a.removeEventListener("pointerleave",$APP.l(b,"pointerleave")),a.removeEventListener("keydown",$APP.l(b,"keydown")),a.removeEventListener("keyup",$APP.l(b,"keyup")),$APP.
|
|
17
|
-
$APP.
|
|
18
|
-
|
|
19
|
-
a.isConnected;return $APP.m(b)?(b=$APP.l(a,"__xScrollStoryVisible"),$APP.m(b)?$APP.p(
|
|
20
|
-
$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1)},
|
|
21
|
-
"__xScrollStoryModel");return $APP.m($APP.m(b)?$APP.
|
|
22
|
-
"__xScrollStoryVisible"))?
|
|
23
|
-
b)}b=$APP.l(a,"__xScrollStoryRAF");$APP.m(b)&&(cancelAnimationFrame(b),$APP.
|
|
24
|
-
b)){var c=$APP.G(b),d=$APP.C(c,$APP.
|
|
25
|
-
"__xScrollStoryVisible"))&&(
|
|
2
|
+
var z7=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.m(isNaN(a))?.5:$APP.Rj.j(0,$APP.Qj.j(1,a))):.5},A7=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.m(isNaN(a))?.5:$APP.Rj.j(.1,$APP.Qj.j(.9,a))):.5},B7=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.m(isNaN(a))?50:$APP.Rj.j(1,$APP.Qj.j(1E3,a))):50},aBa=function(a,b){var c=$APP.x(a);if(c===0)return-1;for(var d=0,e=-1,f=-1;;){if(d>=c)return e>=0?e:f;var h=$APP.Cc(a,d),k=$APP.G(h);h=$APP.C(k,
|
|
3
|
+
$APP.Bs);k=$APP.C(k,$APP.zq);e=h<=b&&k>b?d:e;f=h<=b?d:f;d+=1}},D7=function(a){var b=$APP.l(a,"__xScrollStoryRefs");if($APP.m(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("div"),h=document.createElement("slot"),k=document.createElement("slot"),n=document.createElement("div");c.textContent=bBa;$APP.U(d,"part","container");$APP.U(d,"role","region");$APP.U(e,"part","media");$APP.U(h,
|
|
4
|
+
"name","media");var r=document.createElement("div");$APP.U(r,"part","indicator");e.appendChild(r);e.appendChild(h);$APP.U(f,"part","steps");f.appendChild(k);d.appendChild(e);d.appendChild(f);$APP.U(n,"part","live");$APP.U(n,"aria-live","polite");$APP.U(n,"aria-atomic","true");b.appendChild(c);b.appendChild(d);b.appendChild(n);$APP.T(a,"__xScrollStoryRefs",new $APP.K(null,6,[$APP.el,b,$APP.fl,d,C7,e,$APP.Sr,f,$APP.on,k,$APP.Ms,n],null));return $APP.l(a,"__xScrollStoryRefs")},G7=function(a){a=$APP.zg([$APP.Bk,
|
|
5
|
+
$APP.tt,$APP.Ku,$APP.ss,$APP.Yq,$APP.sp,$APP.Xs,$APP.tr,E7],[a.getAttribute("label"),a.getAttribute("autoplay-speed"),$APP.m(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.m(a.hasAttribute("autoplay-indicator"))?"":null,$APP.m(a.hasAttribute("disabled"))?"":null,$APP.m(a.hasAttribute("autoplay-loop"))?"":null,a.getAttribute("split")]);var b=$APP.G(a);a=$APP.C(b,$APP.Xs);var c=$APP.C(b,$APP.tr),d=$APP.C(b,E7),e=$APP.C(b,$APP.Bk),f=$APP.C(b,$APP.tt),h=
|
|
6
|
+
$APP.C(b,$APP.Ku),k=$APP.C(b,$APP.ss),n=$APP.C(b,$APP.Yq);b=$APP.C(b,$APP.sp);n=typeof n==="string"?n.trim().toLowerCase():null;n=$APP.jd(F7,n)?n:"left";return $APP.zg([$APP.Ct,$APP.Js,$APP.Cu,$APP.Yu,$APP.Z,$APP.np,$APP.Ik,$APP.ut,$APP.pp],[n,c!=null,z7(k),A7(d),$APP.m(e)?e:"",b!=null,a!=null,B7(f),h!=null])},H7=function(a){a=D7(a);a=$APP.G(a);return $APP.C(a,$APP.on).assignedElements()},I7=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},J7=function(a){a=a.getAttribute("id");
|
|
7
|
+
return typeof a==="string"&&$APP.M.j(a,"")?a:null},K7=function(a,b){a.textContent=b;setTimeout(function(){return a.textContent=""},3E3)},cBa=function(a,b,c){var d=$APP.l(a,"__xScrollStoryActiveIndex");d=$APP.m(d)?d:-1;if($APP.M.j(d,c)){d>=0&&d<b.length&&$APP.V(b[d],"data-active");c>=0&&c<b.length&&$APP.U(b[c],"data-active","");c>=0?$APP.U(a,"data-active-index",""+$APP.N.i(c)):$APP.V(a,"data-active-index");$APP.T(a,"__xScrollStoryActiveIndex",c);var e=d>=0&&d<b.length?J7(b[d]):null;b=c>=0&&c<b.length?
|
|
8
|
+
J7(b[c]):null;$APP.Ri(a,"x-scroll-story-step-change",$APP.Im(new $APP.K(null,4,[$APP.Ql,c,$APP.dr,b,$APP.Yp,d,$APP.pv,e],null)));a=$APP.G($APP.l(a,"__xScrollStoryRefs"));a=$APP.C(a,$APP.Ms);K7(a,"Step "+$APP.N.i(c+1)+" active")}},dBa=function(a,b,c,d){var e=b.length;var f=$APP.l(a,"__xScrollStoryStepStates");if(!$APP.m($APP.m(f)?$APP.z.j(f.length,e):f)){for(var h=Array(e),k=0;;)if(k<e)h[k]=$APP.m($APP.m(f)?k<f.length:f)?f[k]:!1,k+=1;else break;$APP.T(a,"__xScrollStoryStepStates",h);f=h}for(h=0;;)if(h<
|
|
9
|
+
e){if(h<$APP.x(c)){k=$APP.Cc(c,h);k=$APP.G(k);var n=$APP.C(k,$APP.Bs),r=$APP.C(k,$APP.zq),v=f[h];k=n<=d&&r>d;var w=J7(b[h]),y=n;n=r-n;n=n<=0?0:$APP.Rj.j(0,$APP.Qj.j(1,(d-y)/n));$APP.p(v)&&k?(f[h]=!0,$APP.Ri(a,"x-scroll-story-step-enter",$APP.Im(new $APP.K(null,3,[$APP.Ql,h,$APP.dr,w,$APP.rr,n],null)))):$APP.m($APP.m(v)?!k:v)&&(f[h]=!1,$APP.Ri(a,"x-scroll-story-step-leave",$APP.Im(new $APP.K(null,3,[$APP.Ql,h,$APP.dr,w,$APP.rr,n],null))))}h+=1}else break},L7=function(a){var b=function(){var n=$APP.l(a,
|
|
10
|
+
"__xScrollStoryModel");return $APP.m(n)?n:G7(a)}();if(!$APP.m($APP.Ik.i(b))){var c=H7(a),d=c.length,e=window.innerHeight,f=e*$APP.Cu.i(b),h=function(){for(var n=0,r=$APP.We;;){if(n>=d)return r;var v=c[n].getBoundingClientRect();n+=1;r=$APP.Gd.j(r,new $APP.K(null,2,[$APP.Bs,v.top,$APP.zq,v.top+v.height],null))}}();b=aBa(h,f);var k=$APP.G($APP.l(a,"__xScrollStoryRefs"));k=$APP.C(k,$APP.Sr).getBoundingClientRect();e=$APP.Rj.j(0,$APP.Qj.j(1,(e-k.top)/(e+k.height)));k=$APP.l(a,"__xScrollStoryLastProg");
|
|
11
|
+
cBa(a,c,b);dBa(a,c,h,f);if(k==null||Math.abs(e-k)>.001)$APP.T(a,"__xScrollStoryLastProg",e),f=b>=0&&b<d?J7(c[b]):null,$APP.Ri(a,"x-scroll-story-progress",$APP.Im(new $APP.K(null,3,[$APP.rr,e,$APP.jq,b,$APP.ru,f],null)))}return $APP.Ci(a,"__xScrollStoryRAF",null)},M7=function(a){return function d(c){if($APP.m(function(){var k=a.isConnected;return $APP.m(k)?(k=$APP.l(a,"__xScrollStoryVisible"),$APP.m(k)?$APP.p($APP.l(a,"__xScrollStoryAutoplayPaused")):k):k}())){var e=$APP.l(a,"__xScrollStoryModel");
|
|
12
|
+
if($APP.m(function(){if($APP.m(e)){var k=$APP.pp.i(e);return $APP.m(k)?$APP.p($APP.Ik.i(e)):k}return e}())){var f=$APP.l(a,"__xScrollStoryAutoplayLast");f=$APP.m(f)?(c-f)/1E3:0;$APP.T(a,"__xScrollStoryAutoplayLast",c);if(f>0){var h=window.scrollY;window.scrollBy(0,$APP.ut.i(e)*f);$APP.m(function(){var k=$APP.Js.i(e);return $APP.m(k)?window.scrollY-h<.5:k}())&&(c=a.getBoundingClientRect().top+window.scrollY,window.scrollTo(0,c),$APP.T(a,"__xScrollStoryAutoplayLast",null))}return $APP.T(a,"__xScrollStoryAutoplayRAF",
|
|
13
|
+
requestAnimationFrame(d))}}return null}},N7=function(a){if($APP.m($APP.l(a,"__xScrollStoryAutoplayPaused")))return null;$APP.T(a,"__xScrollStoryAutoplayPaused",!0);var b=$APP.l(a,"__xScrollStoryAutoplayRAF");$APP.m(b)&&(cancelAnimationFrame(b),$APP.T(a,"__xScrollStoryAutoplayRAF",null));$APP.U(a,"data-autoplay-paused","");b=function(){var e=$APP.l(a,"__xScrollStoryLastProg");return $APP.m(e)?e:0}();var c=function(){var e=$APP.l(a,"__xScrollStoryActiveIndex");return $APP.m(e)?e:-1}(),d=a.children;
|
|
14
|
+
d=c>=0&&c<d.length?J7(d[c]):null;return $APP.Ri(a,"x-scroll-story-autoplay-pause",$APP.Im(new $APP.K(null,3,[$APP.rr,b,$APP.jq,c,$APP.ru,d],null)))},O7=function(a){if($APP.m($APP.l(a,"__xScrollStoryAutoplayPaused"))){$APP.T(a,"__xScrollStoryAutoplayPaused",!1);$APP.V(a,"data-autoplay-paused");$APP.T(a,"__xScrollStoryAutoplayLast",null);$APP.T(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(M7(a)));var b=function(){var e=$APP.l(a,"__xScrollStoryLastProg");return $APP.m(e)?e:0}(),c=function(){var e=
|
|
15
|
+
$APP.l(a,"__xScrollStoryActiveIndex");return $APP.m(e)?e:-1}(),d=a.children;d=c>=0&&c<d.length?J7(d[c]):null;return $APP.Ri(a,"x-scroll-story-autoplay-resume",$APP.Im(new $APP.K(null,3,[$APP.rr,b,$APP.jq,c,$APP.ru,d],null)))}return null},P7=function(a){var b=$APP.l(a,"__xScrollStoryAutoplayRAF");$APP.m(b)&&(cancelAnimationFrame(b),$APP.T(a,"__xScrollStoryAutoplayRAF",null));b=$APP.l(a,"__xScrollStoryAutoplayHandlers");$APP.m(b)&&(a.removeEventListener("pointerdown",$APP.l(b,"pointerdown")),a.removeEventListener("pointerup",
|
|
16
|
+
$APP.l(b,"pointerup")),a.removeEventListener("pointerleave",$APP.l(b,"pointerleave")),a.removeEventListener("keydown",$APP.l(b,"keydown")),a.removeEventListener("keyup",$APP.l(b,"keyup")),$APP.T(a,"__xScrollStoryAutoplayHandlers",null));$APP.V(a,"data-autoplay-paused");$APP.V(a,"tabindex");$APP.T(a,"__xScrollStoryAutoplayPaused",!1);return $APP.T(a,"__xScrollStoryAutoplayLast",null)},Q7=function(a){if($APP.l(a,"__xScrollStoryAutoplayRAF")!=null)return null;var b=$APP.l(a,"__xScrollStoryModel");if($APP.m(function(){if($APP.m(b)){var k=
|
|
17
|
+
$APP.pp.i(b);return $APP.m(k)?(k=$APP.p($APP.Ik.i(b)))?(k=$APP.l(a,"__xScrollStoryVisible"),$APP.m(k)?!I7():k):k:k}return b}())){$APP.U(a,"tabindex","0");$APP.T(a,"__xScrollStoryAutoplayPaused",!1);$APP.T(a,"__xScrollStoryAutoplayLast",null);var c=function(){return N7(a)},d=function(){return O7(a)},e=function(){return $APP.m($APP.l(a,"__xScrollStoryAutoplayPaused"))?O7(a):null},f=function(k){return $APP.z.j(k.code,"Space")?(k.preventDefault(),N7(a)):null},h=function(k){return $APP.z.j(k.code,"Space")?
|
|
18
|
+
O7(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",f);a.addEventListener("keyup",h);$APP.T(a,"__xScrollStoryAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:f,keyup:h});return $APP.T(a,"__xScrollStoryAutoplayRAF",requestAnimationFrame(M7(a)))}return null},R7=function(a){a=$APP.l(a,"__xScrollStoryModel");return $APP.m(a)?$APP.Ik.i(a):a},eBa=function(a){return $APP.m(function(){var b=
|
|
19
|
+
a.isConnected;return $APP.m(b)?(b=$APP.l(a,"__xScrollStoryVisible"),$APP.m(b)?$APP.p(R7(a))&&!I7():b):b}())?$APP.m($APP.l(a,"__xScrollStoryRAF"))?null:$APP.Ci(a,"__xScrollStoryRAF",requestAnimationFrame(function(){return L7(a)})):null},S7=function(a){a=$APP.l(a,"__xScrollStoryHandlers");$APP.m($APP.m(a)?$APP.p($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},T7=function(a){a=$APP.l(a,"__xScrollStoryHandlers");$APP.m($APP.m(a)?
|
|
20
|
+
$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1)},fBa=function(a,b){b=b[0].isIntersecting;var c=$APP.G($APP.l(a,"__xScrollStoryRefs"));c=$APP.C(c,$APP.Ms);$APP.T(a,"__xScrollStoryVisible",b);if($APP.m(b)){if($APP.m(R7(a)))return null;S7(a);L7(a);K7(c,"Story section entered viewport");$APP.Ri(a,"x-scroll-story-enter",$APP.Im(new $APP.K(null,1,[$APP.rr,function(){var d=$APP.l(a,"__xScrollStoryLastProg");return $APP.m(d)?d:0}()],null)));b=$APP.l(a,
|
|
21
|
+
"__xScrollStoryModel");return $APP.m($APP.m(b)?$APP.pp.i(b):b)?Q7(a):null}T7(a);P7(a);if($APP.m(R7(a)))return null;K7(c,"Story section left viewport");return $APP.Ri(a,"x-scroll-story-leave",$APP.Im(new $APP.K(null,1,[$APP.rr,function(){var d=$APP.l(a,"__xScrollStoryLastProg");return $APP.m(d)?d:0}()],null)))},gBa=function(a){function b(){return $APP.m($APP.l(a,"__xScrollStoryVisible"))?($APP.T(a,"__xScrollStoryStepStates",null),L7(a)):null}function c(){$APP.T(a,"__xScrollStoryStepStates",null);return $APP.m($APP.l(a,
|
|
22
|
+
"__xScrollStoryVisible"))?L7(a):null}var d=D7(a);d=$APP.G(d);$APP.C(d,$APP.on).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.T(a,"__xScrollStoryHandlers",{scroll:function(){return eBa(a)},slot:c,resize:b,scrollAttached:!1})},U7=function(a){var b=$APP.l(a,"__xScrollStoryHandlers");if($APP.m(b)){T7(a);var c=$APP.l(a,"__xScrollStoryRefs");if($APP.m(c)){c=$APP.on.i(c);var d=$APP.l(b,"slot");$APP.m(d)&&c.removeEventListener("slotchange",d)}b=$APP.l(b,"resize");$APP.m(b)&&window.removeEventListener("resize",
|
|
23
|
+
b)}b=$APP.l(a,"__xScrollStoryRAF");$APP.m(b)&&(cancelAnimationFrame(b),$APP.Ci(a,"__xScrollStoryRAF",null));$APP.T(a,"__xScrollStoryHandlers",null)},hBa=function(a){var b=$APP.l(a,"__xScrollStoryIO");$APP.m(b)&&b.disconnect();b=new IntersectionObserver(function(c){return fBa(a,c)},{threshold:[0]});b.observe(a);$APP.T(a,"__xScrollStoryIO",b)},V7=function(a){a=H7(a);for(var b=a.length,c=0;;)if(c<b)$APP.V(a[c],"data-active"),c+=1;else break},W7=function(a){var b=G7(a);if($APP.M.j($APP.l(a,"__xScrollStoryModel"),
|
|
24
|
+
b)){var c=$APP.G(b),d=$APP.C(c,$APP.Ct),e=$APP.C(c,$APP.Yu);b=$APP.C(c,$APP.Ik);var f=$APP.C(c,$APP.Z),h=D7(a),k=$APP.G(h);h=$APP.C(k,$APP.fl);k=$APP.C(k,C7);$APP.U(a,"data-layout",d);$APP.z.j(d,"top")?k.style.width="":k.style.width="var(--x-scroll-story-media-width,"+$APP.N.i(e*100)+"%)";$APP.q(f)?$APP.U(h,"aria-label",f):$APP.V(h,"aria-label");$APP.T(a,"__xScrollStoryModel",c);$APP.m(b)?(V7(a),$APP.T(a,"__xScrollStoryActiveIndex",-1),$APP.T(a,"__xScrollStoryStepStates",null),T7(a),P7(a)):$APP.m($APP.l(a,
|
|
25
|
+
"__xScrollStoryVisible"))&&(S7(a),L7(a));c=$APP.pp.i(c);b=$APP.m(c)?(b=$APP.p(b))?$APP.l(a,"__xScrollStoryVisible"):b:c;a=$APP.m(b)?Q7(a):P7(a)}else a=null;return a},iBa=function(a){$APP.Zi(a,"layout","layout","left");$APP.bj(a,"threshold","threshold",z7);$APP.bj(a,"split","split",A7);$APP.Wi(a,"disabled","disabled");$APP.Wi(a,"autoplay","autoplay");$APP.bj(a,"autoplaySpeed","autoplay-speed",B7);$APP.Wi(a,"autoplayLoop","autoplay-loop");$APP.Wi(a,"autoplayIndicator","autoplay-indicator");Object.defineProperty(a,
|
|
26
26
|
"label",{get:function(){var b=this.getAttribute("label");return $APP.m(b)?b:""},set:function(b){return $APP.m($APP.m(b)?$APP.M.j(b,""):b)?$APP.U(this,"label",""+$APP.N.i(b)):$APP.V(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"activeIndex",{get:function(){var b=$APP.l(this,"__xScrollStoryActiveIndex");return b!=null?b:-1},enumerable:!0,configurable:!0});Object.defineProperty(a,"progress",{get:function(){var b=$APP.l(this,"__xScrollStoryLastProg");return $APP.m(b)?b:0},enumerable:!0,
|
|
27
|
-
configurable:!0});return Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.D($APP.l(this,"__xScrollStoryAutoplayPaused"))},enumerable:!0,configurable:!0})},
|
|
28
|
-
$APP.
|
|
29
|
-
$APP.
|
|
30
|
-
$APP.Y,$APP.W,"threshold"],null),new $APP.K(null,2,[$APP.P,$APP.
|
|
31
|
-
$APP.
|
|
32
|
-
[$APP.
|
|
33
|
-
2,[$APP.
|
|
27
|
+
configurable:!0});return Object.defineProperty(a,"autoplayPaused",{get:function(){return $APP.D($APP.l(this,"__xScrollStoryAutoplayPaused"))},enumerable:!0,configurable:!0})},jBa=function(a){D7(a);U7(a);gBa(a);hBa(a);return W7(a)},kBa=function(a){P7(a);V7(a);if($APP.m($APP.l(a,"__xScrollStoryVisible"))){var b=$APP.l(a,"__xScrollStoryLastProg");$APP.Ri(a,"x-scroll-story-leave",$APP.Im(new $APP.K(null,1,[$APP.rr,$APP.m(b)?b:0],null)))}U7(a);b=$APP.l(a,"__xScrollStoryIO");$APP.m(b)&&(b.disconnect(),
|
|
28
|
+
$APP.T(a,"__xScrollStoryIO",null));$APP.T(a,"__xScrollStoryVisible",!1);$APP.T(a,"__xScrollStoryActiveIndex",-1);$APP.T(a,"__xScrollStoryLastProg",null);return $APP.T(a,"__xScrollStoryStepStates",null)},lBa=function(a,b,c,d){return $APP.M.j(c,d)?W7(a):null},X7=function(){return $APP.uj("x-scroll-story",new $APP.K(null,5,[$APP.mj,mBa,$APP.nj,jBa,$APP.oj,kBa,$APP.pj,lBa,$APP.sj,iBa],null))},E7=new $APP.F(null,"split-raw","split-raw",-455766786),C7=new $APP.F(null,"media","media",-1066138403);var mBa="layout threshold split disabled label autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" "),F7=new $APP.Yg(null,new $APP.K(null,3,["right",null,"top",null,"left",null],null),null);
|
|
29
|
+
$APP.zg([$APP.lu,$APP.hs,$APP.Eq,$APP.Qm,$APP.Ct,$APP.jq,$APP.Cu,$APP.bv,$APP.Yu,$APP.Z,$APP.Kt,$APP.rr],[new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"autoplay-loop"],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.W,"autoplay-speed"],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"autoplay-indicator"],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"disabled"],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"layout",$APP.cu,F7],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.oq,!0],null),new $APP.K(null,2,[$APP.P,
|
|
30
|
+
$APP.Y,$APP.W,"threshold"],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.oq,!0],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.W,"split"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"label"],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"autoplay"],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.oq,!0],null)]);
|
|
31
|
+
$APP.me(["x-scroll-story-step-change",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,4,[$APP.Ql,$APP.Y,$APP.dr,$APP.X,$APP.Yp,$APP.Y,$APP.pv,$APP.X],null),$APP.wr,!1],null),"x-scroll-story-step-enter",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,3,[$APP.Ql,$APP.Y,$APP.dr,$APP.X,$APP.rr,$APP.Y],null),$APP.wr,!1],null),"x-scroll-story-step-leave",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,3,[$APP.Ql,$APP.Y,$APP.dr,$APP.X,$APP.rr,$APP.Y],null),$APP.wr,!1],null),"x-scroll-story-progress",new $APP.K(null,2,
|
|
32
|
+
[$APP.Oi,new $APP.K(null,3,[$APP.rr,$APP.Y,$APP.jq,$APP.Y,$APP.ru,$APP.X],null),$APP.wr,!1],null),"x-scroll-story-enter",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,1,[$APP.rr,$APP.Y],null),$APP.wr,!1],null),"x-scroll-story-leave",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,1,[$APP.rr,$APP.Y],null),$APP.wr,!1],null),"x-scroll-story-autoplay-pause",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,3,[$APP.rr,$APP.Y,$APP.jq,$APP.Y,$APP.ru,$APP.X],null),$APP.wr,!1],null),"x-scroll-story-autoplay-resume",new $APP.K(null,
|
|
33
|
+
2,[$APP.Oi,new $APP.K(null,3,[$APP.rr,$APP.Y,$APP.jq,$APP.Y,$APP.ru,$APP.X],null),$APP.wr,!1],null)]);var bBa=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-story-gap:0;--x-scroll-story-step-min-height:80vh;--x-scroll-story-step-padding:2rem;--x-scroll-story-active-opacity:1;--x-scroll-story-inactive-opacity:0.3;--x-scroll-story-transition-duration:var(--x-transition-duration,300ms);--x-scroll-story-disabled-opacity:0.55;--x-scroll-story-media-top:0;}"+$APP.N.i(":host([hidden]){display:none;}")+"[part\x3dcontainer]{display:flex;gap:var(--x-scroll-story-gap);}:host([data-layout\x3dleft]) [part\x3dcontainer]{flex-direction:row;}:host([data-layout\x3dright]) [part\x3dcontainer]{flex-direction:row-reverse;}:host([data-layout\x3dtop]) [part\x3dcontainer]{flex-direction:column;}[part\x3dmedia]{position:sticky;top:var(--x-scroll-story-media-top);align-self:flex-start;flex-shrink:0;}:host([data-layout\x3dtop]) [part\x3dmedia]{position:sticky;width:100%;}[part\x3dsteps]{flex:1;min-width:0;}[part\x3dmedia]{height:100dvh;}::slotted(:not([slot])){min-height:var(--x-scroll-story-step-min-height);padding:var(--x-scroll-story-step-padding);opacity:var(--x-scroll-story-inactive-opacity);transition:opacity var(--x-scroll-story-transition-duration) ease;}::slotted([data-active]){opacity:var(--x-scroll-story-active-opacity);}:host([disabled]){opacity:var(--x-scroll-story-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:var(--x-radius-sm,3px);}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}}";$APP.ha("baredom.exports.x_scroll_story.init",X7);export const init=X7;
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
$APP.
|
|
4
|
-
null);;){if(e>=d-1)return $APP.
|
|
5
|
-
var e=document.createElement("div");var f=document.createElement("div"),h=document.createElement("div");$APP.U(e,"part","track");$APP.U(f,"part","track-line");$APP.U(h,"part","track-fill");e.appendChild(f);e.appendChild(h);e=new $APP.K(null,3,[$APP.
|
|
6
|
-
"aria-hidden","true");$APP.U(f,"focusable","false");$APP.U(h,"part","track-path");$APP.U(k,"part","track-fill-path");$APP.U(k,"pathLength","1");f.appendChild(h);f.appendChild(k);f=new $APP.K(null,3,[
|
|
7
|
-
"aria-live","polite");$APP.U(n,"aria-atomic","true");c.textContent=
|
|
8
|
-
|
|
9
|
-
$APP.G(a);a=$APP.C(b,$APP.
|
|
10
|
-
$APP.
|
|
11
|
-
""},1E3)},
|
|
12
|
-
f+=1;else break;d=Array(b);for(e=0;;)if(e<b)f=document.createElement("div"),f.classList.add("tl-marker"),c.appendChild(f),d[e]=f,e+=1;else break;$APP.
|
|
13
|
-
"string"&&$APP.M.j(h,"")?(k=document.createElement("span"),k.classList.add("tl-date"),k.textContent=h,c.appendChild(k),e[f]=k):e[f]=null,f+=1;else break;$APP.
|
|
14
|
-
h=function(){var O=parseFloat(v);return $APP.m(isNaN(O))?60:O}();var
|
|
15
|
-
O=da}}();h=
|
|
16
|
-
h;a:{var k=c.length,n=0;for(h=$APP.
|
|
17
|
-
n.top)/(e+n.height)));n=
|
|
18
|
-
null}),
|
|
19
|
-
id:A,progress:E})):$APP.m($APP.m(O)?!y:O)&&(v[
|
|
20
|
-
"__xScrollTimelineLastProg");if(c==null||Math.abs(e-c)>.001)$APP.
|
|
21
|
-
$APP.
|
|
22
|
-
|
|
23
|
-
null;return $APP.
|
|
24
|
-
return $APP.m(e)?e:-1}(),d=
|
|
25
|
-
$APP.l(b,"pointerleave")),a.removeEventListener("keydown",$APP.l(b,"keydown")),a.removeEventListener("keyup",$APP.l(b,"keyup")),$APP.
|
|
26
|
-
return $APP.m(k)?(k=$APP.p($APP.
|
|
27
|
-
|
|
28
|
-
a.isConnected;return $APP.m(b)?(b=$APP.l(a,"__xScrollTimelineVisible"),$APP.m(b)?$APP.p(
|
|
29
|
-
$APP.m($APP.m(a)?$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1)},
|
|
30
|
-
null}
|
|
31
|
-
h=$APP.G($APP.l(a,"__xScrollTimelineRefs"));h=$APP.C(h,$APP.
|
|
32
|
-
"__xScrollTimelineVisible"))?
|
|
33
|
-
$APP.l(a,"__xScrollTimelineHandlers");if($APP.m(b)){
|
|
34
|
-
b=new IntersectionObserver(function(c){return
|
|
35
|
-
$APP.U(d,"aria-label",h):$APP.V(d,"aria-label");$APP.
|
|
36
|
-
b=$APP.C(c,$APP.
|
|
37
|
-
return d.i?d.i(e):d.call(null,e)},set:function(e){return e!=null?$APP.U(this,c,""+$APP.N.i(e)):$APP.V(this,c)},enumerable:!0,configurable:!0})},
|
|
38
|
-
"disabled","disabled");$APP.
|
|
39
|
-
"__xScrollTimelineLastProg");$APP.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
$APP.
|
|
43
|
-
2,[$APP.P,$APP.Y,$APP.
|
|
44
|
-
$APP.
|
|
45
|
-
2,[$APP.
|
|
46
|
-
new $APP.K(null,2,[$APP.
|
|
47
|
-
$APP.N.i(":host([hidden]){display:none;}")+"@media (prefers-color-scheme:dark){:host{--x-scroll-timeline-track-color:var(--x-color-border,rgba(255,255,255,0.12));--x-scroll-timeline-marker-color:var(--x-color-border,rgba(255,255,255,0.18));--x-scroll-timeline-date-color:var(--x-color-text-muted,rgba(255,255,255,0.5));}}[part\x3dcontainer]{position:relative;padding:0;}[part\x3dtrack]{position:absolute;top:0;bottom:0;left:50%;transform:translateX(-50%);width:var(--x-scroll-timeline-track-width);pointer-events:none;z-index:1;}:host([data-layout\x3dleft]) [part\x3dtrack]{left:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}:host([data-layout\x3dright]) [part\x3dtrack]{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}[part\x3dtrack-line]{position:absolute;top:0;bottom:0;left:0;right:0;background:var(--x-scroll-timeline-track-color);border-radius:var(--x-radius-full,999px);}[part\x3dtrack-fill]{position:absolute;top:0;left:0;right:0;height:0%;background:var(--x-scroll-timeline-track-fill-color);border-radius:var(--x-radius-full,999px);transition:height 60ms linear;}[part\x3dtrack-svg]{display:none;position:absolute;top:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1;}:host([data-track\x3dcurved]) [part\x3dtrack-line],:host([data-track\x3dcurved]) [part\x3dtrack-fill]{display:none;}:host([data-track\x3dcurved]) [part\x3dtrack-svg]{display:block;}[part\x3dtrack-path]{fill:none;stroke:var(--x-scroll-timeline-track-color);stroke-width:3px;stroke-linecap:round;}[part\x3dtrack-fill-path]{fill:none;stroke:var(--x-scroll-timeline-track-fill-color);stroke-width:3px;stroke-linecap:round;transition:stroke-dashoffset 60ms linear;}[part\x3dentries]{position:relative;z-index:2;}::slotted(*){display:block;margin-bottom:var(--x-scroll-timeline-entry-gap);opacity:0.4;transition:opacity var(--x-scroll-timeline-transition-duration) ease;}::slotted(:last-child){margin-bottom:0;}::slotted([data-active]){opacity:1;}:host([data-layout\x3dalternating]) ::slotted(*){width:calc(50% - var(--x-scroll-timeline-marker-size));}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dleft]){margin-left:0;margin-right:auto;text-align:right;padding-right:1.5rem;}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dright]){margin-left:auto;margin-right:0;text-align:left;padding-left:1.5rem;}:host([data-layout\x3dleft]) ::slotted(*){margin-left:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;}:host([data-layout\x3dright]) ::slotted(*){margin-right:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;text-align:right;}.tl-marker{position:absolute;z-index:3;width:var(--x-scroll-timeline-marker-size);height:var(--x-scroll-timeline-marker-size);border-radius:50%;background:var(--x-scroll-timeline-marker-color);border:2px solid transparent;transform:translate(-50%,-50%);transition:background var(--x-scroll-timeline-transition-duration) ease,border-color var(--x-scroll-timeline-transition-duration) ease,box-shadow var(--x-scroll-timeline-transition-duration) ease;}.tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-scroll-timeline-marker-active-color) 25%,transparent);}:host([data-marker\x3dring]) .tl-marker{background:transparent;border:2px solid var(--x-scroll-timeline-marker-color);}:host([data-marker\x3dring]) .tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);}:host([data-marker\x3dnone]) .tl-marker{display:none;}.tl-marker{left:50%;}:host([data-layout\x3dleft]) .tl-marker{left:calc(var(--x-scroll-timeline-marker-size) / 2);}:host([data-layout\x3dright]) .tl-marker{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:translate(50%,-50%);}.tl-date{position:absolute;z-index:3;font-size:var(--x-scroll-timeline-date-font-size);color:var(--x-scroll-timeline-date-color);white-space:nowrap;transform:translateY(-50%);transition:color var(--x-scroll-timeline-transition-duration) ease;}.tl-date[data-active]{color:var(--x-scroll-timeline-marker-active-color);font-weight:var(--x-font-weight-semibold,600);}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dleft]{left:calc(50% + var(--x-scroll-timeline-marker-size));padding-left:0.5rem;}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dright]{right:calc(50% + var(--x-scroll-timeline-marker-size));padding-right:0.5rem;text-align:right;}:host([data-layout\x3dleft]) .tl-date{left:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);}:host([data-layout\x3dright]) .tl-date{right:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);text-align:right;}:host([disabled]){opacity:var(--x-scroll-timeline-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;z-index:4;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:var(--x-radius-sm,3px);}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (pointer:coarse){:host{--x-scroll-timeline-marker-size:44px;}}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}.tl-marker{transition:none !important;}.tl-date{transition:none !important;}[part\x3dtrack-fill]{transition:none !important;}[part\x3dtrack-fill-path]{transition:none !important;}}";$APP.ha("baredom.exports.x_scroll_timeline.init"
|
|
2
|
+
var oE=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.m(isNaN(a))?.5:$APP.Rj.j(0,$APP.Qj.j(1,a))):.5},pE=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.m(isNaN(a))?50:$APP.Rj.j(1,$APP.Qj.j(1E3,a))):50},qE=function(a,b){switch(a){case "alternating":return $APP.zd(b,2)===0?"left":"right";case "left":return"right";case "right":return"left";default:return"right"}},rE=function(a,b,c){return b<=0?0:$APP.Rj.j(0,$APP.Qj.j(1,(c-a)/b))},uia=function(a,b,c){function d(r){return($APP.Bs.i(r)+
|
|
3
|
+
$APP.zq.i(r))/2}var e=$APP.x(a);if(e<2||b<0)return 0;var f=d($APP.Cc(a,0)),h=d($APP.Cc(a,e-1))-f,k=$APP.Cc(a,b),n=d(k);c=rE($APP.Bs.i(k),$APP.zq.i(k)-$APP.Bs.i(k),c);a=b<e-1?d($APP.Cc(a,b+1)):n;return h<=0?1:$APP.Rj.j(0,$APP.Qj.j(1,(n+c*(a-n)-f)/h))},via=function(a,b,c){var d=$APP.x(a);if(d===0)return"";if($APP.z.j(d,1))return a=$APP.t(a),a=$APP.G(a),a=$APP.C(a,$APP.vu),"M "+$APP.N.i(c)+" "+$APP.N.i(a);var e=$APP.t(a),f=$APP.vu.i(e);e=0;for(f=new $APP.H(null,1,5,$APP.J,["M "+$APP.N.i(c)+" "+$APP.N.i(f)],
|
|
4
|
+
null);;){if(e>=d-1)return $APP.ci(" ",f);var h=$APP.Cc(a,e),k=$APP.Cc(a,e+1),n=$APP.vu.i(h),r=$APP.vu.i(k);h=sE.i(h);var v=sE.i(k);k=$APP.z.j(h,"left")?-b:b;v=$APP.z.j(v,"left")?-b:b;h=n+(r-n)*.33;v=c+v;n+=(r-n)*.66;var w=c;e+=1;f=$APP.Gd.j(f,"C "+$APP.N.i(c+k)+" "+$APP.N.i(h)+" "+$APP.N.i(v)+" "+$APP.N.i(n)+" "+$APP.N.i(w)+" "+$APP.N.i(r))}},xE=function(a){var b=$APP.l(a,"__xScrollTimelineRefs");if($APP.m(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");
|
|
5
|
+
var e=document.createElement("div");var f=document.createElement("div"),h=document.createElement("div");$APP.U(e,"part","track");$APP.U(f,"part","track-line");$APP.U(h,"part","track-fill");e.appendChild(f);e.appendChild(h);e=new $APP.K(null,3,[$APP.Ws,e,tE,f,$APP.Os,h],null);f=document.createElementNS("http://www.w3.org/2000/svg","svg");h=document.createElementNS("http://www.w3.org/2000/svg","path");var k=document.createElementNS("http://www.w3.org/2000/svg","path");$APP.U(f,"part","track-svg");$APP.U(f,
|
|
6
|
+
"aria-hidden","true");$APP.U(f,"focusable","false");$APP.U(h,"part","track-path");$APP.U(k,"part","track-fill-path");$APP.U(k,"pathLength","1");f.appendChild(h);f.appendChild(k);f=new $APP.K(null,3,[uE,f,vE,h,wE,k],null);h=document.createElement("div");k=document.createElement("slot");$APP.U(h,"part","entries");h.appendChild(k);h=new $APP.K(null,2,[$APP.Ss,h,$APP.on,k],null);k=document.createElement("div");$APP.U(k,"part","indicator");var n=document.createElement("div");$APP.U(n,"part","live");$APP.U(n,
|
|
7
|
+
"aria-live","polite");$APP.U(n,"aria-atomic","true");c.textContent=wia;$APP.U(d,"part","container");$APP.U(d,"role","feed");d.appendChild($APP.Ws.i(e));d.appendChild($APP.Ss.i(h));d.appendChild(uE.i(f));d.appendChild(k);b.appendChild(c);b.appendChild(d);b.appendChild(n);$APP.T(a,"__xScrollTimelineRefs",$APP.zg([$APP.on,uE,wE,$APP.Ss,vE,tE,$APP.el,$APP.fl,xia,$APP.Ms,$APP.Os,$APP.Ws],[$APP.on.i(h),uE.i(f),wE.i(f),$APP.Ss.i(h),vE.i(f),tE.i(e),b,d,k,n,$APP.Os.i(e),$APP.Ws.i(e)]));return $APP.l(a,"__xScrollTimelineRefs")},
|
|
8
|
+
FE=function(a){a=$APP.zg([$APP.Bk,yE,$APP.tt,$APP.Ku,$APP.ss,$APP.Yq,$APP.sp,zE,$APP.Xs,$APP.tr,AE],[a.getAttribute("label"),a.getAttribute("marker"),a.getAttribute("autoplay-speed"),$APP.m(a.hasAttribute("autoplay"))?"":null,a.getAttribute("threshold"),a.getAttribute("layout"),$APP.m(a.hasAttribute("autoplay-indicator"))?"":null,a.getAttribute("track"),$APP.m(a.hasAttribute("disabled"))?"":null,$APP.m(a.hasAttribute("autoplay-loop"))?"":null,$APP.m(a.hasAttribute("no-progress"))?"":null]);var b=
|
|
9
|
+
$APP.G(a);a=$APP.C(b,$APP.Xs);var c=$APP.C(b,$APP.tr),d=$APP.C(b,AE),e=$APP.C(b,$APP.Bk),f=$APP.C(b,yE),h=$APP.C(b,$APP.tt),k=$APP.C(b,$APP.Ku),n=$APP.C(b,$APP.ss),r=$APP.C(b,$APP.Yq),v=$APP.C(b,$APP.sp);b=$APP.C(b,zE);r=typeof r==="string"?r.trim().toLowerCase():null;r=$APP.jd(BE,r)?r:"alternating";f=typeof f==="string"?f.trim().toLowerCase():null;f=$APP.jd(CE,f)?f:"dot";n=oE(n);e=$APP.m(e)?e:"";h=pE(h);b=typeof b==="string"?b.trim().toLowerCase():null;b=$APP.jd(DE,b)?b:"straight";return $APP.zg([$APP.Ct,
|
|
10
|
+
$APP.Hq,$APP.Js,EE,$APP.Cu,$APP.Z,$APP.np,$APP.Ik,$APP.ut,$APP.Ws,$APP.pp],[r,f,c!=null,d!=null,n,e,v!=null,a!=null,h,b,k!=null])},GE=function(a){a=xE(a);a=$APP.G(a);return $APP.C(a,$APP.on).assignedElements()},HE=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},IE=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.M.j(a,"")?a:null},JE=function(a,b){a=$APP.G($APP.l(a,"__xScrollTimelineRefs"));var c=$APP.C(a,$APP.Ms);c.textContent=b;setTimeout(function(){return c.textContent=
|
|
11
|
+
""},1E3)},yia=function(a,b){for(var c=a.length,d=0;;)if(d<c){var e=a[d];$APP.U(e,"data-side",qE(b,d));$APP.U(e,"data-index",""+$APP.N.i(d));d+=1}else break},KE=function(a){a=GE(a);for(var b=a.length,c=0;;)if(c<b){var d=a[c];$APP.V(d,"data-active");$APP.V(d,"data-side");$APP.V(d,"data-index");c+=1}else break},zia=function(a,b){var c=$APP.G($APP.l(a,"__xScrollTimelineRefs"));c=$APP.C(c,$APP.fl);var d=$APP.l(a,"__xScrollTimelineMarkerEls");d=$APP.m(d)?d:[];b=b.length;for(var e=d.length,f=0;;)if(f<e)d[f].remove(),
|
|
12
|
+
f+=1;else break;d=Array(b);for(e=0;;)if(e<b)f=document.createElement("div"),f.classList.add("tl-marker"),c.appendChild(f),d[e]=f,e+=1;else break;$APP.T(a,"__xScrollTimelineMarkerEls",d)},Aia=function(a,b){var c=$APP.G($APP.l(a,"__xScrollTimelineRefs"));c=$APP.C(c,$APP.fl);var d=$APP.l(a,"__xScrollTimelineDateEls");var e=$APP.m(d)?d:[];d=b.length;for(var f=e.length,h=0;;)if(h<f){var k=e[h];$APP.m(k)&&k.remove();h+=1}else break;e=Array(d);for(f=0;;)if(f<d)h=b[f].getAttribute("data-date"),typeof h===
|
|
13
|
+
"string"&&$APP.M.j(h,"")?(k=document.createElement("span"),k.classList.add("tl-date"),k.textContent=h,c.appendChild(k),e[f]=k):e[f]=null,f+=1;else break;$APP.T(a,"__xScrollTimelineDateEls",e)},Bia=function(a,b){var c=$APP.G($APP.l(a,"__xScrollTimelineRefs")),d=$APP.C(c,$APP.fl),e=$APP.C(c,uE),f=$APP.C(c,vE);c=$APP.C(c,wE);var h=function(){var O=$APP.l(a,"__xScrollTimelineModel");return $APP.m(O)?O:FE(a)}(),k=$APP.Ct.i(h);h=d.getBoundingClientRect();var n=h.top;d=h.height;var r=h.width,v=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-curve-amplitude");
|
|
14
|
+
h=function(){var O=parseFloat(v);return $APP.m(isNaN(O))?60:O}();var w=window.getComputedStyle(a).getPropertyValue("--x-scroll-timeline-marker-size"),y=function(){var O=parseFloat(w);return $APP.m(isNaN(O))?7:O/2}(),A=function(){switch(k){case "left":return y;case "right":return r-y;default:return r*.5}}(),E=b.length;if(E>0){var I=function(){for(var O=0,S=$APP.We;;){if(O>=E)return S;var R=b[O].getBoundingClientRect(),da=O+1;S=$APP.Gd.j(S,new $APP.K(null,2,[$APP.vu,R.top+R.height/2-n,sE,qE(k,O)],null));
|
|
15
|
+
O=da}}();h=via(I,h,A);$APP.U(e,"viewBox","0 0 "+$APP.N.i(r)+" "+$APP.N.i(d));$APP.U(f,"d",h);$APP.U(c,"d",h);$APP.U(c,"stroke-dasharray","1");$APP.U(c,"stroke-dashoffset","1")}},ME=function(a,b,c){$APP.m(a)&&(b>=0&&b<a.length&&(b=a[b],$APP.m(b)&&$APP.V(b,"data-active")),c>=0&&c<a.length&&(a=a[c],$APP.m(a)&&$APP.U(a,"data-active","")))},NE=function(a){var b=$APP.l(a,"__xScrollTimelineModel");b=$APP.m(b)?b:FE(a);if(!$APP.m($APP.Ik.i(b))){var c=GE(a),d=c.length,e=window.innerHeight,f=e*$APP.Cu.i(b),
|
|
16
|
+
h;a:{var k=c.length,n=0;for(h=$APP.We;;){if(n>=k)break a;var r=c[n].getBoundingClientRect();n+=1;h=$APP.Gd.j(h,new $APP.K(null,2,[$APP.Bs,r.top,$APP.zq,r.top+r.height],null))}h=void 0}a:if(k=h,n=$APP.x(k),n===0)k=-1;else{r=0;for(var v=-1,w=-1;;){if(r>=n){k=v>=0?v:w;break a}var y=$APP.Cc(k,r),A=$APP.G(y);y=$APP.C(A,$APP.Bs);A=$APP.C(A,$APP.zq);v=y<=f&&A>f?r:v;w=y<=f?r:w;r+=1}k=void 0}n=$APP.G($APP.l(a,"__xScrollTimelineRefs"));n=$APP.C(n,$APP.fl).getBoundingClientRect();e=$APP.Rj.j(0,$APP.Qj.j(1,(e-
|
|
17
|
+
n.top)/(e+n.height)));n=uia(h,k,f);d=k>=0&&k<d?IE(c[k]):null;r=k;v=$APP.l(a,"__xScrollTimelineActiveIndex");v=$APP.m(v)?v:-1;$APP.M.j(v,r)&&(ME(c,v,r),ME($APP.l(a,"__xScrollTimelineMarkerEls"),v,r),ME($APP.l(a,"__xScrollTimelineDateEls"),v,r),r>=0?$APP.U(a,"data-active-index",""+$APP.N.i(r)):$APP.V(a,"data-active-index"),$APP.T(a,"__xScrollTimelineActiveIndex",r),$APP.Ri(a,"x-scroll-timeline-entry-change",{index:r,id:r>=0&&r<c.length?IE(c[r]):null,previousIndex:v,previousId:v>=0&&v<c.length?IE(c[v]):
|
|
18
|
+
null}),JE(a,"Entry "+$APP.N.i(r+1)+" active"));r=c.length;v=$APP.l(a,"__xScrollTimelineEntryStates");if(!$APP.m($APP.m(v)?$APP.z.j(v.length,r):v)){w=Array(r);for(y=0;;)if(y<r)w[y]=$APP.m($APP.m(v)?y<v.length:v)?v[y]:!1,y+=1;else break;$APP.T(a,"__xScrollTimelineEntryStates",w);v=w}for(w=0;;)if(w<r){if(w<$APP.x(h)){y=$APP.Cc(h,w);y=$APP.G(y);var E=$APP.C(y,$APP.Bs),I=$APP.C(y,$APP.zq),O=v[w];y=E<=f&&I>f;A=IE(c[w]);E=rE(E,I-E,f);$APP.p(O)&&y?(v[w]=!0,$APP.Ri(a,"x-scroll-timeline-entry-enter",{index:w,
|
|
19
|
+
id:A,progress:E})):$APP.m($APP.m(O)?!y:O)&&(v[w]=!1,$APP.Ri(a,"x-scroll-timeline-entry-leave",{index:w,id:A,progress:E}))}w+=1}else break;b=$APP.G(b);c=$APP.C(b,$APP.Ws);b=$APP.C(b,EE);$APP.z.j(c,"curved")?(c=$APP.G($APP.l(a,"__xScrollTimelineRefs")),c=$APP.C(c,wE),$APP.m(b)?$APP.U(c,"stroke-dashoffset","1"):$APP.U(c,"stroke-dashoffset",""+$APP.N.i(1-n))):(c=$APP.G($APP.l(a,"__xScrollTimelineRefs")),c=$APP.C(c,$APP.Os),$APP.m(b)?c.style.height="0%":c.style.height=""+$APP.N.i(n*100)+"%");b=k;c=$APP.l(a,
|
|
20
|
+
"__xScrollTimelineLastProg");if(c==null||Math.abs(e-c)>.001)$APP.T(a,"__xScrollTimelineLastProg",e),$APP.Ri(a,"x-scroll-timeline-progress",{progress:e,activeIndex:b,activeId:d})}return $APP.Ci(a,"__xScrollTimelineRAF",null)},OE=function(a){return function d(c){if($APP.m(function(){var h=a.isConnected;return $APP.m(h)?(h=$APP.l(a,"__xScrollTimelineVisible"),$APP.m(h)?$APP.p($APP.l(a,"__xScrollTimelineAutoplayPaused")):h):h}())){var e=$APP.l(a,"__xScrollTimelineModel");if($APP.m(function(){if($APP.m(e)){var h=
|
|
21
|
+
$APP.pp.i(e);return $APP.m(h)?$APP.p($APP.Ik.i(e)):h}return e}())){var f=$APP.l(a,"__xScrollTimelineAutoplayLast");f=$APP.m(f)?(c-f)/1E3:0;$APP.T(a,"__xScrollTimelineAutoplayLast",c);f>0&&(window.scrollBy(0,$APP.ut.i(e)*f),$APP.m($APP.Js.i(e))&&(f=window.scrollY,c=window.innerHeight,f+c>=document.documentElement.scrollHeight-1&&(f=a.getBoundingClientRect().top+f,window.scrollTo(0,$APP.Rj.j(0,f-c)),$APP.T(a,"__xScrollTimelineAutoplayLast",null))));return $APP.T(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(d))}}return null}},
|
|
22
|
+
PE=function(a){if($APP.m($APP.l(a,"__xScrollTimelineAutoplayPaused")))return null;$APP.T(a,"__xScrollTimelineAutoplayPaused",!0);var b=$APP.l(a,"__xScrollTimelineAutoplayRAF");$APP.m(b)&&(cancelAnimationFrame(b),$APP.T(a,"__xScrollTimelineAutoplayRAF",null));$APP.U(a,"data-autoplay-paused","");b=function(){var e=$APP.l(a,"__xScrollTimelineLastProg");return $APP.m(e)?e:0}();var c=function(){var e=$APP.l(a,"__xScrollTimelineActiveIndex");return $APP.m(e)?e:-1}(),d=GE(a);d=c>=0&&c<d.length?IE(d[c]):
|
|
23
|
+
null;return $APP.Ri(a,"x-scroll-timeline-autoplay-pause",{progress:b,activeIndex:c,activeId:d})},QE=function(a){if($APP.m($APP.l(a,"__xScrollTimelineAutoplayPaused"))){$APP.T(a,"__xScrollTimelineAutoplayPaused",!1);$APP.V(a,"data-autoplay-paused");$APP.T(a,"__xScrollTimelineAutoplayLast",null);$APP.T(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(OE(a)));var b=function(){var e=$APP.l(a,"__xScrollTimelineLastProg");return $APP.m(e)?e:0}(),c=function(){var e=$APP.l(a,"__xScrollTimelineActiveIndex");
|
|
24
|
+
return $APP.m(e)?e:-1}(),d=GE(a);d=c>=0&&c<d.length?IE(d[c]):null;return $APP.Ri(a,"x-scroll-timeline-autoplay-resume",{progress:b,activeIndex:c,activeId:d})}return null},RE=function(a){var b=$APP.l(a,"__xScrollTimelineAutoplayRAF");$APP.m(b)&&(cancelAnimationFrame(b),$APP.T(a,"__xScrollTimelineAutoplayRAF",null));b=$APP.l(a,"__xScrollTimelineAutoplayHandlers");$APP.m(b)&&(a.removeEventListener("pointerdown",$APP.l(b,"pointerdown")),a.removeEventListener("pointerup",$APP.l(b,"pointerup")),a.removeEventListener("pointerleave",
|
|
25
|
+
$APP.l(b,"pointerleave")),a.removeEventListener("keydown",$APP.l(b,"keydown")),a.removeEventListener("keyup",$APP.l(b,"keyup")),$APP.T(a,"__xScrollTimelineAutoplayHandlers",null));$APP.V(a,"data-autoplay-paused");$APP.V(a,"tabindex");$APP.T(a,"__xScrollTimelineAutoplayPaused",!1);return $APP.T(a,"__xScrollTimelineAutoplayLast",null)},SE=function(a){if($APP.l(a,"__xScrollTimelineAutoplayRAF")!=null)return null;var b=$APP.l(a,"__xScrollTimelineModel");if($APP.m(function(){if($APP.m(b)){var k=$APP.pp.i(b);
|
|
26
|
+
return $APP.m(k)?(k=$APP.p($APP.Ik.i(b)))?(k=$APP.l(a,"__xScrollTimelineVisible"),$APP.m(k)?!HE():k):k:k}return b}())){$APP.U(a,"tabindex","0");$APP.T(a,"__xScrollTimelineAutoplayPaused",!1);$APP.T(a,"__xScrollTimelineAutoplayLast",null);var c=function(){return PE(a)},d=function(){return QE(a)},e=function(){return $APP.m($APP.l(a,"__xScrollTimelineAutoplayPaused"))?QE(a):null},f=function(k){return $APP.z.j(k.code,"Space")?(k.preventDefault(),PE(a)):null},h=function(k){return $APP.z.j(k.code,"Space")?
|
|
27
|
+
QE(a):null};a.addEventListener("pointerdown",c);a.addEventListener("pointerup",d);a.addEventListener("pointerleave",e);a.addEventListener("keydown",f);a.addEventListener("keyup",h);$APP.T(a,"__xScrollTimelineAutoplayHandlers",{pointerdown:c,pointerup:d,pointerleave:e,keydown:f,keyup:h});return $APP.T(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(OE(a)))}return null},TE=function(a){a=$APP.l(a,"__xScrollTimelineModel");return $APP.m(a)?$APP.Ik.i(a):a},Cia=function(a){return $APP.m(function(){var b=
|
|
28
|
+
a.isConnected;return $APP.m(b)?(b=$APP.l(a,"__xScrollTimelineVisible"),$APP.m(b)?$APP.p(TE(a))&&!HE():b):b}())?$APP.m($APP.l(a,"__xScrollTimelineRAF"))?null:$APP.Ci(a,"__xScrollTimelineRAF",requestAnimationFrame(function(){return NE(a)})):null},Dia=function(a){a=$APP.l(a,"__xScrollTimelineHandlers");$APP.m($APP.m(a)?$APP.p($APP.l(a,"scrollAttached")):a)&&(window.addEventListener("scroll",$APP.l(a,"scroll"),{passive:!0}),a.scrollAttached=!0)},UE=function(a){a=$APP.l(a,"__xScrollTimelineHandlers");
|
|
29
|
+
$APP.m($APP.m(a)?$APP.l(a,"scrollAttached"):a)&&(window.removeEventListener("scroll",$APP.l(a,"scroll")),a.scrollAttached=!1)},Eia=function(a,b){b=b[0].isIntersecting;$APP.T(a,"__xScrollTimelineVisible",b);if($APP.m(b)){if($APP.m(TE(a)))return null;Dia(a);NE(a);JE(a,"Timeline entered viewport");$APP.Ri(a,"x-scroll-timeline-enter",{progress:function(){var c=$APP.l(a,"__xScrollTimelineLastProg");return $APP.m(c)?c:0}()});b=$APP.l(a,"__xScrollTimelineModel");return $APP.m($APP.m(b)?$APP.pp.i(b):b)?SE(a):
|
|
30
|
+
null}UE(a);RE(a);if($APP.m(TE(a)))return null;JE(a,"Timeline left viewport");return $APP.Ri(a,"x-scroll-timeline-leave",{progress:function(){var c=$APP.l(a,"__xScrollTimelineLastProg");return $APP.m(c)?c:0}()})},VE=function(a){var b=function(){var d=$APP.l(a,"__xScrollTimelineModel");return $APP.m(d)?d:FE(a)}(),c=GE(a);yia(c,$APP.Ct.i(b));zia(a,c);Aia(a,c);return requestAnimationFrame(function(){if($APP.m(a.isConnected)){var d=GE(a),e=$APP.l(a,"__xScrollTimelineMarkerEls"),f=$APP.l(a,"__xScrollTimelineDateEls"),
|
|
31
|
+
h=$APP.G($APP.l(a,"__xScrollTimelineRefs"));h=$APP.C(h,$APP.fl).getBoundingClientRect().top;var k=$APP.l(a,"__xScrollTimelineModel");k=$APP.m(k)?k:FE(a);k=$APP.Ct.i(k);for(var n=d.length,r=0;;)if(r<n){var v=d[r].getBoundingClientRect();v=v.top+v.height/2-h;var w=qE(k,r),y=$APP.m(e)?e[r]:e;$APP.m(y)&&(y.style.top=""+$APP.N.i(v)+"px");y=$APP.m(f)?f[r]:f;$APP.m(y)&&(y.style.top=""+$APP.N.i(v)+"px",$APP.U(y,"data-side",w));r+=1}else break;$APP.z.j($APP.Ws.i(b),"curved")&&Bia(a,d);return $APP.m($APP.l(a,
|
|
32
|
+
"__xScrollTimelineVisible"))?NE(a):null}return null})},Fia=function(a){function b(){return $APP.m($APP.l(a,"__xScrollTimelineVisible"))?($APP.T(a,"__xScrollTimelineEntryStates",null),VE(a)):null}function c(){$APP.T(a,"__xScrollTimelineEntryStates",null);return VE(a)}var d=xE(a);d=$APP.G(d);$APP.C(d,$APP.on).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.T(a,"__xScrollTimelineHandlers",{scroll:function(){return Cia(a)},slot:c,resize:b,scrollAttached:!1})},WE=function(a){var b=
|
|
33
|
+
$APP.l(a,"__xScrollTimelineHandlers");if($APP.m(b)){UE(a);var c=$APP.l(a,"__xScrollTimelineRefs");if($APP.m(c)){c=$APP.on.i(c);var d=$APP.l(b,"slot");$APP.m(d)&&c.removeEventListener("slotchange",d)}b=$APP.l(b,"resize");$APP.m(b)&&window.removeEventListener("resize",b)}b=$APP.l(a,"__xScrollTimelineRAF");$APP.m(b)&&(cancelAnimationFrame(b),$APP.Ci(a,"__xScrollTimelineRAF",null));$APP.T(a,"__xScrollTimelineHandlers",null)},Gia=function(a){var b=$APP.l(a,"__xScrollTimelineIO");$APP.m(b)&&b.disconnect();
|
|
34
|
+
b=new IntersectionObserver(function(c){return Eia(a,c)},{threshold:[0]});b.observe(a);$APP.T(a,"__xScrollTimelineIO",b)},XE=function(a){var b=FE(a);if($APP.M.j($APP.l(a,"__xScrollTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Ik),d=xE(a);d=$APP.G(d);d=$APP.C(d,$APP.fl);var e=$APP.l(a,"__xScrollTimelineModel"),f=$APP.G(b),h=$APP.C(f,$APP.Ct),k=$APP.C(f,$APP.Ws);f=$APP.C(f,$APP.Hq);$APP.U(a,"data-layout",h);$APP.U(a,"data-track",k);$APP.U(a,"data-marker",f);h=$APP.G(b);h=$APP.C(h,$APP.Z);$APP.q(h)?
|
|
35
|
+
$APP.U(d,"aria-label",h):$APP.V(d,"aria-label");$APP.T(a,"__xScrollTimelineModel",b);$APP.m(c)?(KE(a),$APP.T(a,"__xScrollTimelineActiveIndex",-1),$APP.T(a,"__xScrollTimelineEntryStates",null),UE(a),RE(a)):$APP.m(e)&&($APP.M.j($APP.Ct.i(e),$APP.Ct.i(b))||$APP.M.j($APP.Ws.i(e),$APP.Ws.i(b))||$APP.M.j($APP.Hq.i(e),$APP.Hq.i(b))||$APP.M.j($APP.Ik.i(e),$APP.Ik.i(b))?VE(a):($APP.M.j($APP.Cu.i(e),$APP.Cu.i(b))||$APP.M.j(EE.i(e),EE.i(b)))&&$APP.m($APP.l(a,"__xScrollTimelineVisible"))&&NE(a));c=$APP.G(b);
|
|
36
|
+
b=$APP.C(c,$APP.pp);c=$APP.C(c,$APP.Ik);a=$APP.m(c)?null:$APP.m($APP.m(b)?$APP.l(a,"__xScrollTimelineVisible"):b)?SE(a):RE(a)}else a=null;return a},Hia=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.m(b)?b:""},set:function(b){return $APP.m($APP.m(b)?$APP.M.j(b,""):b)?$APP.U(this,"label",""+$APP.N.i(b)):$APP.V(this,"label")},enumerable:!0,configurable:!0})},YE=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);
|
|
37
|
+
return d.i?d.i(e):d.call(null,e)},set:function(e){return e!=null?$APP.U(this,c,""+$APP.N.i(e)):$APP.V(this,c)},enumerable:!0,configurable:!0})},ZE=function(a,b,c,d){return Object.defineProperty(a,b,{get:function(){var e=$APP.l(this,c);return e!=null?e:d},enumerable:!0,configurable:!0})},Iia=function(a){$APP.Zi(a,"layout","layout","alternating");$APP.Zi(a,"track","track","straight");$APP.Zi(a,"marker","marker","dot");Hia(a);YE(a,"threshold","threshold",oE);$APP.Wi(a,"noProgress","no-progress");$APP.Wi(a,
|
|
38
|
+
"disabled","disabled");$APP.Wi(a,"autoplay","autoplay");YE(a,"autoplaySpeed","autoplay-speed",pE);$APP.Wi(a,"autoplayLoop","autoplay-loop");$APP.Wi(a,"autoplayIndicator","autoplay-indicator");ZE(a,"activeIndex","__xScrollTimelineActiveIndex",-1);ZE(a,"progress","__xScrollTimelineLastProg",0);return ZE(a,"autoplayPaused","__xScrollTimelineAutoplayPaused",!1)},Jia=function(a){xE(a);WE(a);Fia(a);Gia(a);return XE(a)},Kia=function(a){RE(a);KE(a);if($APP.m($APP.l(a,"__xScrollTimelineVisible"))){var b=$APP.l(a,
|
|
39
|
+
"__xScrollTimelineLastProg");$APP.Ri(a,"x-scroll-timeline-leave",{progress:$APP.m(b)?b:0})}WE(a);b=$APP.l(a,"__xScrollTimelineIO");$APP.m(b)&&(b.disconnect(),$APP.T(a,"__xScrollTimelineIO",null));$APP.T(a,"__xScrollTimelineVisible",!1);$APP.T(a,"__xScrollTimelineActiveIndex",-1);$APP.T(a,"__xScrollTimelineLastProg",null);return $APP.T(a,"__xScrollTimelineEntryStates",null)},Lia=function(a,b,c,d){return $APP.M.j(c,d)?XE(a):null},$E=function(){return $APP.uj("x-scroll-timeline",new $APP.K(null,5,[$APP.mj,
|
|
40
|
+
Mia,$APP.nj,Jia,$APP.oj,Kia,$APP.pj,Lia,$APP.sj,Iia],null))},yE=new $APP.F(null,"marker-raw","marker-raw",2140891555),wE=new $APP.F(null,"fill-path","fill-path",-792439899),uE=new $APP.F(null,"track-svg","track-svg",-556455964),sE=new $APP.F(null,"side","side",389652279),tE=new $APP.F(null,"track-line","track-line",1370628624),xia=new $APP.F(null,"indicator","indicator",1928219637),EE=new $APP.F(null,"no-progress?","no-progress?",-1599319890),zE=new $APP.F(null,"track-raw","track-raw",751958776),
|
|
41
|
+
vE=new $APP.F(null,"track-path","track-path",-1838135442),AE=new $APP.F(null,"no-progress-attr","no-progress-attr",115951679);var Mia="layout track threshold no-progress disabled label marker autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" "),BE=new $APP.Yg(null,new $APP.K(null,3,["right",null,"left",null,"alternating",null],null),null),DE=new $APP.Yg(null,new $APP.K(null,2,["curved",null,"straight",null],null),null),CE=new $APP.Yg(null,new $APP.K(null,3,["ring",null,"none",null,"dot",null],null),null);
|
|
42
|
+
$APP.zg([$APP.lu,$APP.hs,$APP.Eq,$APP.Qm,$APP.Ct,$APP.jq,$APP.Hq,$APP.Cu,$APP.bv,$APP.Z,$APP.Kt,$APP.rr,new $APP.F(null,"noProgress","noProgress",-2114530658),$APP.Ws],[new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"autoplay-loop"],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.W,"autoplay-speed"],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"autoplay-indicator"],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"disabled"],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"layout",$APP.cu,BE],null),new $APP.K(null,
|
|
43
|
+
2,[$APP.P,$APP.Y,$APP.cj,!0],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"marker",$APP.cu,CE],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.W,"threshold"],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.cj,!0],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"label"],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"autoplay"],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.cj,!0],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"no-progress"],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"track",$APP.cu,DE],null)]);
|
|
44
|
+
$APP.me(["x-scroll-timeline-entry-change",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,4,[$APP.Ql,$APP.Y,$APP.dr,$APP.X,$APP.Yp,$APP.Y,$APP.pv,$APP.X],null),$APP.wr,!1],null),"x-scroll-timeline-entry-enter",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,3,[$APP.Ql,$APP.Y,$APP.dr,$APP.X,$APP.rr,$APP.Y],null),$APP.wr,!1],null),"x-scroll-timeline-entry-leave",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,3,[$APP.Ql,$APP.Y,$APP.dr,$APP.X,$APP.rr,$APP.Y],null),$APP.wr,!1],null),"x-scroll-timeline-progress",new $APP.K(null,
|
|
45
|
+
2,[$APP.Oi,new $APP.K(null,3,[$APP.rr,$APP.Y,$APP.jq,$APP.Y,$APP.ru,$APP.X],null),$APP.wr,!1],null),"x-scroll-timeline-enter",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,1,[$APP.rr,$APP.Y],null),$APP.wr,!1],null),"x-scroll-timeline-leave",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,1,[$APP.rr,$APP.Y],null),$APP.wr,!1],null),"x-scroll-timeline-autoplay-pause",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,3,[$APP.rr,$APP.Y,$APP.jq,$APP.Y,$APP.ru,$APP.X],null),$APP.wr,!1],null),"x-scroll-timeline-autoplay-resume",
|
|
46
|
+
new $APP.K(null,2,[$APP.Oi,new $APP.K(null,3,[$APP.rr,$APP.Y,$APP.jq,$APP.Y,$APP.ru,$APP.X],null),$APP.wr,!1],null)]);var wia=":host{display:block;position:relative;color-scheme:light dark;--x-scroll-timeline-track-color:var(--x-color-border,rgba(0,0,0,0.12));--x-scroll-timeline-track-fill-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-track-width:3px;--x-scroll-timeline-marker-size:14px;--x-scroll-timeline-marker-color:var(--x-color-border,rgba(0,0,0,0.15));--x-scroll-timeline-marker-active-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-marker-border-color:var(--x-color-primary,#3b82f6);--x-scroll-timeline-entry-gap:2rem;--x-scroll-timeline-date-color:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-scroll-timeline-date-font-size:var(--x-font-size-sm,0.8125rem);--x-scroll-timeline-transition-duration:var(--x-transition-duration,300ms);--x-scroll-timeline-curve-amplitude:60;--x-scroll-timeline-disabled-opacity:0.55;}"+
|
|
47
|
+
$APP.N.i(":host([hidden]){display:none;}")+"@media (prefers-color-scheme:dark){:host{--x-scroll-timeline-track-color:var(--x-color-border,rgba(255,255,255,0.12));--x-scroll-timeline-marker-color:var(--x-color-border,rgba(255,255,255,0.18));--x-scroll-timeline-date-color:var(--x-color-text-muted,rgba(255,255,255,0.5));}}[part\x3dcontainer]{position:relative;padding:0;}[part\x3dtrack]{position:absolute;top:0;bottom:0;left:50%;transform:translateX(-50%);width:var(--x-scroll-timeline-track-width);pointer-events:none;z-index:1;}:host([data-layout\x3dleft]) [part\x3dtrack]{left:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}:host([data-layout\x3dright]) [part\x3dtrack]{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:none;}[part\x3dtrack-line]{position:absolute;top:0;bottom:0;left:0;right:0;background:var(--x-scroll-timeline-track-color);border-radius:var(--x-radius-full,999px);}[part\x3dtrack-fill]{position:absolute;top:0;left:0;right:0;height:0%;background:var(--x-scroll-timeline-track-fill-color);border-radius:var(--x-radius-full,999px);transition:height 60ms linear;}[part\x3dtrack-svg]{display:none;position:absolute;top:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1;}:host([data-track\x3dcurved]) [part\x3dtrack-line],:host([data-track\x3dcurved]) [part\x3dtrack-fill]{display:none;}:host([data-track\x3dcurved]) [part\x3dtrack-svg]{display:block;}[part\x3dtrack-path]{fill:none;stroke:var(--x-scroll-timeline-track-color);stroke-width:3px;stroke-linecap:round;}[part\x3dtrack-fill-path]{fill:none;stroke:var(--x-scroll-timeline-track-fill-color);stroke-width:3px;stroke-linecap:round;transition:stroke-dashoffset 60ms linear;}[part\x3dentries]{position:relative;z-index:2;}::slotted(*){display:block;margin-bottom:var(--x-scroll-timeline-entry-gap);opacity:0.4;transition:opacity var(--x-scroll-timeline-transition-duration) ease;}::slotted(:last-child){margin-bottom:0;}::slotted([data-active]){opacity:1;}:host([data-layout\x3dalternating]) ::slotted(*){width:calc(50% - var(--x-scroll-timeline-marker-size));}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dleft]){margin-left:0;margin-right:auto;text-align:right;padding-right:1.5rem;}:host([data-layout\x3dalternating]) ::slotted([data-side\x3dright]){margin-left:auto;margin-right:0;text-align:left;padding-left:1.5rem;}:host([data-layout\x3dleft]) ::slotted(*){margin-left:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;}:host([data-layout\x3dright]) ::slotted(*){margin-right:calc(var(--x-scroll-timeline-marker-size) + 1.5rem);width:auto;text-align:right;}.tl-marker{position:absolute;z-index:3;width:var(--x-scroll-timeline-marker-size);height:var(--x-scroll-timeline-marker-size);border-radius:50%;background:var(--x-scroll-timeline-marker-color);border:2px solid transparent;transform:translate(-50%,-50%);transition:background var(--x-scroll-timeline-transition-duration) ease,border-color var(--x-scroll-timeline-transition-duration) ease,box-shadow var(--x-scroll-timeline-transition-duration) ease;}.tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-scroll-timeline-marker-active-color) 25%,transparent);}:host([data-marker\x3dring]) .tl-marker{background:transparent;border:2px solid var(--x-scroll-timeline-marker-color);}:host([data-marker\x3dring]) .tl-marker[data-active]{background:var(--x-scroll-timeline-marker-active-color);border-color:var(--x-scroll-timeline-marker-active-color);}:host([data-marker\x3dnone]) .tl-marker{display:none;}.tl-marker{left:50%;}:host([data-layout\x3dleft]) .tl-marker{left:calc(var(--x-scroll-timeline-marker-size) / 2);}:host([data-layout\x3dright]) .tl-marker{left:auto;right:calc(var(--x-scroll-timeline-marker-size) / 2);transform:translate(50%,-50%);}.tl-date{position:absolute;z-index:3;font-size:var(--x-scroll-timeline-date-font-size);color:var(--x-scroll-timeline-date-color);white-space:nowrap;transform:translateY(-50%);transition:color var(--x-scroll-timeline-transition-duration) ease;}.tl-date[data-active]{color:var(--x-scroll-timeline-marker-active-color);font-weight:var(--x-font-weight-semibold,600);}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dleft]{left:calc(50% + var(--x-scroll-timeline-marker-size));padding-left:0.5rem;}:host([data-layout\x3dalternating]) .tl-date[data-side\x3dright]{right:calc(50% + var(--x-scroll-timeline-marker-size));padding-right:0.5rem;text-align:right;}:host([data-layout\x3dleft]) .tl-date{left:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);}:host([data-layout\x3dright]) .tl-date{right:calc(var(--x-scroll-timeline-marker-size) + 0.5rem);text-align:right;}:host([disabled]){opacity:var(--x-scroll-timeline-disabled-opacity);}[part\x3dlive]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}[part\x3dindicator]{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;width:48px;height:48px;opacity:0.7;z-index:4;}[part\x3dindicator]::before,[part\x3dindicator]::after{content:'';position:absolute;top:8px;width:12px;height:32px;background:rgba(255,255,255,0.9);border-radius:var(--x-radius-sm,3px);}[part\x3dindicator]::before{left:8px;}[part\x3dindicator]::after{right:8px;}:host([data-autoplay-paused][autoplay-indicator]) [part\x3dindicator]{display:block;}@media (pointer:coarse){:host{--x-scroll-timeline-marker-size:44px;}}@media (prefers-reduced-motion:reduce){::slotted(*){transition:none !important;}.tl-marker{transition:none !important;}.tl-date{transition:none !important;}[part\x3dtrack-fill]{transition:none !important;}[part\x3dtrack-fill-path]{transition:none !important;}}";$APP.ha("baredom.exports.x_scroll_timeline.init",$E);export const init=$E;
|