function GSBlobinit(t){let n=t,a=n.dataset.id,e=parseInt(n.dataset.numpoints),i=parseInt(n.dataset.minradius),r=parseInt(n.dataset.maxradius),o=parseInt(n.dataset.minduration),s=parseInt(n.dataset.maxduration),u=parseInt(n.dataset.tensionpoints);GScreateBlob({element:n.querySelector("#blobpath-"+a),numPoints:e,centerX:300,centerY:300,minRadius:i,maxRadius:r,minDuration:o,maxDuration:s,tensionPoints:u})}function GScreateBlob(t){for(var n=[],a=t.element,e=2*Math.PI/t.numPoints,i=GSrandom(2*Math.PI),r=gsap.timeline({onUpdate:function(){a.setAttribute("d",GScardinal(n,!0,t.tensionPoints))}}),o=0;o<t.numPoints;o++){var s=i+o*e,u=GSrandom(t.minDuration,t.maxDuration),d={x:t.centerX+Math.cos(s)*t.minRadius,y:t.centerY+Math.sin(s)*t.minRadius},m=gsap.to(d,{duration:u,x:t.centerX+Math.cos(s)*t.maxRadius,y:t.centerY+Math.sin(s)*t.maxRadius,repeat:-1,yoyo:!0,ease:Sine.easeInOut});r.add(m,-GSrandom(u)),n.push(d)}return t.tl=r,t.points=n,t}function GScardinal(t,n,a){if(t.length<1)return"M0 0";null==a&&(a=1);for(var e=t.length-(n?0:1),i="M"+t[0].x+" "+t[0].y+" C",r=0;r<e;r++){var o,s,u,d;n?(o=t[(r-1+e)%e],s=t[r],u=t[(r+1)%e],d=t[(r+2)%e]):(o=0==r?t[0]:t[r-1],s=t[r],u=t[r+1],d=r==e-1?u:t[r+2]),i+=" "+(s.x+(u.x-o.x)/6*a)+" "+(s.y+(u.y-o.y)/6*a)+" "+(u.x-(d.x-s.x)/6*a)+" "+(u.y-(d.y-s.y)/6*a)+" "+u.x+" "+u.y}return n?i+"z":i}function GSrandom(t,n){if(null==n&&(n=t,t=0),t>n){var a=t;t=n,n=a}return t+(n-t)*Math.random()}document.addEventListener("DOMContentLoaded",function(t){let n=document.getElementsByClassName("gspb_blob");if(n.length>0)for(let t=0;t<n.length;t++){GSBlobinit(n[t])}});