{"version":3,"file":"AnimationHero.BMP1Cb6b.mjs","names":["useMemo","useMemo","useMemo","useRef","useCallback","useState","useMemo","useRef","useCallback"],"sources":["https:/framerusercontent.com/modules/VTUDdizacRHpwbkOamr7/AykinQJbgwl92LvMGZwu/constants.js","https:/framerusercontent.com/modules/D4TWeLfcxT6Tysr2BlYg/iZjmqdxVx1EOiM3k1FaW/useOnNavigationTargetChange.js","https:/framerusercontent.com/modules/ExNgrA7EJTKUPpH6vIlN/eiOrSJ2Ab5M9jPCvVwUz/useConstant.js","https:/framerusercontent.com/modules/D2Lz5CmnNVPZFFiZXalt/QaCzPbriZBfXWZIIycFI/colorFromToken.js","https:/framerusercontent.com/modules/3mKFSGQqKHV82uOV1eBc/5fbRLvOpxZC0JOXugvwm/isMotionValue.js","https:/framerusercontent.com/modules/xDiQsqBGXzmMsv7AlEVy/uhunpMiNsbXxzjlXsg1y/useUniqueClassName.js","https:/framerusercontent.com/modules/ETACN5BJyFTSo0VVDJfu/NHRqowOiXkF9UwOzczF7/variantUtils.js","https:/framerusercontent.com/modules/eMBrwoqQK7h6mEeGQUH8/GuplvPJVjmxpk9zqOTcb/isBrowser.js","https:/framerusercontent.com/modules/v9AWX2URmiYsHf7GbctE/XxKAZ9KlhWqf5x1JMyyF/useOnChange.js","https:/framerusercontent.com/modules/kNDwabfjDEb3vUxkQlZS/fSIr3AOAYbGlfSPgXpYu/useAutoMotionValue.js","https:/framerusercontent.com/modules/cuQH4dmpDnV8YK1mSgQX/KqRXqunFjE6ufhpc7ZRu/useFontControls.js","https:/framerusercontent.com/modules/afBE9Yx1W6bY5q32qPxe/m3q7puE2tbo1S2C0s0CT/useRenderTarget.js","https:/framerusercontent.com/modules/zGkoP8tPDCkoBzMdt5uq/0zFSjxIYliHxrQQnryFX/useControlledState.js","https:/framerusercontent.com/modules/5SM58HxZHxjjv7aLMOgQ/WXz9i6mVki0bBCrKdqB3/propUtils.js","https:/framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/OIjZRBmWDcIE2B6qgG1j/index.js","https:/framerusercontent.com/modules/lRDHiNWNVWmE0lqtoVHP/Sn64gjTwaJh0TFAuaV07/Video.js","https:/framerusercontent.com/modules/fxQhvqduX5dJL1XrmX03/NGli6RO9u21k1obWA06w/AnimationHero.js"],"sourcesContent":["import { ControlType } from \"framer\";\nexport const fontStack = `\"Inter\", system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"`;\nexport const containerStyles = {\n    position: \"relative\",\n    width: \"100%\",\n    height: \"100%\",\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const emptyStateStyle = {\n    ...containerStyles,\n    borderRadius: 6,\n    background: \"rgba(136, 85, 255, 0.3)\",\n    color: \"#85F\",\n    border: \"1px dashed #85F\",\n    flexDirection: \"column\"\n};\nexport const defaultEvents = {\n    onClick: {\n        type: ControlType.EventHandler\n    },\n    onMouseEnter: {\n        type: ControlType.EventHandler\n    },\n    onMouseLeave: {\n        type: ControlType.EventHandler\n    }\n};\nexport const fontSizeOptions = {\n    type: ControlType.Number,\n    title: \"Font Size\",\n    min: 2,\n    max: 200,\n    step: 1,\n    displayStepper: true\n};\nexport const fontControls = {\n    font: {\n        type: ControlType.Boolean,\n        title: \"Font\",\n        defaultValue: false,\n        disabledTitle: \"Default\",\n        enabledTitle: \"Custom\"\n    },\n    fontFamily: {\n        type: ControlType.String,\n        title: \"Family\",\n        placeholder: \"Inter\",\n        hidden: ({ font  })=>!font\n    },\n    fontWeight: {\n        type: ControlType.Enum,\n        title: \"Weight\",\n        options: [\n            100,\n            200,\n            300,\n            400,\n            500,\n            600,\n            700,\n            800,\n            900\n        ],\n        optionTitles: [\n            \"Thin\",\n            \"Extra-light\",\n            \"Light\",\n            \"Regular\",\n            \"Medium\",\n            \"Semi-bold\",\n            \"Bold\",\n            \"Extra-bold\",\n            \"Black\", \n        ],\n        hidden: ({ font  })=>!font\n    }\n};\n// @TODO check if we're missing anything here — there doesn't seem to be a reliable browser API for this\nexport const localeOptions = {\n    af: \"Afrikaans\",\n    sq: \"Albanian\",\n    an: \"Aragonese\",\n    ar: \"Arabic (Standard)\",\n    \"ar-dz\": \"Arabic (Algeria)\",\n    \"ar-bh\": \"Arabic (Bahrain)\",\n    \"ar-eg\": \"Arabic (Egypt)\",\n    \"ar-iq\": \"Arabic (Iraq)\",\n    \"ar-jo\": \"Arabic (Jordan)\",\n    \"ar-kw\": \"Arabic (Kuwait)\",\n    \"ar-lb\": \"Arabic (Lebanon)\",\n    \"ar-ly\": \"Arabic (Libya)\",\n    \"ar-ma\": \"Arabic (Morocco)\",\n    \"ar-om\": \"Arabic (Oman)\",\n    \"ar-qa\": \"Arabic (Qatar)\",\n    \"ar-sa\": \"Arabic (Saudi Arabia)\",\n    \"ar-sy\": \"Arabic (Syria)\",\n    \"ar-tn\": \"Arabic (Tunisia)\",\n    \"ar-ae\": \"Arabic (U.A.E.)\",\n    \"ar-ye\": \"Arabic (Yemen)\",\n    hy: \"Armenian\",\n    as: \"Assamese\",\n    ast: \"Asturian\",\n    az: \"Azerbaijani\",\n    eu: \"Basque\",\n    bg: \"Bulgarian\",\n    be: \"Belarusian\",\n    bn: \"Bengali\",\n    bs: \"Bosnian\",\n    br: \"Breton\",\n    my: \"Burmese\",\n    ca: \"Catalan\",\n    ch: \"Chamorro\",\n    ce: \"Chechen\",\n    zh: \"Chinese\",\n    \"zh-hk\": \"Chinese (Hong Kong)\",\n    \"zh-cn\": \"Chinese (PRC)\",\n    \"zh-sg\": \"Chinese (Singapore)\",\n    \"zh-tw\": \"Chinese (Taiwan)\",\n    cv: \"Chuvash\",\n    co: \"Corsican\",\n    cr: \"Cree\",\n    hr: \"Croatian\",\n    cs: \"Czech\",\n    da: \"Danish\",\n    nl: \"Dutch (Standard)\",\n    \"nl-be\": \"Dutch (Belgian)\",\n    en: \"English\",\n    \"en-au\": \"English (Australia)\",\n    \"en-bz\": \"English (Belize)\",\n    \"en-ca\": \"English (Canada)\",\n    \"en-ie\": \"English (Ireland)\",\n    \"en-jm\": \"English (Jamaica)\",\n    \"en-nz\": \"English (New Zealand)\",\n    \"en-ph\": \"English (Philippines)\",\n    \"en-za\": \"English (South Africa)\",\n    \"en-tt\": \"English (Trinidad & Tobago)\",\n    \"en-gb\": \"English (United Kingdom)\",\n    \"en-us\": \"English (United States)\",\n    \"en-zw\": \"English (Zimbabwe)\",\n    eo: \"Esperanto\",\n    et: \"Estonian\",\n    fo: \"Faeroese\",\n    fa: \"Farsi\",\n    fj: \"Fijian\",\n    fi: \"Finnish\",\n    fr: \"French (Standard)\",\n    \"fr-be\": \"French (Belgium)\",\n    \"fr-ca\": \"French (Canada)\",\n    \"fr-fr\": \"French (France)\",\n    \"fr-lu\": \"French (Luxembourg)\",\n    \"fr-mc\": \"French (Monaco)\",\n    \"fr-ch\": \"French (Switzerland)\",\n    fy: \"Frisian\",\n    fur: \"Friulian\",\n    gd: \"Gaelic (Scots)\",\n    \"gd-ie\": \"Gaelic (Irish)\",\n    gl: \"Galacian\",\n    ka: \"Georgian\",\n    de: \"German (Standard)\",\n    \"de-at\": \"German (Austria)\",\n    \"de-de\": \"German (Germany)\",\n    \"de-li\": \"German (Liechtenstein)\",\n    \"de-lu\": \"German (Luxembourg)\",\n    \"de-ch\": \"German (Switzerland)\",\n    el: \"Greek\",\n    gu: \"Gujurati\",\n    ht: \"Haitian\",\n    he: \"Hebrew\",\n    hi: \"Hindi\",\n    hu: \"Hungarian\",\n    is: \"Icelandic\",\n    id: \"Indonesian\",\n    iu: \"Inuktitut\",\n    ga: \"Irish\",\n    it: \"Italian (Standard)\",\n    \"it-ch\": \"Italian (Switzerland)\",\n    ja: \"Japanese\",\n    kn: \"Kannada\",\n    ks: \"Kashmiri\",\n    kk: \"Kazakh\",\n    km: \"Khmer\",\n    ky: \"Kirghiz\",\n    tlh: \"Klingon\",\n    ko: \"Korean\",\n    \"ko-kp\": \"Korean (North Korea)\",\n    \"ko-kr\": \"Korean (South Korea)\",\n    la: \"Latin\",\n    lv: \"Latvian\",\n    lt: \"Lithuanian\",\n    lb: \"Luxembourgish\",\n    mk: \"FYRO Macedonian\",\n    ms: \"Malay\",\n    ml: \"Malayalam\",\n    mt: \"Maltese\",\n    mi: \"Maori\",\n    mr: \"Marathi\",\n    mo: \"Moldavian\",\n    nv: \"Navajo\",\n    ng: \"Ndonga\",\n    ne: \"Nepali\",\n    no: \"Norwegian\",\n    nb: \"Norwegian (Bokmal)\",\n    nn: \"Norwegian (Nynorsk)\",\n    oc: \"Occitan\",\n    or: \"Oriya\",\n    om: \"Oromo\",\n    \"fa-ir\": \"Persian/Iran\",\n    pl: \"Polish\",\n    pt: \"Portuguese\",\n    \"pt-br\": \"Portuguese (Brazil)\",\n    pa: \"Punjabi\",\n    \"pa-in\": \"Punjabi (India)\",\n    \"pa-pk\": \"Punjabi (Pakistan)\",\n    qu: \"Quechua\",\n    rm: \"Rhaeto-Romanic\",\n    ro: \"Romanian\",\n    \"ro-mo\": \"Romanian (Moldavia)\",\n    ru: \"Russian\",\n    \"ru-mo\": \"Russian (Moldavia)\",\n    sz: \"Sami (Lappish)\",\n    sg: \"Sango\",\n    sa: \"Sanskrit\",\n    sc: \"Sardinian\",\n    sd: \"Sindhi\",\n    si: \"Singhalese\",\n    sr: \"Serbian\",\n    sk: \"Slovak\",\n    sl: \"Slovenian\",\n    so: \"Somani\",\n    sb: \"Sorbian\",\n    es: \"Spanish\",\n    \"es-ar\": \"Spanish (Argentina)\",\n    \"es-bo\": \"Spanish (Bolivia)\",\n    \"es-cl\": \"Spanish (Chile)\",\n    \"es-co\": \"Spanish (Colombia)\",\n    \"es-cr\": \"Spanish (Costa Rica)\",\n    \"es-do\": \"Spanish (Dominican Republic)\",\n    \"es-ec\": \"Spanish (Ecuador)\",\n    \"es-sv\": \"Spanish (El Salvador)\",\n    \"es-gt\": \"Spanish (Guatemala)\",\n    \"es-hn\": \"Spanish (Honduras)\",\n    \"es-mx\": \"Spanish (Mexico)\",\n    \"es-ni\": \"Spanish (Nicaragua)\",\n    \"es-pa\": \"Spanish (Panama)\",\n    \"es-py\": \"Spanish (Paraguay)\",\n    \"es-pe\": \"Spanish (Peru)\",\n    \"es-pr\": \"Spanish (Puerto Rico)\",\n    \"es-es\": \"Spanish (Spain)\",\n    \"es-uy\": \"Spanish (Uruguay)\",\n    \"es-ve\": \"Spanish (Venezuela)\",\n    sx: \"Sutu\",\n    sw: \"Swahili\",\n    sv: \"Swedish\",\n    \"sv-fi\": \"Swedish (Finland)\",\n    \"sv-sv\": \"Swedish (Sweden)\",\n    ta: \"Tamil\",\n    tt: \"Tatar\",\n    te: \"Teluga\",\n    th: \"Thai\",\n    tig: \"Tigre\",\n    ts: \"Tsonga\",\n    tn: \"Tswana\",\n    tr: \"Turkish\",\n    tk: \"Turkmen\",\n    uk: \"Ukrainian\",\n    hsb: \"Upper Sorbian\",\n    ur: \"Urdu\",\n    ve: \"Venda\",\n    vi: \"Vietnamese\",\n    vo: \"Volapuk\",\n    wa: \"Walloon\",\n    cy: \"Welsh\",\n    xh: \"Xhosa\",\n    ji: \"Yiddish\",\n    zu: \"Zulu\"\n};\n\nexport const __FramerMetadata__ = {\"exports\":{\"fontSizeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"localeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontStack\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"emptyStateStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultEvents\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./constants.map","import { useIsInCurrentNavigationTarget } from \"framer\";\nimport { useEffect } from \"react\";\nexport function useOnEnter(onEnter, enabled) {\n    return useOnSpecificTargetChange(true, onEnter, enabled);\n}\nexport function useOnExit(onExit, enabled) {\n    return useOnSpecificTargetChange(false, onExit, enabled);\n}\nfunction useOnSpecificTargetChange(goal, callback, enabled = true) {\n    const isInTarget = useIsInCurrentNavigationTarget();\n    useEffect(()=>{\n        if (enabled && isInTarget === goal) callback();\n    }, [\n        isInTarget\n    ]);\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useOnEnter\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnExit\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useOnNavigationTargetChange.map","import { useRef } from \"react\";\n/**\n * Creates a constant value over the lifecycle of a component.\n *\n * Even if `useMemo` is provided an empty array as its final argument, it doesn't offer\n * a guarantee that it won't re-run for performance reasons later on. By using `useConstant`\n * you can ensure that initialisers don't execute twice or more.\n */ export function useConstant(init) {\n    const ref = useRef(null);\n    if (ref.current === null) {\n        ref.current = init();\n    }\n    return ref.current;\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useConstant\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useConstant.map","import { Color } from \"framer\";\nexport function colorFromToken(color) {\n    if (color.startsWith(\"var(--token-\")) return \"rgb\" + color.split(\") /*\")[0].split(\", rgb\")[1];\n    return color;\n}\nexport function colorTokentoValue(color) {\n    return Color(colorFromToken(color)).toValue();\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"colorFromToken\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"colorTokentoValue\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./colorFromToken.map","import { MotionValue } from \"framer\";\nexport const isMotionValue = (v)=>v instanceof MotionValue\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"isMotionValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./isMotionValue.map","import * as React from \"react\";\nconst letters = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\nconst l = ()=>letters[Math.floor(Math.random() * letters.length)]\n;\nexport const randomID = ()=>l() + l() + l() + l() + l() + l() + l() + l() + l()\n;\nfunction createUniqueClass(suffix) {\n    return `framer-${suffix}-${randomID()}`;\n}\nexport function useUniqueClassName(suffix, deps) {\n    const [className, setClassName] = React.useState(createUniqueClass(suffix));\n    React.useEffect(()=>{\n        setClassName(createUniqueClass(suffix));\n    }, [\n        suffix,\n        ...deps\n    ]);\n    return className;\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useUniqueClassName\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomID\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useUniqueClassName.map","import { ControlType } from \"framer\";\n// I realize this only applies to select right now\n// but we can work on it in here\nexport function getVariantControls(Component, variant, additionalControls = {\n}) {\n    return {\n        [`${variant}TextColor`]: {\n            type: ControlType.Color,\n            title: \"Text Color\",\n            defaultValue: Component.defaultProps[`${variant}TextColor`],\n            hidden: (props)=>props.variant !== variant\n        },\n        [`${variant}IconColor`]: {\n            type: ControlType.Color,\n            title: \"Icon Color\",\n            defaultValue: Component.defaultProps[`${variant}IconColor`],\n            hidden: (props)=>props.variant !== variant\n        },\n        [`${variant}BackgroundColor`]: {\n            type: ControlType.Color,\n            title: \"Bg Color\",\n            defaultValue: Component.defaultProps[`${variant}BackgroundColor`],\n            hidden: (props)=>props.variant !== variant\n        },\n        [`${variant}BorderColor`]: {\n            type: ControlType.Color,\n            title: \"Border Color\",\n            defaultValue: Component.defaultProps[`${variant}BorderColor`],\n            hidden: (props)=>props.variant !== variant\n        },\n        [`${variant}BorderWidth`]: {\n            type: ControlType.Number,\n            title: \" \",\n            min: 0,\n            max: 5,\n            displayStepper: true,\n            defaultValue: Component.defaultProps[`${variant}BorderWidth`],\n            hidden: (props)=>props.variant !== variant\n        },\n        ...additionalControls\n    };\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"getVariantControls\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./variantUtils.map","import { useMemo } from \"react\";\nexport const isBrowserSafari = ()=>{\n    if (typeof navigator !== `undefined`) {\n        const userAgent = navigator.userAgent.toLowerCase();\n        const isSafari = (userAgent.indexOf(\"safari\") > -1 || userAgent.indexOf(\"framermobile\") > -1 || userAgent.indexOf(\"framerx\") > -1) && userAgent.indexOf(\"chrome\") < 0;\n        return isSafari;\n    } else return false;\n};\nexport const useIsBrowserSafari = ()=>useMemo(()=>isBrowserSafari()\n    , [])\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"useIsBrowserSafari\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isBrowserSafari\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./isBrowser.map","import { useEffect } from \"react\";\n//@ts-ignore\nimport { isMotionValue } from \"https://framerusercontent.com/modules/3mKFSGQqKHV82uOV1eBc/5fbRLvOpxZC0JOXugvwm/isMotionValue.js\";\nexport function useOnChange(value, callback) {\n    useEffect(()=>// @ts-ignore this should be detected as a MV :shrug:\n        isMotionValue(value) ? value.onChange(callback) : undefined\n    );\n}\nexport function useMultiOnChange(values, handler) {\n    useEffect(()=>{\n        const subscriptions = values.map((value)=>value.onChange(handler)\n        );\n        return ()=>subscriptions.forEach((unsubscribe)=>unsubscribe()\n            )\n        ;\n    });\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"Subscriber\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnChange\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useMultiOnChange\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useOnChange.map","import { useCallback, useEffect, useRef } from \"react\";\nimport { motionValue, animate, RenderTarget } from \"framer\";\n// @ts-ignore\nimport { isMotionValue } from \"https://framerusercontent.com/modules/3mKFSGQqKHV82uOV1eBc/5fbRLvOpxZC0JOXugvwm/isMotionValue.js\";\n// @ts-ignore\nimport { useConstant } from \"https://framerusercontent.com/modules/ExNgrA7EJTKUPpH6vIlN/eiOrSJ2Ab5M9jPCvVwUz/useConstant.js\";\nexport function useAutoMotionValue(inputValue, options) {\n    var ref;\n    // Put options on a local ref\n    // Might wanna just memo instead but it works for now\n    const optionsRef = useRef(options);\n    const animation = useRef();\n    const didInitialMount = useRef(false);\n    const isOnCanvas = RenderTarget.current() === RenderTarget.canvas;\n    // in-progress - trying to figure out effect hooks\n    const onChangeDeps = (options === null || options === void 0 ? void 0 : options.onChangeDeps) ? options.onChangeDeps : [];\n    // Memoize the onChange handler\n    const onChange = useCallback(options === null || options === void 0 ? void 0 : options.onChange, [\n        ...onChangeDeps, \n    ]);\n    // Optionally scale the value from props\n    const transformer = useCallback((value)=>((ref = optionsRef.current) === null || ref === void 0 ? void 0 : ref.transform) ? optionsRef.current.transform(value) : value\n    , []);\n    // Create new MotionValue from inputValue\n    const value = useConstant(()=>isMotionValue(inputValue) ? inputValue : motionValue(transformer(inputValue))\n    );\n    // Setting value from prop change\n    useEffect(()=>{\n        if (!isMotionValue(inputValue) && didInitialMount.current) {\n            var ref1, ref2;\n            const newValue = transformer(inputValue);\n            (ref1 = animation.current) === null || ref1 === void 0 ? void 0 : ref1.stop();\n            // Call change callback\n            if (onChange) onChange(newValue, value);\n            // Trigger animation to new value\n            if (((ref2 = optionsRef.current) === null || ref2 === void 0 ? void 0 : ref2.animate) && !isOnCanvas) {\n                var ref3;\n                // @ts-ignore\n                animation.current = animate(value, newValue, (ref3 = optionsRef.current) === null || ref3 === void 0 ? void 0 : ref3.transition);\n            } else {\n                value.set(newValue);\n            }\n        }\n        didInitialMount.current = true;\n    }, [\n        inputValue,\n        ...onChangeDeps\n    ]);\n    return value;\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useAutoMotionValue\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}","// @ts-ignore\nimport{fontStore}from\"framer\";import{useEffect}from\"react\";import{fontStack}from\"https://framerusercontent.com/modules/VTUDdizacRHpwbkOamr7/AykinQJbgwl92LvMGZwu/constants.js\";const fontWeights={100:\"Thin\",200:\"Extra-light\",300:\"Light\",400:\"Regular\",500:\"Medium\",600:\"Semi-bold\",700:\"Bold\",800:\"Extra-bold\",900:\"Black\"};export function useFontControls(props){const{fontFamily=\"Inter\",fontSize=16,fontWeight=400,font=false}=props;const fontWeightName=fontWeights[fontWeight];const customFontStack=`\"${fontFamily} ${fontWeightName}\", \"${fontFamily}\", ${fontStack}`;const fontFamilyStyle=fontFamily?{fontSize,fontWeight,fontFamily:customFontStack}:{fontSize,fontWeight};const fetchCustomFonts=async()=>{await fontStore.loadWebFontsFromSelectors([`CUSTOM;${fontFamily}`,`CUSTOM;${fontFamily} ${fontWeightName}`,`GF;${fontFamily}-${fontWeightName.toLowerCase()}`,]).catch(e=>console.error(e));};useEffect(()=>{if(font)fetchCustomFonts();},[font,fontFamily,fontWeight]);return fontFamilyStyle;}\nexport const __FramerMetadata__ = {\"exports\":{\"useFontControls\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useFontControls.map","import { useMemo } from \"react\";\nimport { RenderTarget } from \"framer\";\nexport function useRenderTarget() {\n    const currentRenderTarget = useMemo(()=>RenderTarget.current()\n    , []);\n    return currentRenderTarget;\n}\nexport function useIsInPreview() {\n    const inPreview = useMemo(()=>RenderTarget.current() === RenderTarget.preview\n    , []);\n    return inPreview;\n}\nexport function useIsOnCanvas() {\n    const onCanvas = useMemo(()=>RenderTarget.current() === RenderTarget.canvas\n    , []);\n    return onCanvas;\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useIsInPreview\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRenderTarget\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsOnCanvas\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useRenderTarget.map","import * as React from \"react\";\nexport function useControlledState(value) {\n    const [controlledValue, setValue] = React.useState(value);\n    React.useEffect(()=>{\n        setValue(value);\n    }, [\n        value\n    ]);\n    return [\n        controlledValue,\n        setValue\n    ];\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useControlledState\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useControlledState.map","import { useMemo } from \"react\";\nimport { ControlType } from \"framer\";\nexport function useRadius(props) {\n    const { borderRadius , isMixedBorderRadius , topLeftRadius , topRightRadius , bottomRightRadius , bottomLeftRadius ,  } = props;\n    const radiusValue = useMemo(()=>isMixedBorderRadius ? `${topLeftRadius}px ${topRightRadius}px ${bottomRightRadius}px ${bottomLeftRadius}px` : `${borderRadius}px`\n    , [\n        borderRadius,\n        isMixedBorderRadius,\n        topLeftRadius,\n        topRightRadius,\n        bottomRightRadius,\n        bottomLeftRadius, \n    ]);\n    return radiusValue;\n}\nexport const borderRadiusControl = {\n    borderRadius: {\n        title: \"Radius\",\n        type: ControlType.FusedNumber,\n        toggleKey: \"isMixedBorderRadius\",\n        toggleTitles: [\n            \"Radius\",\n            \"Radius per corner\"\n        ],\n        valueKeys: [\n            \"topLeftRadius\",\n            \"topRightRadius\",\n            \"bottomRightRadius\",\n            \"bottomLeftRadius\", \n        ],\n        valueLabels: [\n            \"TL\",\n            \"TR\",\n            \"BR\",\n            \"BL\"\n        ],\n        min: 0\n    }\n};\nexport function usePadding(props) {\n    const { padding , paddingPerSide , paddingTop , paddingRight , paddingBottom , paddingLeft ,  } = props;\n    const paddingValue = useMemo(()=>paddingPerSide ? `${paddingTop}px ${paddingRight}px ${paddingBottom}px ${paddingLeft}px` : padding\n    , [\n        padding,\n        paddingPerSide,\n        paddingTop,\n        paddingRight,\n        paddingBottom,\n        paddingLeft, \n    ]);\n    return paddingValue;\n}\nexport const paddingControl = {\n    padding: {\n        type: ControlType.FusedNumber,\n        toggleKey: \"paddingPerSide\",\n        toggleTitles: [\n            \"Padding\",\n            \"Padding per side\"\n        ],\n        valueKeys: [\n            \"paddingTop\",\n            \"paddingRight\",\n            \"paddingBottom\",\n            \"paddingLeft\", \n        ],\n        valueLabels: [\n            \"T\",\n            \"R\",\n            \"B\",\n            \"L\"\n        ],\n        min: 0,\n        title: \"Padding\"\n    }\n};\n\nexport const __FramerMetadata__ = {\"exports\":{\"borderRadiusControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRadius\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RadiusProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PaddingProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"usePadding\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"paddingControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./propUtils.map","import{defaultEvents,localeOptions,fontControls,fontSizeOptions,emptyStateStyle,containerStyles,fontStack}from\"https://framerusercontent.com/modules/VTUDdizacRHpwbkOamr7/AykinQJbgwl92LvMGZwu/constants.js\";import{useOnEnter,useOnExit}from\"https://framerusercontent.com/modules/D4TWeLfcxT6Tysr2BlYg/iZjmqdxVx1EOiM3k1FaW/useOnNavigationTargetChange.js\";import{useConstant}from\"https://framerusercontent.com/modules/ExNgrA7EJTKUPpH6vIlN/eiOrSJ2Ab5M9jPCvVwUz/useConstant.js\";import{colorTokentoValue,colorFromToken}from\"https://framerusercontent.com/modules/D2Lz5CmnNVPZFFiZXalt/QaCzPbriZBfXWZIIycFI/colorFromToken.js\";import{isMotionValue}from\"https://framerusercontent.com/modules/3mKFSGQqKHV82uOV1eBc/5fbRLvOpxZC0JOXugvwm/isMotionValue.js\";import{useUniqueClassName,randomID}from\"https://framerusercontent.com/modules/xDiQsqBGXzmMsv7AlEVy/uhunpMiNsbXxzjlXsg1y/useUniqueClassName.js\";import{getVariantControls}from\"https://framerusercontent.com/modules/ETACN5BJyFTSo0VVDJfu/NHRqowOiXkF9UwOzczF7/variantUtils.js\";import{useIsBrowserSafari}from\"https://framerusercontent.com/modules/eMBrwoqQK7h6mEeGQUH8/GuplvPJVjmxpk9zqOTcb/isBrowser.js\";import{useMultiOnChange,useOnChange}from\"https://framerusercontent.com/modules/v9AWX2URmiYsHf7GbctE/XxKAZ9KlhWqf5x1JMyyF/useOnChange.js\";import{mstoMinAndSec,secondsToMinutes}from\"https://framerusercontent.com/modules/4zHZnO5JojN1PrIbu2jm/revv9QCWpkh8lPzi2jje/time.js\";import{useAutoMotionValue}from\"https://framerusercontent.com/modules/kNDwabfjDEb3vUxkQlZS/fSIr3AOAYbGlfSPgXpYu/useAutoMotionValue.js\";import{useFontControls}from\"https://framerusercontent.com/modules/cuQH4dmpDnV8YK1mSgQX/KqRXqunFjE6ufhpc7ZRu/useFontControls.js\";import{useRenderTarget,useIsInPreview,useIsOnCanvas}from\"https://framerusercontent.com/modules/afBE9Yx1W6bY5q32qPxe/m3q7puE2tbo1S2C0s0CT/useRenderTarget.js\";import{useControlledState}from\"https://framerusercontent.com/modules/zGkoP8tPDCkoBzMdt5uq/0zFSjxIYliHxrQQnryFX/useControlledState.js\";import{usePadding,useRadius,paddingControl,borderRadiusControl}from\"https://framerusercontent.com/modules/5SM58HxZHxjjv7aLMOgQ/WXz9i6mVki0bBCrKdqB3/propUtils.js\";import{detectAutoSizingAxis}from\"https://framerusercontent.com/modules/8CkHAZatUz1UR8jNTcfD/HwbnIAZlUmQ2oTpcLkaH/detectAutoSizingAxis.js\";export{useOnEnter,useOnExit,defaultEvents,isMotionValue,colorFromToken,colorTokentoValue,localeOptions,fontControls,fontSizeOptions,emptyStateStyle,containerStyles,fontStack,useUniqueClassName,getVariantControls,useIsBrowserSafari,randomID,useConstant,useMultiOnChange,useOnChange,usePadding,useRadius,paddingControl,borderRadiusControl,mstoMinAndSec,useFontControls,secondsToMinutes,useAutoMotionValue,useRenderTarget,useIsInPreview,useControlledState,detectAutoSizingAxis,useIsOnCanvas,};\nexport const __FramerMetadata__ = {\"exports\":{\"useConstant\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isMotionValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultEvents\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useUniqueClassName\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useMultiOnChange\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnChange\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsOnCanvas\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnExit\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontSizeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"colorTokentoValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRadius\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getVariantControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"colorFromToken\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"usePadding\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontStack\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useControlledState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useFontControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useAutoMotionValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"emptyStateStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsInPreview\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsBrowserSafari\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"detectAutoSizingAxis\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"borderRadiusControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"mstoMinAndSec\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomID\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"localeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnEnter\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"secondsToMinutes\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRenderTarget\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"paddingControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}","// ⚠️⚠️⚠️⚠️⚠️\n// Edit these files in https://github.com/framer/FramerCodeComponents\n// ⚠️⚠️⚠️⚠️⚠️\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsInCurrentNavigationTarget,RenderTarget}from\"framer\";import{isMotionValue,useInView}from\"framer-motion\";import{borderRadiusControl,defaultEvents,useIsBrowserSafari,useIsOnCanvas,useOnEnter,useOnExit,useRadius,useRenderTarget}from\"https://framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/OIjZRBmWDcIE2B6qgG1j/index.js\";// https://framer.com/m/framer/default-utils.js@^0.45.0\nimport{memo,useCallback,useEffect,useMemo,useRef,useState}from\"react\";var ObjectFitType;(function(ObjectFitType){ObjectFitType[\"Fill\"]=\"fill\";ObjectFitType[\"Contain\"]=\"contain\";ObjectFitType[\"Cover\"]=\"cover\";ObjectFitType[\"None\"]=\"none\";ObjectFitType[\"ScaleDown\"]=\"scale-down\";})(ObjectFitType||(ObjectFitType={}));var SrcType;(function(SrcType){SrcType[\"Video\"]=\"Upload\";SrcType[\"Url\"]=\"URL\";})(SrcType||(SrcType={}));const defaultVideo=\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\";// Reduce renders\nfunction getProps(props){const{width,height,topLeft,topRight,bottomRight,bottomLeft,id,children,...rest}=props;return rest;}/**\n * VIDEO\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 112\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export function Video(props){const newProps=getProps(props);return /*#__PURE__*/_jsx(VideoMemo,{...newProps});}function usePlaybackControls(videoRef){const isInCurrentNavigationTarget=useIsInCurrentNavigationTarget();const requestingPlay=useRef(false);const isPlayingRef=useRef(false);const setProgress=useCallback(rawProgress=>{if(!videoRef.current)return;const newProgress=(rawProgress===1?.999:rawProgress)*videoRef.current.duration;const isAlreadySet=Math.abs(videoRef.current.currentTime-newProgress)<.1;if(videoRef.current.duration>0&&!isAlreadySet){videoRef.current.currentTime=newProgress;}},[]);const play=useCallback(()=>{const video=videoRef.current;if(!video)return;video.preload=\"auto\"// makes sure browsers don't throttle: https://html.spec.whatwg.org/multipage/media.html#:~:text=When%20the%20media%20resource%20is%20playing%2C%20hints%20to%20the%20user%20agent%20that%20bandwidth%20is%20to%20be%20considered%20scarce%2C%20e.g.%20suggesting%20throttling%20the%20download%20so%20that%20the%20media%20data%20is%20obtained%20at%20the%20slowest%20possible%20rate%20that%20still%20maintains%20consistent%20playback.\n;const isPlaying=video.currentTime>0&&video.onplaying&&!video.paused&&!video.ended&&video.readyState>=video.HAVE_CURRENT_DATA;if(!isPlaying&&video&&!requestingPlay.current&&isInCurrentNavigationTarget){requestingPlay.current=true;isPlayingRef.current=true;video.play().catch(e=>{})// It's likely fine, swallow error\n.finally(()=>requestingPlay.current=false);}},[]);const pause=useCallback(()=>{if(!videoRef.current||requestingPlay.current)return;videoRef.current.pause();isPlayingRef.current=false;},[]);return{play,pause,setProgress,isPlaying:isPlayingRef};}function useAutoplayBehavior({playingProp,muted,loop,playsinline,controls}){const[initialPlayingProp]=useState(playingProp);const[hasPlayingPropChanged,setHasPlayingPropChanged]=useState(false);if(playingProp!==initialPlayingProp&&!hasPlayingPropChanged){setHasPlayingPropChanged(true);}const behavesAsGif=// passing `playing === true` on mount indicates that the video should\n// autoplay, like a GIF\ninitialPlayingProp&&muted&&loop&&playsinline&&!controls&&// Some users of the <Video> component use it by wrapping it with\n// another smart component and adding their own controls on top. (The\n// controls use transitions to control the video: e.g., when clicking\n// the play button, the smart component will transition to a state with\n// <Video playing={true} />.) In this case, we don't want the video to\n// behave as a gif, as it will be weird if the video suddenly started\n// acting as such (and auto-pausing when leaving the viewport) as soon\n// as the site visitor mutes it and clicks “Play”.\n!hasPlayingPropChanged;let autoplay;if(behavesAsGif)autoplay=\"on-viewport\";else if(initialPlayingProp)autoplay=\"on-mount\";else autoplay=\"no-autoplay\";return autoplay;}const VideoMemo=/*#__PURE__*/memo(function VideoInner(props){const{// default props\nsrcType=\"URL\",srcUrl,srcFile=\"\",posterEnabled=false,controls=false,playing=true,loop=true,muted=true,playsinline=true,restartOnEnter=false,objectFit=\"cover\",backgroundColor=\"rgba(0,0,0,0)\",radius=0,volume=25,startTime:startTimeProp=0,poster,playing:playingProp,progress,onSeeked,onPause,onPlay,onEnd,onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp}=props;const videoRef=useRef();const isSafari=useIsBrowserSafari();const wasPausedOnLeave=useRef(null);const wasEndedOnLeave=useRef(null);const isOnCanvas=useIsOnCanvas();const renderTarget=useRenderTarget();const isStaticRenderer=isOnCanvas||renderTarget===RenderTarget.export;const borderRadius=useRadius(props);// Hard-coding `autoplayBehavior` and `isInViewport` when on canvas as a\n// tiny perf optimization. isStaticRenderer won’t change through the lifecycle of\n// the component, so using these hooks conditionally should be safe\nconst autoplayBehavior=isStaticRenderer?\"no-autoplay\":useAutoplayBehavior({playingProp,muted,loop,playsinline,controls});const isInViewport=isStaticRenderer?true:useInView(videoRef);const isCloseToViewport=isStaticRenderer?false:useInView(videoRef,{margin:\"10%\",once:true});// Video elements behave oddly at 100% duration\nconst startTime=startTimeProp===100?99.9:startTimeProp;const{play,pause,setProgress,isPlaying}=usePlaybackControls(videoRef);// Pause/play via props\nuseEffect(()=>{if(isStaticRenderer)return;if(autoplayBehavior===\"on-viewport\")return;if(playingProp)play();else pause();},[autoplayBehavior,playingProp]);// Pause/play via viewport\nuseEffect(()=>{if(isStaticRenderer)return;// this also explicitly retries playing for videos that play on-mount, which could fail if they're not muted for example\nif(isInViewport&&playingProp&&autoplayBehavior!==\"no-autoplay\")play();if(autoplayBehavior!==\"on-viewport\")return;pause();},[autoplayBehavior,isInViewport,playingProp]);useEffect(()=>{if(!isOnCanvas||poster||posterEnabled||startTime||!videoRef.current)return;// forces a poster to show up when the video is in an iframe; this is needed when `poster` changes\nvideoRef.current.currentTime=.01;},[posterEnabled,poster,startTime]);/**\n     * The Video component has some effects that sync the video element with props\n     * like `startTime`, `progress`, etc. React calls these effects whenever these\n     * props change. However, it also calls them on the first mount, and this is\n     * troublesome – if we’re doing SSR, and the user changed the video state before\n     * the video was hydrated, the initial `useEffect` call will reset the video\n     * state. To avoid this, we use this flag.\n     */const isMountedAndReadyForProgressChanges=useRef(false);// Allow scrubbling via progress prop\n// 1) Handle cases when the progress prop itself changes\nuseEffect(()=>{if(!isMountedAndReadyForProgressChanges.current){isMountedAndReadyForProgressChanges.current=true;return;}const rawProgressValue=isMotionValue(progress)?progress.get():(progress??0)*.01;setProgress(// When the progress value exists (e.g. <Video startTime={10}\n// progress={50} />), we respect the `progress` value over\n// `startTime`, even if `startTime` changes. That’s because\n// `startTime` == start == changing it shouldn’t affect the current\n// progress\n(rawProgressValue??0)||// Then why fall back to `startTime` when `progress` doesn’t exist,\n// you might ask? Now, that’s for\n// - canvas UX: we want the video progress to change when the user\n//   is scrobbling the “Start Time” in component settings.\n// - backwards compatibility: maybe some users *are* scrobbling\n//   using `startTime` instead of `progress`? We don’t know, and it\n//   always supported it, so let’s not break it\n(startTime??0)/100);},[startTime,srcFile,srcUrl,progress]);// 2) Handle cases when the motion value inside the progress prop changes\nuseEffect(()=>{if(!isMotionValue(progress))return;return progress.on(\"change\",value=>setProgress(value));},[progress]);// (Prototyping) Checking if we need to play on navigation enter\nuseOnEnter(()=>{if(wasPausedOnLeave.current===null)return;if(videoRef.current){// if (restartOnEnter) setProgress(0)\nif(!wasEndedOnLeave&&loop||!wasPausedOnLeave.current)play();}});// (Prototyping) Pausing & saving playing state on navigation exit\nuseOnExit(()=>{if(videoRef.current){wasEndedOnLeave.current=videoRef.current.ended;wasPausedOnLeave.current=videoRef.current.paused;pause();}});const src=useMemo(()=>{let fragment=\"\";// if (\n//     startTime > 0 &&\n//     videoRef.current &&\n//     !isNaN(videoRef.current.duration) &&\n//     !isStaticRenderer\n// ) {\n//     console.log(startTime, videoRef.current.duration)\n//     fragment = `#t=${startTime * videoRef.current.duration}`\n// }\nif(srcType===\"URL\")return srcUrl+fragment;if(srcType===\"Upload\")return srcFile+fragment;},[srcType,srcFile,srcUrl,startTime]);// Autoplay via JS to work in Safari\nuseEffect(()=>{if(isSafari&&videoRef.current&&autoplayBehavior===\"on-mount\"){setTimeout(()=>play(),50);}},[]);// Volume Control\nuseEffect(()=>{if(videoRef.current&&!muted)videoRef.current.volume=(volume??0)/100;},[volume]);// When video is ready, set start-time, then autoplay if needed\nconst handleReady=()=>{const video=videoRef.current;if(!video)return;if(video.currentTime<.3&&startTime>0)setProgress((startTime??0)*.01);if(// when the component updates (e.g. only srcFile/url changes), and the video was already playing, keep playing\nisPlaying.current||autoplayBehavior===\"on-mount\"||playingProp&&autoplayBehavior===\"on-viewport\"&&isInViewport)play();};return /*#__PURE__*/_jsx(\"video\",{onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,src:src,loop:loop,ref:videoRef,onSeeked:e=>onSeeked?.(e),onPause:e=>onPause?.(e),onPlay:e=>onPlay?.(e),onEnded:e=>onEnd?.(e),autoPlay:isPlaying.current||autoplayBehavior===\"on-mount\"||playingProp&&autoplayBehavior===\"on-viewport\"&&isInViewport,preload:isPlaying.current?\"auto\":isStaticRenderer&&!poster?\"metadata\":autoplayBehavior!==\"on-mount\"&&!isCloseToViewport?\"none\":// `autoplay` overrides this too\n\"metadata\",poster:posterEnabled&&!srcFile&&srcUrl===defaultVideo?\"https://framerusercontent.com/images/5ILRvlYXf72kHSVHqpa3snGzjU.jpg\":posterEnabled&&poster?poster:undefined,onLoadedData:handleReady,controls:controls,muted:isStaticRenderer?true:muted,playsInline:playsinline,style:{cursor:!!onClick?\"pointer\":\"auto\",width:\"100%\",height:\"100%\",borderRadius,display:\"block\",objectFit:objectFit,backgroundColor:backgroundColor,objectPosition:\"50% 50%\"}});});Video.displayName=\"Video\";function capitalizeFirstLetter(value){return value.charAt(0).toUpperCase()+value.slice(1);}export function titleCase(value){const groups=value.match(/[A-Z]{2,}|[A-Z][a-z]+|[a-z]+|[A-Z]|\\d+/gu)||[];return groups.map(capitalizeFirstLetter).join(\" \");}const objectFitOptions=[\"cover\",\"fill\",\"contain\",\"scale-down\",\"none\"];addPropertyControls(Video,{srcType:{type:ControlType.Enum,displaySegmentedControl:true,title:\"Source\",options:[\"URL\",\"Upload\"]},srcUrl:{type:ControlType.String,title:\"URL\",defaultValue:\"https://framerusercontent.com/assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4\",hidden(props){return props.srcType===\"Upload\";}},srcFile:{type:ControlType.File,title:\"File\",allowedFileTypes:[\"mp4\",\"webm\"],description:\"Only MP4 and WebM\",hidden(props){return props.srcType===\"URL\";}},playing:{type:ControlType.Boolean,title:\"Playing\",enabledTitle:\"Yes\",disabledTitle:\"No\"},...borderRadiusControl,posterEnabled:{type:ControlType.Boolean,title:\"Poster\",enabledTitle:\"Yes\",disabledTitle:\"No\"},poster:{type:ControlType.Image,title:\"Image\",hidden:({posterEnabled})=>!posterEnabled,description:\"We recommend adding a poster. [Learn more](https://www.framer.com/help/articles/how-are-videos-optimized-in-framer/).\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(0,0,0,0)\"},startTime:{title:\"Start Time\",type:ControlType.Number,min:0,max:100,step:.1,unit:\"%\"},loop:{type:ControlType.Boolean,title:\"Loop\",enabledTitle:\"Yes\",disabledTitle:\"No\"},objectFit:{type:ControlType.Enum,title:\"Fit\",options:objectFitOptions,optionTitles:objectFitOptions.map(titleCase)},// restartOnEnter: {\n//     type: ControlType.Boolean,\n//     title: \"On ReEnter\",\n//     enabledTitle: \"Restart\",\n//     disabledTitle: \"Resume\",\n// },\ncontrols:{type:ControlType.Boolean,title:\"Controls\",enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:false},muted:{type:ControlType.Boolean,title:\"Muted\",enabledTitle:\"Yes\",disabledTitle:\"No\"},volume:{type:ControlType.Number,max:100,min:0,unit:\"%\",hidden:({muted})=>muted,defaultValue:25},onEnd:{type:ControlType.EventHandler},onSeeked:{type:ControlType.EventHandler},onPause:{type:ControlType.EventHandler},onPlay:{type:ControlType.EventHandler},...defaultEvents});\nexport const __FramerMetadata__ = {\"exports\":{\"titleCase\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Video\":{\"type\":\"reactComponent\",\"name\":\"Video\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"112\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"200\",\"framerContractVersion\":\"1\"}},\"VideoProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Video.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect,useCallback}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * LTA Network — Framer code component\n * -------------------------------------------------------------\n * Ports the canvas dot-swarm / image-formation tool into a single\n * embeddable Framer component. Drop an image or video onto the\n * \"Asset\" prop and the dots will assemble into it; every knob from\n * the original control panel is exposed as a property control.\n *\n * Multi-source / rebuild transitions:\n * - `sources` accepts an array of {image, videoFile} entries. `activeSourceIndex`\n *   selects which one is currently shown — drive it from an override (e.g.\n *   scroll position ÷ 100vh) to advance through sources as the user scrolls,\n *   or use the built-in `autoAdvance` for a standalone cycling instance.\n * - When the active source changes, `transitionMode: \"rebuild\"` releases the\n *   current dots into swarm motion for `transitionScatterMs`, then extracts\n *   and reforms the new source — reads as a deliberate rebuild rather than a\n *   hard cut. `transitionMode: \"instant\"` reforms immediately.\n * - The legacy single `image`/`videoFile` props still work as before and are\n *   used as source 0 whenever `sources` is empty.\n *\n * Notes on scope:\n * - This component handles ONE formation (one asset) visible at a time.\n * - Export/recording controls from the original tool are not included\n *   here since they don't apply inside the Framer canvas at runtime.\n *\n * Perf changelog (this revision):\n * - writeCache no longer stringifies + writes to localStorage synchronously\n *   inside the commit path. A fresh extraction still updates the in-memory\n *   cache immediately (so the source is instantly reusable this session),\n *   but the disk write is deferred to requestIdleCallback so it never lands\n *   on the same frame as a rebuild commit — that was the main source of the\n *   stutter right as dots reform into a new source.\n * - Added per-source overrides for Magnet Radius / Force / Inertia, same\n *   pattern as the existing Count / Threshold / Circle overrides.\n */// ────────────────────────────────────────────────────────────\n// MOTION PROFILES (unchanged from source tool)\n// ────────────────────────────────────────────────────────────\nconst PROFILES={smooth:{seek:.016,nearDamp:.8,nearR:3.5,wander:.05,align:.13,cohesion:.0045,lerpK:.22},spring:{seek:.03,nearDamp:.97,nearR:0,wander:.12,align:.07,cohesion:.003,lerpK:.38},snap:{seek:.065,nearDamp:.6,nearR:5,wander:.22,align:.17,cohesion:.006,lerpK:.72},float:{seek:.007,nearDamp:.93,nearR:6,wander:.02,align:.05,cohesion:.0032,lerpK:.1},drift:{seek:.003,nearDamp:.96,nearR:8,wander:.01,align:.03,cohesion:.0018,lerpK:.05},surge:{seek:.09,nearDamp:.5,nearR:4,wander:.35,align:.2,cohesion:.008,lerpK:.88},bounce:{seek:.04,nearDamp:.85,nearR:2,wander:.18,align:.1,cohesion:.005,lerpK:.28},magnetic:{seek:.055,nearDamp:.72,nearR:4.5,wander:.08,align:.15,cohesion:.0055,lerpK:.45}};const BAYER4=[[0,8,2,10],[12,4,14,6],[3,11,1,9],[15,7,13,5]];// Dither/fill extraction used to run getImageData + a per-pixel scan at FULL\n// display resolution (container size × retina DPR). At spacing:1 that's a\n// pixel-by-pixel walk across a multi-megapixel canvas — this is what shows up\n// as ~100% \"Scripting\" and 0 fps in DevTools. We cap the analysis buffer to a\n// fixed max side length (independent of container size/DPR) and rescale the\n// resulting points back up — same trick the original edges-mode already used\n// via ANA_SCALE, just made resolution-independent and quality-tunable.\nconst ANALYSIS_CAP={performance:700,balanced:1100,high:1600};function getAnalysisScale(quality,W,H){// Opt-in escape hatch: skips the analysis-resolution cap entirely, at the\n// full getImageData cost the cap exists to avoid. Only meant for cases\n// that need pixel-exact parity against something uncapped (e.g. matching\n// a reference build of this tool at a specific canvas size) — not a\n// general \"sharper\" setting, since it reintroduces the cost that\n// ANALYSIS_CAP was added to solve.\nif(quality===\"native\")return 1;const cap=ANALYSIS_CAP[quality]??1100;return Math.min(1,cap/Math.max(W,H));}// Cheap Padé[3,2] approximation of tanh — used in the per-ball, per-frame\n// speed-cap smoothing inside update() below. That loop runs unconditionally\n// for every ball every frame regardless of governor level (it's the actual\n// physics, not throttleable overhead), and Math.tanh is one of the pricier\n// transcendental calls relative to plain arithmetic. This is accurate to\n// within ~1% over the range that ever reaches it — the ratio saturates well\n// before |x| > 3, same as real tanh.\nfunction fastTanh(x){if(x>3)return 1;if(x<-3)return-1;const x2=x*x;return x*(27+x2)/(27+9*x2);}const ltaSharedTickers=new Map;let ltaSharedOrder=[];let ltaSharedIdSeq=0;let ltaSharedRafId=null;let ltaSharedCursor=0;let ltaSharedFrameStartMs=0;const LTA_FRAME_BUDGET_MS=14// leave headroom in a 16.6ms frame for compositing\n;// \"auto\" dot render mode (below): below this diameter in device pixels, a\n// filled square and a filled circle are visually indistinguishable, but\n// ctx.rect() is meaningfully cheaper for the browser to rasterize than\n// ctx.arc() at the scale of thousands of calls per frame. Above it, arc()\n// still draws true circles so larger dots keep their round shape.\nconst SQUARE_FAST_PATH_MAX_DIAMETER=4;function ltaSharedLoop(ts){ltaSharedRafId=requestAnimationFrame(ltaSharedLoop);const ids=ltaSharedOrder;const n=ids.length;if(!n)return;const t0=performance.now();ltaSharedFrameStartMs=t0;for(let k=0;k<n;k++){const idx=(ltaSharedCursor+k)%n;const fn=ltaSharedTickers.get(ids[idx]);if(fn)fn(ts);if(k<n-1&&performance.now()-t0>LTA_FRAME_BUDGET_MS){ltaSharedCursor=(idx+1)%n;return;}}ltaSharedCursor=n?(ltaSharedCursor+1)%n:0;}function ltaRegisterTicker(fn){const id=++ltaSharedIdSeq;ltaSharedTickers.set(id,fn);ltaSharedOrder.push(id);if(ltaSharedRafId==null)ltaSharedRafId=requestAnimationFrame(ltaSharedLoop);return id;}function ltaUnregisterTicker(id){ltaSharedTickers.delete(id);ltaSharedOrder=ltaSharedOrder.filter(x=>x!==id);if(ltaSharedOrder.length===0&&ltaSharedRafId!=null){cancelAnimationFrame(ltaSharedRafId);ltaSharedRafId=null;ltaSharedCursor=0;}}// ────────────────────────────────────────────────────────────\n// IMAGE EXTRACTION WORKER — ports extractDither / extractEdges / extractFill\n// (+ poissonMask / gridMask) to run inside a Web Worker against an\n// OffscreenCanvas, so the actual getImageData + per-pixel scan — the part\n// that shows up as long main-thread tasks / high TBT, especially at a\n// spacing:1 dither on a hero instance — happens off the main thread\n// entirely. Shipped as a Blob-URL worker (one string) rather than a\n// separate file, since a Framer code component is a single self-contained\n// module with no bundler step of its own to pull in a second file.\n//\n// Scope: IMAGES ONLY. A live <video> frame isn't cheaply transferable to a\n// worker without MediaStreamTrackProcessor (spotty browser support), so\n// video keeps using the original synchronous main-thread extraction below,\n// on its existing throttled per-frame cadence — this worker only ever\n// touches the image path. Every call site that uses it degrades to that\n// same synchronous main-thread extraction if the worker can't be created,\n// times out, or throws — see extractShapeAsync further down.\nconst WORKER_SRC=`\nvar BAYER4 = [[0,8,2,10],[12,4,14,6],[3,11,1,9],[15,7,13,5]];\nvar ANALYSIS_CAP = { performance: 700, balanced: 1100, high: 1600 };\nfunction getAnalysisScale(quality, W, H) {\n    if (quality === \"native\") return 1;\n    var cap = ANALYSIS_CAP[quality];\n    if (cap == null) cap = 1100;\n    return Math.min(1, cap / Math.max(W, H));\n}\n\nfunction poissonMask(inMask, x0, y0, x1, y1, pitch) {\n    var cell = pitch / Math.SQRT2;\n    var gw = Math.max(1, Math.ceil((x1 - x0) / cell));\n    var gh = Math.max(1, Math.ceil((y1 - y0) / cell));\n    var grid = new Int32Array(gw * gh).fill(-1);\n    var pts = [];\n    var active = [];\n    var pitch2 = pitch * pitch;\n    function gidx(x, y) {\n        return (((y - y0) / cell) | 0) * gw + (((x - x0) / cell) | 0);\n    }\n    function fits(x, y) {\n        var cx = ((x - x0) / cell) | 0, cy = ((y - y0) / cell) | 0;\n        for (var oy = -2; oy <= 2; oy++) {\n            var ny = cy + oy;\n            if (ny < 0 || ny >= gh) continue;\n            for (var ox = -2; ox <= 2; ox++) {\n                var nx = cx + ox;\n                if (nx < 0 || nx >= gw) continue;\n                var pi = grid[ny * gw + nx];\n                if (pi < 0) continue;\n                var dx = pts[pi].x - x, dy = pts[pi].y - y;\n                if (dx * dx + dy * dy < pitch2) return false;\n            }\n        }\n        return true;\n    }\n    function add(x, y) {\n        var i = pts.length;\n        pts.push({ x: x, y: y, w: 1 });\n        grid[gidx(x, y)] = i;\n        active.push(i);\n    }\n    var seeded = false;\n    for (var y = y0 + cell / 2; y < y1 && !seeded; y += cell)\n        for (var x = x0 + cell / 2; x < x1; x += cell) {\n            if (inMask(x, y)) { add(x, y); seeded = true; break; }\n        }\n    if (!seeded) return pts;\n    var K = 30;\n    while (active.length) {\n        var ai = (Math.random() * active.length) | 0;\n        var p = pts[active[ai]];\n        var placed = false;\n        for (var t = 0; t < K; t++) {\n            var ang = Math.random() * Math.PI * 2;\n            var mag = pitch * (1 + Math.random());\n            var nx2 = p.x + Math.cos(ang) * mag, ny2 = p.y + Math.sin(ang) * mag;\n            if (nx2 < x0 || nx2 >= x1 || ny2 < y0 || ny2 >= y1) continue;\n            if (!inMask(nx2, ny2)) continue;\n            if (!fits(nx2, ny2)) continue;\n            add(nx2, ny2);\n            placed = true;\n            break;\n        }\n        if (!placed) {\n            active[ai] = active[active.length - 1];\n            active.pop();\n        }\n    }\n    for (var y2 = y0 + cell / 2; y2 < y1; y2 += cell)\n        for (var x3 = x0 + cell / 2; x3 < x1; x3 += cell)\n            if (inMask(x3, y2) && fits(x3, y2)) add(x3, y2);\n    return pts;\n}\n\nfunction gridMask(inMask, x0, y0, x1, y1, pitch, gap) {\n    var pts = [];\n    var J = Math.max(0, gap * 0.35);\n    for (var y = y0 + pitch / 2; y < y1; y += pitch)\n        for (var x = x0 + pitch / 2; x < x1; x += pitch)\n            if (inMask(x, y))\n                pts.push({\n                    x: x + (Math.random() - 0.5) * 2 * J,\n                    y: y + (Math.random() - 0.5) * 2 * J,\n                    w: 1,\n                });\n    return pts;\n}\n\nvar ditherMem = null;\nfunction extractDither(ctx, bitmap, W, H, quality, spacing, exposure, edgePadding) {\n    var mW = bitmap.width || 640;\n    var mH = bitmap.height || 480;\n    var aScale = getAnalysisScale(quality, W, H);\n    var aW = Math.max(8, Math.round(W * aScale));\n    var aH = Math.max(8, Math.round(H * aScale));\n    // Same 8% margin extractFill/extractEdges already reserve so dots\n    // never assemble flush against the canvas edge — dither used to have\n    // none, which showed up as points crowding right up to the border on\n    // any image that fills its frame.\n    var pad = edgePadding;\n    var scale = Math.min((aW * (1 - 2 * pad)) / mW, (aH * (1 - 2 * pad)) / mH);\n    var dw = mW * scale, dh = mH * scale;\n    var dx = (aW - dw) / 2, dy = (aH - dh) / 2;\n    ctx.canvas.width = aW;\n    ctx.canvas.height = aH;\n    ctx.fillStyle = \"#fff\";\n    ctx.fillRect(0, 0, aW, aH);\n    ctx.drawImage(bitmap, dx, dy, dw, dh);\n    var data = ctx.getImageData(0, 0, aW, aH).data;\n    var step = Math.max(1, Math.round(spacing * aScale));\n    var x0 = Math.max(step, Math.floor(dx)), x1 = Math.min(aW - step, Math.ceil(dx + dw));\n    var y0 = Math.max(step, Math.floor(dy)), y1 = Math.min(aH - step, Math.ceil(dy + dh));\n    var bSum = 0, bN = 0;\n    function sb(x, y) {\n        var i = (y * aW + x) * 4;\n        if (data[i + 3] < 100) return;\n        bSum += data[i] * 0.299 + data[i + 1] * 0.587 + data[i + 2] * 0.114;\n        bN++;\n    }\n    for (var xa = x0; xa < x1; xa += step) { sb(xa, y0); sb(xa, y1 - 1); }\n    for (var ya = y0; ya < y1; ya += step) { sb(x0, ya); sb(x1 - 1, ya); }\n    var darkIsSubject = (bN ? bSum / bN : 255) >= 128;\n    var bias = exposure / 160;\n    var HYST = 0.06;\n    var gcols = Math.ceil((x1 - x0) / step) + 1;\n    var grows = Math.ceil((y1 - y0) / step) + 1;\n    if (!ditherMem || ditherMem.length !== gcols * grows)\n        ditherMem = new Uint8Array(gcols * grows);\n    var pts = [];\n    var gy = 0;\n    for (var y = y0; y < y1; y += step, gy++) {\n        var gx = 0;\n        for (var x = x0; x < x1; x += step, gx++) {\n            var i = (y * aW + x) * 4;\n            if (data[i + 3] < 100) continue;\n            var lum = data[i] * 0.299 + data[i + 1] * 0.587 + data[i + 2] * 0.114;\n            var v = darkIsSubject ? 1 - lum / 255 : lum / 255;\n            var t = (BAYER4[gy & 3][gx & 3] + 0.5) / 16;\n            var mi = gy * gcols + gx;\n            var was = ditherMem[mi];\n            var on = was ? v + bias > t - HYST : v + bias > t;\n            ditherMem[mi] = on ? 1 : 0;\n            if (on) pts.push({ x: x / aScale, y: y / aScale, w: 1 });\n        }\n    }\n    return pts;\n}\n\nvar prevFrame = null;\nfunction extractEdges(ctx, bitmap, W, H, quality, spacing, ballSize, exposure, edgePadding) {\n    var mW = bitmap.width || 640;\n    var mH = bitmap.height || 480;\n    var pad = edgePadding;\n    var scale = Math.min((W * (1 - 2 * pad)) / mW, (H * (1 - 2 * pad)) / mH);\n    var dw = mW * scale, dh = mH * scale;\n    var dx = (W - dw) / 2, dy = (H - dh) / 2;\n    var ANA_SCALE = quality === \"performance\" ? 0.12 : quality === \"high\" ? 0.28 : 0.2;\n    var aw = Math.max(8, Math.floor(dw * ANA_SCALE));\n    var ah = Math.max(8, Math.floor(dh * ANA_SCALE));\n    ctx.canvas.width = aw;\n    ctx.canvas.height = ah;\n    ctx.drawImage(bitmap, 0, 0, aw, ah);\n    var data = ctx.getImageData(0, 0, aw, ah).data;\n    var thr = Math.max(10, 60 + exposure);\n    var prev = prevFrame;\n    var raw = [];\n    function L(i) { return data[i] * 0.299 + data[i + 1] * 0.587 + data[i + 2] * 0.114; }\n    for (var y = 1; y < ah - 1; y++) {\n        for (var x = 1; x < aw - 1; x++) {\n            var i = (y * aw + x) * 4;\n            var gL = function (x2, y2) { return L(((y + y2) * aw + (x + x2)) * 4); };\n            var gx = gL(1, -1) + 2 * gL(1, 0) + gL(1, 1) - (gL(-1, -1) + 2 * gL(-1, 0) + gL(-1, 1));\n            var gy = gL(-1, 1) + 2 * gL(0, 1) + gL(1, 1) - (gL(-1, -1) + 2 * gL(0, -1) + gL(1, -1));\n            var score = Math.sqrt(gx * gx + gy * gy);\n            if (prev && prev.length === data.length)\n                score += Math.abs(L(i) - (prev[i] * 0.299 + prev[i + 1] * 0.587 + prev[i + 2] * 0.114)) * 4;\n            if (score > thr)\n                raw.push({ x: dx + (x / aw) * dw, y: dy + (y / ah) * dh, w: Math.min(score / 255, 1) });\n        }\n    }\n    if (!prev || prev.length !== data.length) prevFrame = new Uint8ClampedArray(data);\n    else prevFrame.set(data);\n    if (!raw.length) return raw;\n    raw.sort(function (a, b) { return b.w - a.w; });\n    var cell = Math.max(ballSize * 2 + spacing, 2);\n    var seen = {};\n    var pts = [];\n    for (var k = 0; k < raw.length; k++) {\n        var p = raw[k];\n        var key = ((p.y / cell) | 0) * 4096 + ((p.x / cell) | 0);\n        if (seen[key]) continue;\n        seen[key] = true;\n        pts.push(p);\n    }\n    return pts;\n}\n\nfunction extractFill(ctx, bitmap, W, H, quality, spacing, ballSize, fillPacking, exposure, edgePadding) {\n    var mW = bitmap.width || 640;\n    var mH = bitmap.height || 480;\n    var aScale = getAnalysisScale(quality, W, H);\n    var aW = Math.max(8, Math.round(W * aScale));\n    var aH = Math.max(8, Math.round(H * aScale));\n    var pad = edgePadding;\n    var scale = Math.min((aW * (1 - 2 * pad)) / mW, (aH * (1 - 2 * pad)) / mH);\n    var dw = mW * scale, dh = mH * scale;\n    var dx = (aW - dw) / 2, dy = (aH - dh) / 2;\n    ctx.canvas.width = aW;\n    ctx.canvas.height = aH;\n    ctx.fillStyle = \"#fff\";\n    ctx.fillRect(0, 0, aW, aH);\n    ctx.drawImage(bitmap, dx, dy, dw, dh);\n    var data = ctx.getImageData(0, 0, aW, aH).data;\n    var x0 = Math.max(1, Math.floor(dx)), x1 = Math.min(aW - 1, Math.ceil(dx + dw));\n    var y0 = Math.max(1, Math.floor(dy)), y1 = Math.min(aH - 1, Math.ceil(dy + dh));\n    var hstep = Math.max(2, Math.round(ballSize * aScale));\n    var hist = new Uint32Array(256);\n    var total = 0;\n    for (var ya = y0; ya < y1; ya += hstep) {\n        for (var xa = x0; xa < x1; xa += hstep) {\n            var i = (ya * aW + xa) * 4;\n            if (data[i + 3] < 100) continue;\n            var lum = (data[i] * 0.299 + data[i + 1] * 0.587 + data[i + 2] * 0.114) | 0;\n            hist[lum]++;\n            total++;\n        }\n    }\n    if (!total) return [];\n    var sumAll = 0;\n    for (var t = 0; t < 256; t++) sumAll += t * hist[t];\n    var sumB = 0, wB = 0, maxVar = 0, thr = 127;\n    for (var t2 = 0; t2 < 256; t2++) {\n        wB += hist[t2];\n        if (!wB) continue;\n        var wF = total - wB;\n        if (!wF) break;\n        sumB += t2 * hist[t2];\n        var mB = sumB / wB, mF = (sumAll - sumB) / wF;\n        var v = wB * wF * (mB - mF) * (mB - mF);\n        if (v > maxVar) { maxVar = v; thr = t2; }\n    }\n    thr = Math.max(5, Math.min(250, thr + exposure));\n    var bSum = 0, bN = 0;\n    function sampleBorder(x, y) {\n        var i = (y * aW + x) * 4;\n        if (data[i + 3] < 100) return;\n        bSum += data[i] * 0.299 + data[i + 1] * 0.587 + data[i + 2] * 0.114;\n        bN++;\n    }\n    for (var xb = x0; xb < x1; xb += hstep) { sampleBorder(xb, y0); sampleBorder(xb, y1 - 1); }\n    for (var yb = y0; yb < y1; yb += hstep) { sampleBorder(x0, yb); sampleBorder(x1 - 1, yb); }\n    var bgLum = bN ? bSum / bN : 255;\n    var darkIsSubject = bgLum >= thr;\n    function inMask(x, y) {\n        var xi = x | 0, yi = y | 0;\n        if (xi < 0 || yi < 0 || xi >= aW || yi >= aH) return false;\n        var i = (yi * aW + xi) * 4;\n        if (data[i + 3] < 100) return false;\n        var lum = data[i] * 0.299 + data[i + 1] * 0.587 + data[i + 2] * 0.114;\n        return darkIsSubject ? lum < thr : lum > thr;\n    }\n    var gap = Math.max(1, spacing) * aScale;\n    var pitch = (ballSize * 2 + Math.max(1, spacing)) * aScale;\n    var pts = fillPacking === \"grid\"\n        ? gridMask(inMask, x0, y0, x1, y1, pitch, gap)\n        : poissonMask(inMask, x0, y0, x1, y1, pitch);\n    if (aScale < 1) for (var k2 = 0; k2 < pts.length; k2++) { pts[k2].x /= aScale; pts[k2].y /= aScale; }\n    return pts;\n}\n\nvar offCanvas = null;\nself.onmessage = function (e) {\n    var d = e.data;\n    var id = d.id;\n    try {\n        if (!offCanvas) offCanvas = new OffscreenCanvas(8, 8);\n        var ctx = offCanvas.getContext(\"2d\", { willReadFrequently: true });\n        var pts;\n        if (d.extractMode === \"edges\") {\n            pts = extractEdges(ctx, d.bitmap, d.canvasW, d.canvasH, d.quality, d.spacing, d.ballSize, d.exposure, d.edgePadding);\n        } else if (d.extractMode === \"dither\") {\n            pts = extractDither(ctx, d.bitmap, d.canvasW, d.canvasH, d.quality, d.spacing, d.exposure, d.edgePadding);\n        } else {\n            pts = extractFill(ctx, d.bitmap, d.canvasW, d.canvasH, d.quality, d.spacing, d.ballSize, d.fillPacking, d.exposure, d.edgePadding);\n        }\n        d.bitmap.close();\n        var buf = new Float32Array(pts.length * 3);\n        for (var i = 0; i < pts.length; i++) {\n            buf[i * 3] = pts[i].x;\n            buf[i * 3 + 1] = pts[i].y;\n            buf[i * 3 + 2] = pts[i].w;\n        }\n        self.postMessage({ id: id, ok: true, buffer: buf }, [buf.buffer]);\n    } catch (err) {\n        try { d.bitmap.close(); } catch (e2) {}\n        self.postMessage({ id: id, ok: false, error: (err && err.message) ? err.message : String(err) });\n    }\n};\n`;function unpackWorkerPoints(buf){const n=buf.length/3|0;const pts=new Array(n);for(let i=0;i<n;i++){pts[i]={x:buf[i*3],y:buf[i*3+1],w:buf[i*3+2]};}return pts;}export default function LTANetwork(props){const{image,videoFile,sources,activeSourceIndex,transitionMode,transitionScatterMs,autoAdvance,autoAdvanceInterval,loopSources,bgColor,dotColor,dotRenderMode,extractMode,edgePadding,exposure,fillPacking,ballCount,sizeMin,sizeMax,spacing,sizeMode,circR,circCenterCustom,circX,circY,easing,formSpeed,holdSpeed,swarmSpeed,drag,maxDrift,edgePct,orbitDist,magnetR,magnetF,magnetI,enableHover,staticMode,startFormed,paused,retina,autoForm,quality,adaptivePerformance,maxDpr,cacheExtractedPoints,scaleSizeToCanvas,sizeReferenceWidth}=props;// Framer's own edit-canvas renders every instance simultaneously (e.g. a\n// styleguide page with many variants) — cap cost hard while designing,\n// full quality on the published site.\nconst isCanvasMode=RenderTarget.current()===RenderTarget.canvas;const effectiveBallCount=isCanvasMode?Math.min(ballCount,1e3):ballCount;// ── effective source list ──\n// `sources` (array) takes priority; the legacy single image/videoFile\n// props are wrapped into a one-item list whenever `sources` is empty, so\n// existing instances keep working exactly as before with zero migration.\nconst legacyImgSrc=typeof image===\"string\"?image:image?.src;const effectiveSources=sources&&sources.length>0?sources:legacyImgSrc||videoFile?[{image,videoFile}]:[];// Cheap content signature so we can tell \"the array changed identity\"\n// (Framer often passes a new array reference on every render) apart from\n// \"the actual asset at this index changed\" (which should force a reload).\nconst sourcesSig=effectiveSources.map(s=>{const img=typeof s.image===\"string\"?s.image:s.image?.src;return`${img||\"\"}::${s.videoFile||\"\"}`;}).join(\"|\");const containerRef=useRef(null);const canvasRef=useRef(null);const offRef=useRef(null);const anaRef=useRef(null);// Cursor position for the magnet-hover interaction — mouse-only (see the\n// pointerType check on the listeners below), so touch drags never read\n// as \"hovering\" and yank the swarm toward a finger position.\nconst mouseRef=useRef({x:0,y:0,on:false});// Dot-size scale factor relative to `sizeReferenceWidth` — recomputed in\n// resize() from the container's CSS width (DPR-independent) whenever\n// scaleSizeToCanvas is on, so Min/Max Size read as the same proportion of\n// the canvas regardless of how large or small this instance is rendered.\n// Stays 1 (no-op) when the toggle is off, preserving old fixed-px behavior.\nconst sizeScaleRef=useRef(1);// live config mirror — mutated every render, read by the rAF loop\nconst cfgRef=useRef({bgColor,dotColor,dotRenderMode,extractMode,edgePadding:(edgePadding??0)/100,exposure,fillPacking,ballCount:effectiveBallCount,sizeMin:sizeMin*sizeScaleRef.current,sizeMax:sizeMax*sizeScaleRef.current,spacing,sizeMode,circR,circCenterCustom,circX,circY,easing,formSpeed,holdSpeed,swarmSpeed,drag,maxDrift,edgePct,orbitDist,magnetR,magnetF,magnetI,enableHover,staticMode,startFormed,paused,retina,ballSize:sizeMax*sizeScaleRef.current,quality,transitionMode,transitionScatterMs});cfgRef.current={bgColor,dotColor,dotRenderMode,extractMode,edgePadding:(edgePadding??0)/100,exposure,fillPacking,ballCount:effectiveBallCount,sizeMin:sizeMin*sizeScaleRef.current,sizeMax:sizeMax*sizeScaleRef.current,spacing,sizeMode,circR,circCenterCustom,circX,circY,easing,formSpeed,holdSpeed,swarmSpeed,drag,maxDrift,edgePct,orbitDist,magnetR,magnetF,magnetI,enableHover,staticMode,startFormed,paused,retina,ballSize:sizeMax*sizeScaleRef.current,quality,transitionMode,transitionScatterMs};const dimsRef=useRef({W:1,H:1});const ballsRef=useRef([]);const mediaRef=useRef(null);const mediaTypeRef=useRef(null);const ptsRef=useRef([]);const centroidRef=useRef({x:0,y:0});const ditherMemRef=useRef(null);const prevFrameRef=useRef(null);const activeRef=useRef(false);const formedOnceRef=useRef(false);// Flips true the moment the very first formation actually assigns\n// targets (see assignTargets below). Gates the `[effectiveBallCount]`\n// effect further down — without this, that effect fires on mount too\n// (all effects do) and pre-creates the whole pool scattered with no\n// target, which is exactly the free-swarm \"circle\" this was meant to\n// get rid of. Once the first formation has happened, Count changes go\n// through normally.\nconst hasFormedRef=useRef(false);const formationAgeRef=useRef(9999);const tickerIdRef=useRef();const frameCountRef=useRef(0);const gridRef=useRef({head:new Int32Array(0),next:new Int32Array(0),w:0,h:0,cell:64});const pageVisibleRef=useRef(true);const inViewportRef=useRef(true);const reducedMotionRef=useRef(false);const rmSettleRef=useRef(0);const lastIdleRef=useRef(0);const lastFrozenDrawRef=useRef(0);const resizeDebounceRef=useRef();const lastPerfWarnRef=useRef(0);// Tracks the container CSS size (px) as of the last time we actually\n// triggered a re-extraction from resize(). Lets resize() skip\n// re-extracting for sub-threshold layout jitter — see resize() below.\nconst lastExtractDimsRef=useRef({cw:0,ch:0});// ── multi-source / rebuild-transition state ──\n// sourcesRef mirrors effectiveSources every render so callbacks (rAF loop,\n// timers) always read the current list without needing to be re-created.\nconst sourcesRef=useRef([]);sourcesRef.current=effectiveSources;// Caches loaded media elements per source index so flipping back to a\n// previously-shown source doesn't recreate an <img>/<video> (which would\n// mean a network refetch / decode flash) — mirrors how cacheExtractedPoints\n// already avoids redoing the getImageData pass for images.\nconst mediaElementCacheRef=useRef(new Map);const appliedSourceIndexRef=useRef(-1);const transitionTimeoutRef=useRef();const autoAdvanceIntervalRef=useRef();// Short poll used only to detect \"the very first formation actually\n// finished\" before starting the recurring autoAdvance timer — see that\n// effect further down for why.\nconst autoAdvanceFirstWaitRef=useRef();const autoAdvanceFirstGraceRef=useRef();const prevSourcesSigRef=useRef(\"\");// Per-source overrides (Count, Threshold Bias, Circle Radius/Center,\n// Magnet Radius/Force/Inertia), applied the moment each source is\n// loaded — an undefined field means \"use the global prop\". Read fresh\n// inside the functions that need them rather than folded into cfgRef,\n// since mutating a ref doesn't trigger a re-render and cfgRef is only\n// recomputed on render; reading refs live avoids a one-switch lag.\nconst sourceOverridesRef=useRef({});// ── adaptive performance governor ──\n// Tracks a rolling average frame time and, if the device can't keep up,\n// throttles the frame rate and eases off collision-resolution passes —\n// rather than staying pinned to 60fps physics on hardware that can't do it.\nconst governorLevelRef=useRef(0)// 0 = full, 1 = light throttle, 2 = heavy\n;const emaFrameMsRef=useRef(16.6667);const slowFramesRef=useRef(0);const fastFramesRef=useRef(0);const adaptiveIntervalMsRef=useRef(0);const lastFrameTsRef=useRef(0);const lastTickTsRef=useRef(0);// The EMA below used to be fed by the raw rAF-to-rAF wall-clock gap\n// (`dtMs`), which bundles in every OTHER thing the main thread did\n// between frames — e.g. a host page's own scroll handler writing\n// inline styles across several stacked cards on every scroll tick has\n// nothing to do with this instance's own cost, but a big gap it causes\n// still landed in `dtMs` and could trip the governor exactly the same\n// as this instance genuinely being too heavy for the device. That\n// false signal, sustained across an ordinary scroll pass, was enough\n// to walk the governor up to level 2 and (see the pool-shrink step\n// below) trigger a real, visible dot-pool resize — a scatter/reform\n// with no actual cause. `lastFrameDtRef` instead holds only the time\n// this instance's own update()+draw() took last frame (measured right\n// below, same number the \"physics+draw took Xms\" warning uses) — the\n// EMA reads that instead, so only genuine self-cost can move the\n// governor, not contention from unrelated work elsewhere on the page.\nconst lastFrameDtRef=useRef(16.6667);const startupRampUntilRef=useRef(0);// Mirrors startupRampUntilRef's reasoning but for every rebuild commit,\n// not just initial mount: the moment a new formation's targets are\n// assigned, every ball is simultaneously far from its target and the\n// overlap-resolution pass in update() has the most work to do it will\n// ever have for this formation. Reacting only after ~90 sustained slow\n// frames (the normal governor path) means that burst is already over by\n// the time the governor engages. Force a light throttle proactively for\n// a short window after every commit instead, then let the reactive\n// governor take over from there — same \"assume it might be slow, prove\n// otherwise\" approach the startup ramp already uses.\nconst postRebuildRampUntilRef=useRef(0);// ── pool-size degradation ── last-resort governor step: if throttling\n// (frame interval + fewer collision passes, above) still isn't enough,\n// shrink the actual ball pool in ~20% steps (down to a 3-step / ~51%\n// floor) instead of letting physics run slow-motion on more dots than\n// the device can carry. Recovers in the same steps after a sustained\n// stretch of good frame times.\nconst perfBallScaleRef=useRef(1);const degradeStepsRef=useRef(0);const sustainedLowPerfRef=useRef(0);const sustainedRecoverRef=useRef(0);// Guards against the governor re-triggering assignTargets() while a\n// chunked pass (assignUniqueChunked, for pools above CHUNK_THRESHOLD)\n// is still running. Every assignTargets() call bumps\n// assignTargetsReqRef, which makes any in-flight chunked pass bail out\n// silently the moment a newer call supersedes it — that's correct for\n// a deliberate rebuild, but under heavy contention the governor can\n// flap (degrade/recover) faster than one chunked pass completes, so\n// each flap was cancelling the previous pass before a single ball ever\n// got a real target: the pool never finished forming, just kept\n// restarting — the endless drifting \"swarm\" that never resolves into\n// the actual shape. While a chunked pass is active, a governor rescale\n// only sets pendingPerfRescaleRef instead of calling assignTargets()\n// again; the in-flight pass's onDone checks that flag and runs one\n// follow-up assignTargets() to pick up the latest scale, so at most one\n// chunked pass is ever in flight and it always gets to finish.\nconst chunkedInFlightRef=useRef(false);const pendingPerfRescaleRef=useRef(false);// ── extraction cache (memory + localStorage) ── keyed by src + the\n// params that actually change the extracted point set, so re-loading the\n// same asset with the same settings skips getImageData entirely.\nconst extractionMemCacheRef=useRef(new Map);const currentSrcRef=useRef(null);const assignTargetsRef=useRef();const resizeRef=useRef();// Bumped on every assignTargets() call; a chunked (time-sliced) matching\n// pass checks this each frame and bails out silently if it no longer\n// matches — i.e. a newer assignTargets call (another rebuild, another\n// resize) superseded it mid-chunk. Prevents a stale multi-frame pass\n// from finishing late and clobbering whatever the newer call assigned.\nconst assignTargetsReqRef=useRef(0);// ── image extraction worker ── see WORKER_SRC above. workerFailedRef\n// latches permanently true the first time the worker misbehaves (throw,\n// crash, timeout) so we stop paying the createImageBitmap + postMessage\n// round-trip cost on every subsequent call and just use the synchronous\n// main-thread path for the rest of this instance's lifetime.\nconst workerRef=useRef(null);const workerUrlRef=useRef(null);const workerFailedRef=useRef(false);const pendingExtractionsRef=useRef(new Map);const extractReqSeqRef=useRef(0);const unmountedRef=useRef(false);// Guards extractAndAssign against out-of-order completion — if it's\n// called again (new resize, new prop) before a pending worker round-trip\n// for an earlier call resolves, the stale result is dropped instead of\n// clobbering whatever the newer call already assigned.\nconst activeAssignReqRef=useRef(0);// ── ball helpers ──\nconst makeBall=useCallback((x,y)=>{const c=cfgRef.current;const{W,H}=dimsRef.current;// Spawning every ball into one tiny box around center creates a\n// pathological density spike in the neighbor grid (thousands of balls\n// in one 64px cell → O(n²) neighbor search) for however many frames\n// it takes them to seek out to their targets. Spread them across the\n// whole canvas instead — same \"swarm forming\" look, no density cliff.\nreturn{x:x??Math.random()*W,y:y??Math.random()*H,vx:(Math.random()-.5)*c.swarmSpeed,vy:(Math.random()-.5)*c.swarmSpeed,tx:W/2,ty:H/2,hasTarget:false,isEdge:false,rad0:c.sizeMin+Math.random()*(c.sizeMax-c.sizeMin),rad:0};},[]);const fitBallCount=useCallback(n=>{const balls=ballsRef.current;if(n===balls.length)return;if(n<balls.length){balls.length=n;return;}let cx=dimsRef.current.W/2,cy=dimsRef.current.H/2;if(balls.length>0){cx=balls.reduce((s,b)=>s+b.x,0)/balls.length;cy=balls.reduce((s,b)=>s+b.y,0)/balls.length;}// Jumping from a small pool to a large one (e.g. ramp-up finishing, or\n// the first formation growing the pool in one shot) used to cram every\n// new ball into a fixed ±80px box — with thousands of balls that's the\n// same density-cliff bug as the initial spawn. Scale the spawn radius\n// with how many we're adding so density stays roughly constant.\nconst added=n-balls.length;const{W,H}=dimsRef.current;const spreadR=added>200?Math.min(Math.max(W,H)*.4,Math.sqrt(added)*6):80;while(balls.length<n){const ang=Math.random()*Math.PI*2;const rad=Math.random()*spreadR;const nb=makeBall(cx+Math.cos(ang)*rad,cy+Math.sin(ang)*rad);nb.rad=nb.rad0;balls.push(nb);}},[makeBall]);const adjustCount=useCallback(n=>{fitBallCount(n);if(activeRef.current)assignTargets();// eslint-disable-next-line react-hooks/exhaustive-deps\n},[fitBallCount]);// ── circular size-mode center ──\n// A per-source circX/circY override (sources[i].circX / .circY) implies a\n// custom center for that source even when the global \"Custom Center\"\n// toggle is off — setting a center point is itself the intent.\nconst circCenter=useCallback(()=>{const{W,H}=dimsRef.current;const c=cfgRef.current;const so=sourceOverridesRef.current;const hasSourceCenter=so.circX!=null||so.circY!=null;if(c.circCenterCustom||hasSourceCenter){const cx=so.circX??c.circX;const cy=so.circY??c.circY;return{x:cx*W,y:cy*H};}return centroidRef.current.x?centroidRef.current:{x:W/2,y:H/2};},[]);const applySizes=useCallback(()=>{const c=cfgRef.current;const balls=ballsRef.current;if(c.sizeMode!==\"circular\"){for(const b of balls)b.rad=b.rad0;return;}const{x:cx,y:cy}=circCenter();const{W,H}=dimsRef.current;const effCircR=sourceOverridesRef.current.circR??c.circR;const R=effCircR>0?effCircR:Math.max(W,H)*.5;for(const b of balls){if(!b.hasTarget){b.rad=b.rad0;continue;}const t=Math.min(1,Math.hypot(b.tx-cx,b.ty-cy)/R);b.rad=c.sizeMax-(c.sizeMax-c.sizeMin)*t;}},[circCenter]);// ── shape extraction: dither / edges / fill ──\nconst extractDither=useCallback((media,exposureOverride)=>{const c=cfgRef.current;const{W,H}=dimsRef.current;const off=offRef.current;const offCtx=off.getContext(\"2d\",{willReadFrequently:true});const isV=media instanceof HTMLVideoElement;const mW=isV?media.videoWidth||640:media.naturalWidth||640;const mH=isV?media.videoHeight||480:media.naturalHeight||480;const aScale=getAnalysisScale(c.quality,W,H);const aW=Math.max(8,Math.round(W*aScale));const aH=Math.max(8,Math.round(H*aScale));// Same 8% margin extractFill/extractEdges already reserve so\n// dots never assemble flush against the canvas edge.\nconst pad=c.edgePadding;const scale=Math.min(aW*(1-2*pad)/mW,aH*(1-2*pad)/mH);const dw=mW*scale,dh=mH*scale;const dx=(aW-dw)/2,dy=(aH-dh)/2;off.width=aW;off.height=aH;offCtx.fillStyle=\"#fff\";offCtx.fillRect(0,0,aW,aH);offCtx.drawImage(media,dx,dy,dw,dh);const data=offCtx.getImageData(0,0,aW,aH).data;// spacing is a display-space knob (dot pitch on screen) — scale it into\n// analysis space so the dither density still matches what the user set\nconst step=Math.max(1,Math.round(c.spacing*aScale));const x0=Math.max(step,Math.floor(dx)),x1=Math.min(aW-step,Math.ceil(dx+dw));const y0=Math.max(step,Math.floor(dy)),y1=Math.min(aH-step,Math.ceil(dy+dh));let bSum=0,bN=0;const sb=(x,y)=>{const i=(y*aW+x)*4;if(data[i+3]<100)return;bSum+=data[i]*.299+data[i+1]*.587+data[i+2]*.114;bN++;};for(let x=x0;x<x1;x+=step){sb(x,y0);sb(x,y1-1);}for(let y=y0;y<y1;y+=step){sb(x0,y);sb(x1-1,y);}const darkIsSubject=(bN?bSum/bN:255)>=128;const effExposure=exposureOverride!==undefined?exposureOverride:sourceOverridesRef.current.exposure??c.exposure;const bias=effExposure/160;const HYST=.06;const gcols=Math.ceil((x1-x0)/step)+1;const grows=Math.ceil((y1-y0)/step)+1;let mem=ditherMemRef.current;if(!mem||mem.length!==gcols*grows)mem=ditherMemRef.current=new Uint8Array(gcols*grows);const pts=[];let gy=0;for(let y=y0;y<y1;y+=step,gy++){let gx=0;for(let x=x0;x<x1;x+=step,gx++){const i=(y*aW+x)*4;if(data[i+3]<100)continue;const lum=data[i]*.299+data[i+1]*.587+data[i+2]*.114;const v=darkIsSubject?1-lum/255:lum/255;const t=(BAYER4[gy&3][gx&3]+.5)/16;const mi=gy*gcols+gx;const was=mem[mi];const on=was?v+bias>t-HYST:v+bias>t;mem[mi]=on?1:0;if(on)pts.push({x:x/aScale,y:y/aScale,w:1});}}return pts;},[]);const extractEdges=useCallback((media,exposureOverride)=>{const c=cfgRef.current;const{W,H}=dimsRef.current;const ana=anaRef.current;const anaCtx=ana.getContext(\"2d\",{willReadFrequently:true});const isV=media instanceof HTMLVideoElement;const mW=isV?media.videoWidth||640:media.naturalWidth||640;const mH=isV?media.videoHeight||480:media.naturalHeight||480;const pad=c.edgePadding;const scale=Math.min(W*(1-2*pad)/mW,H*(1-2*pad)/mH);const dw=mW*scale,dh=mH*scale;const dx=(W-dw)/2,dy=(H-dh)/2;const ANA_SCALE=c.quality===\"performance\"?.12:c.quality===\"high\"?.28:.2;const aw=Math.max(8,Math.floor(dw*ANA_SCALE));const ah=Math.max(8,Math.floor(dh*ANA_SCALE));ana.width=aw;ana.height=ah;anaCtx.drawImage(media,0,0,aw,ah);const data=anaCtx.getImageData(0,0,aw,ah).data;const effExposure=exposureOverride!==undefined?exposureOverride:sourceOverridesRef.current.exposure??c.exposure;const thr=Math.max(10,60+effExposure);const prev=prevFrameRef.current;const raw=[];const L=i=>data[i]*.299+data[i+1]*.587+data[i+2]*.114;for(let y=1;y<ah-1;y++){for(let x=1;x<aw-1;x++){const i=(y*aw+x)*4;const gL=(x2,y2)=>L(((y+y2)*aw+(x+x2))*4);const gx=gL(1,-1)+2*gL(1,0)+gL(1,1)-(gL(-1,-1)+2*gL(-1,0)+gL(-1,1));const gy=gL(-1,1)+2*gL(0,1)+gL(1,1)-(gL(-1,-1)+2*gL(0,-1)+gL(1,-1));let score=Math.sqrt(gx*gx+gy*gy);if(prev&&prev.length===data.length)score+=Math.abs(L(i)-(prev[i]*.299+prev[i+1]*.587+prev[i+2]*.114))*4;if(score>thr)raw.push({x:dx+x/aw*dw,y:dy+y/ah*dh,w:Math.min(score/255,1)});}}if(!prev||prev.length!==data.length)prevFrameRef.current=new Uint8ClampedArray(data);else prevFrameRef.current.set(data);if(!raw.length)return raw;raw.sort((a,b)=>b.w-a.w);const cell=Math.max(c.ballSize*2+c.spacing,2);const seen=new Set;const pts=[];for(const p of raw){const k=(p.y/cell|0)*4096+(p.x/cell|0);if(seen.has(k))continue;seen.add(k);pts.push(p);}return pts;},[]);const poissonMask=useCallback((inMask,x0,y0,x1,y1,pitch)=>{const cell=pitch/Math.SQRT2;const gw=Math.max(1,Math.ceil((x1-x0)/cell));const gh=Math.max(1,Math.ceil((y1-y0)/cell));const grid=new Int32Array(gw*gh).fill(-1);const pts=[];const active=[];const pitch2=pitch*pitch;const gidx=(x,y)=>((y-y0)/cell|0)*gw+((x-x0)/cell|0);function fits(x,y){const cx=(x-x0)/cell|0,cy=(y-y0)/cell|0;for(let oy=-2;oy<=2;oy++){const ny=cy+oy;if(ny<0||ny>=gh)continue;for(let ox=-2;ox<=2;ox++){const nx=cx+ox;if(nx<0||nx>=gw)continue;const pi=grid[ny*gw+nx];if(pi<0)continue;const dx=pts[pi].x-x,dy=pts[pi].y-y;if(dx*dx+dy*dy<pitch2)return false;}}return true;}function add(x,y){const i=pts.length;pts.push({x,y,w:1});grid[gidx(x,y)]=i;active.push(i);}let seeded=false;for(let y=y0+cell/2;y<y1&&!seeded;y+=cell)for(let x=x0+cell/2;x<x1;x+=cell){if(inMask(x,y)){add(x,y);seeded=true;break;}}if(!seeded)return pts;const K=30;while(active.length){const ai=Math.random()*active.length|0;const p=pts[active[ai]];let placed=false;for(let t=0;t<K;t++){const ang=Math.random()*Math.PI*2;const mag=pitch*(1+Math.random());const nx=p.x+Math.cos(ang)*mag,ny=p.y+Math.sin(ang)*mag;if(nx<x0||nx>=x1||ny<y0||ny>=y1)continue;if(!inMask(nx,ny))continue;if(!fits(nx,ny))continue;add(nx,ny);placed=true;break;}if(!placed){active[ai]=active[active.length-1];active.pop();}}for(let y=y0+cell/2;y<y1;y+=cell)for(let x=x0+cell/2;x<x1;x+=cell)if(inMask(x,y)&&fits(x,y))add(x,y);return pts;},[]);const gridMask=useCallback((inMask,x0,y0,x1,y1,pitch,gap)=>{const pts=[];const J=Math.max(0,gap*.35);for(let y=y0+pitch/2;y<y1;y+=pitch)for(let x=x0+pitch/2;x<x1;x+=pitch)if(inMask(x,y))pts.push({x:x+(Math.random()-.5)*2*J,y:y+(Math.random()-.5)*2*J,w:1});return pts;},[]);const extractFill=useCallback((media,exposureOverride)=>{const c=cfgRef.current;const{W,H}=dimsRef.current;const off=offRef.current;const offCtx=off.getContext(\"2d\",{willReadFrequently:true});const isV=media instanceof HTMLVideoElement;const mW=isV?media.videoWidth||640:media.naturalWidth||640;const mH=isV?media.videoHeight||480:media.naturalHeight||480;const aScale=getAnalysisScale(c.quality,W,H);const aW=Math.max(8,Math.round(W*aScale));const aH=Math.max(8,Math.round(H*aScale));off.width=aW;off.height=aH;const pad=c.edgePadding;const scale=Math.min(aW*(1-2*pad)/mW,aH*(1-2*pad)/mH);const dw=mW*scale,dh=mH*scale;const dx=(aW-dw)/2,dy=(aH-dh)/2;offCtx.fillStyle=\"#fff\";offCtx.fillRect(0,0,aW,aH);offCtx.drawImage(media,dx,dy,dw,dh);const data=offCtx.getImageData(0,0,aW,aH).data;const x0=Math.max(1,Math.floor(dx)),x1=Math.min(aW-1,Math.ceil(dx+dw));const y0=Math.max(1,Math.floor(dy)),y1=Math.min(aH-1,Math.ceil(dy+dh));const hstep=Math.max(2,Math.round(c.ballSize*aScale));const hist=new Uint32Array(256);let total=0;for(let y=y0;y<y1;y+=hstep){for(let x=x0;x<x1;x+=hstep){const i=(y*aW+x)*4;if(data[i+3]<100)continue;const lum=data[i]*.299+data[i+1]*.587+data[i+2]*.114|0;hist[lum]++;total++;}}if(!total)return[];let sumAll=0;for(let t=0;t<256;t++)sumAll+=t*hist[t];let sumB=0,wB=0,maxVar=0,thr=127;for(let t=0;t<256;t++){wB+=hist[t];if(!wB)continue;const wF=total-wB;if(!wF)break;sumB+=t*hist[t];const mB=sumB/wB,mF=(sumAll-sumB)/wF;const v=wB*wF*(mB-mF)*(mB-mF);if(v>maxVar){maxVar=v;thr=t;}}const effExposureFill=exposureOverride!==undefined?exposureOverride:sourceOverridesRef.current.exposure??c.exposure;thr=Math.max(5,Math.min(250,thr+effExposureFill));let bSum=0,bN=0;const sampleBorder=(x,y)=>{const i=(y*aW+x)*4;if(data[i+3]<100)return;bSum+=data[i]*.299+data[i+1]*.587+data[i+2]*.114;bN++;};for(let x=x0;x<x1;x+=hstep){sampleBorder(x,y0);sampleBorder(x,y1-1);}for(let y=y0;y<y1;y+=hstep){sampleBorder(x0,y);sampleBorder(x1-1,y);}const bgLum=bN?bSum/bN:255;const darkIsSubject=bgLum>=thr;const inMask=(x,y)=>{const xi=x|0,yi=y|0;if(xi<0||yi<0||xi>=aW||yi>=aH)return false;const i=(yi*aW+xi)*4;if(data[i+3]<100)return false;const lum=data[i]*.299+data[i+1]*.587+data[i+2]*.114;return darkIsSubject?lum<thr:lum>thr;};// pitch/gap are display-space (px on screen) — scale into analysis\n// space so the poisson/grid packing still matches the requested density,\n// then rescale the resulting points back up to display coordinates.\nconst gap=Math.max(1,c.spacing)*aScale;const pitch=(c.ballSize*2+Math.max(1,c.spacing))*aScale;// Video always uses the cheaper grid packing (it already re-extracts\n// every few frames, so Poisson's active-list sampling + full-mask\n// coverage pass would compound with that). For images, Poisson-disk\n// gives the organic scatter but costs more at extraction time — grid\n// is available as a deliberate speed trade for dense/low-power cases.\nconst pts=isV||c.fillPacking===\"grid\"?gridMask(inMask,x0,y0,x1,y1,pitch,gap):poissonMask(inMask,x0,y0,x1,y1,pitch);if(aScale<1)for(const p of pts){p.x/=aScale;p.y/=aScale;}return pts;},[gridMask,poissonMask]);const extractShape=useCallback((media,exposureOverride)=>{const mode=cfgRef.current.extractMode;if(mode===\"edges\")return extractEdges(media,exposureOverride);if(mode===\"dither\")return extractDither(media,exposureOverride);return extractFill(media,exposureOverride);},[extractEdges,extractDither,extractFill]);// Lazily creates the Blob-URL worker on first use. Returns null (and\n// latches workerFailedRef) if construction throws — e.g. a strict CSP\n// blocking blob: workers on the published site — so callers fall back\n// to the synchronous path instead of retrying every call.\nconst ensureWorker=useCallback(()=>{if(workerRef.current)return workerRef.current;if(workerFailedRef.current)return null;if(typeof Worker===\"undefined\"){workerFailedRef.current=true;return null;}try{const blob=new Blob([WORKER_SRC],{type:\"application/javascript\"});const url=URL.createObjectURL(blob);const worker=new Worker(url);worker.onmessage=e=>{const d=e.data||{};const entry=pendingExtractionsRef.current.get(d.id);if(!entry)return;if(!d.ok){workerFailedRef.current=true;entry.fallback();return;}entry.finish(unpackWorkerPoints(d.buffer));};worker.onerror=()=>{// Worker crashed outright — fail every request still in\n// flight immediately rather than waiting out each one's\n// individual timeout, and stop using the worker going\n// forward.\nworkerFailedRef.current=true;const pending=pendingExtractionsRef.current;pending.forEach(entry=>entry.fallback());pending.clear();};workerRef.current=worker;workerUrlRef.current=url;return worker;}catch{workerFailedRef.current=true;return null;}},[]);// ── async shape extraction ──\n// Routes image extraction to the worker when available; always uses the\n// existing synchronous main-thread extractShape for video, and falls\n// back to it for images too if the worker is unavailable, times out, or\n// errors. onDone always fires exactly once, sync or async, so existing\n// callers built around a completion callback (loadMedia's onReady,\n// switchToSource's scatter/extract race) don't need to change shape —\n// they already tolerated async completion.\nconst extractShapeAsync=useCallback((media,onDone,exposureOverride)=>{if(media instanceof HTMLVideoElement){onDone(extractShape(media,exposureOverride));return;}const runFallback=()=>onDone(extractShape(media,exposureOverride));if(workerFailedRef.current||typeof OffscreenCanvas===\"undefined\"||typeof createImageBitmap===\"undefined\"){runFallback();return;}const worker=ensureWorker();if(!worker){runFallback();return;}const c=cfgRef.current;const effExposure=exposureOverride!==undefined?exposureOverride:sourceOverridesRef.current.exposure??c.exposure;createImageBitmap(media).then(bitmap=>{if(unmountedRef.current){bitmap.close();return;}const reqId=++extractReqSeqRef.current;let settled=false;let timeoutHandle;const finish=pts=>{if(settled)return;settled=true;pendingExtractionsRef.current.delete(reqId);clearTimeout(timeoutHandle);onDone(pts);};const fallback=()=>finish(extractShape(media,exposureOverride));pendingExtractionsRef.current.set(reqId,{finish,fallback});// No response inside a generous window (dead worker,\n// blocked postMessage, etc.) — fall back and stop\n// relying on the worker for the rest of this instance.\ntimeoutHandle=setTimeout(()=>{if(settled)return;workerFailedRef.current=true;fallback();},4e3);try{worker.postMessage({id:reqId,bitmap,canvasW:dimsRef.current.W,canvasH:dimsRef.current.H,quality:c.quality,extractMode:c.extractMode,spacing:c.spacing,ballSize:c.ballSize,fillPacking:c.fillPacking,exposure:effExposure,edgePadding:c.edgePadding},[bitmap]);}catch{pendingExtractionsRef.current.delete(reqId);clearTimeout(timeoutHandle);try{bitmap.close();}catch{/* already closed/transferred */}workerFailedRef.current=true;runFallback();}}).catch(()=>{// createImageBitmap failed — e.g. a cross-origin asset\n// without the right headers, same canvas-taint rules as\n// the main-thread path — fall back rather than hang.\nif(!unmountedRef.current)runFallback();});},[extractShape,ensureWorker]);// ── target assignment ──\nconst assignUnique=useCallback((pts,pitch)=>{const{W,H}=dimsRef.current;const balls=ballsRef.current;const M=pts.length;if(!M)return;const cell=Math.max(16,pitch);const gw=Math.max(1,Math.ceil(W/cell));const gh=Math.max(1,Math.ceil(H/cell));const head=new Int32Array(gw*gh).fill(-1);const next=new Int32Array(M).fill(-1);const used=new Uint8Array(M);for(let i=0;i<M;i++){const cx=Math.min(gw-1,Math.max(0,pts[i].x/cell|0));const cy=Math.min(gh-1,Math.max(0,pts[i].y/cell|0));const c=cy*gw+cx;next[i]=head[c];head[c]=i;}const maxRing=Math.max(gw,gh);function nearestFree(x,y){const bcx=Math.min(gw-1,Math.max(0,x/cell|0));const bcy=Math.min(gh-1,Math.max(0,y/cell|0));let bi=-1,bd=Infinity;for(let ring=0;ring<=maxRing;ring++){for(let oy=-ring;oy<=ring;oy++){const cy=bcy+oy;if(cy<0||cy>=gh)continue;for(let ox=-ring;ox<=ring;ox++){if(ring>0&&Math.abs(ox)!==ring&&Math.abs(oy)!==ring)continue;const cx=bcx+ox;if(cx<0||cx>=gw)continue;for(let i=head[cy*gw+cx];i!==-1;i=next[i]){if(used[i])continue;const dx=pts[i].x-x,dy=pts[i].y-y,d2=dx*dx+dy*dy;if(d2<bd){bd=d2;bi=i;}}}}if(bi>=0&&ring>0)break;}return bi;}const leftover=[];for(const b of balls){const pi=nearestFree(b.x,b.y);if(pi>=0){b.tx=pts[pi].x;b.ty=pts[pi].y;b.hasTarget=true;used[pi]=1;}else leftover.push(b);}if(leftover.length){const free=[];for(let i=0;i<M;i++)if(!used[i])free.push(i);let k=0;for(;k<leftover.length&&k<free.length;k++){const pi=free[k];leftover[k].tx=pts[pi].x;leftover[k].ty=pts[pi].y;leftover[k].hasTarget=true;used[pi]=1;}for(;k<leftover.length;k++)leftover[k].hasTarget=false;}},[]);const markEdgeBalls=useCallback(()=>{const c=cfgRef.current;const balls=ballsRef.current;const active=balls.filter(b=>b.hasTarget);for(const b of balls)b.isEdge=false;if(!active.length)return;const pct=c.edgePct/100;const edgeN=pct<=0?0:Math.max(1,Math.round(active.length*pct));if(!edgeN)return;const{x:cx,y:cy}=centroidRef.current;active.sort((a,b)=>(b.tx-cx)**2+(b.ty-cy)**2-((a.tx-cx)**2+(a.ty-cy)**2));const cand=active.slice(0,Math.min(active.length,edgeN*3));cand.sort((a,b)=>Math.atan2(a.ty-cy,a.tx-cx)-Math.atan2(b.ty-cy,b.tx-cx));const stride=cand.length/edgeN;for(let k=0;k<edgeN;k++)cand[Math.floor(k*stride)].isEdge=true;},[]);// Shared tail of target assignment — centroid, edge marking, sizing,\n// formation-age reset. Called once matching (sync or chunked) is done.\nconst finalizeAssignment=useCallback((pts,M)=>{let cx=0,cy=0;for(const p of pts){cx+=p.x;cy+=p.y;}centroidRef.current={x:cx/M,y:cy/M};markEdgeBalls();applySizes();formationAgeRef.current=0;},[markEdgeBalls,applySizes]);// Time-sliced counterpart to assignUnique — same nearest-free-point\n// matching, but spread across multiple animation frames instead of one\n// blocking pass. Only worth the extra bookkeeping at large pool sizes\n// (see CHUNK_THRESHOLD in assignTargets below); this is what actually\n// showed up as the stutter on rebuild once the cache write was already\n// deferred off the commit frame — matching thousands of balls against\n// thousands of points in one synchronous pass is real work regardless\n// of where it's called from.\nconst assignUniqueChunked=useCallback((pts,pitch,reqId,onDone)=>{const{W,H}=dimsRef.current;const balls=ballsRef.current;const M=pts.length;const n=balls.length;const cell=Math.max(16,pitch);const gw=Math.max(1,Math.ceil(W/cell));const gh=Math.max(1,Math.ceil(H/cell));const head=new Int32Array(gw*gh).fill(-1);const next=new Int32Array(M).fill(-1);const used=new Uint8Array(M);for(let i=0;i<M;i++){const cx=Math.min(gw-1,Math.max(0,pts[i].x/cell|0));const cy=Math.min(gh-1,Math.max(0,pts[i].y/cell|0));const c=cy*gw+cx;next[i]=head[c];head[c]=i;}const maxRing=Math.max(gw,gh);function nearestFree(x,y){const bcx=Math.min(gw-1,Math.max(0,x/cell|0));const bcy=Math.min(gh-1,Math.max(0,y/cell|0));let bi=-1,bd=Infinity;for(let ring=0;ring<=maxRing;ring++){for(let oy=-ring;oy<=ring;oy++){const cy=bcy+oy;if(cy<0||cy>=gh)continue;for(let ox=-ring;ox<=ring;ox++){if(ring>0&&Math.abs(ox)!==ring&&Math.abs(oy)!==ring)continue;const cx=bcx+ox;if(cx<0||cx>=gw)continue;for(let i=head[cy*gw+cx];i!==-1;i=next[i]){if(used[i])continue;const dx=pts[i].x-x,dy=pts[i].y-y,d2=dx*dx+dy*dy;if(d2<bd){bd=d2;bi=i;}}}}if(bi>=0&&ring>0)break;}return bi;}let idx=0;// Budget is now coordinated with the shared RAF driver\n// (ltaSharedLoop) instead of a fixed 5ms slice. Previously this\n// ran its own independent rAF chain with its own fixed budget,\n// completely unaware of how much of the same physical frame the\n// shared ticker (physics + draw for every instance, up to\n// LTA_FRAME_BUDGET_MS=14ms) had already spent — the two could\n// stack to ~19ms in one frame, well past the 16.6ms budget,\n// which is what showed up as the stutter right on rebuild.\n// Now each chunk takes only what's left of the shared frame\n// budget: clamped to a small minimum so it still always makes\n// forward progress even on a maxed-out frame, and a small\n// maximum so it doesn't hog an otherwise-cheap frame either.\nconst FRAME_TOTAL_BUDGET_MS=16;const MIN_CHUNK_MS=1;const MAX_CHUNK_MS=3;const step=()=>{// A newer assignTargets call superseded this one — drop it\n// silently rather than finishing late and stomping on\n// whatever the newer call already assigned.\nif(reqId!==assignTargetsReqRef.current)return;const sharedElapsed=performance.now()-ltaSharedFrameStartMs;const remaining=FRAME_TOTAL_BUDGET_MS-sharedElapsed;const localBudget=Math.max(MIN_CHUNK_MS,Math.min(MAX_CHUNK_MS,remaining));const t0=performance.now();while(idx<n&&performance.now()-t0<localBudget){const b=balls[idx];const pi=nearestFree(b.x,b.y);if(pi>=0){b.tx=pts[pi].x;b.ty=pts[pi].y;b.hasTarget=true;used[pi]=1;}else{b.hasTarget=false;}idx++;}if(idx<n){requestAnimationFrame(step);return;}if(reqId!==assignTargetsReqRef.current)return;// Leftover pass: any ball that came up empty (grid picked\n// clean by earlier balls) gets whatever free point remains,\n// same fallback assignUnique already does synchronously.\nconst leftover=[];for(const b of balls)if(!b.hasTarget)leftover.push(b);if(leftover.length){const free=[];for(let i=0;i<M;i++)if(!used[i])free.push(i);let k=0;for(;k<leftover.length&&k<free.length;k++){const pi=free[k];leftover[k].tx=pts[pi].x;leftover[k].ty=pts[pi].y;leftover[k].hasTarget=true;used[pi]=1;}for(;k<leftover.length;k++)leftover[k].hasTarget=false;}onDone();};requestAnimationFrame(step);},[]);// Below this ball count, one synchronous assignUnique pass is cheap\n// enough (<~2ms typically) that time-slicing it would just add\n// scheduling overhead for no visible benefit. Above it — the range your\n// Count values (2500-6500+) actually live in — the same pass can run\n// long enough to show up as a dropped frame right on the rebuild\n// commit, so it's worth spreading across a few frames instead.\nconst CHUNK_THRESHOLD=1500;const assignTargets=useCallback(onDone=>{const c=cfgRef.current;let pts=ptsRef.current;if(!pts||!pts.length){for(const b of ballsRef.current)b.hasTarget=false;onDone?.();return;}const pitch=c.ballSize*2+Math.max(1,c.spacing);// A per-source Count (sources[i].ballCount) wins over the global\n// ballCount prop while that source is active; same canvas-mode cap\n// the global count gets, applied independently since the override\n// bypasses the effectiveBallCount calculation at the top of render.\nconst sourceBallCount=sourceOverridesRef.current.ballCount;const baseCount=sourceBallCount!=null?isCanvasMode?Math.min(sourceBallCount,1e3):sourceBallCount:c.ballCount;// perfBallScaleRef lets the adaptive-performance governor shrink the\n// effective pool below the target Count when the device can't sustain\n// it — 1 = no degradation (default, or adaptivePerformance off).\nconst desired=Math.max(1,Math.round(baseCount*perfBallScaleRef.current));if(pts.length>desired){pts=pts.slice();for(let i=pts.length-1;i>0;i--){const j=Math.random()*(i+1)|0;[pts[i],pts[j]]=[pts[j],pts[i]];}pts=pts.slice(0,desired);}const M=pts.length;// Count is an upper limit, not a guarantee — Poisson/grid packing at\n// the current Size+Spacing can only fit so many non-overlapping dots\n// in the extracted mask. If M lands below what was asked for, that's\n// the packing ceiling, not a bug; surface it once on canvas so it's\n// obvious why raising Count further has no visible effect.\nif(M<desired&&RenderTarget.current()===RenderTarget.canvas){console.info(`[LTANetwork] requested ${desired} dots — only ${M} fit at Size ${c.sizeMax}px / Spacing ${c.spacing}px. Lower Size or Spacing to pack more, or treat ${M} as the effective count.`);}const isFirstFormation=!hasFormedRef.current;hasFormedRef.current=true;fitBallCount(M);const reqId=++assignTargetsReqRef.current;const n=ballsRef.current.length;// The very first formation always assigns synchronously, no\n// matter the Count — nothing is on-screen or mid-animation yet,\n// so a longer single synchronous pass before the first paint is\n// invisible. Chunking below CHUNK_THRESHOLD frames exists to\n// protect an already-visible rebuild from dropping a frame; on\n// first load there's nothing to drop yet, and every frame the\n// chunked pass would otherwise spend waiting is a frame where\n// the freshly-spawned pool (fitBallCount's circular spawn\n// pattern around canvas center, above) sits fully visible with\n// no target — that's the \"ball\" that kept showing up before\n// reforming into the real shape.\nif(n<=CHUNK_THRESHOLD||isFirstFormation){assignUnique(pts,pitch);finalizeAssignment(pts,M);onDone?.();return;}chunkedInFlightRef.current=true;assignUniqueChunked(pts,pitch,reqId,()=>{chunkedInFlightRef.current=false;finalizeAssignment(pts,M);onDone?.();if(pendingPerfRescaleRef.current){pendingPerfRescaleRef.current=false;assignTargets();}});},[fitBallCount,assignUnique,assignUniqueChunked,finalizeAssignment,isCanvasMode]);assignTargetsRef.current=assignTargets;// ^ signature is now (onDone?: () => void) => void — callers that don't\n// need to know when assignment finishes can keep calling it with no args.\n// Snaps every ball straight onto its assigned target — used right after\n// assignTargets() when `startFormed` is on for the very first formation,\n// so the shape appears fully assembled immediately instead of animating\n// in from scattered starting positions. Also marks the formation as\n// already \"settled\" so a staticMode freeze (if enabled) kicks in right\n// away instead of waiting out the usual ~120-frame grace window.\nconst snapBallsToTargets=useCallback(()=>{for(const b of ballsRef.current){if(b.hasTarget){b.x=b.tx;b.y=b.ty;}b.vx=0;b.vy=0;}formationAgeRef.current=99999;formedOnceRef.current=true;},[]);// Adjusts the pool-size governor scale and, if a formation is currently\n// active, immediately re-assigns targets against the already-extracted\n// point set (cheap — no re-extraction) so the pool actually shrinks or\n// grows on screen rather than only taking effect on the next formation.\nconst applyPerfBallScale=useCallback(next=>{const clamped=Math.max(.4,Math.min(1,next));if(Math.abs(clamped-perfBallScaleRef.current)<.001)return;const prev=perfBallScaleRef.current;perfBallScaleRef.current=clamped;console.info(clamped<prev?`[LTANetwork] frame times still high at max throttle — reducing dot pool to ${Math.round(clamped*100)}% of Count`:`[LTANetwork] frame times recovered — restoring dot pool toward ${Math.round(clamped*100)}% of Count`);if(activeRef.current&&mediaRef.current){// Don't cancel an already-running chunked pass just to start\n// another one for the new scale — under sustained heavy load\n// the governor can flap faster than one chunked pass\n// completes, and every restart was wiping out whatever\n// progress the previous pass had made before any ball got a\n// real target. Defer instead: the in-flight pass's onDone\n// (see assignTargets) picks this flag up and runs one\n// follow-up assignment once it actually finishes.\nif(chunkedInFlightRef.current){pendingPerfRescaleRef.current=true;}else{assignTargets();}}},[assignTargets]);const softReassign=useCallback(()=>{const c=cfgRef.current;const allPts=ptsRef.current;const balls=ballsRef.current;if(!allPts.length)return;if(balls.length>allPts.length){assignTargets();return;}let pts=allPts;if(pts.length>balls.length){pts=[...allPts];for(let i=pts.length-1;i>0;i--){const j=Math.floor(Math.random()*(i+1));[pts[i],pts[j]]=[pts[j],pts[i]];}pts=pts.slice(0,balls.length);}const N=pts.length,used=new Uint8Array(N);const pitch=c.ballSize*2+Math.max(1,c.spacing);const cell=Math.max(pitch,8);const bw=Math.max(1,Math.ceil(dimsRef.current.W/cell));const bmap=new Map;for(let i=0;i<N;i++){const k=(pts[i].y/cell|0)*bw+(pts[i].x/cell|0);let arr=bmap.get(k);if(!arr){arr=[];bmap.set(k,arr);}arr.push(i);}const keep2=(pitch*1.6)**2;function nearestFree(x,y,maxRing){const bcx=x/cell|0,bcy=y/cell|0;let bi=-1,bd=Infinity;for(let ring=0;ring<=maxRing;ring++){for(let oy=-ring;oy<=ring;oy++){for(let ox=-ring;ox<=ring;ox++){if(ring>0&&Math.abs(ox)!==ring&&Math.abs(oy)!==ring)continue;const arr=bmap.get((bcy+oy)*bw+(bcx+ox));if(!arr)continue;for(const i of arr){if(used[i])continue;const dx=pts[i].x-x,dy=pts[i].y-y,d2=dx*dx+dy*dy;if(d2<bd){bd=d2;bi=i;}}}}if(bi>=0&&ring>0)break;}return{bi,bd};}for(const b of balls){if(!b.hasTarget)continue;const{bi,bd}=nearestFree(b.tx,b.ty,1);if(bi>=0&&bd<keep2){b.tx=pts[bi].x;b.ty=pts[bi].y;used[bi]=1;}else b.hasTarget=false;}for(const b of balls){if(b.hasTarget)continue;const{bi}=nearestFree(b.x,b.y,24);if(bi>=0){b.tx=pts[bi].x;b.ty=pts[bi].y;b.hasTarget=true;used[bi]=1;}}let cx=0,cy=0,tw=0;for(const p of allPts){const w=p.w??1;cx+=p.x*w;cy+=p.y*w;tw+=w;}centroidRef.current={x:cx/tw,y:cy/tw};markEdgeBalls();applySizes();},[assignTargets,markEdgeBalls,applySizes]);// ── extraction cache: memory Map + localStorage, keyed by src + the\n// params that actually change the point set. Skips getImageData entirely\n// on a cache hit (repeat visits / re-mounts of the same asset+settings).\nconst getCacheKey=useCallback(()=>{if(!cacheExtractedPoints)return null;const src=currentSrcRef.current;if(!src||mediaTypeRef.current!==\"image\")return null;const c=cfgRef.current;const{W,H}=dimsRef.current;const bucketW=Math.max(1,Math.round(W/200));const bucketH=Math.max(1,Math.round(H/200));const effExposure=sourceOverridesRef.current.exposure??c.exposure;return[src,c.extractMode,c.spacing,c.ballSize,effExposure,c.quality,bucketW,bucketH].join(\"|\");},[cacheExtractedPoints]);const readCache=useCallback(key=>{const mem=extractionMemCacheRef.current.get(key);if(mem)return mem;if(typeof window===\"undefined\")return null;try{const raw=window.localStorage.getItem(\"ltaNetworkPts:\"+key);if(!raw)return null;const parsed=JSON.parse(raw);if(Array.isArray(parsed)&&parsed.length){extractionMemCacheRef.current.set(key,parsed);return parsed;}}catch{/* quota / privacy mode — ignore */}return null;},[]);// Persists an extracted point set. The in-memory cache is updated\n// synchronously — that's what makes re-showing this exact source+settings\n// combo instantly free later in this session — but the localStorage\n// write (JSON.stringify + setItem, which at spacing:1 dither/fill can be\n// several thousand points) is deferred to an idle slot. Previously this\n// ran synchronously inside the same callback that triggers\n// assignTargets() during a rebuild commit, landing exactly on the frame\n// that's supposed to feel snappy. Deferring it removes that cost from\n// the commit path entirely; the write still lands well within the same\n// idle period, just not blocking the frame that matters.\nconst writeCache=useCallback((key,pts)=>{if(!pts.length)return;extractionMemCacheRef.current.set(key,pts);if(typeof window===\"undefined\")return;const persist=()=>{try{window.localStorage.setItem(\"ltaNetworkPts:\"+key,JSON.stringify(pts));}catch{/* quota / privacy mode — ignore */}};const ric=window.requestIdleCallback;if(ric)ric(persist,{timeout:1e3});else setTimeout(persist,0);},[]);const extractAndAssign=useCallback(()=>{if(!mediaRef.current)return;const key=getCacheKey();if(key){const cached=readCache(key);if(cached){ptsRef.current=cached;assignTargets();return;}}const media=mediaRef.current;const reqId=++activeAssignReqRef.current;extractShapeAsync(media,pts=>{// A newer extractAndAssign call (another resize, another prop\n// change) already superseded this one while it was in flight —\n// drop the stale result instead of clobbering what's current.\nif(reqId!==activeAssignReqRef.current)return;ptsRef.current=pts;assignTargets();if(key)writeCache(key,pts);});},[extractShapeAsync,assignTargets,getCacheKey,readCache,writeCache]);// ── physics ──\nconst update=useCallback(dt=>{formationAgeRef.current++;const c=cfgRef.current;const p=PROFILES[c.easing];const balls=ballsRef.current;const{W,H}=dimsRef.current;const drag=Math.pow(c.drag,dt);const formSpd=c.formSpeed;const swarmSpd=c.swarmSpeed;const r=c.ballSize;const forming=activeRef.current;const n=balls.length;const gapMin=Math.max(c.spacing,1);// The reactive governor (below, in the rAF loop) needs ~90+\n// sustained slow frames before it engages — on a slow/throttled\n// device that can itself take longer than a short trace (or a\n// user's first few seconds) has to react in. Rather than always\n// running at full, unthrottled physics cost until slowness has been\n// proven, assume \"might be slow\" for the fixed startup-ramp window\n// (same window the ball-count ramp already uses) and prove\n// otherwise — same philosophy, just extended from ball count to\n// collision-pass cost too.\nconst inStartupRampNow=performance.now()<startupRampUntilRef.current;const inPostRebuildRampNow=performance.now()<postRebuildRampUntilRef.current;const effGovernorLevel=inStartupRampNow||inPostRebuildRampNow?Math.max(governorLevelRef.current,1):governorLevelRef.current;// When forming with dither, neither of the two things the neighbor\n// search computes actually gets used: separation is gated off by\n// ditherLock, and alignment is gated off by `forming` (which is true\n// here by definition). So the entire 3x3-cell walk is pure wasted\n// work in this mode — skip building the grid and walking it at all.\nconst ditherLock=forming&&c.extractMode===\"dither\";// Under heavy governor throttle, while a formation is held, this\n// neighbor walk only ever feeds the soft separation nudge (sx/sy) —\n// alignment (avx/avy) is already skipped whenever `forming` is true —\n// and the hard overlap-resolution passes below already physically\n// separate any overlapping pair every frame. So at governor level 2\n// it's redundant cost: skip it entirely, same as dither already does\n// for a different reason, and let the hard passes do all the work.\nconst skipSeparationWalk=ditherLock||forming&&effGovernorLevel>=2;// Tighten how many same-cell neighbors get compared once things are\n// running hot — caps worst-case cost in locally dense clusters\n// (small Spacing) without changing behavior anywhere else.\nconst neighborCap=effGovernorLevel>=2?24:60;const g=gridRef.current;if(!skipSeparationWalk){g.cell=64;g.w=Math.max(1,Math.ceil(W/g.cell));g.h=Math.max(1,Math.ceil(H/g.cell));const cells=g.w*g.h;if(g.head.length<cells)g.head=new Int32Array(cells);if(g.next.length<n)g.next=new Int32Array(n);g.head.fill(-1,0,cells);for(let i=0;i<n;i++){const b=balls[i];const cx=Math.min(g.w-1,Math.max(0,b.x/g.cell|0));const cy=Math.min(g.h-1,Math.max(0,b.y/g.cell|0));const cIdx=cy*g.w+cx;g.next[i]=g.head[cIdx];g.head[cIdx]=i;}}let scx=0,scy=0;if(!forming){for(const b of balls){scx+=b.x;scy+=b.y;}const nn=n||1;scx/=nn;scy/=nn;}const mouse=mouseRef.current;// Per-source magnet overrides (Radius/Force/Inertia) — falls back to\n// the global magnetR/magnetF/magnetI props when a source hasn't set\n// its own. Hoisted out of the per-ball loop since it's the same for\n// every ball this frame.\nconst so=sourceOverridesRef.current;const effMagnetR=so.magnetR??c.magnetR;const effMagnetF=so.magnetF??c.magnetF;const effMagnetI=so.magnetI??c.magnetI;for(let i=0;i<n;i++){const b=balls[i];let ax=0,ay=0,sx=0,sy=0,sn=0,avx=0,avy=0,an=0;if(!skipSeparationWalk){const bcx=Math.min(g.w-1,Math.max(0,b.x/g.cell|0));const bcy=Math.min(g.h-1,Math.max(0,b.y/g.cell|0));for(let oy=-1;oy<=1;oy++){const cy=bcy+oy;if(cy<0||cy>=g.h)continue;for(let ox=-1;ox<=1;ox++){const cx=bcx+ox;if(cx<0||cx>=g.w)continue;// Safety net: if a cell is pathologically overcrowded (e.g. a\n// batch of balls spawned before they've spread out), cap how\n// many neighbors we visit instead of letting one dense cell\n// blow the whole frame's time budget.\nlet visited=0;for(let j=g.head[cy*g.w+cx];j!==-1;j=g.next[j]){if(j===i)continue;if(++visited>neighborCap)break;const b2=balls[j];const dx=b.x-b2.x,dy=b.y-b2.y,d2=dx*dx+dy*dy;const minD=b.rad+b2.rad+gapMin;if(d2<minD*minD&&d2>0){const d=Math.sqrt(d2);const f=(minD-d)/minD;sx+=dx/d*f;sy+=dy/d*f;sn++;}if(!forming&&d2<8100){avx+=b2.vx;avy+=b2.vy;an++;}}}}}if(sn>0){ax+=sx/sn*2.6;ay+=sy/sn*2.6;}let ndFactor=1;if(forming){if(b.hasTarget){const dx=b.tx-b.x,dy=b.ty-b.y,d2=dx*dx+dy*dy;if(b.isEdge){const d=Math.hypot(dx,dy)||1;if(d>c.orbitDist){const over=d-c.orbitDist;const force=Math.min(over*p.seek*formSpd*.15,formSpd*.35);ax+=dx/d*force;ay+=dy/d*force;}ax+=(Math.random()-.5)*Math.max(p.wander,.12)*2.5;ay+=(Math.random()-.5)*Math.max(p.wander,.12)*2.5;}else if(d2>.25){const d=Math.sqrt(d2);const force=Math.min(d*p.seek*formSpd,formSpd*.5);ax+=dx/d*force;ay+=dy/d*force;if(p.nearR>0&&d<r*p.nearR)ndFactor=p.nearDamp;if(c.maxDrift<100&&d>c.maxDrift){const over=d-c.maxDrift;ax+=dx/d*over*.12;ay+=dy/d*over*.12;}}}else{const cc=centroidRef.current;ax+=(cc.x-b.x)*.003;ay+=(cc.y-b.y)*.003;ax+=(Math.random()-.5)*p.wander*.4;ay+=(Math.random()-.5)*p.wander*.4;}}else{if(an>0){ax+=(avx/an-b.vx)*p.align;ay+=(avy/an-b.vy)*p.align;}ax+=(scx-b.x)*p.cohesion;ay+=(scy-b.y)*p.cohesion;ax+=(Math.random()-.5)*p.wander;ay+=(Math.random()-.5)*p.wander;}// ── cursor magnet ── mouse-only (see the pointerType filter on\n// the listeners in the mount effect below), and only ever\n// active while enableHover is on. Pulls dots within\n// effMagnetR of the cursor toward it, with the pull's falloff\n// and inertia shaped by effMagnetF/effMagnetI (global props,\n// unless the active source overrides them); the direct position\n// nudge (b.x/b.y) gives an immediate, snappy response while the\n// ax/ay term keeps it integrated into the same velocity/drag\n// system as every other force so it doesn't fight the physics\n// loop.\nif(c.enableHover&&mouse.on&&effMagnetR>0&&effMagnetF>0){const mdx=mouse.x-b.x,mdy=mouse.y-b.y;const md2=mdx*mdx+mdy*mdy;const mR=effMagnetR;if(md2<mR*mR&&md2>1){const md=Math.sqrt(md2);const fall=1-md/mR;const inert=effMagnetI;const pull=effMagnetF*fall;const k=(1-inert)*pull*.06;b.x+=mdx*k;b.y+=mdy*k;ax+=mdx/md*pull*inert*.5;ay+=mdy/md*pull*inert*.5;const damp=.7+.3*inert;b.vx*=damp;b.vy*=damp;}}const mg=r*3.5;if(b.x<mg)ax+=(mg-b.x)*.07;else if(b.x>W-mg)ax-=(b.x-(W-mg))*.07;if(b.y<mg)ay+=(mg-b.y)*.07;else if(b.y>H-mg)ay-=(b.y-(H-mg))*.07;const tvx=b.vx*drag*ndFactor+ax;const tvy=b.vy*drag*ndFactor+ay;const nearThresh=r*4*(r*4);const atTarget=forming&&b.hasTarget&&(b.tx-b.x)*(b.tx-b.x)+(b.ty-b.y)*(b.ty-b.y)<nearThresh;const capSpd=forming&&b.hasTarget?b.isEdge?swarmSpd:atTarget?c.holdSpeed:formSpd:swarmSpd;const tvSpd=Math.sqrt(tvx*tvx+tvy*tvy);const softSpd=tvSpd>.001?capSpd*fastTanh(tvSpd/capSpd):0;const sc=tvSpd>.001?softSpd/tvSpd:1;b.vx+=(tvx*sc-b.vx)*p.lerpK*dt;b.vy+=(tvy*sc-b.vy)*p.lerpK*dt;if(!forming){const s2=b.vx*b.vx+b.vy*b.vy;if(s2>0&&s2<swarmSpd*swarmSpd*.001){const inv=swarmSpd*.04/Math.sqrt(s2);b.vx*=inv;b.vy*=inv;}}b.x+=b.vx*dt;b.y+=b.vy*dt;b.x=Math.max(r,Math.min(W-r,b.x));b.y=Math.max(r,Math.min(H-r,b.y));}if(!ditherLock){const qualityPasses=c.quality===\"performance\"?1:c.quality===\"high\"?3:2;// At the heaviest governor level, cap to a single hard-resolution\n// pass regardless of Quality. Previously this only ever reduced\n// High (3) down to 2, and was a no-op for Balanced/Performance —\n// exactly the settings most sustained-slowness cases land on.\nconst maxPasses=effGovernorLevel>=2?1:effGovernorLevel===1?Math.min(2,qualityPasses):qualityPasses;for(let pass=0;pass<maxPasses;pass++){g.head.fill(-1,0,g.w*g.h);for(let i=0;i<n;i++){const b=balls[i];const cx=Math.min(g.w-1,Math.max(0,b.x/g.cell|0));const cy=Math.min(g.h-1,Math.max(0,b.y/g.cell|0));const cIdx=cy*g.w+cx;g.next[i]=g.head[cIdx];g.head[cIdx]=i;}let anyOv=false;for(let i=0;i<n;i++){const b=balls[i];const bcx=Math.min(g.w-1,Math.max(0,b.x/g.cell|0));const bcy=Math.min(g.h-1,Math.max(0,b.y/g.cell|0));for(let oy=-1;oy<=1;oy++){const cy=bcy+oy;if(cy<0||cy>=g.h)continue;for(let ox=-1;ox<=1;ox++){const cx=bcx+ox;if(cx<0||cx>=g.w)continue;let visited2=0;for(let j=g.head[cy*g.w+cx];j!==-1;j=g.next[j]){if(j<=i)continue;if(++visited2>neighborCap)break;const b2=balls[j];let dx=b2.x-b.x,dy=b2.y-b.y;let d2=dx*dx+dy*dy;const minD=b.rad+b2.rad+gapMin;if(d2>=minD*minD)continue;let d=Math.sqrt(d2);if(d<1e-4){dx=1;dy=0;d=1;}anyOv=true;const push=(minD-d)/2;const ux=dx/d,uy=dy/d;b.x-=ux*push;b.y-=uy*push;b2.x+=ux*push;b2.y+=uy*push;const rel=(b2.vx-b.vx)*ux+(b2.vy-b.vy)*uy;if(rel<0){const imp=rel/2;b.vx+=ux*imp;b.vy+=uy*imp;b2.vx-=ux*imp;b2.vy-=uy*imp;}}}}}if(!anyOv)break;}}},[]);// ── draw ──\nconst draw=useCallback(()=>{const canvas=canvasRef.current;if(!canvas)return;const ctx=canvas.getContext(\"2d\");if(!ctx)return;const c=cfgRef.current;const{W,H}=dimsRef.current;ctx.fillStyle=c.bgColor;ctx.fillRect(0,0,W,H);ctx.fillStyle=c.dotColor;ctx.beginPath();const mode=c.dotRenderMode;if(mode===\"circle\"){for(const b of ballsRef.current){ctx.moveTo(b.x+b.rad,b.y);ctx.arc(b.x,b.y,b.rad,0,Math.PI*2);}}else{// Squares and circles can share one path/fill() call — no need\n// for a second draw pass just because some dots take one shape\n// and some take the other.\nfor(const b of ballsRef.current){const useSquare=mode===\"square\"||b.rad*2<=SQUARE_FAST_PATH_MAX_DIAMETER;if(useSquare){ctx.rect(b.x-b.rad,b.y-b.rad,b.rad*2,b.rad*2);}else{ctx.moveTo(b.x+b.rad,b.y);ctx.arc(b.x,b.y,b.rad,0,Math.PI*2);}}}ctx.fill();},[]);// ── resize (container-aware, ResizeObserver) ──\nconst resize=useCallback((debounceExtract=true)=>{const canvas=canvasRef.current;const container=containerRef.current;if(!canvas||!container)return;const cw=container.clientWidth||1;const ch=container.clientHeight||1;// Recompute the dot-size scale from the container's CSS width\n// (DPR-independent — we want the same scale whether retina is on\n// or off) and patch cfgRef immediately. Ref mutations don't\n// trigger a re-render, so without this the new scale would only\n// take effect whenever some other prop happened to change next.\nconst newSizeScale=scaleSizeToCanvas?cw/Math.max(1,sizeReferenceWidth):1;sizeScaleRef.current=newSizeScale;cfgRef.current.sizeMin=sizeMin*newSizeScale;cfgRef.current.sizeMax=sizeMax*newSizeScale;cfgRef.current.ballSize=sizeMax*newSizeScale;// On small viewports (phones), retina at full 2× is a bigger\n// fill-rate/compositing cost than the sharpness is worth — cap\n// lower automatically, on top of whatever `maxDpr` the user set.\nconst isSmallViewport=typeof window!==\"undefined\"&&Math.min(window.innerWidth,window.innerHeight)<700;const autoDprCap=isCanvasMode?2:isSmallViewport?1.5:2;const dprCap=Math.min(maxDpr,autoDprCap);const dpr=cfgRef.current.retina?Math.min(dprCap,(typeof window!==\"undefined\"?window.devicePixelRatio:1)||1):1;const W=Math.max(1,Math.round(cw*dpr));const H=Math.max(1,Math.round(ch*dpr));if(canvas.width!==W||canvas.height!==H){canvas.width=W;canvas.height=H;}canvas.style.width=cw+\"px\";canvas.style.height=ch+\"px\";dimsRef.current={W,H};if(!activeRef.current||!mediaRef.current)return;// Skip re-extraction for trivial layout jitter — a container box\n// that shifts by a few px (web-font swap reflow, a sibling\n// element's own load-in shifting the page, a scrollbar\n// appearing/disappearing) doesn't meaningfully change what\n// getImageData would extract, but re-running dither/fill\n// extraction is exactly the expensive synchronous pass that\n// shows up as long tasks / high TBT. Only re-extract once the\n// container has actually changed by a real amount. The very\n// first extraction after a formation goes active always runs\n// (lastExtractDimsRef starts at {0,0}), so this only skips\n// *repeat* triggers, never the initial one.\nconst dCw=Math.abs(cw-lastExtractDimsRef.current.cw);const dCh=Math.abs(ch-lastExtractDimsRef.current.ch);const isTrivialChange=lastExtractDimsRef.current.cw>0&&dCw<24&&dCh<24;if(isTrivialChange)return;lastExtractDimsRef.current={cw,ch};// getImageData + poisson/dither extraction is the expensive part — don't\n// re-run it on every intermediate frame while the container is still\n// being resized (e.g. dragging a panel, responsive breakpoint animation).\nif(!debounceExtract){extractAndAssign();return;}if(resizeDebounceRef.current)clearTimeout(resizeDebounceRef.current);resizeDebounceRef.current=setTimeout(()=>extractAndAssign(),120);},[extractAndAssign,isCanvasMode,maxDpr,scaleSizeToCanvas,sizeReferenceWidth,sizeMin,sizeMax]);resizeRef.current=resize;// ── media loading (image or video) ──\n// `sourceIdx` keys the element cache so switching back to an already-seen\n// source reuses the loaded <img>/<video> instead of refetching it.\n// `shouldForm` controls whether this load should animate straight into a\n// formation (true for any deliberate source switch) or just extract and\n// wait (used only for the very first source when `autoForm` is off).\n// `snap`, when true and shouldForm is true, skips the seek-in animation\n// entirely and places every ball directly on its target the instant the\n// formation is assigned (used for `startFormed` on the first load).\n// [OPTION A] loadMedia now only loads the element + extracts points into\n// ptsRef, then calls `onReady`. It no longer decides whether/when to\n// assign targets — that's up to the caller (switchToSource), so\n// extraction can be kicked off in parallel with the scatter timer\n// instead of being gated behind it.\nconst loadMedia=useCallback((src,isVideo,sourceIdx,onReady)=>{currentSrcRef.current=src;const cached=mediaElementCacheRef.current.get(sourceIdx);if(cached&&cached.src===src){mediaRef.current=cached.el;mediaTypeRef.current=cached.type;if(cached.type===\"video\")cached.el.play().catch(()=>{});const key=getCacheKey();const cachedPts=key?readCache(key):null;if(cachedPts){ptsRef.current=cachedPts;onReady();}else{extractShapeAsync(cached.el,pts=>{ptsRef.current=pts;if(key)writeCache(key,pts);onReady();});}return;}if(isVideo){const vid=document.createElement(\"video\");vid.src=src;vid.muted=true;vid.loop=true;vid.playsInline=true;vid.autoplay=true;vid.addEventListener(\"loadeddata\",()=>{vid.play().catch(()=>{});mediaRef.current=vid;mediaTypeRef.current=\"video\";mediaElementCacheRef.current.set(sourceIdx,{el:vid,type:\"video\",src});ptsRef.current=extractShape(vid);onReady();});}else{const img=new Image;img.crossOrigin=\"anonymous\";img.src=src;img.onload=()=>{mediaRef.current=img;mediaTypeRef.current=\"image\";mediaElementCacheRef.current.set(sourceIdx,{el:img,type:\"image\",src});const key=getCacheKey();const cachedPts=key?readCache(key):null;if(cachedPts){ptsRef.current=cachedPts;onReady();}else{extractShapeAsync(img,pts=>{ptsRef.current=pts;if(key)writeCache(key,pts);onReady();});}};}},[extractShapeAsync,getCacheKey,readCache,writeCache]);// ── source switching / rebuild transition ──\n// Moves the swarm to `idx` in `sourcesRef.current`. On the very first\n// load this is always instant (nothing is on screen to transition from).\n// After that, `transitionMode: \"rebuild\"` releases the current formation\n// into swarm motion for `transitionScatterMs` before extracting + forming\n// the new source; `\"instant\"` (or an explicit `instant` arg — used when\n// the same index's underlying asset was edited) skips the scatter beat.\n// [OPTION A] Extraction (loadMedia: decode + getImageData + point\n// extraction) now starts the instant a rebuild transition begins, at the\n// same time as the scatter animation — not after the scatter timer\n// elapses. Previously the sequencing was scatter → extract → reform,\n// which landed one long synchronous extraction task right when the\n// reform was supposed to feel snappy. Now it's scatter ∥ extract →\n// reform: whichever of the two finishes last gates the reform, so a\n// cached/fast extraction costs nothing extra and a slow one at least\n// overlaps with the scatter beat instead of stacking after it.\nconst switchToSource=useCallback((idx,instant)=>{const list=sourcesRef.current;if(!list.length)return;const clamped=Math.max(0,Math.min(list.length-1,idx));const isFirstLoad=appliedSourceIndexRef.current===-1;if(!instant&&clamped===appliedSourceIndexRef.current)return;appliedSourceIndexRef.current=clamped;const src=list[clamped];const videoSrc=src.videoFile;const imgSrc=typeof src.image===\"string\"?src.image:src.image?.src;if(transitionTimeoutRef.current){clearTimeout(transitionTimeoutRef.current);transitionTimeoutRef.current=undefined;}if(!videoSrc&&!imgSrc)return;// Overrides must be live BEFORE extraction starts — Threshold\n// Override feeds directly into extractDither/extractFill via\n// sourceOverridesRef, so it has to be set here, synchronously,\n// rather than inside whatever fires last in the race below.\nsourceOverridesRef.current={ballCount:src.overrideCount&&typeof src.ballCount===\"number\"?src.ballCount:undefined,exposure:src.overrideExposure&&typeof src.exposure===\"number\"?src.exposure:undefined,circR:src.overrideCircR&&typeof src.circR===\"number\"?src.circR:undefined,circX:src.overrideCircCenter&&typeof src.circX===\"number\"?src.circX:undefined,circY:src.overrideCircCenter&&typeof src.circY===\"number\"?src.circY:undefined,magnetR:src.overrideMagnetR&&typeof src.magnetR===\"number\"?src.magnetR:undefined,magnetF:src.overrideMagnetF&&typeof src.magnetF===\"number\"?src.magnetF:undefined,magnetI:src.overrideMagnetI&&typeof src.magnetI===\"number\"?src.magnetI:undefined};const shouldForm=isFirstLoad?autoForm:true;// Only the very first formation of this instance's lifetime\n// ever snaps in place — later source switches always animate\n// via the normal seek/rebuild transition regardless of this\n// flag, since `startFormed` is about skipping the initial\n// load-in animation, not every subsequent rebuild.\nconst snap=isFirstLoad&&cfgRef.current.startFormed;let committed=false;const commit=()=>{if(committed||!shouldForm)return;committed=true;activeRef.current=true;formedOnceRef.current=false;// Proactively throttle for a short window starting now —\n// this is the moment every ball's target just changed at\n// once, i.e. worst case for the collision-resolution pass.\n// See postRebuildRampUntilRef's declaration for why this is\n// proactive rather than waiting for the reactive governor.\nif(adaptivePerformance){postRebuildRampUntilRef.current=performance.now()+700;}// assignTargets may now finish over several frames for large\n// pools (see CHUNK_THRESHOLD) — snap has to wait for the real\n// completion instead of assuming assignTargets returned\n// synchronously, or it would snap balls onto stale tx/ty.\nassignTargets(()=>{if(snap)snapBallsToTargets();});};const useInstant=instant||isFirstLoad||cfgRef.current.transitionMode===\"instant\"||!activeRef.current;if(useInstant){if(videoSrc)loadMedia(videoSrc,true,clamped,commit);else loadMedia(imgSrc,false,clamped,commit);return;}// Rebuild: dots scatter immediately AND extraction starts\n// immediately too, in parallel. Whichever finishes last gates\n// the reform.\nactiveRef.current=false;const scatterMs=Math.max(0,cfgRef.current.transitionScatterMs);let extractDone=false;let scatterDone=scatterMs===0;const maybeCommit=()=>{if(extractDone&&scatterDone)commit();};const onExtracted=()=>{extractDone=true;maybeCommit();};if(videoSrc)loadMedia(videoSrc,true,clamped,onExtracted);else loadMedia(imgSrc,false,clamped,onExtracted);if(scatterDone){maybeCommit();}else{transitionTimeoutRef.current=setTimeout(()=>{scatterDone=true;maybeCommit();},scatterMs);}},[loadMedia,autoForm,assignTargets,snapBallsToTargets,adaptivePerformance]);// mount: offscreen canvases, rAF loop, resize observer, pointer listeners\nuseEffect(()=>{offRef.current=document.createElement(\"canvas\");anaRef.current=document.createElement(\"canvas\");resize(false);// No pre-load swarm: the ball pool stays empty until the very first\n// formation's targets are ready (assignTargets creates the pool\n// itself, sized to fit the extracted points — see fitBallCount(M)\n// inside assignTargets). That's what used to show as a drifting\n// \"circle\" before the real shape assembled — with nothing spawned\n// ahead of time, there's nothing to show or hide: the canvas is\n// just blank until the first formation commits, then it's already\n// in its final shape (snapped, since startFormed animates from\n// wherever the balls currently are — here, freshly created right\n// on target).\nballsRef.current=[];startupRampUntilRef.current=adaptivePerformance?performance.now()+1400:0;const ro=new ResizeObserver(()=>resizeRef.current?.());if(containerRef.current)ro.observe(containerRef.current);// pause entirely when off-screen or the tab is hidden — no physics, no draw\nconst onVisChange=()=>{pageVisibleRef.current=!document.hidden;};document.addEventListener(\"visibilitychange\",onVisChange);let io=null;if(\"IntersectionObserver\"in window&&containerRef.current){io=new IntersectionObserver(entries=>{inViewportRef.current=entries[0].isIntersecting;},{threshold:.01});io.observe(containerRef.current);}reducedMotionRef.current=!!(window.matchMedia&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches);// Cursor magnet listeners — mouse-only. Touch/pen pointers report a\n// different `pointerType`; filtering on it stops a touch drag or\n// scroll gesture from ever being read as \"hovering,\" so the magnet\n// effect is naturally inert on phones/tablets without needing a\n// separate matchMedia check. Coordinates are converted into the\n// same device-pixel space the canvas/physics already run in (DPR\n// applied, same as the canvas buffer itself).\nconst onMove=e=>{if(e.pointerType!==\"mouse\")return;const rect=canvasRef.current?.getBoundingClientRect();if(!rect)return;const dpr=cfgRef.current.retina?Math.min(2,window.devicePixelRatio||1):1;mouseRef.current.x=(e.clientX-rect.left)*dpr;mouseRef.current.y=(e.clientY-rect.top)*dpr;mouseRef.current.on=true;};const onLeave=e=>{if(e.pointerType!==\"mouse\")return;mouseRef.current.on=false;};containerRef.current?.addEventListener(\"pointermove\",onMove);containerRef.current?.addEventListener(\"pointerleave\",onLeave);let frameCount=0;const loop=ts=>{if(!pageVisibleRef.current||!inViewportRef.current)return;// Pause: fully halts physics, video playback, and adaptive-perf\n// bookkeeping — meant for cases where several instances overlap\n// (e.g. stacked absolute-positioned cards) and only one should\n// actually be animating at a time. Still redraws occasionally so\n// a live prop change (color, background) is reflected, and pauses\n// any video element so it doesn't keep decoding frames unseen.\nif(cfgRef.current.paused){if(mediaTypeRef.current===\"video\"&&mediaRef.current&&!mediaRef.current.paused){mediaRef.current.pause();}if(ts-lastFrozenDrawRef.current>240){draw();lastFrozenDrawRef.current=ts;}return;}if(reducedMotionRef.current){if(activeRef.current)rmSettleRef.current++;if(rmSettleRef.current>240){if(ts-lastIdleRef.current>1e3){draw();lastIdleRef.current=ts;}return;}}// Once a static formation has settled, physics is already skipped\n// (below) — but without this, draw() and every governor/extraction\n// check still ran every single frame forever for something that\n// never moves again. Drop to a periodic redraw instead; still\n// frequent enough to pick up e.g. a live retina/background change.\nif(cfgRef.current.staticMode&&activeRef.current&&formedOnceRef.current){if(ts-lastFrozenDrawRef.current>240){draw();lastFrozenDrawRef.current=ts;}return;}// adaptive governor: during the startup ramp (or once the device has\n// shown it can't sustain 60fps), throttle to a lower, steadier fps\n// instead of physics chugging along at whatever rate it can manage.\nconst inStartupRamp=adaptivePerformance&&(performance.now()<startupRampUntilRef.current||performance.now()<postRebuildRampUntilRef.current);const frameIntervalMs=adaptivePerformance?Math.max(adaptiveIntervalMsRef.current,inStartupRamp?33:0):0;if(frameIntervalMs>0&&ts-lastFrameTsRef.current<frameIntervalMs)return;const dtMs=lastTickTsRef.current>0?ts-lastTickTsRef.current:16.6667;if(adaptivePerformance){const alpha=.08;// Fed by lastFrameDtRef (this instance's own measured\n// update()+draw() cost from last frame), not dtMs — see\n// lastFrameDtRef's declaration for why.\nemaFrameMsRef.current=emaFrameMsRef.current*(1-alpha)+lastFrameDtRef.current*alpha;const ema=emaFrameMsRef.current;const lvl=governorLevelRef.current;if(lvl===0){slowFramesRef.current=ema>20?slowFramesRef.current+1:Math.max(0,slowFramesRef.current-1);if(slowFramesRef.current>90){governorLevelRef.current=1;adaptiveIntervalMsRef.current=22;slowFramesRef.current=0;fastFramesRef.current=0;console.info(\"[LTANetwork] frame times elevated — light throttle engaged (governor level 1)\");}}else if(lvl===1){slowFramesRef.current=ema>27?slowFramesRef.current+1:Math.max(0,slowFramesRef.current-1);if(slowFramesRef.current>120){governorLevelRef.current=2;adaptiveIntervalMsRef.current=33;slowFramesRef.current=0;fastFramesRef.current=0;console.info(\"[LTANetwork] frame times still elevated — heavy throttle engaged (governor level 2)\");}else{fastFramesRef.current=ema<18?fastFramesRef.current+1:Math.max(0,fastFramesRef.current-1);if(fastFramesRef.current>180){governorLevelRef.current=0;adaptiveIntervalMsRef.current=0;slowFramesRef.current=0;fastFramesRef.current=0;console.info(\"[LTANetwork] frame times recovered — throttle cleared (governor level 0)\");}}}else{fastFramesRef.current=ema<22?fastFramesRef.current+1:Math.max(0,fastFramesRef.current-1);if(fastFramesRef.current>240){governorLevelRef.current=1;adaptiveIntervalMsRef.current=22;slowFramesRef.current=0;fastFramesRef.current=0;console.info(\"[LTANetwork] frame times improved — throttle eased (governor level 1)\");}}// Throttling (frame interval + collision passes, above) has a\n// floor — once we're pinned at the heaviest governor level and\n// still running hot, no amount of slowing the clock helps.\n// Shrink the actual dot pool instead, in small steps, so the\n// swarm degrades gracefully instead of just running physics in\n// slow motion on more dots than the device can carry.\nif(governorLevelRef.current===2&&emaFrameMsRef.current>30){sustainedLowPerfRef.current++;sustainedRecoverRef.current=0;if(sustainedLowPerfRef.current>150&&degradeStepsRef.current<3){degradeStepsRef.current++;sustainedLowPerfRef.current=0;applyPerfBallScale(perfBallScaleRef.current*.8);}}else{sustainedLowPerfRef.current=0;if(governorLevelRef.current===0&&degradeStepsRef.current>0){sustainedRecoverRef.current++;if(sustainedRecoverRef.current>300){degradeStepsRef.current--;sustainedRecoverRef.current=0;applyPerfBallScale(perfBallScaleRef.current/.8);}}else{sustainedRecoverRef.current=0;}}}lastTickTsRef.current=ts;lastFrameTsRef.current=ts;const dt=Math.max(.5,Math.min(2.5,dtMs/16.6667));frameCount++;frameCountRef.current=frameCount;if(activeRef.current&&mediaTypeRef.current===\"video\"&&mediaRef.current){const vid=mediaRef.current;if(vid.paused)vid.play().catch(()=>{});// dither/edges do a real per-pixel scan every call — re-running that\n// on every single video frame (up to 60×/s) is what actually blocks\n// the main thread continuously. Throttle by quality, and always at\n// least as slow as fill's existing cadence.\nconst throttleMap={performance:6,balanced:3,high:2};const baseEvery=throttleMap[cfgRef.current.quality]??3;const every=cfgRef.current.extractMode===\"fill\"?Math.max(4,baseEvery):baseEvery;if(frameCount%every===0){const t0=performance.now();ptsRef.current=extractShape(vid);softReassign();const dtExtract=performance.now()-t0;if(dtExtract>150&&ts-lastPerfWarnRef.current>2e3){lastPerfWarnRef.current=ts;console.warn(`[LTANetwork] shape extraction took ${dtExtract.toFixed(0)}ms — try a lower Quality setting or extractMode`);}}}// The frozen/settled case already returned above — anything that\n// reaches here needs a normal physics tick.\nconst tFrame0=performance.now();update(dt);if(cfgRef.current.staticMode&&activeRef.current&&!formedOnceRef.current&&formationAgeRef.current>120)formedOnceRef.current=true;draw();const frameDt=performance.now()-tFrame0;lastFrameDtRef.current=frameDt;if(frameDt>100&&ts-lastPerfWarnRef.current>2e3){lastPerfWarnRef.current=ts;console.warn(`[LTANetwork] physics+draw took ${frameDt.toFixed(0)}ms for ${ballsRef.current.length} dots — try lowering Count or Quality`);}};tickerIdRef.current=ltaRegisterTicker(loop);return()=>{unmountedRef.current=true;if(tickerIdRef.current!=null)ltaUnregisterTicker(tickerIdRef.current);if(resizeDebounceRef.current)clearTimeout(resizeDebounceRef.current);if(transitionTimeoutRef.current)clearTimeout(transitionTimeoutRef.current);if(autoAdvanceIntervalRef.current)clearInterval(autoAdvanceIntervalRef.current);mediaElementCacheRef.current.clear();pendingExtractionsRef.current.clear();if(workerRef.current){workerRef.current.terminate();workerRef.current=null;}if(workerUrlRef.current){URL.revokeObjectURL(workerUrlRef.current);workerUrlRef.current=null;}ro.disconnect();io?.disconnect();document.removeEventListener(\"visibilitychange\",onVisChange);containerRef.current?.removeEventListener(\"pointermove\",onMove);containerRef.current?.removeEventListener(\"pointerleave\",onLeave);if(mediaTypeRef.current===\"video\"&&mediaRef.current)mediaRef.current.pause();};// eslint-disable-next-line react-hooks/exhaustive-deps\n},[]);// sources / activeSourceIndex changed → switch to the requested source.\n// Also covers the legacy single image/videoFile props (wrapped into\n// effectiveSources above) for backward compatibility. If the underlying\n// asset at the *current* index was edited (sourcesSig changed) we force\n// an instant reload even though the index itself didn't move; if the\n// index moved, the normal rebuild-transition logic in switchToSource applies.\nuseEffect(()=>{const contentChanged=sourcesSig!==prevSourcesSigRef.current;prevSourcesSigRef.current=sourcesSig;if(contentChanged){appliedSourceIndexRef.current=-1;mediaElementCacheRef.current.clear();}switchToSource(activeSourceIndex??0,contentChanged);// eslint-disable-next-line react-hooks/exhaustive-deps\n},[sourcesSig,activeSourceIndex]);// [OPTION B2] ── scoped, deadline-aware look-ahead prewarm ──\n// Fixes the version of this idea that prewarmed the ENTIRE sources array\n// eagerly: that measured at 67% of main-thread time going into\n// extraction with physics dropping to 5% self-time, because idle\n// callbacks can fire back-to-back and nothing was checking how much\n// idle budget was actually available before starting a full decode +\n// getImageData + point-extraction pass.\n//\n// Two changes from that version:\n// 1. Scope: only warms the next PREWARM_LOOKAHEAD sources AHEAD of\n//    activeSourceIndex, not the whole array — re-triggers as the user\n//    scrolls forward, so it's a small rolling window instead of\n//    front-loading every source regardless of how many there are.\n// 2. Deadline-aware: checks deadline.timeRemaining() before starting an\n//    extraction; if the browser reports little time left this tick (and\n//    it's not a forced/timeout callback), reschedules instead of\n//    forcing a synchronous extraction into an almost-empty budget.\nuseEffect(()=>{if(typeof window===\"undefined\")return;const ric=window.requestIdleCallback||(cb=>setTimeout(()=>cb({timeRemaining:()=>0,didTimeout:true}),200));const cic=window.cancelIdleCallback||(id=>clearTimeout(id));let cancelled=false;let handle;const PREWARM_LOOKAHEAD=2;const list=sourcesRef.current;const start=Math.max(0,activeSourceIndex??0);const targets=[];for(let i=1;i<=PREWARM_LOOKAHEAD;i++){const idx=start+i;if(idx<list.length)targets.push(idx);}const warmAt=(queueIdx,deadline)=>{if(cancelled||queueIdx>=targets.length)return;const index=targets[queueIdx];const item=list[index];const imgSrc=typeof item.image===\"string\"?item.image:item.image?.src;const alreadyCached=mediaElementCacheRef.current.has(index);if(!imgSrc||alreadyCached){handle=ric(d=>warmAt(queueIdx+1,d));return;}// Not enough idle budget left this tick — wait for the next\n// idle slot rather than forcing the extraction through. A\n// timed-out callback (didTimeout) always proceeds so this can't\n// stall forever on a permanently busy main thread.\nif(deadline&&!deadline.didTimeout&&deadline.timeRemaining()<4){handle=ric(d=>warmAt(queueIdx,d));return;}const img=new Image;img.crossOrigin=\"anonymous\";img.src=imgSrc;img.onload=()=>{if(cancelled)return;mediaElementCacheRef.current.set(index,{el:img,type:\"image\",src:imgSrc});// Extract with THIS source's own Threshold Override, not\n// whatever the currently active source's override happens to\n// be — passed explicitly rather than swapping it into\n// sourceOverridesRef, since extraction is now a genuine async\n// round-trip (worker or not) and could interleave with the\n// active source's own extraction reading that same ref.\nconst c=cfgRef.current;const effExposure=item.overrideExposure&&typeof item.exposure===\"number\"?item.exposure:c.exposure;const{W,H}=dimsRef.current;const key=cacheExtractedPoints?[imgSrc,c.extractMode,c.spacing,c.ballSize,effExposure,c.quality,Math.max(1,Math.round(W/200)),Math.max(1,Math.round(H/200))].join(\"|\"):null;if(!key||!readCache(key)){extractShapeAsync(img,pts=>{if(key)writeCache(key,pts);handle=ric(d=>warmAt(queueIdx+1,d));},effExposure);}else{handle=ric(d=>warmAt(queueIdx+1,d));}};img.onerror=()=>{handle=ric(d=>warmAt(queueIdx+1,d));};};if(targets.length)handle=ric(d=>warmAt(0,d));return()=>{cancelled=true;if(handle!=null)cic(handle);};// eslint-disable-next-line react-hooks/exhaustive-deps\n},[sourcesSig,cacheExtractedPoints,activeSourceIndex]);// autoAdvance: cycle through sources on a timer. Intended for standalone\n// use — if activeSourceIndex is being driven externally (e.g. by a scroll\n// override), leave this off, since an external index change always wins\n// over the timer via the effect above.\nuseEffect(()=>{if(autoAdvanceIntervalRef.current){clearInterval(autoAdvanceIntervalRef.current);autoAdvanceIntervalRef.current=undefined;}if(autoAdvanceFirstWaitRef.current){clearInterval(autoAdvanceFirstWaitRef.current);autoAdvanceFirstWaitRef.current=undefined;}if(!autoAdvance)return;if(effectiveSources.length<2)return;const ms=Math.max(500,(autoAdvanceInterval||4)*1e3);const advance=()=>{const n=sourcesRef.current.length;if(!n)return;const cur=appliedSourceIndexRef.current;let next=cur+1;if(next>=n){if(!loopSources){if(autoAdvanceIntervalRef.current){clearInterval(autoAdvanceIntervalRef.current);autoAdvanceIntervalRef.current=undefined;}return;}next=0;}switchToSource(next);};let cancelled=false;// The recurring cadence (`ms`, e.g. 8s) is what the Interval prop\n// controls — but waiting that same full interval before the very\n// FIRST advance ties \"how long the first formation stays visible\"\n// to a setting that's meant to describe steady-state cadence, not\n// startup. Instead, poll for the very first formation actually\n// completing (hasFormedRef — same flag assignTargets sets once\n// real targets are assigned) and fire the first advance shortly\n// after that, then fall back to the normal `ms` cadence for every\n// advance after. This also avoids the alternative failure mode:\n// firing the first advance on a blind short timer would risk\n// starting a rebuild (activeRef.current = false) before the first\n// source's own extraction ever got to commit — the exact class of\n// \"swarm never settles\" bug fixed earlier in this file.\nconst FIRST_ADVANCE_GRACE_MS=600;const FIRST_ADVANCE_MAX_WAIT_MS=15e3;const startTimer=()=>{if(cancelled)return;const waitStart=performance.now();autoAdvanceFirstWaitRef.current=setInterval(()=>{const ready=hasFormedRef.current||performance.now()-waitStart>FIRST_ADVANCE_MAX_WAIT_MS;if(!ready)return;if(autoAdvanceFirstWaitRef.current){clearInterval(autoAdvanceFirstWaitRef.current);autoAdvanceFirstWaitRef.current=undefined;}autoAdvanceFirstGraceRef.current=setTimeout(()=>{if(cancelled)return;advance();autoAdvanceIntervalRef.current=setInterval(advance,ms);},FIRST_ADVANCE_GRACE_MS);},150);};// Don't let the first automatic rebuild land inside the page's own\n// load window — a hero instance that starts cycling the moment it\n// mounts competes for the main thread with everything else the page\n// is doing during initial load (font swaps, other components\n// hydrating, etc.), which is exactly what shows up as long tasks /\n// high TBT in a Lighthouse run. Wait for `load` before starting the\n// timer; if the page has already finished loading by the time this\n// effect runs (late mount, client-side nav), start right away.\nif(typeof document!==\"undefined\"&&document.readyState===\"complete\"){startTimer();}else if(typeof window!==\"undefined\"){window.addEventListener(\"load\",startTimer,{once:true});}return()=>{cancelled=true;if(typeof window!==\"undefined\")window.removeEventListener(\"load\",startTimer);if(autoAdvanceIntervalRef.current)clearInterval(autoAdvanceIntervalRef.current);if(autoAdvanceFirstWaitRef.current)clearInterval(autoAdvanceFirstWaitRef.current);if(autoAdvanceFirstGraceRef.current)clearTimeout(autoAdvanceFirstGraceRef.current);};// eslint-disable-next-line react-hooks/exhaustive-deps\n},[autoAdvance,autoAdvanceInterval,loopSources,sourcesSig]);// ballCount changed → resize the pool. Guarded on hasFormedRef so this\n// (it fires on mount too, like every effect) doesn't pre-create the\n// whole pool scattered with no target before the first formation ever\n// happens — that's the free-swarm \"circle\" this is meant to avoid.\nuseEffect(()=>{if(!hasFormedRef.current)return;adjustCount(effectiveBallCount);// eslint-disable-next-line react-hooks/exhaustive-deps\n},[effectiveBallCount]);// extraction-affecting params changed → re-extract if formed\nuseEffect(()=>{if(activeRef.current&&mediaRef.current)extractAndAssign();// eslint-disable-next-line react-hooks/exhaustive-deps\n},[extractMode,exposure,spacing,sizeMax,fillPacking]);// size-scaling params changed → recompute scale + re-extract if formed\n// (spacing/sizeMax already trigger the effect above, but this covers the\n// case where only the canvas width changes via a container resize without\n// any of those other props changing — handled inside resize() itself —\n// plus the case where scaleSizeToCanvas/sizeReferenceWidth are toggled\n// directly in the panel with no resize event firing)\nuseEffect(()=>{resize(false);// eslint-disable-next-line react-hooks/exhaustive-deps\n},[scaleSizeToCanvas,sizeReferenceWidth]);// adaptivePerformance turned off → drop any pool-size degradation and\n// restore the full requested Count\nuseEffect(()=>{if(!adaptivePerformance){perfBallScaleRef.current=1;degradeStepsRef.current=0;sustainedLowPerfRef.current=0;sustainedRecoverRef.current=0;governorLevelRef.current=0;adaptiveIntervalMsRef.current=0;if(activeRef.current&&mediaRef.current)assignTargets();}// eslint-disable-next-line react-hooks/exhaustive-deps\n},[adaptivePerformance]);// staticMode reset when toggled\nuseEffect(()=>{formedOnceRef.current=false;},[staticMode]);// paused toggled off → resume immediately with a fresh frame-timing\n// baseline, so the first frame back doesn't see a huge dtMs (elapsed\n// real time while paused) and jump the adaptive-governor EMA or push\n// dots in a single large step.\nuseEffect(()=>{if(!paused){lastTickTsRef.current=0;lastFrameTsRef.current=0;}},[paused]);// retina toggle → resize\nuseEffect(()=>{resize(false);},[retina]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,style:{position:\"absolute\",inset:0,display:\"block\",width:\"100%\",height:\"100%\"}})});}LTANetwork.defaultProps={sources:[],activeSourceIndex:0,transitionMode:\"rebuild\",transitionScatterMs:500,autoAdvance:false,autoAdvanceInterval:8,loopSources:true,bgColor:\"#EDEDED\",dotColor:\"#2D2D2D\",dotRenderMode:\"circle\",extractMode:\"dither\",edgePadding:0,exposure:0,fillPacking:\"organic\",ballCount:6550,sizeMin:1,sizeMax:2.5,spacing:1,sizeMode:\"random\",circR:0,circCenterCustom:false,circX:.5,circY:.5,easing:\"float\",formSpeed:8.4,holdSpeed:1,swarmSpeed:10,drag:.994,maxDrift:14,edgePct:7,orbitDist:20,magnetR:30,magnetF:10,magnetI:.85,enableHover:true,staticMode:false,startFormed:false,paused:false,retina:true,autoForm:true,quality:\"balanced\",adaptivePerformance:true,maxDpr:2,cacheExtractedPoints:true,scaleSizeToCanvas:true,sizeReferenceWidth:2978};addPropertyControls(LTANetwork,{sources:{type:ControlType.Array,title:\"Sources\",control:{type:ControlType.Object,title:\"Source\",controls:{image:{type:ControlType.Image,title:\"Image\"},videoFile:{type:ControlType.File,title:\"Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\"]},ballCount:{type:ControlType.Number,title:\"Count Override\",min:0,max:2e4,step:50,description:\"Overrides the global Count only while this source is active. Leave blank to use the global Count.\"},exposure:{type:ControlType.Number,title:\"Threshold Override\",min:-80,max:80,step:5,description:\"Overrides the global Threshold Bias only while this source is active. Leave blank to use the global value.\"},circR:{type:ControlType.Number,title:\"Circle Radius Override\",min:0,max:1e3,step:10,description:\"Overrides the global Circle Radius only while this source is active (Size Mode: Circular). Leave blank / 0 to use the global value.\"},circX:{type:ControlType.Number,title:\"Center X Override\",min:0,max:1,step:.01,description:\"Overrides the circular size-gradient center X only while this source is active. Setting this (or Center Y) acts as a custom center for this source even if Custom Center is off globally.\"},circY:{type:ControlType.Number,title:\"Center Y Override\",min:0,max:1,step:.01,description:\"Overrides the circular size-gradient center Y only while this source is active. Setting this (or Center X) acts as a custom center for this source even if Custom Center is off globally.\"},magnetR:{type:ControlType.Number,title:\"Magnet Radius Override\",min:0,max:500,step:10,description:\"Overrides the global Magnet Radius only while this source is active. Leave blank to use the global value.\"},magnetF:{type:ControlType.Number,title:\"Magnet Force Override\",min:0,max:10,step:.1,description:\"Overrides the global Magnet Force only while this source is active. Leave blank to use the global value.\"},magnetI:{type:ControlType.Number,title:\"Magnet Inertia Override\",min:0,max:1,step:.05,description:\"Overrides the global Magnet Inertia only while this source is active. Leave blank to use the global value.\"}}},defaultValue:[],description:\"Add multiple images/videos to swap between. When empty, the single Image/Video props below are used as one source. Drive Active Source from an override — e.g. one source per 100vh of scroll — to advance through them. Each source can optionally override the global Count, Threshold Bias, Circle Radius, Circle Center, and Magnet Radius/Force/Inertia.\"},activeSourceIndex:{type:ControlType.Number,title:\"Active Source\",min:0,max:50,step:1,defaultValue:0,description:\"Index into Sources to display. Out-of-range values are clamped. Drive this prop from an override (e.g. Math.floor(scrollY / viewportHeight)) for a scroll-linked rebuild sequence.\"},transitionMode:{type:ControlType.Enum,title:\"Transition\",options:[\"instant\",\"rebuild\"],optionTitles:[\"Instant\",\"Rebuild (scatter + reform)\"],defaultValue:\"rebuild\",description:\"Rebuild releases the current dots into swarm motion, then extracts and reforms the next source. Instant re-forms immediately with no scatter beat.\"},transitionScatterMs:{type:ControlType.Number,title:\"Scatter Time\",min:0,max:3e3,step:50,defaultValue:500,unit:\"ms\",hidden:props=>props.transitionMode!==\"rebuild\",description:\"How long dots swarm freely before reforming into the next source.\"},autoAdvance:{type:ControlType.Boolean,title:\"Auto Advance\",defaultValue:false,description:\"Cycle through Sources on a timer. Leave off if Active Source is driven externally (e.g. by scroll) — an external change always overrides the timer.\"},autoAdvanceInterval:{type:ControlType.Number,title:\"Interval\",min:.5,max:30,step:.5,defaultValue:8,unit:\"s\",hidden:props=>!props.autoAdvance},loopSources:{type:ControlType.Boolean,title:\"Loop\",defaultValue:true,enabledTitle:\"Loop\",disabledTitle:\"Stop at last\",hidden:props=>!props.autoAdvance},image:{type:ControlType.Image,title:\"Image\",description:\"Used as source 0 when Sources above is empty.\",hidden:props=>!!(props.sources&&props.sources.length>0)},videoFile:{type:ControlType.File,title:\"Video\",allowedFileTypes:[\"mp4\",\"webm\",\"mov\"],hidden:props=>!!(props.sources&&props.sources.length>0)},autoForm:{type:ControlType.Boolean,title:\"Auto Form\",defaultValue:true,enabledTitle:\"On load\",disabledTitle:\"Manual\"},startFormed:{type:ControlType.Boolean,title:\"Start Formed\",defaultValue:false,enabledTitle:\"Instant\",disabledTitle:\"Animate in\",description:\"Skips the swarm build-up animation on first load — dots appear already assembled into the shape instead of scattering in from random positions. Only affects the very first formation; later source switches still use the normal transition.\"},paused:{type:ControlType.Boolean,title:\"Pause\",defaultValue:false,enabledTitle:\"Paused\",disabledTitle:\"Playing\",description:\"Freezes all physics and video playback. Useful when several overlapping instances would otherwise all animate at once (e.g. stacked absolute-positioned cards) — pause every instance except the one currently visible.\"},extractMode:{type:ControlType.Enum,title:\"Mode\",options:[\"fill\",\"edges\",\"dither\"],optionTitles:[\"Fill (Otsu)\",\"Edges (Sobel+motion)\",\"Dither (Bayer)\"],defaultValue:\"dither\"},edgePadding:{type:ControlType.Number,title:\"Edge Padding\",min:0,max:40,step:1,defaultValue:0,unit:\"%\",description:\"Margin reserved on every side before the image is fit to the canvas during extraction, so dots don't assemble flush against the edge. 0 fills the full canvas (original behavior).\"},exposure:{type:ControlType.Number,title:\"Threshold Bias\",min:-80,max:80,step:5,defaultValue:0},fillPacking:{type:ControlType.Enum,title:\"Fill Packing\",options:[\"organic\",\"grid\"],optionTitles:[\"Organic (Poisson)\",\"Grid (fast)\"],defaultValue:\"organic\",description:\"Organic scatters dots with Poisson-disk sampling — costs more at extraction time. Grid is a plain jittered grid, cheaper, and what video already uses every frame.\",hidden:props=>props.extractMode!==\"fill\"},ballCount:{type:ControlType.Number,title:\"Count\",min:50,max:2e4,step:50,defaultValue:6550},sizeMin:{type:ControlType.Number,title:\"Min Size\",min:1,max:10,step:.5,defaultValue:1},sizeMax:{type:ControlType.Number,title:\"Max Size\",min:1,max:10,step:.5,defaultValue:2.5},scaleSizeToCanvas:{type:ControlType.Boolean,title:\"Scale Size\",defaultValue:true,enabledTitle:\"Auto\",disabledTitle:\"Fixed\",description:\"Scales Min/Max Size relative to canvas width, so dots look visually consistent across different container sizes instead of a fixed pixel radius.\"},sizeReferenceWidth:{type:ControlType.Number,title:\"Reference Width\",min:100,max:8e3,step:10,defaultValue:2978,description:\"Container width (px) your Min/Max Size were tuned at. Dots scale up on wider canvases, down on narrower ones, relative to this.\",hidden:props=>!props.scaleSizeToCanvas},spacing:{type:ControlType.Number,title:\"Spacing\",min:0,max:40,step:1,defaultValue:1},sizeMode:{type:ControlType.Enum,title:\"Size Mode\",options:[\"random\",\"circular\"],optionTitles:[\"Random\",\"Circular\"],defaultValue:\"random\"},circR:{type:ControlType.Number,title:\"Circle Radius\",min:0,max:1e3,step:10,defaultValue:0,hidden:props=>props.sizeMode!==\"circular\"},circCenterCustom:{type:ControlType.Boolean,title:\"Custom Center\",defaultValue:false,enabledTitle:\"Custom point\",disabledTitle:\"Auto (centroid)\",hidden:props=>props.sizeMode!==\"circular\"},circX:{type:ControlType.Number,title:\"Center X\",min:0,max:1,step:.01,defaultValue:.5,hidden:props=>props.sizeMode!==\"circular\"||!props.circCenterCustom},circY:{type:ControlType.Number,title:\"Center Y\",min:0,max:1,step:.01,defaultValue:.5,hidden:props=>props.sizeMode!==\"circular\"||!props.circCenterCustom},dotColor:{type:ControlType.Color,title:\"Dot Color\",defaultValue:\"#2D2D2D\"},dotRenderMode:{type:ControlType.Enum,title:\"Dot Render\",options:[\"circle\",\"auto\",\"square\"],optionTitles:[\"Circle (exact)\",\"Auto (fast, small dots)\",\"Square (fastest)\"],defaultValue:\"circle\",description:\"ctx.arc() costs meaningfully more to rasterize than ctx.rect() at thousands of calls/frame. Auto draws small dots (~4px diameter or under, where a square and a circle look identical) as squares and keeps true circles above that — free performance for typical small-dot swarms. Square forces squares at every size for maximum speed but will look different on larger dots.\"},bgColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#EDEDED\"},easing:{type:ControlType.Enum,title:\"Easing\",options:[\"smooth\",\"spring\",\"snap\",\"float\",\"drift\",\"surge\",\"bounce\",\"magnetic\"],optionTitles:[\"Smooth\",\"Spring\",\"Snap\",\"Float\",\"Drift\",\"Surge\",\"Bounce\",\"Magnetic\"],defaultValue:\"float\"},formSpeed:{type:ControlType.Number,title:\"Form Speed\",min:.1,max:12,step:.1,defaultValue:8.4},holdSpeed:{type:ControlType.Number,title:\"Hold Speed\",min:0,max:6,step:.1,defaultValue:1},swarmSpeed:{type:ControlType.Number,title:\"Swarm Speed\",min:.1,max:10,step:.1,defaultValue:10},drag:{type:ControlType.Number,title:\"Drag\",min:.85,max:.998,step:.001,defaultValue:.994},maxDrift:{type:ControlType.Number,title:\"Max Drift\",min:1,max:100,step:1,defaultValue:14},edgePct:{type:ControlType.Number,title:\"Edge Dots\",min:0,max:30,step:1,defaultValue:7,unit:\"%\"},orbitDist:{type:ControlType.Number,title:\"Orbit Radius\",min:10,max:500,step:10,defaultValue:20},enableHover:{type:ControlType.Boolean,title:\"Hover\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Turns the cursor magnet interaction on/off entirely. Runs on mouse input only — touch/pen drags never trigger it, so it's already effectively off on phones and tablets even when this is on.\"},magnetR:{type:ControlType.Number,title:\"Magnet Radius\",min:0,max:500,step:10,defaultValue:30,hidden:props=>!props.enableHover},magnetF:{type:ControlType.Number,title:\"Magnet Force\",min:0,max:10,step:.1,defaultValue:10,hidden:props=>!props.enableHover},magnetI:{type:ControlType.Number,title:\"Magnet Inertia\",min:0,max:1,step:.05,defaultValue:.85,hidden:props=>!props.enableHover},staticMode:{type:ControlType.Boolean,title:\"Static\",defaultValue:false,enabledTitle:\"Freeze\",disabledTitle:\"Animated\"},retina:{type:ControlType.Boolean,title:\"Retina 2\\xd7\",defaultValue:true},quality:{type:ControlType.Enum,title:\"Quality\",options:[\"performance\",\"balanced\",\"high\",\"native\"],optionTitles:[\"Performance\",\"Balanced\",\"High\",\"Native (uncapped)\"],defaultValue:\"balanced\",description:\"Trades overlap-resolution precision and video re-extraction rate for frame rate. Drop to Performance on heavy scenes (10k+ dots) or mobile. Native skips the analysis-resolution cap entirely — dithers/fills at full canvas resolution, same cost profile as before that cap existed. Use only when you need exact visual parity with an uncapped reference; not a general 'sharper' setting.\"},adaptivePerformance:{type:ControlType.Boolean,title:\"Adaptive Perf\",defaultValue:true,description:\"Auto-throttles frame rate and eases the dot pool in over ~1s on slow devices, instead of allocating everything on frame one.\"},maxDpr:{type:ControlType.Number,title:\"Max DPR\",min:1,max:2,step:.1,defaultValue:2,description:\"Caps device-pixel-ratio scaling independent of the Retina toggle — lower this on mobile-heavy traffic.\",hidden:props=>!props.retina},cacheExtractedPoints:{type:ControlType.Boolean,title:\"Cache Points\",defaultValue:true,description:\"Reuses the last computed dot layout (memory + localStorage) for the same image + settings, skipping re-extraction on repeat visits.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"LTANetworkProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"LTANetwork\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimationHero.map"],"mappings":"6TAAoC,EAEvB,EAAkB,CAC3B,SAAU,WACV,MAAO,OACP,OAAQ,OACR,QAAS,OACT,eAAgB,SAChB,WAAY,QAChB,EAGI,CADA,GAAG,CACW,EAML,EAAgB,CACzB,QAAS,CACL,KAAM,EAAY,YACtB,EACA,aAAc,CACV,KAAM,EAAY,YACtB,EACA,aAAc,CACV,KAAM,EAAY,YACtB,CACJ,EAEU,EAAY,OASR,EAAY,QAOZ,EAAY,OAMZ,EAAY,QClD1B,SAAgB,EAAW,EAAS,EAAS,CACzC,OAAO,EAA0B,GAAM,EAAS,CAAO,CAC3D,CACA,SAAgB,EAAU,EAAQ,EAAS,CACvC,OAAO,EAA0B,GAAO,EAAQ,CAAO,CAC3D,CACA,SAAS,EAA0B,EAAM,EAAU,EAAU,GAAM,CAC/D,IAAM,EAAa,EAA+B,EAClD,MAAc,CACN,GAAW,IAAe,GAAM,EAAS,CACjD,EAAG,CACC,CACJ,CAAC,CACL,iBAfuD,IACtB,iBCDH,iBCAA,iBCAM,iBCAN,iBCAM,yBCAL,EAClB,MAAsB,CAC/B,GAAW,IAAc,OAAa,CAClC,IAAM,EAAY,EAAU,UAAU,YAAY,EAElD,OADkB,EAAU,QAAQ,QAAQ,EAAI,IAAM,EAAU,QAAQ,cAAc,EAAI,IAAM,EAAU,QAAQ,SAAS,EAAI,KAAO,EAAU,QAAQ,QAAQ,EAAI,CAExK,MAAO,MAAO,EAClB,EACa,MAAyBA,MAAY,EAAgB,EAC5D,CAAC,CAAC,kBCTyB,IAE+F,kBCF1E,IACK,IAEqE,IAEJ,iBCJ/F,IAA6B,IAAoH,KCC9K,SAAgB,IAAkB,CAG9B,OAF4BC,MAAY,EAAa,QAAQ,EAC3D,CAAC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