{"version":3,"file":"shared-lib.bub04aZJ.mjs","names":["i","n","o","p","l","r","e","e","n","t","i","r","o","l","p","e.useState","e.useRef","p","e","s","L","a","K","r","o","i"],"sources":["https:/framerusercontent.com/modules/ELcr35bPAEWAE7wTgvXd/c5aPMOud9GZyj9IP8gIP/BaseArrowsLoading.js","https:/ga.jspm.io/npm:react-intersection-observer@9.4.3/react-intersection-observer.modern.mjs","https:/framerusercontent.com/modules/94v7iKtULRYxVN28TmpL/irxbI08jN0gR474SVqb9/BaseArrows.js"],"sourcesContent":["import{jsx as t}from\"react/jsx-runtime\";/**\n * Arrow Dynamics - Base Arrows Loading\n * Responsible for displaying the loading component (loading UI is tried to made identical to the P5 draw but without interactivity)\n *\n * By @rohanchkrabrty & @hckmstrrahul\n *\n * @framerDisableUnlink\n */let e=({imageSrc:e})=>/*#__PURE__*/t(\"img\",{src:e,style:{width:\"100%\",height:\"100%\",objectFit:\"contain\"}}),l={NORMAL:\"normal\",ITALIC:\"italic\",BOLD:\"normal\",BOLDITALIC:\"italic\"},i={NORMAL:\"normal\",ITALIC:\"normal\",BOLD:\"bold\",BOLDITALIC:\"bold\"},n={LEFT:\"flex-start\",CENTER:\"center\",RIGHT:\"flex-end\"},r=({text:e,font:{fontColor:r,fontWeight:o,fontSize:a,textAlign:p,font:d}})=>/*#__PURE__*/t(\"span\",{style:{display:\"flex\",justifyContent:n[p],alignItems:\"center\",color:r,fontSize:`${a}px`,fontFamily:d,fontStyle:l[o],fontWeight:i[o]},children:e});export default function o(l){let{background:i,columns:n=0,rows:o=0,itemSize:a,rowSpacing:p,columnSpacing:d,padding:m,isText:s,imageSrc:c,canvasWidth:f,canvasHeight:x}=l;return /*#__PURE__*/t(\"div\",{style:{width:f,height:x,backgroundColor:i,display:\"grid\",gridTemplateColumns:`repeat(${n}, ${a}px)`,gridTemplateRows:`repeat(${o}, ${a}px)`,padding:`${m}px`,columnGap:`${d}px`,rowGap:`${p}px`},children:[...Array(n*o)].map(()=>s?/*#__PURE__*/t(r,{...l}):/*#__PURE__*/t(e,{...l}))});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BaseArrowsLoading\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BaseArrowsLoading.map","import*as e from\"react\";function _extends(){_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};return _extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var i={};var n=Object.keys(e);var r,o;for(o=0;o<n.length;o++){r=n[o];t.indexOf(r)>=0||(i[r]=e[r])}return i}const t=new Map;const i=new WeakMap;let n=0;let r;function defaultFallbackInView(e){r=e}\n/**\n * Generate a unique ID for the root element\n * @param root\n */function getRootId(e){if(!e)return\"0\";if(i.has(e))return i.get(e);n+=1;i.set(e,n.toString());return i.get(e)}\n/**\n * Convert the options to a string Id, based on the values.\n * Ensures we can reuse the same observer when observing elements with the same options.\n * @param options\n */function optionsToId(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>`${t}_${\"root\"===t?getRootId(e.root):e[t]}`)).toString()}function createObserver(e){let i=optionsToId(e);let n=t.get(i);if(!n){const r=new Map;let o;const s=new IntersectionObserver((t=>{t.forEach((t=>{var i;const n=t.isIntersecting&&o.some((e=>t.intersectionRatio>=e));e.trackVisibility&&\"undefined\"===typeof t.isVisible&&(t.isVisible=n);null==(i=r.get(t.target))?void 0:i.forEach((e=>{e(n,t)}))}))}),e);o=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]);n={id:i,observer:s,elements:r};t.set(i,n)}return n}\n/**\n * @param element - DOM Element to observe\n * @param callback - Callback function to trigger when intersection status changes\n * @param options - Intersection Observer options\n * @param fallbackInView - Fallback inView value.\n * @return Function - Cleanup function that should be triggered to unregister the observer\n */function observe(e,i,n={},o=r){if(\"undefined\"===typeof window.IntersectionObserver&&void 0!==o){const t=e.getBoundingClientRect();i(o,{isIntersecting:o,target:e,intersectionRatio:\"number\"===typeof n.threshold?n.threshold:0,time:0,boundingClientRect:t,intersectionRect:t,rootBounds:t});return()=>{}}const{id:s,observer:l,elements:h}=createObserver(n);let a=h.get(e)||[];h.has(e)||h.set(e,a);a.push(i);l.observe(e);return function unobserve(){a.splice(a.indexOf(i),1);if(0===a.length){h.delete(e);l.unobserve(e)}if(0===h.size){l.disconnect();t.delete(s)}}}const o=[\"children\",\"as\",\"triggerOnce\",\"threshold\",\"root\",\"rootMargin\",\"onChange\",\"skip\",\"trackVisibility\",\"delay\",\"initialInView\",\"fallbackInView\"];function isPlainChildren(e){return\"function\"!==typeof e.children}class InView extends e.Component{constructor(e){super(e);this.node=null;this._unobserveCb=null;this.handleNode=e=>{if(this.node){this.unobserve();e||this.props.triggerOnce||this.props.skip||this.setState({inView:!!this.props.initialInView,entry:void 0})}this.node=e||null;this.observeNode()};this.handleChange=(e,t)=>{e&&this.props.triggerOnce&&this.unobserve();isPlainChildren(this.props)||this.setState({inView:e,entry:t});this.props.onChange&&this.props.onChange(e,t)};this.state={inView:!!e.initialInView,entry:void 0}}componentDidUpdate(e){if(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay){this.unobserve();this.observeNode()}}componentWillUnmount(){this.unobserve();this.node=null}observeNode(){if(!this.node||this.props.skip)return;const{threshold:e,root:t,rootMargin:i,trackVisibility:n,delay:r,fallbackInView:o}=this.props;this._unobserveCb=observe(this.node,this.handleChange,{threshold:e,root:t,rootMargin:i,trackVisibility:n,delay:r},o)}unobserve(){if(this._unobserveCb){this._unobserveCb();this._unobserveCb=null}}render(){if(!isPlainChildren(this.props)){const{inView:e,entry:t}=this.state;return this.props.children({inView:e,entry:t,ref:this.handleNode})}const t=this.props,{children:i,as:n}=t,r=_objectWithoutPropertiesLoose(t,o);return e.createElement(n||\"div\",_extends({ref:this.handleNode},r),i)}}function useInView({threshold:t,delay:i,trackVisibility:n,rootMargin:r,root:o,triggerOnce:s,skip:l,initialInView:h,fallbackInView:a,onChange:c}={}){var d;const[u,p]=e.useState(null);const b=e.useRef();const[f,g]=e.useState({inView:!!h,entry:void 0});b.current=c;e.useEffect((()=>{if(l||!u)return;let e;e=observe(u,((t,i)=>{g({inView:t,entry:i});b.current&&b.current(t,i);if(i.isIntersecting&&s&&e){e();e=void 0}}),{root:o,rootMargin:r,threshold:t,trackVisibility:n,delay:i},a);return()=>{e&&e()}}),[Array.isArray(t)?t.toString():t,u,o,r,s,l,n,a,i]);const v=null==(d=f.entry)?void 0:d.target;const y=e.useRef();if(!u&&v&&!s&&!l&&y.current!==v){y.current=v;g({inView:!!h,entry:void 0})}const V=[p,f.inView,f.entry];V.ref=V[0];V.inView=V[1];V.entry=V[2];return V}export{InView,defaultFallbackInView,observe,useInView};\n\n//# sourceMappingURL=react-intersection-observer.modern.mjs.map","import{jsx as r}from\"react/jsx-runtime\";import{lazy as e,Suspense as o,useState as s}from\"react\";import i from\"https://framerusercontent.com/modules/ELcr35bPAEWAE7wTgvXd/c5aPMOud9GZyj9IP8gIP/BaseArrowsLoading.js\";import{useInView as a}from\"react-intersection-observer\";/**\n * Arrow Dynamics - Base Arrows Container\n * Responsible for lazy loading components and showing the gif, normal and pre rendered versions\n *\n * By @rohanchkrabrty & @hckmstrrahul\n *\n * @framerDisableUnlink\n */let t=/*#__PURE__*/e(()=>import(\"https://framerusercontent.com/modules/PVZa4jcMN0LYvU0ksvHQ/ZxrOnrNj2Vslk02f3IIQ/BaseArrowsNormal.js\")),n=[\"Amplifiers\",\"Convergers\",// \"Entropists\",\n\"Gravitators\",\"Resonators\",\"Polarizers\"],l=[\"Ferromancers\",\"Harmonizers\",\"Vermiformers\",\"Warriors\"];export function BaseArrows(e){let{background:m,columns:c,rows:f,itemSize:u,rowSpacing:d,columnSpacing:p,padding:h,isText:v,isImageDisk:w,imageDisk:x,imageUrl:j,customDraw:A,GridObject:b,isConfined:B,isPlaying:I,isInteracting:V,variant:g,shouldResetCanvas:k=!1}=e,[z,C]=s(!1),[L,M]=s(1e3),{ref:P,inView:y,entry:E}=a({fallbackInView:!0,initialInView:!0,threshold:0}),F=n.includes(g),G=l.includes(g),H=V&&(!B||B&&z),K=!I||!y||F&&!H;return /*#__PURE__*/r(\"div\",{ref:P,...!G&&I&&V&&B?{onMouseEnter:()=>C(!0),onMouseLeave:()=>{C(!1),k&&M(r=>r+1);}}:{},children:/*#__PURE__*/r(o,{fallback:/*#__PURE__*/r(i,{...e}),children:/*#__PURE__*/r(t,{resetCanvasKey:L,...e,shouldPause:K,shouldInteract:H})})});}\nexport const __FramerMetadata__ = {\"exports\":{\"BaseArrows\":{\"type\":\"reactComponent\",\"name\":\"BaseArrows\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"iOAOkiB,SAAwB,EAAE,EAAE,CAAC,GAAG,CAAC,WAAWyB,EAAE,QAAQjB,EAAE,EAAE,KAAKgB,EAAE,EAAE,SAAS,EAAE,WAAWP,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,GAAGJ,EAAE,OAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,gBAAgBY,EAAE,QAAQ,OAAO,oBAAoB,UAAUjB,EAAE,IAAI,EAAE,KAAK,iBAAiB,UAAUgB,EAAE,IAAI,EAAE,KAAK,QAAQ,GAAG,EAAE,IAAI,UAAU,GAAG,EAAE,IAAI,OAAO,GAAGP,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,MAAMT,EAAEgB,EAAE,CAAC,CAAC,QAAuB,EAAf,EAAiBD,EAAyB,EAAvB,CAAC,GAAGV,EAAE,CAA0B,CAAC,C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