SOURCE / PINNED RELEASE
Made of little things.
Discover Rockets
- Release
- 7a3b437df92e…
- Author-recorded commit
- Not provided
- License
- Check the original source
The hash-verified playable HTML, which may contain bundled or minified code. This view does not execute it.
<!doctype html><html lang="en"><head><meta name="description" content="Discover and visualize every Sovereign Economic Community rocket and its multi-root hierarchy."><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Discover Rockets</title> <script type="module" crossorigin>async function _i(o,t,e={},{signal:r,onEvent:i,firstMatch:n}={}){const s=()=>new DOMException("Outbox read cancelled","AbortError");if(r?.aborted)throw s();const a=Array.isArray(t)?t.length===1?t[0]:void 0:t,u=Math.min(e.limit??1/0,a?.limit??1/0),l=new Map,c=o(t,e);let h=!1,d,_;try{return await new Promise((p,f)=>{function m(g){h||(h=!0,f(g))}if(_=()=>m(s()),r?.addEventListener("abort",_),globalThis.window?.addEventListener?.("pagehide",_),r?.aborted)return _();d=setTimeout(()=>{if(h)return;h=!0;const g=[...l.values()].sort((y,b)=>b.event.created_at-y.event.created_at||y.event.id.localeCompare(b.event.id));p({events:g.slice(0,u),incomplete:!0})},e.timeoutMs??8e3),c.on("closed",g=>m(new Error(g||"Outbox subscription closed"))),c.on("event",g=>{if(!h)try{const y=l.get(g.event.id);if(y){const b=new Set([...y.sidecar?.relayHints??[],...g.sidecar?.relayHints??[]]);if(b.size===(y.sidecar?.relayHints?.length??0))return;g={event:y.event,sidecar:{...y.sidecar,...g.sidecar,relayHints:[...b]}}}l.set(g.event.id,g),i?.(g),!h&&n?.(g)&&(h=!0,p({events:[g]}))}catch(y){m(y)}})})}finally{h=!0,clearTimeout(d),_&&(r?.removeEventListener("abort",_),globalThis.window?.removeEventListener?.("pagehide",_)),c.close()}}function Tn(){const o=new Map;function t(i,n){if(o.has(i))throw new Error(`NAP domain "${i}" is already registered`);o.set(i,n)}function e(i){const n=i.type.indexOf(".");if(n<=0)return!1;const s=i.type.slice(0,n),a=o.get(s);return a?(a(i),!0):!1}function r(){return Array.from(o.keys())}return{registerNap:t,dispatch:e,getRegisteredDomains:r}}var kn=Tn(),Sn=kn.registerNap,Pn="theme";function pi(){const o=window;if(!o.napplet?.theme)throw new Error("window.napplet.theme is unavailable -- runtime did not inject this domain");return o.napplet.theme}function On(){return pi().get()}function Cn(o){return pi().onChanged(o)}Sn(Pn,o=>{});function Mn(){const o=window;if(!o.napplet)throw new Error("window.napplet is unavailable -- runtime did not inject the napplet namespace");return o.napplet}function H(o){const e=Mn()[o];if(!e)throw new Error(`window.napplet.${String(o)} is unavailable -- runtime did not inject this domain`);return e}var mi={info(){return H("resource").info()},bytes(o,t){return H("resource").bytes(o,t)},bytesMany(o,t){return H("resource").bytesMany(o,t)},bytesAsObjectURL(o){return H("resource").bytesAsObjectURL(o)}},xr={getEvent(o,t){return H("outbox").getEvent(o,t)},query(o,t){return H("outbox").query(o,t)},subscribe(o,t){return H("outbox").subscribe(o,t)},publish(o,t){return H("outbox").publish(o,t)},resolveRelays(o){return H("outbox").resolveRelays(o)}},Xr={invoke(o){return H("intent").invoke(o)},open(o,t,e){return H("intent").open(o,t,e)},available(o){return H("intent").available(o)},handlers(){return H("intent").handlers()},onChanged(o){return H("intent").onChanged(o)}};function vt(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function gi(o,t){o.prototype=Object.create(t.prototype),o.prototype.constructor=o,o.__proto__=t}/*!
* GSAP 3.15.0
* https://gsap.com
*
* @license Copyright 2008-2026, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license
* @author: Jack Doyle, jack@greensock.com
*/var at={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_e={duration:.5,overwrite:!1,delay:0},Tr,W,A,ht=1e8,M=1/ht,rr=Math.PI*2,Rn=rr/4,An=0,yi=Math.sqrt,En=Math.cos,Dn=Math.sin,X=function(t){return typeof t=="string"},I=function(t){return typeof t=="function"},xt=function(t){return typeof t=="number"},kr=function(t){return typeof t>"u"},gt=function(t){return typeof t=="object"},Q=function(t){return t!==!1},Sr=function(){return typeof window<"u"},Pe=function(t){return I(t)||X(t)},vi=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},G=Array.isArray,Ln=/random\([^)]+\)/g,Fn=/,\s*/g,Wr=/(?:-?\.?\d|\.)+/gi,bi=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,jt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,We=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,wi=/[+-]=-?[.\d]+/,zn=/[^,'"\[\]\s]+/gi,In=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,D,_t,ir,Pr,ut={},Ee={},xi,Ti=function(t){return(Ee=Jt(t,ut))&&et},Or=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},pe=function(t,e){return!e&&console.warn(t)},ki=function(t,e){return t&&(ut[t]=e)&&Ee&&(Ee[t]=e)||ut},me=function(){return 0},$n={suppressEvents:!0,isStart:!0,kill:!1},Me={suppressEvents:!0,kill:!1},Nn={suppressEvents:!0},Cr={},Ot=[],nr={},Si,rt={},je={},jr=30,Re=[],Mr="",Rr=function(t){var e=t[0],r,i;if(gt(e)||I(e)||(t=[t]),!(r=(e._gsap||{}).harness)){for(i=Re.length;i--&&!Re[i].targetTest(e););r=Re[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new ji(t[i],r)))||t.splice(i,1);return t},Ut=function(t){return t._gsap||Rr(dt(t))[0]._gsap},Pi=function(t,e,r){return(r=t[e])&&I(r)?t[e]():kr(r)&&t.getAttribute&&t.getAttribute(e)||r},Z=function(t,e){return(t=t.split(",")).forEach(e)||t},U=function(t){return Math.round(t*1e5)/1e5||0},E=function(t){return Math.round(t*1e7)/1e7||0},Ht=function(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),r==="+"?t+i:r==="-"?t-i:r==="*"?t*i:t/i},Un=function(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r},De=function(){var t=Ot.length,e=Ot.slice(0),r,i;for(nr={},Ot.length=0,r=0;r<t;r++)i=e[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Ar=function(t){return!!(t._initted||t._startAt||t.add)},Oi=function(t,e,r,i){Ot.length&&!W&&De(),t.render(e,r,!!(W&&e<0&&Ar(t))),Ot.length&&!W&&De()},Ci=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(zn).length<2?e:X(t)?t.trim():t},Mi=function(t){return t},lt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Bn=function(t){return function(e,r){for(var i in r)i in e||i==="duration"&&t||i==="ease"||(e[i]=r[i])}},Jt=function(t,e){for(var r in e)t[r]=e[r];return t},Gr=function o(t,e){for(var r in e)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(t[r]=gt(e[r])?o(t[r]||(t[r]={}),e[r]):e[r]);return t},Le=function(t,e){var r={},i;for(i in t)i in e||(r[i]=t[i]);return r},fe=function(t){var e=t.parent||D,r=t.keyframes?Bn(G(t.keyframes)):lt;if(Q(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t},qn=function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0},Ri=function(t,e,r,i,n){var s=t[i],a;if(n)for(a=e[n];s&&s[n]>a;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t,e},qe=function(t,e,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null},Mt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Bt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Vn=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},sr=function(t,e,r,i){return t._startAt&&(W?t._startAt.revert(Me):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},Yn=function o(t){return!t||t._ts&&o(t.parent)},Hr=function(t){return t._repeat?te(t._tTime,t=t.duration()+t._rDelay)*t:0},te=function(t,e){var r=Math.floor(t=E(t/e));return t&&r===t?r-1:r},Fe=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ve=function(t){return t._end=E(t._start+(t._tDur/Math.abs(t._ts||t._rts||M)||0))},Ye=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=E(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ve(t),r._dirty||Bt(r,t)),t},Ai=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Fe(t.rawTime(),e),(!e._dur||Se(0,e.totalDuration(),r)-e._tTime>M)&&e.render(r,!0)),Bt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-M}},pt=function(t,e,r,i){return e.parent&&Mt(e),e._start=E((xt(r)?r:r||t!==D?ft(t,r,e):t._time)+e._delay),e._end=E(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ri(t,e,"_first","_last",t._sort?"_start":0),or(e)||(t._recent=e),i||Ai(t,e),t._ts<0&&Ye(t,t._tTime),t},Ei=function(t,e){return(ut.ScrollTrigger||Or("scrollTrigger",e))&&ut.ScrollTrigger.create(e,t)},Di=function(t,e,r,i,n){if(Dr(t,e,n),!t._initted)return 1;if(!r&&t._pt&&!W&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Si!==it.frame)return Ot.push(t),t._lazy=[n,i],1},Xn=function o(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||o(e))},or=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},Wn=function(t,e,r,i){var n=t.ratio,s=e<0||!e&&(!t._start&&Xn(t)&&!(!t._initted&&or(t))||(t._ts<0||t._dp._ts<0)&&!or(t))?0:1,a=t._rDelay,u=0,l,c,h;if(a&&t._repeat&&(u=Se(0,t._tDur,e),c=te(u,a),t._yoyo&&c&1&&(s=1-s),c!==te(t._tTime,a)&&(n=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),s!==n||W||i||t._zTime===M||!e&&t._zTime){if(!t._initted&&Di(t,e,i,r,u))return;for(h=t._zTime,t._zTime=e||(r?M:0),r||(r=e&&!h),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=u,l=t._pt;l;)l.r(s,l.d),l=l._next;e<0&&sr(t,e,r,!0),t._onUpdate&&!r&&st(t,"onUpdate"),u&&t._repeat&&!r&&t.parent&&st(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(s&&Mt(t,1),!r&&!W&&(st(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},jn=function(t,e,r){var i;if(r>e)for(i=t._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<e)return i;i=i._prev}},ee=function(t,e,r,i){var n=t._repeat,s=E(e)||0,a=t._tTime/t._tDur;return a&&!i&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:E(s*(n+1)+t._rDelay*n):s,a>0&&!i&&Ye(t,t._tTime=t._tDur*a),t.parent&&Ve(t),r||Bt(t.parent,t),t},Kr=function(t){return t instanceof K?Bt(t):ee(t,t._dur)},Gn={_start:0,endTime:me,totalDuration:me},ft=function o(t,e,r){var i=t.labels,n=t._recent||Gn,s=t.duration()>=ht?n.endTime(!1):t._dur,a,u,l;return X(e)&&(isNaN(e)||e in i)?(u=e.charAt(0),l=e.substr(-1)==="%",a=e.indexOf("="),u==="<"||u===">"?(a>=0&&(e=e.replace(/=/,"")),(u==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(a<0?n:r).totalDuration()/100:1)):a<0?(e in i||(i[e]=s),i[e]):(u=parseFloat(e.charAt(a-1)+e.substr(a+1)),l&&r&&(u=u/100*(G(r)?r[0]:r).totalDuration()),a>1?o(t,e.substr(0,a-1),r)+u:s+u)):e==null?s:+e},he=function(t,e,r){var i=xt(e[1]),n=(i?2:1)+(t<2?0:1),s=e[n],a,u;if(i&&(s.duration=e[1]),s.parent=r,t){for(a=s,u=r;u&&!("immediateRender"in a);)a=u.vars.defaults||{},u=Q(u.vars.inherit)&&u.parent;s.immediateRender=Q(a.immediateRender),t<2?s.runBackwards=1:s.startAt=e[n-1]}return new q(e[0],s,e[n+1])},Dt=function(t,e){return t||t===0?e(t):e},Se=function(t,e,r){return r<t?t:r>e?e:r},j=function(t,e){return!X(t)||!(e=In.exec(t))?"":e[1]},Hn=function(t,e,r){return Dt(r,function(i){return Se(t,e,i)})},ar=[].slice,Li=function(t,e){return t&>(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&>(t[0]))&&!t.nodeType&&t!==_t},Kn=function(t,e,r){return r===void 0&&(r=[]),t.forEach(function(i){var n;return X(i)&&!e||Li(i,1)?(n=r).push.apply(n,dt(i)):r.push(i)})||r},dt=function(t,e,r){return A&&!e&&A.selector?A.selector(t):X(t)&&!r&&(ir||!re())?ar.call((e||Pr).querySelectorAll(t),0):G(t)?Kn(t,r):Li(t)?ar.call(t,0):t?[t]:[]},ur=function(t){return t=dt(t)[0]||pe("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return dt(e,r.querySelectorAll?r:r===t?pe("Invalid scope")||Pr.createElement("div"):t)}},Fi=function(t){return t.sort(function(){return .5-Math.random()})},zi=function(t){if(I(t))return t;var e=gt(t)?t:{each:t},r=qt(e.ease),i=e.from||0,n=parseFloat(e.base)||0,s={},a=i>0&&i<1,u=isNaN(i)||a,l=e.axis,c=i,h=i;return X(i)?c=h={center:.5,edges:.5,end:1}[i]||0:!a&&u&&(c=i[0],h=i[1]),function(d,_,p){var f=(p||e).length,m=s[f],g,y,b,w,v,S,x,k,T;if(!m){if(T=e.grid==="auto"?0:(e.grid||[1,ht])[1],!T){for(x=-ht;x<(x=p[T++].getBoundingClientRect().left)&&T<f;);T<f&&T--}for(m=s[f]=[],g=u?Math.min(T,f)*c-.5:i%T,y=T===ht?0:u?f*h/T-.5:i/T|0,x=0,k=ht,S=0;S<f;S++)b=S%T-g,w=y-(S/T|0),m[S]=v=l?Math.abs(l==="y"?w:b):yi(b*b+w*w),v>x&&(x=v),v<k&&(k=v);i==="random"&&Fi(m),m.max=x-k,m.min=k,m.v=f=(parseFloat(e.amount)||parseFloat(e.each)*(T>f?f-1:l?l==="y"?f/T:T:Math.max(T,f/T))||0)*(i==="edges"?-1:1),m.b=f<0?n-f:n,m.u=j(e.amount||e.each)||0,r=r&&f<0?ls(r):r}return f=(m[d]-m.min)/m.max||0,E(m.b+(r?r(f):f)*m.v)+m.u}},lr=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var i=E(Math.round(parseFloat(r)/t)*t*e);return(i-i%1)/e+(xt(r)?0:j(r))}},Ii=function(t,e){var r=G(t),i,n;return!r&>(t)&&(i=r=t.radius||ht,t.values?(t=dt(t.values),(n=!xt(t[0]))&&(i*=i)):t=lr(t.increment)),Dt(e,r?I(t)?function(s){return n=t(s),Math.abs(n-s)<=i?n:s}:function(s){for(var a=parseFloat(n?s.x:s),u=parseFloat(n?s.y:0),l=ht,c=0,h=t.length,d,_;h--;)n?(d=t[h].x-a,_=t[h].y-u,d=d*d+_*_):d=Math.abs(t[h]-a),d<l&&(l=d,c=h);return c=!i||l<=i?t[c]:s,n||c===s||xt(s)?c:c+j(s)}:lr(t))},$i=function(t,e,r,i){return Dt(G(t)?!e:r===!0?!!(r=0):!i,function(){return G(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+r*.99))/r)*r*i)/i})},Qn=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return e.reduce(function(n,s){return s(n)},i)}},Zn=function(t,e){return function(r){return t(parseFloat(r))+(e||j(r))}},Jn=function(t,e,r){return Ui(t,e,0,1,r)},Ni=function(t,e,r){return Dt(r,function(i){return t[~~e(i)]})},ts=function o(t,e,r){var i=e-t;return G(t)?Ni(t,o(0,t.length),e):Dt(r,function(n){return(i+(n-t)%i)%i+t})},es=function o(t,e,r){var i=e-t,n=i*2;return G(t)?Ni(t,o(0,t.length-1),e):Dt(r,function(s){return s=(n+(s-t)%n)%n||0,t+(s>i?n-s:s)})},ge=function(t){return t.replace(Ln,function(e){var r=e.indexOf("[")+1,i=e.substring(r||7,r?e.indexOf("]"):e.length-1).split(Fn);return $i(r?i:+i[0],r?0:+i[1],+i[2]||1e-5)})},Ui=function(t,e,r,i,n){var s=e-t,a=i-r;return Dt(n,function(u){return r+((u-t)/s*a||0)})},rs=function o(t,e,r,i){var n=isNaN(t+e)?0:function(_){return(1-_)*t+_*e};if(!n){var s=X(t),a={},u,l,c,h,d;if(r===!0&&(i=1)&&(r=null),s)t={p:t},e={p:e};else if(G(t)&&!G(e)){for(c=[],h=t.length,d=h-2,l=1;l<h;l++)c.push(o(t[l-1],t[l]));h--,n=function(p){p*=h;var f=Math.min(d,~~p);return c[f](p-f)},r=e}else i||(t=Jt(G(t)?[]:{},t));if(!c){for(u in e)Er.call(a,t,u,"get",e[u]);n=function(p){return zr(p,a)||(s?t.p:t)}}}return Dt(r,n)},Qr=function(t,e,r){var i=t.labels,n=ht,s,a,u;for(s in i)a=i[s]-e,a<0==!!r&&a&&n>(a=Math.abs(a))&&(u=s,n=a);return u},st=function(t,e,r){var i=t.vars,n=i[e],s=A,a=t._ctx,u,l,c;if(n)return u=i[e+"Params"],l=i.callbackScope||t,r&&Ot.length&&De(),a&&(A=a),c=u?n.apply(l,u):n.call(l),A=s,c},le=function(t){return Mt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!W),t.progress()<1&&st(t,"onInterrupt"),t},Gt,Bi=[],qi=function(t){if(t)if(t=!t.name&&t.default||t,Sr()||t.headless){var e=t.name,r=I(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:me,render:zr,add:Er,kill:vs,modifier:ys,rawVars:0},s={targetTest:0,get:0,getSetter:Fr,aliases:{},register:0};if(re(),t!==i){if(rt[e])return;lt(i,lt(Le(t,n),s)),Jt(i.prototype,Jt(n,Le(t,s))),rt[i.prop=e]=i,t.targetTest&&(Re.push(i),Cr[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}ki(e,i),t.register&&t.register(et,i,J)}else Bi.push(t)},C=255,ce={aqua:[0,C,C],lime:[0,C,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,C],navy:[0,0,128],white:[C,C,C],olive:[128,128,0],yellow:[C,C,0],orange:[C,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[C,0,0],pink:[C,192,203],cyan:[0,C,C],transparent:[C,C,C,0]},Ge=function(t,e,r){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(r-e)*t*6:t<.5?r:t*3<2?e+(r-e)*(2/3-t)*6:e)*C+.5|0},Vi=function(t,e,r){var i=t?xt(t)?[t>>16,t>>8&C,t&C]:0:ce.black,n,s,a,u,l,c,h,d,_,p;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ce[t])i=ce[t];else if(t.charAt(0)==="#"){if(t.length<6&&(n=t.charAt(1),s=t.charAt(2),a=t.charAt(3),t="#"+n+n+s+s+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&C,i&C,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&C,t&C]}else if(t.substr(0,3)==="hsl"){if(i=p=t.match(Wr),!e)u=+i[0]%360/360,l=+i[1]/100,c=+i[2]/100,s=c<=.5?c*(l+1):c+l-c*l,n=c*2-s,i.length>3&&(i[3]*=1),i[0]=Ge(u+1/3,n,s),i[1]=Ge(u,n,s),i[2]=Ge(u-1/3,n,s);else if(~t.indexOf("="))return i=t.match(bi),r&&i.length<4&&(i[3]=1),i}else i=t.match(Wr)||ce.transparent;i=i.map(Number)}return e&&!p&&(n=i[0]/C,s=i[1]/C,a=i[2]/C,h=Math.max(n,s,a),d=Math.min(n,s,a),c=(h+d)/2,h===d?u=l=0:(_=h-d,l=c>.5?_/(2-h-d):_/(h+d),u=h===n?(s-a)/_+(s<a?6:0):h===s?(a-n)/_+2:(n-s)/_+4,u*=60),i[0]=~~(u+.5),i[1]=~~(l*100+.5),i[2]=~~(c*100+.5)),r&&i.length<4&&(i[3]=1),i},Yi=function(t){var e=[],r=[],i=-1;return t.split(Ct).forEach(function(n){var s=n.match(jt)||[];e.push.apply(e,s),r.push(i+=s.length+1)}),e.c=r,e},Zr=function(t,e,r){var i="",n=(t+i).match(Ct),s=e?"hsla(":"rgba(",a=0,u,l,c,h;if(!n)return t;if(n=n.map(function(d){return(d=Vi(d,e,1))&&s+(e?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),r&&(c=Yi(t),u=r.c,u.join(i)!==c.c.join(i)))for(l=t.replace(Ct,"1").split(jt),h=l.length-1;a<h;a++)i+=l[a]+(~u.indexOf(a)?n.shift()||s+"0,0,0,0)":(c.length?c:n.length?n:r).shift());if(!l)for(l=t.split(Ct),h=l.length-1;a<h;a++)i+=l[a]+n[a];return i+l[h]},Ct=(function(){var o="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ce)o+="|"+t+"\\b";return new RegExp(o+")","gi")})(),is=/hsl[a]?\(/,Xi=function(t){var e=t.join(" "),r;if(Ct.lastIndex=0,Ct.test(e))return r=is.test(e),t[1]=Zr(t[1],r),t[0]=Zr(t[0],r,Yi(t[1])),!0},ye,it=(function(){var o=Date.now,t=500,e=33,r=o(),i=r,n=1e3/240,s=n,a=[],u,l,c,h,d,_,p=function f(m){var g=o()-i,y=m===!0,b,w,v,S;if((g>t||g<0)&&(r+=g-e),i+=g,v=i-r,b=v-s,(b>0||y)&&(S=++h.frame,d=v-h.time*1e3,h.time=v=v/1e3,s+=b+(b>=n?4:n-b),w=1),y||(u=l(f)),w)for(_=0;_<a.length;_++)a[_](v,d,S,m)};return h={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(m){return d/(1e3/(m||60))},wake:function(){xi&&(!ir&&Sr()&&(_t=ir=window,Pr=_t.document||{},ut.gsap=et,(_t.gsapVersions||(_t.gsapVersions=[])).push(et.version),Ti(Ee||_t.GreenSockGlobals||!_t.gsap&&_t||{}),Bi.forEach(qi)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&h.sleep(),l=c||function(m){return setTimeout(m,s-h.time*1e3+1|0)},ye=1,p(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(u),ye=0,l=me},lagSmoothing:function(m,g){t=m||1/0,e=Math.min(g||33,t)},fps:function(m){n=1e3/(m||240),s=h.time*1e3+n},add:function(m,g,y){var b=g?function(w,v,S,x){m(w,v,S,x),h.remove(b)}:m;return h.remove(m),a[y?"unshift":"push"](b),re(),b},remove:function(m,g){~(g=a.indexOf(m))&&a.splice(g,1)&&_>=g&&_--},_listeners:a},h})(),re=function(){return!ye&&it.wake()},O={},ns=/^[\d.\-M][\d.\-,\s]/,ss=/["']/g,os=function(t){for(var e={},r=t.substr(1,t.length-3).split(":"),i=r[0],n=1,s=r.length,a,u,l;n<s;n++)u=r[n],a=n!==s-1?u.lastIndexOf(","):u.length,l=u.substr(0,a),e[i]=isNaN(l)?l.replace(ss,"").trim():+l,i=u.substr(a+1).trim();return e},as=function(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<r?t.indexOf(")",r+1):r)},us=function(t){var e=(t+"").split("("),r=O[e[0]];return r&&e.length>1&&r.config?r.config.apply(null,~t.indexOf("{")?[os(e[1])]:as(t).split(",").map(Ci)):O._CE&&ns.test(t)?O._CE("",t):r},ls=function(t){return function(e){return 1-t(1-e)}},qt=function(t,e){return t&&(I(t)?t:O[t]||us(t))||e},Yt=function(t,e,r,i){r===void 0&&(r=function(u){return 1-e(1-u)}),i===void 0&&(i=function(u){return u<.5?e(u*2)/2:1-e((1-u)*2)/2});var n={easeIn:e,easeOut:r,easeInOut:i},s;return Z(t,function(a){O[a]=ut[a]=n,O[s=a.toLowerCase()]=r;for(var u in n)O[s+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=O[a+"."+u]=n[u]}),n},Wi=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},He=function o(t,e,r){var i=e>=1?e:1,n=(r||(t?.3:.45))/(e<1?e:1),s=n/rr*(Math.asin(1/i)||0),a=function(c){return c===1?1:i*Math.pow(2,-10*c)*Dn((c-s)*n)+1},u=t==="out"?a:t==="in"?function(l){return 1-a(1-l)}:Wi(a);return n=rr/n,u.config=function(l,c){return o(t,l,c)},u},Ke=function o(t,e){e===void 0&&(e=1.70158);var r=function(s){return s?--s*s*((e+1)*s+e)+1:0},i=t==="out"?r:t==="in"?function(n){return 1-r(1-n)}:Wi(r);return i.config=function(n){return o(t,n)},i};Z("Linear,Quad,Cubic,Quart,Quint,Strong",function(o,t){var e=t<5?t+1:t;Yt(o+",Power"+(e-1),t?function(r){return Math.pow(r,e)}:function(r){return r},function(r){return 1-Math.pow(1-r,e)},function(r){return r<.5?Math.pow(r*2,e)/2:1-Math.pow((1-r)*2,e)/2})});O.Linear.easeNone=O.none=O.Linear.easeIn;Yt("Elastic",He("in"),He("out"),He());(function(o,t){var e=1/t,r=2*e,i=2.5*e,n=function(a){return a<e?o*a*a:a<r?o*Math.pow(a-1.5/t,2)+.75:a<i?o*(a-=2.25/t)*a+.9375:o*Math.pow(a-2.625/t,2)+.984375};Yt("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75);Yt("Expo",function(o){return Math.pow(2,10*(o-1))*o+o*o*o*o*o*o*(1-o)});Yt("Circ",function(o){return-(yi(1-o*o)-1)});Yt("Sine",function(o){return o===1?1:-En(o*Rn)+1});Yt("Back",Ke("in"),Ke("out"),Ke());O.SteppedEase=O.steps=ut.SteppedEase={config:function(t,e){t===void 0&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0,s=1-M;return function(a){return((i*Se(0,s,a)|0)+n)*r}}};_e.ease=O["quad.out"];Z("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(o){return Mr+=o+","+o+"Params,"});var ji=function(t,e){this.id=An++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Pi,this.set=e?e.getSetter:Fr},ve=(function(){function o(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,ee(this,+e.duration,1,1),this.data=e.data,A&&(this._ctx=A,A.data.push(this)),ye||it.wake()}var t=o.prototype;return t.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},t.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},t.totalDuration=function(r){return arguments.length?(this._dirty=0,ee(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(r,i){if(re(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Ye(this,r),!n._dp||n.parent||Ai(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&pt(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===M||!this._initted&&this._dur&&r||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Oi(this,r,i)),this},t.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Hr(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},t.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Hr(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(r,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*n,i):this._repeat?te(this._tTime,n)+1:1},t.timeScale=function(r,i){if(!arguments.length)return this._rts===-M?0:this._rts;if(this._rts===r)return this;var n=this.parent&&this._ts?Fe(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-M?0:this._rts,this.totalTime(Se(-Math.abs(this._delay),this.totalDuration(),n),i!==!1),Ve(this),Vn(this)},t.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(re(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==M&&(this._tTime-=M)))),this):this._ps},t.startTime=function(r){if(arguments.length){this._start=E(r);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&pt(i,this,this._start-this._delay),this}return this._start},t.endTime=function(r){return this._start+(Q(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Fe(i.rawTime(r),this):this._tTime:this._tTime},t.revert=function(r){r===void 0&&(r=Nn);var i=W;return W=r,Ar(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),W=i,this},t.globalTime=function(r){for(var i=this,n=arguments.length?r:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):n},t.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Kr(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,Kr(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},t.seek=function(r,i){return this.totalTime(ft(this,r),Q(i))},t.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,Q(i)),this._dur||(this._zTime=-M),this},t.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},t.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-M:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-M,this},t.isActive=function(){var r=this.parent||this._dp,i=this._start,n;return!!(!r||this._ts&&this._initted&&r.isActive()&&(n=r.rawTime(!0))>=i&&n<this.endTime(!0)-M)},t.eventCallback=function(r,i,n){var s=this.vars;return arguments.length>1?(i?(s[r]=i,n&&(s[r+"Params"]=n),r==="onUpdate"&&(this._onUpdate=i)):delete s[r],this):s[r]},t.then=function(r){var i=this,n=i._prom;return new Promise(function(s){var a=I(r)?r:Mi,u=function(){var c=i.then;i.then=null,n&&n(),I(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=c),s(a),i.then=c};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?u():i._prom=u})},t.kill=function(){le(this)},o})();lt(ve.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-M,_prom:0,_ps:!1,_rts:1});var K=(function(o){gi(t,o);function t(r,i){var n;return r===void 0&&(r={}),n=o.call(this,r)||this,n.labels={},n.smoothChildTiming=!!r.smoothChildTiming,n.autoRemoveChildren=!!r.autoRemoveChildren,n._sort=Q(r.sortChildren),D&&pt(r.parent||D,vt(n),i),r.reversed&&n.reverse(),r.paused&&n.paused(!0),r.scrollTrigger&&Ei(vt(n),r.scrollTrigger),n}var e=t.prototype;return e.to=function(i,n,s){return he(0,arguments,this),this},e.from=function(i,n,s){return he(1,arguments,this),this},e.fromTo=function(i,n,s,a){return he(2,arguments,this),this},e.set=function(i,n,s){return n.duration=0,n.parent=this,fe(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new q(i,n,ft(this,s),1),this},e.call=function(i,n,s){return pt(this,q.delayedCall(0,i,n),s)},e.staggerTo=function(i,n,s,a,u,l,c){return s.duration=n,s.stagger=s.stagger||a,s.onComplete=l,s.onCompleteParams=c,s.parent=this,new q(i,s,ft(this,u)),this},e.staggerFrom=function(i,n,s,a,u,l,c){return s.runBackwards=1,fe(s).immediateRender=Q(s.immediateRender),this.staggerTo(i,n,s,a,u,l,c)},e.staggerFromTo=function(i,n,s,a,u,l,c,h){return a.startAt=s,fe(a).immediateRender=Q(a.immediateRender),this.staggerTo(i,n,a,u,l,c,h)},e.render=function(i,n,s){var a=this._time,u=this._dirty?this.totalDuration():this._tDur,l=this._dur,c=i<=0?0:E(i),h=this._zTime<0!=i<0&&(this._initted||!l),d,_,p,f,m,g,y,b,w,v,S,x;if(this!==D&&c>u&&i>=0&&(c=u),c!==this._tTime||s||h){if(a!==this._time&&l&&(c+=this._time-a,i+=this._time-a),d=c,w=this._start,b=this._ts,g=!b,h&&(l||(a=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(S=this._yoyo,m=l+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(m*100+i,n,s);if(d=E(c%m),c===u?(f=this._repeat,d=l):(v=E(c/m),f=~~v,f&&f===v&&(d=l,f--),d>l&&(d=l)),v=te(this._tTime,m),!a&&this._tTime&&v!==f&&this._tTime-v*m-this._dur<=0&&(v=f),S&&f&1&&(d=l-d,x=1),f!==v&&!this._lock){var k=S&&v&1,T=k===(S&&f&1);if(f<v&&(k=!k),a=k?0:c%l?l:c,this._lock=1,this.render(a||(x?0:E(f*m)),n,!l)._lock=0,this._tTime=c,!n&&this.parent&&st(this,"onRepeat"),this.vars.repeatRefresh&&!x&&(this.invalidate()._lock=1,v=f),a&&a!==this._time||g!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,u=this._tDur,T&&(this._lock=2,a=k?l:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!x&&this.invalidate()),this._lock=0,!this._ts&&!g)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=jn(this,E(a),E(d)),y&&(c-=d-(d=y._start))),this._tTime=c,this._time=d,this._act=!!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&c&&l&&!n&&!v&&(st(this,"onStart"),this._tTime!==c))return this;if(d>=a&&i>=0)for(_=this._first;_;){if(p=_._next,(_._act||d>=_._start)&&_._ts&&y!==_){if(_.parent!==this)return this.render(i,n,s);if(_.render(_._ts>0?(d-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(d-_._start)*_._ts,n,s),d!==this._time||!this._ts&&!g){y=0,p&&(c+=this._zTime=-M);break}}_=p}else{_=this._last;for(var P=i<0?i:d;_;){if(p=_._prev,(_._act||P<=_._end)&&_._ts&&y!==_){if(_.parent!==this)return this.render(i,n,s);if(_.render(_._ts>0?(P-_._start)*_._ts:(_._dirty?_.totalDuration():_._tDur)+(P-_._start)*_._ts,n,s||W&&Ar(_)),d!==this._time||!this._ts&&!g){y=0,p&&(c+=this._zTime=P?-M:M);break}}_=p}}if(y&&!n&&(this.pause(),y.render(d>=a?0:-M)._zTime=d>=a?1:-1,this._ts))return this._start=w,Ve(this),this.render(i,n,s);this._onUpdate&&!n&&st(this,"onUpdate",!0),(c===u&&this._tTime>=this.totalDuration()||!c&&a)&&(w===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((i||!l)&&(c===u&&this._ts>0||!c&&this._ts<0)&&Mt(this,1),!n&&!(i<0&&!a)&&(c||a||!u)&&(st(this,c===u&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<u&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(i,n){var s=this;if(xt(n)||(n=ft(this,n,i)),!(i instanceof ve)){if(G(i))return i.forEach(function(a){return s.add(a,n)}),this;if(X(i))return this.addLabel(i,n);if(I(i))i=q.delayedCall(0,i);else return this}return this!==i?pt(this,i,n):this},e.getChildren=function(i,n,s,a){i===void 0&&(i=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),a===void 0&&(a=-ht);for(var u=[],l=this._first;l;)l._start>=a&&(l instanceof q?n&&u.push(l):(s&&u.push(l),i&&u.push.apply(u,l.getChildren(!0,n,s)))),l=l._next;return u},e.getById=function(i){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===i)return n[s]},e.remove=function(i){return X(i)?this.removeLabel(i):I(i)?this.killTweensOf(i):(i.parent===this&&qe(this,i),i===this._recent&&(this._recent=this._last),Bt(this))},e.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=E(it.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),o.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},e.addLabel=function(i,n){return this.labels[i]=ft(this,n),this},e.removeLabel=function(i){return delete this.labels[i],this},e.addPause=function(i,n,s){var a=q.delayedCall(0,n||me,s);return a.data="isPause",this._hasPause=1,pt(this,a,ft(this,i))},e.removePause=function(i){var n=this._first;for(i=ft(this,i);n;)n._start===i&&n.data==="isPause"&&Mt(n),n=n._next},e.killTweensOf=function(i,n,s){for(var a=this.getTweensOf(i,s),u=a.length;u--;)kt!==a[u]&&a[u].kill(i,n);return this},e.getTweensOf=function(i,n){for(var s=[],a=dt(i),u=this._first,l=xt(n),c;u;)u instanceof q?Un(u._targets,a)&&(l?(!kt||u._initted&&u._ts)&&u.globalTime(0)<=n&&u.globalTime(u.totalDuration())>n:!n||u.isActive())&&s.push(u):(c=u.getTweensOf(a,n)).length&&s.push.apply(s,c),u=u._next;return s},e.tweenTo=function(i,n){n=n||{};var s=this,a=ft(s,i),u=n,l=u.startAt,c=u.onStart,h=u.onStartParams,d=u.immediateRender,_,p=q.to(s,lt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:n.duration||Math.abs((a-(l&&"time"in l?l.time:s._time))/s.timeScale())||M,onStart:function(){if(s.pause(),!_){var m=n.duration||Math.abs((a-(l&&"time"in l?l.time:s._time))/s.timeScale());p._dur!==m&&ee(p,m,0,1).render(p._time,!0,!0),_=1}c&&c.apply(p,h||[])}},n));return d?p.render(0):p},e.tweenFromTo=function(i,n,s){return this.tweenTo(n,lt({startAt:{time:ft(this,i)}},s))},e.recent=function(){return this._recent},e.nextLabel=function(i){return i===void 0&&(i=this._time),Qr(this,ft(this,i))},e.previousLabel=function(i){return i===void 0&&(i=this._time),Qr(this,ft(this,i),1)},e.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+M)},e.shiftChildren=function(i,n,s){s===void 0&&(s=0);var a=this._first,u=this.labels,l;for(i=E(i);a;)a._start>=s&&(a._start+=i,a._end+=i),a=a._next;if(n)for(l in u)u[l]>=s&&(u[l]+=i);return Bt(this)},e.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return o.prototype.invalidate.call(this,i)},e.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Bt(this)},e.totalDuration=function(i){var n=0,s=this,a=s._last,u=ht,l,c,h;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(h=s.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),c=a._start,c>u&&s._sort&&a._ts&&!s._lock?(s._lock=1,pt(s,a,c-a._delay,1)._lock=0):u=c,c<0&&a._ts&&(n-=c,(!h&&!s._dp||h&&h.smoothChildTiming)&&(s._start+=E(c/s._ts),s._time-=c,s._tTime-=c),s.shiftChildren(-c,!1,-1/0),u=0),a._end>n&&a._ts&&(n=a._end),a=l;ee(s,s===D&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(i){if(D._ts&&(Oi(D,Fe(i,D)),Si=it.frame),it.frame>=jr){jr+=at.autoSleep||120;var n=D._first;if((!n||!n._ts)&&at.autoSleep&&it._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||it.sleep()}}},t})(ve);lt(K.prototype,{_lock:0,_hasPause:0,_forcing:0});var cs=function(t,e,r,i,n,s,a){var u=new J(this._pt,t,e,0,1,Ji,null,n),l=0,c=0,h,d,_,p,f,m,g,y;for(u.b=r,u.e=i,r+="",i+="",(g=~i.indexOf("random("))&&(i=ge(i)),s&&(y=[r,i],s(y,t,e),r=y[0],i=y[1]),d=r.match(We)||[];h=We.exec(i);)p=h[0],f=i.substring(l,h.index),_?_=(_+1)%5:f.substr(-5)==="rgba("&&(_=1),p!==d[c++]&&(m=parseFloat(d[c-1])||0,u._pt={_next:u._pt,p:f||c===1?f:",",s:m,c:p.charAt(1)==="="?Ht(m,p)-m:parseFloat(p)-m,m:_&&_<4?Math.round:0},l=We.lastIndex);return u.c=l<i.length?i.substring(l,i.length):"",u.fp=a,(wi.test(i)||g)&&(u.e=0),this._pt=u,u},Er=function(t,e,r,i,n,s,a,u,l,c){I(i)&&(i=i(n||0,t,s));var h=t[e],d=r!=="get"?r:I(h)?l?t[e.indexOf("set")||!I(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,_=I(h)?l?ps:Qi:Lr,p;if(X(i)&&(~i.indexOf("random(")&&(i=ge(i)),i.charAt(1)==="="&&(p=Ht(d,i)+(j(d)||0),(p||p===0)&&(i=p))),!c||d!==i||cr)return!isNaN(d*i)&&i!==""?(p=new J(this._pt,t,e,+d||0,i-(d||0),typeof h=="boolean"?gs:Zi,0,_),l&&(p.fp=l),a&&p.modifier(a,this,t),this._pt=p):(!h&&!(e in t)&&Or(e,i),cs.call(this,t,e,d,i,_,u||at.stringFilter,l))},fs=function(t,e,r,i,n){if(I(t)&&(t=de(t,n,e,r,i)),!gt(t)||t.style&&t.nodeType||G(t)||vi(t))return X(t)?de(t,n,e,r,i):t;var s={},a;for(a in t)s[a]=de(t[a],n,e,r,i);return s},Gi=function(t,e,r,i,n,s){var a,u,l,c;if(rt[t]&&(a=new rt[t]).init(n,a.rawVars?e[t]:fs(e[t],i,n,s,r),r,i,s)!==!1&&(r._pt=u=new J(r._pt,n,t,0,1,a.render,a,0,a.priority),r!==Gt))for(l=r._ptLookup[r._targets.indexOf(n)],c=a._props.length;c--;)l[a._props[c]]=u;return a},kt,cr,Dr=function o(t,e,r){var i=t.vars,n=i.ease,s=i.startAt,a=i.immediateRender,u=i.lazy,l=i.onUpdate,c=i.runBackwards,h=i.yoyoEase,d=i.keyframes,_=i.autoRevert,p=t._dur,f=t._startAt,m=t._targets,g=t.parent,y=g&&g.data==="nested"?g.vars.targets:m,b=t._overwrite==="auto"&&!Tr,w=t.timeline,v=i.easeReverse||h,S,x,k,T,P,$,F,R,z,Y,V,N,ct;if(w&&(!d||!n)&&(n="none"),t._ease=qt(n,_e.ease),t._rEase=v&&(qt(v)||t._ease),t._from=!w&&!!i.runBackwards,t._from&&(t.ratio=1),!w||d&&!i.stagger){if(R=m[0]?Ut(m[0]).harness:0,N=R&&i[R.prop],S=Le(i,Cr),f&&(f._zTime<0&&f.progress(1),e<0&&c&&a&&!_?f.render(-1,!0):f.revert(c&&p?Me:$n),f._lazy=0),s){if(Mt(t._startAt=q.set(m,lt({data:"isStart",overwrite:!1,parent:g,immediateRender:!0,lazy:!f&&Q(u),startAt:null,delay:0,onUpdate:l&&function(){return st(t,"onUpdate")},stagger:0},s))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(W||!a&&!_)&&t._startAt.revert(Me),a&&p&&e<=0&&r<=0){e&&(t._zTime=e);return}}else if(c&&p&&!f){if(e&&(a=!1),k=lt({overwrite:!1,data:"isFromStart",lazy:a&&!f&&Q(u),immediateRender:a,stagger:0,parent:g},S),N&&(k[R.prop]=N),Mt(t._startAt=q.set(m,k)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(W?t._startAt.revert(Me):t._startAt.render(-1,!0)),t._zTime=e,!a)o(t._startAt,M,M);else if(!e)return}for(t._pt=t._ptCache=0,u=p&&Q(u)||u&&!p,x=0;x<m.length;x++){if(P=m[x],F=P._gsap||Rr(m)[x]._gsap,t._ptLookup[x]=Y={},nr[F.id]&&Ot.length&&De(),V=y===m?x:y.indexOf(P),R&&(z=new R).init(P,N||S,t,V,y)!==!1&&(t._pt=T=new J(t._pt,P,z.name,0,1,z.render,z,0,z.priority),z._props.forEach(function(Xt){Y[Xt]=T}),z.priority&&($=1)),!R||N)for(k in S)rt[k]&&(z=Gi(k,S,t,V,P,y))?z.priority&&($=1):Y[k]=T=Er.call(t,P,k,"get",S[k],V,y,0,i.stringFilter);t._op&&t._op[x]&&t.kill(P,t._op[x]),b&&t._pt&&(kt=t,D.killTweensOf(P,Y,t.globalTime(e)),ct=!t.parent,kt=0),t._pt&&u&&(nr[F.id]=1)}$&&tn(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!ct,d&&e<=0&&w.render(ht,!0,!0)},hs=function(t,e,r,i,n,s,a,u){var l=(t._pt&&t._ptCache||(t._ptCache={}))[e],c,h,d,_;if(!l)for(l=t._ptCache[e]=[],d=t._ptLookup,_=t._targets.length;_--;){if(c=d[_][e],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==e&&c.fp!==e;)c=c._next;if(!c)return cr=1,t.vars[e]="+=0",Dr(t,a),cr=0,u?pe(e+" not eligible for reset. Try splitting into individual properties"):1;l.push(c)}for(_=l.length;_--;)h=l[_],c=h._pt||h,c.s=(i||i===0)&&!n?i:c.s+(i||0)+s*c.c,c.c=r-c.s,h.e&&(h.e=U(r)+j(h.e)),h.b&&(h.b=c.s+j(h.b))},ds=function(t,e){var r=t[0]?Ut(t[0]).harness:0,i=r&&r.aliases,n,s,a,u;if(!i)return e;n=Jt({},e);for(s in i)if(s in n)for(u=i[s].split(","),a=u.length;a--;)n[u[a]]=n[s];return n},_s=function(t,e,r,i){var n=e.ease||i||"power1.inOut",s,a;if(G(e))a=r[t]||(r[t]=[]),e.forEach(function(u,l){return a.push({t:l/(e.length-1)*100,v:u,e:n})});else for(s in e)a=r[s]||(r[s]=[]),s==="ease"||a.push({t:parseFloat(t),v:e[s],e:n})},de=function(t,e,r,i,n){return I(t)?t.call(e,r,i,n):X(t)&&~t.indexOf("random(")?ge(t):t},Hi=Mr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",Ki={};Z(Hi+",id,stagger,delay,duration,paused,scrollTrigger",function(o){return Ki[o]=1});var q=(function(o){gi(t,o);function t(r,i,n,s){var a;typeof i=="number"&&(n.duration=i,i=n,n=null),a=o.call(this,s?i:fe(i))||this;var u=a.vars,l=u.duration,c=u.delay,h=u.immediateRender,d=u.stagger,_=u.overwrite,p=u.keyframes,f=u.defaults,m=u.scrollTrigger,g=i.parent||D,y=(G(r)||vi(r)?xt(r[0]):"length"in i)?[r]:dt(r),b,w,v,S,x,k,T,P;if(a._targets=y.length?Rr(y):pe("GSAP target "+r+" not found. https://gsap.com",!at.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=_,p||d||Pe(l)||Pe(c)){i=a.vars;var $=i.easeReverse||i.yoyoEase;if(b=a.timeline=new K({data:"nested",defaults:f||{},targets:g&&g.data==="nested"?g.vars.targets:y}),b.kill(),b.parent=b._dp=vt(a),b._start=0,d||Pe(l)||Pe(c)){if(S=y.length,T=d&&zi(d),gt(d))for(x in d)~Hi.indexOf(x)&&(P||(P={}),P[x]=d[x]);for(w=0;w<S;w++)v=Le(i,Ki),v.stagger=0,$&&(v.easeReverse=$),P&&Jt(v,P),k=y[w],v.duration=+de(l,vt(a),w,k,y),v.delay=(+de(c,vt(a),w,k,y)||0)-a._delay,!d&&S===1&&v.delay&&(a._delay=c=v.delay,a._start+=c,v.delay=0),b.to(k,v,T?T(w,k,y):0),b._ease=O.none;b.duration()?l=c=0:a.timeline=0}else if(p){fe(lt(b.vars.defaults,{ease:"none"})),b._ease=qt(p.ease||i.ease||"none");var F=0,R,z,Y;if(G(p))p.forEach(function(V){return b.to(y,V,">")}),b.duration();else{v={};for(x in p)x==="ease"||x==="easeEach"||_s(x,p[x],v,p.easeEach);for(x in v)for(R=v[x].sort(function(V,N){return V.t-N.t}),F=0,w=0;w<R.length;w++)z=R[w],Y={ease:z.e,duration:(z.t-(w?R[w-1].t:0))/100*l},Y[x]=z.v,b.to(y,Y,F),F+=Y.duration;b.duration()<l&&b.to({},{duration:l-b.duration()})}}l||a.duration(l=b.duration())}else a.timeline=0;return _===!0&&!Tr&&(kt=vt(a),D.killTweensOf(y),kt=0),pt(g,vt(a),n),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(h||!l&&!p&&a._start===E(g._time)&&Q(h)&&Yn(vt(a))&&g.data!=="nested")&&(a._tTime=-M,a.render(Math.max(0,-c)||0)),m&&Ei(vt(a),m),a}var e=t.prototype;return e.render=function(i,n,s){var a=this._time,u=this._tDur,l=this._dur,c=i<0,h=i>u-M&&!c?u:i<M?0:i,d,_,p,f,m,g,y,b;if(!l)Wn(this,i,n,s);else if(h!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(d=h,b=this.timeline,this._repeat){if(f=l+this._rDelay,this._repeat<-1&&c)return this.totalTime(f*100+i,n,s);if(d=E(h%f),h===u?(p=this._repeat,d=l):(m=E(h/f),p=~~m,p&&p===m?(d=l,p--):d>l&&(d=l)),g=this._yoyo&&p&1,g&&(d=l-d),m=te(this._tTime,f),d===a&&!s&&this._initted&&p===m)return this._tTime=h,this;p!==m&&this.vars.repeatRefresh&&!g&&!this._lock&&d!==f&&this._initted&&(this._lock=s=1,this.render(E(f*p),!0).invalidate()._lock=0)}if(!this._initted){if(Di(this,c?i:d,s,n,h))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&p!==m))return this;if(l!==this._dur)return this.render(i,n,s)}if(this._rEase){var w=d<a;if(w!==this._inv){var v=w?a:l-a;this._inv=w,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=a,this._invRecip=v?(w?-1:1)/v:0,this._invScale=w?-this.ratio:1-this.ratio,this._invEase=w?this._rEase:this._ease}this.ratio=y=this._invRatio+this._invScale*this._invEase((d-this._invTime)*this._invRecip)}else this.ratio=y=this._ease(d/l);if(this._from&&(this.ratio=y=1-y),this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),!a&&h&&!n&&!m&&(st(this,"onStart"),this._tTime!==h))return this;for(_=this._pt;_;)_.r(y,_.d),_=_._next;b&&b.render(i<0?i:b._dur*b._ease(d/this._dur),n,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(c&&sr(this,i,n,s),st(this,"onUpdate")),this._repeat&&p!==m&&this.vars.onRepeat&&!n&&this.parent&&st(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(c&&!this._onUpdate&&sr(this,i,!0,!0),(i||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Mt(this,1),!n&&!(c&&!a)&&(h||a||g)&&(st(this,h===u?"onComplete":"onReverseComplete",!0),this._prom&&!(h<u&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),o.prototype.invalidate.call(this,i)},e.resetTo=function(i,n,s,a,u){ye||it.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Dr(this,l),c=this._ease(l/this._dur),hs(this,i,n,s,a,c,l,u)?this.resetTo(i,n,s,a,1):(Ye(this,0),this.parent||Ri(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?le(this):this.scrollTrigger&&this.scrollTrigger.kill(!!W),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,kt&&kt.vars.overwrite!==!0)._first||le(this),this.parent&&s!==this.timeline.totalDuration()&&ee(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,u=i?dt(i):a,l=this._ptLookup,c=this._pt,h,d,_,p,f,m,g;if((!n||n==="all")&&qn(a,u))return n==="all"&&(this._pt=0),le(this);for(h=this._op=this._op||[],n!=="all"&&(X(n)&&(f={},Z(n,function(y){return f[y]=1}),n=f),n=ds(a,n)),g=a.length;g--;)if(~u.indexOf(a[g])){d=l[g],n==="all"?(h[g]=n,p=d,_={}):(_=h[g]=h[g]||{},p=n);for(f in p)m=d&&d[f],m&&((!("kill"in m.d)||m.d.kill(f)===!0)&&qe(this,m,"_pt"),delete d[f]),_!=="all"&&(_[f]=1)}return this._initted&&!this._pt&&c&&le(this),this},t.to=function(i,n){return new t(i,n,arguments[2])},t.from=function(i,n){return he(1,arguments)},t.delayedCall=function(i,n,s,a){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},t.fromTo=function(i,n,s){return he(2,arguments)},t.set=function(i,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(i,n)},t.killTweensOf=function(i,n,s){return D.killTweensOf(i,n,s)},t})(ve);lt(q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Z("staggerTo,staggerFrom,staggerFromTo",function(o){q[o]=function(){var t=new K,e=ar.call(arguments,0);return e.splice(o==="staggerFromTo"?5:4,0,0),t[o].apply(t,e)}});var Lr=function(t,e,r){return t[e]=r},Qi=function(t,e,r){return t[e](r)},ps=function(t,e,r,i){return t[e](i.fp,r)},ms=function(t,e,r){return t.setAttribute(e,r)},Fr=function(t,e){return I(t[e])?Qi:kr(t[e])&&t.setAttribute?ms:Lr},Zi=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},gs=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Ji=function(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(t===1&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round((r.s+r.c*t)*1e4)/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},zr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},ys=function(t,e,r,i){for(var n=this._pt,s;n;)s=n._next,n.p===i&&n.modifier(t,e,r),n=s},vs=function(t){for(var e=this._pt,r,i;e;)i=e._next,e.p===t&&!e.op||e.op===t?qe(this,e,"_pt"):e.dep||(r=1),e=i;return!r},bs=function(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)},tn=function(t){for(var e=t._pt,r,i,n,s;e;){for(r=e._next,i=n;i&&i.pr>e.pr;)i=i._next;(e._prev=i?i._prev:s)?e._prev._next=e:n=e,(e._next=i)?i._prev=e:s=e,e=r}t._pt=n},J=(function(){function o(e,r,i,n,s,a,u,l,c){this.t=r,this.s=n,this.c=s,this.p=i,this.r=a||Zi,this.d=u||this,this.set=l||Lr,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=o.prototype;return t.modifier=function(r,i,n){this.mSet=this.mSet||this.set,this.set=bs,this.m=r,this.mt=n,this.tween=i},o})();Z(Mr+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(o){return Cr[o]=1});ut.TweenMax=ut.TweenLite=q;ut.TimelineLite=ut.TimelineMax=K;D=new K({sortChildren:!1,defaults:_e,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});at.stringFilter=Xi;var Vt=[],Ae={},ws=[],Jr=0,xs=0,Qe=function(t){return(Ae[t]||ws).map(function(e){return e()})},fr=function(){var t=Date.now(),e=[];t-Jr>2&&(Qe("matchMediaInit"),Vt.forEach(function(r){var i=r.queries,n=r.conditions,s,a,u,l;for(a in i)s=_t.matchMedia(i[a]).matches,s&&(u=1),s!==n[a]&&(n[a]=s,l=1);l&&(r.revert(),u&&e.push(r))}),Qe("matchMediaRevert"),e.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Jr=t,Qe("matchMedia"))},en=(function(){function o(e,r){this.selector=r&&ur(r),this.data=[],this._r=[],this.isReverted=!1,this.id=xs++,e&&this.add(e)}var t=o.prototype;return t.add=function(r,i,n){I(r)&&(n=i,i=r,r=I);var s=this,a=function(){var l=A,c=s.selector,h;return l&&l!==s&&l.data.push(s),n&&(s.selector=ur(n)),A=s,h=i.apply(s,arguments),I(h)&&s._r.push(h),A=l,s.selector=c,s.isReverted=!1,h};return s.last=a,r===I?a(s,function(u){return s.add(null,u)}):r?s[r]=a:a},t.ignore=function(r){var i=A;A=null,r(this),A=i},t.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof o?r.push.apply(r,i.getTweens()):i instanceof q&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(r,i){var n=this;if(r?(function(){for(var a=n.getTweens(),u=n.data.length,l;u--;)l=n.data[u],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(c){return a.splice(a.indexOf(c),1)}));for(a.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,h){return h.g-c.g||-1/0}).forEach(function(c){return c.t.revert(r)}),u=n.data.length;u--;)l=n.data[u],l instanceof K?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof q)&&l.revert&&l.revert(r);n._r.forEach(function(c){return c(r,n)}),n.isReverted=!0})():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var s=Vt.length;s--;)Vt[s].id===this.id&&Vt.splice(s,1)},t.revert=function(r){this.kill(r||{})},o})(),Ts=(function(){function o(e){this.contexts=[],this.scope=e,A&&A.data.push(this)}var t=o.prototype;return t.add=function(r,i,n){gt(r)||(r={matches:r});var s=new en(0,n||this.scope),a=s.conditions={},u,l,c;A&&!s.selector&&(s.selector=A.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=r;for(l in r)l==="all"?c=1:(u=_t.matchMedia(r[l]),u&&(Vt.indexOf(s)<0&&Vt.push(s),(a[l]=u.matches)&&(c=1),u.addListener?u.addListener(fr):u.addEventListener("change",fr)));return c&&i(s,function(h){return s.add(null,h)}),this},t.revert=function(r){this.kill(r||{})},t.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},o})(),ze={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(i){return qi(i)})},timeline:function(t){return new K(t)},getTweensOf:function(t,e){return D.getTweensOf(t,e)},getProperty:function(t,e,r,i){X(t)&&(t=dt(t)[0]);var n=Ut(t||{}).get,s=r?Mi:Ci;return r==="native"&&(r=""),t&&(e?s((rt[e]&&rt[e].get||n)(t,e,r,i)):function(a,u,l){return s((rt[a]&&rt[a].get||n)(t,a,u,l))})},quickSetter:function(t,e,r){if(t=dt(t),t.length>1){var i=t.map(function(c){return et.quickSetter(c,e,r)}),n=i.length;return function(c){for(var h=n;h--;)i[h](c)}}t=t[0]||{};var s=rt[e],a=Ut(t),u=a.harness&&(a.harness.aliases||{})[e]||e,l=s?function(c){var h=new s;Gt._pt=0,h.init(t,r?c+r:c,Gt,0,[t]),h.render(1,h),Gt._pt&&zr(1,Gt)}:a.set(t,u);return s?l:function(c){return l(t,u,r?c+r:c,a,1)}},quickTo:function(t,e,r){var i,n=et.to(t,lt((i={},i[e]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),s=function(u,l,c){return n.resetTo(e,u,l,c)};return s.tween=n,s},isTweening:function(t){return D.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=qt(t.ease,_e.ease)),Gr(_e,t||{})},config:function(t){return Gr(at,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,i=t.plugins,n=t.defaults,s=t.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!rt[a]&&!ut[a]&&pe(e+" effect requires "+a+" plugin.")}),je[e]=function(a,u,l){return r(dt(a),lt(u||{},n),l)},s&&(K.prototype[e]=function(a,u,l){return this.add(je[e](a,gt(u)?u:(l=u)&&{},this),l)})},registerEase:function(t,e){O[t]=qt(e)},parseEase:function(t,e){return arguments.length?qt(t,e):O},getById:function(t){return D.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var r=new K(t),i,n;for(r.smoothChildTiming=Q(t.smoothChildTiming),D.remove(r),r._dp=0,r._time=r._tTime=D._time,i=D._first;i;)n=i._next,(e||!(!i._dur&&i instanceof q&&i.vars.onComplete===i._targets[0]))&&pt(r,i,i._start-i._delay),i=n;return pt(D,r,0),r},context:function(t,e){return t?new en(t,e):A},matchMedia:function(t){return new Ts(t)},matchMediaRefresh:function(){return Vt.forEach(function(t){var e=t.conditions,r,i;for(i in e)e[i]&&(e[i]=!1,r=1);r&&t.revert()})||fr()},addEventListener:function(t,e){var r=Ae[t]||(Ae[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=Ae[t],i=r&&r.indexOf(e);i>=0&&r.splice(i,1)},utils:{wrap:ts,wrapYoyo:es,distribute:zi,random:$i,snap:Ii,normalize:Jn,getUnit:j,clamp:Hn,splitColor:Vi,toArray:dt,selector:ur,mapRange:Ui,pipe:Qn,unitize:Zn,interpolate:rs,shuffle:Fi},install:Ti,effects:je,ticker:it,updateRoot:K.updateRoot,plugins:rt,globalTimeline:D,core:{PropTween:J,globals:ki,Tween:q,Timeline:K,Animation:ve,getCache:Ut,_removeLinkedListItem:qe,reverting:function(){return W},context:function(t){return t&&A&&(A.data.push(t),t._ctx=A),A},suppressOverwrites:function(t){return Tr=t}}};Z("to,from,fromTo,delayedCall,set,killTweensOf",function(o){return ze[o]=q[o]});it.add(K.updateRoot);Gt=ze.to({},{duration:0});var ks=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Ss=function(t,e){var r=t._targets,i,n,s;for(i in e)for(n=r.length;n--;)s=t._ptLookup[n][i],s&&(s=s.d)&&(s._pt&&(s=ks(s,i)),s&&s.modifier&&s.modifier(e[i],t,r[n],i))},Ze=function(t,e){return{name:t,headless:1,rawVars:1,init:function(i,n,s){s._onInit=function(a){var u,l;if(X(n)&&(u={},Z(n,function(c){return u[c]=1}),n=u),e){u={};for(l in n)u[l]=e(n[l]);n=u}Ss(a,n)}}}},et=ze.registerPlugin({name:"attr",init:function(t,e,r,i,n){var s,a,u;this.tween=r;for(s in e)u=t.getAttribute(s)||"",a=this.add(t,"setAttribute",(u||0)+"",e[s],i,n,0,0,s),a.op=s,a.b=u,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)W?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Ze("roundProps",lr),Ze("modifiers"),Ze("snap",Ii))||ze;q.version=K.version=et.version="3.15.0";xi=1;Sr()&&re();O.Power0;O.Power1;O.Power2;O.Power3;O.Power4;O.Linear;O.Quad;O.Cubic;O.Quart;O.Quint;O.Strong;O.Elastic;O.Back;O.SteppedEase;O.Bounce;O.Sine;O.Expo;O.Circ;/*!
* CSSPlugin 3.15.0
* https://gsap.com
*
* Copyright 2008-2026, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license
* @author: Jack Doyle, jack@greensock.com
*/var ti,St,Kt,Ir,Nt,ei,$r,Ps=function(){return typeof window<"u"},Tt={},$t=180/Math.PI,Qt=Math.PI/180,Wt=Math.atan2,ri=1e8,Nr=/([A-Z])/g,Os=/(left|right|width|margin|padding|x)/i,Cs=/[\s,\(]\S/,mt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},hr=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Ms=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Rs=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},As=function(t,e){return e.set(e.t,e.p,t===1?e.e:t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Es=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},rn=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},nn=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Ds=function(t,e,r){return t.style[e]=r},Ls=function(t,e,r){return t.style.setProperty(e,r)},Fs=function(t,e,r){return t._gsap[e]=r},zs=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},Is=function(t,e,r,i,n){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(n,s)},$s=function(t,e,r,i,n){var s=t._gsap;s[e]=r,s.renderTransform(n,s)},L="transform",tt=L+"Origin",Ns=function o(t,e){var r=this,i=this.target,n=i.style,s=i._gsap;if(t in Tt&&n){if(this.tfm=this.tfm||{},t!=="transform")t=mt[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return r.tfm[a]=bt(i,a)}):this.tfm[t]=s.x?s[t]:bt(i,t),t===tt&&(this.tfm.zOrigin=s.zOrigin);else return mt.transform.split(",").forEach(function(a){return o.call(r,a,e)});if(this.props.indexOf(L)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(tt,e,"")),t=L}(n||e)&&this.props.push(t,e,n[t])},sn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Us=function(){var t=this.props,e=this.target,r=e.style,i=e._gsap,n,s;for(n=0;n<t.length;n+=3)t[n+1]?t[n+1]===2?e[t[n]](t[n+2]):e[t[n]]=t[n+2]:t[n+2]?r[t[n]]=t[n+2]:r.removeProperty(t[n].substr(0,2)==="--"?t[n]:t[n].replace(Nr,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),n=$r(),(!n||!n.isStart)&&!r[L]&&(sn(r),i.zOrigin&&r[tt]&&(r[tt]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},on=function(t,e){var r={target:t,props:[],revert:Us,save:Ns};return t._gsap||et.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(i){return r.save(i)}),r},an,dr=function(t,e){var r=St.createElementNS?St.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):St.createElement(t);return r&&r.style?r:St.createElement(t)},ot=function o(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Nr,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&o(t,ie(e)||e,1)||""},ii="O,Moz,ms,Ms,Webkit".split(","),ie=function(t,e,r){var i=e||Nt,n=i.style,s=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(ii[s]+t in n););return s<0?null:(s===3?"ms":s>=0?ii[s]:"")+t},_r=function(){Ps()&&window.document&&(ti=window,St=ti.document,Kt=St.documentElement,Nt=dr("div")||{style:{}},dr("div"),L=ie(L),tt=L+"Origin",Nt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",an=!!ie("perspective"),$r=et.core.reverting,Ir=1)},ni=function(t){var e=t.ownerSVGElement,r=dr("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),n;i.style.display="block",r.appendChild(i),Kt.appendChild(r);try{n=i.getBBox()}catch{}return r.removeChild(i),Kt.removeChild(r),n},si=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},un=function(t){var e,r;try{e=t.getBBox()}catch{e=ni(t),r=1}return e&&(e.width||e.height)||r||(e=ni(t)),e&&!e.width&&!e.x&&!e.y?{x:+si(t,["x","cx","x1"])||0,y:+si(t,["y","cy","y1"])||0,width:0,height:0}:e},ln=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&un(t))},Rt=function(t,e){if(e){var r=t.style,i;e in Tt&&e!==tt&&(e=L),r.removeProperty?(i=e.substr(0,2),(i==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),r.removeProperty(i==="--"?e:e.replace(Nr,"-$1").toLowerCase())):r.removeAttribute(e)}},Pt=function(t,e,r,i,n,s){var a=new J(t._pt,e,r,0,1,s?nn:rn);return t._pt=a,a.b=i,a.e=n,t._props.push(r),a},oi={deg:1,rad:1,turn:1},Bs={grid:1,flex:1},At=function o(t,e,r,i){var n=parseFloat(r)||0,s=(r+"").trim().substr((n+"").length)||"px",a=Nt.style,u=Os.test(e),l=t.tagName.toLowerCase()==="svg",c=(l?"client":"offset")+(u?"Width":"Height"),h=100,d=i==="px",_=i==="%",p,f,m,g;if(i===s||!n||oi[i]||oi[s])return n;if(s!=="px"&&!d&&(n=o(t,e,r,"px")),g=t.getCTM&&ln(t),(_||s==="%")&&(Tt[e]||~e.indexOf("adius")))return p=g?t.getBBox()[u?"width":"height"]:t[c],U(_?n/p*h:n/100*p);if(a[u?"width":"height"]=h+(d?s:i),f=i!=="rem"&&~e.indexOf("adius")||i==="em"&&t.appendChild&&!l?t:t.parentNode,g&&(f=(t.ownerSVGElement||{}).parentNode),(!f||f===St||!f.appendChild)&&(f=St.body),m=f._gsap,m&&_&&m.width&&u&&m.time===it.time&&!m.uncache)return U(n/m.width*h);if(_&&(e==="height"||e==="width")){var y=t.style[e];t.style[e]=h+i,p=t[c],y?t.style[e]=y:Rt(t,e)}else(_||s==="%")&&!Bs[ot(f,"display")]&&(a.position=ot(t,"position")),f===t&&(a.position="static"),f.appendChild(Nt),p=Nt[c],f.removeChild(Nt),a.position="absolute";return u&&_&&(m=Ut(f),m.time=it.time,m.width=f[c]),U(d?p*n/h:p&&n?h/p*n:0)},bt=function(t,e,r,i){var n;return Ir||_r(),e in mt&&e!=="transform"&&(e=mt[e],~e.indexOf(",")&&(e=e.split(",")[0])),Tt[e]&&e!=="transform"?(n=we(t,i),n=e!=="transformOrigin"?n[e]:n.svg?n.origin:$e(ot(t,tt))+" "+n.zOrigin+"px"):(n=t.style[e],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=Ie[e]&&Ie[e](t,e,r)||ot(t,e)||Pi(t,e)||(e==="opacity"?1:0))),r&&!~(n+"").trim().indexOf(" ")?At(t,e,n,r)+r:n},qs=function(t,e,r,i){if(!r||r==="none"){var n=ie(e,t,1),s=n&&ot(t,n,1);s&&s!==r?(e=n,r=s):e==="borderColor"&&(r=ot(t,"borderTopColor"))}var a=new J(this._pt,t.style,e,0,1,Ji),u=0,l=0,c,h,d,_,p,f,m,g,y,b,w,v;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=ot(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(f=t.style[e],t.style[e]=i,i=ot(t,e)||i,f?t.style[e]=f:Rt(t,e)),c=[r,i],Xi(c),r=c[0],i=c[1],d=r.match(jt)||[],v=i.match(jt)||[],v.length){for(;h=jt.exec(i);)m=h[0],y=i.substring(u,h.index),p?p=(p+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(p=1),m!==(f=d[l++]||"")&&(_=parseFloat(f)||0,w=f.substr((_+"").length),m.charAt(1)==="="&&(m=Ht(_,m)+w),g=parseFloat(m),b=m.substr((g+"").length),u=jt.lastIndex-b.length,b||(b=b||at.units[e]||w,u===i.length&&(i+=b,a.e+=b)),w!==b&&(_=At(t,e,f,b)||0),a._pt={_next:a._pt,p:y||l===1?y:",",s:_,c:g-_,m:p&&p<4||e==="zIndex"?Math.round:0});a.c=u<i.length?i.substring(u,i.length):""}else a.r=e==="display"&&i==="none"?nn:rn;return wi.test(i)&&(a.e=0),this._pt=a,a},ai={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Vs=function(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(t=r,r=i,i=t),e[0]=ai[r]||r,e[1]=ai[i]||i,e.join(" ")},Ys=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r=e.t,i=r.style,n=e.u,s=r._gsap,a,u,l;if(n==="all"||n===!0)i.cssText="",u=1;else for(n=n.split(","),l=n.length;--l>-1;)a=n[l],Tt[a]&&(u=1,a=a==="transformOrigin"?tt:L),Rt(r,a);u&&(Rt(r,L),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",we(r,1),s.uncache=1,sn(i)))}},Ie={clearProps:function(t,e,r,i,n){if(n.data!=="isFromStart"){var s=t._pt=new J(t._pt,e,r,0,0,Ys);return s.u=i,s.pr=-10,s.tween=n,t._props.push(r),1}}},be=[1,0,0,1,0,0],cn={},fn=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},ui=function(t){var e=ot(t,L);return fn(e)?be:e.substr(7).match(bi).map(U)},Ur=function(t,e){var r=t._gsap||Ut(t),i=t.style,n=ui(t),s,a,u,l;return r.svg&&t.getAttribute("transform")?(u=t.transform.baseVal.consolidate().matrix,n=[u.a,u.b,u.c,u.d,u.e,u.f],n.join(",")==="1,0,0,1,0,0"?be:n):(n===be&&!t.offsetParent&&t!==Kt&&!r.svg&&(u=i.display,i.display="block",s=t.parentNode,(!s||!t.offsetParent&&!t.getBoundingClientRect().width)&&(l=1,a=t.nextElementSibling,Kt.appendChild(t)),n=ui(t),u?i.display=u:Rt(t,"display"),l&&(a?s.insertBefore(t,a):s?s.appendChild(t):Kt.removeChild(t))),e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},pr=function(t,e,r,i,n,s){var a=t._gsap,u=n||Ur(t,!0),l=a.xOrigin||0,c=a.yOrigin||0,h=a.xOffset||0,d=a.yOffset||0,_=u[0],p=u[1],f=u[2],m=u[3],g=u[4],y=u[5],b=e.split(" "),w=parseFloat(b[0])||0,v=parseFloat(b[1])||0,S,x,k,T;r?u!==be&&(x=_*m-p*f)&&(k=w*(m/x)+v*(-f/x)+(f*y-m*g)/x,T=w*(-p/x)+v*(_/x)-(_*y-p*g)/x,w=k,v=T):(S=un(t),w=S.x+(~b[0].indexOf("%")?w/100*S.width:w),v=S.y+(~(b[1]||b[0]).indexOf("%")?v/100*S.height:v)),i||i!==!1&&a.smooth?(g=w-l,y=v-c,a.xOffset=h+(g*_+y*f)-g,a.yOffset=d+(g*p+y*m)-y):a.xOffset=a.yOffset=0,a.xOrigin=w,a.yOrigin=v,a.smooth=!!i,a.origin=e,a.originIsAbsolute=!!r,t.style[tt]="0px 0px",s&&(Pt(s,a,"xOrigin",l,w),Pt(s,a,"yOrigin",c,v),Pt(s,a,"xOffset",h,a.xOffset),Pt(s,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",w+" "+v)},we=function(t,e){var r=t._gsap||new ji(t);if("x"in r&&!e&&!r.uncache)return r;var i=t.style,n=r.scaleX<0,s="px",a="deg",u=getComputedStyle(t),l=ot(t,tt)||"0",c,h,d,_,p,f,m,g,y,b,w,v,S,x,k,T,P,$,F,R,z,Y,V,N,ct,Xt,oe,ae,Lt,Yr,yt,Ft;return c=h=d=f=m=g=y=b=w=0,_=p=1,r.svg=!!(t.getCTM&&ln(t)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(i[L]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[L]!=="none"?u[L]:"")),i.scale=i.rotate=i.translate="none"),x=Ur(t,r.svg),r.svg&&(r.uncache?(ct=t.getBBox(),l=r.xOrigin-ct.x+"px "+(r.yOrigin-ct.y)+"px",N=""):N=!e&&t.getAttribute("data-svg-origin"),pr(t,N||l,!!N||r.originIsAbsolute,r.smooth!==!1,x)),v=r.xOrigin||0,S=r.yOrigin||0,x!==be&&($=x[0],F=x[1],R=x[2],z=x[3],c=Y=x[4],h=V=x[5],x.length===6?(_=Math.sqrt($*$+F*F),p=Math.sqrt(z*z+R*R),f=$||F?Wt(F,$)*$t:0,y=R||z?Wt(R,z)*$t+f:0,y&&(p*=Math.abs(Math.cos(y*Qt))),r.svg&&(c-=v-(v*$+S*R),h-=S-(v*F+S*z))):(Ft=x[6],Yr=x[7],oe=x[8],ae=x[9],Lt=x[10],yt=x[11],c=x[12],h=x[13],d=x[14],k=Wt(Ft,Lt),m=k*$t,k&&(T=Math.cos(-k),P=Math.sin(-k),N=Y*T+oe*P,ct=V*T+ae*P,Xt=Ft*T+Lt*P,oe=Y*-P+oe*T,ae=V*-P+ae*T,Lt=Ft*-P+Lt*T,yt=Yr*-P+yt*T,Y=N,V=ct,Ft=Xt),k=Wt(-R,Lt),g=k*$t,k&&(T=Math.cos(-k),P=Math.sin(-k),N=$*T-oe*P,ct=F*T-ae*P,Xt=R*T-Lt*P,yt=z*P+yt*T,$=N,F=ct,R=Xt),k=Wt(F,$),f=k*$t,k&&(T=Math.cos(k),P=Math.sin(k),N=$*T+F*P,ct=Y*T+V*P,F=F*T-$*P,V=V*T-Y*P,$=N,Y=ct),m&&Math.abs(m)+Math.abs(f)>359.9&&(m=f=0,g=180-g),_=U(Math.sqrt($*$+F*F+R*R)),p=U(Math.sqrt(V*V+Ft*Ft)),k=Wt(Y,V),y=Math.abs(k)>2e-4?k*$t:0,w=yt?1/(yt<0?-yt:yt):0),r.svg&&(N=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!fn(ot(t,L)),N&&t.setAttribute("transform",N))),Math.abs(y)>90&&Math.abs(y)<270&&(n?(_*=-1,y+=f<=0?180:-180,f+=f<=0?180:-180):(p*=-1,y+=y<=0?180:-180)),e=e||r.uncache,r.x=c-((r.xPercent=c&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+s,r.y=h-((r.yPercent=h&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-h)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+s,r.z=d+s,r.scaleX=U(_),r.scaleY=U(p),r.rotation=U(f)+a,r.rotationX=U(m)+a,r.rotationY=U(g)+a,r.skewX=y+a,r.skewY=b+a,r.transformPerspective=w+s,(r.zOrigin=parseFloat(l.split(" ")[2])||!e&&r.zOrigin||0)&&(i[tt]=$e(l)),r.xOffset=r.yOffset=0,r.force3D=at.force3D,r.renderTransform=r.svg?Ws:an?hn:Xs,r.uncache=0,r},$e=function(t){return(t=t.split(" "))[0]+" "+t[1]},Je=function(t,e,r){var i=j(e);return U(parseFloat(e)+parseFloat(At(t,"x",r+"px",i)))+i},Xs=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,hn(t,e)},zt="0deg",ue="0px",It=") ",hn=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,a=r.y,u=r.z,l=r.rotation,c=r.rotationY,h=r.rotationX,d=r.skewX,_=r.skewY,p=r.scaleX,f=r.scaleY,m=r.transformPerspective,g=r.force3D,y=r.target,b=r.zOrigin,w="",v=g==="auto"&&t&&t!==1||g===!0;if(b&&(h!==zt||c!==zt)){var S=parseFloat(c)*Qt,x=Math.sin(S),k=Math.cos(S),T;S=parseFloat(h)*Qt,T=Math.cos(S),s=Je(y,s,x*T*-b),a=Je(y,a,-Math.sin(S)*-b),u=Je(y,u,k*T*-b+b)}m!==ue&&(w+="perspective("+m+It),(i||n)&&(w+="translate("+i+"%, "+n+"%) "),(v||s!==ue||a!==ue||u!==ue)&&(w+=u!==ue||v?"translate3d("+s+", "+a+", "+u+") ":"translate("+s+", "+a+It),l!==zt&&(w+="rotate("+l+It),c!==zt&&(w+="rotateY("+c+It),h!==zt&&(w+="rotateX("+h+It),(d!==zt||_!==zt)&&(w+="skew("+d+", "+_+It),(p!==1||f!==1)&&(w+="scale("+p+", "+f+It),y.style[L]=w||"translate(0, 0)"},Ws=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,a=r.y,u=r.rotation,l=r.skewX,c=r.skewY,h=r.scaleX,d=r.scaleY,_=r.target,p=r.xOrigin,f=r.yOrigin,m=r.xOffset,g=r.yOffset,y=r.forceCSS,b=parseFloat(s),w=parseFloat(a),v,S,x,k,T;u=parseFloat(u),l=parseFloat(l),c=parseFloat(c),c&&(c=parseFloat(c),l+=c,u+=c),u||l?(u*=Qt,l*=Qt,v=Math.cos(u)*h,S=Math.sin(u)*h,x=Math.sin(u-l)*-d,k=Math.cos(u-l)*d,l&&(c*=Qt,T=Math.tan(l-c),T=Math.sqrt(1+T*T),x*=T,k*=T,c&&(T=Math.tan(c),T=Math.sqrt(1+T*T),v*=T,S*=T)),v=U(v),S=U(S),x=U(x),k=U(k)):(v=h,k=d,S=x=0),(b&&!~(s+"").indexOf("px")||w&&!~(a+"").indexOf("px"))&&(b=At(_,"x",s,"px"),w=At(_,"y",a,"px")),(p||f||m||g)&&(b=U(b+p-(p*v+f*x)+m),w=U(w+f-(p*S+f*k)+g)),(i||n)&&(T=_.getBBox(),b=U(b+i/100*T.width),w=U(w+n/100*T.height)),T="matrix("+v+","+S+","+x+","+k+","+b+","+w+")",_.setAttribute("transform",T),y&&(_.style[L]=T)},js=function(t,e,r,i,n){var s=360,a=X(n),u=parseFloat(n)*(a&&~n.indexOf("rad")?$t:1),l=u-i,c=i+l+"deg",h,d;return a&&(h=n.split("_")[1],h==="short"&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),h==="cw"&&l<0?l=(l+s*ri)%s-~~(l/s)*s:h==="ccw"&&l>0&&(l=(l-s*ri)%s-~~(l/s)*s)),t._pt=d=new J(t._pt,e,r,i,l,Ms),d.e=c,d.u="deg",t._props.push(r),d},li=function(t,e){for(var r in e)t[r]=e[r];return t},Gs=function(t,e,r){var i=li({},r._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,u,l,c,h,d,_,p;i.svg?(l=r.getAttribute("transform"),r.setAttribute("transform",""),s[L]=e,a=we(r,1),Rt(r,L),r.setAttribute("transform",l)):(l=getComputedStyle(r)[L],s[L]=e,a=we(r,1),s[L]=l);for(u in Tt)l=i[u],c=a[u],l!==c&&n.indexOf(u)<0&&(_=j(l),p=j(c),h=_!==p?At(r,u,l,p):parseFloat(l),d=parseFloat(c),t._pt=new J(t._pt,a,u,h,d-h,hr),t._pt.u=p||0,t._props.push(u));li(a,i)};Z("padding,margin,Width,Radius",function(o,t){var e="Top",r="Right",i="Bottom",n="Left",s=(t<3?[e,r,i,n]:[e+n,e+r,i+r,i+n]).map(function(a){return t<2?o+a:"border"+a+o});Ie[t>1?"border"+o:o]=function(a,u,l,c,h){var d,_;if(arguments.length<4)return d=s.map(function(p){return bt(a,p,l)}),_=d.join(" "),_.split(d[0]).length===5?d[0]:_;d=(c+"").split(" "),_={},s.forEach(function(p,f){return _[p]=d[f]=d[f]||d[(f-1)/2|0]}),a.init(u,_,h)}});var dn={name:"css",register:_r,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var s=this._props,a=t.style,u=r.vars.startAt,l,c,h,d,_,p,f,m,g,y,b,w,v,S,x,k,T;Ir||_r(),this.styles=this.styles||on(t),k=this.styles.props,this.tween=r;for(f in e)if(f!=="autoRound"&&(c=e[f],!(rt[f]&&Gi(f,e,r,i,t,n)))){if(_=typeof c,p=Ie[f],_==="function"&&(c=c.call(r,i,t,n),_=typeof c),_==="string"&&~c.indexOf("random(")&&(c=ge(c)),p)p(this,t,f,c,r)&&(x=1);else if(f.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(f)+"").trim(),c+="",Ct.lastIndex=0,Ct.test(l)||(m=j(l),g=j(c),g?m!==g&&(l=At(t,f,l,g)+g):m&&(c+=m)),this.add(a,"setProperty",l,c,i,n,0,0,f),s.push(f),k.push(f,0,a[f]);else if(_!=="undefined"){if(u&&f in u?(l=typeof u[f]=="function"?u[f].call(r,i,t,n):u[f],X(l)&&~l.indexOf("random(")&&(l=ge(l)),j(l+"")||l==="auto"||(l+=at.units[f]||j(bt(t,f))||""),(l+"").charAt(1)==="="&&(l=bt(t,f))):l=bt(t,f),d=parseFloat(l),y=_==="string"&&c.charAt(1)==="="&&c.substr(0,2),y&&(c=c.substr(2)),h=parseFloat(c),f in mt&&(f==="autoAlpha"&&(d===1&&bt(t,"visibility")==="hidden"&&h&&(d=0),k.push("visibility",0,a.visibility),Pt(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=mt[f],~f.indexOf(",")&&(f=f.split(",")[0]))),b=f in Tt,b){if(this.styles.save(f),T=c,_==="string"&&c.substring(0,6)==="var(--"){if(c=ot(t,c.substring(4,c.indexOf(")"))),c.substring(0,5)==="calc("){var P=t.style.perspective;t.style.perspective=c,c=ot(t,"perspective"),P?t.style.perspective=P:Rt(t,"perspective")}h=parseFloat(c)}if(w||(v=t._gsap,v.renderTransform&&!e.parseTransform||we(t,e.parseTransform),S=e.smoothOrigin!==!1&&v.smooth,w=this._pt=new J(this._pt,a,L,0,1,v.renderTransform,v,0,-1),w.dep=1),f==="scale")this._pt=new J(this._pt,v,"scaleY",v.scaleY,(y?Ht(v.scaleY,y+h):h)-v.scaleY||0,hr),this._pt.u=0,s.push("scaleY",f),f+="X";else if(f==="transformOrigin"){k.push(tt,0,a[tt]),c=Vs(c),v.svg?pr(t,c,0,S,0,this):(g=parseFloat(c.split(" ")[2])||0,g!==v.zOrigin&&Pt(this,v,"zOrigin",v.zOrigin,g),Pt(this,a,f,$e(l),$e(c)));continue}else if(f==="svgOrigin"){pr(t,c,1,S,0,this);continue}else if(f in cn){js(this,v,f,d,y?Ht(d,y+c):c);continue}else if(f==="smoothOrigin"){Pt(this,v,"smooth",v.smooth,c);continue}else if(f==="force3D"){v[f]=c;continue}else if(f==="transform"){Gs(this,c,t);continue}}else f in a||(f=ie(f)||f);if(b||(h||h===0)&&(d||d===0)&&!Cs.test(c)&&f in a)m=(l+"").substr((d+"").length),h||(h=0),g=j(c)||(f in at.units?at.units[f]:m),m!==g&&(d=At(t,f,l,g)),this._pt=new J(this._pt,b?v:a,f,d,(y?Ht(d,y+h):h)-d,!b&&(g==="px"||f==="zIndex")&&e.autoRound!==!1?Es:hr),this._pt.u=g||0,b&&T!==c?(this._pt.b=l,this._pt.e=T,this._pt.r=As):m!==g&&g!=="%"&&(this._pt.b=l,this._pt.r=Rs);else if(f in a)qs.call(this,t,f,l,y?y+c:c);else if(f in t)this.add(t,f,l||t[f],y?y+c:c,i,n);else if(f!=="parseTransform"){Or(f,c);continue}b||(f in a?k.push(f,0,a[f]):typeof t[f]=="function"?k.push(f,2,t[f]()):k.push(f,1,l||t[f])),s.push(f)}}x&&tn(this)},render:function(t,e){if(e.tween._time||!$r())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:bt,aliases:mt,getSetter:function(t,e,r){var i=mt[e];return i&&i.indexOf(",")<0&&(e=i),e in Tt&&e!==tt&&(t._gsap.x||bt(t,"x"))?r&&ei===r?e==="scale"?zs:Fs:(ei=r||{})&&(e==="scale"?Is:$s):t.style&&!kr(t.style[e])?Ds:~e.indexOf("-")?Ls:Fr(t,e)},core:{_removeProperty:Rt,_getMatrix:Ur}};et.utils.checkPrefix=ie;et.core.getStyleSaver=on;(function(o,t,e,r){var i=Z(o+","+t+","+e,function(n){Tt[n]=1});Z(t,function(n){at.units[n]="deg",cn[n]=1}),mt[i[13]]=o+","+t,Z(r,function(n){var s=n.split(":");mt[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Z("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(o){at.units[o]="px"});et.registerPlugin(dn);var Et=et.registerPlugin(dn)||et;Et.core.Tween;const _n=/^[0-9a-f]{64}$/,Hs=/^https:\/\/[^\s]+$/;function tr(o,t){return o.tags.find(([r])=>r===t)?.[1]?.trim()||void 0}function ci(o,t){const e=o.tags.find(([n])=>n===t),r=e?.[1]?.trim();if(!r)return;const i=e?.[2]?.trim();return i?{coordinate:r,relay:i}:{coordinate:r}}function Ks(o){const t=o.tags.find(([i])=>i==="image"),e=t?.[1]?.trim();if(!e)return;if(!Hs.test(e)){console.warn("Ignoring rocket image with a non-https URL",{url:e});return}const r=t?.[2]?.trim();if(r&&!_n.test(r)){console.warn("Ignoring rocket image with a malformed sha256 digest",{url:e,hash:r});return}return r?{url:e,hash:r}:{url:e}}function Qs(o){if(o.kind!==31108||!_n.test(o.pubkey))return;const t=tr(o,"d");if(t)return{coordinate:`31108:${o.pubkey}:${t}`,identifier:t,author:o.pubkey,parent:tr(o,"parent")??"this",mission:tr(o,"mission"),problem:ci(o,"problem"),repo:ci(o,"repo"),image:Ks(o),createdAt:o.created_at,event:o}}function Zs(o){const t=new Map;for(const e of o){const r=Qs(e);if(!r)continue;const i=t.get(r.coordinate);(!i||r.createdAt>i.createdAt||r.createdAt===i.createdAt&&r.event.id>i.event.id)&&t.set(r.coordinate,r)}return[...t.values()]}async function Js(o){const t=await crypto.subtle.digest("SHA-256",o);return[...new Uint8Array(t)].map(e=>e.toString(16).padStart(2,"0")).join("")}async function to(o,t){return o.hash===void 0||await Js(t)===o.hash}const fi=(o,t)=>o.rocket.identifier.localeCompare(t.rocket.identifier)||o.rocket.coordinate.localeCompare(t.rocket.coordinate);function eo(o){const t=new Map;for(const s of o)t.set(s.coordinate,{rocket:s,children:[],depth:0,detached:!1});const e=[];for(const s of t.values()){const{parent:a}=s.rocket;if(a==="this"){e.push(s);continue}const u=t.get(a);u&&u!==s&&u.children.push(s)}const r=new Set,i=s=>{if(!r.has(s)){r.add(s);for(const a of s.children)i(a)}};for(const s of e)i(s);for(const s of t.values())r.has(s)||(s.detached=!0,e.push(s),i(s));const n=(s,a,u)=>{s.depth=a,s.children=s.children.filter(c=>!u.has(c)).sort(fi);const l=new Set(u).add(s);for(const c of s.children)n(c,a+1,l)};e.sort(fi);for(const s of e)n(s,0,new Set);return e}function ro(o,t){const e=t.trim().toLocaleLowerCase("en-US");if(!e)return[...o];const r=i=>{if(`${i.rocket.identifier}
${i.rocket.mission??""}`.toLocaleLowerCase("en-US").includes(e))return i;const s=i.children.flatMap(a=>{const u=r(a);return u?[u]:[]});return s.length?{...i,children:s}:void 0};return o.flatMap(i=>{const n=r(i);return n?[n]:[]})}function io(o){let t=0,e=0;const r=i=>{t+=1,i.depth>e&&(e=i.depth);for(const n of i.children)r(n)};for(const i of o)r(i);return{rockets:t,roots:o.length,maxDepth:e}}function no(o,t){let e;return r=>{const i=r.available&&r.focused?r.pads.find(c=>c?.mapping==="standard"):void 0;if(!i){e=void 0,t(0);return}const n=i.buttons[1]?.pressed===!0,s=e?.index===i.index&&!e?.pressed&&n;e={index:i.index,pressed:n};const a=i.axes[3]??0,u=Number.isFinite(a)?Math.min(1,Math.abs(a)):0,l=Math.max(0,(u-.22)/.78);t(s||!l?0:Math.sign(a)*1050*l**1.5),s&&o()}}function so(o){const t=window.napplet?.gamepad;if(!t)return;let e=0,r,i,n=0;function s(c){if(i!==void 0){n+=e*Math.min(c-i,40)/1e3;const h=Math.trunc(n);n-=h,h&&window.scrollBy({top:h,behavior:"instant"})}i=c,r=requestAnimationFrame(s)}function a(c){e=c,e&&r===void 0?r=requestAnimationFrame(s):!e&&r!==void 0&&(cancelAnimationFrame(r),r=i=void 0,n=0)}const u=no(o,a);u({available:t.available,focused:t.focused,pads:t.getGamepads()});const l=t.onChange(u);return{close(){l.close(),a(0)}}}const mr="tree",oo="open",pn="napplet:tree/open",ao={focus:!0,reuse:!0};async function uo(o,t){const e=await o.open(mr,{root:t},{convention:pn,behavior:ao});if(!e.ok||e.handled===!1)throw new Error(e.error??"No problem tree accepted this request.")}function lo(o){return o?.available===!0&&o.candidates.some(t=>t.actions.includes(oo)&&t.conventions.includes(pn))}const mn=(()=>{const o=document.querySelector("#app");if(!o)throw new Error("Application root is missing.");return o})(),Xe=matchMedia("(prefers-reduced-motion: reduce)").matches,Oe=o=>`${o.slice(0,8)}…${o.slice(-8)}`,B=o=>o.replace(/[&<>"]/g,t=>({"&":"&","<":"<",">":">",'"':"""})[t]),wt=new Map;let se=[],Zt=new Map,Ne=new Map,xe=new Map,Te="";const gr=new Set;let nt=0,Ue=new AbortController,yr,Be,vr=0,gn;const co=["d91191e30e00444b942c0e82cad470b32af171764c2275bee0bd99377efd4075"];function yn(){return[...new Set([...co,...[...wt.values()].map(o=>o.pubkey)])]}function Br(){for(const o of Ne.values())URL.revokeObjectURL(o);Ne=new Map}function vn(){for(const o of xe.values())URL.revokeObjectURL(o);xe=new Map}const Ce=o=>typeof o=="string"&&o.trim()?o.trim():void 0;function fo(o,t){const e=new Set(o),r=new Map;for(const n of t){if(n.kind!==0||!e.has(n.pubkey))continue;const s=r.get(n.pubkey);(!s||n.created_at>s.created_at||n.created_at===s.created_at&&n.id<s.id)&&r.set(n.pubkey,n)}const i=new Map;for(const[n,s]of r)try{const a=JSON.parse(s.content),u=Ce(a.display_name)??Ce(a.name)??Ce(a.nip05),l=Ce(a.picture);(u||l)&&i.set(n,{name:u,picture:l})}catch(a){console.warn("Ignoring malformed author profile metadata",{author:n,eventId:s.id,error:a})}return i}function ho(o){return Array.from(o).reduce((t,e)=>(t*31+e.charCodeAt(0))%360,0)}function _o(o,t){const e=Zt.get(t)?.name,r=Ne.get(t),i=(e??o).trim().split(/[^\p{L}\p{N}]+/u).filter(Boolean),n=(i.length>1?`${i[0][0]}${i[1][0]}`:i[0]?.slice(0,2)??t.slice(0,2)).toUpperCase().padEnd(2,"?");return`<span class="avatar" style="--avatar-hue:${ho(t)}" title="${B(t)}">
<span class="avatar-fallback" aria-hidden="true">${B(n)}</span>
${r?`<img src="${B(r)}" data-avatar-author="${t}" alt="">`:""}
</span>`}function po(o){if(!o.image)return;const t=xe.get(o.image.url);return t?`<span class="rocket-logo" title="${o.image.hash?"Rocket image · sha256 verified":"Rocket image"}"><img src="${B(t)}" data-rocket-image="${B(o.image.url)}" alt=""></span>`:void 0}function hi(o){if(!o)return;const t=/^#[0-9a-f]{6}$/i,{background:e,text:r,primary:i}=o.colors;if(![e,r,i].every(s=>t.test(s))){console.warn("Shell theme rejected because colors are not six-digit hex values",{background:e,text:r,primary:i});return}const n=document.documentElement;n.style.setProperty("--background",e),n.style.setProperty("--text",r),n.style.setProperty("--primary",i),n.style.setProperty("--surface",`color-mix(in srgb, ${r} 5%, ${e})`),n.style.setProperty("--line",`color-mix(in srgb, ${r} 18%, ${e})`),n.style.setProperty("--muted",`color-mix(in srgb, ${r} 62%, ${e})`)}function bn(){se=eo(Zs([...wt.values()]))}function qr(){const o=se.filter(t=>t.depth===0);return(o.find(t=>t.rocket.problem)??o[0])?.rocket.problem?.coordinate}let er=!1;async function mo(){const o=qr();if(!(!o||er)){er=!0;try{const t=await Xr.available(mr).catch(e=>{console.warn("Problem tree availability check failed",{archetype:mr,error:e})});if(!lo(t))throw new Error("No problem tree napplet is installed.");await uo(Xr,o)}catch(t){console.warn("Problem tree intent failed",{coordinate:o,error:t});const e=document.querySelector("#status");e&&(e.textContent=t instanceof Error?t.message:"Problem tree could not be opened.")}finally{er=!1}}}function go(){const o=qr();mn.innerHTML=`<article class="discover-view">
<header class="masthead">
<div><span class="eyebrow">Nostrocket MSB · ruleset 334000</span><h1>Discover Rockets</h1><p>Every Sovereign Economic Community ignition found via kind 31108, arranged as a multi-root hierarchy.</p></div>
<div class="masthead-actions">
<button id="back-to-tree" type="button" class="tree-link"${o?"":" disabled"} title="Controller: Circle / B to return; right stick to scroll">Back to tree</button>
<button id="refresh" type="button">Refresh</button>
</div>
</header>
<div class="toolbar">
<label class="search"><span>Filter rockets</span><input id="rocket-filter" type="search" placeholder="Identifier or mission…" autocomplete="off" value="${B(Te)}"></label>
<p class="stats" id="stats"></p>
<p class="live" id="live-indicator" title="Live kind 31108 subscription state"><i></i><span>connecting</span></p>
</div>
<div id="forest" class="forest"></div>
<output id="status" aria-live="polite"></output>
</article>`,document.querySelector("#refresh")?.addEventListener("click",()=>void Vr()),document.querySelector("#back-to-tree")?.addEventListener("click",()=>void mo()),document.querySelector("#rocket-filter")?.addEventListener("input",t=>{Te=t.currentTarget.value,ne({animate:!1})})}let ke;function yo(){ke?.kill();const o=document.querySelector("#live-indicator i");!o||Xe||(ke=Et.to(o,{opacity:.35,duration:.9,repeat:-1,yoyo:!0,ease:"sine.inOut"}))}function br(o){const t=document.querySelector("#live-indicator");t&&(t.dataset.state=o==="live"?"live":o==="off"?"off":"connecting",t.querySelector("span").textContent=o,o!=="live"&&(ke?.kill(),ke=void 0,o==="off"&&Et.set(t.querySelector("i"),{opacity:1})))}function wn(o,t){const{rocket:e}=o,i=Te.trim().length>0||!gr.has(e.coordinate),n=`branch-${t.n++}`,s=o.children.length>0,a=o.depth===0?"h2":"h3",u=[];return o.depth===0&&u.push(e.parent==="this"?'<span class="badge badge-root">root</span>':`<span class="badge badge-detached" title="Parent ${B(e.parent)} not among discovered rockets">detached parent</span>`),e.problem&&u.push(`<span class="badge" title="${B(e.problem.coordinate)}">problem ${B(Oe(e.problem.coordinate))}</span>`),e.repo&&u.push(`<span class="badge" title="${B(e.repo.coordinate)}">repo ${B(Oe(e.repo.coordinate))}</span>`),s&&u.push(`<span class="badge badge-count">${o.children.length} sub-rocket${o.children.length===1?"":"s"}</span>`),`<section class="rocket${o.depth===0?" rocket-root":""}" data-coordinate="${B(e.coordinate)}" style="--depth:${o.depth}">
<header class="rocket-head">
${s?`<button class="toggle" type="button" data-toggle="${B(e.coordinate)}" aria-expanded="${i}" aria-controls="${n}"><svg viewBox="0 0 10 10" aria-hidden="true"><path d="M2 1l5 4-5 4"/></svg><span class="sr-only">${i?"Collapse":"Expand"} ${B(e.identifier)}</span></button>`:'<span class="toggle-spacer" aria-hidden="true"></span>'}
${po(e)}${_o(e.identifier,e.author)}
<div class="rocket-id"><${a} class="rocket-name">${B(e.identifier)}</${a}>
${e.mission?`<p class="rocket-mission">${B(e.mission)}</p>`:""}
</div>
<div class="rocket-meta">${u.join("")}</div>
</header>
<footer class="rocket-foot">
<span class="author" title="${e.author}">${B(Zt.get(e.author)?.name??Oe(e.author))}</span>
<time datetime="${new Date(e.createdAt*1e3).toISOString()}">${new Date(e.createdAt*1e3).toLocaleDateString()}</time>
<code title="${B(e.event.id)}">${B(Oe(e.event.id))}</code>
</footer>
${s?`<div class="rocket-children" id="${n}"${i?"":" hidden"}>${o.children.map(l=>wn(l,t)).join("")}</div>`:""}
</section>`}function vo(o){o.hidden=!1,!Xe&&Et.fromTo(o,{height:0,opacity:0},{height:"auto",opacity:1,duration:.3,ease:"power2.out",clearProps:"height,opacity"})}function bo(o){if(Xe){o.hidden=!0;return}Et.to(o,{height:0,opacity:0,duration:.25,ease:"power2.in",onComplete:()=>{o.hidden=!0,Et.set(o,{clearProps:"all"})}})}function wo(o){o.querySelectorAll("[data-toggle]").forEach(t=>t.addEventListener("click",()=>{const e=t.dataset.toggle,r=document.getElementById(t.getAttribute("aria-controls"));r&&(t.getAttribute("aria-expanded")==="true"?(gr.add(e),t.setAttribute("aria-expanded","false"),bo(r)):(gr.delete(e),t.setAttribute("aria-expanded","true"),vo(r)))})),o.querySelectorAll("[data-rocket-image]").forEach(t=>t.addEventListener("error",()=>{console.warn("Rocket image could not be decoded; falling back to the author avatar",{image:t.dataset.rocketImage}),t.closest(".rocket-logo")?.remove()},{once:!0})),o.querySelectorAll("[data-avatar-author]").forEach(t=>t.addEventListener("error",()=>{console.warn("Author avatar could not be decoded; using generated fallback",{author:t.dataset.avatarAuthor}),t.remove()},{once:!0}))}function ne(o={}){const t=document.querySelector("#forest");if(!t)return;const e=ro(se,Te),r=io(e),i=document.querySelector("#stats");i&&(i.textContent=r.rockets?`${r.roots} root${r.roots===1?"":"s"} · ${r.rockets} rocket${r.rockets===1?"":"s"} · ${r.maxDepth+1} level${r.maxDepth===0?"":"s"}`:"No rockets discovered"),t.innerHTML=r.rockets?e.map(s=>wn(s,{n:0})).join(""):`<p class="empty-forest">${Te.trim()?"No rockets match this filter.":"No rockets discovered yet."}</p>`,wo(t);const n=document.querySelector("#back-to-tree");if(n&&(n.disabled=!qr()),!Xe&&(o.animate||o.highlight)&&(o.animate&&Et.fromTo(t.querySelectorAll(".rocket-root > .rocket-head, .rocket-root > .rocket-foot, .rocket-root > .rocket-children"),{y:12,opacity:0},{y:0,opacity:1,duration:.45,stagger:.04,ease:"power3.out"}),o.highlight)){const s=t.querySelector(`[data-coordinate="${CSS.escape(o.highlight)}"]`);s&&Et.fromTo(s,{boxShadow:"0 0 0 3px var(--primary)"},{boxShadow:"0 0 0 3px rgba(0,0,0,0)",duration:1.4,ease:"power2.out",clearProps:"boxShadow"})}}function di(o){return{onEvent(t){o!==nt||wt.has(t.id)||(wt.set(t.id,t),bn(),ne({highlight:xo(t)}),Be?.())},onClosed(t){if(o===nt){if(br("off"),vr>=5){const e=document.querySelector("#status");e&&(e.textContent=`Live subscription closed; refresh to resume. ${t}`.trim());return}vr+=1,gn=setTimeout(()=>{o===nt&&wr(o)},15e3)}}}}function xo(o){if(o.kind!==31108)return;const t=o.tags.find(([e])=>e==="d")?.[1]?.trim();return t?`31108:${o.pubkey}:${t}`:void 0}function wr(o){br("connecting");try{const t=xr.subscribe([{kinds:[31108]}],{authors:yn(),timeoutMs:8e3});yr=t;const e=di(o);t.on("event",r=>e.onEvent(r.event)),t.on("closed",r=>e.onClosed(typeof r=="string"?r:"closed by shell")),br("live"),yo()}catch(t){console.warn("Live rocket subscription failed",{error:t}),di(o).onClosed(t instanceof Error?t.message:"subscription failed")}}async function To(o){const t=[...new Set(So(se))];if(!t.length)return;const e=document.querySelector("#status");try{const r=await _i(xr.subscribe,[{kinds:[0],authors:t,limit:t.length}],{authors:t,limit:t.length,timeoutMs:8e3},{signal:Ue.signal});if(o!==nt)return;Zt=fo(t,r.events.map(({event:s})=>s));const i=[...Zt.entries()].filter(s=>!!s[1].picture);if(i.length&&!window.napplet?.resource)console.warn("Author profile pictures unavailable; shell resource domain is missing",{authors:i.length});else{const s=await Promise.all(i.map(async([a,u])=>{try{const l=await mi.bytes(u.picture);if(!l.type.startsWith("image/")){console.warn("Author profile picture rejected; resource is not an image",{author:a,picture:u.picture,mimeType:l.type});return}return[a,URL.createObjectURL(l)]}catch(l){console.warn("Author profile picture fetch failed; using generated avatar",{author:a,picture:u.picture,error:l});return}}));if(o!==nt){s.forEach(a=>{a&&URL.revokeObjectURL(a[1])});return}Br(),Ne=new Map(s.filter(a=>!!a))}ne({animate:!1});const n=document.querySelector("#status");n&&(n.textContent=Zt.size?"Author profiles loaded.":"No author profiles found; showing pubkeys.")}catch(r){console.warn("Author profile query failed; using pubkey fallbacks",{authors:t,error:r}),e&&o===nt&&(e.textContent="Author profiles unavailable; showing pubkeys.")}}async function ko(o){const t=new Map,e=n=>{n.rocket.image&&!xe.has(n.rocket.image.url)&&t.set(n.rocket.image.url,n.rocket.image.hash);for(const s of n.children)e(s)};for(const n of se)e(n);if(!t.size)return;if(typeof window.napplet?.resource?.bytes!="function"){console.warn("Rocket images unavailable; shell resource domain is missing",{images:t.size});return}const r=await Promise.all([...t].map(async([n,s])=>{try{const a=await mi.bytes(n);if(!a.type.startsWith("image/")){console.warn("Rocket image rejected; resource is not an image",{url:n,mimeType:a.type});return}const u=await a.arrayBuffer();if(!await to(s?{url:n,hash:s}:{url:n},u)){console.warn("Rocket image rejected; bytes do not match the published sha256 digest",{url:n,hash:s});return}return[n,URL.createObjectURL(a)]}catch(a){console.warn("Rocket image fetch failed; falling back to the author avatar",{url:n,error:a});return}}));if(o!==nt){r.forEach(n=>{n&&URL.revokeObjectURL(n[1])});return}const i=r.filter(n=>!!n);if(i.length){for(const[n,s]of i)xe.set(n,s);ne({animate:!1})}}function So(o){const t=[],e=r=>{t.push(r.rocket.author);for(const i of r.children)e(i)};for(const r of o)e(r);return t}function Po(o){console.error("Rocket discovery failed",{error:o}),mn.innerHTML=`<section class="error-state" role="alert"><span class="eyebrow">Discovery unavailable</span><h1>Could not read rocket ignitions.</h1><p>${B(o instanceof Error?o.message:String(o))}</p><button id="retry" type="button">Try again</button></section>`,document.querySelector("#retry")?.addEventListener("click",()=>void Vr())}function xn(){++nt,Ue.abort(),yr?.close(),yr=void 0,Be=void 0,clearTimeout(gn),ke?.kill()}async function Vr(){xn(),Ue=new AbortController;const o=nt;vr=0,Br(),vn(),Zt=new Map,wt.clear(),go(),se=[],ne();let t=!1,e=!1;Be=async()=>{if(t=!0,!e){e=!0;try{for(;t&&o===nt;)t=!1,await Promise.all([To(o),ko(o)])}finally{e=!1}}};const r=({event:i})=>{o!==nt||wt.has(i.id)||(wt.set(i.id,i),bn(),ne())};try{const i=await Promise.allSettled([void 0,yn()].map(s=>_i(xr.subscribe,[{kinds:[31108],limit:500}],{authors:s,limit:500,timeoutMs:8e3},{signal:Ue.signal,onEvent:r})));if(o!==nt)return;const n=i.filter(s=>s.status==="rejected");if(n.length===i.length&&!wt.size)throw n[0].reason;wr(o),Be()}catch(i){if(o!==nt)return;wt.size?wr(o):Po(i)}}typeof window.napplet?.theme?.get=="function"&&(On().then(hi).catch(o=>console.warn("Initial shell theme could not be read",{error:o})),Cn(hi));const Oo=so(()=>{document.querySelector("#back-to-tree:not([disabled])")?.click()});window.addEventListener("pagehide",()=>{xn(),Br(),vn(),Oo?.close()},{once:!0});Vr();
</script>
<style>:root{font-family:Avenir Next,Avenir,Segoe UI,sans-serif;color:var(--text);background:var(--background);font-synthesis:none;--background: #f8f7f3;--text: #17191d;--primary: #145cff;--surface: #fff;--line: #d9d8d2;--muted: #6c7078}*{box-sizing:border-box}html,body,#app{min-width:280px;min-height:100%;margin:0;background:var(--background);color:var(--text)}button{font:inherit;color:inherit}:focus-visible{outline:3px solid #ffbf47;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.boot-state,.error-state{display:grid;min-height:100vh;place-content:center;justify-items:start;gap:18px;padding:clamp(24px,7vw,88px)}.boot-state p,.error-state p{max-width:46ch;margin:0;color:var(--muted);line-height:1.55}.pulse{width:52px;height:3px;background:var(--primary)}.error-state h1{max-width:14ch;margin:0;font-size:clamp(2.4rem,7vw,5.4rem);line-height:.95;letter-spacing:-.04em}.error-state button{border-color:var(--primary);color:#fff;background:var(--primary)}.discover-view{width:min(1120px,100%);margin:auto;padding:clamp(22px,5vw,66px)}.masthead{display:flex;align-items:start;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);padding-bottom:34px}.eyebrow{color:var(--primary);font-size:.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.masthead h1{margin:10px 0 7px;font-size:clamp(2.4rem,7vw,5.6rem);line-height:.85;letter-spacing:-.05em}.masthead p{margin:0;max-width:58ch;color:var(--muted);font-size:clamp(.9rem,2vw,1.1rem);line-height:1.5}button{min-height:44px;border:1px solid var(--line);border-radius:99px;padding:0 18px;background:var(--surface);font-weight:750;cursor:pointer}button:hover{border-color:var(--primary);color:var(--primary)}.toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:26px;padding:22px 0;border-bottom:1px solid var(--line)}.search{display:grid;gap:8px;min-width:0}.search span{font-size:.72rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.search input{width:min(100%,420px);min-height:44px;border:1px solid var(--line);border-radius:99px;padding:0 18px;color:var(--text);background:var(--surface);font:inherit}.search input:focus{border-color:var(--primary);outline:none}.stats{margin:0;color:var(--muted);font-size:.8rem;white-space:nowrap;font-variant-numeric:tabular-nums}.live{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted);font-size:.68rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.live i{width:9px;height:9px;border-radius:50%;background:var(--muted)}.live[data-state=live] i{background:#2e9e5b}.live[data-state=off] i{background:#c26a4a}.forest{display:grid;gap:20px;padding-top:34px}.empty-forest{margin:0;border:1px dashed var(--line);border-radius:14px;padding:34px;color:var(--muted);text-align:center}.rocket{border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:20px 22px}.rocket-children .rocket{border-radius:12px;padding:14px 16px}.rocket-head{display:flex;align-items:center;gap:14px;min-width:0}.toggle{display:grid;width:30px;height:30px;min-height:30px;flex:0 0 auto;place-items:center;padding:0;border-radius:50%}.toggle svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.toggle[aria-expanded=true] svg{transform:rotate(90deg)}.toggle-spacer{width:30px;height:30px;flex:0 0 auto}.avatar{position:relative;display:grid;width:44px;height:44px;flex:0 0 auto;place-items:center;overflow:hidden;border:1px solid color-mix(in srgb,var(--text) 14%,transparent);border-radius:50%;background:hsl(var(--avatar-hue) 55% 84%);color:hsl(var(--avatar-hue) 45% 25%);font-size:.72rem;font-weight:850}.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.rocket-logo{display:grid;width:44px;height:44px;flex:0 0 auto;place-items:center;overflow:hidden;border:1px solid color-mix(in srgb,var(--text) 14%,transparent);border-radius:12px;background:var(--background)}.rocket-logo img{width:100%;height:100%;object-fit:contain}.rocket-logo+.avatar{display:none}.rocket-id{display:grid;gap:4px;min-width:0;flex:1 1 auto}.rocket-name{margin:0;font-size:clamp(1.25rem,2.6vw,1.9rem);letter-spacing:-.03em;line-height:1.05;overflow-wrap:anywhere}.rocket-children .rocket-name{font-size:clamp(1.02rem,2vw,1.35rem)}.rocket-mission{margin:0;color:var(--muted);line-height:1.45;font-size:.92rem;overflow-wrap:anywhere}.rocket-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;max-width:40%}.badge{border:1px solid var(--line);border-radius:99px;padding:4px 10px;color:var(--muted);font-size:.66rem;font-weight:750;letter-spacing:.04em;white-space:nowrap}.badge-root{border-color:var(--primary);color:var(--primary)}.badge-detached{border-color:#c26a4a;color:#c26a4a}.badge-count{border-color:transparent;background:color-mix(in srgb,var(--text) 7%,transparent);color:var(--text)}.rocket-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:.74rem}.rocket-foot .author{font-weight:750;color:var(--text);overflow-wrap:anywhere}.rocket-foot code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rocket-children{display:grid;gap:12px;margin:16px 0 0 21px;padding-left:clamp(14px,3vw,26px);border-left:1px solid var(--line);overflow:hidden}.rocket-children[hidden]{display:none}#status{display:block;min-height:1.5em;margin-top:18px;color:var(--muted);font-size:.82rem}@media(max-width:720px){.toolbar{grid-template-columns:1fr;gap:14px;align-items:start}.search input{width:100%}.stats,.live{justify-self:start}.rocket-head{flex-wrap:wrap}.rocket-meta{max-width:none;justify-content:flex-start;flex-basis:100%;padding-left:44px}.rocket-children{margin-left:15px}}@media(max-width:640px){.discover-view{padding:20px 16px}.masthead{display:grid}.masthead button{justify-self:start}.rocket{padding:16px}}@media(max-width:380px){.avatar,.rocket-logo{width:36px;height:36px}.toggle,.toggle-spacer{width:24px;height:24px;min-height:24px}.rocket-meta{padding-left:0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.masthead-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end}.tree-link{min-height:32px;border:1px solid var(--line);border-radius:7px;padding:0 11px;color:var(--text);background:transparent;font-size:.78rem;font-weight:700;cursor:pointer}.tree-link:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.tree-link:disabled{color:var(--muted);cursor:not-allowed}
</style>
</head><body><main id="app"></main></body></html>
