pagecast 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.codex/skills/publish-report/SKILL.md +140 -0
- package/.codex/skills/publish-report/agents/openai.yaml +7 -0
- package/LICENSE +21 -0
- package/README.md +318 -0
- package/llms.txt +50 -0
- package/package.json +51 -0
- package/plugin/.claude-plugin/plugin.json +10 -0
- package/plugin/README.md +99 -0
- package/plugin/hooks/detect-report.mjs +109 -0
- package/plugin/hooks/hooks.json +16 -0
- package/plugin/skills/publish-report/SKILL.md +117 -0
- package/public/assets/code-mirror-html-CwFouvGT.js +24 -0
- package/public/assets/dnd-vendor-BtfBOykZ.js +1 -0
- package/public/assets/index-BTCh8CIt.js +54 -0
- package/public/assets/index-XOrnLHdD.css +1 -0
- package/public/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
- package/public/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
- package/public/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
- package/public/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
- package/public/assets/inter-latin-600-normal-CiBQ2DWP.woff +0 -0
- package/public/assets/inter-latin-600-normal-LgqL8muc.woff2 +0 -0
- package/public/assets/inter-latin-700-normal-BLAVimhd.woff +0 -0
- package/public/assets/inter-latin-700-normal-Yt3aPRUw.woff2 +0 -0
- package/public/assets/motion-vendor-CDgKLzlB.js +9 -0
- package/public/index.html +16 -0
- package/src/cli.js +333 -0
- package/src/markdown.js +0 -0
- package/src/server.js +3918 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/inter-latin-400-normal-C38fXH4l.woff2) format("woff2"),url(/assets/inter-latin-400-normal-CyCys3Eg.woff) format("woff")}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/inter-latin-500-normal-Cerq10X2.woff2) format("woff2"),url(/assets/inter-latin-500-normal-BL9OpVg8.woff) format("woff")}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/inter-latin-600-normal-LgqL8muc.woff2) format("woff2"),url(/assets/inter-latin-600-normal-CiBQ2DWP.woff) format("woff")}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/inter-latin-700-normal-Yt3aPRUw.woff2) format("woff2"),url(/assets/inter-latin-700-normal-BLAVimhd.woff) format("woff")}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 240 10% 4%;--card: 0 0% 100%;--card-foreground: 240 10% 4%;--popover: 0 0% 100%;--popover-foreground: 240 10% 4%;--primary: 240 6% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 5% 96%;--secondary-foreground: 240 6% 10%;--muted: 240 5% 96%;--muted-foreground: 240 4% 46%;--accent: 240 5% 96%;--accent-foreground: 240 6% 10%;--destructive: 0 72% 51%;--destructive-foreground: 0 0% 98%;--border: 240 6% 90%;--input: 240 6% 90%;--ring: 240 6% 10%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"cv02","cv03","cv04","cv11"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-2{top:.5rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-3{margin-bottom:.75rem}.mr-2{margin-right:.5rem}.mr-8{margin-right:2rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-14{height:3.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[85vh\]{height:85vh}.h-full{height:100%}.h-px{height:1px}.max-h-64{max-height:16rem}.max-h-\[--radix-select-content-available-height\]{max-height:var(--radix-select-content-available-height)}.max-h-\[420px\]{max-height:420px}.min-h-0{min-height:0px}.min-h-\[420px\]{min-height:420px}.min-h-\[520px\]{min-height:520px}.min-h-screen{min-height:100vh}.w-0\.5{width:.125rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[1px\]{width:1px}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\[10rem\]{min-width:10rem}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-4{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1\.5{row-gap:.375rem}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-transparent{border-color:transparent}.bg-accent{background-color:hsl(var(--accent))}.bg-background{background-color:hsl(var(--background))}.bg-background\/90{background-color:hsl(var(--background) / .9)}.bg-black\/40{background-color:#0006}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-destructive\/5{background-color:hsl(var(--destructive) / .05)}.bg-input{background-color:hsl(var(--input))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/20{background-color:hsl(var(--muted) / .2)}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-sky-500{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-2{padding-left:.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-4{line-height:1rem}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-ring{--tw-ring-color: hsl(var(--ring))}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-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)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-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,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-destructive:hover{color:hsl(var(--destructive))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-destructive\/10:focus{background-color:hsl(var(--destructive) / .1)}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-destructive:focus{color:hsl(var(--destructive))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.active\:cursor-grabbing:active{cursor:grabbing}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:rounded-md{border-radius:calc(var(--radius) - 2px)}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}@media(min-width:640px){.sm\:mt-0{margin-top:0}.sm\:inline-flex{display:inline-flex}.sm\:max-w-2xl{max-width:42rem}.sm\:max-w-sm{max-width:24rem}.sm\:grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-left{text-align:left}}@media(min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1024px){.lg\:max-h-none{max-height:none}.lg\:grid-cols-\[320px_minmax\(0\,1fr\)\]{grid-template-columns:320px minmax(0,1fr)}.lg\:grid-cols-\[minmax\(0\,1fr\)_300px\]{grid-template-columns:minmax(0,1fr) 300px}.lg\:grid-cols-\[minmax\(0\,1fr\)_320px\]{grid-template-columns:minmax(0,1fr) 320px}.lg\:border-b-0{border-bottom-width:0px}.lg\:border-r{border-right-width:1px}.lg\:px-8{padding-left:2rem;padding-right:2rem}}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&_\.cm-editor\]\:h-full .cm-editor{height:100%}.\[\&_\.cm-scroller\]\:font-mono .cm-scroller{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
function qo(t,e){for(var n=0;n<e.length;n++){const s=e[n];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in t)){const r=Object.getOwnPropertyDescriptor(s,i);r&&Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function Zo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var be={exports:{}},Bt={};var $n;function Jo(){if($n)return Bt;$n=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(s,i,r){var o=null;if(r!==void 0&&(o=""+r),i.key!==void 0&&(o=""+i.key),"key"in i){r={};for(var a in i)a!=="key"&&(r[a]=i[a])}else r=i;return i=r.ref,{$$typeof:t,type:s,key:o,ref:i!==void 0?i:null,props:r}}return Bt.Fragment=e,Bt.jsx=n,Bt.jsxs=n,Bt}var Hn;function Qo(){return Hn||(Hn=1,be.exports=Jo()),be.exports}var pt=Qo(),Ce={exports:{}},R={};var Kn;function tr(){if(Kn)return R;Kn=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator;function p(d){return d===null||typeof d!="object"?null:(d=h&&d[h]||d["@@iterator"],typeof d=="function"?d:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,g={};function T(d,v,D){this.props=d,this.context=v,this.refs=g,this.updater=D||m}T.prototype.isReactComponent={},T.prototype.setState=function(d,v){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,v,"setState")},T.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function w(){}w.prototype=T.prototype;function x(d,v,D){this.props=d,this.context=v,this.refs=g,this.updater=D||m}var P=x.prototype=new w;P.constructor=x,y(P,T.prototype),P.isPureReactComponent=!0;var V=Array.isArray;function L(){}var b={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function k(d,v,D){var M=D.ref;return{$$typeof:t,type:d,key:v,ref:M!==void 0?M:null,props:D}}function E(d,v){return k(d.type,v,d.props)}function B(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function W(d){var v={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(D){return v[D]})}var tt=/\/+/g;function Z(d,v){return typeof d=="object"&&d!==null&&d.key!=null?W(""+d.key):v.toString(36)}function st(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(L,L):(d.status="pending",d.then(function(v){d.status==="pending"&&(d.status="fulfilled",d.value=v)},function(v){d.status==="pending"&&(d.status="rejected",d.reason=v)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function K(d,v,D,M,I){var j=typeof d;(j==="undefined"||j==="boolean")&&(d=null);var _=!1;if(d===null)_=!0;else switch(j){case"bigint":case"string":case"number":_=!0;break;case"object":switch(d.$$typeof){case t:case e:_=!0;break;case u:return _=d._init,K(_(d._payload),v,D,M,I)}}if(_)return I=I(d),_=M===""?"."+Z(d,0):M,V(I)?(D="",_!=null&&(D=_.replace(tt,"$&/")+"/"),K(I,v,D,"",function(Xo){return Xo})):I!=null&&(B(I)&&(I=E(I,D+(I.key==null||d&&d.key===I.key?"":(""+I.key).replace(tt,"$&/")+"/")+_)),v.push(I)),1;_=0;var at=M===""?".":M+":";if(V(d))for(var J=0;J<d.length;J++)M=d[J],j=at+Z(M,J),_+=K(M,v,D,j,I);else if(J=p(d),typeof J=="function")for(d=J.call(d),J=0;!(M=d.next()).done;)M=M.value,j=at+Z(M,J++),_+=K(M,v,D,j,I);else if(j==="object"){if(typeof d.then=="function")return K(st(d),v,D,M,I);throw v=String(d),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.")}return _}function It(d,v,D){if(d==null)return d;var M=[],I=0;return K(d,M,"","",function(j){return v.call(D,j,I++)}),M}function $(d){if(d._status===-1){var v=d._result;v=v(),v.then(function(D){(d._status===0||d._status===-1)&&(d._status=1,d._result=D)},function(D){(d._status===0||d._status===-1)&&(d._status=2,d._result=D)}),d._status===-1&&(d._status=0,d._result=v)}if(d._status===1)return d._result.default;throw d._result}var Y=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},ht={map:It,forEach:function(d,v,D){It(d,function(){v.apply(this,arguments)},D)},count:function(d){var v=0;return It(d,function(){v++}),v},toArray:function(d){return It(d,function(v){return v})||[]},only:function(d){if(!B(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return R.Activity=f,R.Children=ht,R.Component=T,R.Fragment=n,R.Profiler=i,R.PureComponent=x,R.StrictMode=s,R.Suspense=l,R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,R.__COMPILER_RUNTIME={__proto__:null,c:function(d){return b.H.useMemoCache(d)}},R.cache=function(d){return function(){return d.apply(null,arguments)}},R.cacheSignal=function(){return null},R.cloneElement=function(d,v,D){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var M=y({},d.props),I=d.key;if(v!=null)for(j in v.key!==void 0&&(I=""+v.key),v)!C.call(v,j)||j==="key"||j==="__self"||j==="__source"||j==="ref"&&v.ref===void 0||(M[j]=v[j]);var j=arguments.length-2;if(j===1)M.children=D;else if(1<j){for(var _=Array(j),at=0;at<j;at++)_[at]=arguments[at+2];M.children=_}return k(d.type,I,M)},R.createContext=function(d){return d={$$typeof:o,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:r,_context:d},d},R.createElement=function(d,v,D){var M,I={},j=null;if(v!=null)for(M in v.key!==void 0&&(j=""+v.key),v)C.call(v,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(I[M]=v[M]);var _=arguments.length-2;if(_===1)I.children=D;else if(1<_){for(var at=Array(_),J=0;J<_;J++)at[J]=arguments[J+2];I.children=at}if(d&&d.defaultProps)for(M in _=d.defaultProps,_)I[M]===void 0&&(I[M]=_[M]);return k(d,j,I)},R.createRef=function(){return{current:null}},R.forwardRef=function(d){return{$$typeof:a,render:d}},R.isValidElement=B,R.lazy=function(d){return{$$typeof:u,_payload:{_status:-1,_result:d},_init:$}},R.memo=function(d,v){return{$$typeof:c,type:d,compare:v===void 0?null:v}},R.startTransition=function(d){var v=b.T,D={};b.T=D;try{var M=d(),I=b.S;I!==null&&I(D,M),typeof M=="object"&&M!==null&&typeof M.then=="function"&&M.then(L,Y)}catch(j){Y(j)}finally{v!==null&&D.types!==null&&(v.types=D.types),b.T=v}},R.unstable_useCacheRefresh=function(){return b.H.useCacheRefresh()},R.use=function(d){return b.H.use(d)},R.useActionState=function(d,v,D){return b.H.useActionState(d,v,D)},R.useCallback=function(d,v){return b.H.useCallback(d,v)},R.useContext=function(d){return b.H.useContext(d)},R.useDebugValue=function(){},R.useDeferredValue=function(d,v){return b.H.useDeferredValue(d,v)},R.useEffect=function(d,v){return b.H.useEffect(d,v)},R.useEffectEvent=function(d){return b.H.useEffectEvent(d)},R.useId=function(){return b.H.useId()},R.useImperativeHandle=function(d,v,D){return b.H.useImperativeHandle(d,v,D)},R.useInsertionEffect=function(d,v){return b.H.useInsertionEffect(d,v)},R.useLayoutEffect=function(d,v){return b.H.useLayoutEffect(d,v)},R.useMemo=function(d,v){return b.H.useMemo(d,v)},R.useOptimistic=function(d,v){return b.H.useOptimistic(d,v)},R.useReducer=function(d,v,D){return b.H.useReducer(d,v,D)},R.useRef=function(d){return b.H.useRef(d)},R.useState=function(d){return b.H.useState(d)},R.useSyncExternalStore=function(d,v,D){return b.H.useSyncExternalStore(d,v,D)},R.useTransition=function(){return b.H.useTransition()},R.version="19.2.6",R}var zn;function er(){return zn||(zn=1,Ce.exports=tr()),Ce.exports}var S=er();const nr=Zo(S),tf=qo({__proto__:null,default:nr},[S]),mn=S.createContext({});function yn(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const sr=typeof window<"u",li=sr?S.useLayoutEffect:S.useEffect,xe=S.createContext(null);function gn(t,e){t.indexOf(e)===-1&&t.push(e)}function ce(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ft=(t,e,n)=>n>e?e:n<t?t:n;let vn=()=>{};const yt={},ci=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),fi=t=>typeof t=="object"&&t!==null,hi=t=>/^0[^.\s]+$/u.test(t);function di(t){let e;return()=>(e===void 0&&(e=t()),e)}const nt=t=>t,zt=(...t)=>t.reduce((e,n)=>s=>n(e(s))),Wt=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class Tn{constructor(){this.subscriptions=[]}add(e){return gn(this.subscriptions,e),()=>ce(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Q=t=>t*1e3,et=t=>t/1e3,pi=(t,e)=>e?t*(1e3/e):0,mi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ir=1e-7,or=12;function rr(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=mi(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>ir&&++a<or);return o}function Gt(t,e,n,s){if(t===e&&n===s)return nt;const i=r=>rr(r,0,1,t,n);return r=>r===0||r===1?r:mi(i(r),e,s)}const yi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,gi=t=>e=>1-t(1-e),vi=Gt(.33,1.53,.69,.99),xn=gi(vi),Ti=yi(xn),xi=t=>t>=1?1:(t*=2)<1?.5*xn(t):.5*(2-Math.pow(2,-10*(t-1))),wn=t=>1-Math.sin(Math.acos(t)),wi=gi(wn),Pi=yi(wn),ar=Gt(.42,0,1,1),ur=Gt(0,0,.58,1),Si=Gt(.42,0,.58,1),lr=t=>Array.isArray(t)&&typeof t[0]!="number",Ai=t=>Array.isArray(t)&&typeof t[0]=="number",cr={linear:nt,easeIn:ar,easeInOut:Si,easeOut:ur,circIn:wn,circInOut:Pi,circOut:wi,backIn:xn,backInOut:Ti,backOut:vi,anticipate:xi},fr=t=>typeof t=="string",Gn=t=>{if(Ai(t)){vn(t.length===4);const[e,n,s,i]=t;return Gt(e,n,s,i)}else if(fr(t))return cr[t];return t},qt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function hr(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,f=!1,h=!1)=>{const m=h&&i?n:s;return f&&o.add(u),m.add(u),u},cancel:u=>{s.delete(u),o.delete(u)},process:u=>{if(a=u,i){r=!0;return}i=!0;const f=n;n=s,s=f,n.forEach(l),n.clear(),i=!1,r&&(r=!1,c.process(u))}};return c}const dr=40;function bi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=qt.reduce((x,P)=>(x[P]=hr(r),x),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:f,preRender:h,render:p,postRender:m}=o,y=()=>{const x=yt.useManualTiming,P=x?i.timestamp:performance.now();n=!1,x||(i.delta=s?1e3/60:Math.max(Math.min(P-i.timestamp,dr),1)),i.timestamp=P,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),f.process(i),h.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},g=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:qt.reduce((x,P)=>{const V=o[P];return x[P]=(L,b=!1,C=!1)=>(n||g(),V.schedule(L,b,C)),x},{}),cancel:x=>{for(let P=0;P<qt.length;P++)o[qt[P]].cancel(x)},state:i,steps:o}}const{schedule:F,cancel:gt,state:z,steps:Ee}=bi(typeof requestAnimationFrame<"u"?requestAnimationFrame:nt,!0);let ee;function pr(){ee=void 0}const X={now:()=>(ee===void 0&&X.set(z.isProcessing||yt.useManualTiming?z.timestamp:performance.now()),ee),set:t=>{ee=t,queueMicrotask(pr)}},Ci=t=>e=>typeof e=="string"&&e.startsWith(t),Ei=Ci("--"),mr=Ci("var(--"),Pn=t=>mr(t)?yr.test(t.split("/*")[0].trim()):!1,yr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Yn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Dt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},$t={...Dt,transform:t=>ft(0,1,t)},Zt={...Dt,default:1},Ft=t=>Math.round(t*1e5)/1e5,Sn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gr(t){return t==null}const vr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,An=(t,e)=>n=>!!(typeof n=="string"&&vr.test(n)&&n.startsWith(t)||e&&!gr(n)&&Object.prototype.hasOwnProperty.call(n,e)),Vi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Sn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Tr=t=>ft(0,255,t),Ve={...Dt,transform:t=>Math.round(Tr(t))},wt={test:An("rgb","red"),parse:Vi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Ve.transform(t)+", "+Ve.transform(e)+", "+Ve.transform(n)+", "+Ft($t.transform(s))+")"};function xr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const $e={test:An("#"),parse:xr,transform:wt.transform},Yt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),dt=Yt("deg"),ct=Yt("%"),A=Yt("px"),wr=Yt("vh"),Pr=Yt("vw"),Xn={...ct,parse:t=>ct.parse(t)/100,transform:t=>ct.transform(t*100)},Ct={test:An("hsl","hue"),parse:Vi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+ct.transform(Ft(e))+", "+ct.transform(Ft(n))+", "+Ft($t.transform(s))+")"},U={test:t=>wt.test(t)||$e.test(t)||Ct.test(t),parse:t=>wt.test(t)?wt.parse(t):Ct.test(t)?Ct.parse(t):$e.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?wt.transform(t):Ct.transform(t),getAnimatableNone:t=>{const e=U.parse(t);return e.alpha=0,U.transform(e)}},Sr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ar(t){return isNaN(t)&&typeof t=="string"&&(t.match(Sn)?.length||0)+(t.match(Sr)?.length||0)>0}const Ri="number",Mi="color",br="var",Cr="var(",qn="${}",Er=/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;function Rt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Er,l=>(U.test(l)?(s.color.push(r),i.push(Mi),n.push(U.parse(l))):l.startsWith(Cr)?(s.var.push(r),i.push(br),n.push(l)):(s.number.push(r),i.push(Ri),n.push(parseFloat(l))),++r,qn)).split(qn);return{values:n,split:a,indexes:s,types:i}}function Vr(t){return Rt(t).values}function Di({split:t,types:e}){const n=t.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=t[r],s[r]!==void 0){const o=e[r];o===Ri?i+=Ft(s[r]):o===Mi?i+=U.transform(s[r]):i+=s[r]}return i}}function Rr(t){return Di(Rt(t))}const Mr=t=>typeof t=="number"?0:U.test(t)?U.getAnimatableNone(t):t,Dr=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Mr(t);function Lr(t){const e=Rt(t);return Di(e)(e.values.map((s,i)=>Dr(s,e.split[i])))}const rt={test:Ar,parse:Vr,createTransformer:Rr,getAnimatableNone:Lr};function Re(t,e,n){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}function kr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Re(l,a,t+1/3),r=Re(l,a,t),o=Re(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function fe(t,e){return n=>n>0?e:t}const O=(t,e,n)=>t+(e-t)*n,Me=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Ir=[$e,wt,Ct],Br=t=>Ir.find(e=>e.test(t));function Zn(t){const e=Br(t);if(!e)return!1;let n=e.parse(t);return e===Ct&&(n=kr(n)),n}const Jn=(t,e)=>{const n=Zn(t),s=Zn(e);if(!n||!s)return fe(t,e);const i={...n};return r=>(i.red=Me(n.red,s.red,r),i.green=Me(n.green,s.green,r),i.blue=Me(n.blue,s.blue,r),i.alpha=O(n.alpha,s.alpha,r),wt.transform(i))},He=new Set(["none","hidden"]);function jr(t,e){return He.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Or(t,e){return n=>O(t,e,n)}function bn(t){return typeof t=="number"?Or:typeof t=="string"?Pn(t)?fe:U.test(t)?Jn:Nr:Array.isArray(t)?Li:typeof t=="object"?U.test(t)?Jn:Fr:fe}function Li(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>bn(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Fr(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=bn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function _r(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const Nr=(t,e)=>{const n=rt.createTransformer(e),s=Rt(t),i=Rt(e);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?He.has(t)&&!i.values.length||He.has(e)&&!s.values.length?jr(t,e):zt(Li(_r(s,i),i.values),n):fe(t,e)};function ki(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?O(t,e,n):bn(t)(t,e)}const Ur=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>F.update(e,n),stop:()=>gt(e),now:()=>z.isProcessing?z.timestamp:X.now()}},Ii=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},he=2e4;function Cn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<he;)e+=n,s=t.next(e);return e>=he?1/0:e}function Wr(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(Cn(s),he);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:et(i)}}const N={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Ke(t,e){return t*Math.sqrt(1-e*e)}const $r=12;function Hr(t,e,n){let s=n;for(let i=1;i<$r;i++)s=s-t(s)/e(s);return s}const De=.001;function Kr({duration:t=N.duration,bounce:e=N.bounce,velocity:n=N.velocity,mass:s=N.mass}){let i,r,o=1-e;o=ft(N.minDamping,N.maxDamping,o),t=ft(N.minDuration,N.maxDuration,et(t)),o<1?(i=c=>{const u=c*o,f=u*t,h=u-n,p=Ke(c,o),m=Math.exp(-f);return De-h/p*m},r=c=>{const f=c*o*t,h=f*n+n,p=Math.pow(o,2)*Math.pow(c,2)*t,m=Math.exp(-f),y=Ke(Math.pow(c,2),o);return(-i(c)+De>0?-1:1)*((h-p)*m)/y}):(i=c=>{const u=Math.exp(-c*t),f=(c-n)*t+1;return-De+u*f},r=c=>{const u=Math.exp(-c*t),f=(n-c)*(t*t);return u*f});const a=5/t,l=Hr(i,r,a);if(t=Q(t),isNaN(l))return{stiffness:N.stiffness,damping:N.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const zr=["duration","bounce"],Gr=["stiffness","damping","mass"];function Qn(t,e){return e.some(n=>t[n]!==void 0)}function Yr(t){let e={velocity:N.velocity,stiffness:N.stiffness,damping:N.damping,mass:N.mass,isResolvedFromDuration:!1,...t};if(!Qn(t,Gr)&&Qn(t,zr))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*ft(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:N.mass,stiffness:i,damping:r}}else{const n=Kr({...t,velocity:0});e={...e,...n,mass:N.mass},e.isResolvedFromDuration=!0}return e}function de(t=N.visualDuration,e=N.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:f,velocity:h,isResolvedFromDuration:p}=Yr({...n,velocity:-et(n.velocity||0)}),m=h||0,y=c/(2*Math.sqrt(l*u)),g=o-r,T=et(Math.sqrt(l/u)),w=Math.abs(g)<5;s||(s=w?N.restSpeed.granular:N.restSpeed.default),i||(i=w?N.restDelta.granular:N.restDelta.default);let x,P,V,L,b,C;if(y<1)V=Ke(T,y),L=(m+y*T*g)/V,x=E=>{const B=Math.exp(-y*T*E);return o-B*(L*Math.sin(V*E)+g*Math.cos(V*E))},b=y*T*L+g*V,C=y*T*g-L*V,P=E=>Math.exp(-y*T*E)*(b*Math.sin(V*E)+C*Math.cos(V*E));else if(y===1){x=B=>o-Math.exp(-T*B)*(g+(m+T*g)*B);const E=m+T*g;P=B=>Math.exp(-T*B)*(T*E*B-m)}else{const E=T*Math.sqrt(y*y-1);x=Z=>{const st=Math.exp(-y*T*Z),K=Math.min(E*Z,300);return o-st*((m+y*T*g)*Math.sinh(K)+E*g*Math.cosh(K))/E};const B=(m+y*T*g)/E,W=y*T*B-g*E,tt=y*T*g-B*E;P=Z=>{const st=Math.exp(-y*T*Z),K=Math.min(E*Z,300);return st*(W*Math.sinh(K)+tt*Math.cosh(K))}}const k={calculatedDuration:p&&f||null,velocity:E=>Q(P(E)),next:E=>{if(!p&&y<1){const W=Math.exp(-y*T*E),tt=Math.sin(V*E),Z=Math.cos(V*E),st=o-W*(L*tt+g*Z),K=Q(W*(b*tt+C*Z));return a.done=Math.abs(K)<=s&&Math.abs(o-st)<=i,a.value=a.done?o:st,a}const B=x(E);if(p)a.done=E>=f;else{const W=Q(P(E));a.done=Math.abs(W)<=s&&Math.abs(o-B)<=i}return a.value=a.done?o:B,a},toString:()=>{const E=Math.min(Cn(k),he),B=Ii(W=>k.next(E*W).value,E,30);return E+"ms "+B},toTransition:()=>{}};return k}de.applyToOptions=t=>{const e=Wr(t,100,de);return t.ease=e.ease,t.duration=Q(e.duration),t.type="keyframes",t};const Xr=5;function Bi(t,e,n){const s=Math.max(e-Xr,0);return pi(n-t(s),e-s)}function ze({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=t[0],h={done:!1,value:f},p=C=>a!==void 0&&C<a||l!==void 0&&C>l,m=C=>a===void 0?l:l===void 0||Math.abs(a-C)<Math.abs(l-C)?a:l;let y=n*e;const g=f+y,T=o===void 0?g:o(g);T!==g&&(y=T-f);const w=C=>-y*Math.exp(-C/s),x=C=>T+w(C),P=C=>{const k=w(C),E=x(C);h.done=Math.abs(k)<=c,h.value=h.done?T:E};let V,L;const b=C=>{p(h.value)&&(V=C,L=de({keyframes:[h.value,m(h.value)],velocity:Bi(x,C,h.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return b(0),{calculatedDuration:null,next:C=>{let k=!1;return!L&&V===void 0&&(k=!0,P(C),b(C)),V!==void 0&&C>=V?L.next(C-V):(!k&&P(C),h)}}}function qr(t,e,n){const s=[],i=n||yt.mix||ki,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||nt:e;a=zt(l,a)}s.push(a)}return s}function Zr(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(vn(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=qr(e,s,i),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const h=Wt(t[f],t[f+1],u);return a[f](h)};return n?u=>c(ft(t[0],t[r-1],u)):c}function Jr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Wt(0,e,s);t.push(O(n,1,i))}}function Qr(t){const e=[0];return Jr(e,t.length-1),e}function ta(t,e){return t.map(n=>n*e)}function ea(t,e){return t.map(()=>e||Si).splice(0,t.length-1)}function _t({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=lr(s)?s.map(Gn):Gn(s),r={done:!1,value:e[0]},o=ta(n&&n.length===e.length?n:Qr(e),t),a=Zr(o,e,{ease:Array.isArray(i)?i:ea(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const na=t=>t!==null;function we(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(na),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const sa={decay:ze,inertia:ze,tween:_t,keyframes:_t,spring:de};function ji(t){typeof t.type=="string"&&(t.type=sa[t.type])}class En{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const ia=t=>t/100;class pe extends En{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==X.now()&&this.tick(X.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ji(e);const{type:n=_t,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=n||_t;l!==_t&&typeof a[0]!="number"&&(this.mixKeyframes=zt(ia,ki(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Cn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:f,repeatType:h,repeatDelay:p,type:m,onUpdate:y,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const T=this.currentTime-c*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?T<0:T>i;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,P=s;if(f){const C=Math.min(this.currentTime,i)/a;let k=Math.floor(C),E=C%1;!E&&C>=1&&(E=1),E===1&&k--,k=Math.min(k,f+1),k%2&&(h==="reverse"?(E=1-E,p&&(E-=p/a)):h==="mirror"&&(P=o)),x=ft(0,1,E)*a}let V;w?(this.delayState.value=u[0],V=this.delayState):V=P.next(x),r&&!w&&(V.value=r(V.value));let{done:L}=V;!w&&l!==null&&(L=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const b=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return b&&m!==ze&&(V.value=we(u,this.options,g,this.speed)),y&&y(V.value),b&&this.finish(),V}then(e,n){return this.finished.then(e,n)}get duration(){return et(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+et(e)}get time(){return et(this.currentTime)}set time(e){e=Q(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return Bi(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(X.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=et(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Ur,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(X.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function oa(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Pt=t=>t*180/Math.PI,Ge=t=>{const e=Pt(Math.atan2(t[1],t[0]));return Ye(e)},ra={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ge,rotateZ:Ge,skewX:t=>Pt(Math.atan(t[1])),skewY:t=>Pt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ye=t=>(t=t%360,t<0&&(t+=360),t),ts=Ge,es=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ns=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),aa={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:es,scaleY:ns,scale:t=>(es(t)+ns(t))/2,rotateX:t=>Ye(Pt(Math.atan2(t[6],t[5]))),rotateY:t=>Ye(Pt(Math.atan2(-t[2],t[0]))),rotateZ:ts,rotate:ts,skewX:t=>Pt(Math.atan(t[4])),skewY:t=>Pt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Xe(t){return t.includes("scale")?1:0}function qe(t,e){if(!t||t==="none")return Xe(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=aa,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ra,i=a}if(!i)return Xe(e);const r=s[e],o=i[1].split(",").map(la);return typeof r=="function"?r(o):o[r]}const ua=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return qe(n,e)};function la(t){return parseFloat(t.trim())}const Lt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],kt=new Set([...Lt,"pathRotation"]),ss=t=>t===Dt||t===A,ca=new Set(["x","y","z"]),fa=Lt.filter(t=>!ca.has(t));function ha(t){const e=[];return fa.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const mt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>qe(e,"x"),y:(t,{transform:e})=>qe(e,"y")};mt.translateX=mt.x;mt.translateY=mt.y;const St=new Set;let Ze=!1,Je=!1,Qe=!1;function Oi(){if(Je){const t=Array.from(St).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ha(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Je=!1,Ze=!1,St.forEach(t=>t.complete(Qe)),St.clear()}function Fi(){St.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Je=!0)})}function da(){Qe=!0,Fi(),Oi(),Qe=!1}class Vn{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(St.add(this),Ze||(Ze=!0,F.read(Fi),F.resolveKeyframes(Oi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}oa(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),St.delete(this)}cancel(){this.state==="scheduled"&&(St.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const pa=t=>t.startsWith("--");function _i(t,e,n){pa(e)?t.style.setProperty(e,n):t.style[e]=n}const ma={};function Ni(t,e){const n=di(t);return()=>ma[e]??n()}const ya=Ni(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ui=Ni(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ot=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,is={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ot([0,.65,.55,1]),circOut:Ot([.55,0,1,.45]),backIn:Ot([.31,.01,.66,-.59]),backOut:Ot([.33,1.53,.69,.99])};function Wi(t,e){if(t)return typeof t=="function"?Ui()?Ii(t,e):"ease-out":Ai(t)?Ot(t):Array.isArray(t)?t.map(n=>Wi(n,e)||is.easeOut):is[t]}function ga(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const f=Wi(a,i);Array.isArray(f)&&(u.easing=f);const h={delay:s,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),t.animate(u,h)}function $i(t){return typeof t=="function"&&"applyToOptions"in t}function va({type:t,...e}){return $i(t)&&Ui()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Hi extends En{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,vn(typeof e.type!="string");const c=va(e);this.animation=ga(n,s,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=we(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),_i(n,s,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return et(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+et(e)}get time(){return et(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Q(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ya()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),nt):i(this)}}const Ki={anticipate:xi,backInOut:Ti,circInOut:Pi};function Ta(t){return t in Ki}function xa(t){typeof t.ease=="string"&&Ta(t.ease)&&(t.ease=Ki[t.ease])}const Le=10;class wa extends Hi{constructor(e){xa(e),ji(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new pe({...o,autoplay:!1}),l=Math.max(Le,X.now()-this.startTime),c=ft(0,Le,l-Le),u=a.sample(l).value,{name:f}=this.options;r&&f&&_i(r,f,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const os=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(rt.test(t)||t==="0")&&!t.startsWith("url("));function Pa(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Sa(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=os(i,e),a=os(r,e);return!o||!a?!1:Pa(t)||(n==="spring"||$i(n))&&s}function tn(t){t.duration=0,t.type="keyframes"}const zi=new Set(["opacity","clipPath","filter","transform"]),Aa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ba(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&Aa.test(t[e]))return!0;return!1}const Ca=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ea=di(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Va(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return Ea()&&n&&(zi.has(n)||Ca.has(n)&&ba(a))&&(n!=="transform"||!u)&&!c&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const Ra=40;class Ma extends En{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=X.now();const h={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u,...f},p=u?.KeyframeResolver||Vn;this.keyframeResolver=new p(a,(m,y,g)=>this.onKeyframesResolved(m,y,h,!g),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=X.now();let f=!0;Sa(e,r,o,a)||(f=!1,(yt.instantAnimations||!l)&&u?.(we(e,s,n)),e[0]=e[e.length-1],tn(s),s.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Ra?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},m=f&&!c&&Va(p),y=p.motionValue?.owner?.current;let g;if(m)try{g=new wa({...p,element:y})}catch{g=new pe(p)}else g=new pe(p);g.finished.then(()=>{this.notifyFinished()}).catch(nt),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),da()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Gi(t,e,n,s=0,i=1){const r=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const rs=30,Da=t=>!isNaN(parseFloat(t));class La{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=X.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=X.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Da(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Tn);const s=this.events[e].add(n);return e==="change"?()=>{s(),F.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=X.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>rs)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,rs);return pi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mt(t,e){return new La(t,e)}function Yi(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function Rn(t,e){const n=t?.[e]??t?.default??t;return n!==t?Yi(n,t):n}const ka={type:"spring",stiffness:500,damping:25,restSpeed:10},Ia=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ba={type:"keyframes",duration:.8},ja={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Oa=(t,{keyframes:e})=>e.length>2?Ba:kt.has(t)?t.startsWith("scale")?Ia(e[1]):ka:ja,Fa=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function _a(t){for(const e in t)if(!Fa.has(e))return!0;return!1}const Mn=(t,e,n,s={},i,r)=>o=>{const a=Rn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-Q(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};_a(a)||Object.assign(u,Oa(t,u)),u.duration&&(u.duration=Q(u.duration)),u.repeatDelay&&(u.repeatDelay=Q(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(tn(u),u.delay===0&&(f=!0)),(yt.instantAnimations||yt.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(f=!0,tn(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!r&&e.get()!==void 0){const h=we(u.keyframes,a);if(h!==void 0){F.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new pe(u):new Ma(u)},Na=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ua(t){const e=Na.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Xi(t,e,n=1){const[s,i]=Ua(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return ci(o)?parseFloat(o):o}return Pn(i)?Xi(i,e,n+1):i}function as(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Dn(t,e,n,s){if(typeof e=="function"){const[i,r]=as(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=as(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function At(t,e,n){const s=t.getProps();return Dn(s,e,n!==void 0?n:s.custom,t)}const qi=new Set(["width","height","top","left","right","bottom",...Lt]),en=t=>Array.isArray(t);function Wa(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Mt(n))}function $a(t){return en(t)?t[t.length-1]||0:t}function Ha(t,e){const n=At(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=$a(r[o]);Wa(t,o,a)}}const G=t=>!!(t&&t.getVelocity);function Ka(t){return!!(G(t)&&t.add)}function nn(t,e){const n=t.getValue("willChange");if(Ka(n))return n.add(e);if(!n&&yt.WillChange){const s=new yt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Ln(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const za="framerAppearId",Zi="data-"+Ln(za);function Ji(t){return t.props[Zi]}function Ga({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Qi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const l=t.getDefaultTransition();r=r?Yi(r,l):l;const c=r?.reduceMotion,u=r?.skipAnimations;s&&(r=s);const f=[],h=i&&t.animationState&&t.animationState.getState()[i],p=r?.path;p&&p.animateVisualElement(t,a,r,n,f);for(const m in a){const y=t.getValue(m,t.latestValues[m]??null),g=a[m];if(g===void 0||h&&Ga(h,m))continue;const T={delay:n,...Rn(r||{},m)};u&&(T.skipAnimations=!0);const w=y.get();if(w!==void 0&&!y.isAnimating()&&!Array.isArray(g)&&g===w&&!T.velocity){F.update(()=>y.set(g));continue}let x=!1;if(window.MotionHandoffAnimation){const L=Ji(t);if(L){const b=window.MotionHandoffAnimation(L,m,F);b!==null&&(T.startTime=b,x=!0)}}nn(t,m);const P=c??t.shouldReduceMotion;y.start(Mn(m,y,g,P&&qi.has(m)?{type:!1}:T,t,x));const V=y.animation;V&&f.push(V)}if(o){const m=()=>F.update(()=>{o&&Ha(t,o)});f.length?Promise.all(f).then(m):m()}return f}function sn(t,e,n={}){const s=At(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(Qi(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=i;return Ya(t,e,l,c,u,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[r,o]:[o,r];return l().then(()=>c())}else return Promise.all([r(),o(n.delay)])}function Ya(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(sn(l,e,{...o,delay:n+(typeof s=="function"?0:s)+Gi(t.variantChildren,l,s,i,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Xa(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>sn(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=sn(t,e,n);else{const i=typeof e=="function"?At(t,e,n.custom):e;s=Promise.all(Qi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const qa={test:t=>t==="auto",parse:t=>t},to=t=>e=>e.test(t),eo=[Dt,A,ct,dt,Pr,wr,qa],us=t=>eo.find(to(t));function Za(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||hi(t):!0}const Ja=new Set(["brightness","contrast","saturate","opacity"]);function Qa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Sn)||[];if(!s)return t;const i=n.replace(s,"");let r=Ja.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const tu=/\b([a-z-]*)\(.*?\)/gu,on={...rt,getAnimatableNone:t=>{const e=t.match(tu);return e?e.map(Qa).join(" "):t}},rn={...rt,getAnimatableNone:t=>{const e=rt.parse(t);return rt.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},ls={...Dt,transform:Math.round},eu={rotate:dt,pathRotation:dt,rotateX:dt,rotateY:dt,rotateZ:dt,scale:Zt,scaleX:Zt,scaleY:Zt,scaleZ:Zt,skew:dt,skewX:dt,skewY:dt,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:$t,originX:Xn,originY:Xn,originZ:A},me={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,inset:A,insetBlock:A,insetBlockStart:A,insetBlockEnd:A,insetInline:A,insetInlineStart:A,insetInlineEnd:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,paddingBlock:A,paddingBlockStart:A,paddingBlockEnd:A,paddingInline:A,paddingInlineStart:A,paddingInlineEnd:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,marginBlock:A,marginBlockStart:A,marginBlockEnd:A,marginInline:A,marginInlineStart:A,marginInlineEnd:A,fontSize:A,backgroundPositionX:A,backgroundPositionY:A,...eu,zIndex:ls,fillOpacity:$t,strokeOpacity:$t,numOctaves:ls},nu={...me,color:U,backgroundColor:U,outlineColor:U,fill:U,stroke:U,borderColor:U,borderTopColor:U,borderRightColor:U,borderBottomColor:U,borderLeftColor:U,filter:on,WebkitFilter:on,mask:rn,WebkitMask:rn},no=t=>nu[t],su=new Set([on,rn]);function so(t,e){let n=no(t);return su.has(n)||(n=rt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const iu=new Set(["auto","none","0"]);function ou(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!iu.has(r)&&Rt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=so(n,i)}class ru extends Vn{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let f=e[u];if(typeof f=="string"&&(f=f.trim(),Pn(f))){const h=Xi(f,n.current);h!==void 0&&(e[u]=h),u===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!qi.has(s)||e.length!==2)return;const[i,r]=e,o=us(i),a=us(r),l=Yn(i),c=Yn(r);if(l!==c&&mt[s]){this.needsMeasurement=!0;return}if(o!==a)if(ss(o)&&ss(a))for(let u=0;u<e.length;u++){const f=e[u];typeof f=="string"&&(e[u]=parseFloat(f))}else mt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Za(e[i]))&&s.push(i);s.length&&ou(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=mt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=mt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function io(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const an=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function ne(t){return fi(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:kn}=bi(queueMicrotask,!1),ot={x:!1,y:!1};function oo(){return ot.x||ot.y}function au(t){return t==="x"||t==="y"?ot[t]?null:(ot[t]=!0,()=>{ot[t]=!1}):ot.x||ot.y?null:(ot.x=ot.y=!0,()=>{ot.x=ot.y=!1})}function ro(t,e){const n=io(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function uu(t){return!(t.pointerType==="touch"||oo())}function lu(t,e,n={}){const[s,i,r]=ro(t,n);return s.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",m)},f=g=>{c&&(c(g),c=void 0),u()},h=g=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,f(g))},p=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},m=g=>{if(g.pointerType!=="touch"){if(a){l=!0;return}f(g)}},y=g=>{if(!uu(g))return;l=!1;const T=e(o,g);typeof T=="function"&&(c=T,o.addEventListener("pointerleave",m,i))};o.addEventListener("pointerenter",y,i),o.addEventListener("pointerdown",p,i)}),r}const ao=(t,e)=>e?t===e?!0:ao(t,e.parentElement):!1,In=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,cu=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fu(t){return cu.has(t.tagName)||t.isContentEditable===!0}const hu=new Set(["INPUT","SELECT","TEXTAREA"]);function du(t){return hu.has(t.tagName)||t.isContentEditable===!0}const se=new WeakSet;function cs(t){return e=>{e.key==="Enter"&&t(e)}}function ke(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const pu=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=cs(()=>{if(se.has(n))return;ke(n,"down");const i=cs(()=>{ke(n,"up")}),r=()=>ke(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function fs(t){return In(t)&&!oo()}const hs=new WeakSet;function mu(t,e,n={}){const[s,i,r]=ro(t,n),o=a=>{const l=a.currentTarget;if(!fs(a)||hs.has(a))return;se.add(l),n.stopPropagation&&hs.add(a);const c=e(l,a),u=(p,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),se.has(l)&&se.delete(l),fs(p)&&typeof c=="function"&&c(p,{success:m})},f=p=>{u(p,l===window||l===document||n.useGlobalTarget||ao(l,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),ne(a)&&(a.addEventListener("focus",c=>pu(c,i)),!fu(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function Bn(t){return fi(t)&&"ownerSVGElement"in t}const ie=new WeakMap;let oe;const uo=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:Bn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],yu=uo("inline","width","offsetWidth"),gu=uo("block","height","offsetHeight");function vu({target:t,borderBoxSize:e}){ie.get(t)?.forEach(n=>{n(t,{get width(){return yu(t,e)},get height(){return gu(t,e)}})})}function Tu(t){t.forEach(vu)}function xu(){typeof ResizeObserver>"u"||(oe=new ResizeObserver(Tu))}function wu(t,e){oe||xu();const n=io(t);return n.forEach(s=>{let i=ie.get(s);i||(i=new Set,ie.set(s,i)),i.add(e),oe?.observe(s)}),()=>{n.forEach(s=>{const i=ie.get(s);i?.delete(e),i?.size||oe?.unobserve(s)})}}const re=new Set;let Et;function Pu(){Et=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};re.forEach(e=>e(t))},window.addEventListener("resize",Et)}function Su(t){return re.add(t),Et||Pu(),()=>{re.delete(t),!re.size&&typeof Et=="function"&&(window.removeEventListener("resize",Et),Et=void 0)}}function ds(t,e){return typeof t=="function"?Su(t):wu(t,e)}function Au(t){return Bn(t)&&t.tagName==="svg"}const bu=[...eo,U,rt],Cu=t=>bu.find(to(t)),ps=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vt=()=>({x:ps(),y:ps()}),ms=()=>({min:0,max:0}),H=()=>({x:ms(),y:ms()}),Eu=new WeakMap;function Pe(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ht(t){return typeof t=="string"||Array.isArray(t)}const jn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],On=["initial",...jn];function Se(t){return Pe(t.animate)||On.some(e=>Ht(t[e]))}function lo(t){return!!(Se(t)||t.variants)}function Vu(t,e,n){for(const s in e){const i=e[s],r=n[s];if(G(i))t.addValue(s,i);else if(G(r))t.addValue(s,Mt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,Mt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const un={current:null},co={current:!1},Ru=typeof window<"u";function Mu(){if(co.current=!0,!!Ru)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>un.current=t.matches;t.addEventListener("change",e),e()}else un.current=!1}const ys=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ye={};function fo(t){ye=t}function Du(){return ye}class Lu{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Vn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=X.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,F.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Se(n),this.isVariantNode=lo(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const m=h[p];c[p]!==void 0&&G(m)&&m.set(c[p])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,Eu.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)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(co.current||Mu(),this.shouldReduceMotion=un.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),gt(this.notifyUpdate),gt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&zi.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,f=new Hi({element:this.current,name:e,keyframes:a,times:l,ease:c,duration:Q(u)}),h=o(f);this.valueSubscriptions.set(e,()=>{h(),f.cancel()});return}const s=kt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&F.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ye){const n=ye[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):H()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ys.length;s++){const i=ys[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Vu(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Mt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(ci(s)||hi(s))?s=parseFloat(s):!Cu(s)&&rt.test(n)&&(s=so(e,n)),this.setBaseTarget(e,G(s)?s.get():s)),G(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=Dn(this.props,n,this.presenceContext?.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!G(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Tn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){kn.render(this.render)}}class ho extends Lu{constructor(){super(...arguments),this.KeyframeResolver=ru}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;G(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class vt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function po({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function ku({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Iu(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Ie(t){return t===void 0||t===1}function ln({scale:t,scaleX:e,scaleY:n}){return!Ie(t)||!Ie(e)||!Ie(n)}function xt(t){return ln(t)||mo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function mo(t){return gs(t.x)||gs(t.y)}function gs(t){return t&&t!=="0%"}function ge(t,e,n){const s=t-n,i=e*s;return n+i}function vs(t,e,n,s,i){return i!==void 0&&(t=ge(t,i,s)),ge(t,n,s)+e}function cn(t,e=0,n=1,s,i){t.min=vs(t.min,e,n,s,i),t.max=vs(t.max,e,n,s,i)}function yo(t,{x:e,y:n}){cn(t.x,e.translate,e.scale,e.originPoint),cn(t.y,n.translate,n.scale,n.originPoint)}const Ts=.999999999999,xs=1.0000000000001;function Bu(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(lt(t.x,-r.scroll.offset.x),lt(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,yo(t,o)),s&&xt(r.latestValues)&&ae(t,r.latestValues,r.layout?.layoutBox))}e.x<xs&&e.x>Ts&&(e.x=1),e.y<xs&&e.y>Ts&&(e.y=1)}function lt(t,e){t.min+=e,t.max+=e}function ws(t,e,n,s,i=.5){const r=O(t.min,t.max,i);cn(t,e,n,r,s)}function Ps(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function ae(t,e,n){const s=n??t;ws(t.x,Ps(e.x,s.x),e.scaleX,e.scale,e.originX),ws(t.y,Ps(e.y,s.y),e.scaleY,e.scale,e.originY)}function go(t,e){return po(Iu(t.getBoundingClientRect(),e))}function ju(t,e,n){const s=go(t,n),{scroll:i}=e;return i&&(lt(s.x,i.offset.x),lt(s.y,i.offset.y)),s}const Ou={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fu=Lt.length;function _u(t,e,n){let s="",i=!0;for(let o=0;o<Fu;o++){const a=Lt[o],l=t[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=an(l,me[a]);if(!c){i=!1;const f=Ou[a]||a;s+=`${f}(${u}) `}n&&(e[a]=u)}}const r=t.pathRotation;return r&&(i=!1,s+=`rotate(${an(r,me.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Fn(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(kt.has(l)){o=!0;continue}else if(Ei(l)){i[l]=c;continue}else{const u=an(c,me[l]);l.startsWith("origin")?(a=!0,r[l]=u):s[l]=u}}if(e.transform||(o||n?s.transform=_u(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;s.transformOrigin=`${l} ${c} ${u}`}}function vo(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function Ss(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const jt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(A.test(t))t=parseFloat(t);else return t;const n=Ss(t,e.target.x),s=Ss(t,e.target.y);return`${n}% ${s}%`}},Nu={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=rt.parse(t);if(i.length>5)return s;const r=rt.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=O(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),r(i)}},fn={borderRadius:{...jt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:jt,borderTopRightRadius:jt,borderBottomLeftRadius:jt,borderBottomRightRadius:jt,boxShadow:Nu};function To(t,{layout:e,layoutId:n}){return kt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!fn[t]||t==="opacity")}function _n(t,e,n){const s=t.style,i=e?.style,r={};if(!s)return r;for(const o in s)(G(s[o])||i&&G(i[o])||To(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=s[o]);return r}function Uu(t){return window.getComputedStyle(t)}class Wu extends ho{constructor(){super(...arguments),this.type="html",this.renderInstance=vo}readValueFromInstance(e,n){if(kt.has(n))return this.projection?.isProjecting?Xe(n):ua(e,n);{const s=Uu(e),i=(Ei(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return go(e,n)}build(e,n,s){Fn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return _n(e,n,s)}}const $u={offset:"stroke-dashoffset",array:"stroke-dasharray"},Hu={offset:"strokeDashoffset",array:"strokeDasharray"};function Ku(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?$u:Hu;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const zu=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function xo(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,c,u){if(Fn(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:h}=t;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete f.transformBox);for(const p of zu)f[p]!==void 0&&(h[p]=f[p],delete f[p]);e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),i!==void 0&&Ku(f,i,r,o,!1)}const wo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Po=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Gu(t,e,n,s){vo(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(wo.has(i)?i:Ln(i),e.attrs[i])}function So(t,e,n){const s=_n(t,e,n);for(const i in t)if(G(t[i])||G(e[i])){const r=Lt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class Yu extends ho{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=H}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(kt.has(n)){const s=no(n);return s&&s.default||0}return n=wo.has(n)?n:Ln(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return So(e,n,s)}build(e,n,s){xo(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Gu(e,n,s,i)}mount(e){this.isSVGTag=Po(e.tagName),super.mount(e)}}const Xu=On.length;function Ao(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Ao(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Xu;n++){const s=On[n],i=t.props[s];(Ht(i)||i===!1)&&(e[s]=i)}return e}function bo(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const qu=[...jn].reverse(),Zu=jn.length;function Ju(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Xa(t,n,s)))}function Qu(t){let e=Ju(t),n=As(),s=!0,i=!1;const r=c=>(u,f)=>{const h=At(t,f,c==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:p,transitionEnd:m,...y}=h;u={...u,...y,...m}}return u};function o(c){e=c(t)}function a(c){const{props:u}=t,f=Ao(t.parent)||{},h=[],p=new Set;let m={},y=1/0;for(let T=0;T<Zu;T++){const w=qu[T],x=n[w],P=u[w]!==void 0?u[w]:f[w],V=Ht(P),L=w===c?x.isActive:null;L===!1&&(y=T);let b=P===f[w]&&P!==u[w]&&V;if(b&&(s||i)&&t.manuallyAnimateOnMount&&(b=!1),x.protectedKeys={...m},!x.isActive&&L===null||!P&&!x.prevProp||Pe(P)||typeof P=="boolean")continue;if(w==="exit"&&x.isActive&&L!==!0){x.prevResolvedValues&&(m={...m,...x.prevResolvedValues});continue}const C=tl(x.prevProp,P);let k=C||w===c&&x.isActive&&!b&&V||T>y&&V,E=!1;const B=Array.isArray(P)?P:[P];let W=B.reduce(r(w),{});L===!1&&(W={});const{prevResolvedValues:tt={}}=x,Z={...tt,...W},st=$=>{k=!0,p.has($)&&(E=!0,p.delete($)),x.needsAnimating[$]=!0;const Y=t.getValue($);Y&&(Y.liveStyle=!1)};for(const $ in Z){const Y=W[$],ht=tt[$];if(m.hasOwnProperty($))continue;let d=!1;en(Y)&&en(ht)?d=!bo(Y,ht)||C:d=Y!==ht,d?Y!=null?st($):p.add($):Y!==void 0&&p.has($)?st($):x.protectedKeys[$]=!0}x.prevProp=P,x.prevResolvedValues=W,x.isActive&&(m={...m,...W}),(s||i)&&t.blockInitialAnimation&&(k=!1);const K=b&&C;k&&(!K||E)&&h.push(...B.map($=>{const Y={type:w};if(typeof $=="string"&&(s||i)&&!K&&t.manuallyAnimateOnMount&&t.parent){const{parent:ht}=t,d=At(ht,$);if(ht.enteringChildren&&d){const{delayChildren:v}=d.transition||{};Y.delay=Gi(ht.enteringChildren,t,v)}}return{animation:$,options:Y}}))}if(p.size){const T={};if(typeof u.initial!="boolean"){const w=At(t,Array.isArray(u.initial)?u.initial[0]:u.initial);w&&w.transition&&(T.transition=w.transition)}p.forEach(w=>{const x=t.getBaseTarget(w),P=t.getValue(w);P&&(P.liveStyle=!0),T[w]=x??null}),h.push({animation:T})}let g=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,i=!1,g?e(h):Promise.resolve()}function l(c,u){if(n[c].isActive===u)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(c,u)),n[c].isActive=u;const f=a(c);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=As(),i=!0}}}function tl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!bo(e,t):!1}function Tt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function As(){return{animate:Tt(!0),whileInView:Tt(),whileHover:Tt(),whileTap:Tt(),whileDrag:Tt(),whileFocus:Tt(),exit:Tt()}}function hn(t,e){t.min=e.min,t.max=e.max}function it(t,e){hn(t.x,e.x),hn(t.y,e.y)}function bs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Co=1e-4,el=1-Co,nl=1+Co,Eo=.01,sl=0-Eo,il=0+Eo;function q(t){return t.max-t.min}function ol(t,e,n){return Math.abs(t-e)<=n}function Cs(t,e,n,s=.5){t.origin=s,t.originPoint=O(e.min,e.max,t.origin),t.scale=q(n)/q(e),t.translate=O(n.min,n.max,t.origin)-t.originPoint,(t.scale>=el&&t.scale<=nl||isNaN(t.scale))&&(t.scale=1),(t.translate>=sl&&t.translate<=il||isNaN(t.translate))&&(t.translate=0)}function Nt(t,e,n,s){Cs(t.x,e.x,n.x,s?s.originX:void 0),Cs(t.y,e.y,n.y,s?s.originY:void 0)}function Es(t,e,n,s=0){const i=s?O(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+q(e)}function rl(t,e,n,s){Es(t.x,e.x,n.x,s?.x),Es(t.y,e.y,n.y,s?.y)}function Vs(t,e,n,s=0){const i=s?O(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+q(e)}function ve(t,e,n,s){Vs(t.x,e.x,n.x,s?.x),Vs(t.y,e.y,n.y,s?.y)}function Rs(t,e,n,s,i){return t-=e,t=ge(t,1/n,s),i!==void 0&&(t=ge(t,1/i,s)),t}function al(t,e=0,n=1,s=.5,i,r=t,o=t){if(ct.test(e)&&(e=parseFloat(e),e=O(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=O(r.min,r.max,s);t===r&&(a-=e),t.min=Rs(t.min,e,n,a,i),t.max=Rs(t.max,e,n,a,i)}function Ms(t,e,[n,s,i],r,o){al(t,e[n],e[s],e[i],e.scale,r,o)}const ul=["x","scaleX","originX"],ll=["y","scaleY","originY"];function Ds(t,e,n,s){Ms(t.x,e,ul,n?n.x:void 0,s?s.x:void 0),Ms(t.y,e,ll,n?n.y:void 0,s?s.y:void 0)}function Ls(t){return t.translate===0&&t.scale===1}function Vo(t){return Ls(t.x)&&Ls(t.y)}function ks(t,e){return t.min===e.min&&t.max===e.max}function cl(t,e){return ks(t.x,e.x)&&ks(t.y,e.y)}function Is(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ro(t,e){return Is(t.x,e.x)&&Is(t.y,e.y)}function Bs(t){return q(t.x)/q(t.y)}function js(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function ut(t){return[t("x"),t("y")]}function fl(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=n?.z||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,pathRotation:f,rotateX:h,rotateY:p,skewX:m,skewY:y}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),f&&(s+=`rotate(${f}deg) `),h&&(s+=`rotateX(${h}deg) `),p&&(s+=`rotateY(${p}deg) `),m&&(s+=`skewX(${m}deg) `),y&&(s+=`skewY(${y}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Mo=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],hl=Mo.length,Os=t=>typeof t=="string"?parseFloat(t):t,Fs=t=>typeof t=="number"||A.test(t);function dl(t,e,n,s,i,r){i?(t.opacity=O(0,n.opacity??1,pl(s)),t.opacityExit=O(e.opacity??1,0,ml(s))):r&&(t.opacity=O(e.opacity??1,n.opacity??1,s));for(let o=0;o<hl;o++){const a=Mo[o];let l=_s(e,a),c=_s(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Fs(l)===Fs(c)?(t[a]=Math.max(O(Os(l),Os(c),s),0),(ct.test(c)||ct.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=O(e.rotate||0,n.rotate||0,s))}function _s(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const pl=Do(0,.5,wi),ml=Do(.5,.95,nt);function Do(t,e,n){return s=>s<t?0:s>e?1:n(Wt(t,e,s))}function yl(t,e,n){const s=G(t)?t:Mt(t);return s.start(Mn("",s,e,n)),s.animation}function Kt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const gl=(t,e)=>t.depth-e.depth;class vl{constructor(){this.children=[],this.isDirty=!1}add(e){gn(this.children,e),this.isDirty=!0}remove(e){ce(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gl),this.isDirty=!1,this.children.forEach(e)}}function Tl(t,e){const n=X.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(gt(s),t(r-e))};return F.setup(s,!0),()=>gt(s)}function ue(t){return G(t)?t.get():t}class xl{constructor(){this.members=[]}add(e){gn(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(ce(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(ce(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:r}=e.options;(i===void 0||i!==r)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const le={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Be=["","X","Y","Z"],wl=1e3;let Pl=0;function je(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Lo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Ji(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",F,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Lo(s)}function ko({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e?.()){this.id=Pl++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(bl),this.nodes.forEach(Dl),this.nodes.forEach(Ll),this.nodes.forEach(Cl)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new vl)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Tn),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Bn(o)&&!Au(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,f=0;const h=()=>this.root.updateBlockedByResize=!1;F.read(()=>{f=window.innerWidth}),t(o,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,u&&u(),u=Tl(h,250),le.hasAnimatedSinceResize&&(le.hasAnimatedSinceResize=!1,this.nodes.forEach(Ws)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||Ol,{onLayoutAnimationStart:y,onLayoutAnimationComplete:g}=c.getProps(),T=!this.targetLayout||!Ro(this.targetLayout,p),w=!f&&h;if(this.options.layoutRoot||this.resumeFrom||w||f&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Rn(m,"layout"),onPlay:y,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,w,x.path)}else f||Ws(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),gt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(kl),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Lo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(Vl),this.nodes.forEach(Ns);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Us);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Rl),this.nodes.forEach(Ml),this.nodes.forEach(Sl),this.nodes.forEach(Al)):this.nodes.forEach(Us),this.clearAllSnapshots();const a=X.now();z.delta=ft(0,1e3/60,a-z.timestamp),z.timestamp=a,z.isProcessing=!0,Ee.update.process(z),Ee.preRender.process(z),Ee.render.process(z),z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,kn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(El),this.sharedNodes.forEach(Il)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,F.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){F.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!q(this.snapshot.measuredBox.x)&&!q(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=H()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Vo(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||xt(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Fl(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return H();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(_l))){const{scroll:c}=this.root;c&&(lt(a.x,c.offset.x),lt(a.y,c.offset.y))}return a}removeElementScroll(o){const a=H();if(it(a,o),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:f}=c;c!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&it(a,o),lt(a.x,u.offset.x),lt(a.y,u.offset.y))}return a}applyTransform(o,a=!1,l){const c=l||H();it(c,o);for(let u=0;u<this.path.length;u++){const f=this.path[u];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(lt(c.x,-f.scroll.offset.x),lt(c.y,-f.scroll.offset.y)),xt(f.latestValues)&&ae(c,f.latestValues,f.layout?.layoutBox)}return xt(this.latestValues)&&ae(c,this.latestValues,this.layout?.layoutBox),c}removeTransform(o){const a=H();it(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!xt(c.latestValues))continue;let u;c.instance&&(ln(c.latestValues)&&c.updateSnapshot(),u=H(),it(u,c.measurePageBox())),Ds(a,c.latestValues,c.snapshot?.layoutBox,u)}return xt(this.latestValues)&&Ds(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=z.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=H(),this.targetWithTransforms=H()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):it(this.target,this.layout.layoutBox),yo(this.target,this.targetDelta)):it(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ln(this.parent.latestValues)||mo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),ve(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),it(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===z.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;it(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;Bu(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=H());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(bs(this.prevProjectionDelta.x,this.projectionDelta.x),bs(this.prevProjectionDelta.y,this.projectionDelta.y)),Nt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!js(this.projectionDelta.x,this.prevProjectionDelta.x)||!js(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vt(),this.projectionDelta=Vt(),this.projectionDeltaWithTransform=Vt()}setAnimationOrigin(o,a=!1,l){const c=this.snapshot,u=c?c.latestValues:{},f={...this.latestValues},h=Vt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=H(),m=c?c.source:void 0,y=this.layout?this.layout.source:void 0,g=m!==y,T=this.getStack(),w=!T||T.members.length<=1,x=!!(g&&!w&&this.options.crossfade===!0&&!this.path.some(jl));this.animationProgress=0;let P;const V=l?.interpolateProjection(o);this.mixTargetDelta=L=>{const b=L/1e3,C=V?.(b);C?(h.x.translate=C.x,h.x.scale=O(o.x.scale,1,b),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=C.y,h.y.scale=O(o.y.scale,1,b),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):($s(h.x,o.x,b),$s(h.y,o.y,b)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ve(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Bl(this.relativeTarget,this.relativeTargetOrigin,p,b),P&&cl(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=H()),it(P,this.relativeTarget)),g&&(this.animationValues=f,dl(f,u,this.latestValues,b,x,w)),C&&C.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=C.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(gt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=F.update(()=>{le.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Mt(0)),this.motionValue.jump(0,!1),this.currentAnimation=yl(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(wl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Io(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||H();const f=q(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=q(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}it(a,l),ae(a,u),Nt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new xl),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&je("z",o,c,this.animationValues);for(let u=0;u<Be.length;u++)je(`rotate${Be[u]}`,o,c,this.animationValues),je(`skew${Be[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=ue(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=ue(a?.pointerEvents)||""),this.hasProjected&&!xt(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=fl(this.projectionDeltaWithTransform,this.treeScale,u);l&&(f=l(u,f)),o.transform=f;const{x:h,y:p}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in fn){if(u[m]===void 0)continue;const{correct:y,applyTo:g,isCSSVariable:T}=fn[m],w=f==="none"?u[m]:y(u[m],c);if(g){const x=g.length;for(let P=0;P<x;P++)o[g[P]]=w}else T?this.options.visualElement.renderState.vars[m]=w:o[m]=w}this.options.layoutId&&(o.pointerEvents=c===this?ue(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(Ns),this.root.sharedNodes.clear()}}}function Sl(t){t.updateLayout()}function Al(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,r=e.source!==t.layout.source;if(i==="size")ut(u=>{const f=r?e.measuredBox[u]:e.layoutBox[u],h=q(f);f.min=n[u].min,f.max=f.min+h});else if(i==="x"||i==="y"){const u=i==="x"?"y":"x";hn(r?e.measuredBox[u]:e.layoutBox[u],n[u])}else Io(i,e.layoutBox,n)&&ut(u=>{const f=r?e.measuredBox[u]:e.layoutBox[u],h=q(n[u]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+h)});const o=Vt();Nt(o,n,e.layoutBox);const a=Vt();r?Nt(a,t.applyTransform(s,!0),e.measuredBox):Nt(a,n,e.layoutBox);const l=!Vo(o);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:f,layout:h}=u;if(f&&h){const p=t.options.layoutAnchor||void 0,m=H();ve(m,e.layoutBox,f.layoutBox,p);const y=H();ve(y,n,h.layoutBox,p),Ro(m,y)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function bl(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Cl(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function El(t){t.clearSnapshot()}function Ns(t){t.clearMeasurements()}function Vl(t){t.isLayoutDirty=!0,t.updateLayout()}function Us(t){t.isLayoutDirty=!1}function Rl(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function Ml(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ws(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Dl(t){t.resolveTargetDelta()}function Ll(t){t.calcProjection()}function kl(t){t.resetSkewAndRotation()}function Il(t){t.removeLeadSnapshot()}function $s(t,e,n){t.translate=O(e.translate,0,n),t.scale=O(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Hs(t,e,n,s){t.min=O(e.min,n.min,s),t.max=O(e.max,n.max,s)}function Bl(t,e,n,s){Hs(t.x,e.x,n.x,s),Hs(t.y,e.y,n.y,s)}function jl(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Ol={duration:.45,ease:[.4,0,.1,1]},Ks=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),zs=Ks("applewebkit/")&&!Ks("chrome/")?Math.round:nt;function Gs(t){t.min=zs(t.min),t.max=zs(t.max)}function Fl(t){Gs(t.x),Gs(t.y)}function Io(t,e,n){return t==="position"||t==="preserve-aspect"&&!ol(Bs(e),Bs(n),.2)}function _l(t){return t!==t.root&&t.scroll?.wasRoot}const Nl=ko({attachResizeListener:(t,e)=>Kt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Oe={current:void 0},Bo=ko({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Oe.current){const t=new Nl({});t.mount(window),t.setOptions({layoutScroll:!0}),Oe.current=t}return Oe.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Nn=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Ys(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Ul(...t){return e=>{let n=!1;const s=t.map(i=>{const r=Ys(i,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<s.length;i++){const r=s[i];typeof r=="function"?r():Ys(t[i],null)}}}}function Wl(...t){return S.useCallback(Ul(...t),t)}class $l extends S.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(ne(n)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=ne(s)&&s.offsetWidth||0,r=ne(s)&&s.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function Hl({children:t,isPresent:e,anchorX:n,anchorY:s,root:i,pop:r}){const o=S.useId(),a=S.useRef(null),l=S.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=S.useContext(Nn),u=t.props?.ref??t?.ref,f=Wl(a,u);return S.useInsertionEffect(()=>{const{width:h,height:p,top:m,left:y,right:g,bottom:T,direction:w}=l.current;if(e||r===!1||!a.current||!h||!p)return;const x=w==="rtl",P=n==="left"?x?`right: ${g}`:`left: ${y}`:x?`left: ${y}`:`right: ${g}`,V=s==="bottom"?`bottom: ${T}`:`top: ${m}`;a.current.dataset.motionPopId=o;const L=document.createElement("style");c&&(L.nonce=c);const b=i??document.head;return b.appendChild(L),L.sheet&&L.sheet.insertRule(`
|
|
2
|
+
[data-motion-pop-id="${o}"] {
|
|
3
|
+
position: absolute !important;
|
|
4
|
+
width: ${h}px !important;
|
|
5
|
+
height: ${p}px !important;
|
|
6
|
+
${P}px !important;
|
|
7
|
+
${V}px !important;
|
|
8
|
+
}
|
|
9
|
+
`),()=>{a.current?.removeAttribute("data-motion-pop-id"),b.contains(L)&&b.removeChild(L)}},[e]),pt.jsx($l,{isPresent:e,childRef:a,sizeRef:l,pop:r,children:r===!1?t:S.cloneElement(t,{ref:f})})}const Kl=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:r,mode:o,anchorX:a,anchorY:l,root:c})=>{const u=yn(zl),f=S.useId();let h=!0,p=S.useMemo(()=>(h=!1,{id:f,initial:e,isPresent:n,custom:i,onExitComplete:m=>{u.set(m,!0);for(const y of u.values())if(!y)return;s&&s()},register:m=>(u.set(m,!1),()=>u.delete(m))}),[n,u,s]);return r&&h&&(p={...p}),S.useMemo(()=>{u.forEach((m,y)=>u.set(y,!1))},[n]),S.useEffect(()=>{!n&&!u.size&&s&&s()},[n]),t=pt.jsx(Hl,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:c,children:t}),pt.jsx(xe.Provider,{value:p,children:t})};function zl(){return new Map}function jo(t=!0){const e=S.useContext(xe);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=S.useId();S.useEffect(()=>{if(t)return i(r)},[t]);const o=S.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,o]:[!0]}const Jt=t=>t.key||"";function Xs(t){const e=[];return S.Children.forEach(t,n=>{S.isValidElement(n)&&e.push(n)}),e}const nf=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:r="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:c})=>{const[u,f]=jo(o),h=S.useMemo(()=>Xs(t),[t]),p=o&&!u?[]:h.map(Jt),m=S.useRef(!0),y=S.useRef(h),g=yn(()=>new Map),T=S.useRef(new Set),[w,x]=S.useState(h),[P,V]=S.useState(h);li(()=>{m.current=!1,y.current=h;for(let C=0;C<P.length;C++){const k=Jt(P[C]);p.includes(k)?(g.delete(k),T.current.delete(k)):g.get(k)!==!0&&g.set(k,!1)}},[P,p.length,p.join("-")]);const L=[];if(h!==w){let C=[...h];for(let k=0;k<P.length;k++){const E=P[k],B=Jt(E);p.includes(B)||(C.splice(k,0,E),L.push(E))}return r==="wait"&&L.length&&(C=L),V(Xs(C)),x(h),null}const{forceRender:b}=S.useContext(mn);return pt.jsx(pt.Fragment,{children:P.map(C=>{const k=Jt(C),E=o&&!u?!1:h===P||p.includes(k),B=()=>{if(T.current.has(k))return;if(g.has(k))T.current.add(k),g.set(k,!0);else return;let W=!0;g.forEach(tt=>{tt||(W=!1)}),W&&(b?.(),V(y.current),o&&f?.(),s&&s())};return pt.jsx(Kl,{isPresent:E,initial:!m.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:r,root:c,onExitComplete:E?void 0:B,anchorX:a,anchorY:l,children:C},k)})})},Oo=S.createContext({strict:!1}),qs={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Zs=!1;function Gl(){if(Zs)return;const t={};for(const e in qs)t[e]={isEnabled:n=>qs[e].some(s=>!!n[s])};fo(t),Zs=!0}function Fo(){return Gl(),Du()}function Yl(t){const e=Fo();for(const n in t)e[n]={...e[n],...t[n]};fo(e)}const Xl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Te(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Xl.has(t)}let _o=t=>!Te(t);function ql(t){typeof t=="function"&&(_o=e=>e.startsWith("on")?!Te(e):t(e))}try{ql(require("@emotion/is-prop-valid").default)}catch{}function Zl(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||G(t[i])||(_o(i)||n===!0&&Te(i)||!e&&!Te(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const Ae=S.createContext({});function Jl(t,e){if(Se(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Ht(n)?n:void 0,animate:Ht(s)?s:void 0}}return t.inherit!==!1?e:{}}function Ql(t){const{initial:e,animate:n}=Jl(t,S.useContext(Ae));return S.useMemo(()=>({initial:e,animate:n}),[Js(e),Js(n)])}function Js(t){return Array.isArray(t)?t.join(" "):t}const Un=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function No(t,e,n){for(const s in e)!G(e[s])&&!To(s,n)&&(t[s]=e[s])}function tc({transformTemplate:t},e){return S.useMemo(()=>{const n=Un();return Fn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function ec(t,e){const n=t.style||{},s={};return No(s,n,t),Object.assign(s,tc(t,e)),s}function nc(t,e){const n={},s=ec(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Uo=()=>({...Un(),attrs:{}});function sc(t,e,n,s){const i=S.useMemo(()=>{const r=Uo();return xo(r,e,Po(s),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};No(r,t.style,t),i.style={...r,...i.style}}return i}const ic=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Wn(t){return typeof t!="string"||t.includes("-")?!1:!!(ic.indexOf(t)>-1||/[A-Z]/u.test(t))}function oc(t,e,n,{latestValues:s},i,r=!1,o){const l=(o??Wn(t)?sc:nc)(e,s,i,t),c=Zl(e,typeof t=="string",r),u=t!==S.Fragment?{...c,...l,ref:n}:{},{children:f}=e,h=S.useMemo(()=>G(f)?f.get():f,[f]);return S.createElement(t,{...u,children:h})}function rc({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:ac(n,s,i,t),renderState:e()}}function ac(t,e,n,s){const i={},r=s(t,{});for(const h in r)i[h]=ue(r[h]);let{initial:o,animate:a}=t;const l=Se(t),c=lo(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const f=u?a:o;if(f&&typeof f!="boolean"&&!Pe(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const m=Dn(t,h[p]);if(m){const{transitionEnd:y,transition:g,...T}=m;for(const w in T){let x=T[w];if(Array.isArray(x)){const P=u?x.length-1:0;x=x[P]}x!==null&&(i[w]=x)}for(const w in y)i[w]=y[w]}}}return i}const Wo=t=>(e,n)=>{const s=S.useContext(Ae),i=S.useContext(xe),r=()=>rc(t,e,s,i);return n?r():yn(r)},uc=Wo({scrapeMotionValuesFromProps:_n,createRenderState:Un}),lc=Wo({scrapeMotionValuesFromProps:So,createRenderState:Uo}),cc=Symbol.for("motionComponentSymbol");function fc(t,e,n){const s=S.useRef(n);S.useInsertionEffect(()=>{s.current=n});const i=S.useRef(null);return S.useCallback(r=>{r&&t.onMount?.(r),e&&(r?e.mount(r):e.unmount());const o=s.current;if(typeof o=="function")if(r){const a=o(r);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r)},[e])}const $o=S.createContext({});function bt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function hc(t,e,n,s,i,r){const{visualElement:o}=S.useContext(Ae),a=S.useContext(Oo),l=S.useContext(xe),c=S.useContext(Nn),u=c.reducedMotion,f=c.skipAnimations,h=S.useRef(null),p=S.useRef(!1);s=s||a.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:f,isSVG:r}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const m=h.current,y=S.useContext($o);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&dc(h.current,n,i,y);const g=S.useRef(!1);S.useInsertionEffect(()=>{m&&g.current&&m.update(n,l)});const T=n[Zi],w=S.useRef(!!T&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return li(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),w.current&&m.animationState&&m.animationState.animateChanges())}),S.useEffect(()=>{m&&(!w.current&&m.animationState&&m.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),w.current=!1),m.enteringChildren=void 0)}),m}function dc(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:f}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ho(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&bt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:f,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function Ho(t){if(t)return t.options.allowProjection!==!1?t.projection:Ho(t.parent)}function Fe(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&Yl(s);const r=n?n==="svg":Wn(t),o=r?lc:uc;function a(c,u){let f;const h={...S.useContext(Nn),...c,layoutId:pc(c)},{isStatic:p}=h,m=Ql(c),y=o(c,p);if(!p&&typeof window<"u"){mc();const g=yc(h);f=g.MeasureLayout,m.visualElement=hc(t,y,h,i,g.ProjectionNode,r)}return pt.jsxs(Ae.Provider,{value:m,children:[f&&m.visualElement?pt.jsx(f,{visualElement:m.visualElement,...h}):null,oc(t,c,fc(y,m.visualElement,u),y,p,e,r)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=S.forwardRef(a);return l[cc]=t,l}function pc({layoutId:t}){const e=S.useContext(mn).id;return e&&t!==void 0?e+"-"+t:t}function mc(t,e){S.useContext(Oo).strict}function yc(t){const e=Fo(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function gc(t,e){if(typeof Proxy>"u")return Fe;const n=new Map,s=(r,o)=>Fe(r,o,t,e),i=(r,o)=>s(r,o);return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,Fe(o,void 0,t,e)),n.get(o))})}const vc=(t,e)=>e.isSVG??Wn(t)?new Yu(e):new Wu(e,{allowProjection:t!==S.Fragment});class Tc extends vt{constructor(e){super(e),e.animationState||(e.animationState=Qu(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Pe(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let xc=0;class wc extends vt{constructor(){super(...arguments),this.id=xc++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;if(e&&s===!1){if(this.isExitComplete){const{initial:r,custom:o}=this.node.getProps();if(typeof r=="string"||typeof r=="object"&&r!==null&&!Array.isArray(r)){const a=At(this.node,r,o);if(a){const{transition:l,transitionEnd:c,...u}=a;for(const f in u)this.node.getValue(f)?.jump(u[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Pc={animation:{Feature:Tc},exit:{Feature:wc}};function Xt(t){return{point:{x:t.pageX,y:t.pageY}}}const Sc=t=>e=>In(e)&&t(e,Xt(e));function Ut(t,e,n,s){return Kt(t,e,Sc(n),s)}const Ko=({current:t})=>t?t.ownerDocument.defaultView:null,Qs=(t,e)=>Math.abs(t-e);function Ac(t,e){const n=Qs(t.x,e.x),s=Qs(t.y,e.y);return Math.sqrt(n**2+s**2)}const ti=new Set(["auto","scroll"]);class zo{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Qt(this.lastRawMoveEventInfo,this.transformPagePoint));const p=_e(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,y=Ac(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!y)return;const{point:g}=p,{timestamp:T}=z;this.history.push({...g,timestamp:T});const{onStart:w,onMove:x}=this.handlers;m||(w&&w(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=Qt(m,this.transformPagePoint),F.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:y,onSessionEnd:g,resumeAnimation:T}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=_e(p.type==="pointercancel"?this.lastMoveEventInfo:Qt(m,this.transformPagePoint),this.history);this.startEvent&&y&&y(p,w),g&&g(p,w)},!In(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=i||window;const l=Xt(e),c=Qt(l,this.transformPagePoint),{point:u}=c,{timestamp:f}=z;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(e,_e(c,this.history)),this.removeListeners=zt(Ut(this.contextWindow,"pointermove",this.handlePointerMove),Ut(this.contextWindow,"pointerup",this.handlePointerUp),Ut(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(ti.has(s.overflowX)||ti.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),F.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),gt(this.updatePoint)}}function Qt(t,e){return e?{point:e(t.point)}:t}function ei(t,e){return{x:t.x-e.x,y:t.y-e.y}}function _e({point:t},e){return{point:t,delta:ei(t,Go(e)),offset:ei(t,bc(e)),velocity:Cc(e,.1)}}function bc(t){return t[0]}function Go(t){return t[t.length-1]}function Cc(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Go(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>Q(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>Q(e)*2&&(s=t[1]);const r=et(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ec(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?O(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?O(n,t,s.max):Math.min(t,n)),t}function ni(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Vc(t,{top:e,left:n,bottom:s,right:i}){return{x:ni(t.x,n,i),y:ni(t.y,e,s)}}function si(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Rc(t,e){return{x:si(t.x,e.x),y:si(t.y,e.y)}}function Mc(t,e){let n=.5;const s=q(t),i=q(e);return i>s?n=Wt(e.min,e.max-s,t.min):s>i&&(n=Wt(t.min,t.max-i,e.min)),ft(0,1,n)}function Dc(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const dn=.35;function Lc(t=dn){return t===!1?t=0:t===!0&&(t=dn),{x:ii(t,"left","right"),y:ii(t,"top","bottom")}}function ii(t,e,n){return{min:oi(t,e),max:oi(t,n)}}function oi(t,e){return typeof t=="number"?t:t[e]||0}const kc=new WeakMap;class Ic{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=H(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=f=>{n&&this.snapToCursor(Xt(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:p,dragPropagation:m,onDragStart:y}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=au(p),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ut(T=>{let w=this.getAxisMotionValue(T).get()||0;if(ct.test(w)){const{projection:x}=this.visualElement;if(x&&x.layout){const P=x.layout.layoutBox[T];P&&(w=q(P)*(parseFloat(w)/100))}}this.originPoint[T]=w}),y&&F.update(()=>y(f,h),!1,!0),nn(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:y,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=h;if(m&&this.currentDirection===null){this.currentDirection=jc(T),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,T),this.updateAxis("y",h.point,T),this.visualElement.render(),g&&F.update(()=>g(f,h),!1,!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new zo(e,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Ko(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!s)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&F.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!te(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=Ec(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&bt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Vc(s.layoutBox,e):this.constraints=!1,this.elastic=Lc(n),i!==this.constraints&&!bt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&ut(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=Dc(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!bt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const r=ju(s,i.root,this.visualElement.getTransformPagePoint());let o=Rc(i.layout.layoutBox,r);if(n){const a=n(ku(o));this.hasMutatedConstraints=!!a,a&&(o=po(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=ut(u=>{if(!te(u,n,this.currentDirection))return;let f=l&&l[u]||{};(o===!0||o===u)&&(f={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:s?e[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...r,...f};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return nn(this.visualElement,e),s.start(Mn(e,s,0,n,this.visualElement,!1))}stopAnimation(){ut(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){ut(n=>{const{drag:s}=this.getProps();if(!te(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=r.get()||0;r.set(e[n]-O(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!bt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ut(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Mc({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),ut(o=>{if(!te(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(O(l,c,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;kc.set(this.visualElement,this);const e=this.visualElement.current,n=Ut(e,"pointerdown",c=>{const{drag:u,dragListener:f=!0}=this.getProps(),h=c.target,p=h!==e&&du(h);u&&f&&!p&&this.start(c)});let s;const i=()=>{const{dragConstraints:c}=this.getProps();bt(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),s||(s=Bc(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),F.read(i);const a=Kt(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(ut(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())}));return()=>{a(),n(),o(),l&&l(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=dn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function ri(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function Bc(t,e,n){const s=ds(t,ri(n)),i=ds(e,ri(n));return()=>{s(),i()}}function te(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function jc(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Oc extends vt{constructor(e){super(e),this.removeGroupControls=nt,this.removeListeners=nt,this.controls=new Ic(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||nt}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ne=t=>(e,n)=>{t&&F.update(()=>t(e,n),!1,!0)};class Fc extends vt{constructor(){super(...arguments),this.removePointerDownListener=nt}onPointerDown(e){this.session=new zo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ko(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ne(e),onStart:Ne(n),onMove:Ne(s),onEnd:(r,o)=>{delete this.session,i&&F.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=Ut(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ue=!1;class _c extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),Ue&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),le.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,{projection:o}=s;return o&&(o.isPresent=r,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Ue=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||F.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),kn.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Ue=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Yo(t){const[e,n]=jo(),s=S.useContext(mn);return pt.jsx(_c,{...t,layoutGroup:s,switchLayoutGroup:S.useContext($o),isPresent:e,safeToRemove:n})}const Nc={pan:{Feature:Fc},drag:{Feature:Oc,ProjectionNode:Bo,MeasureLayout:Yo}};function ai(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&F.postRender(()=>r(e,Xt(e)))}class Uc extends vt{mount(){const{current:e}=this.node;e&&(this.unmount=lu(e,(n,s)=>(ai(this.node,s,"Start"),i=>ai(this.node,i,"End"))))}unmount(){}}class Wc extends vt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=zt(Kt(this.node.current,"focus",()=>this.onFocus()),Kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ui(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&F.postRender(()=>r(e,Xt(e)))}class $c extends vt{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=mu(e,(i,r)=>(ui(this.node,r,"Start"),(o,{success:a})=>ui(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const pn=new WeakMap,We=new WeakMap,Hc=t=>{const e=pn.get(t.target);e&&e(t)},Kc=t=>{t.forEach(Hc)};function zc({root:t,...e}){const n=t||document;We.has(n)||We.set(n,{});const s=We.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Kc,{root:t,...e})),s[i]}function Gc(t,e,n){const s=zc(e);return pn.set(t,n),s.observe(t),()=>{pn.delete(t),s.unobserve(t)}}const Yc={some:0,all:1};class Xc extends vt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Yc[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),h=c?u:f;h&&h(l)};this.stopObserver=Gc(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(qc(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function qc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Zc={inView:{Feature:Xc},tap:{Feature:$c},focus:{Feature:Wc},hover:{Feature:Uc}},Jc={layout:{ProjectionNode:Bo,MeasureLayout:Yo}},Qc={...Pc,...Zc,...Nc,...Jc},sf=gc(Qc,vc);export{nf as A,nr as R,S as a,tf as b,Zo as g,pt as j,sf as m,er as r};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<meta name="color-scheme" content="light" />
|
|
7
|
+
<title>Pagecast</title>
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-BTCh8CIt.js"></script>
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/assets/motion-vendor-CDgKLzlB.js">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/dnd-vendor-BtfBOykZ.js">
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-XOrnLHdD.css">
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div id="root"></div>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|