{"version":3,"file":"ColorSweepWord.DC4ELfbS.mjs","names":["useMemo","useState","useRef"],"sources":["https:/framerusercontent.com/modules/6BjmQOKmwmcWjm9PNVYw/smiYBEGtT7MP81Ca7hgM/ColorSweepWord.js"],"sourcesContent":["/**\n * Color Sweep Word Carousel\n * Staggered color-sweep reveal for all words, with selected words cycling through alternatives.\n * Use {word1|word2|word3} syntax to mark cycling slots.\n * Use // to force a line break (e.g. \"We build // amazing things\").\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 100\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useLayoutEffect,useMemo,useRef,useState}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";const SWEEP_EASE=[.2,0,.3,.3];const GAP_MS=70;const PRESET_STOPS={spectrum:\"#FF0099 35%, #FF0000 45%, #FF4F04 50%, #FFA600 55%, #F8F8F8 60%, #0056FF 65%\",fire:\"#FF4500 35%, #FF6A00 42%, #FF9500 50%, #FFD000 58%, #FFF5C0 65%\",ocean:\"#00D4FF 35%, #0087FF 43%, #0040FF 50%, #7B2FFF 57%, #E0CFFF 65%\",neon:\"#FF00FF 35%, #00FF88 43%, #00FFFF 50%, #FFFF00 57%, #FFFFFF 65%\",aurora:\"#00FF87 35%, #00CFFF 42%, #8B5CF6 50%, #EC4899 57%, #FFF0F5 65%\",lavender:\"#E0B0FF 35%, #B57EDC 42%, #9B59B6 50%, #7C3AED 57%, #DDD6FE 65%\",mono:\"#BBBBBB 35%, #DDDDDD 48%, #F5F5F5 57%, #FFFFFF 65%\"};// ── Parsing ─────────────────────────────────────────────────────────────────\nconst BREAK_MARKER=\"\\x00BR\\x00\";/** Parse \"We build {fast|smooth|crisp} things // on the web\" into segments */function parseText(text){// Normalize // into a standalone token so the word regex picks it up.\nconst normalized=text.replace(/\\s*\\/\\/\\s*/g,` ${BREAK_MARKER} `);const segments=[];const regex=/\\{([^}]+)\\}|(\\S+)/g;let match;while((match=regex.exec(normalized))!==null){if(match[1]){const words=match[1].split(\"|\").map(w=>w.trim().split(\"//\").map(line=>line.trim())).filter(Boolean);if(words.length>0)segments.push({type:\"cycle\",words});}else if(match[2]){if(match[2]===BREAK_MARKER){segments.push({type:\"break\"});}else{segments.push({type:\"static\",word:match[2]});}}}return segments;}// ── Gradient builder ────────────────────────────────────────────────────────\nfunction buildCustomStops(colors){if(!colors.length)return\"#CCCCCC 50%\";const count=colors.length;return colors.map((c,i)=>{const pos=35+i/Math.max(count-1,1)*30;return`${c} ${pos.toFixed(0)}%`;}).join(\", \");}function buildGradient(textColor,preset,customColors,direction){const deg=direction===\"ltr\"?\"90deg\":\"270deg\";const stops=preset===\"custom\"?buildCustomStops(customColors):PRESET_STOPS[preset];return`linear-gradient(in oklch ${deg}, ${textColor} 0%, ${textColor} 30%, ${stops}, #000000 70%, #000000 100%)`;}// ── Font helper ─────────────────────────────────────────────────────────────\nfunction toFontStyle(font){if(!font)return{};const fontFamily=font.fontFamily??font.family;const fontWeight=font.fontWeight??font.weight;const fontStyleVal=font.fontStyle??font.style;const fontSize=font.fontSize??font.size;const lineHeightRaw=font.lineHeight;const letterSpacing=font.letterSpacing;const computedLineHeight=typeof lineHeightRaw===\"number\"&&typeof fontSize===\"number\"?`${lineHeightRaw/100*fontSize}px`:lineHeightRaw;return{fontFamily,fontStyle:fontStyleVal,fontWeight,fontSize,lineHeight:computedLineHeight,letterSpacing};}// ── Component ───────────────────────────────────────────────────────────────\nexport default function WordCarousel(props){const{text=\"We build {fast|smooth|colorful|crisp} interfaces\",timing,textColor=\"#000000\",colorPreset=\"spectrum\",customColors=[\"#FF0099\",\"#FF4F04\",\"#0056FF\"],cycleWidth,keepTogether=0,direction=\"ltr\",textAlign=\"center\",wordSpacing=.25,className=\"\",font,fontSize=64,lineHeight=1.2}=props;const sweepMs=timing?.sweepMs??750;const staggerMs=timing?.staggerMs??120;const holdMs=timing?.holdMs??2e3;const fadeMs=timing?.fadeMs??250;const fixedCycleWidth=cycleWidth?.fixedCycleWidth??true;const smoothWidth=cycleWidth?.smoothWidth??true;const widthDurationMs=cycleWidth?.widthDurationMs??300;const isStatic=useIsStaticRenderer();const segments=useMemo(()=>parseText(text),[text]);const wordCount=useMemo(()=>segments.filter(s=>s.type!==\"break\").length,[segments]);const[appearDone,setAppearDone]=useState(false);const[cycleIdx,setCycleIdx]=useState(0);const[fadeOut,setFadeOut]=useState(false);// Wait for fonts so grid/measurement uses real metrics, not fallback\nconst[fontsReady,setFontsReady]=useState(false);useEffect(()=>{if(typeof document===\"undefined\"||!document.fonts){setFontsReady(true);return;}let cancelled=false;document.fonts.ready.then(()=>{if(!cancelled)setFontsReady(true);});return()=>{cancelled=true;};},[]);// Reduced motion\nconst[reducedMotion,setReducedMotion]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const mq=window.matchMedia(\"(prefers-reduced-motion: reduce)\");setReducedMotion(mq.matches);const handler=e=>setReducedMotion(e.matches);mq.addEventListener(\"change\",handler);return()=>mq.removeEventListener(\"change\",handler);},[]);// Reset on text change\nuseEffect(()=>{setAppearDone(false);setCycleIdx(0);setFadeOut(false);},[text]);// Appear timer — after all words have swept in + hold, mark done\nconst totalAppearMs=Math.max(0,(wordCount-1)*staggerMs+sweepMs);useEffect(()=>{if(reducedMotion){setAppearDone(true);return;}const t=window.setTimeout(()=>setAppearDone(true),totalAppearMs+holdMs);return()=>window.clearTimeout(t);},[totalAppearMs,holdMs,text,reducedMotion]);// Cycle timer — only after appear, only if there are cycling slots\nconst hasCycles=useMemo(()=>segments.some(s=>s.type===\"cycle\"&&s.words.length>1),[segments]);useEffect(()=>{if(!appearDone||!hasCycles)return;const fadeTimer=window.setTimeout(()=>setFadeOut(true),Math.max(0,sweepMs+holdMs-fadeMs-GAP_MS));const cycleTimer=window.setTimeout(()=>{setFadeOut(false);setCycleIdx(i=>i+1);},sweepMs+holdMs+GAP_MS);return()=>{window.clearTimeout(fadeTimer);window.clearTimeout(cycleTimer);};},[appearDone,cycleIdx,sweepMs,holdMs,fadeMs,hasCycles]);// Typography — font control's lineHeight wins if set, else prop.\nconst fontStyle=toFontStyle(font);if(typeof fontSize===\"number\"&&fontSize>0){fontStyle.fontSize=fontSize;}const rawFontLineHeight=font?.lineHeight;const effectiveLineHeight=typeof rawFontLineHeight===\"number\"&&rawFontLineHeight>0?rawFontLineHeight/100:lineHeight;fontStyle.lineHeight=`${effectiveLineHeight}em`;const typography={fontFamily:fontStyle.fontFamily,fontWeight:fontStyle.fontWeight,fontStyle:fontStyle.fontStyle,fontSize:fontStyle.fontSize,lineHeight:fontStyle.lineHeight,letterSpacing:fontStyle.letterSpacing};// Between forced // breaks: extra breathing room beyond the natural\n// line-box (paragraph-like). Within a wrapped flex line: 0, since each\n// word's line-box already provides line-height·em of vertical space.\nconst paragraphGapStr=`${Math.max(0,effectiveLineHeight-1).toFixed(2)}em`;const wrapGapStr=\"0em\";const columnGapStr=`${Math.max(0,wordSpacing).toFixed(2)}em`;// Measure cycling word widths for smooth-width transitions\nconst needsSmooth=smoothWidth&&!fixedCycleWidth;const sizerRefs=useRef(new Map);const[measuredWidths,setMeasuredWidths]=useState(new Map);useLayoutEffect(()=>{if(!needsSmooth)return;const widths=new Map;sizerRefs.current.forEach((el,key)=>{widths.set(key,el.offsetWidth);});if(widths.size>0)setMeasuredWidths(widths);},[needsSmooth,text,font,fontSize,fontsReady]);const gradient=buildGradient(textColor,colorPreset,customColors,direction);const sweepInitialX=direction===\"rtl\"?\"0%\":\"100%\";const sweepAnimateX=direction===\"rtl\"?\"100%\":\"0%\";const justifyContent=textAlign===\"center\"?\"center\":textAlign===\"right\"?\"flex-end\":\"flex-start\";// Vertical bleed from gradient overlay (0.30em) + blur (4px)\nconst bleedPad=\"calc(0.30em + 4px)\";// Split segments into visual lines around break markers, tracking\n// original segment and word indices so keys and stagger stay stable.\nconst lines=[];{let segIdx=0;let wordIdx=0;let cur=[];let startSeg=0;let startWord=0;for(const s of segments){if(s.type===\"break\"){lines.push({items:cur,startSegIdx:startSeg,startWordIdx:startWord});segIdx++;startSeg=segIdx;startWord=wordIdx;cur=[];}else{cur.push(s);segIdx++;wordIdx++;}}lines.push({items:cur,startSegIdx:startSeg,startWordIdx:startWord});}// Static renderer fallback — mirrors the animated structure (same\n// bleedPad, same line/flex layout, same baseline alignment, same\n// column/row gaps) so swapping from static to live produces no\n// visible jump in position or word spacing.\nif(isStatic||reducedMotion){return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent,width:\"100%\",height:\"100%\",overflow:\"visible\",paddingTop:bleedPad,paddingBottom:bleedPad,boxSizing:\"border-box\"},children:/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",className:className,style:{display:\"flex\",flexDirection:\"column\",alignItems:\"stretch\",width:\"100%\",minWidth:0,rowGap:paragraphGapStr,overflow:\"visible\",color:textColor,...typography},children:lines.map((line,lineIdx)=>{if(line.items.length===0)return null;return /*#__PURE__*/_jsx(\"span\",{style:{display:\"flex\",flexWrap:\"wrap\",width:\"100%\",minWidth:0,alignItems:\"baseline\",justifyContent,columnGap:columnGapStr,rowGap:wrapGapStr},children:line.items.map((seg,k)=>{const word=seg.type===\"static\"?seg.word:seg.words[0];return /*#__PURE__*/_jsx(\"span\",{style:{whiteSpace:\"nowrap\"},children:word},k);})},`static-line-${lineIdx}`);})})});}// Screen reader text (skip breaks)\nconst srText=segments.map(s=>{if(s.type===\"break\")return\"\";if(s.type===\"static\")return s.word;return s.words[(appearDone?cycleIdx:0)%s.words.length];}).filter(Boolean).join(\" \");const keepTogetherN=Math.max(0,Math.floor(keepTogether??0));const renderWord=(seg,segIdx,wordIdx)=>{const isCycling=seg.type===\"cycle\"&&seg.words.length>1;const subIdx=seg.type===\"cycle\"?(appearDone?cycleIdx:0)%seg.words.length:0;const word=seg.type===\"static\"?seg.word:seg.words[subIdx];// During appear: stagger delay per word. After: no delay.\nconst delaySec=appearDone?0:wordIdx*staggerMs/1e3;// Key controls when framer-motion replays the sweep\nconst animKey=isCycling&&appearDone&&cycleIdx>0?`cycle-${cycleIdx}`:`appear-${text}-${segIdx}`;const shouldFadeOut=isCycling&&appearDone&&fadeOut;const useGrid=fixedCycleWidth&&isCycling&&seg.type===\"cycle\";const useSmooth=needsSmooth&&isCycling&&seg.type===\"cycle\";const smoothTarget=useSmooth?measuredWidths.get(`${segIdx}-${subIdx}`):undefined;return /*#__PURE__*/_jsxs(motion.span,{animate:useSmooth&&smoothTarget!=null?{width:smoothTarget}:undefined,transition:useSmooth?{width:{duration:widthDurationMs/1e3,ease:[.25,.1,.25,1]}}:undefined,style:{position:\"relative\",display:useGrid?\"inline-grid\":\"inline-block\",whiteSpace:\"nowrap\",overflow:useSmooth?undefined:\"visible\",...useSmooth&&{overflowX:\"clip\",overflowY:\"visible\"}},children:[(useGrid||useSmooth)&&seg.type===\"cycle\"&&seg.words.map((w,j)=>/*#__PURE__*/_jsx(\"span\",{ref:useSmooth?el=>{const key=`${segIdx}-${j}`;if(el)sizerRefs.current.set(key,el);else sizerRefs.current.delete(key);}:undefined,\"aria-hidden\":\"true\",style:{...useGrid?{gridArea:\"1 / 1\"}:{position:\"absolute\",top:0,left:0},visibility:\"hidden\",pointerEvents:\"none\",...typography},children:w},`sizer-${j}`)),/*#__PURE__*/_jsx(motion.span,{style:{...useGrid&&{gridArea:\"1 / 1\"},color:textColor,...typography},initial:{opacity:0},animate:{opacity:shouldFadeOut?0:1},transition:shouldFadeOut?{duration:fadeMs/1e3,ease:\"easeOut\"}:{delay:delaySec+sweepMs*.8/1e3,duration:.12,ease:\"easeOut\"},children:word},`u-${animKey}`),/*#__PURE__*/_jsx(motion.span,{style:{...useGrid?{gridArea:\"1 / 1\",marginTop:\"-0.30em\",marginBottom:\"-0.30em\",paddingTop:\"0.30em\",paddingBottom:\"0.30em\",zIndex:1}:{position:\"absolute\",left:0,right:0,top:\"-0.30em\",bottom:\"-0.30em\",paddingTop:\"0.30em\",paddingBottom:\"0.30em\"},lineHeight:\"inherit\",pointerEvents:\"none\",backgroundOrigin:\"padding-box\",backgroundImage:gradient,backgroundClip:\"text\",WebkitBackgroundClip:\"text\",WebkitTextFillColor:\"transparent\",color:\"transparent\",backgroundRepeat:\"no-repeat\",backgroundSize:\"400% 100%\",willChange:\"background-position, opacity, filter\",filter:\"blur(var(--blur))\",...typography},initial:{backgroundPositionX:sweepInitialX,opacity:1,[\"--blur\"]:\"4px\"},animate:{backgroundPositionX:sweepAnimateX,opacity:[1,1,0],[\"--blur\"]:[\"4px\",\"0.5px\",\"0px\"]},transition:{backgroundPositionX:{delay:delaySec,duration:sweepMs/1e3,ease:SWEEP_EASE},opacity:{delay:delaySec,duration:sweepMs/1e3,times:[0,.985,1],ease:\"linear\"},[\"--blur\"]:{delay:delaySec,duration:sweepMs/1e3,times:[0,.8,1],ease:\"easeOut\"}},children:word},`o-${animKey}`)]},segIdx);};return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent,width:\"100%\",height:\"100%\",overflow:\"visible\",paddingTop:bleedPad,paddingBottom:bleedPad,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-live\":\"polite\",style:{position:\"absolute\",width:1,height:1,overflow:\"hidden\",clip:\"rect(0,0,0,0)\",whiteSpace:\"nowrap\",border:0},children:srText}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",className:className,style:{display:\"flex\",flexDirection:\"column\",alignItems:\"stretch\",width:\"100%\",minWidth:0,rowGap:paragraphGapStr,overflow:\"visible\",...typography},children:lines.map((line,lineIdx)=>{const n=line.items.length;if(n===0)return null;const groupSize=keepTogetherN>=2&&keepTogetherN<=n?keepTogetherN:0;const groupStart=groupSize>0?n-groupSize:-1;const children=[];for(let k=0;k<n;k++){if(k===groupStart){const grouped=[];for(let j=k;j<n;j++){grouped.push(renderWord(line.items[j],line.startSegIdx+j,line.startWordIdx+j));}children.push(/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",flexWrap:\"nowrap\",alignItems:\"baseline\",columnGap:columnGapStr,whiteSpace:\"nowrap\"},children:grouped},`grp-${lineIdx}`));break;}children.push(renderWord(line.items[k],line.startSegIdx+k,line.startWordIdx+k));}return /*#__PURE__*/_jsx(\"span\",{style:{display:\"flex\",flexWrap:\"wrap\",width:\"100%\",minWidth:0,alignItems:\"baseline\",justifyContent,columnGap:columnGapStr,rowGap:wrapGapStr,overflow:\"visible\"},children:children},`line-${lineIdx}`);})},fontsReady?\"fonts-ready\":\"fonts-loading\")]});}// ── Property Controls ───────────────────────────────────────────────────────\naddPropertyControls(WordCarousel,{text:{type:ControlType.String,title:\"Text\",placeholder:\"We build {fast|smooth} // things\",defaultValue:\"We build {fast|smooth|colorful|crisp} interfaces\",description:\"**{a|b|c}** cycles through words.  \\n**//** forces a line break (e.g. `We build // amazing things`). Spaces around // are optional.\"},// ── Timing ──────────────────────────────────────────────────────────────\ntiming:{type:ControlType.Object,title:\"Timing\",controls:{sweepMs:{type:ControlType.Number,title:\"Sweep\",min:100,max:5e3,step:10,unit:\"ms\",defaultValue:750},staggerMs:{type:ControlType.Number,title:\"Stagger\",min:30,max:500,step:10,unit:\"ms\",defaultValue:120},holdMs:{type:ControlType.Number,title:\"Hold\",min:0,max:1e4,step:10,unit:\"ms\",defaultValue:2e3},fadeMs:{type:ControlType.Number,title:\"Fade\",min:50,max:1e3,step:10,unit:\"ms\",defaultValue:250}}},// ── Color ────────────────────────────────────────────────────────────────\ntextColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\",section:\"Color\"},colorPreset:{type:ControlType.Enum,title:\"Sweep Colors\",options:[\"spectrum\",\"fire\",\"ocean\",\"neon\",\"aurora\",\"lavender\",\"mono\",\"custom\"],optionTitles:[\"Spectrum\",\"Fire\",\"Ocean\",\"Neon\",\"Aurora\",\"Lavender\",\"Mono\",\"Custom\"],defaultValue:\"spectrum\",section:\"Color\"},customColors:{type:ControlType.Array,title:\"Custom Colors\",propertyControl:{type:ControlType.Color},defaultValue:[\"#FF0099\",\"#FF4F04\",\"#0056FF\"],hidden:props=>props.colorPreset!==\"custom\",section:\"Color\"},// ── Layout ───────────────────────────────────────────────────────────────\ncycleWidth:{type:ControlType.Object,title:\"Cycle Width\",controls:{fixedCycleWidth:{type:ControlType.Boolean,title:\"Fixed Width\",enabledTitle:\"On\",disabledTitle:\"Off\",defaultValue:true},smoothWidth:{type:ControlType.Boolean,title:\"Smooth Width\",enabledTitle:\"On\",disabledTitle:\"Off\",defaultValue:true,hidden:props=>props.fixedCycleWidth!==false},widthDurationMs:{type:ControlType.Number,title:\"Width Duration\",min:50,max:1e3,step:10,unit:\"ms\",defaultValue:300,hidden:props=>props.fixedCycleWidth!==false||props.smoothWidth!==true}},section:\"Layout\"},keepTogether:{type:ControlType.Number,title:\"Keep Together\",description:\"Keeps the last N words of each line on the same row to avoid orphans. 0 = off.\",min:0,max:5,step:1,displayStepper:true,defaultValue:0,section:\"Layout\"},direction:{type:ControlType.SegmentedEnum,title:\"Direction\",options:[\"ltr\",\"rtl\"],optionTitles:[\"→\",\"←\"],defaultValue:\"ltr\",section:\"Layout\"},textAlign:{type:ControlType.SegmentedEnum,title:\"Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"left\",section:\"Layout\"},wordSpacing:{type:ControlType.Number,title:\"Word Spacing\",min:0,max:2,step:.01,unit:\"em\",displayStepper:true,defaultValue:.25,section:\"Layout\"},// ── Typography ───────────────────────────────────────────────────────────\nfont:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",section:\"Typography\"},fontSize:{type:ControlType.Number,title:\"Font Size\",min:8,max:256,step:1,unit:\"px\",displayStepper:true,defaultValue:64,section:\"Typography\"},lineHeight:{type:ControlType.Number,title:\"Line Height\",min:.5,max:3,step:.05,unit:\"em\",displayStepper:true,defaultValue:1.2,section:\"Typography\"}});WordCarousel.displayName=\"Color Sweep Word Carousel\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WordCarousel\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ColorSweepWord.map"],"mappings":"qRAW8G,SAAS,GAAU,EAAK,CACtI,IAAM,EAAW,EAAK,QAAQ,cAAc,IAAI,EAAa,EAAE,EAAQ,EAAS,CAAC,EAAQ,EAAM,qBAAyB,EAAM,MAAO,EAAM,EAAM,KAAK,CAAU,KAAK,MAAM,GAAG,EAAM,GAAG,CAAC,IAAM,EAAM,EAAM,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,GAAG,EAAE,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,IAAI,GAAM,EAAK,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,OAAO,EAAK,EAAM,OAAO,GAAE,EAAS,KAAK,CAAC,KAAK,QAAQ,OAAK,CAAC,CAAE,MAAS,EAAM,KAAO,EAAM,KAAK,EAAc,EAAS,KAAK,CAAC,KAAK,OAAO,CAAC,EAAQ,EAAS,KAAK,CAAC,KAAK,SAAS,KAAK,EAAM,EAAE,CAAC,GAAK,OAAO,CAAS,CACre,SAAS,EAAiB,EAAO,CAAC,GAAG,CAAC,EAAO,OAAO,MAAM,cAAc,IAAM,EAAM,EAAO,OAAO,OAAO,EAAO,KAAK,EAAE,IAAiD,GAAG,EAAE,IAAvC,GAAG,EAAE,KAAK,IAAI,EAAM,EAAE,CAAC,EAAE,GAAA,CAAqB,QAAQ,CAAC,EAAE,EAAI,CAAC,CAAC,KAAK,IAAI,CAAE,CAAC,SAAS,GAAc,EAAU,EAAO,EAAa,EAAU,CAAgI,MAAM,4BAA3H,IAAY,MAAM,QAAQ,SAAiI,IAAI,EAAU,OAAO,EAAU,QAA3I,IAAS,SAAS,EAAiB,CAAY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