@vanelsas/baredom 4.2.0 → 4.4.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 +75 -0
- package/dist/baremirror-alpha.js +28 -25
- package/dist/base.js +653 -662
- 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 +39 -39
- package/dist/x-cancel-dialogue.js +16 -16
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +33 -33
- 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 +30 -27
- 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 +23 -23
- 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 +23 -23
- package/dist/x-date-picker.js +42 -42
- package/dist/x-divider.js +8 -8
- package/dist/x-drag-panel.js +32 -32
- 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 +5 -5
- package/dist/x-file-download.js +14 -14
- package/dist/x-file-upload.js +25 -25
- 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 +18 -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 +37 -37
- 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 +25 -25
- 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 +26 -26
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +16 -16
- 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 +50 -50
- package/dist/x-popover.js +26 -26
- package/dist/x-progress-circle.js +6 -6
- 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 +9 -9
- 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 +12 -12
- 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 +19 -19
- 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 +20 -20
- 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 +60 -60
- package/package.json +5 -1
- package/scripts/prerender.mjs +234 -0
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.Di(a,"__xScrollStoryRAF",null));$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.Sj.j(0,$APP.Rj.j(1,a))):.5},A7=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.m(isNaN(a))?.5:$APP.Sj.j(.1,$APP.Rj.j(.9,a))):.5},B7=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.m(isNaN(a))?50:$APP.Sj.j(1,$APP.Rj.j(1E3,a))):50},cBa=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.Cs);k=$APP.C(k,$APP.Aq);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=dBa;$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.fl,b,$APP.gl,d,C7,e,$APP.Tr,f,$APP.pn,k,$APP.Ns,n],null));return $APP.l(a,"__xScrollStoryRefs")},G7=function(a){a=$APP.zg([$APP.Ck,
|
|
5
|
+
$APP.ut,$APP.Lu,$APP.ts,$APP.Zq,$APP.tp,$APP.Ys,$APP.ur,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.Ys);var c=$APP.C(b,$APP.ur),d=$APP.C(b,E7),e=$APP.C(b,$APP.Ck),f=$APP.C(b,$APP.ut),h=
|
|
6
|
+
$APP.C(b,$APP.Lu),k=$APP.C(b,$APP.ts),n=$APP.C(b,$APP.Zq);b=$APP.C(b,$APP.tp);n=typeof n==="string"?n.trim().toLowerCase():null;n=$APP.jd(F7,n)?n:"left";return $APP.zg([$APP.Dt,$APP.Ks,$APP.Du,$APP.Zu,$APP.Z,$APP.op,$APP.Jk,$APP.vt,$APP.qp],[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.pn).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)},eBa=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.Si(a,"x-scroll-story-step-change",$APP.Jm(new $APP.K(null,4,[$APP.Rl,c,$APP.er,b,$APP.Zp,d,$APP.qv,e],null)));a=$APP.G($APP.l(a,"__xScrollStoryRefs"));a=$APP.C(a,$APP.Ns);K7(a,"Step "+$APP.N.i(c+1)+" active")}},fBa=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.Cs),r=$APP.C(k,$APP.Aq),v=f[h];k=n<=d&&r>d;var w=J7(b[h]),y=n;n=r-n;n=n<=0?0:$APP.Sj.j(0,$APP.Rj.j(1,(d-y)/n));$APP.p(v)&&k?(f[h]=!0,$APP.Si(a,"x-scroll-story-step-enter",$APP.Jm(new $APP.K(null,3,[$APP.Rl,h,$APP.er,w,$APP.sr,n],null)))):$APP.m($APP.m(v)?!k:v)&&(f[h]=!1,$APP.Si(a,"x-scroll-story-step-leave",$APP.Jm(new $APP.K(null,3,[$APP.Rl,h,$APP.er,w,$APP.sr,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.Jk.i(b))){var c=H7(a),d=c.length,e=window.innerHeight,f=e*$APP.Du.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.Cs,v.top,$APP.Aq,v.top+v.height],null))}}();b=cBa(h,f);var k=$APP.G($APP.l(a,"__xScrollStoryRefs"));k=$APP.C(k,$APP.Tr).getBoundingClientRect();e=$APP.Sj.j(0,$APP.Rj.j(1,(e-k.top)/(e+k.height)));k=$APP.l(a,"__xScrollStoryLastProg");
|
|
11
|
+
eBa(a,c,b);fBa(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.Si(a,"x-scroll-story-progress",$APP.Jm(new $APP.K(null,3,[$APP.sr,e,$APP.kq,b,$APP.su,f],null)))}return $APP.Di(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.qp.i(e);return $APP.m(k)?$APP.p($APP.Jk.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.vt.i(e)*f);$APP.m(function(){var k=$APP.Ks.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.Si(a,"x-scroll-story-autoplay-pause",$APP.Jm(new $APP.K(null,3,[$APP.sr,b,$APP.kq,c,$APP.su,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.Si(a,"x-scroll-story-autoplay-resume",$APP.Jm(new $APP.K(null,3,[$APP.sr,b,$APP.kq,c,$APP.su,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.qp.i(b);return $APP.m(k)?(k=$APP.p($APP.Jk.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.Jk.i(a):a},gBa=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.Di(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)},hBa=function(a,b){b=b[0].isIntersecting;var c=$APP.G($APP.l(a,"__xScrollStoryRefs"));c=$APP.C(c,$APP.Ns);$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.Si(a,"x-scroll-story-enter",$APP.Jm(new $APP.K(null,1,[$APP.sr,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.qp.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.Si(a,"x-scroll-story-leave",$APP.Jm(new $APP.K(null,1,[$APP.sr,function(){var d=$APP.l(a,"__xScrollStoryLastProg");return $APP.m(d)?d:0}()],null)))},iBa=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.pn).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.T(a,"__xScrollStoryHandlers",{scroll:function(){return gBa(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.pn.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.Di(a,"__xScrollStoryRAF",null));$APP.T(a,"__xScrollStoryHandlers",null)},jBa=function(a){var b=$APP.l(a,"__xScrollStoryIO");$APP.m(b)&&b.disconnect();b=new IntersectionObserver(function(c){return hBa(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.Dt),e=$APP.C(c,$APP.Zu);b=$APP.C(c,$APP.Jk);var f=$APP.C(c,$APP.Z),h=D7(a),k=$APP.G(h);h=$APP.C(k,$APP.gl);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.qp.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},kBa=function(a){$APP.$i(a,"layout","layout","left");$APP.cj(a,"threshold","threshold",z7);$APP.cj(a,"split","split",A7);$APP.Xi(a,"disabled","disabled");$APP.Xi(a,"autoplay","autoplay");$APP.cj(a,"autoplaySpeed","autoplay-speed",B7);$APP.Xi(a,"autoplayLoop","autoplay-loop");$APP.Xi(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.ej,$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})},lBa=function(a){D7(a);U7(a);iBa(a);jBa(a);return W7(a)},mBa=function(a){P7(a);V7(a);if($APP.m($APP.l(a,"__xScrollStoryVisible"))){var b=$APP.l(a,"__xScrollStoryLastProg");$APP.Si(a,"x-scroll-story-leave",$APP.Jm(new $APP.K(null,1,[$APP.sr,$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)},nBa=function(a,b,c,d){return $APP.M.j(c,d)?W7(a):null},X7=function(){return $APP.vj("x-scroll-story",new $APP.K(null,5,[$APP.nj,oBa,$APP.oj,lBa,$APP.pj,mBa,$APP.qj,nBa,$APP.tj,kBa],null))},E7=new $APP.F(null,"split-raw","split-raw",-455766786),C7=new $APP.F(null,"media","media",-1066138403);var oBa="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.mu,$APP.is,$APP.Fq,$APP.Rm,$APP.Dt,$APP.kq,$APP.Du,$APP.cv,$APP.Zu,$APP.Z,$APP.Lt,$APP.sr],[new $APP.K(null,2,[$APP.P,$APP.ej,$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.ej,$APP.W,"autoplay-indicator"],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"disabled"],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"layout",$APP.du,F7],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.pq,!0],null),new $APP.K(null,2,[$APP.P,
|
|
30
|
+
$APP.Y,$APP.W,"threshold"],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.pq,!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.ej,$APP.W,"autoplay"],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.pq,!0],null)]);
|
|
31
|
+
$APP.me(["x-scroll-story-step-change",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,4,[$APP.Rl,$APP.Y,$APP.er,$APP.X,$APP.Zp,$APP.Y,$APP.qv,$APP.X],null),$APP.xr,!1],null),"x-scroll-story-step-enter",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,3,[$APP.Rl,$APP.Y,$APP.er,$APP.X,$APP.sr,$APP.Y],null),$APP.xr,!1],null),"x-scroll-story-step-leave",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,3,[$APP.Rl,$APP.Y,$APP.er,$APP.X,$APP.sr,$APP.Y],null),$APP.xr,!1],null),"x-scroll-story-progress",new $APP.K(null,2,
|
|
32
|
+
[$APP.Pi,new $APP.K(null,3,[$APP.sr,$APP.Y,$APP.kq,$APP.Y,$APP.su,$APP.X],null),$APP.xr,!1],null),"x-scroll-story-enter",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,1,[$APP.sr,$APP.Y],null),$APP.xr,!1],null),"x-scroll-story-leave",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,1,[$APP.sr,$APP.Y],null),$APP.xr,!1],null),"x-scroll-story-autoplay-pause",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,3,[$APP.sr,$APP.Y,$APP.kq,$APP.Y,$APP.su,$APP.X],null),$APP.xr,!1],null),"x-scroll-story-autoplay-resume",new $APP.K(null,
|
|
33
|
+
2,[$APP.Pi,new $APP.K(null,3,[$APP.sr,$APP.Y,$APP.kq,$APP.Y,$APP.su,$APP.X],null),$APP.xr,!1],null)]);var dBa=":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.di(" ",f);var h=$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=via;$APP.U(d,"part","container");$APP.U(d,"role","feed");d.appendChild($APP.
|
|
8
|
-
|
|
9
|
-
$APP.G(a);a=$APP.C(b,$APP.
|
|
10
|
-
$APP.
|
|
11
|
-
""},1E3)},xia=function(a,b){for(var c=a.length,d=0;;)if(d<c){var e=a[d];$APP.U(e,"data-side",
|
|
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=
|
|
16
|
-
h;a:{var k=c.length,n=0;for(h=$APP.
|
|
17
|
-
n.top)/(e+n.height)));n=tia(h,k,f);d=k>=0&&k<d?
|
|
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)},Dia=function(a,b){b=b[0].isIntersecting;$APP.
|
|
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 Dia(a,c)},{threshold:[0]});b.observe(a);$APP.
|
|
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.Xi(a,"autoplay","autoplay");
|
|
39
|
-
"__xScrollTimelineLastProg");$APP.
|
|
40
|
-
Lia,$APP.oj,Iia,$APP.pj,Jia,$APP.qj,Kia,$APP.tj,Hia],null))},
|
|
41
|
-
|
|
42
|
-
$APP.
|
|
43
|
-
2,[$APP.P,$APP.Y,$APP.dj,!0],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"marker",$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 pE=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.m(isNaN(a))?.5:$APP.Sj.j(0,$APP.Rj.j(1,a))):.5},qE=function(a){return typeof a==="string"?(a=parseFloat(a.trim()),$APP.m(isNaN(a))?50:$APP.Sj.j(1,$APP.Rj.j(1E3,a))):50},rE=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"}},sE=function(a,b,c){return b<=0?0:$APP.Sj.j(0,$APP.Rj.j(1,(c-a)/b))},tia=function(a,b,c){function d(r){return($APP.Cs.i(r)+
|
|
3
|
+
$APP.Aq.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=sE($APP.Cs.i(k),$APP.Aq.i(k)-$APP.Cs.i(k),c);a=b<e-1?d($APP.Cc(a,b+1)):n;return h<=0?1:$APP.Sj.j(0,$APP.Rj.j(1,(n+c*(a-n)-f)/h))},uia=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.wu),"M "+$APP.N.i(c)+" "+$APP.N.i(a);var e=$APP.t(a),f=$APP.wu.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.di(" ",f);var h=$APP.Cc(a,e),k=$APP.Cc(a,e+1),n=$APP.wu.i(h),r=$APP.wu.i(k);h=tE.i(h);var v=tE.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))}},yE=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.Xs,e,uE,f,$APP.Ps,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,[vE,f,wE,h,xE,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.Ts,h,$APP.pn,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=via;$APP.U(d,"part","container");$APP.U(d,"role","feed");d.appendChild($APP.Xs.i(e));d.appendChild($APP.Ts.i(h));d.appendChild(vE.i(f));d.appendChild(k);b.appendChild(c);b.appendChild(d);b.appendChild(n);$APP.T(a,"__xScrollTimelineRefs",$APP.zg([$APP.pn,vE,xE,$APP.Ts,wE,uE,$APP.fl,$APP.gl,wia,$APP.Ns,$APP.Ps,$APP.Xs],[$APP.pn.i(h),vE.i(f),xE.i(f),$APP.Ts.i(h),wE.i(f),uE.i(e),b,d,k,n,$APP.Ps.i(e),$APP.Xs.i(e)]));return $APP.l(a,"__xScrollTimelineRefs")},
|
|
8
|
+
GE=function(a){a=$APP.zg([$APP.Ck,zE,$APP.ut,$APP.Lu,$APP.ts,$APP.Zq,$APP.tp,AE,$APP.Ys,$APP.ur,BE],[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.Ys);var c=$APP.C(b,$APP.ur),d=$APP.C(b,BE),e=$APP.C(b,$APP.Ck),f=$APP.C(b,zE),h=$APP.C(b,$APP.ut),k=$APP.C(b,$APP.Lu),n=$APP.C(b,$APP.ts),r=$APP.C(b,$APP.Zq),v=$APP.C(b,$APP.tp);b=$APP.C(b,AE);r=typeof r==="string"?r.trim().toLowerCase():null;r=$APP.jd(CE,r)?r:"alternating";f=typeof f==="string"?f.trim().toLowerCase():null;f=$APP.jd(DE,f)?f:"dot";n=pE(n);e=$APP.m(e)?e:"";h=qE(h);b=typeof b==="string"?b.trim().toLowerCase():null;b=$APP.jd(EE,b)?b:"straight";return $APP.zg([$APP.Dt,
|
|
10
|
+
$APP.Iq,$APP.Ks,FE,$APP.Du,$APP.Z,$APP.op,$APP.Jk,$APP.vt,$APP.Xs,$APP.qp],[r,f,c!=null,d!=null,n,e,v!=null,a!=null,h,b,k!=null])},HE=function(a){a=yE(a);a=$APP.G(a);return $APP.C(a,$APP.pn).assignedElements()},IE=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},JE=function(a){a=a.getAttribute("id");return typeof a==="string"&&$APP.M.j(a,"")?a:null},KE=function(a,b){a=$APP.G($APP.l(a,"__xScrollTimelineRefs"));var c=$APP.C(a,$APP.Ns);c.textContent=b;setTimeout(function(){return c.textContent=
|
|
11
|
+
""},1E3)},xia=function(a,b){for(var c=a.length,d=0;;)if(d<c){var e=a[d];$APP.U(e,"data-side",rE(b,d));$APP.U(e,"data-index",""+$APP.N.i(d));d+=1}else break},LE=function(a){a=HE(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},yia=function(a,b){var c=$APP.G($APP.l(a,"__xScrollTimelineRefs"));c=$APP.C(c,$APP.gl);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)},zia=function(a,b){var c=$APP.G($APP.l(a,"__xScrollTimelineRefs"));c=$APP.C(c,$APP.gl);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)},Aia=function(a,b){var c=$APP.G($APP.l(a,"__xScrollTimelineRefs")),d=$APP.C(c,$APP.gl),e=$APP.C(c,vE),f=$APP.C(c,wE);c=$APP.C(c,xE);var h=function(){var O=$APP.l(a,"__xScrollTimelineModel");return $APP.m(O)?O:GE(a)}(),k=$APP.Dt.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(),ca=O+1;S=$APP.Gd.j(S,new $APP.K(null,2,[$APP.wu,R.top+R.height/2-n,tE,rE(k,O)],null));
|
|
15
|
+
O=ca}}();h=uia(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","")))},OE=function(a){var b=$APP.l(a,"__xScrollTimelineModel");b=$APP.m(b)?b:GE(a);if(!$APP.m($APP.Jk.i(b))){var c=HE(a),d=c.length,e=window.innerHeight,f=e*$APP.Du.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.Cs,r.top,$APP.Aq,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.Cs);A=$APP.C(A,$APP.Aq);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.gl).getBoundingClientRect();e=$APP.Sj.j(0,$APP.Rj.j(1,(e-
|
|
17
|
+
n.top)/(e+n.height)));n=tia(h,k,f);d=k>=0&&k<d?JE(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.Si(a,"x-scroll-timeline-entry-change",{index:r,id:r>=0&&r<c.length?JE(c[r]):null,previousIndex:v,previousId:v>=0&&v<c.length?JE(c[v]):
|
|
18
|
+
null}),KE(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.Cs),I=$APP.C(y,$APP.Aq),O=v[w];y=E<=f&&I>f;A=JE(c[w]);E=sE(E,I-E,f);$APP.p(O)&&y?(v[w]=!0,$APP.Si(a,"x-scroll-timeline-entry-enter",{index:w,
|
|
19
|
+
id:A,progress:E})):$APP.m($APP.m(O)?!y:O)&&(v[w]=!1,$APP.Si(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.Xs);b=$APP.C(b,FE);$APP.z.j(c,"curved")?(c=$APP.G($APP.l(a,"__xScrollTimelineRefs")),c=$APP.C(c,xE),$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.Ps),$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.Si(a,"x-scroll-timeline-progress",{progress:e,activeIndex:b,activeId:d})}return $APP.Di(a,"__xScrollTimelineRAF",null)},PE=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.qp.i(e);return $APP.m(h)?$APP.p($APP.Jk.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.vt.i(e)*f),$APP.m($APP.Ks.i(e))&&(f=window.scrollY,c=window.innerHeight,f+c>=document.documentElement.scrollHeight-1&&(f=a.getBoundingClientRect().top+f,window.scrollTo(0,$APP.Sj.j(0,f-c)),$APP.T(a,"__xScrollTimelineAutoplayLast",null))));return $APP.T(a,"__xScrollTimelineAutoplayRAF",requestAnimationFrame(d))}}return null}},
|
|
22
|
+
QE=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=HE(a);d=c>=0&&c<d.length?JE(d[c]):
|
|
23
|
+
null;return $APP.Si(a,"x-scroll-timeline-autoplay-pause",{progress:b,activeIndex:c,activeId:d})},RE=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(PE(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=HE(a);d=c>=0&&c<d.length?JE(d[c]):null;return $APP.Si(a,"x-scroll-timeline-autoplay-resume",{progress:b,activeIndex:c,activeId:d})}return null},SE=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)},TE=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.qp.i(b);
|
|
26
|
+
return $APP.m(k)?(k=$APP.p($APP.Jk.i(b)))?(k=$APP.l(a,"__xScrollTimelineVisible"),$APP.m(k)?!IE():k):k:k}return b}())){$APP.U(a,"tabindex","0");$APP.T(a,"__xScrollTimelineAutoplayPaused",!1);$APP.T(a,"__xScrollTimelineAutoplayLast",null);var c=function(){return QE(a)},d=function(){return RE(a)},e=function(){return $APP.m($APP.l(a,"__xScrollTimelineAutoplayPaused"))?RE(a):null},f=function(k){return $APP.z.j(k.code,"Space")?(k.preventDefault(),QE(a)):null},h=function(k){return $APP.z.j(k.code,"Space")?
|
|
27
|
+
RE(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(PE(a)))}return null},UE=function(a){a=$APP.l(a,"__xScrollTimelineModel");return $APP.m(a)?$APP.Jk.i(a):a},Bia=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(UE(a))&&!IE():b):b}())?$APP.m($APP.l(a,"__xScrollTimelineRAF"))?null:$APP.Di(a,"__xScrollTimelineRAF",requestAnimationFrame(function(){return OE(a)})):null},Cia=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)},VE=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)},Dia=function(a,b){b=b[0].isIntersecting;$APP.T(a,"__xScrollTimelineVisible",b);if($APP.m(b)){if($APP.m(UE(a)))return null;Cia(a);OE(a);KE(a,"Timeline entered viewport");$APP.Si(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.qp.i(b):b)?TE(a):
|
|
30
|
+
null}VE(a);SE(a);if($APP.m(UE(a)))return null;KE(a,"Timeline left viewport");return $APP.Si(a,"x-scroll-timeline-leave",{progress:function(){var c=$APP.l(a,"__xScrollTimelineLastProg");return $APP.m(c)?c:0}()})},WE=function(a){var b=function(){var d=$APP.l(a,"__xScrollTimelineModel");return $APP.m(d)?d:GE(a)}(),c=HE(a);xia(c,$APP.Dt.i(b));yia(a,c);zia(a,c);return requestAnimationFrame(function(){if($APP.m(a.isConnected)){var d=HE(a),e=$APP.l(a,"__xScrollTimelineMarkerEls"),f=$APP.l(a,"__xScrollTimelineDateEls"),
|
|
31
|
+
h=$APP.G($APP.l(a,"__xScrollTimelineRefs"));h=$APP.C(h,$APP.gl).getBoundingClientRect().top;var k=$APP.l(a,"__xScrollTimelineModel");k=$APP.m(k)?k:GE(a);k=$APP.Dt.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=rE(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.Xs.i(b),"curved")&&Aia(a,d);return $APP.m($APP.l(a,
|
|
32
|
+
"__xScrollTimelineVisible"))?OE(a):null}return null})},Eia=function(a){function b(){return $APP.m($APP.l(a,"__xScrollTimelineVisible"))?($APP.T(a,"__xScrollTimelineEntryStates",null),WE(a)):null}function c(){$APP.T(a,"__xScrollTimelineEntryStates",null);return WE(a)}var d=yE(a);d=$APP.G(d);$APP.C(d,$APP.pn).addEventListener("slotchange",c);window.addEventListener("resize",b);$APP.T(a,"__xScrollTimelineHandlers",{scroll:function(){return Bia(a)},slot:c,resize:b,scrollAttached:!1})},XE=function(a){var b=
|
|
33
|
+
$APP.l(a,"__xScrollTimelineHandlers");if($APP.m(b)){VE(a);var c=$APP.l(a,"__xScrollTimelineRefs");if($APP.m(c)){c=$APP.pn.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.Di(a,"__xScrollTimelineRAF",null));$APP.T(a,"__xScrollTimelineHandlers",null)},Fia=function(a){var b=$APP.l(a,"__xScrollTimelineIO");$APP.m(b)&&b.disconnect();
|
|
34
|
+
b=new IntersectionObserver(function(c){return Dia(a,c)},{threshold:[0]});b.observe(a);$APP.T(a,"__xScrollTimelineIO",b)},YE=function(a){var b=GE(a);if($APP.M.j($APP.l(a,"__xScrollTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Jk),d=yE(a);d=$APP.G(d);d=$APP.C(d,$APP.gl);var e=$APP.l(a,"__xScrollTimelineModel"),f=$APP.G(b),h=$APP.C(f,$APP.Dt),k=$APP.C(f,$APP.Xs);f=$APP.C(f,$APP.Iq);$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)?(LE(a),$APP.T(a,"__xScrollTimelineActiveIndex",-1),$APP.T(a,"__xScrollTimelineEntryStates",null),VE(a),SE(a)):$APP.m(e)&&($APP.M.j($APP.Dt.i(e),$APP.Dt.i(b))||$APP.M.j($APP.Xs.i(e),$APP.Xs.i(b))||$APP.M.j($APP.Iq.i(e),$APP.Iq.i(b))||$APP.M.j($APP.Jk.i(e),$APP.Jk.i(b))?WE(a):($APP.M.j($APP.Du.i(e),$APP.Du.i(b))||$APP.M.j(FE.i(e),FE.i(b)))&&$APP.m($APP.l(a,"__xScrollTimelineVisible"))&&OE(a));c=$APP.G(b);
|
|
36
|
+
b=$APP.C(c,$APP.qp);c=$APP.C(c,$APP.Jk);a=$APP.m(c)?null:$APP.m($APP.m(b)?$APP.l(a,"__xScrollTimelineVisible"):b)?TE(a):SE(a)}else a=null;return a},Gia=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})},ZE=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})},$E=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})},Hia=function(a){$APP.$i(a,"layout","layout","alternating");$APP.$i(a,"track","track","straight");$APP.$i(a,"marker","marker","dot");Gia(a);ZE(a,"threshold","threshold",pE);$APP.Xi(a,"noProgress","no-progress");$APP.Xi(a,
|
|
38
|
+
"disabled","disabled");$APP.Xi(a,"autoplay","autoplay");ZE(a,"autoplaySpeed","autoplay-speed",qE);$APP.Xi(a,"autoplayLoop","autoplay-loop");$APP.Xi(a,"autoplayIndicator","autoplay-indicator");$E(a,"activeIndex","__xScrollTimelineActiveIndex",-1);$E(a,"progress","__xScrollTimelineLastProg",0);return $E(a,"autoplayPaused","__xScrollTimelineAutoplayPaused",!1)},Iia=function(a){yE(a);XE(a);Eia(a);Fia(a);return YE(a)},Jia=function(a){SE(a);LE(a);if($APP.m($APP.l(a,"__xScrollTimelineVisible"))){var b=$APP.l(a,
|
|
39
|
+
"__xScrollTimelineLastProg");$APP.Si(a,"x-scroll-timeline-leave",{progress:$APP.m(b)?b:0})}XE(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)},Kia=function(a,b,c,d){return $APP.M.j(c,d)?YE(a):null},aF=function(){return $APP.vj("x-scroll-timeline",new $APP.K(null,5,[$APP.nj,
|
|
40
|
+
Lia,$APP.oj,Iia,$APP.pj,Jia,$APP.qj,Kia,$APP.tj,Hia],null))},zE=new $APP.F(null,"marker-raw","marker-raw",2140891555),xE=new $APP.F(null,"fill-path","fill-path",-792439899),vE=new $APP.F(null,"track-svg","track-svg",-556455964),tE=new $APP.F(null,"side","side",389652279),uE=new $APP.F(null,"track-line","track-line",1370628624),wia=new $APP.F(null,"indicator","indicator",1928219637),FE=new $APP.F(null,"no-progress?","no-progress?",-1599319890),AE=new $APP.F(null,"track-raw","track-raw",751958776),
|
|
41
|
+
wE=new $APP.F(null,"track-path","track-path",-1838135442),BE=new $APP.F(null,"no-progress-attr","no-progress-attr",115951679);var Lia="layout track threshold no-progress disabled label marker autoplay autoplay-speed autoplay-loop autoplay-indicator".split(" "),CE=new $APP.Yg(null,new $APP.K(null,3,["right",null,"left",null,"alternating",null],null),null),EE=new $APP.Yg(null,new $APP.K(null,2,["curved",null,"straight",null],null),null),DE=new $APP.Yg(null,new $APP.K(null,3,["ring",null,"none",null,"dot",null],null),null);
|
|
42
|
+
$APP.zg([$APP.mu,$APP.is,$APP.Fq,$APP.Rm,$APP.Dt,$APP.kq,$APP.Iq,$APP.Du,$APP.cv,$APP.Z,$APP.Lt,$APP.sr,new $APP.F(null,"noProgress","noProgress",-2114530658),$APP.Xs],[new $APP.K(null,2,[$APP.P,$APP.ej,$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.ej,$APP.W,"autoplay-indicator"],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"disabled"],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"layout",$APP.du,CE],null),new $APP.K(null,
|
|
43
|
+
2,[$APP.P,$APP.Y,$APP.dj,!0],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"marker",$APP.du,DE],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.W,"threshold"],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.dj,!0],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"label"],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"autoplay"],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.dj,!0],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"no-progress"],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"track",$APP.du,EE],null)]);
|
|
44
|
+
$APP.me(["x-scroll-timeline-entry-change",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,4,[$APP.Rl,$APP.Y,$APP.er,$APP.X,$APP.Zp,$APP.Y,$APP.qv,$APP.X],null),$APP.xr,!1],null),"x-scroll-timeline-entry-enter",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,3,[$APP.Rl,$APP.Y,$APP.er,$APP.X,$APP.sr,$APP.Y],null),$APP.xr,!1],null),"x-scroll-timeline-entry-leave",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,3,[$APP.Rl,$APP.Y,$APP.er,$APP.X,$APP.sr,$APP.Y],null),$APP.xr,!1],null),"x-scroll-timeline-progress",new $APP.K(null,
|
|
45
|
+
2,[$APP.Pi,new $APP.K(null,3,[$APP.sr,$APP.Y,$APP.kq,$APP.Y,$APP.su,$APP.X],null),$APP.xr,!1],null),"x-scroll-timeline-enter",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,1,[$APP.sr,$APP.Y],null),$APP.xr,!1],null),"x-scroll-timeline-leave",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,1,[$APP.sr,$APP.Y],null),$APP.xr,!1],null),"x-scroll-timeline-autoplay-pause",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,3,[$APP.sr,$APP.Y,$APP.kq,$APP.Y,$APP.su,$APP.X],null),$APP.xr,!1],null),"x-scroll-timeline-autoplay-resume",
|
|
46
|
+
new $APP.K(null,2,[$APP.Pi,new $APP.K(null,3,[$APP.sr,$APP.Y,$APP.kq,$APP.Y,$APP.su,$APP.X],null),$APP.xr,!1],null)]);var via=":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",aF);export const init=aF;
|