{"version":3,"file":"ASCII.Ccwvfl2R.mjs","names":["addPropertyOverrides","enabledGestures","serializationHash","variantClassNames","transition1","Transition","React.useContext","React.useMemo","Variants","React.Fragment","getProps","createLayoutDependency","useRef","React.useId","SVG","PlayButton","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","Image","React.useRef","React.useMemo","React.useCallback","x"],"sources":["https:/framerusercontent.com/modules/32UzWF2TzM1oR9OsmvAU/cUx1XL3prhj1M5GOsrI7/ZJcdpGMzX.js","https:/framerusercontent.com/modules/j8vx8QeP2b7tFU05SJOd/9N2HGG4Rzt43z7Wm0l8n/iM83nPOAm.js","https:/framerusercontent.com/modules/QAiQrwWURrlYG0orVVxe/WcbRNIv5d6lgSvDfJ8qV/ASCII.js"],"sourcesContent":["// Generated by Framer (4307032)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,SVG,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const enabledGestures={ksrnkkCfq:{hover:true}};const cycleOrder=[\"GcQw0jNWZ\",\"CCLLdE62W\",\"ksrnkkCfq\"];const serializationHash=\"framer-OtxzO\";const variantClassNames={CCLLdE62W:\"framer-v-4m0wo5\",GcQw0jNWZ:\"framer-v-y5t93a\",ksrnkkCfq:\"framer-v-21acbw\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={\"Larger • W Hover\":\"ksrnkkCfq\",Default:\"GcQw0jNWZ\",Large:\"CCLLdE62W\"};const getProps=({click,height,id,width,...props})=>{return{...props,BV8utWbLd:click??props.BV8utWbLd,variant:humanReadableVariantMap[props.variant]??props.variant??\"GcQw0jNWZ\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,BV8utWbLd,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"GcQw0jNWZ\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap19rxryz=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(BV8utWbLd){const res=await BV8utWbLd(...args);if(res===false)return false;}});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-y5t93a\",className,classNames),\"data-framer-name\":\"Default\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"GcQw0jNWZ\",onTap:onTap19rxryz,ref:refBinding,style:{backdropFilter:\"blur(64px)\",backgroundColor:\"var(--token-c7cefcb8-8946-4640-919b-6b09a10d231e, rgba(0, 0, 0, 0.25))\",borderBottomLeftRadius:5,borderBottomRightRadius:5,borderTopLeftRadius:5,borderTopRightRadius:5,WebkitBackdropFilter:\"blur(64px)\",...style},...addPropertyOverrides({\"ksrnkkCfq-hover\":{\"data-framer-name\":undefined},CCLLdE62W:{\"data-framer-name\":\"Large\"},ksrnkkCfq:{\"data-framer-name\":\"Larger • W Hover\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(SVG,{className:\"framer-bf9x2p\",layoutDependency:layoutDependency,layoutId:\"AxKfxiCoY\",opacity:1,requiresOverflowVisible:false,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 15.5 17.591\" overflow=\"visible\"><path d=\"M 15 7.93 C 15.667 8.315 15.667 9.277 15 9.662 L 1.5 17.456 C 0.833 17.841 0 17.36 0 16.59 L 0 1.002 C 0 0.232 0.833 -0.249 1.5 0.135 Z\" fill=\"var(--token-c135ed58-40fa-40b8-a30c-2c7b2c81e0bf, rgb(255, 255, 255))\"></path></svg>',withExternalLayout:true,...addPropertyOverrides({CCLLdE62W:{svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 16 19.099\" overflow=\"visible\"><path d=\"M 15.484 8.609 C 16.172 9.027 16.172 10.072 15.484 10.49 L 1.548 18.952 C 0.86 19.37 0 18.848 0 18.012 L 0 1.087 C 0 0.252 0.86 -0.271 1.548 0.147 Z\" fill=\"var(--token-c135ed58-40fa-40b8-a30c-2c7b2c81e0bf, rgb(255, 255, 255))\"></path></svg>'},ksrnkkCfq:{svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 16 19.099\" overflow=\"visible\"><path d=\"M 15.484 8.609 C 16.172 9.027 16.172 10.072 15.484 10.49 L 1.548 18.952 C 0.86 19.37 0 18.848 0 18.012 L 0 1.087 C 0 0.252 0.86 -0.271 1.548 0.147 Z\" fill=\"var(--token-c135ed58-40fa-40b8-a30c-2c7b2c81e0bf, rgb(255, 255, 255))\"></path></svg>'}},baseVariant,gestureVariant)})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-OtxzO.framer-dayp1g, .framer-OtxzO .framer-dayp1g { display: block; }\",\".framer-OtxzO.framer-y5t93a { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: 64px; justify-content: center; overflow: hidden; padding: 0px; position: relative; width: 96px; will-change: var(--framer-will-change-override, transform); }\",\".framer-OtxzO .framer-bf9x2p { height: 18px; position: relative; width: 16px; }\",\".framer-OtxzO.framer-v-4m0wo5.framer-y5t93a, .framer-OtxzO.framer-v-21acbw.framer-y5t93a { height: 88px; width: 133px; }\",\".framer-OtxzO.framer-v-4m0wo5 .framer-bf9x2p, .framer-OtxzO.framer-v-21acbw .framer-bf9x2p { height: 19px; width: 16px; }\",\".framer-OtxzO.framer-v-21acbw.hover.framer-y5t93a { height: 100px; width: 150px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 64\n * @framerIntrinsicWidth 96\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"CCLLdE62W\":{\"layout\":[\"fixed\",\"fixed\"]},\"ksrnkkCfq\":{\"layout\":[\"fixed\",\"fixed\"]},\"mJIu8Yjyh\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"BV8utWbLd\":\"click\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerZJcdpGMzX=withCSS(Component,css,\"framer-OtxzO\");export default FramerZJcdpGMzX;FramerZJcdpGMzX.displayName=\"Play Button\";FramerZJcdpGMzX.defaultProps={height:64,width:96};addPropertyControls(FramerZJcdpGMzX,{variant:{options:[\"GcQw0jNWZ\",\"CCLLdE62W\",\"ksrnkkCfq\"],optionTitles:[\"Default\",\"Large\",\"Larger • W Hover\"],title:\"Variant\",type:ControlType.Enum},BV8utWbLd:{title:\"Click\",type:ControlType.EventHandler}});addFonts(FramerZJcdpGMzX,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerZJcdpGMzX\",\"slots\":[],\"annotations\":{\"framerColorSyntax\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicWidth\":\"96\",\"framerIntrinsicHeight\":\"64\",\"framerComponentViewportWidth\":\"true\",\"framerImmutableVariables\":\"true\",\"framerVariables\":\"{\\\"BV8utWbLd\\\":\\\"click\\\"}\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"CCLLdE62W\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"ksrnkkCfq\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"mJIu8Yjyh\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerContractVersion\":\"1\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ZJcdpGMzX.map","// Generated by Framer (c85c929)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,getLoadingLazyAtYPosition,Image,SmartComponentScopedContainer,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import PlayButton from\"https://framerusercontent.com/modules/32UzWF2TzM1oR9OsmvAU/cUx1XL3prhj1M5GOsrI7/ZJcdpGMzX.js\";const PlayButtonFonts=getFonts(PlayButton);const enabledGestures={o4UztlJ4_:{hover:true}};const serializationHash=\"framer-fBf2V\";const variantClassNames={o4UztlJ4_:\"framer-v-1ot8vad\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const radiusForCorner=(value,cornerIndex)=>{if(typeof value===\"number\"&&Number.isFinite(value))return Math.max(0,value)+\"px\";if(typeof value!==\"string\"||typeof cornerIndex!==\"number\")return undefined;const segments=value.split(\" \");return segments[cornerIndex]||segments[cornerIndex-2]||segments[0];};const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const toResponsiveImage=value=>{if(typeof value===\"object\"&&value!==null&&typeof value.src===\"string\"){return value;}return typeof value===\"string\"?{src:value}:undefined;};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const getProps=({height,id,image,radius,videoClick,width,...props})=>{return{...props,eceMH8sZp:radius??props.eceMH8sZp??\"10px\",ngfiw1dZ0:videoClick??props.ngfiw1dZ0,SPmeqzzBQ:image??props.SPmeqzzBQ??{alt:\"\",pixelHeight:1280,pixelWidth:1920,src:\"https://framerusercontent.com/images/3dqiTBnvegOxDyWGtENpFfD5RA.webp?scale-down-to=512\",srcSet:\"https://framerusercontent.com/images/3dqiTBnvegOxDyWGtENpFfD5RA.webp?scale-down-to=512 512w,https://framerusercontent.com/images/3dqiTBnvegOxDyWGtENpFfD5RA.webp?scale-down-to=1024 1024w,https://framerusercontent.com/images/3dqiTBnvegOxDyWGtENpFfD5RA.webp 1920w\"}};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,ngfiw1dZ0,SPmeqzzBQ,eceMH8sZp,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"o4UztlJ4_\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap1uozrh4=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(ngfiw1dZ0){const res=await ngfiw1dZ0(...args);if(res===false)return false;}});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1ot8vad\",className,classNames),\"data-framer-name\":\"Default\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"o4UztlJ4_\",onTap:onTap1uozrh4,ref:refBinding,style:{borderBottomLeftRadius:radiusForCorner(eceMH8sZp,3),borderBottomRightRadius:radiusForCorner(eceMH8sZp,2),borderTopLeftRadius:radiusForCorner(eceMH8sZp,0),borderTopRightRadius:radiusForCorner(eceMH8sZp,1),boxShadow:\"0px 4px 48px 0px rgba(0, 0, 0, 0.25)\",...style},...addPropertyOverrides({\"o4UztlJ4_-hover\":{\"data-framer-name\":undefined}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(Image,{background:{alt:\"\",fit:\"fill\",loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+((componentViewport?.height||191)*.5026178010471206-(componentViewport?.height||191)*1/2)),pixelHeight:1280,pixelWidth:1920,sizes:componentViewport?.width||\"100vw\",...toResponsiveImage(SPmeqzzBQ)},className:\"framer-17s9514\",\"data-framer-name\":\"Placeholder\",layoutDependency:layoutDependency,layoutId:\"I555:4087;272:1644\"}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-kodd9e\",\"data-framer-name\":\"Button\",layoutDependency:layoutDependency,layoutId:\"yF4fSsEz6\",style:{scale:1},variants:{\"o4UztlJ4_-hover\":{scale:1.1}},children:/*#__PURE__*/_jsx(ComponentViewportProvider,{height:64,width:\"96px\",y:(componentViewport?.y||0)+0+(((componentViewport?.height||191)-0-64)/2+0+0)+0+0,children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-16sju95-container\",layoutDependency:layoutDependency,layoutId:\"lVMiAz0Qh-container\",nodeId:\"lVMiAz0Qh\",rendersWithMotion:true,scopeId:\"iM83nPOAm\",children:/*#__PURE__*/_jsx(PlayButton,{height:\"100%\",id:\"lVMiAz0Qh\",layoutId:\"lVMiAz0Qh\",style:{height:\"100%\",width:\"100%\"},variant:\"GcQw0jNWZ\",width:\"100%\"})})})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-fBf2V.framer-59w0hh, .framer-fBf2V .framer-59w0hh { display: block; }\",\".framer-fBf2V.framer-1ot8vad { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 24px; height: 191px; justify-content: center; overflow: hidden; padding: 0px; position: relative; width: 340px; will-change: var(--framer-will-change-override, transform); }\",\".framer-fBf2V .framer-17s9514 { flex: none; gap: 0px; height: 100%; left: calc(50.00000000000002% - 100% / 2); overflow: hidden; position: absolute; top: calc(50.26178010471206% - 100% / 2); width: 100%; z-index: 1; }\",\".framer-fBf2V .framer-kodd9e { align-content: center; align-items: center; display: flex; flex: none; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: hidden; padding: 0px; position: relative; width: min-content; z-index: 2; }\",\".framer-fBf2V .framer-16sju95-container { aspect-ratio: 1.5 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 64px); position: relative; width: 96px; }\",\".framer-fBf2V.framer-v-1ot8vad.hover.framer-1ot8vad { aspect-ratio: 1.780104712041885 / 1; height: var(--framer-aspect-ratio-supported, 191px); }\",\".framer-fBf2V.framer-v-1ot8vad.hover .framer-kodd9e { overflow: visible; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 191\n * @framerIntrinsicWidth 340\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"W_hCJEhSa\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"ngfiw1dZ0\":\"videoClick\",\"SPmeqzzBQ\":\"image\",\"eceMH8sZp\":\"radius\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FrameriM83nPOAm=withCSS(Component,css,\"framer-fBf2V\");export default FrameriM83nPOAm;FrameriM83nPOAm.displayName=\"Video Box • Alt\";FrameriM83nPOAm.defaultProps={height:191,width:340};addPropertyControls(FrameriM83nPOAm,{ngfiw1dZ0:{title:\"Video Click\",type:ControlType.EventHandler},SPmeqzzBQ:{__defaultAssetReference:\"data:framer/asset-reference,3dqiTBnvegOxDyWGtENpFfD5RA.webp?originalFilename=67f861830e330563bc7de780_blog-02.webp&preferredSize=auto\",__vekterDefault:{alt:\"\",assetReference:\"data:framer/asset-reference,3dqiTBnvegOxDyWGtENpFfD5RA.webp?originalFilename=67f861830e330563bc7de780_blog-02.webp&preferredSize=auto\"},title:\"Image\",type:ControlType.ResponsiveImage},eceMH8sZp:{defaultValue:\"10px\",title:\"Radius\",type:ControlType.BorderRadius}});addFonts(FrameriM83nPOAm,[{explicitInter:true,fonts:[]},...PlayButtonFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FrameriM83nPOAm\",\"slots\":[],\"annotations\":{\"framerComponentViewportWidth\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"W_hCJEhSa\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicWidth\":\"340\",\"framerContractVersion\":\"1\",\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\",\"framerVariables\":\"{\\\"ngfiw1dZ0\\\":\\\"videoClick\\\",\\\"SPmeqzzBQ\\\":\\\"image\\\",\\\"eceMH8sZp\\\":\\\"radius\\\"}\",\"framerColorSyntax\":\"true\",\"framerIntrinsicHeight\":\"191\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./iM83nPOAm.map","import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{ControlType}from\"framer\";export default function ASCIIBackground(props){const{characters=\"■□▢▣▤▥▦▧▨▩▪▫▬▭▮▯\",fontSize=12,color=\"#ffffff\",backgroundColor=\"#000000\",speedFactor=100,density=.5,image,...rest}=props;const canvasRef=React.useRef(null);const animationRef=React.useRef(null);const frameCount=React.useRef(0);const lastTimestamp=React.useRef(0);const charSet=React.useMemo(()=>characters.split(\"\"),[characters]);const initCanvas=React.useCallback(()=>{if(!canvasRef.current)return;const canvas=canvasRef.current;const ctx=canvas.getContext(\"2d\");if(!ctx)return;canvas.width=canvas.offsetWidth;canvas.height=canvas.offsetHeight;ctx.fillStyle=backgroundColor;ctx.fillRect(0,0,canvas.width,canvas.height);},[backgroundColor]);const drawFrame=React.useCallback(timestamp=>{if(!canvasRef.current)return;const canvas=canvasRef.current;const ctx=canvas.getContext(\"2d\");if(!ctx)return;const effectiveDelay=1e3/speedFactor;const delta=timestamp-lastTimestamp.current;if(delta<effectiveDelay){animationRef.current=requestAnimationFrame(drawFrame);return;}lastTimestamp.current=timestamp;const cols=Math.floor(canvas.width/fontSize);const rows=Math.floor(canvas.height/fontSize);ctx.fillStyle=backgroundColor;ctx.fillRect(0,0,canvas.width,canvas.height);ctx.fillStyle=color;ctx.font=`${fontSize}px monospace`;frameCount.current+=1;for(let y=0;y<rows;y++){for(let x=0;x<cols;x++){if(Math.random()<density){const char=charSet[(frameCount.current+x+y)%charSet.length];ctx.fillText(char,x*fontSize,y*fontSize);}}}animationRef.current=requestAnimationFrame(drawFrame);},[charSet,color,backgroundColor,fontSize,speedFactor,density]);React.useEffect(()=>{initCanvas();animationRef.current=requestAnimationFrame(drawFrame);return()=>{if(animationRef.current){cancelAnimationFrame(animationRef.current);}};},[initCanvas,drawFrame]);React.useEffect(()=>{const handleResize=()=>initCanvas();window.addEventListener(\"resize\",handleResize);return()=>window.removeEventListener(\"resize\",handleResize);},[initCanvas]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",width:\"100%\",height:\"100%\",overflow:\"hidden\",WebkitMaskImage:image?`url(${image})`:undefined,WebkitMaskRepeat:\"no-repeat\",WebkitMaskSize:\"cover\",maskImage:image?`url(${image})`:undefined,maskRepeat:\"no-repeat\",maskSize:\"cover\",...rest},children:/*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,style:{width:\"100%\",height:\"100%\",display:\"block\"}})});}// Property Controls\nASCIIBackground.propertyControls={characters:{type:ControlType.String,title:\"Characters\",defaultValue:\"■□▢▣▤▥▦▧▨▩▪▫▬▭▮▯\"},fontSize:{type:ControlType.Number,title:\"Font Size\",min:8,max:32,step:1,defaultValue:12},color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#ffffff\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},speedFactor:{type:ControlType.Number,title:\"Speed\",min:1,max:1e3,step:10,defaultValue:100},density:{type:ControlType.Number,title:\"Density\",min:.1,max:1,step:.1,defaultValue:.5},image:{type:ControlType.Image,title:\"Mask Image\"}};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ASCIIBackground\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ASCII.map"],"mappings":"4YACsjB,SAASA,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,6CAAnrB,IAAwJ,IAAkE,IAA4B,CAAgCC,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,CAAOC,EAAkB,eAAqBC,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,kBAAkB,CAA8LC,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAOC,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOC,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,WAAS,CAAC,EAASC,GAAS,EAAO,OAAOC,EAAe,CAAO,EAAwB,CAAC,mBAAmB,YAAY,QAAQ,YAAY,MAAM,YAAY,CAAOC,GAAU,CAAC,QAAM,SAAO,KAAG,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAO,EAAM,UAAU,QAAQ,EAAwB,EAAM,UAAU,EAAM,SAAS,YAAY,EAASC,GAAwB,EAAM,IAAe,EAAM,i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