@epam/ai-dial-celebrations 1.1.6
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/CelebrationEnvironmentContext-BxzY78Zg.js +14 -0
- package/components/CelebrationDecor/CelebrationDecor.d.ts +3 -0
- package/components/CelebrationDecor/CelebrationDecor.d.ts.map +1 -0
- package/components/FlyingCharacters/FlyingCharacters.d.ts +8 -0
- package/components/FlyingCharacters/FlyingCharacters.d.ts.map +1 -0
- package/constants/public-class-names.d.ts +10 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/context/CelebrationContext.d.ts +7 -0
- package/context/CelebrationContext.d.ts.map +1 -0
- package/context/CelebrationEnvironmentContext.d.ts +19 -0
- package/context/CelebrationEnvironmentContext.d.ts.map +1 -0
- package/flying-characters-2UJGx5Nh.js +36 -0
- package/halloween/components/Halloween/HalloweenBat.d.ts +6 -0
- package/halloween/components/Halloween/HalloweenBat.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenBats.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenBats.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenBowling.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenBowling.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenBurstOverlay.d.ts +10 -0
- package/halloween/components/Halloween/HalloweenBurstOverlay.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCandy.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenCandy.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCandyArt.d.ts +13 -0
- package/halloween/components/Halloween/HalloweenCandyArt.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCat.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenCat.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCatScene.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenCatScene.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCornerSpider.d.ts +12 -0
- package/halloween/components/Halloween/HalloweenCornerSpider.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenDecor.d.ts +4 -0
- package/halloween/components/Halloween/HalloweenDecor.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenExtras.d.ts +4 -0
- package/halloween/components/Halloween/HalloweenExtras.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenFootprints.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenFootprints.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenGhost.d.ts +10 -0
- package/halloween/components/Halloween/HalloweenGhost.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenGhosts.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenGhosts.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenMimic.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenMimic.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenMummy.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenMummy.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenNightFlight.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenNightFlight.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenPortal.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenPortal.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenPumpkin.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenPumpkin.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenPumpkinSilk.d.ts +8 -0
- package/halloween/components/Halloween/HalloweenPumpkinSilk.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenRaven.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenRaven.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenRavens.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenRavens.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenSecrets.d.ts +4 -0
- package/halloween/components/Halloween/HalloweenSecrets.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenSpider.d.ts +7 -0
- package/halloween/components/Halloween/HalloweenSpider.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenSpiderTheft.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenSpiderTheft.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenTrain.d.ts +9 -0
- package/halloween/components/Halloween/HalloweenTrain.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenTrainArtwork.d.ts +7 -0
- package/halloween/components/Halloween/HalloweenTrainArtwork.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenWebScene.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenWebScene.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenWitch.d.ts +11 -0
- package/halloween/components/Halloween/HalloweenWitch.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenWitches.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenWitches.d.ts.map +1 -0
- package/halloween/constants/halloween.d.ts +76 -0
- package/halloween/constants/halloween.d.ts.map +1 -0
- package/halloween/constants/labels.d.ts +4 -0
- package/halloween/constants/labels.d.ts.map +1 -0
- package/halloween/event.d.ts +11 -0
- package/halloween/event.d.ts.map +1 -0
- package/halloween/index.d.ts +8 -0
- package/halloween/index.d.ts.map +1 -0
- package/halloween/models/labels.d.ts +40 -0
- package/halloween/models/labels.d.ts.map +1 -0
- package/halloween/types/halloween.d.ts +65 -0
- package/halloween/types/halloween.d.ts.map +1 -0
- package/halloween/utils/halloween-bat-animation.d.ts +10 -0
- package/halloween/utils/halloween-bat-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-bat-plan.d.ts +53 -0
- package/halloween/utils/halloween-bat-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-bat-targets.d.ts +13 -0
- package/halloween/utils/halloween-bat-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-bowling.d.ts +24 -0
- package/halloween/utils/halloween-bowling.d.ts.map +1 -0
- package/halloween/utils/halloween-candy-animation.d.ts +4 -0
- package/halloween/utils/halloween-candy-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-candy-plan.d.ts +68 -0
- package/halloween/utils/halloween-candy-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-candy-targets.d.ts +12 -0
- package/halloween/utils/halloween-candy-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-cat-animation.d.ts +11 -0
- package/halloween/utils/halloween-cat-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-cat-plan.d.ts +69 -0
- package/halloween/utils/halloween-cat-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-cat-targets.d.ts +13 -0
- package/halloween/utils/halloween-cat-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-footprint-animation.d.ts +12 -0
- package/halloween/utils/halloween-footprint-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-footprint-plan.d.ts +52 -0
- package/halloween/utils/halloween-footprint-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-footprint-targets.d.ts +22 -0
- package/halloween/utils/halloween-footprint-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-ghost-animation.d.ts +12 -0
- package/halloween/utils/halloween-ghost-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-ghost-plan.d.ts +41 -0
- package/halloween/utils/halloween-ghost-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-ghost-targets.d.ts +12 -0
- package/halloween/utils/halloween-ghost-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-mimic.d.ts +21 -0
- package/halloween/utils/halloween-mimic.d.ts.map +1 -0
- package/halloween/utils/halloween-mummy.d.ts +17 -0
- package/halloween/utils/halloween-mummy.d.ts.map +1 -0
- package/halloween/utils/halloween-portal.d.ts +22 -0
- package/halloween/utils/halloween-portal.d.ts.map +1 -0
- package/halloween/utils/halloween-raven-animation.d.ts +19 -0
- package/halloween/utils/halloween-raven-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-raven-plan.d.ts +68 -0
- package/halloween/utils/halloween-raven-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-raven-targets.d.ts +24 -0
- package/halloween/utils/halloween-raven-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-secret-history.d.ts +8 -0
- package/halloween/utils/halloween-secret-history.d.ts.map +1 -0
- package/halloween/utils/halloween-spider-theft.d.ts +25 -0
- package/halloween/utils/halloween-spider-theft.d.ts.map +1 -0
- package/halloween/utils/halloween-spider-wrap.d.ts +78 -0
- package/halloween/utils/halloween-spider-wrap.d.ts.map +1 -0
- package/halloween/utils/halloween-train.d.ts +29 -0
- package/halloween/utils/halloween-train.d.ts.map +1 -0
- package/halloween/utils/halloween-web-animation.d.ts +10 -0
- package/halloween/utils/halloween-web-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-web-plan.d.ts +46 -0
- package/halloween/utils/halloween-web-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-web-targets.d.ts +10 -0
- package/halloween/utils/halloween-web-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-witch-animation.d.ts +12 -0
- package/halloween/utils/halloween-witch-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-witch-plan.d.ts +69 -0
- package/halloween/utils/halloween-witch-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-witch-targets.d.ts +20 -0
- package/halloween/utils/halloween-witch-targets.d.ts.map +1 -0
- package/halloween/utils/halloween.d.ts +101 -0
- package/halloween/utils/halloween.d.ts.map +1 -0
- package/halloween.js +11671 -0
- package/hooks/useReducedMotion.d.ts +3 -0
- package/hooks/useReducedMotion.d.ts.map +1 -0
- package/index.css +2 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -0
- package/index.js +146 -0
- package/models/celebration.d.ts +123 -0
- package/models/celebration.d.ts.map +1 -0
- package/new-year/components/NewYear/NewYearDecor.d.ts +4 -0
- package/new-year/components/NewYear/NewYearDecor.d.ts.map +1 -0
- package/new-year/components/NewYear/NewYearParticles.d.ts +10 -0
- package/new-year/components/NewYear/NewYearParticles.d.ts.map +1 -0
- package/new-year/components/NewYear/NewYearSleigh.d.ts +3 -0
- package/new-year/components/NewYear/NewYearSleigh.d.ts.map +1 -0
- package/new-year/components/NewYear/particles.d.ts +5 -0
- package/new-year/components/NewYear/particles.d.ts.map +1 -0
- package/new-year/components/NewYear/types.d.ts +10 -0
- package/new-year/components/NewYear/types.d.ts.map +1 -0
- package/new-year/constants/labels.d.ts +4 -0
- package/new-year/constants/labels.d.ts.map +1 -0
- package/new-year/event.d.ts +4 -0
- package/new-year/event.d.ts.map +1 -0
- package/new-year/index.d.ts +7 -0
- package/new-year/index.d.ts.map +1 -0
- package/new-year/models/labels.d.ts +14 -0
- package/new-year/models/labels.d.ts.map +1 -0
- package/new-year.js +382 -0
- package/package.json +43 -0
- package/utils/celebration-history.d.ts +8 -0
- package/utils/celebration-history.d.ts.map +1 -0
- package/utils/celebration-snapshots.d.ts +21 -0
- package/utils/celebration-snapshots.d.ts.map +1 -0
- package/utils/celebration.d.ts +18 -0
- package/utils/celebration.d.ts.map +1 -0
- package/utils/flying-characters.d.ts +11 -0
- package/utils/flying-characters.d.ts.map +1 -0
- package/utils/host-anchors.d.ts +12 -0
- package/utils/host-anchors.d.ts.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReducedMotion.d.ts","sourceRoot":"","sources":["../../src/hooks/useReducedMotion.ts"],"names":[],"mappings":"AAUA,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,eAC6B,CAAC"}
|
package/index.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@keyframes _character-flight_17k2o_1{0%{opacity:0;transform:translate3d(var(--flight-start-x), var(--flight-start-y), 0) rotate(-8deg)}12%{opacity:1}50%{transform:translate3d(48vw, var(--flight-mid-y), 0) rotate(6deg)}88%{opacity:1}to{opacity:0;transform:translate3d(var(--flight-end-x), var(--flight-end-y), 0) rotate(-5deg)}}._layer_17k2o_20{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}._flight_17k2o_29{inline-size:var(--flight-size);animation:_character-flight_17k2o_1 var(--flight-duration) ease-in-out var(--flight-delay) both;position:absolute;top:0;left:0}._facing_17k2o_37{transform:scaleX(var(--flight-facing));display:block}._facing_17k2o_37>svg{filter:drop-shadow(0 2px 3px #17162126);block-size:auto;inline-size:100%;display:block}@media (prefers-reduced-motion:reduce){._flight_17k2o_29{transform:translate3d(var(--flight-rest-x), var(--flight-rest-y), 0);animation:none}}._scene_tlezg_2{pointer-events:none;-webkit-user-select:none;user-select:none;contain:layout style;position:absolute;inset:0;overflow:clip}._scene_tlezg_2[data-ready=false],._scene_tlezg_2[data-ended=true]{visibility:hidden}._actor_tlezg_16,._copies_tlezg_17,._art_tlezg_18{position:absolute;top:0;left:0;right:auto}._copies_tlezg_17{z-index:1}._actor_tlezg_16{transform-origin:0 0;opacity:0;z-index:3;block-size:0;inline-size:0}._art_tlezg_18{transform:translate(-50%,-82.5%)}._art_tlezg_18 svg{block-size:100%;inline-size:100%;display:block;overflow:visible}._art_tlezg_18 [data-bat-part=wing-left],._art_tlezg_18 [data-bat-part=wing-right],._art_tlezg_18 [data-bat-part=forearm-left],._art_tlezg_18 [data-bat-part=forearm-right],._art_tlezg_18 [data-bat-part=wrap]{transform-box:view-box}._art_tlezg_18 [data-bat-part=wing-left]{transform-origin:42px 39px}._art_tlezg_18 [data-bat-part=wing-right]{transform-origin:58px 39px}._art_tlezg_18 [data-bat-part=forearm-left]{transform-origin:27px 29px}._art_tlezg_18 [data-bat-part=forearm-right]{transform-origin:73px 29px}._art_tlezg_18 [data-bat-part=wrap]{transform-origin:50px 47px}._scene_tlezg_2[data-ended=true] ._fallback_tlezg_70 *,._scene_tlezg_2[data-stationary=true] ._fallback_tlezg_70 *{animation:none}._scene_tlezg_2[data-stationary=true] ._fallback_tlezg_70 span[style]{opacity:1;transform:translate3d(var(--flight-rest-x), var(--flight-rest-y), 0)}@keyframes _halloween-spider-drop_1czfz_1{0%{transform:translateY(-100%)}32%{transform:translate(0,0)}68%{transform:translate(0,0)}to{transform:translateY(-100%)}}@keyframes _halloween-spider-sway_1czfz_1{0%{transform:rotate(calc(var(--spider-sway) * -1))}to{transform:rotate(var(--spider-sway))}}@keyframes _halloween-ghost-drift_1czfz_1{0%{opacity:0;transform:translate3d(var(--ghost-from-x), var(--ghost-from-y), 0) scale(var(--ghost-scale-from)) rotate(var(--ghost-tilt))}14%{opacity:var(--ghost-opacity)}50%{transform:translate3d(var(--ghost-mid-x), var(--ghost-mid-y), 0) scale(var(--ghost-scale-mid)) rotate(calc(var(--ghost-tilt) * -1))}86%{opacity:var(--ghost-opacity)}to{opacity:0;transform:translate3d(var(--ghost-to-x), var(--ghost-to-y), 0) scale(var(--ghost-scale-to)) rotate(var(--ghost-tilt))}}@keyframes _halloween-ghost-bob_1czfz_1{0%,to{transform:translateY(-.4rem)}50%{transform:translateY(.4rem)}}._spiderDrop_1czfz_73{height:var(--spider-depth,40vh);will-change:transform;animation:_halloween-spider-drop_1czfz_1 var(--spider-duration,5s) cubic-bezier(.45, 0, .55, 1) var(--spider-delay,0s) both;position:absolute;inset-block-start:0;inset-inline-start:var(--spider-x,50%)}._spiderSwing_1czfz_82{transform-origin:top;height:100%;animation:_halloween-spider-sway_1czfz_1 var(--spider-sway-duration,2.4s) ease-in-out infinite alternate;flex-direction:column;align-items:center;display:flex}._spiderThread_1czfz_91{flex:1;width:1px}._spiderBody_1czfz_96{transform:scale(var(--spider-scale,1));transform-origin:top}._ghost_1czfz_106{opacity:0;will-change:transform, opacity;animation:_halloween-ghost-drift_1czfz_1 var(--ghost-duration,6s) cubic-bezier(.37, 0, .63, 1) var(--ghost-delay,0s) both;position:absolute;top:0;left:0}._ghostBody_1czfz_115{animation:_halloween-ghost-bob_1czfz_1 var(--ghost-bob-duration,2.2s) ease-in-out infinite;display:block}._cornerSpider_1czfz_126{transition:transform 1.25s cubic-bezier(.33,0,.24,1)}._cornerSpiderFleeing_1czfz_130{transition-duration:.24s;transition-timing-function:cubic-bezier(.22,.92,.3,1)}._cornerSpiderDangle_1czfz_136{transform-origin:50% 17%;display:block}._cornerSpiderThread_1czfz_143{transform-origin:50% 100%;background:#d9cfe0b3;width:1px;height:1px;position:absolute;bottom:83%;left:50%;transform:scaleY(0)}._cornerSpiderWatch_1czfz_154{transform-origin:50% 45%;transition:transform .7s cubic-bezier(.3,0,.2,1);display:block}._cornerSpider_1czfz_126 svg{transform-origin:50% 62%;animation:3.4s ease-in-out infinite _halloween-spider-breathe_1czfz_1}._cornerSpider_1czfz_126 [data-spider-leg],._cornerSpider_1czfz_126 [data-spider-eyes],._cornerSpider_1czfz_126 [data-spider-pupils]{transform-box:view-box}._cornerSpider_1czfz_126 [data-spider-leg="0"]{transform-origin:27px 25px;animation:6.4s ease-in-out infinite _halloween-spider-rub_1czfz_1}._cornerSpider_1czfz_126 [data-spider-leg="4"]{transform-origin:37px 25px;animation:6.4s ease-in-out infinite _halloween-spider-rub-mirrored_1czfz_1}._cornerSpider_1czfz_126 [data-spider-leg="1"]{transform-origin:26px 28px;animation:9s ease-in-out 1.3s infinite _halloween-spider-shift_1czfz_1}._cornerSpider_1czfz_126 [data-spider-leg="6"]{transform-origin:38px 31px;animation:10s ease-in-out 3.1s infinite _halloween-spider-shift-mirrored_1czfz_1}._cornerSpider_1czfz_126 [data-spider-leg="3"]{transform-origin:28px 34px;animation:11s ease-in-out 5.2s infinite _halloween-spider-shift_1czfz_1}._cornerSpider_1czfz_126 [data-spider-leg="7"]{transform-origin:36px 34px;animation:8s ease-in-out 6.4s infinite _halloween-spider-shift-mirrored_1czfz_1}._cornerSpider_1czfz_126 [data-spider-eyes]{transform-origin:32px 20px;animation:5.6s linear infinite _halloween-spider-blink_1czfz_1}._cornerSpider_1czfz_126 [data-spider-pupils]{transition:transform .4s ease-out}._cornerSpider_1czfz_126[data-spider-state=alert] svg,._cornerSpider_1czfz_126[data-spider-state=alert] [data-spider-leg]{animation-play-state:paused}._cornerSpider_1czfz_126[data-spider-state=wrapping] [data-spider-leg="0"]{animation:.36s ease-in-out infinite alternate _halloween-spider-weave_1czfz_1}._cornerSpider_1czfz_126[data-spider-state=wrapping] [data-spider-leg="4"]{animation:.36s ease-in-out .18s infinite alternate-reverse _halloween-spider-weave_1czfz_1}._cornerSpider_1czfz_126[data-spider-state=startled] [data-spider-eyes]{transition:transform .12s ease-out;animation:none;transform:scale(1.35)}._cornerSpider_1czfz_126[data-spider-state=startled] [data-spider-leg]{animation:.5s ease-out _halloween-spider-splay_1czfz_1}._cornerSpider_1czfz_126[data-spider-tap=a] [data-spider-leg="1"]{animation:.16s ease-out _halloween-spider-tap_1czfz_1}._cornerSpider_1czfz_126[data-spider-tap=b] [data-spider-leg="5"]{transform-origin:38px 28px;animation:.16s ease-out _halloween-spider-tap-mirrored_1czfz_1}._pumpkinSilk_1czfz_237{pointer-events:none;block-size:100%;inline-size:100%;position:absolute;inset:0}._pumpkinSilk_1czfz_237 [data-silk-group]{transform-box:view-box;transform-origin:80px 89px}._pumpkinSilk_1czfz_237 [data-silk-cocoon]{fill:#efe9f3;opacity:0}._pumpkinSilk_1czfz_237 [data-silk-strand]{fill:none;stroke:#f4f0f7;stroke-opacity:.9;stroke-width:1.8px;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1px}@keyframes _halloween-spider-weave_1czfz_1{0%{transform:rotate(-12deg)}to{transform:rotate(6deg)}}@keyframes _halloween-spider-splay_1czfz_1{30%{transform:rotate(-14deg)scale(1.08)}}@keyframes _halloween-spider-tap_1czfz_1{45%{transform:rotate(-12deg)}}@keyframes _halloween-spider-tap-mirrored_1czfz_1{45%{transform:rotate(12deg)}}@keyframes _halloween-spider-breathe_1czfz_1{0%,to{transform:scale(1)}50%{transform:scale(1.02,1.035)}}@keyframes _halloween-spider-rub_1czfz_1{0%,66%,96%,to{transform:rotate(0)}71%,79%,87%{transform:rotate(-11deg)}75%,83%,91%{transform:rotate(3deg)}}@keyframes _halloween-spider-rub-mirrored_1czfz_1{0%,66%,96%,to{transform:rotate(0)}71%,79%,87%{transform:rotate(11deg)}75%,83%,91%{transform:rotate(-3deg)}}@keyframes _halloween-spider-shift_1czfz_1{0%,80%,96%,to{transform:rotate(0)}85%{transform:rotate(-7deg)}90%{transform:rotate(2deg)}}@keyframes _halloween-spider-shift-mirrored_1czfz_1{0%,80%,96%,to{transform:rotate(0)}85%{transform:rotate(7deg)}90%{transform:rotate(-2deg)}}@keyframes _halloween-spider-blink_1czfz_1{0%,93%,98%,to{transform:scaleY(1)}95.5%{transform:scaleY(.1)}}@keyframes _halloween-chuckle_1czfz_1{0%,to{transform:rotate(-3deg)translateY(0)}25%,65%{transform:rotate(3deg)translateY(-3px)}45%,85%{transform:rotate(-2deg)translateY(1px)}}@keyframes _halloween-candle_1czfz_1{0%,to{opacity:.85}30%,70%{opacity:1}50%{opacity:.6}}._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367{background:0 0;border-radius:50%;block-size:clamp(88px,9vw,132px);inline-size:clamp(88px,9vw,132px);padding:0}._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:hover,._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:focus-visible,._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:active{background:0 0}._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:hover ._pumpkinBody_1czfz_377,._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:focus-visible ._pumpkinBody_1czfz_377,._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:active ._pumpkinBody_1czfz_377{animation:.65s ease-in-out infinite _halloween-chuckle_1czfz_1}._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:hover ._pumpkinLight_1czfz_380,._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:focus-visible ._pumpkinLight_1czfz_380,._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:active ._pumpkinLight_1czfz_380{filter:drop-shadow(0 0 3px #ffc65b);animation:.65s ease-in-out infinite _halloween-candle_1czfz_1}._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:hover ._pumpkinEyes_1czfz_384,._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:focus-visible ._pumpkinEyes_1czfz_384,._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:active ._pumpkinEyes_1czfz_384{transform:scaleY(.7)}._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:focus-visible{outline:2px solid var(--text-primary,#161b2d);outline-offset:3px}._pumpkin_1czfz_237{filter:drop-shadow(0 5px 8px #5c260d33);block-size:100%;inline-size:100%;display:block;overflow:visible}._pumpkinBody_1czfz_377{transform-origin:80px 130px}._pumpkinEyes_1czfz_384{transform-box:fill-box;transform-origin:50%;transition:transform .18s}@keyframes _halloween-wingbeat_1czfz_1{0%{transform:scaleY(1)}to{transform:scaleY(.35)}}._batWing_1czfz_418{transform-origin:40px 24px;animation:_halloween-wingbeat_1czfz_1 var(--wing-duration) ease-in-out infinite alternate}@keyframes _halloween-cat-walk_1czfz_1{0%{opacity:0;transform:translate(-15vw)}12%{opacity:1}35%{transform:translate(34vw)}55%{transform:translate(46vw)}88%{opacity:1}to{opacity:0;transform:translate(115vw)}}@keyframes _halloween-tail_1czfz_1{0%{transform:rotate(-8deg)}to{transform:rotate(12deg)}}@keyframes _halloween-cat-step_1czfz_1{0%{transform:translateY(0)}to{transform:translateY(-2px)}}@keyframes _halloween-cat-blink_1czfz_1{0%,42%,48%,to{transform:scaleY(1)}45%{transform:scaleY(.1)}}@keyframes _halloween-wisp-rise_1czfz_1{0%{opacity:0;transform:translateY(10vh)scale(.5)}15%{opacity:.7}50%{transform:translate3d(var(--wisp-drift), -45vh, 0) scale(1)}80%{opacity:.6}to{opacity:0;transform:translateY(-110vh)scale(.4)}}._catTraveler_1czfz_488{inline-size:68px;animation:9s ease-in-out .3s both _halloween-cat-walk_1czfz_1;position:absolute;bottom:1.5rem;left:0}._catBody_1czfz_496{inline-size:100%;animation:.26s ease-in-out infinite alternate _halloween-cat-step_1czfz_1}._catTail_1czfz_501{transform-origin:30px 62px;animation:1.1s ease-in-out infinite alternate _halloween-tail_1czfz_1}._catEyes_1czfz_506{transform-box:fill-box;transform-origin:50%;animation:3s ease-in-out infinite _halloween-cat-blink_1czfz_1}._wisp_1czfz_512{left:var(--wisp-x);background:var(--wisp-color);block-size:5px;inline-size:5px;box-shadow:0 0 8px 3px var(--wisp-color);animation:_halloween-wisp-rise_1czfz_1 7.5s ease-in-out var(--wisp-delay) both;border-radius:50%;position:absolute;top:100%}@media (prefers-reduced-motion:reduce){._spiderDrop_1czfz_73,._spiderSwing_1czfz_82,._ghost_1czfz_106,._ghostBody_1czfz_115,._pumpkin_1czfz_237,._batWing_1czfz_418,._catTraveler_1czfz_488,._catBody_1czfz_496,._catTail_1czfz_501,._catEyes_1czfz_506,._wisp_1czfz_512,._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:is(:hover,:focus-visible,:active) ._pumpkinBody_1czfz_377,._pumpkinButton_1czfz_367._pumpkinButton_1czfz_367:is(:hover,:focus-visible,:active) ._pumpkinLight_1czfz_380{animation:none}._catTraveler_1czfz_488{transform:translate(45vw)}._wisp_1czfz_512{top:var(--wisp-rest-y);opacity:.6}._cornerSpider_1czfz_126,._cornerSpiderFleeing_1czfz_130,._cornerSpiderWatch_1czfz_154,._pumpkinEyes_1czfz_384{transition:none}._cornerSpider_1czfz_126 svg,._cornerSpider_1czfz_126 [data-spider-leg],._cornerSpider_1czfz_126 [data-spider-eyes],._cornerSpider_1czfz_126[data-spider-tap] [data-spider-leg]{animation:none}._spiderDrop_1czfz_73{transform:translate(0,0)}._ghost_1czfz_106{opacity:var(--ghost-opacity);transform:translate3d(var(--ghost-rest-x), var(--ghost-rest-y), 0) scale(var(--ghost-scale-from))}}._scene_1bmud_1{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}._actor_1bmud_9{aspect-ratio:1;inline-size:110px;position:absolute;inset-block-start:calc(50% - 55px);inset-inline:calc(50% - 55px) auto}._actor_1bmud_9 svg{filter:drop-shadow(0 3px 3px #17242d50);block-size:100%;inline-size:100%;display:block;overflow:visible}._spin_1bmud_26{transform-origin:80px 83px}._orange_2r8vk_2{fill:var(--candy-orange,#e99042)}._corn_2r8vk_6{fill:var(--candy-gold,#f4c962);stroke:var(--candy-gold-edge,#9b6537);stroke-width:1.2px}._cream_2r8vk_12{fill:var(--candy-cream,#fff3d0)}._green_2r8vk_16{fill:var(--candy-green,#84bca0);stroke:var(--candy-green-edge,#376356);stroke-width:1.2px}._purple_2r8vk_22{fill:var(--candy-purple,#aa89cc);stroke:var(--candy-purple-edge,#5a416f);stroke-width:1.2px}._wrapperFold_2r8vk_28{fill:var(--candy-wrapper-shadow,#263349);opacity:.25}._stripe_2r8vk_33{fill:none;stroke:var(--candy-cream,#fff3d0);stroke-width:5px;opacity:.65}._glint_2r8vk_40{fill:none;stroke:var(--candy-shine,#fff8e0);stroke-width:2.4px;stroke-linecap:round}._featherLight_2r8vk_47{stop-color:var(--candy-feather-light,#8990a6)}._featherMid_2r8vk_51{stop-color:var(--candy-feather-mid,#394254)}._featherDark_2r8vk_55{stop-color:var(--candy-feather-dark,#111a2a)}._feather_2r8vk_47{fill:var(--candy-feather-dark,#111a2a);stroke:var(--candy-feather-edge,#8a93a8);stroke-width:.8px}._outline_2r8vk_65{stroke:var(--candy-feather-edge,#8a93a8);stroke-width:.8px}._featherLine_2r8vk_70{fill:none;stroke:var(--candy-feather-light,#a6afc5);stroke-width:1px;opacity:.55}._claw_2r8vk_77{fill:none;stroke:var(--candy-claw,#a9a296);stroke-width:2.4px;stroke-linecap:round}._beak_2r8vk_84{fill:var(--candy-beak,#555966);stroke:var(--candy-beak-edge,#c3bba4);stroke-width:.7px}._beakLine_2r8vk_90{fill:none;stroke:var(--candy-beak-edge,#c3bba4);stroke-width:1px}._eye_2r8vk_96{fill:var(--candy-eye,#ebd48d)}._ink_2r8vk_100{fill:var(--candy-ink,#19282b)}._inkLine_2r8vk_104{fill:none;stroke:var(--candy-ink,#19282b);stroke-width:2px;stroke-linecap:round}._linen_2r8vk_111{fill:var(--candy-linen,#cab990);stroke:var(--candy-linen-edge,#75674f);stroke-width:1.5px;stroke-linejoin:round}._bone_2r8vk_118{fill:var(--candy-bone,#e1dcc4);stroke:var(--candy-bone-edge,#7b8277);stroke-width:1.4px;stroke-linejoin:round}._seam_2r8vk_125{fill:none;stroke:var(--candy-seam,#857558);stroke-width:1.5px}._apron_2r8vk_131{fill:var(--candy-apron,#496c77);stroke:var(--candy-apron-edge,#263f4b);stroke-width:1.5px}._apronLight_2r8vk_137{fill:var(--candy-apron-light,#7a9a9b)}._handle_2r8vk_141{fill:none;stroke:var(--candy-wood,#927047);stroke-width:5px;stroke-linecap:round}._bristles_2r8vk_148{fill:var(--candy-straw,#c2a469);stroke:var(--candy-straw-edge,#75603f);stroke-width:1.2px}._bristleLines_2r8vk_154{fill:none;stroke:var(--candy-straw-edge,#75603f);stroke-width:1px}._binding_2r8vk_160{fill:var(--candy-binding,#9d6956)}._scene_kug86_2{pointer-events:none;-webkit-user-select:none;user-select:none;contain:layout style;position:absolute;inset:0;overflow:clip}._scene_kug86_2[data-ready=false],._scene_kug86_2[data-ended=true]{visibility:hidden}._actor_kug86_16,._copies_kug86_17,._art_kug86_18{position:absolute;top:0;left:0;right:auto}._copies_kug86_17{z-index:1}._floor_kug86_29{background:radial-gradient(#9186a080,#0000 72%);border-radius:50%;block-size:4px;position:absolute;transform:translateY(-50%)}._actor_kug86_16{z-index:2;opacity:0;transform-origin:0 0;block-size:0;inline-size:0}._art_kug86_18{aspect-ratio:8/7;transform:translate(-50%,-85.7143%)}._facing_kug86_51{block-size:100%;inline-size:100%;transform:scaleX(var(--cat-facing,1));transform-origin:50%;display:block}._art_kug86_18 svg,._fallback_kug86_60 svg{block-size:100%;inline-size:100%;display:block;overflow:visible}._art_kug86_18 [data-cat-part],._fallback_kug86_60 [data-cat-part]{transform-box:view-box}._art_kug86_18 [data-cat-part=arm],._fallback_kug86_60 [data-cat-part=arm]{transform-origin:100px 72px}._art_kug86_18 [data-cat-part=forearm],._fallback_kug86_60 [data-cat-part=forearm]{transform-origin:100px 96px}._art_kug86_18 [data-cat-part=head],._fallback_kug86_60 [data-cat-part=head]{transform-origin:100px 49px}._art_kug86_18 [data-cat-part=tail],._fallback_kug86_60 [data-cat-part=tail]{transform-origin:59px 98px}._art_kug86_18 [data-cat-part=hind-leg],._fallback_kug86_60 [data-cat-part=hind-leg]{transform-origin:66px 99px}._art_kug86_18 [data-cat-part=far-leg],._fallback_kug86_60 [data-cat-part=far-leg]{transform-origin:87px 82px}._art_kug86_18 [data-cat-part=eyes],._fallback_kug86_60 [data-cat-part=eyes]{transform-origin:103px 46px}._art_kug86_18 [data-cat-part=pupils],._fallback_kug86_60 [data-cat-part=pupils]{transform-origin:105px 46px}._art_kug86_18 [data-cat-part=ears],._fallback_kug86_60 [data-cat-part=ears]{transform-origin:100px 35px}._art_kug86_18 [data-cat-part=tongue],._fallback_kug86_60 [data-cat-part=tongue]{transform-origin:113px 61px}._fallback_kug86_60{aspect-ratio:8/7;inline-size:120px;animation:9s linear both _crossing_kug86_1;position:absolute;inset-block-end:24px;inset-inline-start:44%}._fallback_kug86_60 [data-cat-part=tail]{animation:1.8s ease-in-out infinite alternate _tail-sway_kug86_1}._fallback_kug86_60 [data-cat-part=hind-leg],._fallback_kug86_60 [data-cat-part=arm]{animation:.62s ease-in-out infinite alternate _step_kug86_1}._fallback_kug86_60 [data-cat-part=far-leg]{animation:.62s ease-in-out infinite alternate-reverse _step_kug86_1}._fallback_kug86_60 [data-cat-part=eyes]{animation:4s linear infinite _blink_kug86_1}._scene_kug86_2[data-ended=true] ._fallback_kug86_60,._scene_kug86_2[data-ended=true] ._fallback_kug86_60 *,._scene_kug86_2[data-stationary=true] ._fallback_kug86_60,._scene_kug86_2[data-stationary=true] ._fallback_kug86_60 *{animation:none}@keyframes _crossing_kug86_1{0%{opacity:0;transform:translate(calc(-100vw - 140px))}8%,92%{opacity:1}to{opacity:0;transform:translate(calc(100vw + 140px))}}@keyframes _tail-sway_kug86_1{0%{transform:rotate(-9deg)}to{transform:rotate(12deg)}}@keyframes _step_kug86_1{0%{transform:rotate(-9deg)}to{transform:rotate(10deg)}}@keyframes _blink_kug86_1{0%,42%,48%,to{transform:scaleY(1)}45%{transform:scaleY(.06)}}._scene_m0t60_2{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}._skeleton_m0t60_10,._portal_m0t60_11{position:absolute}._skeleton_m0t60_10 svg{block-size:auto;inline-size:100%;display:block}._skeleton_m0t60_10{bottom:3px;left:calc(8% + var(--side) * 68%);filter:drop-shadow(0 2px 3px #253c39a0);inline-size:74px;animation:9s ease-in-out both _skeleton-arrival_m0t60_1}._skeletonBody_m0t60_29{transform-origin:50px 105px;animation:.65s ease-in-out 1s infinite alternate _skeleton-bounce_m0t60_1}._skeletonLeftArm_m0t60_34{transform-origin:36px 58px;animation:.65s ease-in-out 1s infinite alternate _skeleton-swing_m0t60_1}._skeletonRightArm_m0t60_39{transform-origin:64px 58px;animation:.65s ease-in-out 1s infinite alternate-reverse _skeleton-swing_m0t60_1}._skeletonLeftLeg_m0t60_44{transform-origin:41px 115px;animation:.65s ease-in-out 1s infinite alternate _skeleton-step_m0t60_1}._skeletonRightLeg_m0t60_49{transform-origin:59px 115px;animation:.65s ease-in-out 1s infinite alternate-reverse _skeleton-step_m0t60_1}._skeletonSkull_m0t60_54{transform-origin:50px 43px;animation:.65s ease-in-out 1s infinite alternate _skeleton-nod_m0t60_1}@keyframes _skeleton-arrival_m0t60_1{0%,to{transform:translateY(110%) scaleX(var(--mirror));opacity:0}13%,84%{transform:translateY(0) scaleX(var(--mirror));opacity:1}}@keyframes _skeleton-bounce_m0t60_1{0%{transform:translateY(0)rotate(-4deg)}to{transform:translateY(-5px)rotate(4deg)}}@keyframes _skeleton-swing_m0t60_1{0%{transform:rotate(-20deg)}to{transform:rotate(20deg)}}@keyframes _skeleton-step_m0t60_1{0%{transform:rotate(-14deg)}to{transform:rotate(14deg)}}@keyframes _skeleton-nod_m0t60_1{0%{transform:rotate(-8deg)}to{transform:rotate(8deg)}}._portal_m0t60_11{filter:drop-shadow(0 0 8px #73ceac);transform-origin:50%;animation:9s ease-in-out both _rift-open_m0t60_1}._portalEyes_m0t60_107{animation:9s ease-in-out both _rift-eyes_m0t60_1}._armCanvas_m0t60_111{filter:drop-shadow(0 2px 3px #102b2699);block-size:100%;inline-size:100%;position:absolute;inset:0;overflow:visible}._portalArm_m0t60_120{animation:9s ease-in-out both _claw-reach_m0t60_1}._clawFinger_m0t60_124{animation:9s ease-in-out both _claw-grip_m0t60_1}@keyframes _rift-open_m0t60_1{0%{opacity:0;transform:scale(.02,.15)}8%{opacity:1;transform:scale(.08,.8)}20%,68%{opacity:1;transform:scale(1)}72%{opacity:1;transform:scale(.02,1.12)}75%,to{opacity:0;transform:scale(0,.1)}}@keyframes _rift-eyes_m0t60_1{0%,12%,68%,to{opacity:0}22%,27%,32%,60%{opacity:1}29%{opacity:.1}}@keyframes _claw-reach_m0t60_1{0%,17%{opacity:0;transform:scale(.02)}24%{opacity:1;transform:scale(.22)}34%,42%{opacity:1;transform:scale(1)}63%{opacity:1;transform:scale(.05)}66%,to{opacity:0;transform:scale(0)}}@keyframes _claw-grip_m0t60_1{0%,34%,to{transform:rotate(-10deg)}40%,65%{transform:rotate(16deg)}}@media (width>=1280px){._skeleton_m0t60_10{inline-size:98px}}@media (prefers-reduced-motion:reduce){._scene_m0t60_2,._scene_m0t60_2 *{animation:none!important}._skeleton_m0t60_10{transform:scaleX(var(--mirror))}._portal_m0t60_11,._portalEyes_m0t60_107{opacity:1;transform:none}._portalArm_m0t60_120{display:none}}._paw_1mpnx_2{fill:var(--footprint-pad,#a2c7b5);stroke:var(--footprint-edge,#45645e);stroke-width:1.2px}._padLight_1mpnx_8{fill:none;stroke:var(--footprint-light,#e0edcf);stroke-width:1.5px;stroke-linecap:round}._eye_1mpnx_15{fill:var(--footprint-eye,#c9dd8d);stroke:var(--footprint-edge,#45645e);stroke-width:1.4px}._pupil_1mpnx_21{fill:var(--footprint-ink,#233b38)}._eyeLight_1mpnx_25{fill:none;stroke:var(--footprint-light,#f6f6d8);stroke-width:2px;stroke-linecap:round}._lid_1mpnx_32,._teeth_1mpnx_33,._smile_1mpnx_34{fill:none;stroke:var(--footprint-ink,#233b38);stroke-width:1.2px;stroke-linecap:round;stroke-linejoin:round}._mouth_1mpnx_42{fill:var(--footprint-tooth,#eee7c7);stroke:var(--footprint-edge,#45645e);stroke-width:1.2px}._ledge_1mpnx_48{border-color:var(--footprint-pad,#a2c7b5)}._scene_1mpnx_53[data-ready=false],._scene_1mpnx_53[data-ended=true]{visibility:hidden}._scene_1ncpe_2{pointer-events:none;-webkit-user-select:none;user-select:none;contain:layout style;position:absolute;inset:0;overflow:clip}._scene_1ncpe_2[data-ready=false],._scene_1ncpe_2[data-ended=true]{visibility:hidden}._scene_1ncpe_2[data-ended=true] [data-ghost-fallback],._scene_1ncpe_2[data-ended=true] [data-ghost-fallback]>svg{animation:none}._actor_1ncpe_21,._copies_1ncpe_22,._pumpkinGlow_1ncpe_23{position:absolute;top:0;left:0}._copies_1ncpe_22{z-index:1;pointer-events:none}._actor_1ncpe_21{transform-origin:0 0;z-index:3;opacity:0;block-size:0;inline-size:0}._art_1ncpe_42{position:absolute;top:0;left:0;right:auto;transform:translate(-50%,-50%)}._cloth_1ncpe_50{transform-origin:50% 35%;block-size:100%;inline-size:100%}._cloth_1ncpe_50 svg{block-size:100%;inline-size:100%;display:block;overflow:visible}._cloth_1ncpe_50 [data-ghost-arms]{transform-origin:32px 44px}._templates_1ncpe_65{display:none}._possessedFace_1ncpe_69{block-size:18px;inline-size:33px;transform:translate(-50%, -50%) scale(var(--ghost-face-scale,1));pointer-events:none;z-index:5;opacity:0;align-items:center;gap:5px;margin-inline:0;display:flex;position:absolute;top:50%;left:50%}._eye_1ncpe_85{background:radial-gradient(at 40% 30%,#fff 15%,#e4d6fb 68%,#b5a0d1);border-radius:48% 48% 42% 42%;flex:0 0 14px;block-size:18px;inline-size:14px;display:block;position:relative;overflow:hidden;box-shadow:0 0 7px #d8baffb3}._eye_1ncpe_85 [data-ghost-pupil]{background:#28283c;border-radius:50%;block-size:8px;inline-size:5px;position:absolute;top:5px;left:5px}._pumpkinGlow_1ncpe_23{opacity:0;z-index:2;transform-origin:50%;background:radial-gradient(at 50% 60%,#ffe68970 0%,#ffaf3547 35%,#ff80261f 53%,#0000 72%)}._scene_1ncpe_2[data-stationary=true] [data-ghost-fallback]{opacity:var(--ghost-opacity);transform:translate3d(var(--ghost-rest-x), var(--ghost-rest-y), 0) scale(var(--ghost-scale-from));animation:none}._scene_1ncpe_2[data-stationary=true] [data-ghost-fallback]>svg{animation:none}._tongueCanvas_id5l0_1{pointer-events:none;block-size:100%;inline-size:100%;position:absolute;inset:0;overflow:visible}._tongue_id5l0_1{transform-origin:0 0;transform:scale(0)}._loop_id5l0_15{fill:none;opacity:0}._loop_id5l0_15 [data-mimic-wrap]{stroke-dasharray:1;stroke-dashoffset:1px}._tongue_id5l0_1,._loop_id5l0_15{stroke-linecap:round;stroke-linejoin:round}@media (prefers-reduced-motion:reduce){._tongueCanvas_id5l0_1{display:none}}._scene_1112m_1{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}._stage_1112m_9{--scene-size:min(clamp(180px, 26vw, 300px), 70dvh, calc(100vw - 24px));inline-size:var(--scene-size);block-size:var(--scene-size);filter:drop-shadow(0 5px 8px #17242d50);position:absolute;inset-block-start:calc((100% - var(--scene-size)) * var(--place-y));inset-inline-start:calc((100% - var(--scene-size)) * var(--place-x));overflow:hidden}._art_1112m_20{transform-origin:160px 160px;animation:8s ease-in-out both _scene-life_1112m_1}@keyframes _scene-life_1112m_1{0%{opacity:0;transform:translateY(12px)scale(.88)}12%,86%{opacity:1;transform:none}to{opacity:0;transform:translateY(-14px)scale(.97)}}._pot_1112m_39{animation:8s ease-in-out both _pot-life_1112m_1}._simmer_1112m_43{transform-box:fill-box;transform-origin:50%;animation:_simmer_1112m_43 1.3s ease-in-out var(--delay) 4 both}._bubble_1112m_49{animation:_bubble-rise_1112m_1 2.65s ease-out var(--delay) both}._bubbleFace_1112m_53{animation:_bubble-face_1112m_1 2.65s ease-out var(--delay) both}._smoke_1112m_57{animation:_smoke-puff_1112m_1 1.65s ease-out var(--delay) both}@keyframes _pot-life_1112m_1{0%,73%{opacity:1}86%,to{opacity:0}}@keyframes _simmer_1112m_43{0%,to{opacity:.4;transform:scale(.4)}50%{opacity:.9;transform:scale(1.1)}}@keyframes _bubble-rise_1112m_1{0%{opacity:0;transform:translate(0)scale(.25)}12%{opacity:.85}75%{opacity:.9;transform:translate(var(--drift), -105px) scale(1)}86%{opacity:.8;transform:translate(var(--drift), -123px) scale(1.08)}to{opacity:0;transform:translate(var(--drift), -133px) scale(1.55)}}@keyframes _bubble-face_1112m_1{0%,25%{opacity:0}50%,85%{opacity:1}to{opacity:0}}@keyframes _smoke-puff_1112m_1{0%{opacity:0;transform:scale(.2)}25%{opacity:.55}to{opacity:0;transform:translateY(-60px)scale(1.7)}}._chest_1112m_124{transform-origin:160px 225px;animation:8s ease-in-out both _chest-hiccup_1112m_1}._chestLid_1112m_129{transform-origin:250px 190px;animation:8s ease-in-out both _chest-chew_1112m_1}@keyframes _chest-chew_1112m_1{0%,12%{transform:translateY(9px)}26%,57%{transform:translateY(-30px)rotate(5deg)}60%,65%,70%{transform:translateY(9px)}62%,67%{transform:translateY(-7px)}74%,79%{transform:translateY(-38px)rotate(7deg)}88%,to{transform:translateY(9px)}}@keyframes _chest-hiccup_1112m_1{0%,65%,82%,to{transform:none}69%{transform:translateY(-12px)rotate(-4deg)}73%{transform:translateY(3px)rotate(3deg)}}@media (prefers-reduced-motion:reduce){._stage_1112m_9,._stage_1112m_9 *{animation:none!important}._stage_1112m_9,._art_1112m_20,._pot_1112m_39,._chest_1112m_124,._chestLid_1112m_129{opacity:1;transform:none}._bubble_1112m_49{transform:translate(var(--drift), -65px)}._bubbleFace_1112m_53{opacity:1}._smoke_1112m_57{display:none}}._scene_135v7_1{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}._actor_135v7_9{aspect-ratio:200/260;inline-size:130px;position:absolute;inset-block-start:calc(50% - 85px);inset-inline:calc(50% - 65px) auto}._actor_135v7_9 svg{filter:drop-shadow(0 3px 3px #17242d50);block-size:100%;inline-size:100%;display:block;overflow:visible}._backLeg_135v7_26,._frontLeg_135v7_27{transform-origin:98px 167px;animation:_mummy-step_135v7_1 var(--mummy-duration) linear both}._frontLeg_135v7_27{animation-name:_mummy-front-step_135v7_1}._torso_135v7_36{transform-origin:102px 165px;animation:_mummy-strain_135v7_1 var(--mummy-duration) ease-in-out both}._head_135v7_41{transform-origin:115px 92px;animation:_mummy-determination_135v7_1 var(--mummy-duration) ease-in-out both}._eyes_135v7_46{transform-origin:135px 61px;animation:_mummy-squint_135v7_1 var(--mummy-duration) ease-in-out both}._looseLinen_135v7_51{transform-origin:72px 124px;animation:_mummy-linen_135v7_1 var(--mummy-duration) ease-in-out both}._effort_135v7_56{animation:_mummy-effort_135v7_1 var(--mummy-duration) ease-in-out both}._dust_135v7_60{animation:_mummy-dust_135v7_1 var(--mummy-duration) ease-in-out both}@keyframes _mummy-step_135v7_1{0%,6%,12%,36%,46%,56%,66%,76%,86%,to{transform:rotate(-9deg)}3%,9%,15%,41%,51%,61%,71%,81%{transform:rotate(8deg)}18%,22%,28%,34%{transform:rotate(0)}20%,24%,30%,32%{transform:translate(-3px)rotate(-2deg)}}@keyframes _mummy-front-step_135v7_1{0%,6%,12%,36%,46%,56%,66%,76%,86%,to{transform:rotate(7deg)}3%,9%,15%,41%,51%,61%,71%,81%{transform:rotate(-7deg)}18%,22%,28%,34%{transform:none}20%,24%,30%,32%{transform:translate(-1px)rotate(1deg)}}@keyframes _mummy-strain_135v7_1{0%,15%{transform:none}19%,23%,29%,33%{transform:translate(3px)rotate(5deg)}21%,31%{transform:translate(1px)rotate(3deg)}26%{transform:rotate(-3deg)}36%,to{transform:translate(5px)rotate(8deg)}}@keyframes _mummy-determination_135v7_1{0%,15%,26%{transform:none}19%,23%,29%,33%,36%,to{transform:rotate(7deg)}21%,31%{transform:rotate(3deg)}}@keyframes _mummy-squint_135v7_1{0%,15%,26%{transform:none}19%,24%,30%,to{transform:scaleY(.5)}}@keyframes _mummy-linen_135v7_1{0%,15%,26%,36%,56%,76%,to{transform:rotate(-9deg)}8%,22%,32%,46%,66%,86%{transform:rotate(14deg)}}@keyframes _mummy-effort_135v7_1{0%,16%,26%,35%,48%,to{opacity:0}19%,23%,29%,33%,40%{opacity:.9}}@keyframes _mummy-dust_135v7_1{0%,36%,47%,58%,69%,80%,to{opacity:0;transform:translate(0)}42%,53%,64%,75%{opacity:.6;transform:translate(-10px)}}._scene_135v7_1[data-static=true] ._actor_135v7_9 *{animation:none}._scene_135v7_1[data-static=true] ._effort_135v7_56,._scene_135v7_1[data-static=true] ._dust_135v7_60{display:none}@media (prefers-reduced-motion:reduce){._actor_135v7_9 *{animation:none!important}._effort_135v7_56,._dust_135v7_60{display:none}}._scene_1vn5x_2{pointer-events:none;-webkit-user-select:none;user-select:none;contain:layout style;position:absolute;inset:0;overflow:hidden}._bird_1vn5x_11,._nest_1vn5x_12,._copies_1vn5x_13,._fallback_1vn5x_14,._edgeGap_1vn5x_15{position:absolute;top:0;left:0}._bird_1vn5x_11{transform-origin:0 0;z-index:3;block-size:0;inline-size:0}._art_1vn5x_28{left:calc(var(--raven-size) * -.95);top:calc(var(--raven-size) * -.291667);inline-size:var(--raven-size);block-size:calc(var(--raven-size) * .916667);transform-origin:95% 31.8182%;transform:scaleX(var(--raven-facing));position:absolute}._art_1vn5x_28 svg{inline-size:100%;display:block;overflow:visible}._art_1vn5x_28 [data-raven-wing]{transform:rotate(-8deg)scaleY(.32)}._ribbon_1vn5x_46{transform-origin:0 0;opacity:0;position:absolute;top:0;left:0;overflow:visible}._nest_1vn5x_12{z-index:2;transform-origin:0 0;block-size:0;inline-size:0}._nest_1vn5x_12>svg{left:calc(var(--nest-width) * -.5);top:calc(var(--nest-width) * -.21);inline-size:var(--nest-width);position:absolute;overflow:visible}._copies_1vn5x_13,._fallback_1vn5x_14{z-index:2;pointer-events:none}._fallback_1vn5x_14{opacity:0}._edgeGap_1vn5x_15{opacity:0;border-radius:2px;block-size:3px}._scene_1vn5x_2[data-ready=false]{visibility:hidden}._scene_1vn5x_2[data-animated=true] ._bird_1vn5x_11,._scene_1vn5x_2[data-animated=true] [data-raven-twig]{opacity:0}._scene_1crkq_1,._carrier_1crkq_2,._cargo_1crkq_3,._web_1crkq_4{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0}._scene_1crkq_1{overflow:hidden}._carrier_1crkq_2{transform:translateY(-110%)}._web_1crkq_4{opacity:0;filter:drop-shadow(0 .4px .45px #1a263a66);block-size:100%;inline-size:100%}._silk_1crkq_26{stroke:#e2e7e8;stroke-dasharray:1;stroke-dashoffset:1px}._thread_1crkq_33{background:linear-gradient(#c1d0df28,#e2e7e899);inline-size:1px;position:absolute;inset-block-start:0}._spider_1crkq_40{position:absolute}._body_1crkq_44._body_1crkq_44{block-size:100%;inline-size:100%}._scene_11wzq_1{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}._train_11wzq_9{--train-duration:11s;--train-width:min(clamp(320px, 54vw, 760px), calc(100vw - 24px));left:calc((100% - var(--train-width)) / 2);inline-size:var(--train-width);aspect-ratio:640/170;filter:drop-shadow(0 0 5px #a1d7bd50);position:absolute;bottom:8px}._artwork_11wzq_21{position:absolute;inset:0}._passenger_11wzq_26{opacity:0;transform-origin:50%;position:absolute}._passenger_11wzq_26>svg{block-size:100%;inline-size:100%}._passenger_11wzq_26 *{transition:none!important;animation:none!important}@media (prefers-reduced-motion:reduce){._passenger_11wzq_26{display:none}}._artwork_1knkp_1{pointer-events:none;-webkit-user-select:none;user-select:none;block-size:auto;inline-size:100%;display:block;overflow:visible}._wheel_1knkp_10{transform-origin:0 0;animation:_wheel-turn_1knkp_1 var(--train-duration,11s) linear both}._smoke_1knkp_15{opacity:0;transform-origin:0 0;animation:_smoke-drift_1knkp_1 calc(var(--train-duration,11s) / 4) ease-out var(--smoke-delay) 4 both}._plumeFlow_1knkp_21{transform-origin:0 0;animation:_smoke-departure_1knkp_1 var(--train-duration,11s) ease-in-out both}@keyframes _wheel-turn_1knkp_1{20%,50%{transform:rotate(-720deg)}86%,to{transform:rotate(-4320deg)}}@keyframes _smoke-departure_1knkp_1{0%,50%{transform:scale(1)}58%,to{transform:scale(1.35)}}@keyframes _smoke-drift_1knkp_1{0%{opacity:0;transform:translate(0, 0) scale(calc(var(--smoke-size) * .18))}14%{opacity:.82}56%{opacity:.48}to{opacity:0;transform:translate(var(--smoke-x), var(--smoke-y)) rotate(var(--smoke-turn)) scale(calc(var(--smoke-size) * 2.15))}}@media (prefers-reduced-motion:reduce){._wheel_1knkp_10,._plumeFlow_1knkp_21{animation:none}._smoke_1knkp_15{animation:none;display:none}}._scene_1xe10_1{block-size:100%;inline-size:100%;color:var(--text-primary,#161b2d);pointer-events:none;position:absolute;inset:0}._witch_1ug7q_2{--witch-cloak:#71518e;--witch-edge:#c5a1db;--witch-dark:#30233e;--witch-hair:#c17643;--witch-ribbon:#e9a44f}._mentor_1ug7q_10{--witch-cloak:#2f6664;--witch-edge:#9bd0bb;--witch-dark:#193b43;--witch-hair:#c3c8d3;--witch-ribbon:#ceb780}._cloak_1ug7q_18{fill:var(--witch-cloak);stroke:var(--witch-edge);stroke-width:1px}._hatBrim_1ug7q_24,._boot_1ug7q_25{fill:var(--witch-dark);stroke:var(--witch-edge);stroke-width:.8px}._hair_1ug7q_31{fill:var(--witch-hair)}._ribbon_1ug7q_35,._buckle_1ug7q_36{fill:var(--witch-ribbon)}._lapel_1ug7q_40{fill:var(--witch-edge)}._fold_1ug7q_44{fill:none;stroke:var(--witch-edge);stroke-width:1px}._skin_1ug7q_50{fill:#d9c5aa;stroke:#705a62;stroke-width:.8px}._eye_1ug7q_56{fill:#fff6d6}._pupil_1ug7q_60{fill:#1e2633}._expression_1ug7q_64{fill:none;stroke:#3c2d42;stroke-width:1.6px;stroke-linecap:round}._wood_1ug7q_71{fill:none;stroke:#986342;stroke-width:5px;stroke-linecap:round}._straw_1ug7q_78{fill:#d5aa58;stroke:#835733;stroke-width:1px}._strawLines_1ug7q_84{fill:none;stroke:#ffe3a0;stroke-width:1px}._binding_1ug7q_90{stroke:#685057;stroke-width:2.4px}._frogLeg_1ug7q_95{fill:none;stroke:#86ba70;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round}._frogEye_1ug7q_103{fill:#deeb9b;stroke:#578553;stroke-width:1.4px}._broom_1ug7q_109{transform-origin:90px 120px}._armJoint_1ug7q_113{transform-origin:98px 82px}._headJoint_1ug7q_117{transform-origin:93px 70px}._hatJoint_1ug7q_121{transform-origin:94px 45px}._cloakJoint_1ug7q_125{transform-origin:88px 72px}._frogLegs_1ug7q_129{transform-origin:50px 57px}._broom_1ug7q_109,._armJoint_1ug7q_113,._headJoint_1ug7q_117,._hatJoint_1ug7q_121,._cloakJoint_1ug7q_125,._frogLegs_1ug7q_129{transform-box:view-box}._broomFrog_1ug7q_142{opacity:0}._frog_1ug7q_95{color:#86ba70}._spell_1ug7q_150{fill:#dab378}._mentorSpell_1ug7q_154{fill:#9cdabb}._scene_1ug7q_159[data-ready=false],._scene_1ug7q_159[data-ended=true]{visibility:hidden}._scene_1ug7q_159[data-stationary=true] ._witch_1ug7q_2:not(._mentor_1ug7q_10) ._broomFrog_1ug7q_142{opacity:1}._garland_14l3u_1{opacity:.75;pointer-events:none;block-size:40px;inline-size:100%;position:absolute;inset-block-start:0;inset-inline:0}._giftButton_14l3u_11._giftButton_14l3u_11{background:0 0;border:0;border-radius:20px;block-size:80px;inline-size:80px;padding:0}._giftButton_14l3u_11._giftButton_14l3u_11:focus-visible{outline:2px solid var(--text-primary,#161b2d);outline-offset:2px}._giftButton_14l3u_11._giftButton_14l3u_11 svg{block-size:100%;inline-size:100%;overflow:visible}._giftButton_14l3u_11._giftButton_14l3u_11:enabled:is(:hover,:focus-visible,:active){background:0 0}._giftButton_14l3u_11._giftButton_14l3u_11:enabled:is(:hover,:focus-visible,:active) ._giftLid_14l3u_31{transform:translateY(-5px)rotate(-3deg)}._giftLid_14l3u_31{transform-origin:50px 40px;transition:transform .3s}._particleLayer_14l3u_40{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}._particle_14l3u_40{left:var(--particle-x);inline-size:var(--particle-size);block-size:var(--particle-size);background:var(--particle-color);animation:_new-year-fall_14l3u_1 var(--particle-duration) linear var(--particle-delay) both;position:absolute;top:0}._snowflake_14l3u_59{border-radius:50%;box-shadow:0 0 3px #607e9240}._confetti_14l3u_64{block-size:calc(var(--particle-size) * 1.7);border-radius:1px}@keyframes _new-year-fall_14l3u_1{0%{opacity:0;transform:translateY(-10vh)rotate(0)}12%,84%{opacity:.85}to{opacity:0;transform:translate3d(var(--particle-drift), 108vh, 0) rotate(var(--particle-turn))}}@media (width>=1280px){._garland_14l3u_1{block-size:55px}._giftButton_14l3u_11._giftButton_14l3u_11{block-size:104px;inline-size:104px}}@media (prefers-reduced-motion:reduce){._giftLid_14l3u_31{transition:none}._giftButton_14l3u_11._giftButton_14l3u_11:enabled:is(:hover,:focus-visible,:active) ._giftLid_14l3u_31{transform:none}._particle_14l3u_40{top:var(--particle-rest-y);opacity:.65;animation:none}}
|
|
2
|
+
/*$vite$:1*/.pointer-events-none{pointer-events:none}.\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.-top-2{top:-.5rem}.-top-2\.5{top:-.625rem}.bottom-2{bottom:.5rem}.bottom-6{bottom:1.5rem}.end-0{inset-inline-end:0}.end-2{inset-inline-end:.5rem}.end-\[26\%\]{inset-inline-end:26%}.top-0{top:0}.top-1\/3{top:33.333333%}.top-\[48\%\]{top:48%}.z-\[1\]{z-index:1}.z-\[2\]{z-index:2}.z-\[3\]{z-index:3}.z-\[4\]{z-index:4}.z-\[70\]{z-index:70}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.size-0{height:0;width:0}.size-10{height:2.5rem;width:2.5rem}.size-32{height:8rem;width:8rem}.size-5{height:1.25rem;width:1.25rem}.size-full{height:100%;width:100%}.h-10{height:2.5rem}.h-28{height:7rem}.h-4{height:1rem}.h-9{height:2.25rem}.h-\[68px\]{height:68px}.w-28{width:7rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[100px\]{width:100px}.w-\[60px\]{width:60px}.w-auto{width:auto}.origin-bottom{transform-origin:bottom}.-scale-x-100,.scale-x-\[-1\]{--tw-scale-x:-1}.-scale-x-100,.scale-x-\[-1\],.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.overflow-hidden{overflow:hidden}.overflow-clip{overflow:clip}.overflow-visible{overflow:visible}.rounded{border-radius:4px}.border{border-width:1px}.border-2{border-width:2px}.bg-control-neutral-default{background-color:var(--bg-control-neutral-default,#acb3c3)}.stroke-tertiary{stroke:var(--stroke-tertiary,#e0e6f0)}.opacity-0{opacity:0}.opacity-40{opacity:.4}.outline{outline-style:solid;outline-width:1px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06))}.drop-shadow-md,.drop-shadow-sm{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,0,0,.05))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@media (min-width:1280px){.desktop\:bottom-4{bottom:1rem}.desktop\:end-4{inset-inline-end:1rem}.desktop\:size-52{height:13rem;width:13rem}.desktop\:h-11{height:2.75rem}.desktop\:w-36{width:9rem}}.rtl\:scale-x-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { CelebrationProvider, useCelebration, } from './context/CelebrationContext';
|
|
2
|
+
export { CelebrationDecor } from './components/CelebrationDecor/CelebrationDecor';
|
|
3
|
+
export { CELEBRATIONS_CLASS } from './constants/public-class-names';
|
|
4
|
+
export type { CelebrationAnchors, CelebrationContextValue, CelebrationDecorationProps, CelebrationEvent, CelebrationEventLoader, CelebrationEventSelection, CelebrationNotification, CelebrationProviderProps, CelebrationScene, CelebrationSecretTrigger, } from './models/celebration';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,cAAc,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,YAAY,EACV,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,sBAAsB,CAAC"}
|
package/index.js
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { i as e, t } from "./CelebrationEnvironmentContext-BxzY78Zg.js";
|
|
2
|
+
import { mergeClasses as n } from "@epam/ai-dial-chat-shared";
|
|
3
|
+
import { createContext as r, memo as i, useCallback as a, useContext as o, useEffect as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
4
|
+
import { createPortal as d } from "react-dom";
|
|
5
|
+
import { ErrorBoundary as f } from "react-error-boundary";
|
|
6
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
7
|
+
//#region src/utils/celebration.ts
|
|
8
|
+
var h = (e) => e.normalize("NFKC").toLowerCase().replace(/[^\p{L}\p{M}\p{N}]+/gu, " ").trim(), g = (e, t) => {
|
|
9
|
+
let n = h(e);
|
|
10
|
+
return n.length > 0 && t.some((e) => h(e) === n);
|
|
11
|
+
}, _ = (e, t) => {
|
|
12
|
+
let n = [...new Set(e)], r = n.length > 1 ? n.filter((e) => e !== t) : n;
|
|
13
|
+
return r[Math.floor(Math.random() * r.length)];
|
|
14
|
+
}, v = (e, t) => e.replace(/\{\{\s*phrase\s*\}\}/g, t), y = (e, t = {}) => {
|
|
15
|
+
let n = e.scenes.map(({ id: e }) => e), r = t.enabledScenes ? new Set(t.enabledScenes) : new Set(n), i = new Set(t.disabledScenes), a = new Set(n.filter((e) => r.has(e) && !i.has(e))), o = new Set(t.disabledDecorBehaviors), s = (e.secretTrigger?.sceneIds ?? []).filter((e) => a.has(e));
|
|
16
|
+
return {
|
|
17
|
+
enabledSceneIds: a,
|
|
18
|
+
clickSceneIds: e.clickSceneIds.filter((e) => a.has(e)),
|
|
19
|
+
secretSceneIds: s,
|
|
20
|
+
enabledDecorBehaviors: new Set((e.decorBehaviors ?? []).filter((e) => !o.has(e))),
|
|
21
|
+
isSecretEnabled: t.isSecretEnabled !== !1 && s.length > 0
|
|
22
|
+
};
|
|
23
|
+
}, b = r({
|
|
24
|
+
event: null,
|
|
25
|
+
isEnabled: !1,
|
|
26
|
+
celebrate: () => void 0,
|
|
27
|
+
activate: () => void 0,
|
|
28
|
+
consumeSecretPhrase: () => !1
|
|
29
|
+
}), x = {}, S = async (e) => {
|
|
30
|
+
let t = await e();
|
|
31
|
+
return "default" in t ? t.default : t;
|
|
32
|
+
}, C = ({ children: r, events: i, activeEventId: o, resetKey: h, labels: C, onNotify: w, isMobile: T = !1, anchors: E, selection: D, portalContainer: O }) => {
|
|
33
|
+
let [k, A] = u(null), [j, M] = u(null), N = l(0), P = l(void 0), F = l(void 0), I = o ? i[o] : void 0, L = l(I);
|
|
34
|
+
L.current = I;
|
|
35
|
+
let R = I !== void 0, z = l(w);
|
|
36
|
+
z.current = w;
|
|
37
|
+
let B = k?.event.id === o && k?.resetKey === h ? k.event : null;
|
|
38
|
+
s(() => {
|
|
39
|
+
let e = !1;
|
|
40
|
+
A(null), M(null), P.current = void 0, F.current = void 0;
|
|
41
|
+
let t = L.current;
|
|
42
|
+
return o && t && (async () => {
|
|
43
|
+
try {
|
|
44
|
+
let n = await S(t);
|
|
45
|
+
!e && n.id === o && A({
|
|
46
|
+
event: n,
|
|
47
|
+
resetKey: h
|
|
48
|
+
});
|
|
49
|
+
} catch {}
|
|
50
|
+
})(), () => {
|
|
51
|
+
e = !0;
|
|
52
|
+
};
|
|
53
|
+
}, [
|
|
54
|
+
o,
|
|
55
|
+
R,
|
|
56
|
+
h
|
|
57
|
+
]), s(() => {
|
|
58
|
+
if (!j) return;
|
|
59
|
+
let e = window.setTimeout(() => M(null), j.scene.durationMs);
|
|
60
|
+
return () => window.clearTimeout(e);
|
|
61
|
+
}, [j]);
|
|
62
|
+
let V = B ? D?.[B.id] : void 0, H = c(() => B ? y(B, V) : null, [B, V]), U = B ? C?.[B.id] : void 0, W = c(() => B ? {
|
|
63
|
+
...B.labels,
|
|
64
|
+
...Object.fromEntries(Object.entries(U ?? {}).filter((e) => e[1] !== void 0))
|
|
65
|
+
} : x, [B, U]), G = a((e) => {
|
|
66
|
+
let t = B?.scenes.find((t) => t.id === e);
|
|
67
|
+
if (!B || !t || !H?.enabledSceneIds.has(e)) return;
|
|
68
|
+
M({
|
|
69
|
+
scene: t,
|
|
70
|
+
event: B,
|
|
71
|
+
resetKey: h,
|
|
72
|
+
token: ++N.current
|
|
73
|
+
});
|
|
74
|
+
let n = H.isSecretEnabled ? B.secretTrigger?.hintPhrase ?? "" : "";
|
|
75
|
+
z.current?.({
|
|
76
|
+
title: W[B.titleLabelId] ?? "",
|
|
77
|
+
message: v(W[t.labelId] ?? "", n)
|
|
78
|
+
});
|
|
79
|
+
}, [
|
|
80
|
+
B,
|
|
81
|
+
H,
|
|
82
|
+
h,
|
|
83
|
+
W
|
|
84
|
+
]), K = a(() => {
|
|
85
|
+
if (!H) return;
|
|
86
|
+
let e = _(H.clickSceneIds, P.current);
|
|
87
|
+
e !== void 0 && (P.current = e, G(e));
|
|
88
|
+
}, [H, G]), q = a((e) => {
|
|
89
|
+
let t = B?.secretTrigger;
|
|
90
|
+
if (!t || !H?.isSecretEnabled || !g(e, t.phrases)) return !1;
|
|
91
|
+
let n = _(H.secretSceneIds, F.current);
|
|
92
|
+
return n === void 0 ? !1 : (F.current = n, G(n), !0);
|
|
93
|
+
}, [
|
|
94
|
+
B,
|
|
95
|
+
H,
|
|
96
|
+
G
|
|
97
|
+
]), J = c(() => ({
|
|
98
|
+
event: B,
|
|
99
|
+
isEnabled: B !== null,
|
|
100
|
+
celebrate: G,
|
|
101
|
+
activate: K,
|
|
102
|
+
consumeSecretPhrase: q
|
|
103
|
+
}), [
|
|
104
|
+
B,
|
|
105
|
+
G,
|
|
106
|
+
K,
|
|
107
|
+
q
|
|
108
|
+
]), Y = c(() => ({
|
|
109
|
+
isMobile: T,
|
|
110
|
+
anchors: E ?? {},
|
|
111
|
+
labels: W,
|
|
112
|
+
isDecorBehaviorEnabled: (e) => H?.enabledDecorBehaviors.has(e) ?? !0
|
|
113
|
+
}), [
|
|
114
|
+
T,
|
|
115
|
+
E,
|
|
116
|
+
W,
|
|
117
|
+
H
|
|
118
|
+
]), X = j?.scene.Component, Z = O ?? (typeof document > "u" ? void 0 : document.body);
|
|
119
|
+
return /* @__PURE__ */ p(b.Provider, {
|
|
120
|
+
value: J,
|
|
121
|
+
children: /* @__PURE__ */ m(t.Provider, {
|
|
122
|
+
value: Y,
|
|
123
|
+
children: [r, B && j?.event === B && j.resetKey === h && X && Z && d(/* @__PURE__ */ p(f, {
|
|
124
|
+
fallback: null,
|
|
125
|
+
children: /* @__PURE__ */ p("div", {
|
|
126
|
+
"aria-hidden": "true",
|
|
127
|
+
className: n("pointer-events-none fixed inset-0 z-[70] select-none overflow-hidden", e.sceneLayer),
|
|
128
|
+
children: /* @__PURE__ */ p(X, {})
|
|
129
|
+
})
|
|
130
|
+
}, j.token), Z)]
|
|
131
|
+
})
|
|
132
|
+
});
|
|
133
|
+
}, w = () => o(b), T = i(() => {
|
|
134
|
+
let { event: t, activate: r } = w();
|
|
135
|
+
if (!t) return null;
|
|
136
|
+
let i = t.Decoration;
|
|
137
|
+
return /* @__PURE__ */ p(f, {
|
|
138
|
+
fallback: null,
|
|
139
|
+
children: /* @__PURE__ */ p("div", {
|
|
140
|
+
className: n("contents", e.decor),
|
|
141
|
+
children: /* @__PURE__ */ p(i, { onActivate: r })
|
|
142
|
+
})
|
|
143
|
+
}, t.id);
|
|
144
|
+
});
|
|
145
|
+
//#endregion
|
|
146
|
+
export { e as CELEBRATIONS_CLASS, T as CelebrationDecor, C as CelebrationProvider, w as useCelebration };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
/** Props the runtime passes to an event's decoration. */
|
|
3
|
+
export interface CelebrationDecorationProps {
|
|
4
|
+
/** Plays a random enabled click scene of the event. */
|
|
5
|
+
onActivate: () => void;
|
|
6
|
+
}
|
|
7
|
+
/** One scene of an event; its deadline includes all delayed departures. */
|
|
8
|
+
export interface CelebrationScene {
|
|
9
|
+
/** Stable scene id, unique within its event. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Artwork rendered in the viewport layer while the scene plays. */
|
|
12
|
+
Component: ComponentType;
|
|
13
|
+
/** How long the scene stays mounted, in milliseconds. */
|
|
14
|
+
durationMs: number;
|
|
15
|
+
/** Key of the scene's notification message in the event's labels. */
|
|
16
|
+
labelId: string;
|
|
17
|
+
}
|
|
18
|
+
/** A phrase that plays one of the event's scenes instead of being sent. */
|
|
19
|
+
export interface CelebrationSecretTrigger {
|
|
20
|
+
/** Phrases that match the whole composer text, ignoring case and punctuation. */
|
|
21
|
+
phrases: readonly string[];
|
|
22
|
+
/** Phrase interpolated into notifications as `{{phrase}}`. */
|
|
23
|
+
hintPhrase: string;
|
|
24
|
+
/** Scenes the phrase may play. */
|
|
25
|
+
sceneIds: readonly string[];
|
|
26
|
+
}
|
|
27
|
+
/** A compiled celebration event, loaded only when a host selects it. */
|
|
28
|
+
export interface CelebrationEvent {
|
|
29
|
+
/** Stable event id, such as `halloween`. */
|
|
30
|
+
id: string;
|
|
31
|
+
/** Icon a host may show instead of its own logo while the event is active. */
|
|
32
|
+
iconUrl?: string;
|
|
33
|
+
/** Start-page decoration with the event's trigger. */
|
|
34
|
+
Decoration: ComponentType<CelebrationDecorationProps>;
|
|
35
|
+
/** Every scene the event can play. */
|
|
36
|
+
scenes: readonly CelebrationScene[];
|
|
37
|
+
/** Scenes a trigger click chooses from. */
|
|
38
|
+
clickSceneIds: readonly string[];
|
|
39
|
+
/** English default labels keyed by label id. */
|
|
40
|
+
labels: Readonly<Record<string, string>>;
|
|
41
|
+
/** Key of the notification title in `labels`. */
|
|
42
|
+
titleLabelId: string;
|
|
43
|
+
/** Decoration behaviors a host may switch off one by one. */
|
|
44
|
+
decorBehaviors?: readonly string[];
|
|
45
|
+
/** Optional secret phrase handled by `consumeSecretPhrase`. */
|
|
46
|
+
secretTrigger?: CelebrationSecretTrigger;
|
|
47
|
+
}
|
|
48
|
+
/** Loads an event module; resolves to the module or the event itself. */
|
|
49
|
+
export type CelebrationEventLoader = () => Promise<{
|
|
50
|
+
default: CelebrationEvent;
|
|
51
|
+
} | CelebrationEvent>;
|
|
52
|
+
/** The notification a played scene asks the host to show. */
|
|
53
|
+
export interface CelebrationNotification {
|
|
54
|
+
/** Notification title, from the event's title label. */
|
|
55
|
+
title: string;
|
|
56
|
+
/** Scene message with `{{phrase}}` already replaced. */
|
|
57
|
+
message: string;
|
|
58
|
+
}
|
|
59
|
+
/** Host DOM hooks that interface-borrowing scenes may measure. */
|
|
60
|
+
export interface CelebrationAnchors {
|
|
61
|
+
/** Class name of the composer wrapper. */
|
|
62
|
+
composer?: string;
|
|
63
|
+
/** Class name of the composer's add/attach cluster. */
|
|
64
|
+
composerAddCluster?: string;
|
|
65
|
+
/** Class name of the composer's model selector button. */
|
|
66
|
+
composerModelSelector?: string;
|
|
67
|
+
/** Class name of the starter prompts list. */
|
|
68
|
+
starterList?: string;
|
|
69
|
+
/** Class name of the conversation-history container. */
|
|
70
|
+
historyContainer?: string;
|
|
71
|
+
/** Selector of a conversation link inside the history; its list item is the row. */
|
|
72
|
+
historyRowLink?: string;
|
|
73
|
+
/** Selector of the start-page region around the composer. Default: its closest `[role="region"]`. */
|
|
74
|
+
welcomeRegion?: string;
|
|
75
|
+
}
|
|
76
|
+
/** Which scenes and decoration behaviors of one event a host allows. */
|
|
77
|
+
export interface CelebrationEventSelection {
|
|
78
|
+
/** When set, only these scenes may play. */
|
|
79
|
+
enabledScenes?: readonly string[];
|
|
80
|
+
/** Scenes that never play. */
|
|
81
|
+
disabledScenes?: readonly string[];
|
|
82
|
+
/** Decoration behaviors that never start. */
|
|
83
|
+
disabledDecorBehaviors?: readonly string[];
|
|
84
|
+
/** Whether the secret phrase is handled. Default: `true`. */
|
|
85
|
+
isSecretEnabled?: boolean;
|
|
86
|
+
}
|
|
87
|
+
/** Props of `CelebrationProvider`; every host concern arrives here. */
|
|
88
|
+
export interface CelebrationProviderProps {
|
|
89
|
+
/** Children rendered inside the provider. */
|
|
90
|
+
children: ReactNode;
|
|
91
|
+
/** Event loaders keyed by event id. */
|
|
92
|
+
events: Readonly<Record<string, CelebrationEventLoader>>;
|
|
93
|
+
/** Event to show, or `null` for none. */
|
|
94
|
+
activeEventId: string | null;
|
|
95
|
+
/** Any value whose change cancels the active scene and reloads the event. */
|
|
96
|
+
resetKey?: unknown;
|
|
97
|
+
/** Label overrides keyed by event id, merged over the event's defaults; `undefined` keeps a default. */
|
|
98
|
+
labels?: Readonly<Record<string, Readonly<Record<string, string | undefined>>>>;
|
|
99
|
+
/** Called once per played scene with its resolved notification. */
|
|
100
|
+
onNotify?: (notification: CelebrationNotification) => void;
|
|
101
|
+
/** Whether the host currently uses its mobile layout. Default: `false`. */
|
|
102
|
+
isMobile?: boolean;
|
|
103
|
+
/** Host DOM hooks for interface-borrowing scenes. */
|
|
104
|
+
anchors?: CelebrationAnchors;
|
|
105
|
+
/** Per-event scene and decoration selection keyed by event id. */
|
|
106
|
+
selection?: Readonly<Record<string, CelebrationEventSelection>>;
|
|
107
|
+
/** Element scenes render into. Default: `document.body`. */
|
|
108
|
+
portalContainer?: Element;
|
|
109
|
+
}
|
|
110
|
+
/** What `useCelebration` returns. */
|
|
111
|
+
export interface CelebrationContextValue {
|
|
112
|
+
/** The loaded, selected event, or `null`. */
|
|
113
|
+
event: CelebrationEvent | null;
|
|
114
|
+
/** Whether an event is loaded and shown. */
|
|
115
|
+
isEnabled: boolean;
|
|
116
|
+
/** Plays the scene with this id when it exists and is enabled. */
|
|
117
|
+
celebrate: (sceneId: string) => void;
|
|
118
|
+
/** Plays a random enabled click scene. */
|
|
119
|
+
activate: () => void;
|
|
120
|
+
/** Plays a secret scene when the text matches the event's phrase; returns whether it did. */
|
|
121
|
+
consumeSecretPhrase: (text: string) => boolean;
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=celebration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"celebration.d.ts","sourceRoot":"","sources":["../../src/models/celebration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,yDAAyD;AACzD,MAAM,WAAW,0BAA0B;IACzC,uDAAuD;IACvD,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,2EAA2E;AAC3E,MAAM,WAAW,gBAAgB;IAC/B,gDAAgD;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,oEAAoE;IACpE,SAAS,EAAE,aAAa,CAAC;IACzB,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,2EAA2E;AAC3E,MAAM,WAAW,wBAAwB;IACvC,iFAAiF;IACjF,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7B;AAED,wEAAwE;AACxE,MAAM,WAAW,gBAAgB;IAC/B,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,UAAU,EAAE,aAAa,CAAC,0BAA0B,CAAC,CAAC;IACtD,sCAAsC;IACtC,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACpC,2CAA2C;IAC3C,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,gDAAgD;IAChD,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,iDAAiD;IACjD,YAAY,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,+DAA+D;IAC/D,aAAa,CAAC,EAAE,wBAAwB,CAAC;CAC1C;AAED,yEAAyE;AACzE,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,CAChD;IAAE,OAAO,EAAE,gBAAgB,CAAA;CAAE,GAAG,gBAAgB,CACjD,CAAC;AAEF,6DAA6D;AAC7D,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,kEAAkE;AAClE,MAAM,WAAW,kBAAkB;IACjC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0DAA0D;IAC1D,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qGAAqG;IACrG,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wEAAwE;AACxE,MAAM,WAAW,yBAAyB;IACxC,4CAA4C;IAC5C,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,8BAA8B;IAC9B,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,6CAA6C;IAC7C,sBAAsB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,6DAA6D;IAC7D,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,uEAAuE;AACvE,MAAM,WAAW,wBAAwB;IACvC,6CAA6C;IAC7C,QAAQ,EAAE,SAAS,CAAC;IACpB,uCAAuC;IACvC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC,CAAC;IACzD,yCAAyC;IACzC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wGAAwG;IACxG,MAAM,CAAC,EAAE,QAAQ,CACf,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAC7D,CAAC;IACF,mEAAmE;IACnE,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAC3D,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qDAAqD;IACrD,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,kEAAkE;IAClE,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC,CAAC;IAChE,4DAA4D;IAC5D,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,qCAAqC;AACrC,MAAM,WAAW,uBAAuB;IACtC,6CAA6C;IAC7C,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC/B,4CAA4C;IAC5C,SAAS,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,6FAA6F;IAC7F,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;CAChD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewYearDecor.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYear/NewYearDecor.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;;AA+H9E,wBAAkC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { NewYearScene } from './types';
|
|
3
|
+
interface Props {
|
|
4
|
+
scene: NewYearScene.Snow | NewYearScene.Confetti;
|
|
5
|
+
}
|
|
6
|
+
export declare const NewYearSnow: FC;
|
|
7
|
+
export declare const NewYearConfetti: FC;
|
|
8
|
+
declare const _default: import('react').NamedExoticComponent<Props>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=NewYearParticles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewYearParticles.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYear/NewYearParticles.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,UAAU,KAAK;IACb,KAAK,EAAE,YAAY,CAAC,IAAI,GAAG,YAAY,CAAC,QAAQ,CAAC;CAClD;AAwBD,eAAO,MAAM,WAAW,EAAE,EAEzB,CAAC;AACF,eAAO,MAAM,eAAe,EAAE,EAE7B,CAAC;;AAEF,wBAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewYearSleigh.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYear/NewYearSleigh.tsx"],"names":[],"mappings":";AA0FA,wBAAmC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { NewYearScene } from './types';
|
|
3
|
+
/** Scatter short-lived particles once per scene, keeping a static reduced-motion layout. */
|
|
4
|
+
export declare const buildNewYearParticles: (scene: NewYearScene.Snow | NewYearScene.Confetti, isMobile: boolean) => CSSProperties[];
|
|
5
|
+
//# sourceMappingURL=particles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"particles.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYear/particles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,4FAA4F;AAC5F,eAAO,MAAM,qBAAqB,GAChC,OAAO,YAAY,CAAC,IAAI,GAAG,YAAY,CAAC,QAAQ,EAChD,UAAU,OAAO,KAChB,aAAa,EAmBf,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Every New Year scene; hosts enable or disable them by these ids. */
|
|
2
|
+
export declare enum NewYearScene {
|
|
3
|
+
/** Snowflakes drift down the viewport. */
|
|
4
|
+
Snow = "snow",
|
|
5
|
+
/** A confetti burst; also the secret-phrase scene. */
|
|
6
|
+
Confetti = "confetti",
|
|
7
|
+
/** A flying sleigh crosses the sky. */
|
|
8
|
+
Sleigh = "sleigh"
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYear/types.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,oBAAY,YAAY;IACtB,0CAA0C;IAC1C,IAAI,SAAS;IACb,sDAAsD;IACtD,QAAQ,aAAa;IACrB,uCAAuC;IACvC,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../src/new-year/constants/labels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,iDAAiD;AACjD,eAAO,MAAM,eAAe,EAAE,aAS7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/new-year/event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAW9D,sCAAsC;AACtC,eAAO,MAAM,YAAY,EAAE,gBAgC1B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { newYearEvent } from './event';
|
|
2
|
+
export { newYearEvent } from './event';
|
|
3
|
+
export { NEW_YEAR_LABELS } from './constants/labels';
|
|
4
|
+
export type { NewYearLabels } from './models/labels';
|
|
5
|
+
export { NewYearScene } from './components/NewYear/types';
|
|
6
|
+
export default newYearEvent;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/new-year/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Visible text of the New Year event; `{{phrase}}` becomes the secret hint. */
|
|
2
|
+
export interface NewYearLabels {
|
|
3
|
+
/** Title of every scene notification. */
|
|
4
|
+
toastTitle: string;
|
|
5
|
+
/** Notification message of the snow scene. */
|
|
6
|
+
snowToastMessage: string;
|
|
7
|
+
/** Notification message of the confetti scene. */
|
|
8
|
+
confettiToastMessage: string;
|
|
9
|
+
/** Notification message of the sleigh scene. */
|
|
10
|
+
sleighToastMessage: string;
|
|
11
|
+
/** Accessible name of the gift trigger. */
|
|
12
|
+
giftLabel: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=labels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../src/new-year/models/labels.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,WAAW,aAAa;IAC5B,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,gBAAgB,EAAE,MAAM,CAAC;IACzB,kDAAkD;IAClD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gDAAgD;IAChD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;CACnB"}
|