react-motion-modal 1.2.1 → 1.2.3
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 +15 -0
- package/dist/index.d.ts +156 -5
- package/dist/index.js +455 -452
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-font-weight:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-semibold:600;--radius-md:.375rem;--radius-xl:.75rem;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.right-0{right:calc(var(--spacing)*0)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mt-4{margin-top:calc(var(--spacing)*4)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.flex{display:flex}.max-h-screen{max-height:100vh}.max-w-screen{max-width:100vw}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-white{background-color:var(--color-white)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-all{word-break:break-all}.text-blue-500{color:var(--color-blue-500)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\\:opacity-80:hover{opacity:.8}}@media (min-width:64rem){.lg\\:left-1\\/2{left:50%}.lg\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import * as
|
|
3
|
-
import fe, { createContext as Ot, useRef as ut, useLayoutEffect as _o, useEffect as Re, useId as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-semibold:600;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.right-0{right:calc(var(--spacing)*0)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-4{margin-top:calc(var(--spacing)*4)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.flex{display:flex}.max-h-screen{max-height:100vh}.max-w-screen{max-width:100vw}.max-w-sm{max-width:var(--container-sm)}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.bg-black{background-color:var(--color-black)}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-white{background-color:var(--color-white)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.py-10{padding-block:calc(var(--spacing)*10)}.text-center{text-align:center}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-all{word-break:break-all}.text-blue-500{color:var(--color-blue-500)}.text-gray-600{color:var(--color-gray-600)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.blur{--tw-blur:blur(8px);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,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (hover:hover){.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\\:text-gray-800:hover{color:var(--color-gray-800)}.hover\\:opacity-80:hover{opacity:.8}}@media (min-width:64rem){.lg\\:left-1\\/2{left:50%}.lg\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import * as Dn from "react";
|
|
3
|
+
import fe, { createContext as Ot, useRef as ut, useLayoutEffect as _o, useEffect as Re, useId as Rn, useContext as G, useInsertionEffect as Ui, useMemo as At, useCallback as zi, Children as Bo, isValidElement as Oo, useState as gs, Fragment as $i, createElement as Fo, forwardRef as jo, Component as No } from "react";
|
|
4
4
|
import { jsx as Q, Fragment as Uo, jsxs as Gi } from "react/jsx-runtime";
|
|
5
5
|
import { createPortal as zo } from "react-dom";
|
|
6
6
|
const pe = {
|
|
@@ -23,17 +23,17 @@ function Wo() {
|
|
|
23
23
|
}
|
|
24
24
|
return Fe(Go);
|
|
25
25
|
}
|
|
26
|
-
const Ho = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
26
|
+
const Ho = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ys = { randomUUID: Ho };
|
|
27
27
|
function Xo(t, e, n) {
|
|
28
|
-
if (
|
|
29
|
-
return
|
|
28
|
+
if (ys.randomUUID && !t)
|
|
29
|
+
return ys.randomUUID();
|
|
30
30
|
t = t || {};
|
|
31
31
|
const s = t.random ?? t.rng?.() ?? Wo();
|
|
32
32
|
if (s.length < 16)
|
|
33
33
|
throw new Error("Random bytes length must be >= 16");
|
|
34
34
|
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, $o(s);
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const bs = (t) => {
|
|
37
37
|
let e;
|
|
38
38
|
const n = /* @__PURE__ */ new Set(), s = (u, c) => {
|
|
39
39
|
const f = typeof u == "function" ? u(e) : u;
|
|
@@ -43,7 +43,7 @@ const gs = (t) => {
|
|
|
43
43
|
}
|
|
44
44
|
}, i = () => e, a = { setState: s, getState: i, getInitialState: () => l, subscribe: (u) => (n.add(u), () => n.delete(u)) }, l = e = t(s, i, a);
|
|
45
45
|
return a;
|
|
46
|
-
}, Yo = (t) => t ?
|
|
46
|
+
}, Yo = (t) => t ? bs(t) : bs, qo = (t) => t;
|
|
47
47
|
function Zo(t, e = qo) {
|
|
48
48
|
const n = fe.useSyncExternalStore(
|
|
49
49
|
t.subscribe,
|
|
@@ -52,10 +52,10 @@ function Zo(t, e = qo) {
|
|
|
52
52
|
);
|
|
53
53
|
return fe.useDebugValue(n), n;
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const vs = (t) => {
|
|
56
56
|
const e = Yo(t), n = (s) => Zo(e, s);
|
|
57
57
|
return Object.assign(n, e), n;
|
|
58
|
-
}, Jo = (t) => t ?
|
|
58
|
+
}, Jo = (t) => t ? vs(t) : vs, ke = Jo((t, e) => ({
|
|
59
59
|
modals: [],
|
|
60
60
|
openModal(n, s) {
|
|
61
61
|
const o = {
|
|
@@ -98,35 +98,35 @@ function Wi(t) {
|
|
|
98
98
|
} else for (n in t) t[n] && (s && (s += " "), s += n);
|
|
99
99
|
return s;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function je() {
|
|
102
102
|
for (var t, e, n = 0, s = "", i = arguments.length; n < i; n++) (t = arguments[n]) && (e = Wi(t)) && (s && (s += " "), s += e);
|
|
103
103
|
return s;
|
|
104
104
|
}
|
|
105
|
-
const
|
|
106
|
-
function
|
|
105
|
+
const Ln = Ot({});
|
|
106
|
+
function Kn(t) {
|
|
107
107
|
const e = ut(null);
|
|
108
108
|
return e.current === null && (e.current = t()), e.current;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
function
|
|
110
|
+
const In = typeof window < "u", Hi = In ? _o : Re, Le = /* @__PURE__ */ Ot(null);
|
|
111
|
+
function _n(t, e) {
|
|
112
112
|
t.indexOf(e) === -1 && t.push(e);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Bn(t, e) {
|
|
115
115
|
const n = t.indexOf(e);
|
|
116
116
|
n > -1 && t.splice(n, 1);
|
|
117
117
|
}
|
|
118
118
|
const dt = (t, e, n) => n > e ? e : n < t ? t : n;
|
|
119
|
-
function
|
|
119
|
+
function on(t, e) {
|
|
120
120
|
return e ? `${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}` : t;
|
|
121
121
|
}
|
|
122
122
|
let Ft = () => {
|
|
123
123
|
}, ht = () => {
|
|
124
124
|
};
|
|
125
125
|
process.env.NODE_ENV !== "production" && (Ft = (t, e, n) => {
|
|
126
|
-
!t && typeof console < "u" && console.warn(
|
|
126
|
+
!t && typeof console < "u" && console.warn(on(e, n));
|
|
127
127
|
}, ht = (t, e, n) => {
|
|
128
128
|
if (!t)
|
|
129
|
-
throw new Error(
|
|
129
|
+
throw new Error(on(e, n));
|
|
130
130
|
});
|
|
131
131
|
const ft = {}, Xi = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
|
|
132
132
|
function Yi(t) {
|
|
@@ -134,7 +134,7 @@ function Yi(t) {
|
|
|
134
134
|
}
|
|
135
135
|
const qi = (t) => /^0[^.\s]+$/u.test(t);
|
|
136
136
|
// @__NO_SIDE_EFFECTS__
|
|
137
|
-
function
|
|
137
|
+
function On(t) {
|
|
138
138
|
let e;
|
|
139
139
|
return () => (e === void 0 && (e = t()), e);
|
|
140
140
|
}
|
|
@@ -142,12 +142,12 @@ const st = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Qo = (t, e) => (n) => e(t(n)), i
|
|
|
142
142
|
const s = e - t;
|
|
143
143
|
return s === 0 ? 1 : (n - t) / s;
|
|
144
144
|
};
|
|
145
|
-
class
|
|
145
|
+
class Fn {
|
|
146
146
|
constructor() {
|
|
147
147
|
this.subscriptions = [];
|
|
148
148
|
}
|
|
149
149
|
add(e) {
|
|
150
|
-
return
|
|
150
|
+
return _n(this.subscriptions, e), () => Bn(this.subscriptions, e);
|
|
151
151
|
}
|
|
152
152
|
notify(e, n, s) {
|
|
153
153
|
const i = this.subscriptions.length;
|
|
@@ -171,9 +171,9 @@ const rt = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, ot = /* @__NO_SIDE_EFFECTS
|
|
|
171
171
|
function Zi(t, e) {
|
|
172
172
|
return e ? t * (1e3 / e) : 0;
|
|
173
173
|
}
|
|
174
|
-
const
|
|
175
|
-
function
|
|
176
|
-
t ||
|
|
174
|
+
const xs = /* @__PURE__ */ new Set();
|
|
175
|
+
function jn(t, e, n) {
|
|
176
|
+
t || xs.has(e) || (console.warn(on(e, n)), xs.add(e));
|
|
177
177
|
}
|
|
178
178
|
const Ji = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, ta = 1e-7, ea = 12;
|
|
179
179
|
function na(t, e, n, s, i) {
|
|
@@ -189,25 +189,25 @@ function re(t, e, n, s) {
|
|
|
189
189
|
const i = (o) => na(o, 0, 1, t, n);
|
|
190
190
|
return (o) => o === 0 || o === 1 ? o : Ji(i(o), e, s);
|
|
191
191
|
}
|
|
192
|
-
const Qi = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, tr = (t) => (e) => 1 - t(1 - e), er = /* @__PURE__ */ re(0.33, 1.53, 0.69, 0.99),
|
|
192
|
+
const Qi = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, tr = (t) => (e) => 1 - t(1 - e), er = /* @__PURE__ */ re(0.33, 1.53, 0.69, 0.99), Nn = /* @__PURE__ */ tr(er), nr = /* @__PURE__ */ Qi(Nn), sr = (t) => (t *= 2) < 1 ? 0.5 * Nn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Un = (t) => 1 - Math.sin(Math.acos(t)), ir = tr(Un), rr = Qi(Un), sa = /* @__PURE__ */ re(0.42, 0, 1, 1), ia = /* @__PURE__ */ re(0, 0, 0.58, 1), or = /* @__PURE__ */ re(0.42, 0, 0.58, 1), ra = (t) => Array.isArray(t) && typeof t[0] != "number", ar = (t) => Array.isArray(t) && typeof t[0] == "number", ws = {
|
|
193
193
|
linear: st,
|
|
194
194
|
easeIn: sa,
|
|
195
195
|
easeInOut: or,
|
|
196
196
|
easeOut: ia,
|
|
197
|
-
circIn:
|
|
197
|
+
circIn: Un,
|
|
198
198
|
circInOut: rr,
|
|
199
199
|
circOut: ir,
|
|
200
|
-
backIn:
|
|
200
|
+
backIn: Nn,
|
|
201
201
|
backInOut: nr,
|
|
202
202
|
backOut: er,
|
|
203
203
|
anticipate: sr
|
|
204
|
-
}, oa = (t) => typeof t == "string",
|
|
204
|
+
}, oa = (t) => typeof t == "string", Ts = (t) => {
|
|
205
205
|
if (ar(t)) {
|
|
206
206
|
ht(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
207
207
|
const [e, n, s, i] = t;
|
|
208
208
|
return re(e, n, s, i);
|
|
209
209
|
} else if (oa(t))
|
|
210
|
-
return ht(
|
|
210
|
+
return ht(ws[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), ws[t];
|
|
211
211
|
return t;
|
|
212
212
|
}, me = [
|
|
213
213
|
"setup",
|
|
@@ -286,7 +286,7 @@ function lr(t, e) {
|
|
|
286
286
|
r[me[p]].cancel(d);
|
|
287
287
|
}, state: i, steps: r };
|
|
288
288
|
}
|
|
289
|
-
const { schedule: K, cancel: yt, state: $, steps:
|
|
289
|
+
const { schedule: K, cancel: yt, state: $, steps: Ne } = /* @__PURE__ */ lr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : st, !0);
|
|
290
290
|
let we;
|
|
291
291
|
function ca() {
|
|
292
292
|
we = void 0;
|
|
@@ -296,7 +296,7 @@ const Y = {
|
|
|
296
296
|
set: (t) => {
|
|
297
297
|
we = t, queueMicrotask(ca);
|
|
298
298
|
}
|
|
299
|
-
}, cr = (t) => (e) => typeof e == "string" && e.startsWith(t),
|
|
299
|
+
}, cr = (t) => (e) => typeof e == "string" && e.startsWith(t), zn = /* @__PURE__ */ cr("--"), ua = /* @__PURE__ */ cr("var(--"), $n = (t) => ua(t) ? da.test(t.split("/*")[0].trim()) : !1, da = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, jt = {
|
|
300
300
|
test: (t) => typeof t == "number",
|
|
301
301
|
parse: parseFloat,
|
|
302
302
|
transform: (t) => t
|
|
@@ -306,27 +306,27 @@ const Y = {
|
|
|
306
306
|
}, ge = {
|
|
307
307
|
...jt,
|
|
308
308
|
default: 1
|
|
309
|
-
}, Xt = (t) => Math.round(t * 1e5) / 1e5,
|
|
309
|
+
}, Xt = (t) => Math.round(t * 1e5) / 1e5, Gn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
310
310
|
function ha(t) {
|
|
311
311
|
return t == null;
|
|
312
312
|
}
|
|
313
|
-
const fa = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,
|
|
313
|
+
const fa = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Wn = (t, e) => (n) => !!(typeof n == "string" && fa.test(n) && n.startsWith(t) || e && !ha(n) && Object.prototype.hasOwnProperty.call(n, e)), ur = (t, e, n) => (s) => {
|
|
314
314
|
if (typeof s != "string")
|
|
315
315
|
return s;
|
|
316
|
-
const [i, o, r, a] = s.match(
|
|
316
|
+
const [i, o, r, a] = s.match(Gn);
|
|
317
317
|
return {
|
|
318
318
|
[t]: parseFloat(i),
|
|
319
319
|
[e]: parseFloat(o),
|
|
320
320
|
[n]: parseFloat(r),
|
|
321
321
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
322
322
|
};
|
|
323
|
-
}, pa = (t) => dt(0, 255, t),
|
|
323
|
+
}, pa = (t) => dt(0, 255, t), Ue = {
|
|
324
324
|
...jt,
|
|
325
325
|
transform: (t) => Math.round(pa(t))
|
|
326
326
|
}, Ct = {
|
|
327
|
-
test: /* @__PURE__ */
|
|
327
|
+
test: /* @__PURE__ */ Wn("rgb", "red"),
|
|
328
328
|
parse: /* @__PURE__ */ ur("red", "green", "blue"),
|
|
329
|
-
transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" +
|
|
329
|
+
transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + Ue.transform(t) + ", " + Ue.transform(e) + ", " + Ue.transform(n) + ", " + Xt(Qt.transform(s)) + ")"
|
|
330
330
|
};
|
|
331
331
|
function ma(t) {
|
|
332
332
|
let e = "", n = "", s = "", i = "";
|
|
@@ -337,25 +337,25 @@ function ma(t) {
|
|
|
337
337
|
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
const
|
|
341
|
-
test: /* @__PURE__ */
|
|
340
|
+
const an = {
|
|
341
|
+
test: /* @__PURE__ */ Wn("#"),
|
|
342
342
|
parse: ma,
|
|
343
343
|
transform: Ct.transform
|
|
344
344
|
}, oe = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
|
|
345
345
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
346
346
|
parse: parseFloat,
|
|
347
347
|
transform: (e) => `${e}${t}`
|
|
348
|
-
}), gt = /* @__PURE__ */ oe("deg"), at = /* @__PURE__ */ oe("%"), M = /* @__PURE__ */ oe("px"), ga = /* @__PURE__ */ oe("vh"), ya = /* @__PURE__ */ oe("vw"),
|
|
348
|
+
}), gt = /* @__PURE__ */ oe("deg"), at = /* @__PURE__ */ oe("%"), M = /* @__PURE__ */ oe("px"), ga = /* @__PURE__ */ oe("vh"), ya = /* @__PURE__ */ oe("vw"), Cs = {
|
|
349
349
|
...at,
|
|
350
350
|
parse: (t) => at.parse(t) / 100,
|
|
351
351
|
transform: (t) => at.transform(t * 100)
|
|
352
352
|
}, Vt = {
|
|
353
|
-
test: /* @__PURE__ */
|
|
353
|
+
test: /* @__PURE__ */ Wn("hsl", "hue"),
|
|
354
354
|
parse: /* @__PURE__ */ ur("hue", "saturation", "lightness"),
|
|
355
355
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + at.transform(Xt(e)) + ", " + at.transform(Xt(n)) + ", " + Xt(Qt.transform(s)) + ")"
|
|
356
356
|
}, F = {
|
|
357
|
-
test: (t) => Ct.test(t) ||
|
|
358
|
-
parse: (t) => Ct.test(t) ? Ct.parse(t) : Vt.test(t) ? Vt.parse(t) :
|
|
357
|
+
test: (t) => Ct.test(t) || an.test(t) || Vt.test(t),
|
|
358
|
+
parse: (t) => Ct.test(t) ? Ct.parse(t) : Vt.test(t) ? Vt.parse(t) : an.parse(t),
|
|
359
359
|
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Ct.transform(t) : Vt.transform(t),
|
|
360
360
|
getAnimatableNone: (t) => {
|
|
361
361
|
const e = F.parse(t);
|
|
@@ -363,9 +363,9 @@ const rn = {
|
|
|
363
363
|
}
|
|
364
364
|
}, ba = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
365
365
|
function va(t) {
|
|
366
|
-
return isNaN(t) && typeof t == "string" && (t.match(
|
|
366
|
+
return isNaN(t) && typeof t == "string" && (t.match(Gn)?.length || 0) + (t.match(ba)?.length || 0) > 0;
|
|
367
367
|
}
|
|
368
|
-
const dr = "number", hr = "color", xa = "var", wa = "var(",
|
|
368
|
+
const dr = "number", hr = "color", xa = "var", wa = "var(", Ps = "${}", Ta = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
369
369
|
function te(t) {
|
|
370
370
|
const e = t.toString(), n = [], s = {
|
|
371
371
|
color: [],
|
|
@@ -373,7 +373,7 @@ function te(t) {
|
|
|
373
373
|
var: []
|
|
374
374
|
}, i = [];
|
|
375
375
|
let o = 0;
|
|
376
|
-
const a = e.replace(Ta, (l) => (F.test(l) ? (s.color.push(o), i.push(hr), n.push(F.parse(l))) : l.startsWith(wa) ? (s.var.push(o), i.push(xa), n.push(l)) : (s.number.push(o), i.push(dr), n.push(parseFloat(l))), ++o,
|
|
376
|
+
const a = e.replace(Ta, (l) => (F.test(l) ? (s.color.push(o), i.push(hr), n.push(F.parse(l))) : l.startsWith(wa) ? (s.var.push(o), i.push(xa), n.push(l)) : (s.number.push(o), i.push(dr), n.push(parseFloat(l))), ++o, Ps)).split(Ps);
|
|
377
377
|
return { values: n, split: a, indexes: s, types: i };
|
|
378
378
|
}
|
|
379
379
|
function fr(t) {
|
|
@@ -402,7 +402,7 @@ const bt = {
|
|
|
402
402
|
createTransformer: pr,
|
|
403
403
|
getAnimatableNone: Pa
|
|
404
404
|
};
|
|
405
|
-
function
|
|
405
|
+
function ze(t, e, n) {
|
|
406
406
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
|
|
407
407
|
}
|
|
408
408
|
function Sa({ hue: t, saturation: e, lightness: n, alpha: s }) {
|
|
@@ -412,7 +412,7 @@ function Sa({ hue: t, saturation: e, lightness: n, alpha: s }) {
|
|
|
412
412
|
i = o = r = n;
|
|
413
413
|
else {
|
|
414
414
|
const a = n < 0.5 ? n * (1 + e) : n + e - n * e, l = 2 * n - a;
|
|
415
|
-
i =
|
|
415
|
+
i = ze(l, a, t + 1 / 3), o = ze(l, a, t), r = ze(l, a, t - 1 / 3);
|
|
416
416
|
}
|
|
417
417
|
return {
|
|
418
418
|
red: Math.round(i * 255),
|
|
@@ -424,35 +424,35 @@ function Sa({ hue: t, saturation: e, lightness: n, alpha: s }) {
|
|
|
424
424
|
function Ae(t, e) {
|
|
425
425
|
return (n) => n > 0 ? e : t;
|
|
426
426
|
}
|
|
427
|
-
const _ = (t, e, n) => t + (e - t) * n,
|
|
427
|
+
const _ = (t, e, n) => t + (e - t) * n, $e = (t, e, n) => {
|
|
428
428
|
const s = t * t, i = n * (e * e - s) + s;
|
|
429
429
|
return i < 0 ? 0 : Math.sqrt(i);
|
|
430
|
-
}, ka = [
|
|
431
|
-
function
|
|
430
|
+
}, ka = [an, Ct, Vt], Aa = (t) => ka.find((e) => e.test(t));
|
|
431
|
+
function Ss(t) {
|
|
432
432
|
const e = Aa(t);
|
|
433
433
|
if (Ft(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e)
|
|
434
434
|
return !1;
|
|
435
435
|
let n = e.parse(t);
|
|
436
436
|
return e === Vt && (n = Sa(n)), n;
|
|
437
437
|
}
|
|
438
|
-
const
|
|
439
|
-
const n =
|
|
438
|
+
const ks = (t, e) => {
|
|
439
|
+
const n = Ss(t), s = Ss(e);
|
|
440
440
|
if (!n || !s)
|
|
441
441
|
return Ae(t, e);
|
|
442
442
|
const i = { ...n };
|
|
443
|
-
return (o) => (i.red =
|
|
444
|
-
},
|
|
443
|
+
return (o) => (i.red = $e(n.red, s.red, o), i.green = $e(n.green, s.green, o), i.blue = $e(n.blue, s.blue, o), i.alpha = _(n.alpha, s.alpha, o), Ct.transform(i));
|
|
444
|
+
}, ln = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
445
445
|
function Ma(t, e) {
|
|
446
|
-
return
|
|
446
|
+
return ln.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
447
447
|
}
|
|
448
448
|
function Va(t, e) {
|
|
449
449
|
return (n) => _(t, e, n);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
return typeof t == "number" ? Va : typeof t == "string" ?
|
|
451
|
+
function Hn(t) {
|
|
452
|
+
return typeof t == "number" ? Va : typeof t == "string" ? $n(t) ? Ae : F.test(t) ? ks : Ra : Array.isArray(t) ? mr : typeof t == "object" ? F.test(t) ? ks : Ea : Ae;
|
|
453
453
|
}
|
|
454
454
|
function mr(t, e) {
|
|
455
|
-
const n = [...t], s = n.length, i = t.map((o, r) =>
|
|
455
|
+
const n = [...t], s = n.length, i = t.map((o, r) => Hn(o)(o, e[r]));
|
|
456
456
|
return (o) => {
|
|
457
457
|
for (let r = 0; r < s; r++)
|
|
458
458
|
n[r] = i[r](o);
|
|
@@ -462,7 +462,7 @@ function mr(t, e) {
|
|
|
462
462
|
function Ea(t, e) {
|
|
463
463
|
const n = { ...t, ...e }, s = {};
|
|
464
464
|
for (const i in n)
|
|
465
|
-
t[i] !== void 0 && e[i] !== void 0 && (s[i] =
|
|
465
|
+
t[i] !== void 0 && e[i] !== void 0 && (s[i] = Hn(t[i])(t[i], e[i]));
|
|
466
466
|
return (i) => {
|
|
467
467
|
for (const o in s)
|
|
468
468
|
n[o] = s[o](i);
|
|
@@ -479,10 +479,10 @@ function Da(t, e) {
|
|
|
479
479
|
}
|
|
480
480
|
const Ra = (t, e) => {
|
|
481
481
|
const n = bt.createTransformer(e), s = te(t), i = te(e);
|
|
482
|
-
return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ?
|
|
482
|
+
return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? ln.has(t) && !i.values.length || ln.has(e) && !s.values.length ? Ma(t, e) : ie(mr(Da(s, i), i.values), n) : (Ft(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Ae(t, e));
|
|
483
483
|
};
|
|
484
484
|
function gr(t, e, n) {
|
|
485
|
-
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? _(t, e, n) :
|
|
485
|
+
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? _(t, e, n) : Hn(t)(t, e);
|
|
486
486
|
}
|
|
487
487
|
const La = (t) => {
|
|
488
488
|
const e = ({ timestamp: n }) => t(n);
|
|
@@ -502,7 +502,7 @@ const La = (t) => {
|
|
|
502
502
|
s += Math.round(t(o / (i - 1)) * 1e4) / 1e4 + ", ";
|
|
503
503
|
return `linear(${s.substring(0, s.length - 2)})`;
|
|
504
504
|
}, Me = 2e4;
|
|
505
|
-
function
|
|
505
|
+
function Xn(t) {
|
|
506
506
|
let e = 0;
|
|
507
507
|
const n = 50;
|
|
508
508
|
let s = t.next(e);
|
|
@@ -511,7 +511,7 @@ function Wn(t) {
|
|
|
511
511
|
return e >= Me ? 1 / 0 : e;
|
|
512
512
|
}
|
|
513
513
|
function Ka(t, e = 100, n) {
|
|
514
|
-
const s = n({ ...t, keyframes: [0, e] }), i = Math.min(
|
|
514
|
+
const s = n({ ...t, keyframes: [0, e] }), i = Math.min(Xn(s), Me);
|
|
515
515
|
return {
|
|
516
516
|
type: "keyframes",
|
|
517
517
|
ease: (o) => s.next(i * o).value / e,
|
|
@@ -551,20 +551,20 @@ const I = {
|
|
|
551
551
|
// in seconds
|
|
552
552
|
minDamping: 0.05,
|
|
553
553
|
maxDamping: 1
|
|
554
|
-
},
|
|
554
|
+
}, Ge = 1e-3;
|
|
555
555
|
function _a({ duration: t = I.duration, bounce: e = I.bounce, velocity: n = I.velocity, mass: s = I.mass }) {
|
|
556
556
|
let i, o;
|
|
557
557
|
Ft(t <= /* @__PURE__ */ rt(I.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
558
558
|
let r = 1 - e;
|
|
559
559
|
r = dt(I.minDamping, I.maxDamping, r), t = dt(I.minDuration, I.maxDuration, /* @__PURE__ */ ot(t)), r < 1 ? (i = (u) => {
|
|
560
|
-
const c = u * r, f = c * t, m = c - n, v =
|
|
561
|
-
return
|
|
560
|
+
const c = u * r, f = c * t, m = c - n, v = cn(u, r), w = Math.exp(-f);
|
|
561
|
+
return Ge - m / v * w;
|
|
562
562
|
}, o = (u) => {
|
|
563
|
-
const f = u * r * t, m = f * n + n, v = Math.pow(r, 2) * Math.pow(u, 2) * t, w = Math.exp(-f), C =
|
|
564
|
-
return (-i(u) +
|
|
563
|
+
const f = u * r * t, m = f * n + n, v = Math.pow(r, 2) * Math.pow(u, 2) * t, w = Math.exp(-f), C = cn(Math.pow(u, 2), r);
|
|
564
|
+
return (-i(u) + Ge > 0 ? -1 : 1) * ((m - v) * w) / C;
|
|
565
565
|
}) : (i = (u) => {
|
|
566
566
|
const c = Math.exp(-u * t), f = (u - n) * t + 1;
|
|
567
|
-
return
|
|
567
|
+
return -Ge + c * f;
|
|
568
568
|
}, o = (u) => {
|
|
569
569
|
const c = Math.exp(-u * t), f = (n - u) * (t * t);
|
|
570
570
|
return c * f;
|
|
@@ -592,11 +592,11 @@ function Oa(t, e, n) {
|
|
|
592
592
|
s = s - t(s) / e(s);
|
|
593
593
|
return s;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function cn(t, e) {
|
|
596
596
|
return t * Math.sqrt(1 - e * e);
|
|
597
597
|
}
|
|
598
598
|
const Fa = ["duration", "bounce"], ja = ["stiffness", "damping", "mass"];
|
|
599
|
-
function
|
|
599
|
+
function As(t, e) {
|
|
600
600
|
return e.some((n) => t[n] !== void 0);
|
|
601
601
|
}
|
|
602
602
|
function Na(t) {
|
|
@@ -608,7 +608,7 @@ function Na(t) {
|
|
|
608
608
|
isResolvedFromDuration: !1,
|
|
609
609
|
...t
|
|
610
610
|
};
|
|
611
|
-
if (!
|
|
611
|
+
if (!As(t, ja) && As(t, Fa))
|
|
612
612
|
if (t.visualDuration) {
|
|
613
613
|
const n = t.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, o = 2 * dt(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
|
|
614
614
|
e = {
|
|
@@ -641,7 +641,7 @@ function Ve(t = I.visualDuration, e = I.bounce) {
|
|
|
641
641
|
s || (s = y ? I.restSpeed.granular : I.restSpeed.default), i || (i = y ? I.restDelta.granular : I.restDelta.default);
|
|
642
642
|
let d;
|
|
643
643
|
if (C < 1) {
|
|
644
|
-
const g =
|
|
644
|
+
const g = cn(h, C);
|
|
645
645
|
d = (x) => {
|
|
646
646
|
const T = Math.exp(-C * h * x);
|
|
647
647
|
return r - T * ((w + C * h * P) / g * Math.sin(g * x) + P * Math.cos(g * x));
|
|
@@ -670,7 +670,7 @@ function Ve(t = I.visualDuration, e = I.bounce) {
|
|
|
670
670
|
return a.value = a.done ? r : x, a;
|
|
671
671
|
},
|
|
672
672
|
toString: () => {
|
|
673
|
-
const g = Math.min(
|
|
673
|
+
const g = Math.min(Xn(p), Me), x = yr((T) => p.next(g * T).value, g, 30);
|
|
674
674
|
return g + "ms " + x;
|
|
675
675
|
},
|
|
676
676
|
toTransition: () => {
|
|
@@ -682,7 +682,7 @@ Ve.applyToOptions = (t) => {
|
|
|
682
682
|
const e = Ka(t, 100, Ve);
|
|
683
683
|
return t.ease = e.ease, t.duration = /* @__PURE__ */ rt(e.duration), t.type = "keyframes", t;
|
|
684
684
|
};
|
|
685
|
-
function
|
|
685
|
+
function un({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: u = 0.5, restSpeed: c }) {
|
|
686
686
|
const f = t[0], m = {
|
|
687
687
|
done: !1,
|
|
688
688
|
value: f
|
|
@@ -764,7 +764,7 @@ function Ha(t, e) {
|
|
|
764
764
|
return t.map(() => e || or).splice(0, t.length - 1);
|
|
765
765
|
}
|
|
766
766
|
function Et({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
|
|
767
|
-
const i = ra(s) ? s.map(
|
|
767
|
+
const i = ra(s) ? s.map(Ts) : Ts(s), o = {
|
|
768
768
|
done: !1,
|
|
769
769
|
value: e[0]
|
|
770
770
|
}, r = Wa(
|
|
@@ -781,13 +781,13 @@ function Et({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }
|
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
783
|
const Xa = (t) => t !== null;
|
|
784
|
-
function
|
|
784
|
+
function Yn(t, { repeat: e, repeatType: n = "loop" }, s, i = 1) {
|
|
785
785
|
const o = t.filter(Xa), a = i < 0 || e && n !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
|
|
786
786
|
return !a || s === void 0 ? o[a] : s;
|
|
787
787
|
}
|
|
788
788
|
const Ya = {
|
|
789
|
-
decay:
|
|
790
|
-
inertia:
|
|
789
|
+
decay: un,
|
|
790
|
+
inertia: un,
|
|
791
791
|
tween: Et,
|
|
792
792
|
keyframes: Et,
|
|
793
793
|
spring: Ve
|
|
@@ -795,7 +795,7 @@ const Ya = {
|
|
|
795
795
|
function vr(t) {
|
|
796
796
|
typeof t.type == "string" && (t.type = Ya[t.type]);
|
|
797
797
|
}
|
|
798
|
-
class
|
|
798
|
+
class qn {
|
|
799
799
|
constructor() {
|
|
800
800
|
this.updateFinished();
|
|
801
801
|
}
|
|
@@ -820,7 +820,7 @@ class Xn {
|
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
const qa = (t) => t / 100;
|
|
823
|
-
class
|
|
823
|
+
class Zn extends qn {
|
|
824
824
|
constructor(e) {
|
|
825
825
|
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
|
|
826
826
|
const { motionValue: n } = this.options;
|
|
@@ -839,7 +839,7 @@ class Yn extends Xn {
|
|
|
839
839
|
...e,
|
|
840
840
|
keyframes: [...a].reverse(),
|
|
841
841
|
velocity: -r
|
|
842
|
-
})), u.calculatedDuration === null && (u.calculatedDuration =
|
|
842
|
+
})), u.calculatedDuration === null && (u.calculatedDuration = Xn(u));
|
|
843
843
|
const { calculatedDuration: c } = u;
|
|
844
844
|
this.calculatedDuration = c, this.resolvedDuration = c + i, this.totalDuration = this.resolvedDuration * (s + 1) - i, this.generator = u;
|
|
845
845
|
}
|
|
@@ -866,7 +866,7 @@ class Yn extends Xn {
|
|
|
866
866
|
let { done: x } = g;
|
|
867
867
|
!y && l !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
|
|
868
868
|
const T = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
|
|
869
|
-
return T && w !==
|
|
869
|
+
return T && w !== un && (g.value = Yn(c, this.options, P, this.speed)), C && C(g.value), T && this.finish(), g;
|
|
870
870
|
}
|
|
871
871
|
/**
|
|
872
872
|
* Allows the returned animation to be awaited or promise-chained. Currently
|
|
@@ -930,9 +930,9 @@ function Za(t) {
|
|
|
930
930
|
for (let e = 1; e < t.length; e++)
|
|
931
931
|
t[e] ?? (t[e] = t[e - 1]);
|
|
932
932
|
}
|
|
933
|
-
const Pt = (t) => t * 180 / Math.PI,
|
|
933
|
+
const Pt = (t) => t * 180 / Math.PI, dn = (t) => {
|
|
934
934
|
const e = Pt(Math.atan2(t[1], t[0]));
|
|
935
|
-
return
|
|
935
|
+
return hn(e);
|
|
936
936
|
}, Ja = {
|
|
937
937
|
x: 4,
|
|
938
938
|
y: 5,
|
|
@@ -941,35 +941,35 @@ const Pt = (t) => t * 180 / Math.PI, cn = (t) => {
|
|
|
941
941
|
scaleX: 0,
|
|
942
942
|
scaleY: 3,
|
|
943
943
|
scale: (t) => (Math.abs(t[0]) + Math.abs(t[3])) / 2,
|
|
944
|
-
rotate:
|
|
945
|
-
rotateZ:
|
|
944
|
+
rotate: dn,
|
|
945
|
+
rotateZ: dn,
|
|
946
946
|
skewX: (t) => Pt(Math.atan(t[1])),
|
|
947
947
|
skewY: (t) => Pt(Math.atan(t[2])),
|
|
948
948
|
skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
|
|
949
|
-
},
|
|
949
|
+
}, hn = (t) => (t = t % 360, t < 0 && (t += 360), t), Ms = dn, Vs = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Es = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), Qa = {
|
|
950
950
|
x: 12,
|
|
951
951
|
y: 13,
|
|
952
952
|
z: 14,
|
|
953
953
|
translateX: 12,
|
|
954
954
|
translateY: 13,
|
|
955
955
|
translateZ: 14,
|
|
956
|
-
scaleX:
|
|
957
|
-
scaleY:
|
|
958
|
-
scale: (t) => (
|
|
959
|
-
rotateX: (t) =>
|
|
960
|
-
rotateY: (t) =>
|
|
961
|
-
rotateZ:
|
|
962
|
-
rotate:
|
|
956
|
+
scaleX: Vs,
|
|
957
|
+
scaleY: Es,
|
|
958
|
+
scale: (t) => (Vs(t) + Es(t)) / 2,
|
|
959
|
+
rotateX: (t) => hn(Pt(Math.atan2(t[6], t[5]))),
|
|
960
|
+
rotateY: (t) => hn(Pt(Math.atan2(-t[2], t[0]))),
|
|
961
|
+
rotateZ: Ms,
|
|
962
|
+
rotate: Ms,
|
|
963
963
|
skewX: (t) => Pt(Math.atan(t[4])),
|
|
964
964
|
skewY: (t) => Pt(Math.atan(t[1])),
|
|
965
965
|
skew: (t) => (Math.abs(t[1]) + Math.abs(t[4])) / 2
|
|
966
966
|
};
|
|
967
|
-
function
|
|
967
|
+
function fn(t) {
|
|
968
968
|
return t.includes("scale") ? 1 : 0;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function pn(t, e) {
|
|
971
971
|
if (!t || t === "none")
|
|
972
|
-
return
|
|
972
|
+
return fn(e);
|
|
973
973
|
const n = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
|
|
974
974
|
let s, i;
|
|
975
975
|
if (n)
|
|
@@ -979,13 +979,13 @@ function hn(t, e) {
|
|
|
979
979
|
s = Ja, i = a;
|
|
980
980
|
}
|
|
981
981
|
if (!i)
|
|
982
|
-
return
|
|
982
|
+
return fn(e);
|
|
983
983
|
const o = s[e], r = i[1].split(",").map(el);
|
|
984
984
|
return typeof o == "function" ? o(r) : r[o];
|
|
985
985
|
}
|
|
986
986
|
const tl = (t, e) => {
|
|
987
987
|
const { transform: n = "none" } = getComputedStyle(t);
|
|
988
|
-
return
|
|
988
|
+
return pn(n, e);
|
|
989
989
|
};
|
|
990
990
|
function el(t) {
|
|
991
991
|
return parseFloat(t.trim());
|
|
@@ -1008,7 +1008,7 @@ const Nt = [
|
|
|
1008
1008
|
"skew",
|
|
1009
1009
|
"skewX",
|
|
1010
1010
|
"skewY"
|
|
1011
|
-
], Ut = new Set(Nt),
|
|
1011
|
+
], Ut = new Set(Nt), Ds = (t) => t === jt || t === M, nl = /* @__PURE__ */ new Set(["x", "y", "z"]), sl = Nt.filter((t) => !nl.has(t));
|
|
1012
1012
|
function il(t) {
|
|
1013
1013
|
const e = [];
|
|
1014
1014
|
return sl.forEach((n) => {
|
|
@@ -1025,15 +1025,15 @@ const St = {
|
|
|
1025
1025
|
bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
|
|
1026
1026
|
right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
|
|
1027
1027
|
// Transform
|
|
1028
|
-
x: (t, { transform: e }) =>
|
|
1029
|
-
y: (t, { transform: e }) =>
|
|
1028
|
+
x: (t, { transform: e }) => pn(e, "x"),
|
|
1029
|
+
y: (t, { transform: e }) => pn(e, "y")
|
|
1030
1030
|
};
|
|
1031
1031
|
St.translateX = St.x;
|
|
1032
1032
|
St.translateY = St.y;
|
|
1033
1033
|
const kt = /* @__PURE__ */ new Set();
|
|
1034
|
-
let
|
|
1034
|
+
let mn = !1, gn = !1, yn = !1;
|
|
1035
1035
|
function xr() {
|
|
1036
|
-
if (
|
|
1036
|
+
if (gn) {
|
|
1037
1037
|
const t = Array.from(kt).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), n = /* @__PURE__ */ new Map();
|
|
1038
1038
|
e.forEach((s) => {
|
|
1039
1039
|
const i = il(s);
|
|
@@ -1048,22 +1048,22 @@ function xr() {
|
|
|
1048
1048
|
s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
|
|
1049
1049
|
});
|
|
1050
1050
|
}
|
|
1051
|
-
|
|
1051
|
+
gn = !1, mn = !1, kt.forEach((t) => t.complete(yn)), kt.clear();
|
|
1052
1052
|
}
|
|
1053
1053
|
function wr() {
|
|
1054
1054
|
kt.forEach((t) => {
|
|
1055
|
-
t.readKeyframes(), t.needsMeasurement && (
|
|
1055
|
+
t.readKeyframes(), t.needsMeasurement && (gn = !0);
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
1058
1058
|
function rl() {
|
|
1059
|
-
|
|
1059
|
+
yn = !0, wr(), xr(), yn = !1;
|
|
1060
1060
|
}
|
|
1061
|
-
class
|
|
1061
|
+
class Jn {
|
|
1062
1062
|
constructor(e, n, s, i, o, r = !1) {
|
|
1063
1063
|
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = s, this.motionValue = i, this.element = o, this.isAsync = r;
|
|
1064
1064
|
}
|
|
1065
1065
|
scheduleResolve() {
|
|
1066
|
-
this.state = "scheduled", this.isAsync ? (kt.add(this),
|
|
1066
|
+
this.state = "scheduled", this.isAsync ? (kt.add(this), mn || (mn = !0, K.read(wr), K.resolveKeyframes(xr))) : (this.readKeyframes(), this.complete());
|
|
1067
1067
|
}
|
|
1068
1068
|
readKeyframes() {
|
|
1069
1069
|
const { unresolvedKeyframes: e, name: n, element: s, motionValue: i } = this;
|
|
@@ -1101,9 +1101,9 @@ const ol = (t) => t.startsWith("--");
|
|
|
1101
1101
|
function al(t, e, n) {
|
|
1102
1102
|
ol(e) ? t.style.setProperty(e, n) : t.style[e] = n;
|
|
1103
1103
|
}
|
|
1104
|
-
const ll = /* @__PURE__ */
|
|
1104
|
+
const ll = /* @__PURE__ */ On(() => window.ScrollTimeline !== void 0), cl = {};
|
|
1105
1105
|
function ul(t, e) {
|
|
1106
|
-
const n = /* @__PURE__ */
|
|
1106
|
+
const n = /* @__PURE__ */ On(t);
|
|
1107
1107
|
return () => cl[e] ?? n();
|
|
1108
1108
|
}
|
|
1109
1109
|
const Tr = /* @__PURE__ */ ul(() => {
|
|
@@ -1113,7 +1113,7 @@ const Tr = /* @__PURE__ */ ul(() => {
|
|
|
1113
1113
|
return !1;
|
|
1114
1114
|
}
|
|
1115
1115
|
return !0;
|
|
1116
|
-
}, "linearEasing"), Ht = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`,
|
|
1116
|
+
}, "linearEasing"), Ht = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, Rs = {
|
|
1117
1117
|
linear: "linear",
|
|
1118
1118
|
ease: "ease",
|
|
1119
1119
|
easeIn: "ease-in",
|
|
@@ -1126,7 +1126,7 @@ const Tr = /* @__PURE__ */ ul(() => {
|
|
|
1126
1126
|
};
|
|
1127
1127
|
function Cr(t, e) {
|
|
1128
1128
|
if (t)
|
|
1129
|
-
return typeof t == "function" ? Tr() ? yr(t, e) : "ease-out" : ar(t) ? Ht(t) : Array.isArray(t) ? t.map((n) => Cr(n, e) ||
|
|
1129
|
+
return typeof t == "function" ? Tr() ? yr(t, e) : "ease-out" : ar(t) ? Ht(t) : Array.isArray(t) ? t.map((n) => Cr(n, e) || Rs.easeOut) : Rs[t];
|
|
1130
1130
|
}
|
|
1131
1131
|
function dl(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, u = void 0) {
|
|
1132
1132
|
const c = {
|
|
@@ -1151,7 +1151,7 @@ function Pr(t) {
|
|
|
1151
1151
|
function hl({ type: t, ...e }) {
|
|
1152
1152
|
return Pr(t) && Tr() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
|
|
1153
1153
|
}
|
|
1154
|
-
class fl extends
|
|
1154
|
+
class fl extends qn {
|
|
1155
1155
|
constructor(e) {
|
|
1156
1156
|
if (super(), this.finishedTime = null, this.isStopped = !1, !e)
|
|
1157
1157
|
return;
|
|
@@ -1160,7 +1160,7 @@ class fl extends Xn {
|
|
|
1160
1160
|
const u = hl(e);
|
|
1161
1161
|
this.animation = dl(n, s, i, u, o), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
|
|
1162
1162
|
if (this.finishedTime = this.time, !o) {
|
|
1163
|
-
const c =
|
|
1163
|
+
const c = Yn(i, this.options, a, this.speed);
|
|
1164
1164
|
this.updateMotionValue ? this.updateMotionValue(c) : al(n, s, c), this.animation.cancel();
|
|
1165
1165
|
}
|
|
1166
1166
|
l?.(), this.notifyFinished();
|
|
@@ -1250,7 +1250,7 @@ function pl(t) {
|
|
|
1250
1250
|
function ml(t) {
|
|
1251
1251
|
typeof t.ease == "string" && pl(t.ease) && (t.ease = Sr[t.ease]);
|
|
1252
1252
|
}
|
|
1253
|
-
const
|
|
1253
|
+
const Ls = 10;
|
|
1254
1254
|
class gl extends fl {
|
|
1255
1255
|
constructor(e) {
|
|
1256
1256
|
ml(e), vr(e), super(e), e.startTime && (this.startTime = e.startTime), this.options = e;
|
|
@@ -1271,14 +1271,14 @@ class gl extends fl {
|
|
|
1271
1271
|
n.set(e);
|
|
1272
1272
|
return;
|
|
1273
1273
|
}
|
|
1274
|
-
const a = new
|
|
1274
|
+
const a = new Zn({
|
|
1275
1275
|
...r,
|
|
1276
1276
|
autoplay: !1
|
|
1277
1277
|
}), l = /* @__PURE__ */ rt(this.finishedTime ?? this.time);
|
|
1278
|
-
n.setWithVelocity(a.sample(l -
|
|
1278
|
+
n.setWithVelocity(a.sample(l - Ls).value, a.sample(l).value, Ls), a.stop();
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
|
-
const
|
|
1281
|
+
const Ks = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
1282
1282
|
(bt.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
1283
1283
|
!t.startsWith("url("));
|
|
1284
1284
|
function yl(t) {
|
|
@@ -1295,10 +1295,10 @@ function bl(t, e, n, s) {
|
|
|
1295
1295
|
return !1;
|
|
1296
1296
|
if (e === "display" || e === "visibility")
|
|
1297
1297
|
return !0;
|
|
1298
|
-
const o = t[t.length - 1], r =
|
|
1298
|
+
const o = t[t.length - 1], r = Ks(i, e), a = Ks(o, e);
|
|
1299
1299
|
return Ft(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : yl(t) || (n === "spring" || Pr(n)) && s;
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function bn(t) {
|
|
1302
1302
|
t.duration = 0, t.type;
|
|
1303
1303
|
}
|
|
1304
1304
|
const vl = /* @__PURE__ */ new Set([
|
|
@@ -1308,7 +1308,7 @@ const vl = /* @__PURE__ */ new Set([
|
|
|
1308
1308
|
"transform"
|
|
1309
1309
|
// TODO: Could be re-enabled now we have support for linear() easing
|
|
1310
1310
|
// "background-color"
|
|
1311
|
-
]), xl = /* @__PURE__ */
|
|
1311
|
+
]), xl = /* @__PURE__ */ On(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
1312
1312
|
function wl(t) {
|
|
1313
1313
|
const { motionValue: e, name: n, repeatDelay: s, repeatType: i, damping: o, type: r } = t;
|
|
1314
1314
|
if (!(e?.owner?.current instanceof HTMLElement))
|
|
@@ -1321,7 +1321,7 @@ function wl(t) {
|
|
|
1321
1321
|
!l && !s && i !== "mirror" && o !== 0 && r !== "inertia";
|
|
1322
1322
|
}
|
|
1323
1323
|
const Tl = 40;
|
|
1324
|
-
class Cl extends
|
|
1324
|
+
class Cl extends qn {
|
|
1325
1325
|
constructor({ autoplay: e = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: o = 0, repeatType: r = "loop", keyframes: a, name: l, motionValue: u, element: c, ...f }) {
|
|
1326
1326
|
super(), this.stop = () => {
|
|
1327
1327
|
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
|
|
@@ -1337,13 +1337,13 @@ class Cl extends Xn {
|
|
|
1337
1337
|
motionValue: u,
|
|
1338
1338
|
element: c,
|
|
1339
1339
|
...f
|
|
1340
|
-
}, v = c?.KeyframeResolver ||
|
|
1340
|
+
}, v = c?.KeyframeResolver || Jn;
|
|
1341
1341
|
this.keyframeResolver = new v(a, (w, C, P) => this.onKeyframesResolved(w, C, m, !P), l, u, c), this.keyframeResolver?.scheduleResolve();
|
|
1342
1342
|
}
|
|
1343
1343
|
onKeyframesResolved(e, n, s, i) {
|
|
1344
1344
|
this.keyframeResolver = void 0;
|
|
1345
1345
|
const { name: o, type: r, velocity: a, delay: l, isHandoff: u, onUpdate: c } = s;
|
|
1346
|
-
this.resolvedAt = Y.now(), bl(e, o, r, a) || ((ft.instantAnimations || !l) && c?.(
|
|
1346
|
+
this.resolvedAt = Y.now(), bl(e, o, r, a) || ((ft.instantAnimations || !l) && c?.(Yn(e, s, n)), e[0] = e[e.length - 1], bn(s), s.repeat = 0);
|
|
1347
1347
|
const m = {
|
|
1348
1348
|
startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Tl ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
|
|
1349
1349
|
finalKeyframe: n,
|
|
@@ -1352,7 +1352,7 @@ class Cl extends Xn {
|
|
|
1352
1352
|
}, v = !u && wl(m) ? new gl({
|
|
1353
1353
|
...m,
|
|
1354
1354
|
element: m.motionValue.owner.current
|
|
1355
|
-
}) : new
|
|
1355
|
+
}) : new Zn(m);
|
|
1356
1356
|
v.finished.then(() => this.notifyFinished()).catch(st), this.pendingTimeline && (this.stopTimeline = v.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = v;
|
|
1357
1357
|
}
|
|
1358
1358
|
get finished() {
|
|
@@ -1424,9 +1424,9 @@ function kr(t, e, n = 1) {
|
|
|
1424
1424
|
const r = o.trim();
|
|
1425
1425
|
return Xi(r) ? parseFloat(r) : r;
|
|
1426
1426
|
}
|
|
1427
|
-
return
|
|
1427
|
+
return $n(i) ? kr(i, e, n + 1) : i;
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function Qn(t, e) {
|
|
1430
1430
|
return t?.[e] ?? t?.default ?? t;
|
|
1431
1431
|
}
|
|
1432
1432
|
const Ar = /* @__PURE__ */ new Set([
|
|
@@ -1440,7 +1440,7 @@ const Ar = /* @__PURE__ */ new Set([
|
|
|
1440
1440
|
]), Al = {
|
|
1441
1441
|
test: (t) => t === "auto",
|
|
1442
1442
|
parse: (t) => t
|
|
1443
|
-
}, Mr = (t) => (e) => e.test(t), Vr = [jt, M, at, gt, ya, ga, Al],
|
|
1443
|
+
}, Mr = (t) => (e) => e.test(t), Vr = [jt, M, at, gt, ya, ga, Al], Is = (t) => Vr.find(Mr(t));
|
|
1444
1444
|
function Ml(t) {
|
|
1445
1445
|
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || qi(t) : !0;
|
|
1446
1446
|
}
|
|
@@ -1449,20 +1449,20 @@ function El(t) {
|
|
|
1449
1449
|
const [e, n] = t.slice(0, -1).split("(");
|
|
1450
1450
|
if (e === "drop-shadow")
|
|
1451
1451
|
return t;
|
|
1452
|
-
const [s] = n.match(
|
|
1452
|
+
const [s] = n.match(Gn) || [];
|
|
1453
1453
|
if (!s)
|
|
1454
1454
|
return t;
|
|
1455
1455
|
const i = n.replace(s, "");
|
|
1456
1456
|
let o = Vl.has(e) ? 1 : 0;
|
|
1457
1457
|
return s !== n && (o *= 100), e + "(" + o + i + ")";
|
|
1458
1458
|
}
|
|
1459
|
-
const Dl = /\b([a-z-]*)\(.*?\)/gu,
|
|
1459
|
+
const Dl = /\b([a-z-]*)\(.*?\)/gu, vn = {
|
|
1460
1460
|
...bt,
|
|
1461
1461
|
getAnimatableNone: (t) => {
|
|
1462
1462
|
const e = t.match(Dl);
|
|
1463
1463
|
return e ? e.map(El).join(" ") : t;
|
|
1464
1464
|
}
|
|
1465
|
-
},
|
|
1465
|
+
}, _s = {
|
|
1466
1466
|
...jt,
|
|
1467
1467
|
transform: Math.round
|
|
1468
1468
|
}, Rl = {
|
|
@@ -1487,10 +1487,10 @@ const Dl = /\b([a-z-]*)\(.*?\)/gu, yn = {
|
|
|
1487
1487
|
perspective: M,
|
|
1488
1488
|
transformPerspective: M,
|
|
1489
1489
|
opacity: Qt,
|
|
1490
|
-
originX:
|
|
1491
|
-
originY:
|
|
1490
|
+
originX: Cs,
|
|
1491
|
+
originY: Cs,
|
|
1492
1492
|
originZ: M
|
|
1493
|
-
},
|
|
1493
|
+
}, ts = {
|
|
1494
1494
|
// Border props
|
|
1495
1495
|
borderWidth: M,
|
|
1496
1496
|
borderTopWidth: M,
|
|
@@ -1527,13 +1527,13 @@ const Dl = /\b([a-z-]*)\(.*?\)/gu, yn = {
|
|
|
1527
1527
|
backgroundPositionX: M,
|
|
1528
1528
|
backgroundPositionY: M,
|
|
1529
1529
|
...Rl,
|
|
1530
|
-
zIndex:
|
|
1530
|
+
zIndex: _s,
|
|
1531
1531
|
// SVG
|
|
1532
1532
|
fillOpacity: Qt,
|
|
1533
1533
|
strokeOpacity: Qt,
|
|
1534
|
-
numOctaves:
|
|
1534
|
+
numOctaves: _s
|
|
1535
1535
|
}, Ll = {
|
|
1536
|
-
...
|
|
1536
|
+
...ts,
|
|
1537
1537
|
// Color props
|
|
1538
1538
|
color: F,
|
|
1539
1539
|
backgroundColor: F,
|
|
@@ -1546,12 +1546,12 @@ const Dl = /\b([a-z-]*)\(.*?\)/gu, yn = {
|
|
|
1546
1546
|
borderRightColor: F,
|
|
1547
1547
|
borderBottomColor: F,
|
|
1548
1548
|
borderLeftColor: F,
|
|
1549
|
-
filter:
|
|
1550
|
-
WebkitFilter:
|
|
1549
|
+
filter: vn,
|
|
1550
|
+
WebkitFilter: vn
|
|
1551
1551
|
}, Er = (t) => Ll[t];
|
|
1552
1552
|
function Dr(t, e) {
|
|
1553
1553
|
let n = Er(t);
|
|
1554
|
-
return n !==
|
|
1554
|
+
return n !== vn && (n = bt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
1555
1555
|
}
|
|
1556
1556
|
const Kl = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
1557
1557
|
function Il(t, e, n) {
|
|
@@ -1564,7 +1564,7 @@ function Il(t, e, n) {
|
|
|
1564
1564
|
for (const o of e)
|
|
1565
1565
|
t[o] = Dr(n, i);
|
|
1566
1566
|
}
|
|
1567
|
-
class _l extends
|
|
1567
|
+
class _l extends Jn {
|
|
1568
1568
|
constructor(e, n, s, i, o) {
|
|
1569
1569
|
super(e, n, s, i, o, !0);
|
|
1570
1570
|
}
|
|
@@ -1575,16 +1575,16 @@ class _l extends qn {
|
|
|
1575
1575
|
super.readKeyframes();
|
|
1576
1576
|
for (let l = 0; l < e.length; l++) {
|
|
1577
1577
|
let u = e[l];
|
|
1578
|
-
if (typeof u == "string" && (u = u.trim(),
|
|
1578
|
+
if (typeof u == "string" && (u = u.trim(), $n(u))) {
|
|
1579
1579
|
const c = kr(u, n.current);
|
|
1580
1580
|
c !== void 0 && (e[l] = c), l === e.length - 1 && (this.finalKeyframe = u);
|
|
1581
1581
|
}
|
|
1582
1582
|
}
|
|
1583
1583
|
if (this.resolveNoneKeyframes(), !Ar.has(s) || e.length !== 2)
|
|
1584
1584
|
return;
|
|
1585
|
-
const [i, o] = e, r =
|
|
1585
|
+
const [i, o] = e, r = Is(i), a = Is(o);
|
|
1586
1586
|
if (r !== a)
|
|
1587
|
-
if (
|
|
1587
|
+
if (Ds(r) && Ds(a))
|
|
1588
1588
|
for (let l = 0; l < e.length; l++) {
|
|
1589
1589
|
const u = e[l];
|
|
1590
1590
|
typeof u == "string" && (e[l] = parseFloat(u));
|
|
@@ -1631,7 +1631,7 @@ const Rr = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
|
|
|
1631
1631
|
function Lr(t) {
|
|
1632
1632
|
return Yi(t) && "offsetHeight" in t;
|
|
1633
1633
|
}
|
|
1634
|
-
const
|
|
1634
|
+
const Bs = 30, Ol = (t) => !isNaN(parseFloat(t));
|
|
1635
1635
|
class Fl {
|
|
1636
1636
|
/**
|
|
1637
1637
|
* @param init - The initiating value
|
|
@@ -1694,10 +1694,10 @@ class Fl {
|
|
|
1694
1694
|
* @deprecated
|
|
1695
1695
|
*/
|
|
1696
1696
|
onChange(e) {
|
|
1697
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1697
|
+
return process.env.NODE_ENV !== "production" && jn(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
|
|
1698
1698
|
}
|
|
1699
1699
|
on(e, n) {
|
|
1700
|
-
this.events[e] || (this.events[e] = new
|
|
1700
|
+
this.events[e] || (this.events[e] = new Fn());
|
|
1701
1701
|
const s = this.events[e].add(n);
|
|
1702
1702
|
return e === "change" ? () => {
|
|
1703
1703
|
s(), K.read(() => {
|
|
@@ -1777,9 +1777,9 @@ class Fl {
|
|
|
1777
1777
|
*/
|
|
1778
1778
|
getVelocity() {
|
|
1779
1779
|
const e = Y.now();
|
|
1780
|
-
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt >
|
|
1780
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Bs)
|
|
1781
1781
|
return 0;
|
|
1782
|
-
const n = Math.min(this.updatedAt - this.prevUpdatedAt,
|
|
1782
|
+
const n = Math.min(this.updatedAt - this.prevUpdatedAt, Bs);
|
|
1783
1783
|
return Zi(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
|
|
1784
1784
|
}
|
|
1785
1785
|
/**
|
|
@@ -1834,7 +1834,7 @@ class Fl {
|
|
|
1834
1834
|
function _t(t, e) {
|
|
1835
1835
|
return new Fl(t, e);
|
|
1836
1836
|
}
|
|
1837
|
-
const { schedule:
|
|
1837
|
+
const { schedule: es } = /* @__PURE__ */ lr(queueMicrotask, !1), it = {
|
|
1838
1838
|
x: !1,
|
|
1839
1839
|
y: !1
|
|
1840
1840
|
};
|
|
@@ -1856,18 +1856,18 @@ function Ir(t, e) {
|
|
|
1856
1856
|
};
|
|
1857
1857
|
return [n, i, () => s.abort()];
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1859
|
+
function Os(t) {
|
|
1860
1860
|
return !(t.pointerType === "touch" || Kr());
|
|
1861
1861
|
}
|
|
1862
1862
|
function Nl(t, e, n = {}) {
|
|
1863
1863
|
const [s, i, o] = Ir(t, n), r = (a) => {
|
|
1864
|
-
if (!
|
|
1864
|
+
if (!Os(a))
|
|
1865
1865
|
return;
|
|
1866
1866
|
const { target: l } = a, u = e(l, a);
|
|
1867
1867
|
if (typeof u != "function" || !l)
|
|
1868
1868
|
return;
|
|
1869
1869
|
const c = (f) => {
|
|
1870
|
-
|
|
1870
|
+
Os(f) && (u(f), l.removeEventListener("pointerleave", c));
|
|
1871
1871
|
};
|
|
1872
1872
|
l.addEventListener("pointerleave", c, i);
|
|
1873
1873
|
};
|
|
@@ -1875,7 +1875,7 @@ function Nl(t, e, n = {}) {
|
|
|
1875
1875
|
a.addEventListener("pointerenter", r, i);
|
|
1876
1876
|
}), o;
|
|
1877
1877
|
}
|
|
1878
|
-
const _r = (t, e) => e ? t === e ? !0 : _r(t, e.parentElement) : !1,
|
|
1878
|
+
const _r = (t, e) => e ? t === e ? !0 : _r(t, e.parentElement) : !1, ns = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Ul = /* @__PURE__ */ new Set([
|
|
1879
1879
|
"BUTTON",
|
|
1880
1880
|
"INPUT",
|
|
1881
1881
|
"SELECT",
|
|
@@ -1886,40 +1886,40 @@ function zl(t) {
|
|
|
1886
1886
|
return Ul.has(t.tagName) || t.tabIndex !== -1;
|
|
1887
1887
|
}
|
|
1888
1888
|
const Te = /* @__PURE__ */ new WeakSet();
|
|
1889
|
-
function
|
|
1889
|
+
function Fs(t) {
|
|
1890
1890
|
return (e) => {
|
|
1891
1891
|
e.key === "Enter" && t(e);
|
|
1892
1892
|
};
|
|
1893
1893
|
}
|
|
1894
|
-
function
|
|
1894
|
+
function We(t, e) {
|
|
1895
1895
|
t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
|
|
1896
1896
|
}
|
|
1897
1897
|
const $l = (t, e) => {
|
|
1898
1898
|
const n = t.currentTarget;
|
|
1899
1899
|
if (!n)
|
|
1900
1900
|
return;
|
|
1901
|
-
const s =
|
|
1901
|
+
const s = Fs(() => {
|
|
1902
1902
|
if (Te.has(n))
|
|
1903
1903
|
return;
|
|
1904
|
-
|
|
1905
|
-
const i =
|
|
1906
|
-
|
|
1907
|
-
}), o = () =>
|
|
1904
|
+
We(n, "down");
|
|
1905
|
+
const i = Fs(() => {
|
|
1906
|
+
We(n, "up");
|
|
1907
|
+
}), o = () => We(n, "cancel");
|
|
1908
1908
|
n.addEventListener("keyup", i, e), n.addEventListener("blur", o, e);
|
|
1909
1909
|
});
|
|
1910
1910
|
n.addEventListener("keydown", s, e), n.addEventListener("blur", () => n.removeEventListener("keydown", s), e);
|
|
1911
1911
|
};
|
|
1912
|
-
function
|
|
1913
|
-
return
|
|
1912
|
+
function js(t) {
|
|
1913
|
+
return ns(t) && !Kr();
|
|
1914
1914
|
}
|
|
1915
1915
|
function Gl(t, e, n = {}) {
|
|
1916
1916
|
const [s, i, o] = Ir(t, n), r = (a) => {
|
|
1917
1917
|
const l = a.currentTarget;
|
|
1918
|
-
if (!
|
|
1918
|
+
if (!js(a))
|
|
1919
1919
|
return;
|
|
1920
1920
|
Te.add(l);
|
|
1921
1921
|
const u = e(l, a), c = (v, w) => {
|
|
1922
|
-
window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", m), Te.has(l) && Te.delete(l),
|
|
1922
|
+
window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", m), Te.has(l) && Te.delete(l), js(v) && typeof u == "function" && u(v, { success: w });
|
|
1923
1923
|
}, f = (v) => {
|
|
1924
1924
|
c(v, l === window || l === document || n.useGlobalTarget || _r(l, v.target));
|
|
1925
1925
|
}, m = (v) => {
|
|
@@ -1937,12 +1937,12 @@ function Br(t) {
|
|
|
1937
1937
|
function Wl(t) {
|
|
1938
1938
|
return Br(t) && t.tagName === "svg";
|
|
1939
1939
|
}
|
|
1940
|
-
const W = (t) => !!(t && t.getVelocity), Hl = [...Vr, F, bt], Xl = (t) => Hl.find(Mr(t)),
|
|
1940
|
+
const W = (t) => !!(t && t.getVelocity), Hl = [...Vr, F, bt], Xl = (t) => Hl.find(Mr(t)), ss = Ot({
|
|
1941
1941
|
transformPagePoint: (t) => t,
|
|
1942
1942
|
isStatic: !1,
|
|
1943
1943
|
reducedMotion: "never"
|
|
1944
1944
|
});
|
|
1945
|
-
class Yl extends
|
|
1945
|
+
class Yl extends Dn.Component {
|
|
1946
1946
|
getSnapshotBeforeUpdate(e) {
|
|
1947
1947
|
const n = this.props.childRef.current;
|
|
1948
1948
|
if (n && e.isPresent && !this.props.isPresent) {
|
|
@@ -1961,13 +1961,13 @@ class Yl extends Vn.Component {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
}
|
|
1963
1963
|
function ql({ children: t, isPresent: e, anchorX: n, root: s }) {
|
|
1964
|
-
const i =
|
|
1964
|
+
const i = Rn(), o = ut(null), r = ut({
|
|
1965
1965
|
width: 0,
|
|
1966
1966
|
height: 0,
|
|
1967
1967
|
top: 0,
|
|
1968
1968
|
left: 0,
|
|
1969
1969
|
right: 0
|
|
1970
|
-
}), { nonce: a } = G(
|
|
1970
|
+
}), { nonce: a } = G(ss);
|
|
1971
1971
|
return Ui(() => {
|
|
1972
1972
|
const { width: l, height: u, top: c, left: f, right: m } = r.current;
|
|
1973
1973
|
if (e || !o.current || !l || !u)
|
|
@@ -1988,10 +1988,10 @@ function ql({ children: t, isPresent: e, anchorX: n, root: s }) {
|
|
|
1988
1988
|
`), () => {
|
|
1989
1989
|
C.contains(w) && C.removeChild(w);
|
|
1990
1990
|
};
|
|
1991
|
-
}, [e]), Q(Yl, { isPresent: e, childRef: o, sizeRef: r, children:
|
|
1991
|
+
}, [e]), Q(Yl, { isPresent: e, childRef: o, sizeRef: r, children: Dn.cloneElement(t, { ref: o }) });
|
|
1992
1992
|
}
|
|
1993
1993
|
const Zl = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom: i, presenceAffectsLayout: o, mode: r, anchorX: a, root: l }) => {
|
|
1994
|
-
const u =
|
|
1994
|
+
const u = Kn(Jl), c = Rn();
|
|
1995
1995
|
let f = !0, m = At(() => (f = !1, {
|
|
1996
1996
|
id: c,
|
|
1997
1997
|
initial: e,
|
|
@@ -2008,7 +2008,7 @@ const Zl = ({ children: t, initial: e, isPresent: n, onExitComplete: s, custom:
|
|
|
2008
2008
|
}), [n, u, s]);
|
|
2009
2009
|
return o && f && (m = { ...m }), At(() => {
|
|
2010
2010
|
u.forEach((v, w) => u.set(w, !1));
|
|
2011
|
-
}, [n]),
|
|
2011
|
+
}, [n]), Dn.useEffect(() => {
|
|
2012
2012
|
!n && !u.size && s && s();
|
|
2013
2013
|
}, [n]), r === "popLayout" && (t = Q(ql, { isPresent: n, anchorX: a, root: l, children: t })), Q(Le.Provider, { value: m, children: t });
|
|
2014
2014
|
};
|
|
@@ -2019,7 +2019,7 @@ function Or(t = !0) {
|
|
|
2019
2019
|
const e = G(Le);
|
|
2020
2020
|
if (e === null)
|
|
2021
2021
|
return [!0, null];
|
|
2022
|
-
const { isPresent: n, onExitComplete: s, register: i } = e, o =
|
|
2022
|
+
const { isPresent: n, onExitComplete: s, register: i } = e, o = Rn();
|
|
2023
2023
|
Re(() => {
|
|
2024
2024
|
if (t)
|
|
2025
2025
|
return i(o);
|
|
@@ -2028,14 +2028,14 @@ function Or(t = !0) {
|
|
|
2028
2028
|
return !n && s ? [!1, r] : [!0];
|
|
2029
2029
|
}
|
|
2030
2030
|
const ye = (t) => t.key || "";
|
|
2031
|
-
function
|
|
2031
|
+
function Ns(t) {
|
|
2032
2032
|
const e = [];
|
|
2033
2033
|
return Bo.forEach(t, (n) => {
|
|
2034
2034
|
Oo(n) && e.push(n);
|
|
2035
2035
|
}), e;
|
|
2036
2036
|
}
|
|
2037
2037
|
const Ql = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: r = !1, anchorX: a = "left", root: l }) => {
|
|
2038
|
-
const [u, c] = Or(r), f = At(() =>
|
|
2038
|
+
const [u, c] = Or(r), f = At(() => Ns(t), [t]), m = r && !u ? [] : f.map(ye), v = ut(!0), w = ut(f), C = Kn(() => /* @__PURE__ */ new Map()), [P, h] = gs(f), [y, d] = gs(f);
|
|
2039
2039
|
Hi(() => {
|
|
2040
2040
|
v.current = !1, w.current = f;
|
|
2041
2041
|
for (let x = 0; x < y.length; x++) {
|
|
@@ -2050,10 +2050,10 @@ const Ql = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
|
|
|
2050
2050
|
const b = y[T], V = ye(b);
|
|
2051
2051
|
m.includes(V) || (x.splice(T, 0, b), p.push(b));
|
|
2052
2052
|
}
|
|
2053
|
-
return o === "wait" && p.length && (x = p), d(
|
|
2053
|
+
return o === "wait" && p.length && (x = p), d(Ns(x)), h(f), null;
|
|
2054
2054
|
}
|
|
2055
2055
|
process.env.NODE_ENV !== "production" && o === "wait" && y.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
2056
|
-
const { forceRender: g } = G(
|
|
2056
|
+
const { forceRender: g } = G(Ln);
|
|
2057
2057
|
return Q(Uo, { children: y.map((x) => {
|
|
2058
2058
|
const T = ye(x), b = r && !u ? !1 : f === y || m.includes(T), V = () => {
|
|
2059
2059
|
if (C.has(T))
|
|
@@ -2067,7 +2067,7 @@ const Ql = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
|
|
|
2067
2067
|
};
|
|
2068
2068
|
return Q(Zl, { isPresent: b, initial: !v.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: i, mode: o, root: l, onExitComplete: b ? void 0 : V, anchorX: a, children: x }, T);
|
|
2069
2069
|
}) });
|
|
2070
|
-
}, Fr = Ot({ strict: !1 }),
|
|
2070
|
+
}, Fr = Ot({ strict: !1 }), Us = {
|
|
2071
2071
|
animation: [
|
|
2072
2072
|
"animate",
|
|
2073
2073
|
"variants",
|
|
@@ -2087,9 +2087,9 @@ const Ql = ({ children: t, custom: e, initial: n = !0, onExitComplete: s, presen
|
|
|
2087
2087
|
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
2088
2088
|
layout: ["layout", "layoutId"]
|
|
2089
2089
|
}, Bt = {};
|
|
2090
|
-
for (const t in
|
|
2090
|
+
for (const t in Us)
|
|
2091
2091
|
Bt[t] = {
|
|
2092
|
-
isEnabled: (e) =>
|
|
2092
|
+
isEnabled: (e) => Us[t].some((n) => !!e[n])
|
|
2093
2093
|
};
|
|
2094
2094
|
function tc(t) {
|
|
2095
2095
|
for (const e in t)
|
|
@@ -2155,7 +2155,7 @@ function Ie(t) {
|
|
|
2155
2155
|
function ee(t) {
|
|
2156
2156
|
return typeof t == "string" || Array.isArray(t);
|
|
2157
2157
|
}
|
|
2158
|
-
const
|
|
2158
|
+
const is = [
|
|
2159
2159
|
"animate",
|
|
2160
2160
|
"whileInView",
|
|
2161
2161
|
"whileFocus",
|
|
@@ -2163,9 +2163,9 @@ const ns = [
|
|
|
2163
2163
|
"whileTap",
|
|
2164
2164
|
"whileDrag",
|
|
2165
2165
|
"exit"
|
|
2166
|
-
],
|
|
2166
|
+
], rs = ["initial", ...is];
|
|
2167
2167
|
function _e(t) {
|
|
2168
|
-
return Ie(t.animate) ||
|
|
2168
|
+
return Ie(t.animate) || rs.some((e) => ee(t[e]));
|
|
2169
2169
|
}
|
|
2170
2170
|
function Nr(t) {
|
|
2171
2171
|
return !!(_e(t) || t.variants);
|
|
@@ -2182,15 +2182,15 @@ function ic(t, e) {
|
|
|
2182
2182
|
}
|
|
2183
2183
|
function rc(t) {
|
|
2184
2184
|
const { initial: e, animate: n } = ic(t, G(Ke));
|
|
2185
|
-
return At(() => ({ initial: e, animate: n }), [
|
|
2185
|
+
return At(() => ({ initial: e, animate: n }), [zs(e), zs(n)]);
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2187
|
+
function zs(t) {
|
|
2188
2188
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
2189
2189
|
}
|
|
2190
2190
|
const ne = {};
|
|
2191
2191
|
function oc(t) {
|
|
2192
2192
|
for (const e in t)
|
|
2193
|
-
ne[e] = t[e],
|
|
2193
|
+
ne[e] = t[e], zn(e) && (ne[e].isCSSVariable = !0);
|
|
2194
2194
|
}
|
|
2195
2195
|
function Ur(t, { layout: e, layoutId: n }) {
|
|
2196
2196
|
return Ut.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ne[t] || t === "opacity");
|
|
@@ -2209,7 +2209,7 @@ function cc(t, e, n) {
|
|
|
2209
2209
|
continue;
|
|
2210
2210
|
let l = !0;
|
|
2211
2211
|
if (typeof a == "number" ? l = a === (r.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || n) {
|
|
2212
|
-
const u = Rr(a,
|
|
2212
|
+
const u = Rr(a, ts[r]);
|
|
2213
2213
|
if (!l) {
|
|
2214
2214
|
i = !1;
|
|
2215
2215
|
const c = ac[r] || r;
|
|
@@ -2220,7 +2220,7 @@ function cc(t, e, n) {
|
|
|
2220
2220
|
}
|
|
2221
2221
|
return s = s.trim(), n ? s = n(e, i ? "" : s) : i && (s = "none"), s;
|
|
2222
2222
|
}
|
|
2223
|
-
function
|
|
2223
|
+
function os(t, e, n) {
|
|
2224
2224
|
const { style: s, vars: i, transformOrigin: o } = t;
|
|
2225
2225
|
let r = !1, a = !1;
|
|
2226
2226
|
for (const l in e) {
|
|
@@ -2228,11 +2228,11 @@ function is(t, e, n) {
|
|
|
2228
2228
|
if (Ut.has(l)) {
|
|
2229
2229
|
r = !0;
|
|
2230
2230
|
continue;
|
|
2231
|
-
} else if (
|
|
2231
|
+
} else if (zn(l)) {
|
|
2232
2232
|
i[l] = u;
|
|
2233
2233
|
continue;
|
|
2234
2234
|
} else {
|
|
2235
|
-
const c = Rr(u,
|
|
2235
|
+
const c = Rr(u, ts[l]);
|
|
2236
2236
|
l.startsWith("origin") ? (a = !0, o[l] = c) : s[l] = c;
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
@@ -2241,7 +2241,7 @@ function is(t, e, n) {
|
|
|
2241
2241
|
s.transformOrigin = `${l} ${u} ${c}`;
|
|
2242
2242
|
}
|
|
2243
2243
|
}
|
|
2244
|
-
const
|
|
2244
|
+
const as = () => ({
|
|
2245
2245
|
style: {},
|
|
2246
2246
|
transform: {},
|
|
2247
2247
|
transformOrigin: {},
|
|
@@ -2253,8 +2253,8 @@ function zr(t, e, n) {
|
|
|
2253
2253
|
}
|
|
2254
2254
|
function uc({ transformTemplate: t }, e) {
|
|
2255
2255
|
return At(() => {
|
|
2256
|
-
const n =
|
|
2257
|
-
return
|
|
2256
|
+
const n = as();
|
|
2257
|
+
return os(n, e, t), Object.assign({}, n.vars, n.style);
|
|
2258
2258
|
}, [e]);
|
|
2259
2259
|
}
|
|
2260
2260
|
function dc(t, e) {
|
|
@@ -2289,7 +2289,7 @@ function $r(t, {
|
|
|
2289
2289
|
// This is object creation, which we try to avoid per-frame.
|
|
2290
2290
|
...a
|
|
2291
2291
|
}, l, u, c) {
|
|
2292
|
-
if (
|
|
2292
|
+
if (os(t, a, u), l) {
|
|
2293
2293
|
t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
|
|
2294
2294
|
return;
|
|
2295
2295
|
}
|
|
@@ -2298,7 +2298,7 @@ function $r(t, {
|
|
|
2298
2298
|
f.transform && (m.transform = f.transform, delete f.transform), (m.transform || f.transformOrigin) && (m.transformOrigin = f.transformOrigin ?? "50% 50%", delete f.transformOrigin), m.transform && (m.transformBox = c?.transformBox ?? "fill-box", delete f.transformBox), e !== void 0 && (f.x = e), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), i !== void 0 && mc(f, i, o, r, !1);
|
|
2299
2299
|
}
|
|
2300
2300
|
const Gr = () => ({
|
|
2301
|
-
...
|
|
2301
|
+
...as(),
|
|
2302
2302
|
attrs: {}
|
|
2303
2303
|
}), Wr = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
2304
2304
|
function gc(t, e, n, s) {
|
|
@@ -2342,7 +2342,7 @@ const yc = [
|
|
|
2342
2342
|
"use",
|
|
2343
2343
|
"view"
|
|
2344
2344
|
];
|
|
2345
|
-
function
|
|
2345
|
+
function ls(t) {
|
|
2346
2346
|
return (
|
|
2347
2347
|
/**
|
|
2348
2348
|
* If it's not a string, it's a custom React component. Currently we only support
|
|
@@ -2363,25 +2363,25 @@ function os(t) {
|
|
|
2363
2363
|
);
|
|
2364
2364
|
}
|
|
2365
2365
|
function bc(t, e, n, { latestValues: s }, i, o = !1) {
|
|
2366
|
-
const a = (
|
|
2366
|
+
const a = (ls(t) ? gc : hc)(e, s, i, t), l = sc(e, typeof t == "string", o), u = t !== $i ? { ...l, ...a, ref: n } : {}, { children: c } = e, f = At(() => W(c) ? c.get() : c, [c]);
|
|
2367
2367
|
return Fo(t, {
|
|
2368
2368
|
...u,
|
|
2369
2369
|
children: f
|
|
2370
2370
|
});
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2372
|
+
function $s(t) {
|
|
2373
2373
|
const e = [{}, {}];
|
|
2374
2374
|
return t?.values.forEach((n, s) => {
|
|
2375
2375
|
e[0][s] = n.get(), e[1][s] = n.getVelocity();
|
|
2376
2376
|
}), e;
|
|
2377
2377
|
}
|
|
2378
|
-
function
|
|
2378
|
+
function cs(t, e, n, s) {
|
|
2379
2379
|
if (typeof e == "function") {
|
|
2380
|
-
const [i, o] =
|
|
2380
|
+
const [i, o] = $s(s);
|
|
2381
2381
|
e = e(n !== void 0 ? n : t.custom, i, o);
|
|
2382
2382
|
}
|
|
2383
2383
|
if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
|
|
2384
|
-
const [i, o] =
|
|
2384
|
+
const [i, o] = $s(s);
|
|
2385
2385
|
e = e(n !== void 0 ? n : t.custom, i, o);
|
|
2386
2386
|
}
|
|
2387
2387
|
return e;
|
|
@@ -2408,7 +2408,7 @@ function xc(t, e, n, s) {
|
|
|
2408
2408
|
if (f && typeof f != "boolean" && !Ie(f)) {
|
|
2409
2409
|
const m = Array.isArray(f) ? f : [f];
|
|
2410
2410
|
for (let v = 0; v < m.length; v++) {
|
|
2411
|
-
const w =
|
|
2411
|
+
const w = cs(t, m[v]);
|
|
2412
2412
|
if (w) {
|
|
2413
2413
|
const { transitionEnd: C, transition: P, ...h } = w;
|
|
2414
2414
|
for (const y in h) {
|
|
@@ -2428,20 +2428,20 @@ function xc(t, e, n, s) {
|
|
|
2428
2428
|
}
|
|
2429
2429
|
const Hr = (t) => (e, n) => {
|
|
2430
2430
|
const s = G(Ke), i = G(Le), o = () => vc(t, e, s, i);
|
|
2431
|
-
return n ? o() :
|
|
2431
|
+
return n ? o() : Kn(o);
|
|
2432
2432
|
};
|
|
2433
|
-
function
|
|
2433
|
+
function us(t, e, n) {
|
|
2434
2434
|
const { style: s } = t, i = {};
|
|
2435
2435
|
for (const o in s)
|
|
2436
2436
|
(W(s[o]) || e.style && W(e.style[o]) || Ur(o, t) || n?.getValue(o)?.liveStyle !== void 0) && (i[o] = s[o]);
|
|
2437
2437
|
return i;
|
|
2438
2438
|
}
|
|
2439
2439
|
const wc = /* @__PURE__ */ Hr({
|
|
2440
|
-
scrapeMotionValuesFromProps:
|
|
2441
|
-
createRenderState:
|
|
2440
|
+
scrapeMotionValuesFromProps: us,
|
|
2441
|
+
createRenderState: as
|
|
2442
2442
|
});
|
|
2443
2443
|
function Xr(t, e, n) {
|
|
2444
|
-
const s =
|
|
2444
|
+
const s = us(t, e, n);
|
|
2445
2445
|
for (const i in t)
|
|
2446
2446
|
if (W(t[i]) || W(e[i])) {
|
|
2447
2447
|
const o = Nt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
|
|
@@ -2469,9 +2469,9 @@ function Pc(t, e, n) {
|
|
|
2469
2469
|
[e]
|
|
2470
2470
|
);
|
|
2471
2471
|
}
|
|
2472
|
-
const
|
|
2472
|
+
const ds = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Sc = "framerAppearId", Yr = "data-" + ds(Sc), qr = Ot({});
|
|
2473
2473
|
function kc(t, e, n, s, i) {
|
|
2474
|
-
const { visualElement: o } = G(Ke), r = G(Fr), a = G(Le), l = G(
|
|
2474
|
+
const { visualElement: o } = G(Ke), r = G(Fr), a = G(Le), l = G(ss).reducedMotion, u = ut(null);
|
|
2475
2475
|
s = s || r.renderer, !u.current && s && (u.current = s(t, {
|
|
2476
2476
|
visualState: e,
|
|
2477
2477
|
parent: o,
|
|
@@ -2520,17 +2520,17 @@ function Zr(t) {
|
|
|
2520
2520
|
if (t)
|
|
2521
2521
|
return t.options.allowProjection !== !1 ? t.projection : Zr(t.parent);
|
|
2522
2522
|
}
|
|
2523
|
-
function
|
|
2523
|
+
function He(t, { forwardMotionProps: e = !1 } = {}, n, s) {
|
|
2524
2524
|
n && tc(n);
|
|
2525
|
-
const i =
|
|
2525
|
+
const i = ls(t) ? Tc : wc;
|
|
2526
2526
|
function o(a, l) {
|
|
2527
2527
|
let u;
|
|
2528
2528
|
const c = {
|
|
2529
|
-
...G(
|
|
2529
|
+
...G(ss),
|
|
2530
2530
|
...a,
|
|
2531
2531
|
layoutId: Mc(a)
|
|
2532
2532
|
}, { isStatic: f } = c, m = rc(a), v = i(a, f);
|
|
2533
|
-
if (!f &&
|
|
2533
|
+
if (!f && In) {
|
|
2534
2534
|
Vc(c, n);
|
|
2535
2535
|
const w = Ec(c);
|
|
2536
2536
|
u = w.MeasureLayout, m.visualElement = kc(t, v, c, s, w.ProjectionNode);
|
|
@@ -2542,7 +2542,7 @@ function We(t, { forwardMotionProps: e = !1 } = {}, n, s) {
|
|
|
2542
2542
|
return r[Cc] = t, r;
|
|
2543
2543
|
}
|
|
2544
2544
|
function Mc({ layoutId: t }) {
|
|
2545
|
-
const e = G(
|
|
2545
|
+
const e = G(Ln).id;
|
|
2546
2546
|
return e && t !== void 0 ? e + "-" + t : t;
|
|
2547
2547
|
}
|
|
2548
2548
|
function Vc(t, e) {
|
|
@@ -2564,15 +2564,15 @@ function Ec(t) {
|
|
|
2564
2564
|
}
|
|
2565
2565
|
function Dc(t, e) {
|
|
2566
2566
|
if (typeof Proxy > "u")
|
|
2567
|
-
return
|
|
2568
|
-
const n = /* @__PURE__ */ new Map(), s = (o, r) =>
|
|
2567
|
+
return He;
|
|
2568
|
+
const n = /* @__PURE__ */ new Map(), s = (o, r) => He(o, r, t, e), i = (o, r) => (process.env.NODE_ENV !== "production" && jn(!1, "motion() is deprecated. Use motion.create() instead."), s(o, r));
|
|
2569
2569
|
return new Proxy(i, {
|
|
2570
2570
|
/**
|
|
2571
2571
|
* Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
|
|
2572
2572
|
* The prop name is passed through as `key` and we can use that to generate a `motion`
|
|
2573
2573
|
* DOM component with that name.
|
|
2574
2574
|
*/
|
|
2575
|
-
get: (o, r) => r === "create" ? s : (n.has(r) || n.set(r,
|
|
2575
|
+
get: (o, r) => r === "create" ? s : (n.has(r) || n.set(r, He(r, void 0, t, e)), n.get(r))
|
|
2576
2576
|
});
|
|
2577
2577
|
}
|
|
2578
2578
|
function Jr({ top: t, left: e, right: n, bottom: s }) {
|
|
@@ -2595,35 +2595,35 @@ function Lc(t, e) {
|
|
|
2595
2595
|
right: s.x
|
|
2596
2596
|
};
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2598
|
+
function Xe(t) {
|
|
2599
2599
|
return t === void 0 || t === 1;
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2602
|
-
return !
|
|
2601
|
+
function xn({ scale: t, scaleX: e, scaleY: n }) {
|
|
2602
|
+
return !Xe(t) || !Xe(e) || !Xe(n);
|
|
2603
2603
|
}
|
|
2604
2604
|
function Tt(t) {
|
|
2605
|
-
return
|
|
2605
|
+
return xn(t) || Qr(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
|
|
2606
2606
|
}
|
|
2607
2607
|
function Qr(t) {
|
|
2608
|
-
return
|
|
2608
|
+
return Gs(t.x) || Gs(t.y);
|
|
2609
2609
|
}
|
|
2610
|
-
function
|
|
2610
|
+
function Gs(t) {
|
|
2611
2611
|
return t && t !== "0%";
|
|
2612
2612
|
}
|
|
2613
2613
|
function De(t, e, n) {
|
|
2614
2614
|
const s = t - n, i = e * s;
|
|
2615
2615
|
return n + i;
|
|
2616
2616
|
}
|
|
2617
|
-
function
|
|
2617
|
+
function Ws(t, e, n, s, i) {
|
|
2618
2618
|
return i !== void 0 && (t = De(t, i, s)), De(t, n, s) + e;
|
|
2619
2619
|
}
|
|
2620
|
-
function
|
|
2621
|
-
t.min =
|
|
2620
|
+
function wn(t, e = 0, n = 1, s, i) {
|
|
2621
|
+
t.min = Ws(t.min, e, n, s, i), t.max = Ws(t.max, e, n, s, i);
|
|
2622
2622
|
}
|
|
2623
2623
|
function to(t, { x: e, y: n }) {
|
|
2624
|
-
|
|
2624
|
+
wn(t.x, e.translate, e.scale, e.originPoint), wn(t.y, n.translate, n.scale, n.originPoint);
|
|
2625
2625
|
}
|
|
2626
|
-
const
|
|
2626
|
+
const Hs = 0.999999999999, Xs = 1.0000000000001;
|
|
2627
2627
|
function Kc(t, e, n, s = !1) {
|
|
2628
2628
|
const i = n.length;
|
|
2629
2629
|
if (!i)
|
|
@@ -2638,17 +2638,17 @@ function Kc(t, e, n, s = !1) {
|
|
|
2638
2638
|
y: -o.scroll.offset.y
|
|
2639
2639
|
}), r && (e.x *= r.x.scale, e.y *= r.y.scale, to(t, r)), s && Tt(o.latestValues) && Lt(t, o.latestValues));
|
|
2640
2640
|
}
|
|
2641
|
-
e.x <
|
|
2641
|
+
e.x < Xs && e.x > Hs && (e.x = 1), e.y < Xs && e.y > Hs && (e.y = 1);
|
|
2642
2642
|
}
|
|
2643
2643
|
function Rt(t, e) {
|
|
2644
2644
|
t.min = t.min + e, t.max = t.max + e;
|
|
2645
2645
|
}
|
|
2646
|
-
function
|
|
2646
|
+
function Ys(t, e, n, s, i = 0.5) {
|
|
2647
2647
|
const o = _(t.min, t.max, i);
|
|
2648
|
-
|
|
2648
|
+
wn(t, e, n, o, s);
|
|
2649
2649
|
}
|
|
2650
2650
|
function Lt(t, e) {
|
|
2651
|
-
|
|
2651
|
+
Ys(t.x, e.x, e.scaleX, e.scale, e.originX), Ys(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
2652
2652
|
}
|
|
2653
2653
|
function eo(t, e) {
|
|
2654
2654
|
return Jr(Lc(t.getBoundingClientRect(), e));
|
|
@@ -2657,25 +2657,25 @@ function Ic(t, e, n) {
|
|
|
2657
2657
|
const s = eo(t, n), { scroll: i } = e;
|
|
2658
2658
|
return i && (Rt(s.x, i.offset.x), Rt(s.y, i.offset.y)), s;
|
|
2659
2659
|
}
|
|
2660
|
-
const
|
|
2660
|
+
const qs = () => ({
|
|
2661
2661
|
translate: 0,
|
|
2662
2662
|
scale: 1,
|
|
2663
2663
|
origin: 0,
|
|
2664
2664
|
originPoint: 0
|
|
2665
2665
|
}), Kt = () => ({
|
|
2666
|
-
x: Ys(),
|
|
2667
|
-
y: Ys()
|
|
2668
|
-
}), qs = () => ({ min: 0, max: 0 }), O = () => ({
|
|
2669
2666
|
x: qs(),
|
|
2670
2667
|
y: qs()
|
|
2671
|
-
}),
|
|
2668
|
+
}), Zs = () => ({ min: 0, max: 0 }), O = () => ({
|
|
2669
|
+
x: Zs(),
|
|
2670
|
+
y: Zs()
|
|
2671
|
+
}), Tn = { current: null }, no = { current: !1 };
|
|
2672
2672
|
function _c() {
|
|
2673
|
-
if (no.current = !0, !!
|
|
2673
|
+
if (no.current = !0, !!In)
|
|
2674
2674
|
if (window.matchMedia) {
|
|
2675
|
-
const t = window.matchMedia("(prefers-reduced-motion)"), e = () =>
|
|
2675
|
+
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Tn.current = t.matches;
|
|
2676
2676
|
t.addEventListener("change", e), e();
|
|
2677
2677
|
} else
|
|
2678
|
-
|
|
2678
|
+
Tn.current = !1;
|
|
2679
2679
|
}
|
|
2680
2680
|
const Bc = /* @__PURE__ */ new WeakMap();
|
|
2681
2681
|
function Oc(t, e, n) {
|
|
@@ -2698,7 +2698,7 @@ function Oc(t, e, n) {
|
|
|
2698
2698
|
e[s] === void 0 && t.removeValue(s);
|
|
2699
2699
|
return e;
|
|
2700
2700
|
}
|
|
2701
|
-
const
|
|
2701
|
+
const Js = [
|
|
2702
2702
|
"AnimationStart",
|
|
2703
2703
|
"AnimationComplete",
|
|
2704
2704
|
"Update",
|
|
@@ -2719,7 +2719,7 @@ class Fc {
|
|
|
2719
2719
|
return {};
|
|
2720
2720
|
}
|
|
2721
2721
|
constructor({ parent: e, props: n, presenceContext: s, reducedMotionConfig: i, blockInitialAnimation: o, visualState: r }, a = {}) {
|
|
2722
|
-
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver =
|
|
2722
|
+
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Jn, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
2723
2723
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
2724
2724
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
2725
2725
|
const m = Y.now();
|
|
@@ -2734,7 +2734,7 @@ class Fc {
|
|
|
2734
2734
|
}
|
|
2735
2735
|
}
|
|
2736
2736
|
mount(e) {
|
|
2737
|
-
this.current = e, Bc.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), no.current || _c(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 :
|
|
2737
|
+
this.current = e, Bc.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), no.current || _c(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Tn.current, process.env.NODE_ENV !== "production" && jn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
|
|
2738
2738
|
}
|
|
2739
2739
|
unmount() {
|
|
2740
2740
|
this.projection && this.projection.unmount(), yt(this.notifyUpdate), yt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
@@ -2803,8 +2803,8 @@ class Fc {
|
|
|
2803
2803
|
*/
|
|
2804
2804
|
update(e, n) {
|
|
2805
2805
|
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
|
|
2806
|
-
for (let s = 0; s <
|
|
2807
|
-
const i =
|
|
2806
|
+
for (let s = 0; s < Js.length; s++) {
|
|
2807
|
+
const i = Js[s];
|
|
2808
2808
|
this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
|
|
2809
2809
|
const o = "on" + i, r = e[o];
|
|
2810
2810
|
r && (this.propEventSubscriptions[i] = this.on(i, r));
|
|
@@ -2891,7 +2891,7 @@ class Fc {
|
|
|
2891
2891
|
const { initial: n } = this.props;
|
|
2892
2892
|
let s;
|
|
2893
2893
|
if (typeof n == "string" || typeof n == "object") {
|
|
2894
|
-
const o =
|
|
2894
|
+
const o = cs(this.props, n, this.presenceContext?.custom);
|
|
2895
2895
|
o && (s = o[e]);
|
|
2896
2896
|
}
|
|
2897
2897
|
if (n && s !== void 0)
|
|
@@ -2900,13 +2900,13 @@ class Fc {
|
|
|
2900
2900
|
return i !== void 0 && !W(i) ? i : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
|
|
2901
2901
|
}
|
|
2902
2902
|
on(e, n) {
|
|
2903
|
-
return this.events[e] || (this.events[e] = new
|
|
2903
|
+
return this.events[e] || (this.events[e] = new Fn()), this.events[e].add(n);
|
|
2904
2904
|
}
|
|
2905
2905
|
notify(e, ...n) {
|
|
2906
2906
|
this.events[e] && this.events[e].notify(...n);
|
|
2907
2907
|
}
|
|
2908
2908
|
scheduleRenderMicrotask() {
|
|
2909
|
-
|
|
2909
|
+
es.render(this.render);
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
2912
2912
|
class so extends Fc {
|
|
@@ -2948,9 +2948,9 @@ class Nc extends so {
|
|
|
2948
2948
|
}
|
|
2949
2949
|
readValueFromInstance(e, n) {
|
|
2950
2950
|
if (Ut.has(n))
|
|
2951
|
-
return this.projection?.isProjecting ?
|
|
2951
|
+
return this.projection?.isProjecting ? fn(n) : tl(e, n);
|
|
2952
2952
|
{
|
|
2953
|
-
const s = jc(e), i = (
|
|
2953
|
+
const s = jc(e), i = (zn(n) ? s.getPropertyValue(n) : s[n]) || 0;
|
|
2954
2954
|
return typeof i == "string" ? i.trim() : i;
|
|
2955
2955
|
}
|
|
2956
2956
|
}
|
|
@@ -2958,10 +2958,10 @@ class Nc extends so {
|
|
|
2958
2958
|
return eo(e, n);
|
|
2959
2959
|
}
|
|
2960
2960
|
build(e, n, s) {
|
|
2961
|
-
|
|
2961
|
+
os(e, n, s.transformTemplate);
|
|
2962
2962
|
}
|
|
2963
2963
|
scrapeMotionValuesFromProps(e, n, s) {
|
|
2964
|
-
return
|
|
2964
|
+
return us(e, n, s);
|
|
2965
2965
|
}
|
|
2966
2966
|
}
|
|
2967
2967
|
const ro = /* @__PURE__ */ new Set([
|
|
@@ -2992,7 +2992,7 @@ const ro = /* @__PURE__ */ new Set([
|
|
|
2992
2992
|
function Uc(t, e, n, s) {
|
|
2993
2993
|
io(t, e, void 0, s);
|
|
2994
2994
|
for (const i in e.attrs)
|
|
2995
|
-
t.setAttribute(ro.has(i) ? i :
|
|
2995
|
+
t.setAttribute(ro.has(i) ? i : ds(i), e.attrs[i]);
|
|
2996
2996
|
}
|
|
2997
2997
|
class zc extends so {
|
|
2998
2998
|
constructor() {
|
|
@@ -3006,7 +3006,7 @@ class zc extends so {
|
|
|
3006
3006
|
const s = Er(n);
|
|
3007
3007
|
return s && s.default || 0;
|
|
3008
3008
|
}
|
|
3009
|
-
return n = ro.has(n) ? n :
|
|
3009
|
+
return n = ro.has(n) ? n : ds(n), e.getAttribute(n);
|
|
3010
3010
|
}
|
|
3011
3011
|
scrapeMotionValuesFromProps(e, n, s) {
|
|
3012
3012
|
return Xr(e, n, s);
|
|
@@ -3021,19 +3021,19 @@ class zc extends so {
|
|
|
3021
3021
|
this.isSVGTag = Wr(e.tagName), super.mount(e);
|
|
3022
3022
|
}
|
|
3023
3023
|
}
|
|
3024
|
-
const $c = (t, e) =>
|
|
3024
|
+
const $c = (t, e) => ls(t) ? new zc(e) : new Nc(e, {
|
|
3025
3025
|
allowProjection: t !== $i
|
|
3026
3026
|
});
|
|
3027
3027
|
function It(t, e, n) {
|
|
3028
3028
|
const s = t.getProps();
|
|
3029
|
-
return
|
|
3029
|
+
return cs(s, e, n !== void 0 ? n : s.custom, t);
|
|
3030
3030
|
}
|
|
3031
|
-
const
|
|
3031
|
+
const Cn = (t) => Array.isArray(t);
|
|
3032
3032
|
function Gc(t, e, n) {
|
|
3033
3033
|
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, _t(n));
|
|
3034
3034
|
}
|
|
3035
3035
|
function Wc(t) {
|
|
3036
|
-
return
|
|
3036
|
+
return Cn(t) ? t[t.length - 1] || 0 : t;
|
|
3037
3037
|
}
|
|
3038
3038
|
function Hc(t, e) {
|
|
3039
3039
|
const n = It(t, e);
|
|
@@ -3047,7 +3047,7 @@ function Hc(t, e) {
|
|
|
3047
3047
|
function Xc(t) {
|
|
3048
3048
|
return !!(W(t) && t.add);
|
|
3049
3049
|
}
|
|
3050
|
-
function
|
|
3050
|
+
function Pn(t, e) {
|
|
3051
3051
|
const n = t.getValue("willChange");
|
|
3052
3052
|
if (Xc(n))
|
|
3053
3053
|
return n.add(e);
|
|
@@ -3085,8 +3085,8 @@ const Zc = {
|
|
|
3085
3085
|
function nu({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: u, ...c }) {
|
|
3086
3086
|
return !!Object.keys(c).length;
|
|
3087
3087
|
}
|
|
3088
|
-
const
|
|
3089
|
-
const a =
|
|
3088
|
+
const hs = (t, e, n, s = {}, i, o) => (r) => {
|
|
3089
|
+
const a = Qn(s, t) || {}, l = a.delay || s.delay || 0;
|
|
3090
3090
|
let { elapsed: u = 0 } = s;
|
|
3091
3091
|
u = u - /* @__PURE__ */ rt(l);
|
|
3092
3092
|
const c = {
|
|
@@ -3107,7 +3107,7 @@ const us = (t, e, n, s = {}, i, o) => (r) => {
|
|
|
3107
3107
|
};
|
|
3108
3108
|
nu(a) || Object.assign(c, eu(t, c)), c.duration && (c.duration = /* @__PURE__ */ rt(c.duration)), c.repeatDelay && (c.repeatDelay = /* @__PURE__ */ rt(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
|
|
3109
3109
|
let f = !1;
|
|
3110
|
-
if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (
|
|
3110
|
+
if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (bn(c), c.delay === 0 && (f = !0)), (ft.instantAnimations || ft.skipAnimations) && (f = !0, bn(c), c.delay = 0), c.allowFlatten = !a.type && !a.ease, f && !o && e.get() !== void 0) {
|
|
3111
3111
|
const m = qc(c.keyframes, a);
|
|
3112
3112
|
if (m !== void 0) {
|
|
3113
3113
|
K.update(() => {
|
|
@@ -3116,7 +3116,7 @@ const us = (t, e, n, s = {}, i, o) => (r) => {
|
|
|
3116
3116
|
return;
|
|
3117
3117
|
}
|
|
3118
3118
|
}
|
|
3119
|
-
return a.isSync ? new
|
|
3119
|
+
return a.isSync ? new Zn(c) : new Cl(c);
|
|
3120
3120
|
};
|
|
3121
3121
|
function su({ protectedKeys: t, needsAnimating: e }, n) {
|
|
3122
3122
|
const s = t.hasOwnProperty(n) && e[n] !== !0;
|
|
@@ -3132,7 +3132,7 @@ function ao(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
|
|
|
3132
3132
|
continue;
|
|
3133
3133
|
const v = {
|
|
3134
3134
|
delay: n,
|
|
3135
|
-
...
|
|
3135
|
+
...Qn(o || {}, c)
|
|
3136
3136
|
}, w = f.get();
|
|
3137
3137
|
if (w !== void 0 && !f.isAnimating && !Array.isArray(m) && m === w && !v.velocity)
|
|
3138
3138
|
continue;
|
|
@@ -3144,7 +3144,7 @@ function ao(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
|
|
|
3144
3144
|
y !== null && (v.startTime = y, C = !0);
|
|
3145
3145
|
}
|
|
3146
3146
|
}
|
|
3147
|
-
|
|
3147
|
+
Pn(t, c), f.start(hs(c, f, m, t.shouldReduceMotion && Ar.has(c) ? { type: !1 } : v, t, C));
|
|
3148
3148
|
const P = f.animation;
|
|
3149
3149
|
P && l.push(P);
|
|
3150
3150
|
}
|
|
@@ -3158,7 +3158,7 @@ function lo(t, e, n, s = 0, i = 1) {
|
|
|
3158
3158
|
const o = Array.from(t).sort((u, c) => u.sortNodePosition(c)).indexOf(e), r = t.size, a = (r - 1) * s;
|
|
3159
3159
|
return typeof n == "function" ? n(o, r) : i === 1 ? o * s : a - o * s;
|
|
3160
3160
|
}
|
|
3161
|
-
function
|
|
3161
|
+
function Sn(t, e, n = {}) {
|
|
3162
3162
|
const s = It(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
|
|
3163
3163
|
let { transition: i = t.getDefaultTransition() || {} } = s || {};
|
|
3164
3164
|
n.transitionOverride && (i = n.transitionOverride);
|
|
@@ -3175,7 +3175,7 @@ function Cn(t, e, n = {}) {
|
|
|
3175
3175
|
function iu(t, e, n = 0, s = 0, i = 0, o = 1, r) {
|
|
3176
3176
|
const a = [];
|
|
3177
3177
|
for (const l of t.variantChildren)
|
|
3178
|
-
l.notify("AnimationStart", e), a.push(
|
|
3178
|
+
l.notify("AnimationStart", e), a.push(Sn(l, e, {
|
|
3179
3179
|
...r,
|
|
3180
3180
|
delay: n + (typeof s == "function" ? 0 : s) + lo(t.variantChildren, l, s, i, o)
|
|
3181
3181
|
}).then(() => l.notify("AnimationComplete", e)));
|
|
@@ -3185,10 +3185,10 @@ function ru(t, e, n = {}) {
|
|
|
3185
3185
|
t.notify("AnimationStart", e);
|
|
3186
3186
|
let s;
|
|
3187
3187
|
if (Array.isArray(e)) {
|
|
3188
|
-
const i = e.map((o) =>
|
|
3188
|
+
const i = e.map((o) => Sn(t, o, n));
|
|
3189
3189
|
s = Promise.all(i);
|
|
3190
3190
|
} else if (typeof e == "string")
|
|
3191
|
-
s =
|
|
3191
|
+
s = Sn(t, e, n);
|
|
3192
3192
|
else {
|
|
3193
3193
|
const i = typeof e == "function" ? It(t, e, n.custom) : e;
|
|
3194
3194
|
s = Promise.all(ao(t, i, n));
|
|
@@ -3208,7 +3208,7 @@ function co(t, e) {
|
|
|
3208
3208
|
return !1;
|
|
3209
3209
|
return !0;
|
|
3210
3210
|
}
|
|
3211
|
-
const ou =
|
|
3211
|
+
const ou = rs.length;
|
|
3212
3212
|
function uo(t) {
|
|
3213
3213
|
if (!t)
|
|
3214
3214
|
return;
|
|
@@ -3218,17 +3218,17 @@ function uo(t) {
|
|
|
3218
3218
|
}
|
|
3219
3219
|
const e = {};
|
|
3220
3220
|
for (let n = 0; n < ou; n++) {
|
|
3221
|
-
const s =
|
|
3221
|
+
const s = rs[n], i = t.props[s];
|
|
3222
3222
|
(ee(i) || i === !1) && (e[s] = i);
|
|
3223
3223
|
}
|
|
3224
3224
|
return e;
|
|
3225
3225
|
}
|
|
3226
|
-
const au = [...
|
|
3226
|
+
const au = [...is].reverse(), lu = is.length;
|
|
3227
3227
|
function cu(t) {
|
|
3228
3228
|
return (e) => Promise.all(e.map(({ animation: n, options: s }) => ru(t, n, s)));
|
|
3229
3229
|
}
|
|
3230
3230
|
function uu(t) {
|
|
3231
|
-
let e = cu(t), n =
|
|
3231
|
+
let e = cu(t), n = Qs(), s = !0;
|
|
3232
3232
|
const i = (l) => (u, c) => {
|
|
3233
3233
|
const f = It(t, c, l === "exit" ? t.presenceContext?.custom : void 0);
|
|
3234
3234
|
if (f) {
|
|
@@ -3272,7 +3272,7 @@ function uu(t) {
|
|
|
3272
3272
|
if (v.hasOwnProperty(R))
|
|
3273
3273
|
continue;
|
|
3274
3274
|
let lt = !1;
|
|
3275
|
-
|
|
3275
|
+
Cn(A) && Cn(tt) ? lt = !co(A, tt) : lt = A !== tt, lt ? A != null ? q(R) : m.add(R) : A !== void 0 && m.has(R) ? q(R) : y.protectedKeys[R] = !0;
|
|
3276
3276
|
}
|
|
3277
3277
|
y.prevProp = d, y.prevResolvedValues = L, y.isActive && (v = { ...v, ...L }), s && t.blockInitialAnimation && (b = !1);
|
|
3278
3278
|
const Z = x && T;
|
|
@@ -3320,7 +3320,7 @@ function uu(t) {
|
|
|
3320
3320
|
setAnimateFunction: o,
|
|
3321
3321
|
getState: () => n,
|
|
3322
3322
|
reset: () => {
|
|
3323
|
-
n =
|
|
3323
|
+
n = Qs(), s = !0;
|
|
3324
3324
|
}
|
|
3325
3325
|
};
|
|
3326
3326
|
}
|
|
@@ -3335,7 +3335,7 @@ function xt(t = !1) {
|
|
|
3335
3335
|
prevResolvedValues: {}
|
|
3336
3336
|
};
|
|
3337
3337
|
}
|
|
3338
|
-
function
|
|
3338
|
+
function Qs() {
|
|
3339
3339
|
return {
|
|
3340
3340
|
animate: xt(!0),
|
|
3341
3341
|
whileInView: xt(),
|
|
@@ -3422,7 +3422,7 @@ function ae(t) {
|
|
|
3422
3422
|
}
|
|
3423
3423
|
};
|
|
3424
3424
|
}
|
|
3425
|
-
const gu = (t) => (e) =>
|
|
3425
|
+
const gu = (t) => (e) => ns(e) && t(e, ae(e));
|
|
3426
3426
|
function Yt(t, e, n, s) {
|
|
3427
3427
|
return se(t, e, gu(n), s);
|
|
3428
3428
|
}
|
|
@@ -3433,30 +3433,30 @@ function X(t) {
|
|
|
3433
3433
|
function wu(t, e, n) {
|
|
3434
3434
|
return Math.abs(t - e) <= n;
|
|
3435
3435
|
}
|
|
3436
|
-
function
|
|
3436
|
+
function ti(t, e, n, s = 0.5) {
|
|
3437
3437
|
t.origin = s, t.originPoint = _(e.min, e.max, t.origin), t.scale = X(n) / X(e), t.translate = _(n.min, n.max, t.origin) - t.originPoint, (t.scale >= yu && t.scale <= bu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= vu && t.translate <= xu || isNaN(t.translate)) && (t.translate = 0);
|
|
3438
3438
|
}
|
|
3439
3439
|
function qt(t, e, n, s) {
|
|
3440
|
-
|
|
3440
|
+
ti(t.x, e.x, n.x, s ? s.originX : void 0), ti(t.y, e.y, n.y, s ? s.originY : void 0);
|
|
3441
3441
|
}
|
|
3442
|
-
function
|
|
3442
|
+
function ei(t, e, n) {
|
|
3443
3443
|
t.min = n.min + e.min, t.max = t.min + X(e);
|
|
3444
3444
|
}
|
|
3445
3445
|
function Tu(t, e, n) {
|
|
3446
|
-
|
|
3446
|
+
ei(t.x, e.x, n.x), ei(t.y, e.y, n.y);
|
|
3447
3447
|
}
|
|
3448
|
-
function
|
|
3448
|
+
function ni(t, e, n) {
|
|
3449
3449
|
t.min = e.min - n.min, t.max = t.min + X(e);
|
|
3450
3450
|
}
|
|
3451
3451
|
function Zt(t, e, n) {
|
|
3452
|
-
|
|
3452
|
+
ni(t.x, e.x, n.x), ni(t.y, e.y, n.y);
|
|
3453
3453
|
}
|
|
3454
3454
|
function nt(t) {
|
|
3455
3455
|
return [t("x"), t("y")];
|
|
3456
3456
|
}
|
|
3457
|
-
const po = ({ current: t }) => t ? t.ownerDocument.defaultView : null,
|
|
3457
|
+
const po = ({ current: t }) => t ? t.ownerDocument.defaultView : null, si = (t, e) => Math.abs(t - e);
|
|
3458
3458
|
function Cu(t, e) {
|
|
3459
|
-
const n =
|
|
3459
|
+
const n = si(t.x, e.x), s = si(t.y, e.y);
|
|
3460
3460
|
return Math.sqrt(n ** 2 + s ** 2);
|
|
3461
3461
|
}
|
|
3462
3462
|
class mo {
|
|
@@ -3464,7 +3464,7 @@ class mo {
|
|
|
3464
3464
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
3465
3465
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
3466
3466
|
return;
|
|
3467
|
-
const m =
|
|
3467
|
+
const m = qe(this.lastMoveEventInfo, this.history), v = this.startEvent !== null, w = Cu(m.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
|
|
3468
3468
|
if (!v && !w)
|
|
3469
3469
|
return;
|
|
3470
3470
|
const { point: C } = m, { timestamp: P } = $;
|
|
@@ -3472,21 +3472,21 @@ class mo {
|
|
|
3472
3472
|
const { onStart: h, onMove: y } = this.handlers;
|
|
3473
3473
|
v || (h && h(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), y && y(this.lastMoveEvent, m);
|
|
3474
3474
|
}, this.handlePointerMove = (m, v) => {
|
|
3475
|
-
this.lastMoveEvent = m, this.lastMoveEventInfo =
|
|
3475
|
+
this.lastMoveEvent = m, this.lastMoveEventInfo = Ye(v, this.transformPagePoint), K.update(this.updatePoint, !0);
|
|
3476
3476
|
}, this.handlePointerUp = (m, v) => {
|
|
3477
3477
|
this.end();
|
|
3478
3478
|
const { onEnd: w, onSessionEnd: C, resumeAnimation: P } = this.handlers;
|
|
3479
3479
|
if (this.dragSnapToOrigin && P && P(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
3480
3480
|
return;
|
|
3481
|
-
const h =
|
|
3481
|
+
const h = qe(m.type === "pointercancel" ? this.lastMoveEventInfo : Ye(v, this.transformPagePoint), this.history);
|
|
3482
3482
|
this.startEvent && w && w(m, h), C && C(m, h);
|
|
3483
|
-
}, !
|
|
3483
|
+
}, !ns(e))
|
|
3484
3484
|
return;
|
|
3485
3485
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = s, this.distanceThreshold = r, this.contextWindow = i || window;
|
|
3486
|
-
const a = ae(e), l =
|
|
3486
|
+
const a = ae(e), l = Ye(a, this.transformPagePoint), { point: u } = l, { timestamp: c } = $;
|
|
3487
3487
|
this.history = [{ ...u, timestamp: c }];
|
|
3488
3488
|
const { onSessionStart: f } = n;
|
|
3489
|
-
f && f(e,
|
|
3489
|
+
f && f(e, qe(l, this.history)), this.removeListeners = ie(Yt(this.contextWindow, "pointermove", this.handlePointerMove), Yt(this.contextWindow, "pointerup", this.handlePointerUp), Yt(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
3490
3490
|
}
|
|
3491
3491
|
updateHandlers(e) {
|
|
3492
3492
|
this.handlers = e;
|
|
@@ -3495,17 +3495,17 @@ class mo {
|
|
|
3495
3495
|
this.removeListeners && this.removeListeners(), yt(this.updatePoint);
|
|
3496
3496
|
}
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3498
|
+
function Ye(t, e) {
|
|
3499
3499
|
return e ? { point: e(t.point) } : t;
|
|
3500
3500
|
}
|
|
3501
|
-
function
|
|
3501
|
+
function ii(t, e) {
|
|
3502
3502
|
return { x: t.x - e.x, y: t.y - e.y };
|
|
3503
3503
|
}
|
|
3504
|
-
function
|
|
3504
|
+
function qe({ point: t }, e) {
|
|
3505
3505
|
return {
|
|
3506
3506
|
point: t,
|
|
3507
|
-
delta:
|
|
3508
|
-
offset:
|
|
3507
|
+
delta: ii(t, go(e)),
|
|
3508
|
+
offset: ii(t, Pu(e)),
|
|
3509
3509
|
velocity: Su(e, 0.1)
|
|
3510
3510
|
};
|
|
3511
3511
|
}
|
|
@@ -3536,7 +3536,7 @@ function Su(t, e) {
|
|
|
3536
3536
|
function ku(t, { min: e, max: n }, s) {
|
|
3537
3537
|
return e !== void 0 && t < e ? t = s ? _(e, t, s.min) : Math.max(t, e) : n !== void 0 && t > n && (t = s ? _(n, t, s.max) : Math.min(t, n)), t;
|
|
3538
3538
|
}
|
|
3539
|
-
function
|
|
3539
|
+
function ri(t, e, n) {
|
|
3540
3540
|
return {
|
|
3541
3541
|
min: e !== void 0 ? t.min + e : void 0,
|
|
3542
3542
|
max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
|
|
@@ -3544,18 +3544,18 @@ function ii(t, e, n) {
|
|
|
3544
3544
|
}
|
|
3545
3545
|
function Au(t, { top: e, left: n, bottom: s, right: i }) {
|
|
3546
3546
|
return {
|
|
3547
|
-
x:
|
|
3548
|
-
y:
|
|
3547
|
+
x: ri(t.x, n, i),
|
|
3548
|
+
y: ri(t.y, e, s)
|
|
3549
3549
|
};
|
|
3550
3550
|
}
|
|
3551
|
-
function
|
|
3551
|
+
function oi(t, e) {
|
|
3552
3552
|
let n = e.min - t.min, s = e.max - t.max;
|
|
3553
3553
|
return e.max - e.min < t.max - t.min && ([n, s] = [s, n]), { min: n, max: s };
|
|
3554
3554
|
}
|
|
3555
3555
|
function Mu(t, e) {
|
|
3556
3556
|
return {
|
|
3557
|
-
x:
|
|
3558
|
-
y:
|
|
3557
|
+
x: oi(t.x, e.x),
|
|
3558
|
+
y: oi(t.y, e.y)
|
|
3559
3559
|
};
|
|
3560
3560
|
}
|
|
3561
3561
|
function Vu(t, e) {
|
|
@@ -3567,20 +3567,20 @@ function Eu(t, e) {
|
|
|
3567
3567
|
const n = {};
|
|
3568
3568
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
|
3569
3569
|
}
|
|
3570
|
-
const
|
|
3571
|
-
function Du(t =
|
|
3572
|
-
return t === !1 ? t = 0 : t === !0 && (t =
|
|
3573
|
-
x:
|
|
3574
|
-
y:
|
|
3570
|
+
const kn = 0.35;
|
|
3571
|
+
function Du(t = kn) {
|
|
3572
|
+
return t === !1 ? t = 0 : t === !0 && (t = kn), {
|
|
3573
|
+
x: ai(t, "left", "right"),
|
|
3574
|
+
y: ai(t, "top", "bottom")
|
|
3575
3575
|
};
|
|
3576
3576
|
}
|
|
3577
|
-
function
|
|
3577
|
+
function ai(t, e, n) {
|
|
3578
3578
|
return {
|
|
3579
|
-
min:
|
|
3580
|
-
max:
|
|
3579
|
+
min: li(t, e),
|
|
3580
|
+
max: li(t, n)
|
|
3581
3581
|
};
|
|
3582
3582
|
}
|
|
3583
|
-
function
|
|
3583
|
+
function li(t, e) {
|
|
3584
3584
|
return typeof t == "number" ? t : t[e] || 0;
|
|
3585
3585
|
}
|
|
3586
3586
|
const Ru = /* @__PURE__ */ new WeakMap();
|
|
@@ -3609,7 +3609,7 @@ class Lu {
|
|
|
3609
3609
|
}
|
|
3610
3610
|
}
|
|
3611
3611
|
this.originPoint[h] = y;
|
|
3612
|
-
}), C && K.postRender(() => C(f, m)),
|
|
3612
|
+
}), C && K.postRender(() => C(f, m)), Pn(this.visualElement, "transform");
|
|
3613
3613
|
const { animationState: P } = this.visualElement;
|
|
3614
3614
|
P && P.setActive("whileDrag", !0);
|
|
3615
3615
|
}, a = (f, m) => {
|
|
@@ -3715,7 +3715,7 @@ class Lu {
|
|
|
3715
3715
|
}
|
|
3716
3716
|
startAxisValueAnimation(e, n) {
|
|
3717
3717
|
const s = this.getAxisMotionValue(e);
|
|
3718
|
-
return
|
|
3718
|
+
return Pn(this.visualElement, e), s.start(hs(e, s, 0, n, this.visualElement, !1));
|
|
3719
3719
|
}
|
|
3720
3720
|
stopAnimation() {
|
|
3721
3721
|
nt((e) => this.getAxisMotionValue(e).stop());
|
|
@@ -3799,7 +3799,7 @@ class Lu {
|
|
|
3799
3799
|
};
|
|
3800
3800
|
}
|
|
3801
3801
|
getProps() {
|
|
3802
|
-
const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: s = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: r =
|
|
3802
|
+
const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: s = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: r = kn, dragMomentum: a = !0 } = e;
|
|
3803
3803
|
return {
|
|
3804
3804
|
...e,
|
|
3805
3805
|
drag: n,
|
|
@@ -3830,7 +3830,7 @@ class Iu extends vt {
|
|
|
3830
3830
|
this.removeGroupControls(), this.removeListeners();
|
|
3831
3831
|
}
|
|
3832
3832
|
}
|
|
3833
|
-
const
|
|
3833
|
+
const ci = (t) => (e, n) => {
|
|
3834
3834
|
t && K.postRender(() => t(e, n));
|
|
3835
3835
|
};
|
|
3836
3836
|
class _u extends vt {
|
|
@@ -3846,8 +3846,8 @@ class _u extends vt {
|
|
|
3846
3846
|
createPanHandlers() {
|
|
3847
3847
|
const { onPanSessionStart: e, onPanStart: n, onPan: s, onPanEnd: i } = this.node.getProps();
|
|
3848
3848
|
return {
|
|
3849
|
-
onSessionStart:
|
|
3850
|
-
onStart:
|
|
3849
|
+
onSessionStart: ci(e),
|
|
3850
|
+
onStart: ci(n),
|
|
3851
3851
|
onMove: s,
|
|
3852
3852
|
onEnd: (o, r) => {
|
|
3853
3853
|
delete this.session, i && K.postRender(() => i(o, r));
|
|
@@ -3876,7 +3876,7 @@ const Pe = {
|
|
|
3876
3876
|
*/
|
|
3877
3877
|
hasEverUpdated: !1
|
|
3878
3878
|
};
|
|
3879
|
-
function
|
|
3879
|
+
function ui(t, e) {
|
|
3880
3880
|
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
|
3881
3881
|
}
|
|
3882
3882
|
const Gt = {
|
|
@@ -3888,7 +3888,7 @@ const Gt = {
|
|
|
3888
3888
|
t = parseFloat(t);
|
|
3889
3889
|
else
|
|
3890
3890
|
return t;
|
|
3891
|
-
const n =
|
|
3891
|
+
const n = ui(t, e.target.x), s = ui(t, e.target.y);
|
|
3892
3892
|
return `${n}% ${s}%`;
|
|
3893
3893
|
}
|
|
3894
3894
|
}, Bu = {
|
|
@@ -3902,7 +3902,7 @@ const Gt = {
|
|
|
3902
3902
|
return typeof i[2 + r] == "number" && (i[2 + r] /= u), typeof i[3 + r] == "number" && (i[3 + r] /= u), o(i);
|
|
3903
3903
|
}
|
|
3904
3904
|
};
|
|
3905
|
-
let
|
|
3905
|
+
let Ze = !1;
|
|
3906
3906
|
class Ou extends No {
|
|
3907
3907
|
/**
|
|
3908
3908
|
* This only mounts projection nodes for components that
|
|
@@ -3911,7 +3911,7 @@ class Ou extends No {
|
|
|
3911
3911
|
*/
|
|
3912
3912
|
componentDidMount() {
|
|
3913
3913
|
const { visualElement: e, layoutGroup: n, switchLayoutGroup: s, layoutId: i } = this.props, { projection: o } = e;
|
|
3914
|
-
oc(Fu), o && (n.group && n.group.add(o), s && s.register && i && s.register(o),
|
|
3914
|
+
oc(Fu), o && (n.group && n.group.add(o), s && s.register && i && s.register(o), Ze && o.root.didUpdate(), o.addEventListener("animationComplete", () => {
|
|
3915
3915
|
this.safeToRemove();
|
|
3916
3916
|
}), o.setOptions({
|
|
3917
3917
|
...o.options,
|
|
@@ -3920,20 +3920,20 @@ class Ou extends No {
|
|
|
3920
3920
|
}
|
|
3921
3921
|
getSnapshotBeforeUpdate(e) {
|
|
3922
3922
|
const { layoutDependency: n, visualElement: s, drag: i, isPresent: o } = this.props, { projection: r } = s;
|
|
3923
|
-
return r && (r.isPresent = o,
|
|
3923
|
+
return r && (r.isPresent = o, Ze = !0, i || e.layoutDependency !== n || n === void 0 || e.isPresent !== o ? r.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? r.promote() : r.relegate() || K.postRender(() => {
|
|
3924
3924
|
const a = r.getStack();
|
|
3925
3925
|
(!a || !a.members.length) && this.safeToRemove();
|
|
3926
3926
|
}))), null;
|
|
3927
3927
|
}
|
|
3928
3928
|
componentDidUpdate() {
|
|
3929
3929
|
const { projection: e } = this.props.visualElement;
|
|
3930
|
-
e && (e.root.didUpdate(),
|
|
3930
|
+
e && (e.root.didUpdate(), es.postRender(() => {
|
|
3931
3931
|
!e.currentAnimation && e.isLead() && this.safeToRemove();
|
|
3932
3932
|
}));
|
|
3933
3933
|
}
|
|
3934
3934
|
componentWillUnmount() {
|
|
3935
3935
|
const { visualElement: e, layoutGroup: n, switchLayoutGroup: s } = this.props, { projection: i } = e;
|
|
3936
|
-
|
|
3936
|
+
Ze = !0, i && (i.scheduleCheckAfterUnmount(), n && n.group && n.group.remove(i), s && s.deregister && s.deregister(i));
|
|
3937
3937
|
}
|
|
3938
3938
|
safeToRemove() {
|
|
3939
3939
|
const { safeToRemove: e } = this.props;
|
|
@@ -3944,7 +3944,7 @@ class Ou extends No {
|
|
|
3944
3944
|
}
|
|
3945
3945
|
}
|
|
3946
3946
|
function yo(t) {
|
|
3947
|
-
const [e, n] = Or(), s = G(
|
|
3947
|
+
const [e, n] = Or(), s = G(Ln);
|
|
3948
3948
|
return Q(Ou, { ...t, layoutGroup: s, switchLayoutGroup: G(qr), isPresent: e, safeToRemove: n });
|
|
3949
3949
|
}
|
|
3950
3950
|
const Fu = {
|
|
@@ -3965,7 +3965,7 @@ const Fu = {
|
|
|
3965
3965
|
};
|
|
3966
3966
|
function ju(t, e, n) {
|
|
3967
3967
|
const s = W(t) ? t : _t(t);
|
|
3968
|
-
return s.start(
|
|
3968
|
+
return s.start(hs("", s, e, n)), s.animation;
|
|
3969
3969
|
}
|
|
3970
3970
|
const Nu = (t, e) => t.depth - e.depth;
|
|
3971
3971
|
class Uu {
|
|
@@ -3973,10 +3973,10 @@ class Uu {
|
|
|
3973
3973
|
this.children = [], this.isDirty = !1;
|
|
3974
3974
|
}
|
|
3975
3975
|
add(e) {
|
|
3976
|
-
|
|
3976
|
+
_n(this.children, e), this.isDirty = !0;
|
|
3977
3977
|
}
|
|
3978
3978
|
remove(e) {
|
|
3979
|
-
|
|
3979
|
+
Bn(this.children, e), this.isDirty = !0;
|
|
3980
3980
|
}
|
|
3981
3981
|
forEach(e) {
|
|
3982
3982
|
this.isDirty && this.children.sort(Nu), this.isDirty = !1, this.children.forEach(e);
|
|
@@ -3989,72 +3989,72 @@ function zu(t, e) {
|
|
|
3989
3989
|
};
|
|
3990
3990
|
return K.setup(s, !0), () => yt(s);
|
|
3991
3991
|
}
|
|
3992
|
-
const bo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], $u = bo.length,
|
|
3992
|
+
const bo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], $u = bo.length, di = (t) => typeof t == "string" ? parseFloat(t) : t, hi = (t) => typeof t == "number" || M.test(t);
|
|
3993
3993
|
function Gu(t, e, n, s, i, o) {
|
|
3994
3994
|
i ? (t.opacity = _(0, n.opacity ?? 1, Wu(s)), t.opacityExit = _(e.opacity ?? 1, 0, Hu(s))) : o && (t.opacity = _(e.opacity ?? 1, n.opacity ?? 1, s));
|
|
3995
3995
|
for (let r = 0; r < $u; r++) {
|
|
3996
3996
|
const a = `border${bo[r]}Radius`;
|
|
3997
|
-
let l =
|
|
3997
|
+
let l = fi(e, a), u = fi(n, a);
|
|
3998
3998
|
if (l === void 0 && u === void 0)
|
|
3999
3999
|
continue;
|
|
4000
|
-
l || (l = 0), u || (u = 0), l === 0 || u === 0 ||
|
|
4000
|
+
l || (l = 0), u || (u = 0), l === 0 || u === 0 || hi(l) === hi(u) ? (t[a] = Math.max(_(di(l), di(u), s), 0), (at.test(u) || at.test(l)) && (t[a] += "%")) : t[a] = u;
|
|
4001
4001
|
}
|
|
4002
4002
|
(e.rotate || n.rotate) && (t.rotate = _(e.rotate || 0, n.rotate || 0, s));
|
|
4003
4003
|
}
|
|
4004
|
-
function
|
|
4004
|
+
function fi(t, e) {
|
|
4005
4005
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
4006
4006
|
}
|
|
4007
4007
|
const Wu = /* @__PURE__ */ vo(0, 0.5, ir), Hu = /* @__PURE__ */ vo(0.5, 0.95, st);
|
|
4008
4008
|
function vo(t, e, n) {
|
|
4009
4009
|
return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ Jt(t, e, s));
|
|
4010
4010
|
}
|
|
4011
|
-
function
|
|
4011
|
+
function pi(t, e) {
|
|
4012
4012
|
t.min = e.min, t.max = e.max;
|
|
4013
4013
|
}
|
|
4014
4014
|
function et(t, e) {
|
|
4015
|
-
|
|
4015
|
+
pi(t.x, e.x), pi(t.y, e.y);
|
|
4016
4016
|
}
|
|
4017
|
-
function
|
|
4017
|
+
function mi(t, e) {
|
|
4018
4018
|
t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
|
|
4019
4019
|
}
|
|
4020
|
-
function
|
|
4020
|
+
function gi(t, e, n, s, i) {
|
|
4021
4021
|
return t -= e, t = De(t, 1 / n, s), i !== void 0 && (t = De(t, 1 / i, s)), t;
|
|
4022
4022
|
}
|
|
4023
4023
|
function Xu(t, e = 0, n = 1, s = 0.5, i, o = t, r = t) {
|
|
4024
4024
|
if (at.test(e) && (e = parseFloat(e), e = _(r.min, r.max, e / 100) - r.min), typeof e != "number")
|
|
4025
4025
|
return;
|
|
4026
4026
|
let a = _(o.min, o.max, s);
|
|
4027
|
-
t === o && (a -= e), t.min =
|
|
4027
|
+
t === o && (a -= e), t.min = gi(t.min, e, n, a, i), t.max = gi(t.max, e, n, a, i);
|
|
4028
4028
|
}
|
|
4029
|
-
function
|
|
4029
|
+
function yi(t, e, [n, s, i], o, r) {
|
|
4030
4030
|
Xu(t, e[n], e[s], e[i], e.scale, o, r);
|
|
4031
4031
|
}
|
|
4032
4032
|
const Yu = ["x", "scaleX", "originX"], qu = ["y", "scaleY", "originY"];
|
|
4033
|
-
function
|
|
4034
|
-
|
|
4033
|
+
function bi(t, e, n, s) {
|
|
4034
|
+
yi(t.x, e, Yu, n ? n.x : void 0, s ? s.x : void 0), yi(t.y, e, qu, n ? n.y : void 0, s ? s.y : void 0);
|
|
4035
4035
|
}
|
|
4036
|
-
function
|
|
4036
|
+
function vi(t) {
|
|
4037
4037
|
return t.translate === 0 && t.scale === 1;
|
|
4038
4038
|
}
|
|
4039
4039
|
function xo(t) {
|
|
4040
|
-
return
|
|
4040
|
+
return vi(t.x) && vi(t.y);
|
|
4041
4041
|
}
|
|
4042
|
-
function
|
|
4042
|
+
function xi(t, e) {
|
|
4043
4043
|
return t.min === e.min && t.max === e.max;
|
|
4044
4044
|
}
|
|
4045
4045
|
function Zu(t, e) {
|
|
4046
|
-
return
|
|
4046
|
+
return xi(t.x, e.x) && xi(t.y, e.y);
|
|
4047
4047
|
}
|
|
4048
|
-
function
|
|
4048
|
+
function wi(t, e) {
|
|
4049
4049
|
return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
|
|
4050
4050
|
}
|
|
4051
4051
|
function wo(t, e) {
|
|
4052
|
-
return
|
|
4052
|
+
return wi(t.x, e.x) && wi(t.y, e.y);
|
|
4053
4053
|
}
|
|
4054
|
-
function
|
|
4054
|
+
function Ti(t) {
|
|
4055
4055
|
return X(t.x) / X(t.y);
|
|
4056
4056
|
}
|
|
4057
|
-
function
|
|
4057
|
+
function Ci(t, e) {
|
|
4058
4058
|
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
|
4059
4059
|
}
|
|
4060
4060
|
class Ju {
|
|
@@ -4062,10 +4062,10 @@ class Ju {
|
|
|
4062
4062
|
this.members = [];
|
|
4063
4063
|
}
|
|
4064
4064
|
add(e) {
|
|
4065
|
-
|
|
4065
|
+
_n(this.members, e), e.scheduleRender();
|
|
4066
4066
|
}
|
|
4067
4067
|
remove(e) {
|
|
4068
|
-
if (
|
|
4068
|
+
if (Bn(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
|
|
4069
4069
|
const n = this.members[this.members.length - 1];
|
|
4070
4070
|
n && this.promote(n);
|
|
4071
4071
|
}
|
|
@@ -4121,9 +4121,9 @@ function Qu(t, e, n) {
|
|
|
4121
4121
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
|
4122
4122
|
return (a !== 1 || l !== 1) && (s += `scale(${a}, ${l})`), s || "none";
|
|
4123
4123
|
}
|
|
4124
|
-
const
|
|
4124
|
+
const Je = ["", "X", "Y", "Z"], td = 1e3;
|
|
4125
4125
|
let ed = 0;
|
|
4126
|
-
function
|
|
4126
|
+
function Qe(t, e, n, s) {
|
|
4127
4127
|
const { latestValues: i } = e;
|
|
4128
4128
|
i[t] && (n[t] = i[t], e.setStaticValue(t, 0), s && (s[t] = 0));
|
|
4129
4129
|
}
|
|
@@ -4154,7 +4154,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4154
4154
|
this.root === this && (this.nodes = new Uu());
|
|
4155
4155
|
}
|
|
4156
4156
|
addEventListener(r, a) {
|
|
4157
|
-
return this.eventHandlers.has(r) || this.eventHandlers.set(r, new
|
|
4157
|
+
return this.eventHandlers.has(r) || this.eventHandlers.set(r, new Fn()), this.eventHandlers.get(r).add(a);
|
|
4158
4158
|
}
|
|
4159
4159
|
notifyListeners(r, ...a) {
|
|
4160
4160
|
const l = this.eventHandlers.get(r);
|
|
@@ -4178,7 +4178,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4178
4178
|
f = window.innerWidth;
|
|
4179
4179
|
}), t(r, () => {
|
|
4180
4180
|
const v = window.innerWidth;
|
|
4181
|
-
v !== f && (f = v, this.root.updateBlockedByResize = !0, c && c(), c = zu(m, 250), Pe.hasAnimatedSinceResize && (Pe.hasAnimatedSinceResize = !1, this.nodes.forEach(
|
|
4181
|
+
v !== f && (f = v, this.root.updateBlockedByResize = !0, c && c(), c = zu(m, 250), Pe.hasAnimatedSinceResize && (Pe.hasAnimatedSinceResize = !1, this.nodes.forEach(ki)));
|
|
4182
4182
|
});
|
|
4183
4183
|
}
|
|
4184
4184
|
a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && u && (a || l) && this.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: f, hasRelativeLayoutChanged: m, layout: v }) => {
|
|
@@ -4190,13 +4190,13 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4190
4190
|
if (this.options.layoutRoot || this.resumeFrom || y || f && (h || !this.currentAnimation)) {
|
|
4191
4191
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
|
|
4192
4192
|
const d = {
|
|
4193
|
-
...
|
|
4193
|
+
...Qn(w, "layout"),
|
|
4194
4194
|
onPlay: C,
|
|
4195
4195
|
onComplete: P
|
|
4196
4196
|
};
|
|
4197
4197
|
(u.shouldReduceMotion || this.options.layoutRoot) && (d.delay = 0, d.type = !1), this.startAnimation(d), this.setAnimationOrigin(c, y);
|
|
4198
4198
|
} else
|
|
4199
|
-
f ||
|
|
4199
|
+
f || ki(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
4200
4200
|
this.targetLayout = v;
|
|
4201
4201
|
});
|
|
4202
4202
|
}
|
|
@@ -4246,19 +4246,19 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4246
4246
|
}
|
|
4247
4247
|
update() {
|
|
4248
4248
|
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
4249
|
-
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(
|
|
4249
|
+
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Pi);
|
|
4250
4250
|
return;
|
|
4251
4251
|
}
|
|
4252
4252
|
if (this.animationId <= this.animationCommitId) {
|
|
4253
|
-
this.nodes.forEach(
|
|
4253
|
+
this.nodes.forEach(Si);
|
|
4254
4254
|
return;
|
|
4255
4255
|
}
|
|
4256
|
-
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(ad), this.nodes.forEach(nd), this.nodes.forEach(sd)) : this.nodes.forEach(
|
|
4256
|
+
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(ad), this.nodes.forEach(nd), this.nodes.forEach(sd)) : this.nodes.forEach(Si), this.clearAllSnapshots();
|
|
4257
4257
|
const a = Y.now();
|
|
4258
|
-
$.delta = dt(0, 1e3 / 60, a - $.timestamp), $.timestamp = a, $.isProcessing = !0,
|
|
4258
|
+
$.delta = dt(0, 1e3 / 60, a - $.timestamp), $.timestamp = a, $.isProcessing = !0, Ne.update.process($), Ne.preRender.process($), Ne.render.process($), $.isProcessing = !1;
|
|
4259
4259
|
}
|
|
4260
4260
|
didUpdate() {
|
|
4261
|
-
this.updateScheduled || (this.updateScheduled = !0,
|
|
4261
|
+
this.updateScheduled || (this.updateScheduled = !0, es.read(this.scheduleUpdate));
|
|
4262
4262
|
}
|
|
4263
4263
|
clearAllSnapshots() {
|
|
4264
4264
|
this.nodes.forEach(od), this.sharedNodes.forEach(dd);
|
|
@@ -4358,11 +4358,11 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4358
4358
|
const u = this.path[l];
|
|
4359
4359
|
if (!u.instance || !Tt(u.latestValues))
|
|
4360
4360
|
continue;
|
|
4361
|
-
|
|
4361
|
+
xn(u.latestValues) && u.updateSnapshot();
|
|
4362
4362
|
const c = O(), f = u.measurePageBox();
|
|
4363
|
-
et(c, f),
|
|
4363
|
+
et(c, f), bi(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
|
|
4364
4364
|
}
|
|
4365
|
-
return Tt(this.latestValues) &&
|
|
4365
|
+
return Tt(this.latestValues) && bi(a, this.latestValues), a;
|
|
4366
4366
|
}
|
|
4367
4367
|
setTargetDelta(r) {
|
|
4368
4368
|
this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -4400,7 +4400,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4400
4400
|
}
|
|
4401
4401
|
}
|
|
4402
4402
|
getClosestProjectingParent() {
|
|
4403
|
-
if (!(!this.parent ||
|
|
4403
|
+
if (!(!this.parent || xn(this.parent.latestValues) || Qr(this.parent.latestValues)))
|
|
4404
4404
|
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
4405
4405
|
}
|
|
4406
4406
|
isProjecting() {
|
|
@@ -4422,7 +4422,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4422
4422
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
4423
4423
|
return;
|
|
4424
4424
|
}
|
|
4425
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (
|
|
4425
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (mi(this.prevProjectionDelta.x, this.projectionDelta.x), mi(this.prevProjectionDelta.y, this.projectionDelta.y)), qt(this.projectionDelta, this.layoutCorrected, v, this.latestValues), (this.treeScale.x !== f || this.treeScale.y !== m || !Ci(this.projectionDelta.x, this.prevProjectionDelta.x) || !Ci(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", v));
|
|
4426
4426
|
}
|
|
4427
4427
|
hide() {
|
|
4428
4428
|
this.isVisible = !1;
|
|
@@ -4448,7 +4448,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4448
4448
|
let d;
|
|
4449
4449
|
this.mixTargetDelta = (p) => {
|
|
4450
4450
|
const g = p / 1e3;
|
|
4451
|
-
|
|
4451
|
+
Ai(f.x, r.x, g), Ai(f.y, r.y, g), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Zt(m, this.layout.layoutBox, this.relativeParent.layout.layoutBox), hd(this.relativeTarget, this.relativeTargetOrigin, m, g), d && Zu(this.relativeTarget, d) && (this.isProjectionDirty = !1), d || (d = O()), et(d, this.relativeTarget)), C && (this.animationValues = c, Gu(c, u, this.latestValues, g, y, h)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = g;
|
|
4452
4452
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4453
4453
|
}
|
|
4454
4454
|
startAnimation(r) {
|
|
@@ -4532,9 +4532,9 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4532
4532
|
if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a)
|
|
4533
4533
|
return;
|
|
4534
4534
|
const u = {};
|
|
4535
|
-
l.z &&
|
|
4536
|
-
for (let c = 0; c <
|
|
4537
|
-
|
|
4535
|
+
l.z && Qe("z", r, u, this.animationValues);
|
|
4536
|
+
for (let c = 0; c < Je.length; c++)
|
|
4537
|
+
Qe(`rotate${Je[c]}`, r, u, this.animationValues), Qe(`skew${Je[c]}`, r, u, this.animationValues);
|
|
4538
4538
|
r.render();
|
|
4539
4539
|
for (const c in u)
|
|
4540
4540
|
r.setStaticValue(c, u[c]), this.animationValues && (this.animationValues[c] = u[c]);
|
|
@@ -4582,7 +4582,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4582
4582
|
}
|
|
4583
4583
|
// Only run on root
|
|
4584
4584
|
resetTree() {
|
|
4585
|
-
this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(
|
|
4585
|
+
this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(Pi), this.root.sharedNodes.clear();
|
|
4586
4586
|
}
|
|
4587
4587
|
};
|
|
4588
4588
|
}
|
|
@@ -4641,17 +4641,17 @@ function rd(t) {
|
|
|
4641
4641
|
function od(t) {
|
|
4642
4642
|
t.clearSnapshot();
|
|
4643
4643
|
}
|
|
4644
|
-
function
|
|
4644
|
+
function Pi(t) {
|
|
4645
4645
|
t.clearMeasurements();
|
|
4646
4646
|
}
|
|
4647
|
-
function
|
|
4647
|
+
function Si(t) {
|
|
4648
4648
|
t.isLayoutDirty = !1;
|
|
4649
4649
|
}
|
|
4650
4650
|
function ad(t) {
|
|
4651
4651
|
const { visualElement: e } = t.options;
|
|
4652
4652
|
e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
|
|
4653
4653
|
}
|
|
4654
|
-
function
|
|
4654
|
+
function ki(t) {
|
|
4655
4655
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
|
|
4656
4656
|
}
|
|
4657
4657
|
function ld(t) {
|
|
@@ -4666,14 +4666,14 @@ function ud(t) {
|
|
|
4666
4666
|
function dd(t) {
|
|
4667
4667
|
t.removeLeadSnapshot();
|
|
4668
4668
|
}
|
|
4669
|
-
function
|
|
4669
|
+
function Ai(t, e, n) {
|
|
4670
4670
|
t.translate = _(e.translate, 0, n), t.scale = _(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
|
|
4671
4671
|
}
|
|
4672
|
-
function
|
|
4672
|
+
function Mi(t, e, n, s) {
|
|
4673
4673
|
t.min = _(e.min, n.min, s), t.max = _(e.max, n.max, s);
|
|
4674
4674
|
}
|
|
4675
4675
|
function hd(t, e, n, s) {
|
|
4676
|
-
|
|
4676
|
+
Mi(t.x, e.x, n.x, s), Mi(t.y, e.y, n.y, s);
|
|
4677
4677
|
}
|
|
4678
4678
|
function fd(t) {
|
|
4679
4679
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
@@ -4681,15 +4681,15 @@ function fd(t) {
|
|
|
4681
4681
|
const pd = {
|
|
4682
4682
|
duration: 0.45,
|
|
4683
4683
|
ease: [0.4, 0, 0.1, 1]
|
|
4684
|
-
},
|
|
4685
|
-
function
|
|
4686
|
-
t.min =
|
|
4684
|
+
}, Vi = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ei = Vi("applewebkit/") && !Vi("chrome/") ? Math.round : st;
|
|
4685
|
+
function Di(t) {
|
|
4686
|
+
t.min = Ei(t.min), t.max = Ei(t.max);
|
|
4687
4687
|
}
|
|
4688
4688
|
function md(t) {
|
|
4689
|
-
|
|
4689
|
+
Di(t.x), Di(t.y);
|
|
4690
4690
|
}
|
|
4691
4691
|
function Po(t, e, n) {
|
|
4692
|
-
return t === "position" || t === "preserve-aspect" && !wu(
|
|
4692
|
+
return t === "position" || t === "preserve-aspect" && !wu(Ti(e), Ti(n), 0.2);
|
|
4693
4693
|
}
|
|
4694
4694
|
function gd(t) {
|
|
4695
4695
|
return t !== t.root && t.scroll?.wasRoot;
|
|
@@ -4701,7 +4701,7 @@ const yd = Co({
|
|
|
4701
4701
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
4702
4702
|
}),
|
|
4703
4703
|
checkIsScrollRoot: () => !0
|
|
4704
|
-
}),
|
|
4704
|
+
}), tn = {
|
|
4705
4705
|
current: void 0
|
|
4706
4706
|
}, So = Co({
|
|
4707
4707
|
measureScroll: (t) => ({
|
|
@@ -4709,11 +4709,11 @@ const yd = Co({
|
|
|
4709
4709
|
y: t.scrollTop
|
|
4710
4710
|
}),
|
|
4711
4711
|
defaultParent: () => {
|
|
4712
|
-
if (!
|
|
4712
|
+
if (!tn.current) {
|
|
4713
4713
|
const t = new yd({});
|
|
4714
|
-
t.mount(window), t.setOptions({ layoutScroll: !0 }),
|
|
4714
|
+
t.mount(window), t.setOptions({ layoutScroll: !0 }), tn.current = t;
|
|
4715
4715
|
}
|
|
4716
|
-
return
|
|
4716
|
+
return tn.current;
|
|
4717
4717
|
},
|
|
4718
4718
|
resetTransform: (t, e) => {
|
|
4719
4719
|
t.style.transform = e !== void 0 ? e : "none";
|
|
@@ -4729,7 +4729,7 @@ const yd = Co({
|
|
|
4729
4729
|
MeasureLayout: yo
|
|
4730
4730
|
}
|
|
4731
4731
|
};
|
|
4732
|
-
function
|
|
4732
|
+
function Ri(t, e, n) {
|
|
4733
4733
|
const { props: s } = t;
|
|
4734
4734
|
t.animationState && s.whileHover && t.animationState.setActive("whileHover", n === "Start");
|
|
4735
4735
|
const i = "onHover" + n, o = s[i];
|
|
@@ -4738,7 +4738,7 @@ function Di(t, e, n) {
|
|
|
4738
4738
|
class vd extends vt {
|
|
4739
4739
|
mount() {
|
|
4740
4740
|
const { current: e } = this.node;
|
|
4741
|
-
e && (this.unmount = Nl(e, (n, s) => (
|
|
4741
|
+
e && (this.unmount = Nl(e, (n, s) => (Ri(this.node, s, "Start"), (i) => Ri(this.node, i, "End"))));
|
|
4742
4742
|
}
|
|
4743
4743
|
unmount() {
|
|
4744
4744
|
}
|
|
@@ -4765,7 +4765,7 @@ class xd extends vt {
|
|
|
4765
4765
|
unmount() {
|
|
4766
4766
|
}
|
|
4767
4767
|
}
|
|
4768
|
-
function
|
|
4768
|
+
function Li(t, e, n) {
|
|
4769
4769
|
const { props: s } = t;
|
|
4770
4770
|
if (t.current instanceof HTMLButtonElement && t.current.disabled)
|
|
4771
4771
|
return;
|
|
@@ -4776,27 +4776,27 @@ function Ri(t, e, n) {
|
|
|
4776
4776
|
class wd extends vt {
|
|
4777
4777
|
mount() {
|
|
4778
4778
|
const { current: e } = this.node;
|
|
4779
|
-
e && (this.unmount = Gl(e, (n, s) => (
|
|
4779
|
+
e && (this.unmount = Gl(e, (n, s) => (Li(this.node, s, "Start"), (i, { success: o }) => Li(this.node, i, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
4780
4780
|
}
|
|
4781
4781
|
unmount() {
|
|
4782
4782
|
}
|
|
4783
4783
|
}
|
|
4784
|
-
const
|
|
4785
|
-
const e =
|
|
4784
|
+
const An = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), Td = (t) => {
|
|
4785
|
+
const e = An.get(t.target);
|
|
4786
4786
|
e && e(t);
|
|
4787
4787
|
}, Cd = (t) => {
|
|
4788
4788
|
t.forEach(Td);
|
|
4789
4789
|
};
|
|
4790
4790
|
function Pd({ root: t, ...e }) {
|
|
4791
4791
|
const n = t || document;
|
|
4792
|
-
|
|
4793
|
-
const s =
|
|
4792
|
+
en.has(n) || en.set(n, {});
|
|
4793
|
+
const s = en.get(n), i = JSON.stringify(e);
|
|
4794
4794
|
return s[i] || (s[i] = new IntersectionObserver(Cd, { root: t, ...e })), s[i];
|
|
4795
4795
|
}
|
|
4796
4796
|
function Sd(t, e, n) {
|
|
4797
4797
|
const s = Pd(e);
|
|
4798
|
-
return
|
|
4799
|
-
|
|
4798
|
+
return An.set(t, n), s.observe(t), () => {
|
|
4799
|
+
An.delete(t), s.unobserve(t);
|
|
4800
4800
|
};
|
|
4801
4801
|
}
|
|
4802
4802
|
const kd = {
|
|
@@ -4861,14 +4861,14 @@ const Vd = {
|
|
|
4861
4861
|
...Vd,
|
|
4862
4862
|
...bd,
|
|
4863
4863
|
...Ed
|
|
4864
|
-
}, Rd = /* @__PURE__ */ Dc(Dd, $c),
|
|
4864
|
+
}, Rd = /* @__PURE__ */ Dc(Dd, $c), fs = "-", Ld = (t) => {
|
|
4865
4865
|
const e = Id(t), {
|
|
4866
4866
|
conflictingClassGroups: n,
|
|
4867
4867
|
conflictingClassGroupModifiers: s
|
|
4868
4868
|
} = t;
|
|
4869
4869
|
return {
|
|
4870
4870
|
getClassGroupId: (r) => {
|
|
4871
|
-
const a = r.split(
|
|
4871
|
+
const a = r.split(fs);
|
|
4872
4872
|
return a[0] === "" && a.length !== 1 && a.shift(), ko(a, e) || Kd(r);
|
|
4873
4873
|
},
|
|
4874
4874
|
getConflictingClassGroupIds: (r, a) => {
|
|
@@ -4884,13 +4884,13 @@ const Vd = {
|
|
|
4884
4884
|
return i;
|
|
4885
4885
|
if (e.validators.length === 0)
|
|
4886
4886
|
return;
|
|
4887
|
-
const o = t.join(
|
|
4887
|
+
const o = t.join(fs);
|
|
4888
4888
|
return e.validators.find(({
|
|
4889
4889
|
validator: r
|
|
4890
4890
|
}) => r(o))?.classGroupId;
|
|
4891
|
-
},
|
|
4892
|
-
if (
|
|
4893
|
-
const e =
|
|
4891
|
+
}, Ki = /^\[(.+)\]$/, Kd = (t) => {
|
|
4892
|
+
if (Ki.test(t)) {
|
|
4893
|
+
const e = Ki.exec(t)[1], n = e?.substring(0, e.indexOf(":"));
|
|
4894
4894
|
if (n)
|
|
4895
4895
|
return "arbitrary.." + n;
|
|
4896
4896
|
}
|
|
@@ -4903,18 +4903,18 @@ const Vd = {
|
|
|
4903
4903
|
validators: []
|
|
4904
4904
|
};
|
|
4905
4905
|
for (const i in n)
|
|
4906
|
-
|
|
4906
|
+
Mn(n[i], s, i, e);
|
|
4907
4907
|
return s;
|
|
4908
|
-
},
|
|
4908
|
+
}, Mn = (t, e, n, s) => {
|
|
4909
4909
|
t.forEach((i) => {
|
|
4910
4910
|
if (typeof i == "string") {
|
|
4911
|
-
const o = i === "" ? e :
|
|
4911
|
+
const o = i === "" ? e : Ii(e, i);
|
|
4912
4912
|
o.classGroupId = n;
|
|
4913
4913
|
return;
|
|
4914
4914
|
}
|
|
4915
4915
|
if (typeof i == "function") {
|
|
4916
4916
|
if (_d(i)) {
|
|
4917
|
-
|
|
4917
|
+
Mn(i(s), e, n, s);
|
|
4918
4918
|
return;
|
|
4919
4919
|
}
|
|
4920
4920
|
e.validators.push({
|
|
@@ -4924,12 +4924,12 @@ const Vd = {
|
|
|
4924
4924
|
return;
|
|
4925
4925
|
}
|
|
4926
4926
|
Object.entries(i).forEach(([o, r]) => {
|
|
4927
|
-
|
|
4927
|
+
Mn(r, Ii(e, o), n, s);
|
|
4928
4928
|
});
|
|
4929
4929
|
});
|
|
4930
|
-
},
|
|
4930
|
+
}, Ii = (t, e) => {
|
|
4931
4931
|
let n = t;
|
|
4932
|
-
return e.split(
|
|
4932
|
+
return e.split(fs).forEach((s) => {
|
|
4933
4933
|
n.nextPart.has(s) || n.nextPart.set(s, {
|
|
4934
4934
|
nextPart: /* @__PURE__ */ new Map(),
|
|
4935
4935
|
validators: []
|
|
@@ -4959,7 +4959,7 @@ const Vd = {
|
|
|
4959
4959
|
n.has(o) ? n.set(o, r) : i(o, r);
|
|
4960
4960
|
}
|
|
4961
4961
|
};
|
|
4962
|
-
},
|
|
4962
|
+
}, Vn = "!", En = ":", Od = En.length, Fd = (t) => {
|
|
4963
4963
|
const {
|
|
4964
4964
|
prefix: e,
|
|
4965
4965
|
experimentalParseClassName: n
|
|
@@ -4970,7 +4970,7 @@ const Vd = {
|
|
|
4970
4970
|
for (let w = 0; w < i.length; w++) {
|
|
4971
4971
|
let C = i[w];
|
|
4972
4972
|
if (r === 0 && a === 0) {
|
|
4973
|
-
if (C ===
|
|
4973
|
+
if (C === En) {
|
|
4974
4974
|
o.push(i.slice(l, w)), l = w + Od;
|
|
4975
4975
|
continue;
|
|
4976
4976
|
}
|
|
@@ -4990,7 +4990,7 @@ const Vd = {
|
|
|
4990
4990
|
};
|
|
4991
4991
|
};
|
|
4992
4992
|
if (e) {
|
|
4993
|
-
const i = e +
|
|
4993
|
+
const i = e + En, o = s;
|
|
4994
4994
|
s = (r) => r.startsWith(i) ? o(r.substring(i.length)) : {
|
|
4995
4995
|
isExternal: !0,
|
|
4996
4996
|
modifiers: [],
|
|
@@ -5007,7 +5007,7 @@ const Vd = {
|
|
|
5007
5007
|
});
|
|
5008
5008
|
}
|
|
5009
5009
|
return s;
|
|
5010
|
-
}, jd = (t) => t.endsWith(
|
|
5010
|
+
}, jd = (t) => t.endsWith(Vn) ? t.substring(0, t.length - 1) : t.startsWith(Vn) ? t.substring(1) : t, Nd = (t) => {
|
|
5011
5011
|
const e = Object.fromEntries(t.orderSensitiveModifiers.map((s) => [s, !0]));
|
|
5012
5012
|
return (s) => {
|
|
5013
5013
|
if (s.length <= 1)
|
|
@@ -5055,7 +5055,7 @@ const Vd = {
|
|
|
5055
5055
|
}
|
|
5056
5056
|
P = !1;
|
|
5057
5057
|
}
|
|
5058
|
-
const y = o(m).join(":"), d = v ? y +
|
|
5058
|
+
const y = o(m).join(":"), d = v ? y + Vn : y, p = d + h;
|
|
5059
5059
|
if (r.includes(p))
|
|
5060
5060
|
continue;
|
|
5061
5061
|
r.push(p);
|
|
@@ -5102,12 +5102,12 @@ function Wd(t, ...e) {
|
|
|
5102
5102
|
const j = (t) => {
|
|
5103
5103
|
const e = (n) => n[t] || [];
|
|
5104
5104
|
return e.isThemeGetter = !0, e;
|
|
5105
|
-
}, Mo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Vo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Hd = /^\d+\/\d+$/, Xd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yd = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, qd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Zd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Jd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Mt = (t) => Hd.test(t), D = (t) => !!t && !Number.isNaN(Number(t)), mt = (t) => !!t && Number.isInteger(Number(t)),
|
|
5105
|
+
}, Mo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Vo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Hd = /^\d+\/\d+$/, Xd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yd = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, qd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Zd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Jd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Mt = (t) => Hd.test(t), D = (t) => !!t && !Number.isNaN(Number(t)), mt = (t) => !!t && Number.isInteger(Number(t)), nn = (t) => t.endsWith("%") && D(t.slice(0, -1)), ct = (t) => Xd.test(t), Qd = () => !0, th = (t) => (
|
|
5106
5106
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
5107
5107
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
5108
5108
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
5109
5109
|
Yd.test(t) && !qd.test(t)
|
|
5110
|
-
), Eo = () => !1, eh = (t) => Zd.test(t), nh = (t) => Jd.test(t), sh = (t) => !S(t) && !k(t), ih = (t) => zt(t, Lo, Eo), S = (t) => Mo.test(t), wt = (t) => zt(t, Ko, th),
|
|
5110
|
+
), Eo = () => !1, eh = (t) => Zd.test(t), nh = (t) => Jd.test(t), sh = (t) => !S(t) && !k(t), ih = (t) => zt(t, Lo, Eo), S = (t) => Mo.test(t), wt = (t) => zt(t, Ko, th), sn = (t) => zt(t, ch, D), _i = (t) => zt(t, Do, Eo), rh = (t) => zt(t, Ro, nh), ve = (t) => zt(t, Io, eh), k = (t) => Vo.test(t), Wt = (t) => $t(t, Ko), oh = (t) => $t(t, uh), Bi = (t) => $t(t, Do), ah = (t) => $t(t, Lo), lh = (t) => $t(t, Ro), xe = (t) => $t(t, Io, !0), zt = (t, e, n) => {
|
|
5111
5111
|
const s = Mo.exec(t);
|
|
5112
5112
|
return s ? s[1] ? e(s[1]) : n(s[2]) : !1;
|
|
5113
5113
|
}, $t = (t, e, n = !1) => {
|
|
@@ -5134,13 +5134,13 @@ const j = (t) => {
|
|
|
5134
5134
|
"left-bottom"
|
|
5135
5135
|
], g = () => [...p(), k, S], x = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], b = () => [k, S, l], V = () => [Mt, "full", "auto", ...b()], E = () => [mt, "none", "subgrid", k, S], L = () => ["auto", {
|
|
5136
5136
|
span: ["full", mt, k, S]
|
|
5137
|
-
}, mt, k, S], N = () => [mt, "auto", k, S], pt = () => ["auto", "min", "max", "fr", k, S], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Z = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...b()], R = () => [Mt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], A = () => [t, k, S], tt = () => [...p(),
|
|
5137
|
+
}, mt, k, S], N = () => [mt, "auto", k, S], pt = () => ["auto", "min", "max", "fr", k, S], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Z = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...b()], R = () => [Mt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], A = () => [t, k, S], tt = () => [...p(), Bi, _i, {
|
|
5138
5138
|
position: [k, S]
|
|
5139
5139
|
}], lt = () => ["no-repeat", {
|
|
5140
5140
|
repeat: ["", "x", "y", "space", "round"]
|
|
5141
5141
|
}], le = () => ["auto", "cover", "contain", ah, ih, {
|
|
5142
5142
|
size: [k, S]
|
|
5143
|
-
}], Be = () => [
|
|
5143
|
+
}], Be = () => [nn, Wt, wt], H = () => [
|
|
5144
5144
|
// Deprecated since Tailwind CSS v4.0.0
|
|
5145
5145
|
"",
|
|
5146
5146
|
"none",
|
|
@@ -5148,7 +5148,7 @@ const j = (t) => {
|
|
|
5148
5148
|
u,
|
|
5149
5149
|
k,
|
|
5150
5150
|
S
|
|
5151
|
-
], J = () => ["", D, Wt, wt], ce = () => ["solid", "dashed", "dotted", "double"],
|
|
5151
|
+
], J = () => ["", D, Wt, wt], ce = () => ["solid", "dashed", "dotted", "double"], ps = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [D, nn, Bi, _i], ms = () => [
|
|
5152
5152
|
// Deprecated since Tailwind CSS v4.0.0
|
|
5153
5153
|
"",
|
|
5154
5154
|
"none",
|
|
@@ -5865,14 +5865,14 @@ const j = (t) => {
|
|
|
5865
5865
|
* @see https://tailwindcss.com/docs/font-weight
|
|
5866
5866
|
*/
|
|
5867
5867
|
"font-weight": [{
|
|
5868
|
-
font: [s, k,
|
|
5868
|
+
font: [s, k, sn]
|
|
5869
5869
|
}],
|
|
5870
5870
|
/**
|
|
5871
5871
|
* Font Stretch
|
|
5872
5872
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
5873
5873
|
*/
|
|
5874
5874
|
"font-stretch": [{
|
|
5875
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
5875
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", nn, S]
|
|
5876
5876
|
}],
|
|
5877
5877
|
/**
|
|
5878
5878
|
* Font Family
|
|
@@ -5923,7 +5923,7 @@ const j = (t) => {
|
|
|
5923
5923
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
5924
5924
|
*/
|
|
5925
5925
|
"line-clamp": [{
|
|
5926
|
-
"line-clamp": [D, "none", k,
|
|
5926
|
+
"line-clamp": [D, "none", k, sn]
|
|
5927
5927
|
}],
|
|
5928
5928
|
/**
|
|
5929
5929
|
* Line Height
|
|
@@ -6609,14 +6609,14 @@ const j = (t) => {
|
|
|
6609
6609
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
6610
6610
|
*/
|
|
6611
6611
|
"mix-blend": [{
|
|
6612
|
-
"mix-blend": [...
|
|
6612
|
+
"mix-blend": [...ps(), "plus-darker", "plus-lighter"]
|
|
6613
6613
|
}],
|
|
6614
6614
|
/**
|
|
6615
6615
|
* Background Blend Mode
|
|
6616
6616
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
6617
6617
|
*/
|
|
6618
6618
|
"bg-blend": [{
|
|
6619
|
-
"bg-blend":
|
|
6619
|
+
"bg-blend": ps()
|
|
6620
6620
|
}],
|
|
6621
6621
|
/**
|
|
6622
6622
|
* Mask Clip
|
|
@@ -6835,7 +6835,7 @@ const j = (t) => {
|
|
|
6835
6835
|
* @see https://tailwindcss.com/docs/blur
|
|
6836
6836
|
*/
|
|
6837
6837
|
blur: [{
|
|
6838
|
-
blur:
|
|
6838
|
+
blur: ms()
|
|
6839
6839
|
}],
|
|
6840
6840
|
/**
|
|
6841
6841
|
* Brightness
|
|
@@ -6925,7 +6925,7 @@ const j = (t) => {
|
|
|
6925
6925
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
6926
6926
|
*/
|
|
6927
6927
|
"backdrop-blur": [{
|
|
6928
|
-
"backdrop-blur":
|
|
6928
|
+
"backdrop-blur": ms()
|
|
6929
6929
|
}],
|
|
6930
6930
|
/**
|
|
6931
6931
|
* Backdrop Brightness
|
|
@@ -7508,7 +7508,7 @@ const j = (t) => {
|
|
|
7508
7508
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
7509
7509
|
*/
|
|
7510
7510
|
"stroke-w": [{
|
|
7511
|
-
stroke: [D, Wt, wt,
|
|
7511
|
+
stroke: [D, Wt, wt, sn]
|
|
7512
7512
|
}],
|
|
7513
7513
|
/**
|
|
7514
7514
|
* Stroke
|
|
@@ -7583,8 +7583,8 @@ const j = (t) => {
|
|
|
7583
7583
|
},
|
|
7584
7584
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
7585
7585
|
};
|
|
7586
|
-
},
|
|
7587
|
-
const i = e[t.name], o = t.params
|
|
7586
|
+
}, Oi = /* @__PURE__ */ Wd(dh), rn = 1e3, hh = ({ data: t, modals: e, index: n, initialParams: s }) => {
|
|
7587
|
+
const i = e[t.name], o = t.params ?? s, r = o?.animate ?? s?.animate, a = o?.blur ?? s?.blur ?? !0, l = o?.onClose ?? s?.onClose, u = o?.backdrop ?? s?.backdrop, c = o?.body ?? s?.body, f = o?.position ?? s?.position ?? pe.CENTER, m = o?.closeOnClickOutside ?? s?.closeOnClickOutside, v = ke((C) => C.active), w = ke((C) => C.closeModal);
|
|
7588
7588
|
return /* @__PURE__ */ Gi(
|
|
7589
7589
|
Rd.div,
|
|
7590
7590
|
{
|
|
@@ -7592,46 +7592,49 @@ const j = (t) => {
|
|
|
7592
7592
|
initial: r?.exit ?? { opacity: 0 },
|
|
7593
7593
|
animate: r?.animate ?? { opacity: 1 },
|
|
7594
7594
|
layout: !0,
|
|
7595
|
+
className: je("fixed top-0 left-0 right-0 bottom-0", {
|
|
7596
|
+
"backdrop-blur-sm": a
|
|
7597
|
+
}),
|
|
7598
|
+
style: {
|
|
7599
|
+
zIndex: rn + n
|
|
7600
|
+
},
|
|
7595
7601
|
children: [
|
|
7596
7602
|
/* @__PURE__ */ Q(
|
|
7597
7603
|
"div",
|
|
7598
7604
|
{
|
|
7599
|
-
className:
|
|
7600
|
-
|
|
7601
|
-
"
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
}
|
|
7605
|
-
),
|
|
7606
|
-
l?.className
|
|
7605
|
+
className: Oi(
|
|
7606
|
+
je("absolute top-0 left-0 right-0 bottom-0 bg-black/40", {
|
|
7607
|
+
"react-motion-modal__active": v?.id === t.id
|
|
7608
|
+
}),
|
|
7609
|
+
u?.className
|
|
7607
7610
|
),
|
|
7608
7611
|
style: {
|
|
7609
|
-
zIndex:
|
|
7612
|
+
zIndex: rn + n
|
|
7610
7613
|
},
|
|
7611
7614
|
onClick: () => {
|
|
7612
|
-
|
|
7615
|
+
m && (w(), l?.());
|
|
7613
7616
|
}
|
|
7614
7617
|
}
|
|
7615
7618
|
),
|
|
7616
7619
|
/* @__PURE__ */ Q(
|
|
7617
7620
|
"div",
|
|
7618
7621
|
{
|
|
7619
|
-
className:
|
|
7620
|
-
|
|
7622
|
+
className: Oi(
|
|
7623
|
+
je(
|
|
7621
7624
|
"p-5 absolute max-h-screen max-w-screen overflow-hidden left-0 right-0",
|
|
7622
7625
|
{
|
|
7623
|
-
"overflow-auto":
|
|
7624
|
-
"top-1/2 -translate-y-1/2 lg:left-1/2 lg:-translate-x-1/2":
|
|
7625
|
-
"top-0 lg:left-1/2 lg:-translate-x-1/2":
|
|
7626
|
-
"bottom-0 lg:left-1/2 lg:-translate-x-1/2":
|
|
7626
|
+
"overflow-auto": v?.id === t.id,
|
|
7627
|
+
"top-1/2 -translate-y-1/2 lg:left-1/2 lg:-translate-x-1/2": f === pe.CENTER,
|
|
7628
|
+
"top-0 lg:left-1/2 lg:-translate-x-1/2": f === pe.TOP,
|
|
7629
|
+
"bottom-0 lg:left-1/2 lg:-translate-x-1/2": f === pe.BOTTOM
|
|
7627
7630
|
}
|
|
7628
7631
|
),
|
|
7629
|
-
|
|
7632
|
+
c?.className
|
|
7630
7633
|
),
|
|
7631
7634
|
style: {
|
|
7632
|
-
zIndex:
|
|
7635
|
+
zIndex: rn + n + 1
|
|
7633
7636
|
},
|
|
7634
|
-
onClick: (
|
|
7637
|
+
onClick: (C) => C.stopPropagation(),
|
|
7635
7638
|
children: /* @__PURE__ */ Q(i, { ...o })
|
|
7636
7639
|
}
|
|
7637
7640
|
)
|