(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8537],{23002:function(e,t,n){"use strict";n.d(t,{q:function(){return In},vc:function(){return zt},q_:function(){return Sn}});var r=n(72947),a=w(),i=e=>g(e,a),o=w();i.write=e=>g(e,o);var l=w();i.onStart=e=>g(e,l);var s=w();i.onFrame=e=>g(e,s);var u=w();i.onFinish=e=>g(e,u);var c=[];i.setTimeout=(e,t)=>{let n=i.now()+t,r=()=>{let e=c.findIndex((e=>e.cancel==r));~e&&c.splice(e,1),h-=~e?1:0},a={time:n,handler:e,cancel:r};return c.splice(f(n),0,a),h+=1,v(),a};var f=e=>~(~c.findIndex((t=>t.time>e))||~c.length);i.cancel=e=>{l.delete(e),s.delete(e),u.delete(e),a.delete(e),o.delete(e)},i.sync=e=>{m=!0,i.batchedUpdates(e),m=!1},i.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,i.onStart(n)}return r.handler=e,r.cancel=()=>{l.delete(n),t=null},r};var d=typeof window<"u"?window.requestAnimationFrame:()=>{};i.use=e=>d=e,i.now=typeof performance<"u"?()=>performance.now():Date.now,i.batchedUpdates=e=>e(),i.catch=console.error,i.frameLoop="always",i.advance=()=>{"demand"!==i.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):b()};var p=-1,h=0,m=!1;function g(e,t){m?(t.delete(e),e(0)):(t.add(e),v())}function v(){p<0&&(p=0,"demand"!==i.frameLoop&&d(y))}function y(){~p&&(d(y),i.batchedUpdates(b))}function b(){let e=p;p=i.now();let t=f(p);t&&(_(c.splice(0,t),(e=>e.handler())),h-=t),h?(l.flush(),a.flush(e?Math.min(64,p-e):16.667),s.flush(),o.flush(),u.flush()):p=-1}function w(){let e=new Set,t=e;return{add(n){h+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(h-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,h-=t.size,_(t,(t=>t(n)&&e.add(t))),h+=e.size,t=e)}}}function _(e,t){e.forEach((e=>{try{t(e)}catch(zn){i.catch(zn)}}))}var S=n(2784),x=Object.defineProperty,k={};function E(){}((e,t)=>{for(var n in t)x(e,n,{get:t[n],enumerable:!0})})(k,{assign:()=>V,colors:()=>T,createStringInterpolator:()=>j,skipAnimation:()=>A,to:()=>N,willAdvance:()=>F});var P={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function C(e,t){if(P.arr(e)){if(!P.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function M(e,t,n){if(P.arr(e))for(let r=0;rP.und(e)?[]:P.arr(e)?e:[e];function L(e,t){if(e.size){let n=Array.from(e);e.clear(),z(n,t)}}var j,N,R=(e,...t)=>L(e,(e=>e(...t))),O=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),T=null,A=!1,F=E,V=e=>{e.to&&(N=e.to),e.now&&(i.now=e.now),void 0!==e.colors&&(T=e.colors),null!=e.skipAnimation&&(A=e.skipAnimation),e.createStringInterpolator&&(j=e.createStringInterpolator),e.requestAnimationFrame&&i.use(e.requestAnimationFrame),e.batchedUpdates&&(i.batchedUpdates=e.batchedUpdates),e.willAdvance&&(F=e.willAdvance),e.frameLoop&&(i.frameLoop=e.frameLoop)},U=new Set,D=[],B=[],Q=0,W={get idle(){return!U.size&&!D.length},start(e){Q>e.priority?(U.add(e),i.onStart($)):(H(e),i(G))},advance:G,sort(e){if(Q)i.onFrame((()=>W.sort(e)));else{let t=D.indexOf(e);~t&&(D.splice(t,1),q(e))}},clear(){D=[],U.clear()}};function $(){U.forEach(H),U.clear(),i(G)}function H(e){D.includes(e)||q(e)}function q(e){D.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(D,(t=>t.priority>e.priority)),0,e)}function G(e){let t=B;for(let n=0;n0}var Y="[-+]?\\d*\\.?\\d+",K=Y+"%";function X(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Z=new RegExp("rgb"+X(Y,Y,Y)),J=new RegExp("rgba"+X(Y,Y,Y,Y)),ee=new RegExp("hsl"+X(Y,K,K)),te=new RegExp("hsla"+X(Y,K,K,Y)),ne=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,re=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{6})$/,ie=/^#([0-9a-fA-F]{8})$/;function oe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function le(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=oe(a,r,e+1/3),o=oe(a,r,e),l=oe(a,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*l)<<8}function se(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function ue(e){return(parseFloat(e)%360+360)%360/360}function ce(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function de(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ae.exec(e))?parseInt(t[1]+"ff",16)>>>0:T&&void 0!==T[e]?T[e]:(t=Z.exec(e))?(se(t[1])<<24|se(t[2])<<16|se(t[3])<<8|255)>>>0:(t=J.exec(e))?(se(t[1])<<24|se(t[2])<<16|se(t[3])<<8|ce(t[4]))>>>0:(t=ne.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ie.exec(e))?parseInt(t[1],16)>>>0:(t=re.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ee.exec(e))?(255|le(ue(t[1]),fe(t[2]),fe(t[3])))>>>0:(t=te.exec(e))?(le(ue(t[1]),fe(t[2]),fe(t[3]))|ce(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}var pe=(e,t,n)=>{if(P.fun(e))return e;if(P.arr(e))return pe({range:e,output:t,extrapolate:n});if(P.str(e.output[0]))return j(e);let r=e,a=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(e=>e);return e=>{let t=function(e,t){for(var n=1;n=e);++n);return n-1}(e,i);return function(e,t,n,r,a,i,o,l,s){let u=s?s(e):e;if(un){if("identity"===l)return u;"clamp"===l&&(u=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:a===1/0?u+=r:u=u*(a-r)+r,u)}(e,i[t],i[t+1],a[t],a[t+1],s,o,l,r.map)}};var he=1.70158,me=1.525*he,ge=he+1,ve=2*Math.PI/3,ye=2*Math.PI/4.5,be=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,we={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>ge*e*e*e-he*e*e,easeOutBack:e=>1+ge*Math.pow(e-1,3)+he*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(me+1)*e-me)/2:(Math.pow(2*e-2,2)*((me+1)*(2*e-2)+me)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ve),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ve)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ye)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ye)/2+1,easeInBounce:e=>1-be(1-e),easeOutBounce:be,easeInOutBounce:e=>e<.5?(1-be(1-2*e))/2:(1+be(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},_e=Symbol.for("FluidValue.get"),Se=Symbol.for("FluidValue.observers"),xe=e=>Boolean(e&&e[_e]),ke=e=>e&&e[_e]?e[_e]():e,Ee=e=>e[Se]||null;function Pe(e,t){let n=e[Se];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Ce=class{[_e];[Se];constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");ze(this,e)}},ze=(e,t)=>je(e,_e,t);function Me(e,t){if(e[_e]){let n=e[Se];n||je(e,Se,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ie(e,t){let n=e[Se];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[Se]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Le,je=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ne=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Re=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Oe=new RegExp(`(${Ne.source})(%|[a-z]+)`,"i"),Te=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ae=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Fe=e=>{let[t,n]=Ve(e);if(!t||O())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(n)||e}return n&&Ae.test(n)?Fe(n):n||e},Ve=e=>{let t=Ae.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},Ue=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,De=e=>{Le||(Le=T?new RegExp(`(${Object.keys(T).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map((e=>ke(e).replace(Ae,Fe).replace(Re,de).replace(Le,de))),n=t.map((e=>e.match(Ne).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>pe({...e,output:t})));return e=>{let n=!Oe.test(t[0])&&t.find((e=>Oe.test(e)))?.replace(Ne,""),a=0;return t[0].replace(Ne,(()=>`${r[a++](e)}${n||""}`)).replace(Te,Ue)}},Be="react-spring: ",Qe=e=>{let t=e,n=!1;if("function"!=typeof t)throw new TypeError(`${Be}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},We=Qe(console.warn);var $e=Qe(console.warn);function He(e){return P.str(e)&&("#"==e[0]||/\d/.test(e)||!O()&&Ae.test(e)||e in(T||{}))}new WeakMap;new Set,new WeakMap,new WeakMap,new WeakMap;var qe=O()?S.useEffect:S.useLayoutEffect;function Ge(){let e=(0,S.useState)()[1],t=(()=>{let e=(0,S.useRef)(!1);return qe((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var Ye=e=>(0,S.useEffect)(e,Ke),Ke=[];function Xe(e){let t=(0,S.useRef)();return(0,S.useEffect)((()=>{t.current=e})),t.current}var Ze=Symbol.for("Animated:node"),Je=e=>e&&e[Ze],et=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,Ze,t),tt=e=>e&&e[Ze]&&e[Ze].getPayload(),nt=class{payload;constructor(){et(this,this)}getPayload(){return this.payload||[]}},rt=class extends nt{constructor(e){super(),this._value=e,P.num(this._value)&&(this.lastPosition=this._value)}done=!0;elapsedTime;lastPosition;lastVelocity;v0;durationProgress=0;static create(e){return new rt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return P.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,P.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},at=class extends rt{_string=null;_toString;constructor(e){super(0),this._toString=pe({output:[e,e]})}static create(e){return new at(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(P.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=pe({output:[this.getValue(),e]})),this._value=0,super.reset()}},it={dependencies:null},ot=class extends nt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return M(this.source,((n,r)=>{var a;(a=n)&&a[Ze]===a?t[r]=n.getValue(e):xe(n)?t[r]=ke(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&z(this.payload,(e=>e.reset()))}_makePayload(e){if(e){let t=new Set;return M(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){it.dependencies&&xe(e)&&it.dependencies.add(e);let t=tt(e);t&&z(t,(e=>this.add(e)))}},lt=class extends ot{constructor(e){super(e)}static create(e){return new lt(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){let t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(st)),!0)}};function st(e){return(He(e)?at:rt).create(e)}function ut(e){let t=Je(e);return t?t.constructor:P.arr(e)?lt:He(e)?at:rt}var ct=(e,t)=>{let n=!P.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,S.forwardRef)(((r,a)=>{let o=(0,S.useRef)(null),l=n&&(0,S.useCallback)((e=>{o.current=function(e,t){return e&&(P.fun(e)?e(t):e.current=t),t}(a,e)}),[a]),[s,u]=function(e,t){let n=new Set;return it.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new ot(e),it.dependencies=null,[e,n]}(r,t),c=Ge(),f=()=>{let e=o.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},d=new ft(f,u),p=(0,S.useRef)();qe((()=>(p.current=d,z(u,(e=>Me(e,d))),()=>{p.current&&(z(p.current.deps,(e=>Ie(e,p.current))),i.cancel(p.current.update))}))),(0,S.useEffect)(f,[]),Ye((()=>()=>{let e=p.current;z(e.deps,(t=>Ie(t,e)))}));let h=t.getComponentProps(s.getValue());return S.createElement(e,{...h,ref:l})}))},ft=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&i.write(this.update)}};var dt=Symbol.for("AnimatedComponent"),pt=e=>P.str(e)?e:e&&P.str(e.displayName)?e.displayName:P.fun(e)&&e.name||null;function ht(e,...t){return P.fun(e)?e(...t):e}var mt=(e,t)=>!0===e||!!(t&&e&&(P.fun(e)?e(t):I(e).includes(t))),gt=(e,t)=>P.obj(e)?t&&e[t]:e,vt=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,yt=e=>e,bt=(e,t=yt)=>{let n=wt;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));let r={};for(let a of n){let n=t(e[a],a);P.und(n)||(r[a]=n)}return r},wt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],_t={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function St(e){let t=function(e){let t={},n=0;if(M(e,((e,r)=>{_t[r]||(t[r]=e,n++)})),n)return t}(e);if(t){let n={to:t};return M(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function xt(e){return e=ke(e),P.arr(e)?e.map(xt):He(e)?k.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function kt(e){for(let t in e)return!0;return!1}function Et(e){return P.fun(e)||P.arr(e)&&P.obj(e[0])}function Pt(e,t){e.ref?.delete(e),t?.delete(e)}function Ct(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var zt={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Mt={...zt.default,mass:1,damping:1,easing:we.linear,clamp:!1};function It(e,t){if(P.und(t.decay)){let n=!P.und(t.tension)||!P.und(t.friction);(n||!P.und(t.frequency)||!P.und(t.damping)||!P.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Lt=[];function jt(e,{key:t,props:n,defaultProps:r,state:a,actions:o}){return new Promise(((l,s)=>{let u,c,f=mt(n.cancel??r?.cancel,t);if(f)h();else{P.und(n.pause)||(a.paused=mt(n.pause,t));let e=r?.pause;!0!==e&&(e=a.paused||mt(e,t)),u=ht(n.delay||0,t),e?(a.resumeQueue.add(p),o.pause()):(o.resume(),p())}function d(){a.resumeQueue.add(p),a.timeouts.delete(c),c.cancel(),u=c.time-i.now()}function p(){u>0&&!k.skipAnimation?(a.delayed=!0,c=i.setTimeout(h,u),a.pauseQueue.add(d),a.timeouts.add(c)):h()}function h(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(c),e<=(a.cancelId||0)&&(f=!0);try{o.start({...n,callId:e,cancel:f},l)}catch(g){s(g)}}}))}var Nt=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Tt(e.get()):t.every((e=>e.noop))?Rt(e.get()):Ot(e.get(),t.every((e=>e.finished))),Rt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ot=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Tt=e=>({value:e,cancelled:!0,finished:!1});function At(e,t,n,r){let{callId:a,parentId:o,onRest:l}=t,{asyncTo:s,promise:u}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;let c,f,d,p=bt(t,((e,t)=>"onRest"===t?void 0:e)),h=new Promise(((e,t)=>(c=e,f=t))),m=e=>{let t=a<=(n.cancelId||0)&&Tt(r)||a!==n.asyncId&&Ot(r,!1);if(t)throw e.result=t,f(e),e},g=(e,t)=>{let i=new Vt,o=new Ut;return(async()=>{if(k.skipAnimation)throw Ft(n),o.result=Ot(r,!1),f(o),o;m(i);let l=P.obj(e)?{...e}:{...t,to:e};l.parentId=a,M(p,((e,t)=>{P.und(l[t])&&(l[t]=e)}));let s=await r.start(l);return m(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),s})()};if(k.skipAnimation)return Ft(n),Ot(r,!1);try{let t;t=P.arr(e)?(async e=>{for(let t of e)await g(t)})(e):Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([t.then(c),h]),d=Ot(r.get(),!0,!1)}catch(w){if(w instanceof Vt)d=w.result;else{if(!(w instanceof Ut))throw w;d=w.result}}finally{a==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?u:void 0)}return P.fun(l)&&i.batchedUpdates((()=>{l(d,r,r.item)})),d})():u}function Ft(e,t){L(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Vt=class extends Error{result;constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Ut=class extends Error{result;constructor(){super("SkipAnimationSignal")}},Dt=e=>e instanceof Qt,Bt=1,Qt=class extends Ce{id=Bt++;_priority=0;get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=Je(this);return e&&e.getValue()}to(...e){return k.to(this,e)}interpolate(...e){return We(`${Be}The "interpolate" function is deprecated in v9 (use "to" instead)`),k.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Pe(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||W.sort(this),Pe(this,{type:"priority",parent:this,priority:e})}},Wt=Symbol.for("SpringPhase"),$t=e=>(1&e[Wt])>0,Ht=e=>(2&e[Wt])>0,qt=e=>(4&e[Wt])>0,Gt=(e,t)=>t?e[Wt]|=3:e[Wt]&=-3,Yt=(e,t)=>t?e[Wt]|=4:e[Wt]&=-5,Kt=class extends Qt{key;animation=new class{changed=!1;values=Lt;toValues=null;fromValues=Lt;to;from;config=new class{tension;friction;frequency;damping;mass;velocity=0;restVelocity;precision;progress;duration;easing;clamp;bounce;decay;round;constructor(){Object.assign(this,Mt)}};immediate=!1};queue;defaultProps={};_state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_pendingCalls=new Set;_lastCallId=0;_lastToId=0;_memoizedDuration=0;constructor(e,t){if(super(),!P.und(e)||!P.und(t)){let n=P.obj(e)?{...e}:{...t,from:e};P.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ht(this)||this._state.asyncTo)||qt(this)}get goal(){return ke(this.animation.to)}get velocity(){let e=Je(this);return e instanceof rt?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return $t(this)}get isAnimating(){return Ht(this)}get isPaused(){return qt(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{config:a,toValues:i}=r,o=tt(r.to);!o&&xe(r.to)&&(i=I(ke(r.to))),r.values.forEach(((l,s)=>{if(l.done)return;let u=l.constructor==at?1:o?o[s].lastPosition:i[s],c=r.immediate,f=u;if(!c){if(f=l.lastPosition,a.tension<=0)return void(l.done=!0);let t,n=l.elapsedTime+=e,i=r.fromValues[s],o=null!=l.v0?l.v0:l.v0=P.arr(a.velocity)?a.velocity[s]:a.velocity,d=a.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(P.und(a.duration))if(a.decay){let e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*n);f=i+o/(1-e)*(1-r),c=Math.abs(l.lastPosition-f)<=d,t=o*r}else{t=null==l.lastVelocity?o:l.lastVelocity;let n,r=a.restVelocity||d/10,s=a.clamp?0:a.bounce,p=!P.und(s),h=i==u?l.v0>0:ir,n||(c=Math.abs(u-f)<=d,!c));++e){p&&(m=f==u||f>u==h,m&&(t=-t*s,f=u)),t+=(1e-6*-a.tension*(f-u)+.001*-a.friction*t)/a.mass*g,f+=t*g}}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,n=l.elapsedTime+=e)),r=(a.progress||0)+n/this._memoizedDuration,r=r>1?1:r<0?0:r,l.durationProgress=r),f=i+a.easing(r)*(u-i),t=(f-l.lastPosition)/e,c=1==r}l.lastVelocity=t,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[s].done&&(c=!1),c?l.done=!0:t=!1,l.setValue(f,a.round)&&(n=!0)}));let l=Je(this),s=l.getValue();if(t){let e=ke(r.to);s===e&&!n||a.decay?n&&a.decay&&this._onChange(s):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(s)}set(e){return i.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ht(this)){let{to:e,config:t}=this.animation;i.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return P.und(e)?(n=this.queue||[],this.queue=[]):n=[P.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Nt(this,e)))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),Ft(this._state,e&&this._lastCallId),i.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;n=P.obj(n)?n[t]:n,(null==n||Et(n))&&(n=void 0),r=P.obj(r)?r[t]:r,null==r&&(r=void 0);let a={to:n,from:r};return $t(this)||(e.reverse&&([n,r]=[r,n]),r=ke(r),P.und(r)?Je(this)||this._set(n):this._set(r)),a}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,bt(e,((e,t)=>/^on/.test(t)?gt(e,n):e))),rn(this,e,"onProps"),an(this,"onProps",e,this);let a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let i=this._state;return jt(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{qt(this)||(Yt(this,!0),R(i.pauseQueue),an(this,"onPause",Ot(this,Xt(this,this.animation.to)),this))},resume:()=>{qt(this)&&(Yt(this,!1),Ht(this)&&this._resume(),R(i.resumeQueue),an(this,"onResume",Ot(this,Xt(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){let t=Zt(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Tt(this));let r=!P.und(e.to),a=!P.und(e.from);if(r||a){if(!(t.callId>this._lastToId))return n(Tt(this));this._lastToId=t.callId}let{key:o,defaultProps:l,animation:s}=this,{to:u,from:c}=s,{to:f=u,from:d=c}=e;a&&!r&&(!t.default||P.und(f))&&(f=d),t.reverse&&([f,d]=[d,f]);let p=!C(d,c);p&&(s.from=d),d=ke(d);let h=!C(f,u);h&&this._focus(f);let m=Et(t.to),{config:g}=s,{decay:v,velocity:y}=g;(r||a)&&(g.velocity=0),t.config&&!m&&function(e,t,n){n&&(It(n={...n},t),t={...n,...t}),It(e,t),Object.assign(e,t);for(let o in Mt)null==e[o]&&(e[o]=Mt[o]);let{mass:r,frequency:a,damping:i}=e;P.und(a)||(a<.01&&(a=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/a,2)*r,e.friction=4*Math.PI*i*r/a)}(g,ht(t.config,o),t.config!==l.config?ht(l.config,o):void 0);let b=Je(this);if(!b||P.und(f))return n(Ot(this,!0));let w=P.und(t.reset)?a&&!t.default:!P.und(d)&&mt(t.reset,o),_=w?d:this.get(),S=xt(f),x=P.num(S)||P.arr(S)||He(S),k=!m&&(!x||mt(l.immediate||t.immediate,o));if(h){let e=ut(f);if(e!==b.constructor){if(!k)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(S)}}let E=b.constructor,M=xe(f),L=!1;if(!M){let e=w||!$t(this)&&p;(h||e)&&(L=C(xt(_),S),M=!L),(!C(s.immediate,k)&&!k||!C(g.decay,v)||!C(g.velocity,y))&&(M=!0)}if(L&&Ht(this)&&(s.changed&&!w?M=!0:M||this._stop(u)),!m&&((M||xe(u))&&(s.values=b.getPayload(),s.toValues=xe(f)?null:E==at?[1]:I(S)),s.immediate!=k&&(s.immediate=k,!k&&!w&&this._set(u)),M)){let{onRest:e}=s;z(nn,(e=>rn(this,t,e)));let r=Ot(this,Xt(this,u));R(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&i.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?ht(l.onRest,r):s.onStart?.(r,this)}))}w&&this._set(_),m?n(At(t.to,t,this._state,this)):M?this._start():Ht(this)&&!h?this._pendingCalls.add(n):n(Rt(_))}_focus(e){let t=this.animation;e!==t.to&&(Ee(this)&&this._detach(),t.to=e,Ee(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;xe(t)&&(Me(t,this),Dt(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;xe(e)&&Ie(e,this)}_set(e,t=!0){let n=ke(e);if(!P.und(n)){let e=Je(this);if(!e||!C(n,e.getValue())){let r=ut(n);e&&e.constructor==r?e.setValue(n):et(this,r.create(n)),e&&i.batchedUpdates((()=>{this._onChange(n,t)}))}}return Je(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,an(this,"onStart",Ot(this,Xt(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ht(this.animation.onChange,e,this)),ht(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;Je(this).reset(ke(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Ht(this)||(Gt(this,!0),qt(this)||this._resume())}_resume(){k.skipAnimation?this.finish():W.start(this)}_stop(e,t){if(Ht(this)){Gt(this,!1);let n=this.animation;z(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Pe(this,{type:"idle",parent:this});let r=t?Tt(this.get()):Ot(this.get(),Xt(this,e??n.to));R(this._pendingCalls,r),n.changed&&(n.changed=!1,an(this,"onRest",r,this))}}};function Xt(e,t){let n=xt(t);return C(xt(e.get()),n)}function Zt(e,t=e.loop,n=e.to){let r=ht(t);if(r){let a=!0!==r&&St(r),i=(a||e).reverse,o=!a||a.reset;return Jt({...e,loop:t,default:!1,pause:void 0,to:!i||Et(n)?n:void 0,from:o?e.from:void 0,reset:o,...a})}}function Jt(e){let{to:t,from:n}=e=St(e),r=new Set;return P.obj(t)&&tn(t,r),P.obj(n)&&tn(n,r),e.keys=r.size?Array.from(r):null,e}function en(e){let t=Jt(e);return P.und(t.default)&&(t.default=bt(t)),t}function tn(e,t){M(e,((e,n)=>null!=e&&t.add(n)))}var nn=["onStart","onRest","onChange","onPause","onResume"];function rn(e,t,n){e.animation[n]=t[n]!==vt(t,n)?gt(t[n],e.key):void 0}function an(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var on=["onStart","onChange","onRest"],ln=1,sn=class{id=ln++;springs={};queue=[];ref;_flush;_initialProps;_lastAsyncId=0;_active=new Set;_changed=new Set;_started=!1;_item;_state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_events={onStart:new Map,onChange:new Map,onRest:new Map};constructor(e,t){this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(let t in e){let n=e[t];P.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Jt(e)),this}start(e){let{queue:t}=this;return e?t=I(e).map(Jt):this.queue=[],this._flush?this._flush(this,t):(mn(this,t),un(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;z(I(t),(t=>n[t].stop(!!e)))}else Ft(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(P.und(e))this.start({pause:!0});else{let t=this.springs;z(I(e),(e=>t[e].pause()))}return this}resume(e){if(P.und(e))this.start({pause:!1});else{let t=this.springs;z(I(e),(e=>t[e].resume()))}return this}each(e){M(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,L(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));let i=!r&&this._started,o=a||i&&n.size?this.get():null;a&&t.size&&L(t,(([e,t])=>{t.value=o,e(t,this,this._item)})),i&&(this._started=!1,L(n,(([e,t])=>{t.value=o,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}i.onFrame(this._onFrame)}};function un(e,t){return Promise.all(t.map((t=>cn(e,t)))).then((t=>Nt(e,t)))}async function cn(e,t,n){let{keys:r,to:a,from:o,loop:l,onRest:s,onResolve:u}=t,c=P.obj(t.default)&&t.default;l&&(t.loop=!1),!1===a&&(t.to=null),!1===o&&(t.from=null);let f=P.arr(a)||P.fun(a)?a:void 0;f?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):z(on,(n=>{let r=t[n];if(P.fun(r)){let a=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=a.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):a.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));let d=e._state;t.pause===!d.paused?(d.paused=t.pause,R(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let p=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),h=!0===t.cancel||!0===vt(t,"cancel");(f||h&&d.asyncId)&&p.push(jt(++e._lastAsyncId,{props:t,state:d,actions:{pause:E,resume:E,start(t,n){h?(Ft(d,e._lastAsyncId),n(Tt(e))):(t.onRest=s,n(At(f,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));let m=Nt(e,await Promise.all(p));if(l&&m.finished&&(!n||!m.noop)){let n=Zt(t,l,a);if(n)return mn(e,[n]),cn(e,n,!0)}return u&&i.batchedUpdates((()=>u(m,e,e.item))),m}function fn(e,t){let n={...e.springs};return t&&z(I(t),(e=>{P.und(e.keys)&&(e=Jt(e)),P.obj(e.to)||(e={...e,to:void 0}),hn(n,e,(e=>pn(e)))})),dn(e,n),n}function dn(e,t){M(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Me(t,e))}))}function pn(e,t){let n=new Kt;return n.key=e,t&&Me(n,t),n}function hn(e,t,n){t.keys&&z(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function mn(e,t){z(t,(t=>{hn(e.springs,t,(t=>pn(t,e)))}))}var gn,vn,yn=({children:e,...t})=>{let n=(0,S.useContext)(bn),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,S.useState)((()=>({inputs:t,result:e()}))),r=(0,S.useRef)(),a=r.current,i=a;return i?Boolean(t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=i,a==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:r,immediate:a})),[r,a]);let{Provider:i}=bn;return S.createElement(i,{value:t},e)},bn=(gn=yn,vn={},Object.assign(gn,S.createContext(vn)),gn.Provider._context=gn,gn.Consumer._context=gn,gn);yn.Provider=bn.Provider,yn.Consumer=bn.Consumer;var wn=()=>{let e=[],t=function(t){$e(`${Be}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let r=[];return z(e,((e,a)=>{if(P.und(t))r.push(e.start());else{let i=n(t,e,a);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return z(e,(e=>e.pause(...arguments))),this},t.resume=function(){return z(e,(e=>e.resume(...arguments))),this},t.set=function(t){z(e,((e,n)=>{let r=P.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){let n=[];return z(e,((e,r)=>{if(P.und(t))n.push(e.start());else{let a=this._getProps(t,e,r);a&&n.push(e.start(a))}})),n},t.stop=function(){return z(e,(e=>e.stop(...arguments))),this},t.update=function(t){return z(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};let n=function(e,t,n){return P.fun(e)?e(n,t):e};return t._getProps=n,t};function _n(e,t,n){let r=P.fun(t)&&t;r&&!n&&(n=[]);let a=(0,S.useMemo)((()=>r||3==arguments.length?wn():void 0),[]),i=(0,S.useRef)(0),o=Ge(),l=(0,S.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){let n=fn(e,t);return i.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?un(e,t):new Promise((r=>{dn(e,n),l.queue.push((()=>{r(un(e,t))})),o()}))}})),[]),s=(0,S.useRef)([...l.ctrls]),u=[],c=Xe(e)||0;function f(e,n){for(let a=e;a{z(s.current.slice(e,c),(e=>{Pt(e,a),e.stop(!0)})),s.current.length=e,f(c,e)}),[e]),(0,S.useMemo)((()=>{f(0,Math.min(c,e))}),n);let d=s.current.map(((e,t)=>fn(e,u[t]))),p=(0,S.useContext)(yn),h=Xe(p),m=p!==h&&kt(p);qe((()=>{i.current++,l.ctrls=s.current;let{queue:e}=l;e.length&&(l.queue=[],z(e,(e=>e()))),z(s.current,((e,t)=>{a?.add(e),m&&e.start({default:p});let n=u[t];n&&(Ct(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Ye((()=>()=>{z(l.ctrls,(e=>e.stop(!0)))}));let g=d.map((e=>({...e})));return a?[g,a]:g}function Sn(e,t){let n=P.fun(e),[[r],a]=_n(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,a]:r}var xn=class extends Qt{constructor(e,t){super(),this.source=e,this.calc=pe(...t);let n=this._get(),r=ut(n);et(this,r.create(n))}key;idle=!0;calc;_active=new Set;advance(e){let t=this._get();C(t,this.get())||(Je(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&En(this._active)&&Pn(this)}_get(){let e=P.arr(this.source)?this.source.map(ke):I(ke(this.source));return this.calc(...e)}_start(){this.idle&&!En(this._active)&&(this.idle=!1,z(tt(this),(e=>{e.done=!1})),k.skipAnimation?(i.batchedUpdates((()=>this.advance())),Pn(this)):W.start(this))}_attach(){let e=1;z(I(this.source),(t=>{xe(t)&&Me(t,this),Dt(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){z(I(this.source),(e=>{xe(e)&&Ie(e,this)})),this._active.clear(),Pn(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=I(this.source).reduce(((e,t)=>Math.max(e,(Dt(t)?t.priority:0)+1)),0))}};function kn(e){return!1!==e.idle}function En(e){return!e.size||Array.from(e).every(kn)}function Pn(e){e.idle||(e.idle=!0,z(tt(e),(e=>{e.done=!0})),Pe(e,{type:"idle",parent:e}))}k.assign({createStringInterpolator:De,to:(e,t)=>new xn(e,t)});W.advance;var Cn=n(96995),zn=["primitive"].concat(Object.keys(Cn).filter((e=>/^[A-Z]/.test(e))).map((e=>e[0].toLowerCase()+e.slice(1))));k.assign({createStringInterpolator:De,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},frameLoop:"demand"}),(0,r.gy)((()=>{i.advance()}));var Mn=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new ot(e)),getComponentProps:r=(e=>e)}={})=>{let a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{let t=pt(e)||"Anonymous";return(e=P.str(e)?i[e]||(i[e]=ct(e,a)):e[dt]||(e[dt]=ct(e,a))).displayName=`Animated(${t})`,e};return M(e,((t,n)=>{P.arr(e)&&(n=pt(t)),i[n]=i(t)})),{animated:i}})(zn,{applyAnimatedValues:r.nH}),In=Mn.animated},67934:function(e,t,n){"use strict";n.d(t,{V:function(){return v}});var r=n(7896),a=n(2784),i=n(28316),o=n(96995),l=n(72947);const s=new o.Vector3,u=new o.Vector3,c=new o.Vector3;function f(e,t,n){const r=s.setFromMatrixPosition(e.matrixWorld);r.project(t);const a=n.width/2,i=n.height/2;return[r.x*a+a,-r.y*i+i]}const d=e=>Math.abs(e)<1e-10?0:e;function p(e,t,n=""){let r="matrix3d(";for(let a=0;16!==a;a++)r+=d(t[a]*e.elements[a])+(15!==a?",":")");return n+r}const h=(m=[1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1],e=>p(e,m));var m;const g=(e,t)=>{return p(e,[1/(n=t),1/n,1/n,1,-1/n,-1/n,-1/n,-1,1/n,1/n,1/n,1,1,1,1,1],"translate(-50%,-50%)");var n},v=a.forwardRef((({children:e,eps:t=.001,style:n,className:p,prepend:m,center:v,fullscreen:y,portal:b,distanceFactor:w,sprite:_=!1,transform:S=!1,occlude:x,onOcclude:k,zIndexRange:E=[16777271,0],calculatePosition:P=f,as:C="div",wrapperClass:z,pointerEvents:M="auto",...I},L)=>{var j;const N=(0,l.Ky)((({gl:e})=>e)),R=(0,l.Ky)((({camera:e})=>e)),O=(0,l.Ky)((({scene:e})=>e)),T=(0,l.Ky)((({size:e})=>e)),A=(0,l.Ky)((({raycaster:e})=>e)),[F]=a.useState((()=>document.createElement(C))),V=a.useRef(null),U=a.useRef(0),D=a.useRef([0,0]),B=a.useRef(null),Q=a.useRef(null),W=null!==(j=null==b?void 0:b.current)&&void 0!==j?j:N.domElement.parentNode;a.useEffect((()=>{if(V.current){if(O.updateMatrixWorld(),S)F.style.cssText="position:absolute;top:0;left:0;pointer-events:none;overflow:hidden;";else{const e=P(V.current,R,T);F.style.cssText=`position:absolute;top:0;left:0;transform:translate3d(${e[0]}px,${e[1]}px,0);transform-origin:0 0;`}return W&&(m?W.prepend(F):W.appendChild(F)),()=>{W&&W.removeChild(F),i.unmountComponentAtNode(F)}}}),[W,S]),a.useLayoutEffect((()=>{z&&(F.className=z)}),[z]);const $=a.useMemo((()=>S?{position:"absolute",top:0,left:0,width:T.width,height:T.height,transformStyle:"preserve-3d",pointerEvents:"none"}:{position:"absolute",transform:v?"translate3d(-50%,-50%,0)":"none",...y&&{top:-T.height/2,left:-T.width/2,width:T.width,height:T.height},...n}),[n,v,y,T,S]),H=a.useMemo((()=>({position:"absolute",pointerEvents:M})),[M]);a.useLayoutEffect((()=>{S?i.render(a.createElement("div",{ref:B,style:$},a.createElement("div",{ref:Q,style:H},a.createElement("div",{ref:L,className:p,style:n,children:e}))),F):i.render(a.createElement("div",{ref:L,style:$,className:p,children:e}),F)}));const q=a.useRef(!0);return(0,l.xQ)((()=>{if(V.current){R.updateMatrixWorld(),V.current.updateWorldMatrix(!0,!1);const e=S?D.current:P(V.current,R,T);if(S||Math.abs(U.current-R.zoom)>t||Math.abs(D.current[0]-e[0])>t||Math.abs(D.current[1]-e[1])>t){const t=function(e,t){const n=s.setFromMatrixPosition(e.matrixWorld),r=u.setFromMatrixPosition(t.matrixWorld),a=n.sub(r),i=t.getWorldDirection(c);return a.angleTo(i)>Math.PI/2}(V.current,R);let n=!1;"boolean"===typeof x?!0===x&&(n=[O]):Array.isArray(x)&&(n=x.map((e=>e.current)));const r=q.current;if(n){const e=function(e,t,n,r){const a=s.setFromMatrixPosition(e.matrixWorld),i=a.clone();i.project(t),n.setFromCamera(i,t);const o=n.intersectObjects(r,!0);if(o.length){const e=o[0].distance;return a.distanceTo(n.ray.origin){const a="function"===typeof e?e(t):e;if(a!==t){const e=t;t=r?a:Object.assign({},t,a),n.forEach((n=>n(t,e)))}},a=()=>t,i={setState:r,getState:a,subscribe:(e,r,i)=>r||i?((e,r=a,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let o=r(t);function l(){const n=r(t);if(!i(o,n)){const t=o;e(o=n,t)}}return n.add(l),()=>n.delete(l)})(e,r,i):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,a,i),i}const o="undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?a.useEffect:a.useLayoutEffect;var l=n(7962),s=n.n(l),u=n(14616),c=n(69378),f=n.n(c);const d=[];function p(e,t,n,r=0,a=!1){for(const o of t)if(f()(n,o.args)){if(a)return;if(o.error)throw o.error;if(o.response)return o.response;throw o.promise}const i={args:n,promise:e(...n).then((e=>i.response=null==e||e)).catch((e=>i.error=null!=e?e:"unknown error")).then((()=>{r>0&&setTimeout((()=>{const e=t.indexOf(i);-1!==e&&t.splice(e,1)}),r)}))};if(t.push(i),!a)throw i.promise}function h(e,...t){if(void 0===t||0===t.length)e.splice(0,e.length);else{const n=e.find((e=>f()(t,e.args)));if(n){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}}function m(e,...t){return p(e,d,t,m.lifespan)}m.lifespan=0,m.clear=(...e)=>h(d,...e),m.preload=(e,...t)=>{p(e,d,t,m.lifespan,!0)},m.peek=(...e)=>{var t;return null==(t=d.find((t=>f()(e,t.args))))?void 0:t.response};var g=function(e){return function(t){e.forEach((function(e){"function"===typeof e?e(t):null!=e&&(e.current=t)}))}},v=n(36386),y=n.n(v);function b(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:i}=void 0===e?{debounce:0,scroll:!1,offsetSize:!1}:e;const o=r||("undefined"===typeof window?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[l,s]=(0,a.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=(0,a.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:l}),c=t?"number"===typeof t?t:t.scroll:null,f=t?"number"===typeof t?t:t.resize:null,d=(0,a.useRef)(!1);(0,a.useEffect)((()=>(d.current=!0,()=>{d.current=!1})));const[p,h,m]=(0,a.useMemo)((()=>{const e=()=>{if(!u.current.element)return;const{left:e,top:t,width:n,height:r,bottom:a,right:o,x:l,y:c}=u.current.element.getBoundingClientRect(),f={left:e,top:t,width:n,height:r,bottom:a,right:o,x:l,y:c};u.current.element instanceof HTMLElement&&i&&(f.height=u.current.element.offsetHeight,f.width=u.current.element.offsetWidth),Object.freeze(f),d.current&&!S(u.current.lastBounds,f)&&s(u.current.lastBounds=f)};return[e,f?y()(e,f):e,c?y()(e,c):e]}),[s,i,c,f]);function g(){u.current.scrollContainers&&(u.current.scrollContainers.forEach((e=>e.removeEventListener("scroll",m,!0))),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function v(){u.current.element&&(u.current.resizeObserver=new o(m),u.current.resizeObserver.observe(u.current.element),n&&u.current.scrollContainers&&u.current.scrollContainers.forEach((e=>e.addEventListener("scroll",m,{capture:!0,passive:!0}))))}var b,_,x;return b=m,_=Boolean(n),(0,a.useEffect)((()=>{if(_){const e=b;return window.addEventListener("scroll",e,{capture:!0,passive:!0}),()=>{window.removeEventListener("scroll",e,!0)}}}),[b,_]),x=h,(0,a.useEffect)((()=>{const e=x;return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[x]),(0,a.useEffect)((()=>{g(),v()}),[n,m,h]),(0,a.useEffect)((()=>g),[]),[e=>{e&&e!==u.current.element&&(g(),u.current.element=e,u.current.scrollContainers=w(e),v())},l,p]}function w(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:a}=window.getComputedStyle(e);return[n,r,a].some((e=>"auto"===e||"scroll"===e))&&t.push(e),[...t,...w(e.parentElement)]}const _=["x","y","top","bottom","left","right","width","height"],S=(e,t)=>_.every((n=>e[n]===t[n]));const x={obj:e=>e===Object(e)&&!x.arr(e)&&"function"!==typeof e,fun:e=>"function"===typeof e,str:e=>"string"===typeof e,num:e=>"number"===typeof e,und:e=>void 0===e,arr:e=>Array.isArray(e),equ(e,t){if(typeof e!==typeof t||!!e!==!!t)return!1;if(x.str(e)||x.num(e)||x.obj(e))return e===t;if(x.arr(e)&&e==t)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!x.und(n)||e===t}};function k(e){return(e.eventObject||e.object).uuid+"/"+e.index+e.instanceId}function E(e,t,n,r){const a=n.get(t);a&&(n.delete(t),0===n.size&&(e.delete(r),a.target.releasePointerCapture(r)))}function P(e){const t=new r.Vector3;function n(e){return e.filter((e=>["Move","Over","Enter","Out","Leave"].some((t=>{var n;return null==(n=e.__r3f)?void 0:n.handlers["onPointer"+t]}))))}function a(t){const{internal:n}=e.getState();Array.from(n.hovered.values()).forEach((e=>{if(!t.length||!t.find((t=>t.object===e.object&&t.index===e.index&&t.instanceId===e.instanceId))){const r=e.eventObject.__r3f,a=null==r?void 0:r.handlers;if(n.hovered.delete(k(e)),null!=r&&r.eventCount){const n={...e,intersections:t||[]};null==a.onPointerOut||a.onPointerOut(n),null==a.onPointerLeave||a.onPointerLeave(n)}}}))}function i(e,t){t.forEach((t=>{var n;return null==(n=t.__r3f)||null==n.handlers.onPointerMissed?void 0:n.handlers.onPointerMissed(e)}))}return{handlePointer:r=>{switch(r){case"onPointerLeave":case"onPointerCancel":return()=>a([]);case"onLostPointerCapture":return t=>{const{internal:n}=e.getState();"pointerId"in t&&!n.capturedMap.has(t.pointerId)&&(n.capturedMap.delete(t.pointerId),a([]))}}return o=>{const{onPointerMissed:l,internal:s}=e.getState();!function(t){var n,r,a,i;const o=e.getState(),{raycaster:l,mouse:s,camera:u,size:c}=o,f=null==l.computeOffsets?void 0:l.computeOffsets(t,o),d=null!=(n=null==f?void 0:f.offsetX)?n:t.offsetX,p=null!=(r=null==f?void 0:f.offsetY)?r:t.offsetY,h=null!=(a=null==f?void 0:f.width)?a:c.width,m=null!=(i=null==f?void 0:f.height)?i:c.height;s.set(d/h*2-1,-p/m*2+1),l.setFromCamera(s,u)}(o),s.lastEvent.current=o;const u="onPointerMove"===r,c="onClick"===r||"onContextMenu"===r||"onDoubleClick"===r,f=function(t,n){const{internal:r}=e.getState();if("pointerId"in n&&r.capturedMap.has(n.pointerId))for(let e of r.capturedMap.get(n.pointerId).values())t.push(e.intersection);return t}(function(t){const n=e.getState(),{raycaster:r,internal:a}=n;if(!r.enabled)return[];const i=new Set,o=[],l=t?t(a.interaction):a.interaction;let s=r.intersectObjects(l,!0).filter((e=>{const t=k(e);return!i.has(t)&&(i.add(t),!0)}));r.filter&&(s=r.filter(s,n));for(const e of s){let t=e.object;for(;t;){var u;null!=(u=t.__r3f)&&u.eventCount&&o.push({...e,eventObject:t}),t=t.parent}}return o}(u?n:void 0),o),d=c?function(t){const{internal:n}=e.getState(),r=t.offsetX-n.initialClick[0],a=t.offsetY-n.initialClick[1];return Math.round(Math.sqrt(r*r+a*a))}(o):0;"onPointerDown"===r&&(s.initialClick=[o.offsetX,o.offsetY],s.initialHits=f.map((e=>e.eventObject))),c&&!f.length&&d<=2&&(i(o,s.interaction),l&&l(o)),u&&a(f),function(n,r,i,o){const{raycaster:l,mouse:s,camera:u,internal:c}=e.getState();if(n.length){const e=t.set(s.x,s.y,0).unproject(u),f={stopped:!1};for(const t of n){const d=e=>{var n,r;return null!=(n=null==(r=c.capturedMap.get(e))?void 0:r.has(t.eventObject))&&n},p=e=>{const n={intersection:t,target:r.target};c.capturedMap.has(e)?c.capturedMap.get(e).set(t.eventObject,n):c.capturedMap.set(e,new Map([[t.eventObject,n]])),r.target.setPointerCapture(e)},h=e=>{const n=c.capturedMap.get(e);n&&E(c.capturedMap,t.eventObject,n,e)};let m={};for(let e in r){let t=r[e];"function"!==typeof t&&(m[e]=t)}let g={...t,...m,spaceX:s.x,spaceY:s.y,intersections:n,stopped:f.stopped,delta:i,unprojectedPoint:e,ray:l.ray,camera:u,stopPropagation:()=>{const e="pointerId"in r&&c.capturedMap.get(r.pointerId);(!e||e.has(t.eventObject))&&(g.stopped=f.stopped=!0,c.hovered.size&&Array.from(c.hovered.values()).find((e=>e.eventObject===t.eventObject)))&&a([...n.slice(0,n.indexOf(t)),t])},target:{hasPointerCapture:d,setPointerCapture:p,releasePointerCapture:h},currentTarget:{hasPointerCapture:d,setPointerCapture:p,releasePointerCapture:h},sourceEvent:r,nativeEvent:r};if(o(g),!0===f.stopped)break}}}(f,o,d,(e=>{const t=e.eventObject,n=t.__r3f,a=null==n?void 0:n.handlers;if(null!=n&&n.eventCount)if(u){if(a.onPointerOver||a.onPointerEnter||a.onPointerOut||a.onPointerLeave){const t=k(e),n=s.hovered.get(t);n?n.stopped&&e.stopPropagation():(s.hovered.set(t,e),null==a.onPointerOver||a.onPointerOver(e),null==a.onPointerEnter||a.onPointerEnter(e))}null==a.onPointerMove||a.onPointerMove(e)}else{const n=a[r];n?c&&!s.initialHits.includes(t)||(i(o,s.interaction.filter((e=>!s.initialHits.includes(e)))),n(e)):c&&s.initialHits.includes(t)&&i(o,s.interaction.filter((e=>!s.initialHits.includes(e))))}}))}}}}const C=e=>e&&!!e.getState,z=(e,t)=>{var n,r;return{root:C(e)?e:null!=(n=null==(r=e.__r3f)?void 0:r.root)?n:t.__r3f.root,container:C(e)?e.getState().scene:e}},M="__default",I={};let L={};function j(e,t){const n=e;return(null!=t&&t.primitive||!n.__r3f)&&(n.__r3f={root:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null,...t}),e}const N=e=>e&&e.isOrthographicCamera;function R(e){return Array.isArray(e)?Math.min(Math.max(e[0],window.devicePixelRatio),e[1]):e}const O=a.createContext(null),T=(e,t,n,l)=>{const{gl:s,size:u,shadows:c=!1,linear:f=!1,flat:d=!1,vr:p=!1,orthographic:h=!1,frameloop:m="always",dpr:g=1,performance:v,clock:y=new r.Clock,raycaster:b,camera:w,onPointerMissed:_}=l;c&&(s.shadowMap.enabled=!0,"object"===typeof c?Object.assign(s.shadowMap,c):s.shadowMap.type=r.PCFSoftShadowMap),f&&(s.outputEncoding=r.LinearEncoding),d&&(s.toneMapping=r.NoToneMapping),"never"===m&&(y.stop(),y.elapsedTime=0);const S=function(e){const t="function"===typeof e?i(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,a.useReducer)((e=>e+1),0),i=t.getState(),l=(0,a.useRef)(i),s=(0,a.useRef)(e),u=(0,a.useRef)(n),c=(0,a.useRef)(!1),f=(0,a.useRef)();let d;void 0===f.current&&(f.current=e(i));let p=!1;(l.current!==i||s.current!==e||u.current!==n||c.current)&&(d=e(i),p=!n(f.current,d)),o((()=>{p&&(f.current=d),l.current=i,s.current=e,u.current=n,c.current=!1}));const h=(0,a.useRef)(i);o((()=>{const e=()=>{try{const e=t.getState(),n=s.current(e);u.current(f.current,n)||(l.current=e,f.current=n,r())}catch(e){c.current=!0,r()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]);const m=p?d:f.current;return(0,a.useDebugValue)(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}(((i,o)=>{const u=new r.Raycaster,{params:c,...S}=b||{};e(u,{enabled:!0,...S,params:{...u.params,...c}});const x=w instanceof r.Camera,k=x?w:h?new r.OrthographicCamera(0,0,0,0,.1,1e3):new r.PerspectiveCamera(75,0,.1,1e3);x||(k.position.z=5,w&&e(k,w),null!=w&&w.rotation||k.lookAt(0,0,0));const E=R(g),P=new r.Vector3,C=new r.Vector3,z=new r.Vector3;function M(e=o().camera,t=C,n=o().size){const{width:a,height:i}=n,l=a/i;t instanceof r.Vector3?z.copy(t):z.set(...t);const s=e.getWorldPosition(P).distanceTo(z);if(N(e))return{width:a/e.zoom,height:i/e.zoom,factor:1,distance:s,aspect:l};{const t=e.fov*Math.PI/180,n=2*Math.tan(t/2)*s,r=n*(a/i);return{width:r,height:n,factor:a/r,distance:s,aspect:l}}}let I;const L=e=>i((t=>({performance:{...t.performance,current:e}})));return{gl:s,set:i,get:o,invalidate:()=>t(o()),advance:(e,t)=>n(e,t,o()),linear:f,flat:d,scene:j(new r.Scene),camera:k,controls:null,raycaster:u,clock:y,mouse:new r.Vector2,vr:p,frameloop:m,onPointerMissed:_,performance:{current:1,min:.5,max:1,debounce:200,...v,regress:()=>{const e=o();I&&clearTimeout(I),e.performance.current!==e.performance.min&&L(e.performance.min),I=setTimeout((()=>L(o().performance.max)),e.performance.debounce)}},size:{width:0,height:0},viewport:{initialDpr:E,dpr:E,width:0,height:0,aspect:0,distance:0,factor:0,getCurrentViewport:M},setSize:(e,t)=>{const n={width:e,height:t};i((e=>({size:n,viewport:{...e.viewport,...M(k,C,n)}})))},setDpr:e=>i((t=>({viewport:{...t.viewport,dpr:R(e)}}))),setFrameloop:(e="always")=>i((()=>({frameloop:e}))),events:{connected:!1},internal:{active:!1,priority:0,frames:0,lastProps:l,lastEvent:a.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(e,t=0)=>(i((({internal:n})=>({internal:{...n,priority:n.priority+(t>0?1:0),subscribers:[...n.subscribers,{ref:e,priority:t}].sort(((e,t)=>e.priority-t.priority))}}))),()=>{i((({internal:n})=>({internal:{...n,priority:n.priority-(t>0?1:0),subscribers:n.subscribers.filter((t=>t.ref!==e))}})))})}}})),x=S.getState();let k=x.size,E=x.viewport.dpr;return S.subscribe((()=>{const{camera:e,size:t,viewport:n,internal:a}=S.getState();t===k&&n.dpr===E||(e.manual||a.lastProps.camera instanceof r.Camera||(N(e)?(e.left=t.width/-2,e.right=t.width/2,e.top=t.height/2,e.bottom=t.height/-2):e.aspect=t.width/t.height,e.updateProjectionMatrix(),e.updateMatrixWorld()),s.setPixelRatio(n.dpr),s.setSize(t.width,t.height),k=t,E=n.dpr)})),u&&x.setSize(u.width,u.height),S.subscribe((e=>t(e))),S};function A(e,t){const n=t.length;return t.push(e),()=>{t.splice(n,1)}}let F,V=[],U=[],D=[];const B=e=>A(e,V);function Q(e,t){for(F=0;F({...e,[n]:t(n)})),{}),connect:t=>{var r;const{set:a,events:i}=e.getState();null==i.disconnect||i.disconnect(),a((e=>({events:{...e.events,connected:t}}))),Object.entries(null!=(r=null==i?void 0:i.handlers)?r:[]).forEach((([e,r])=>{const[a,i]=n[e];t.addEventListener(a,r,{passive:i})}))},disconnect:()=>{const{set:t,events:r}=e.getState();var a;r.connected&&(Object.entries(null!=(a=r.handlers)?a:[]).forEach((([e,t])=>{if(r&&r.connected instanceof HTMLElement){const[a]=n[e];r.connected.removeEventListener(a,t)}})),t((e=>({events:{...e.events,connected:!1}}))))}}}const H="undefined"!==typeof window?a.useLayoutEffect:a.useEffect;function q({set:e}){return H((()=>(e(new Promise((()=>null))),()=>e(!1))),[]),null}class G extends a.Component{constructor(...e){super(...e),this.state={error:!1}}componentDidCatch(e){this.props.set(e)}render(){return this.state.error?null:this.props.children}}G.getDerivedStateFromError=()=>({error:!0});const Y=a.forwardRef((function({children:e,fallback:t,tabIndex:n,resize:i,id:o,style:l,className:s,events:u,...c},f){const d=function(e){const t=a.useRef(e);return a.useLayoutEffect((()=>{t.current=e}),[e]),(...e)=>null==t.current?void 0:t.current(...e)}(c.onPointerMissed),[p,{width:h,height:m}]=b({scroll:!0,debounce:{scroll:50,resize:0},...i}),v=a.useRef(null),[y,w]=a.useState(!1),[_,S]=a.useState(!1);if(y)throw y;if(_)throw _;return H((()=>{h>0&&m>0&&function(e,t,{gl:n,size:i,mode:o=re[1],events:l,onCreated:s,...u}={}){var c,f,d,p,h;i||(i={width:null!=(f=null==(d=t.parentElement)?void 0:d.clientWidth)?f:0,height:null!=(p=null==(h=t.parentElement)?void 0:h.clientHeight)?p:0});let m=ne.get(t),g=null==m?void 0:m.fiber,v=null==m?void 0:m.store,y=null==(c=v)?void 0:c.getState();if(g&&y){void 0===u.dpr||x.equ(y.viewport.dpr,R(u.dpr))||y.setDpr(u.dpr),y.size.width===i.width&&y.size.height===i.height||y.setSize(i.width,i.height),y.frameloop!==u.frameloop&&y.setFrameloop(u.frameloop);u.linear!==y.internal.lastProps.linear&&(ue(t),g=void 0)}if(!g){const e=((e,t)=>{const n="function"===typeof e?e(t):e;if(a=n,null!=a&&a.render)return n;var a;const i=new r.WebGLRenderer({powerPreference:"high-performance",canvas:t,antialias:!0,alpha:!0,...e});i.outputEncoding=r.sRGBEncoding,i.toneMapping=r.ACESFilmicToneMapping,e&&le(i,e);return i})(n,t);u.vr&&(e.xr.enabled=!0,e.setAnimationLoop((e=>ie(e,!0)))),v=T(le,ae,ie,{gl:e,size:i,...u});const a=v.getState();g=oe.createContainer(v,re.indexOf(o),!1,null),ne.set(t,{fiber:g,store:v}),l&&a.set({events:l(v)})}if(v&&g)return oe.updateContainer(a.createElement(se,{store:v,element:e,onCreated:s,target:t}),g,null,(()=>{})),v;throw"Error creating root!"}(a.createElement(G,{set:S},a.createElement(a.Suspense,{fallback:a.createElement(q,{set:w})},e)),v.current,{...c,size:{width:h,height:m},onPointerMissed:d,events:u||$})}),[h,m,e,d]),H((()=>{const e=v.current;return()=>ue(e)}),[]),a.createElement("div",{ref:p,id:o,className:s,tabIndex:n,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",...l}},a.createElement("canvas",{ref:g([v,f]),style:{display:"block"}},t))}));function K(){const e=a.useContext(O);if(!e)throw"R3F hooks can only be used within the Canvas component!";return e}function X(e=(e=>e),t){return K()(e,t)}function Z(e,t=0){const n=K().getState().internal.subscribe,r=a.useRef(e);return a.useLayoutEffect((()=>{r.current=e}),[e]),a.useLayoutEffect((()=>n(r,t)),[t,n]),null}function J(e){const t={nodes:{},materials:{}};return e&&e.traverse((e=>{e.name&&(t.nodes[e.name]=e),e.material&&!t.materials[e.material.name]&&(t.materials[e.material.name]=e.material)})),t}function ee(e,t){return function(n,...r){const a=new n;return e&&e(a),Promise.all(r.map((e=>new Promise(((n,r)=>a.load(e,(e=>{e.scene&&Object.assign(e,J(e.scene)),n(e)}),t,(t=>r(`Could not load ${e}: ${t.message}`))))))))}}function te(e,t,n,r){const a=Array.isArray(t)?t:[t],i=m(ee(n,r),e,...a);return Array.isArray(t)?i:i[0]}te.preload=function(e,t,n){const r=Array.isArray(t)?t:[t];return m.preload(ee(n),e,...r)},te.clear=function(e,t){const n=Array.isArray(t)?t:[t];return m.clear(e,...n)};const ne=new Map,re=["legacy","blocking","concurrent"],{invalidate:ae,advance:ie}=function(e){let t,n=!1;function r(a){if(n=!0,t=0,Q(V,a),e.forEach((e=>{const n=e.store.getState();n.internal.active&&("always"===n.frameloop||n.internal.frames>0)&&(t+=W(a,n))})),Q(U,a),t>0)return requestAnimationFrame(r);Q(D,a),n=!1}return{loop:r,invalidate:function t(a){if(!a)return e.forEach((e=>t(e.store.getState())));!a.vr&&a.internal.active&&"never"!==a.frameloop&&(a.internal.frames=Math.min(60,a.internal.frames+1),n||(n=!0,requestAnimationFrame(r)))},advance:function(t,n=!0,r){n&&Q(V,t),r?W(t,r):e.forEach((e=>W(t,e.store.getState()))),n&&Q(U,t)}}}(ne),{reconciler:oe,applyProps:le}=function(e){function t(e,{children:t,key:n,ref:r,...a},{children:i,key:o,ref:l,...s}={},u=!1){var c;const f=null!=(c=null==e?void 0:e.__r3f)?c:{},d=Object.entries(a),p=[];if(u){const e=Object.keys(s);for(let t=0;t{var r,a,i;if(null!=(r=e.__r3f)&&r.primitive&&"object"===t)return;if(a=n,i=s[t],x.arr(a)&&x.equ(a,i)||a===i)return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(t))return p.push([t,n,!0,[]]);let o=[];t.includes("-")&&(o=t.split("-")),p.push([t,n,!1,o])}));const h={...a};return f.memoizedProps&&f.memoizedProps.args&&(h.args=f.memoizedProps.args),f.memoizedProps&&f.memoizedProps.attach&&(h.attach=f.memoizedProps.attach),{accumulative:u,memoized:h,changes:p}}function n(e,n){var o,l,s;const u=null!=(o=null==e?void 0:e.__r3f)?o:{},c=u.root,f=null!=(l=null==c||null==c.getState?void 0:c.getState())?l:{},{memoized:d,changes:p}=(h=n)&&h.memoized&&h.changes?n:t(e,n);var h;const m=u.eventCount;if(e.__r3f&&(e.__r3f.memoizedProps=d),p.forEach((([t,n,i,o])=>{var l;let s=e,c=s[t];if(o.length&&(c=o.reduce(((e,t)=>e[t]),e),!c||!c.set)){const[n,...r]=o.reverse();s=r.reverse().reduce(((e,t)=>e[t]),e),t=n}if(n===M+"remove")if(c&&c.constructor)n=new c.constructor(d.args);else if(s.constructor){const e=new s.constructor(s.__r3f.memoizedProps.args);n=e[c],e.dispose&&e.dispose()}else n=0;const p=(null==f||null==(l=f.gl)?void 0:l.outputEncoding)===r.LinearEncoding;if(i)n?u.handlers[t]=n:delete u.handlers[t],u.eventCount=Object.keys(u.handlers).length;else if(c&&c.set&&(c.copy||c instanceof r.Layers)){if(Array.isArray(n))c.fromArray?c.fromArray(n):c.set(...n);else if(c.copy&&n&&n.constructor&&c.constructor.name===n.constructor.name)c.copy(n);else if(void 0!==n){const e=c instanceof r.Color;!e&&c.setScalar?c.setScalar(n):c instanceof r.Layers&&n instanceof r.Layers?c.mask=n.mask:c.set(n),!p&&e&&c.convertSRGBToLinear()}}else s[t]=n,!p&&s[t]instanceof r.Texture&&(s[t].encoding=r.sRGBEncoding);a(e)})),u.parent&&f.internal&&e.raycast&&m!==u.eventCount){const t=f.internal.interaction.indexOf(e);t>-1&&f.internal.interaction.splice(t,1),u.eventCount&&f.internal.interaction.push(e)}return p.length&&null!=(s=e.__r3f)&&s.parent&&i(e),e}function a(e){var t,n;const r=null==(t=e.__r3f)||null==(n=t.root)||null==n.getState?void 0:n.getState();r&&0===r.internal.frames&&r.invalidate()}function i(e){null==e.onUpdate||e.onUpdate(e)}function o(e,{args:t=[],...a},i,o,l){let s,u=`${e[0].toUpperCase()}${e.slice(1)}`;if(!C(i)&&l){const e=t=>t.return?e(t.return):t.stateNode&&t.stateNode.containerInfo;i=e(l)}if(!i||!C(i))throw`No valid root for ${u}!`;if("primitive"===e){if(void 0===a.object)throw"Primitives without 'object' are invalid!";s=j(a.object,{root:i,primitive:!0})}else{const e=L[u]||r[u];if(!e)throw`${u} is not part of the THREE namespace! Did you forget to extend? See: https://github.com/pmndrs/react-three-fiber/blob/master/markdown/api.md#using-3rd-party-objects-declaratively`;if(!Array.isArray(t))throw"The args prop must be an array!";s=j(new e(...t),{root:i,memoizedProps:{args:0===t.length?null:t}})}return"attachFns"in a||(u.endsWith("Geometry")?a={attach:"geometry",...a}:u.endsWith("Material")&&(a={attach:"material",...a})),n(s,a),s}function l(e,t){let n=!1;if(t){if(t.attachArray)x.arr(e[t.attachArray])||(e[t.attachArray]=[]),e[t.attachArray].push(t);else if(t.attachObject)x.obj(e[t.attachObject[0]])||(e[t.attachObject[0]]={}),e[t.attachObject[0]][t.attachObject[1]]=t;else if(t.attach&&!x.fun(t.attach))e[t.attach]=t;else if(x.arr(t.attachFns)){const[n]=t.attachFns;x.str(n)&&x.fun(e[n])?e[n](t):x.fun(n)&&n(t,e)}else t.isObject3D&&e.isObject3D&&(e.add(t),n=!0);n||e.__r3f.objects.push(t),t.__r3f||j(t,{}),t.__r3f.parent=e,i(t),a(t)}}function c(e,t,n){let r=!1;if(t){if(t.attachArray){let r=e[t.attachArray];x.arr(r)||(e[t.attachArray]=[],r=e[t.attachArray]),r.splice(r.indexOf(n),0,t)}else{if(t.attachObject||t.attach&&!x.fun(t.attach))return l(e,t);if(t.isObject3D&&e.isObject3D){t.parent=e,t.dispatchEvent({type:"added"});const a=e.children.filter((e=>e!==t)),i=a.indexOf(n);e.children=[...a.slice(0,i),t,...a.slice(i)],r=!0}}r||e.__r3f.objects.push(t),t.__r3f||j(t,{}),t.__r3f.parent=e,i(t),a(t)}}function f(e,t,n=!1){e&&[...e].forEach((e=>d(t,e,n)))}function d(e,t,n){if(t){var r,i;if(t.__r3f&&(t.__r3f.parent=null),null!=(r=e.__r3f)&&r.objects&&(e.__r3f.objects=e.__r3f.objects.filter((e=>e!==t))),t.attachArray)e[t.attachArray]=e[t.attachArray].filter((e=>e!==t));else if(t.attachObject)delete e[t.attachObject[0]][t.attachObject[1]];else if(t.attach&&!x.fun(t.attach)&&e[t.attach]===t)e[t.attach]=null;else if(x.arr(t.attachFns)){const[,n]=t.attachFns;x.str(n)&&x.fun(e[n])?e[n](t):x.fun(n)&&n(t,e)}else if(t.isObject3D&&e.isObject3D){var o;e.remove(t),null!=(o=t.__r3f)&&o.root&&function(e,t){const{internal:n}=e.getState();n.interaction=n.interaction.filter((e=>e!==t)),n.initialHits=n.initialHits.filter((e=>e!==t)),n.hovered.forEach(((e,r)=>{e.eventObject!==t&&e.object!==t||n.hovered.delete(r)})),n.capturedMap.forEach(((e,r)=>{E(n.capturedMap,t,e,r)}))}(t.__r3f.root,t)}const s=null==(i=t.__r3f)?void 0:i.primitive,c=void 0===n?null!==t.dispose&&!s:n;var l;if(!s)f(null==(l=t.__r3f)?void 0:l.objects,t,c),f(t.children,t,c);t.__r3f&&(delete t.__r3f.root,delete t.__r3f.objects,delete t.__r3f.handlers,delete t.__r3f.memoizedProps,s||delete t.__r3f),c&&t.dispose&&"Scene"!==t.type&&(0,u.unstable_runWithPriority)(u.unstable_IdlePriority,(()=>{try{t.dispose()}catch(e){}})),a(e)}}return{reconciler:s()({now:u.unstable_now,createInstance:o,removeChild:d,appendChild:l,appendInitialChild:l,insertBefore:c,warnsIfNotActing:!0,supportsMutation:!0,isPrimaryRenderer:!1,scheduleTimeout:x.fun(setTimeout)?setTimeout:void 0,cancelTimeout:x.fun(clearTimeout)?clearTimeout:void 0,setTimeout:x.fun(setTimeout)?setTimeout:void 0,clearTimeout:x.fun(clearTimeout)?clearTimeout:void 0,noTimeout:-1,appendChildToContainer:(e,t)=>{const{container:n,root:r}=z(e,t);n.__r3f.root=r,l(n,t)},removeChildFromContainer:(e,t)=>d(z(e,t).container,t),insertInContainerBefore:(e,t,n)=>c(z(e,t).container,t,n),prepareUpdate(e,n,r,a){if(e.__r3f.primitive&&a.object&&a.object!==e)return[!0];{const{args:n=[],children:i,...o}=a,{args:s=[],children:u,...c}=r;if(!Array.isArray(n))throw"The args prop must be an array!";if(n.some(((e,t)=>e!==s[t])))return[!0];const f=t(e,o,c,!0);if(f.changes.length)return[!1,f];if(e.attach&&"function"!==typeof e.attach){const t=e.__r3f.parent;t&&t[e.attach]!==e&&l(t,e)}return null}},commitUpdate(e,[t,r],a,i,s,u){t?function(e,t,n,r){var a;const i=null==(a=e.__r3f)?void 0:a.parent;if(!i)return;const s=o(t,n,e.__r3f.root);"primitive"!==t&&e.children&&(e.children.forEach((e=>l(s,e))),e.children=[]),e.__r3f.objects.forEach((e=>l(s,e))),e.__r3f.objects=[],d(i,e),l(i,s),s.raycast&&s.__r3f.eventCount&&s.__r3f.root.getState().internal.interaction.push(s);[r,r.alternate].forEach((e=>{null!==e&&(e.stateNode=s,e.ref&&("function"===typeof e.ref?e.ref(s):e.ref.current=s))}))}(e,a,s,u):n(e,r)},hideInstance(e){e.isObject3D&&(e.visible=!1,a(e))},unhideInstance(e,t){(e.isObject3D&&null==t.visible||t.visible)&&(e.visible=!0,a(e))},hideTextInstance(){throw new Error("Text is not allowed in the R3F tree.")},getPublicInstance:e=>e,getRootHostContext:e=>I,getChildHostContext:e=>e,createTextInstance(){},finalizeInitialChildren(e){var t;return!!(null!=(t=null==e?void 0:e.__r3f)?t:{}).handlers},commitMount(e){var t;const n=null!=(t=null==e?void 0:e.__r3f)?t:{};e.raycast&&n.handlers&&n.eventCount&&e.__r3f.root.getState().internal.interaction.push(e)},shouldDeprioritizeSubtree:()=>!1,prepareForCommit:()=>null,preparePortalMount(e){j(e)},resetAfterCommit(){},shouldSetTextContent:()=>!1,clearContainer:()=>!1}),applyProps:n}}();function se({store:e,element:t,onCreated:n,target:r}){return a.useEffect((()=>{const t=e.getState();t.set((e=>({internal:{...e.internal,active:!0}}))),null==t.events.connect||t.events.connect(r),n&&n(t)}),[]),a.createElement(O.Provider,{value:e},t)}function ue(e,t){const n=ne.get(e),r=null==n?void 0:n.fiber;if(r){const a=null==n?void 0:n.store.getState();a&&(a.internal.active=!1),oe.updateContainer(null,r,null,(()=>{a&&setTimeout((()=>{var n,r,i;null==a.events.disconnect||a.events.disconnect(),null==(n=a.gl)||null==(r=n.renderLists)||null==r.dispose||r.dispose(),null==(i=a.gl)||null==i.forceContextLoss||i.forceContextLoss(),function(e){e.dispose&&"Scene"!==e.type&&e.dispose();for(const t in e)null==t.dispose||t.dispose(),delete e[t]}(a),ne.delete(e),t&&t(e)}),500)}))}}oe.act;oe.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:"17.0.2"})},36386:function(e){function t(e,t,n){var r,a,i,o,l;function s(){var u=Date.now()-o;u=0?r=setTimeout(s,t-u):(r=null,n||(l=e.apply(i,a),i=a=null))}null==t&&(t=100);var u=function(){i=this,a=arguments,o=Date.now();var u=n&&!r;return r||(r=setTimeout(s,t)),u&&(l=e.apply(i,a),i=a=null),l};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(l=e.apply(i,a),i=a=null,clearTimeout(r),r=null)},u}t.debounce=t,e.exports=t},69378:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(a=r;0!==a--;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(a=r;0!==a--;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;0!==a--;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}},99166:function(e,t,n){(e=n.nmd(e)).exports=function(t){var r={},a=n(4079),i=n(2784),o=n(14616);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--l||a[o]!==i[l])return"\n"+a[o].replace(" at new "," at ")}while(1<=o&&0<=l);break}}}finally{qe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?He(e):""}var Ye=[],Ke=-1;function Xe(e){return{current:e}}function Ze(e){0>Ke||(e.current=Ye[Ke],Ye[Ke]=null,Ke--)}function Je(e,t){Ke++,Ye[Ke]=e.current,e.current=t}var et={},tt=Xe(et),nt=Xe(!1),rt=et;function at(e,t){var n=e.type.contextTypes;if(!n)return et;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function it(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ot(){Ze(nt),Ze(tt)}function lt(e,t,n){if(tt.current!==et)throw Error(l(168));Je(tt,t),Je(nt,n)}function st(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(l(108,z(t)||"Unknown",i));return a({},n,r)}function ut(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||et,rt=tt.current,Je(tt,e),Je(nt,nt.current),!0}function ct(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=st(e,t,rt),r.__reactInternalMemoizedMergedChildContext=e,Ze(nt),Ze(tt),Je(tt,e)):Ze(nt),Je(nt,n)}var ft=null,dt=null;(0,o.unstable_now)();var pt=0,ht=8;function mt(e){if(0!==(1&e))return ht=15,1;if(0!==(2&e))return ht=14,2;if(0!==(4&e))return ht=13,4;var t=24&e;return 0!==t?(ht=12,t):0!==(32&e)?(ht=11,32):0!==(t=192&e)?(ht=10,t):0!==(256&e)?(ht=9,256):0!==(t=3584&e)?(ht=8,t):0!==(4096&e)?(ht=7,4096):0!==(t=4186112&e)?(ht=6,t):0!==(t=62914560&e)?(ht=5,t):67108864&e?(ht=4,67108864):0!==(134217728&e)?(ht=3,134217728):0!==(t=805306368&e)?(ht=2,t):0!==(1073741824&e)?(ht=1,1073741824):(ht=8,e)}function gt(e,t){var n=e.pendingLanes;if(0===n)return ht=0;var r=0,a=0,i=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,a=ht=15;else if(0!==(i=134217727&n)){var s=i&~o;0!==s?(r=mt(s),a=ht):0!==(l&=i)&&(r=mt(l),a=ht)}else 0!==(i=n&~o)?(r=mt(i),a=ht):0!==l&&(r=mt(l),a=ht);if(0===r)return 0;if(r=n&((0>(r=31-St(r))?0:1<n;n++)t.push(e);return t}function _t(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-St(t)]=n}var St=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(xt(e)/kt|0)|0},xt=Math.log,kt=Math.LN2;var Et=o.unstable_runWithPriority,Pt=o.unstable_scheduleCallback,Ct=o.unstable_cancelCallback,zt=o.unstable_shouldYield,Mt=o.unstable_requestPaint,It=o.unstable_now,Lt=o.unstable_getCurrentPriorityLevel,jt=o.unstable_ImmediatePriority,Nt=o.unstable_UserBlockingPriority,Rt=o.unstable_NormalPriority,Ot=o.unstable_LowPriority,Tt=o.unstable_IdlePriority,At={},Ft=void 0!==Mt?Mt:function(){},Vt=null,Ut=null,Dt=!1,Bt=It(),Qt=1e4>Bt?It:function(){return It()-Bt};function Wt(){switch(Lt()){case jt:return 99;case Nt:return 98;case Rt:return 97;case Ot:return 96;case Tt:return 95;default:throw Error(l(332))}}function $t(e){switch(e){case 99:return jt;case 98:return Nt;case 97:return Rt;case 96:return Ot;case 95:return Tt;default:throw Error(l(332))}}function Ht(e,t){return e=$t(e),Et(e,t)}function qt(e,t,n){return e=$t(e),Pt(e,t,n)}function Gt(){if(null!==Ut){var e=Ut;Ut=null,Ct(e)}Yt()}function Yt(){if(!Dt&&null!==Vt){Dt=!0;var e=0;try{var t=Vt;Ht(99,(function(){for(;ed?(p=f,f=null):p=f.sibling;var h=g(a,f,l[d],s);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(a,f),o=i(h,o,d),null===c?u=h:c.sibling=h,c=h,f=p}if(d===l.length)return n(a,f),u;if(null===f){for(;dp?(h=d,d=null):h=d.sibling;var b=g(a,d,y.value,u);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(a,d),o=i(b,o,p),null===f?c=b:f.sibling=b,f=b,d=h}if(y.done)return n(a,d),c;if(null===d){for(;!y.done;p++,y=s.next())null!==(y=m(a,y.value,u))&&(o=i(y,o,p),null===f?c=y:f.sibling=y,f=y);return c}for(d=r(a,d);!y.done;p++,y=s.next())null!==(y=v(d,a,p,y.value,u))&&(e&&null!==y.alternate&&d.delete(null===y.key?p:y.key),o=i(y,o,p),null===f?c=y:f.sibling=y,f=y);return e&&d.forEach((function(e){return t(a,e)})),c}return function(e,r,i,s){var d="object"===typeof i&&null!==i&&i.type===f&&null===i.key;d&&(i=i.props.children);var p="object"===typeof i&&null!==i;if(p)switch(i.$$typeof){case u:e:{for(p=i.key,d=r;null!==d;){if(d.key===p){if(7===d.tag){if(i.type===f){n(e,d.sibling),(r=a(d,i.props.children)).return=e,e=r;break e}}else if(d.elementType===i.type){n(e,d.sibling),(r=a(d,i.props)).ref=Mn(e,d,i),r.return=e,e=r;break e}n(e,d);break}t(e,d),d=d.sibling}i.type===f?((r=Po(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=Eo(i.type,i.key,i.props,null,e.mode,s)).ref=Mn(e,r,i),s.return=e,e=s)}return o(e);case c:e:{for(d=i.key;null!==r;){if(r.key===d){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=a(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Mo(i,e.mode,s)).return=e,e=r}return o(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,i)).return=e,e=r):(n(e,r),(r=zo(i,e.mode,s)).return=e,e=r),o(e);if(zn(i))return y(e,r,i,s);if(C(i))return b(e,r,i,s);if(p&&In(e,i),"undefined"===typeof i&&!d)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,z(e.type)||"Component"))}return n(e,r)}}var jn=Ln(!0),Nn=Ln(!1),Rn={},On=Xe(Rn),Tn=Xe(Rn),An=Xe(Rn);function Fn(e){if(e===Rn)throw Error(l(174));return e}function Vn(e,t){Je(An,t),Je(Tn,e),Je(On,Rn),e=T(t),Ze(On),Je(On,e)}function Un(){Ze(On),Ze(Tn),Ze(An)}function Dn(e){var t=Fn(An.current),n=Fn(On.current);n!==(t=A(n,e.type,t))&&(Je(Tn,e),Je(On,t))}function Bn(e){Tn.current===e&&(Ze(On),Ze(Tn))}var Qn=Xe(0);function Wn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ae(n)||Fe(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $n=null,Hn=null,qn=!1;function Gn(e,t){var n=So(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Yn(e,t){switch(e.tag){case 5:return null!==(t=Oe(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=Te(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function Kn(e){if(qn){var t=Hn;if(t){var n=t;if(!Yn(e,t)){if(!(t=Ve(n))||!Yn(e,t))return e.flags=-1025&e.flags|2,qn=!1,void($n=e);Gn($n,n)}$n=e,Hn=Ue(t)}else e.flags=-1025&e.flags|2,qn=!1,$n=e}}function Xn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;$n=e}function Zn(e){if(!Z||e!==$n)return!1;if(!qn)return Xn(e),qn=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!W(t,e.memoizedProps))for(t=Hn;t;)Gn(e,t),t=Ve(t);if(Xn(e),13===e.tag){if(!Z)throw Error(l(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));Hn=Qe(e)}else Hn=$n?Ve(e.stateNode):null;return!0}function Jn(){Z&&(Hn=$n=null,qn=!1)}var er=[];function tr(){for(var e=0;ei))throw Error(l(301));i+=1,lr=or=null,t.updateQueue=null,nr.current=Ur,e=n(r,a)}while(ur)}if(nr.current=Ar,t=null!==or&&null!==or.next,ar=0,lr=or=ir=null,sr=!1,t)throw Error(l(300));return e}function pr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===lr?ir.memoizedState=lr=e:lr=lr.next=e,lr}function hr(){if(null===or){var e=ir.alternate;e=null!==e?e.memoizedState:null}else e=or.next;var t=null===lr?ir.memoizedState:lr.next;if(null!==t)lr=t,or=e;else{if(null===e)throw Error(l(310));e={memoizedState:(or=e).memoizedState,baseState:or.baseState,baseQueue:or.baseQueue,queue:or.queue,next:null},null===lr?ir.memoizedState=lr=e:lr=lr.next=e}return lr}function mr(e,t){return"function"===typeof t?t(e):t}function gr(e){var t=hr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=or,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var o=a.next;a.next=i.next,i.next=o}r.baseQueue=a=i,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var s=o=i=null,u=a;do{var c=u.lane;if((ar&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(o=s=f,i=r):s=s.next=f,ir.lanes|=c,fi|=c}u=u.next}while(null!==u&&u!==a);null===s?i=r:s.next=o,Xt(r,t.memoizedState)||(Br=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function vr(e){var t=hr(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var o=a=a.next;do{i=e(i,o.action),o=o.next}while(o!==a);Xt(i,t.memoizedState)||(Br=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function yr(e,t,n){var r=t._getVersion;r=r(t._source);var a=Y?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==a?e=a===r:(e=e.mutableReadLanes,(e=(ar&e)===e)&&(Y?t._workInProgressVersionPrimary=r:t._workInProgressVersionSecondary=r,er.push(t))),e)return n(t._source);throw er.push(t),Error(l(350))}function br(e,t,n,r){var a=ri;if(null===a)throw Error(l(349));var i=t._getVersion,o=i(t._source),s=nr.current,u=s.useState((function(){return yr(a,t,n)})),c=u[1],f=u[0];u=lr;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var g=ir;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!Xt(o,e)){e=n(t._source),Xt(f,e)||(c(e),e=Ai(g),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,l=e;0n?98:n,(function(){e(!0)})),Ht(97gi&&(t.flags|=64,a=!0,ha(r,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Wn(i))){if(t.flags|=64,a=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),ha(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!qn)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Qt()-r.renderingStartTime>gi&&1073741824!==n&&(t.flags|=64,a=!0,ha(r,!1),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=r.last)?e.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Qt(),e.sibling=null,t=Qn.current,Je(Qn,a?1&t|2:1&t),e):null;case 23:case 24:return qi(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(l(156,t.tag))}function ga(e){switch(e.tag){case 1:it(e.type)&&ot();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Un(),Ze(nt),Ze(tt),tr(),0!==(64&(t=e.flags)))throw Error(l(285));return e.flags=-4097&t|64,e;case 5:return Bn(e),null;case 13:return Ze(Qn),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return Ze(Qn),null;case 4:return Un(),null;case 10:return un(e),null;case 23:case 24:return qi(),null;default:return null}}function va(e,t){try{var n="",r=t;do{n+=en(r),r=r.return}while(r);var a=n}catch(i){a="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:a}}function ya(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ba="function"===typeof WeakMap?WeakMap:Map;function wa(e,t,n){(n=gn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){wi||(wi=!0,_i=r),ya(0,t)},n}function _a(e,t,n){(n=gn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return ya(0,t),r(a)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Si?Si=new Set([this]):Si.add(this),ya(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var Sa="function"===typeof WeakSet?WeakSet:Set;function xa(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){co(e,n)}else t.current=null}function ka(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:tn(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(K&&256&t.flags&&Ce(t.stateNode.containerInfo))}throw Error(l(163))}function Ea(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Pa(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;r=a.next,0!==(4&(a=a.tag))&&0!==(1&a)&&(lo(n,e),oo(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:tn(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&wn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=O(n.child.stateNode);break;case 1:e=n.child.stateNode}wn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ge(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(Z&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&$e(n)))))}throw Error(l(163))}function Ca(e,t){if(K)for(var n=e;;){if(5===n.tag){var r=n.stateNode;t?xe(r):Ee(n.stateNode,n.memoizedProps)}else if(6===n.tag)r=n.stateNode,t?ke(r):Pe(r,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function za(e,t){if(dt&&"function"===typeof dt.onCommitFiberUnmount)try{dt.onCommitFiberUnmount(ft,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,a=r.destroy;if(r=r.tag,void 0!==a)if(0!==(4&r))lo(t,n);else{r=t;try{a()}catch(i){co(r,i)}}n=n.next}while(n!==e)}break;case 1:if(xa(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){co(t,i)}break;case 5:xa(t);break;case 4:K?Oa(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Me(t),je(t,e))}}function Ma(e,t){for(var n=t;;)if(za(e,n),null===n.child||K&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Ia(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function La(e){return 5===e.tag||3===e.tag||4===e.tag}function ja(e){if(K){e:{for(var t=e.return;null!==t;){if(La(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(l(161))}16&n.flags&&(Se(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||La(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Na(e,n,t):Ra(e,n,t)}}function Na(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?be(n,e,t):he(n,e);else if(4!==r&&null!==(e=e.child))for(Na(e,t,n),e=e.sibling;null!==e;)Na(e,t,n),e=e.sibling}function Ra(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?ye(n,e,t):pe(n,e);else if(4!==r&&null!==(e=e.child))for(Ra(e,t,n),e=e.sibling;null!==e;)Ra(e,t,n),e=e.sibling}function Oa(e,t){for(var n,r,a=t,i=!1;;){if(!i){i=a.return;e:for(;;){if(null===i)throw Error(l(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===a.tag||6===a.tag)Ma(e,a),r?_e(n,a.stateNode):we(n,a.stateNode);else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if(za(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(i=!1)}a.sibling.return=a.return,a=a.sibling}}function Ta(e,t){if(K){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Ea(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var a=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&ve(n,i,a,e,r,t)}return;case 6:if(null===t.stateNode)throw Error(l(162));return n=t.memoizedProps,void me(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(Z&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,We(t.containerInfo))));case 13:return Aa(t),void Fa(t);case 19:return void Fa(t);case 23:case 24:return void Ca(t,null!==t.memoizedState)}throw Error(l(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Ea(3,t);case 12:case 23:case 24:return;case 13:return Aa(t),void Fa(t);case 19:return void Fa(t);case 3:Z&&((n=t.stateNode).hydrate&&(n.hydrate=!1,We(n.containerInfo)))}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,je(t.containerInfo,t.pendingChildren);break e}throw Error(l(163))}}function Aa(e){null!==e.memoizedState&&(mi=Qt(),K&&Ca(e.child,!0))}function Fa(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Sa),t.forEach((function(t){var r=po.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Va(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ua=0,Da=1,Ba=2,Qa=3,Wa=4;if("function"===typeof Symbol&&Symbol.for){var $a=Symbol.for;Ua=$a("selector.component"),Da=$a("selector.has_pseudo_class"),Ba=$a("selector.role"),Qa=$a("selector.test_id"),Wa=$a("selector.text")}function Ha(e){var t=J(e);if(null!=t){if("string"!==typeof t.memoizedProps["data-testname"])throw Error(l(364));return t}if(null===(e=oe(e)))throw Error(l(362));return e.stateNode.current}function qa(e,t){switch(t.$$typeof){case Ua:if(e.type===t.value)return!0;break;case Da:e:{t=t.value,e=[e,0];for(var n=0;n";case Da:return":has("+(Ga(e)||"")+")";case Ba:return'[role="'+e.value+'"]';case Wa:return'"'+e.value+'"';case Qa:return'[data-testname="'+e.value+'"]';default:throw Error(l(365,e))}}function Ya(e,t){var n=[];e=[e,0];for(var r=0;ra&&(a=o),n&=~i}if(n=a,10<(n=(120>(n=Qt()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Za(n/1960))-n)){e.timeoutHandle=H(no.bind(null,e),n);break}no(e);break;default:throw Error(l(329))}}return Ui(e,Qt()),e.callbackNode===t?Di.bind(null,e):null}function Bi(e,t){for(t&=~pi,t&=~di,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==si&&(si=2),s=va(s,l),d=o;do{switch(d.tag){case 3:i=s,d.flags|=4096,t&=-t,d.lanes|=t,yn(d,wa(0,i,t));break e;case 1:i=s;var _=d.type,S=d.stateNode;if(0===(64&d.flags)&&("function"===typeof _.getDerivedStateFromError||null!==S&&"function"===typeof S.componentDidCatch&&(null===Si||!Si.has(S)))){d.flags|=4096,t&=-t,d.lanes|=t,yn(d,_a(d,i,t));break e}}d=d.return}while(null!==d)}to(n)}catch(x){t=x,ai===n&&null!==n&&(ai=n=n.return);continue}break}}function Ki(){var e=Ja.current;return Ja.current=Ar,null===e?Ar:e}function Xi(e,t){var n=ni;ni|=16;var r=Ki();for(ri===e&&ii===t||Gi(e,t);;)try{Zi();break}catch(a){Yi(e,a)}if(ln(),ni=n,Ja.current=r,null!==ai)throw Error(l(261));return ri=null,ii=0,si}function Zi(){for(;null!==ai;)eo(ai)}function Ji(){for(;null!==ai&&!zt();)eo(ai)}function eo(e){var t=yi(e.alternate,e,oi);e.memoizedProps=e.pendingProps,null===t?to(e):ai=t,ei.current=null}function to(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ma(n,t,oi)))return void(ai=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&oi)||0===(4&n.mode)){for(var r=0,a=n.child;null!==a;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1Qt()-mi?Gi(e,0):pi|=n),Ui(e,t)}function po(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Wt()?1:2:(0===ji&&(ji=ci),0===(t=bt(62914560&~ji))&&(t=4194304))),n=Ti(),null!==(e=Vi(e,t))&&(_t(e,t,n),Ui(e,n))}yi=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||nt.current)Br=!0;else{if(0===(n&r)){switch(Br=!1,t.tag){case 3:Zr(t),Jn();break;case 5:Dn(t);break;case 1:it(t.type)&&ut(t);break;case 4:Vn(t,t.stateNode.containerInfo);break;case 10:sn(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?aa(e,t,n):(Je(Qn,1&Qn.current),null!==(t=fa(e,t,n))?t.sibling:null);Je(Qn,1&Qn.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return ca(e,t,n);t.flags|=64}var a=t.memoizedState;if(null!==a&&(a.rendering=null,a.tail=null,a.lastEffect=null),Je(Qn,Qn.current),r)break;return null;case 23:case 24:return t.lanes=0,qr(e,t,n)}return fa(e,t,n)}Br=0!==(16384&e.flags)}else Br=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=at(t,tt.current),fn(t,n),a=dr(null,t,r,e,a,n),t.flags|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(r)){var i=!0;ut(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,hn(t);var o=r.getDerivedStateFromProps;"function"===typeof o&&Sn(t,r,o,e),a.updater=xn,t.stateNode=a,a._reactInternals=t,Cn(t,r,e,n),t=Xr(null,t,r,!0,i,n)}else t.tag=0,Qr(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(i=a._init)(a._payload),t.type=a,i=t.tag=function(e){if("function"===typeof e)return xo(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===g)return 11;if(e===b)return 14}return 2}(a),e=tn(a,e),i){case 0:t=Yr(null,t,a,e,n);break e;case 1:t=Kr(null,t,a,e,n);break e;case 11:t=Wr(null,t,a,e,n);break e;case 14:t=$r(null,t,a,tn(a.type,e),r,n);break e}throw Error(l(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Yr(e,t,r,a=t.elementType===r?a:tn(r,a),n);case 1:return r=t.type,a=t.pendingProps,Kr(e,t,r,a=t.elementType===r?a:tn(r,a),n);case 3:if(Zr(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,mn(e,t),bn(t,r,null,n),(r=t.memoizedState.element)===a)Jn(),t=fa(e,t,n);else{if((i=(a=t.stateNode).hydrate)&&(Z?(Hn=Ue(t.stateNode.containerInfo),$n=t,i=qn=!0):i=!1),i){if(Z&&null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a=c&&i>=d&&a<=f&&o<=p){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||po)){d>i&&(u.height+=d-i,u.y=i),pa)){c>r&&(u.width+=c-r,u.x=r),fn&&(n=o)),o ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},r.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?O(e.child.stateNode):e.child.stateNode:null},r.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:Ro,findFiberByHostInstance:e.findFiberByHostInstance||Oo,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{ft=t.inject(e),dt=t}catch(n){}e=!0}return e},r.observeVisibleRects=function(e,t,n,r){if(!ie)throw Error(l(363));e=Ka(e,t);var a=de(e,n,r).disconnect;return{disconnect:function(){a()}}},r.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},r.runWithPriority=function(e,t){var n=pt;try{return pt=e,t()}finally{pt=n}},r.shouldSuspend=function(){return!1},r.unbatchedUpdates=function(e,t){var n=ni;ni&=-2,ni|=8;try{return e(t)}finally{0===(ni=n)&&(vi(),Gt())}},r.updateContainer=function(e,t,n,r){var a=t.current,i=Ti(),o=Ai(a);e:if(n){t:{if(M(n=n._reactInternals)!==n||1!==n.tag)throw Error(l(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(it(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(l(171))}if(1===n.tag){var u=n.type;if(it(u)){n=st(n,u,s);break e}}n=s}else n=et;return null===t.context?t.context=n:t.pendingContext=n,(t=gn(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),vn(a,t),Fi(a,o,i),o},r}},7962:function(e,t,n){"use strict";e.exports=n(99166)},29568:function(e,t,n){"use strict";n.d(t,{v:function(){return a}});var r=n(96995);class a extends r.Loader{constructor(e){super(e)}load(e,t,n,a){const i=this,o=""===this.path?r.LoaderUtils.extractUrlBase(e):this.path,l=new r.FileLoader(this.manager);l.setPath(this.path),l.setRequestHeader(this.requestHeader),l.setWithCredentials(this.withCredentials),l.load(e,(function(n){try{t(i.parse(n,o))}catch(r){a?a(r):console.error(r),i.manager.itemError(e)}}),n,a)}setMaterialOptions(e){return this.materialOptions=e,this}parse(e,t){const n=e.split("\n");let r={};const a=/\s+/,o={};for(let i=0;i=0?e.substring(0,t):e;l=l.toLowerCase();let s=t>=0?e.substring(t+1):"";if(s=s.trim(),"newmtl"===l)r={name:s},o[s]=r;else if("ka"===l||"kd"===l||"ks"===l||"ke"===l){const e=s.split(a,3);r[l]=[parseFloat(e[0]),parseFloat(e[1]),parseFloat(e[2])]}else r[l]=s}const l=new i(this.resourcePath||t,this.materialOptions);return l.setCrossOrigin(this.crossOrigin),l.setManager(this.manager),l.setMaterials(o),l}}class i{constructor(e="",t={}){this.baseUrl=e,this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.crossOrigin="anonymous",this.side=void 0!==this.options.side?this.options.side:r.FrontSide,this.wrap=void 0!==this.options.wrap?this.options.wrap:r.RepeatWrapping}setCrossOrigin(e){return this.crossOrigin=e,this}setManager(e){this.manager=e}setMaterials(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}}convert(e){if(!this.options)return e;const t={};for(const n in e){const r=e[n],a={};t[n]=a;for(const e in r){let t=!0,n=r[e];const i=e.toLowerCase();switch(i){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(n=[n[0]/255,n[1]/255,n[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===n[0]&&0===n[1]&&0===n[2]&&(t=!1)}t&&(a[i]=n)}}return t}preload(){for(const e in this.materialsInfo)this.create(e)}getIndex(e){return this.nameLookup[e]}getAsArray(){let e=0;for(const t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray}create(e){return void 0===this.materials[e]&&this.createMaterial_(e),this.materials[e]}createMaterial_(e){const t=this,n=this.materialsInfo[e],a={name:e,side:this.side};function i(e,n){if(a[e])return;const i=t.getTextureParams(n,a),o=t.loadTexture((l=t.baseUrl,"string"!==typeof(s=i.url)||""===s?"":/^https?:\/\//i.test(s)?s:l+s));var l,s;o.repeat.copy(i.scale),o.offset.copy(i.offset),o.wrapS=t.wrap,o.wrapT=t.wrap,"map"!==e&&"emissiveMap"!==e||(o.encoding=r.sRGBEncoding),a[e]=o}for(const o in n){const e=n[o];let t;if(""!==e)switch(o.toLowerCase()){case"kd":a.color=(new r.Color).fromArray(e).convertSRGBToLinear();break;case"ks":a.specular=(new r.Color).fromArray(e).convertSRGBToLinear();break;case"ke":a.emissive=(new r.Color).fromArray(e).convertSRGBToLinear();break;case"map_kd":i("map",e);break;case"map_ks":i("specularMap",e);break;case"map_ke":i("emissiveMap",e);break;case"norm":i("normalMap",e);break;case"map_bump":case"bump":i("bumpMap",e);break;case"map_d":i("alphaMap",e),a.transparent=!0;break;case"ns":a.shininess=parseFloat(e);break;case"d":t=parseFloat(e),t<1&&(a.opacity=t,a.transparent=!0);break;case"tr":t=parseFloat(e),this.options&&this.options.invertTrProperty&&(t=1-t),t>0&&(a.opacity=1-t,a.transparent=!0)}}return this.materials[e]=new r.MeshPhongMaterial(a),this.materials[e]}getTextureParams(e,t){const n={scale:new r.Vector2(1,1),offset:new r.Vector2(0,0)},a=e.split(/\s+/);let i;return i=a.indexOf("-bm"),i>=0&&(t.bumpScale=parseFloat(a[i+1]),a.splice(i,2)),i=a.indexOf("-s"),i>=0&&(n.scale.set(parseFloat(a[i+1]),parseFloat(a[i+2])),a.splice(i,4)),i=a.indexOf("-o"),i>=0&&(n.offset.set(parseFloat(a[i+1]),parseFloat(a[i+2])),a.splice(i,4)),n.url=a.join(" ").trim(),n}loadTexture(e,t,n,a,i){const o=void 0!==this.manager?this.manager:r.DefaultLoadingManager;let l=o.getHandler(e);null===l&&(l=new r.TextureLoader(o)),l.setCrossOrigin&&l.setCrossOrigin(this.crossOrigin);const s=l.load(e,n,a,i);return void 0!==t&&(s.mapping=t),s}}},28575:function(e,t,n){"use strict";n.d(t,{L:function(){return g}});var r=n(96995);const a=/^[og]\s*(.+)?/,i=/^mtllib /,o=/^usemtl /,l=/^usemap /,s=/\s+/,u=new r.Vector3,c=new r.Vector3,f=new r.Vector3,d=new r.Vector3,p=new r.Vector3,h=new r.Color;function m(){const e={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);const n=this.object&&"function"===typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"===typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(e,t){const n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);const r={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){const t={index:"number"===typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(r),r},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){const t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(let n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}},n&&n.name&&"function"===typeof n.clone){const e=n.clone(0);e.inherited=!0,this.object.materials.push(e)}this.objects.push(this.object)},finalize:function(){this.object&&"function"===typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){const n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){const n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){const n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){const r=this.vertices,a=this.object.geometry.vertices;a.push(r[e+0],r[e+1],r[e+2]),a.push(r[t+0],r[t+1],r[t+2]),a.push(r[n+0],r[n+1],r[n+2])},addVertexPoint:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,n){const r=this.normals,a=this.object.geometry.normals;a.push(r[e+0],r[e+1],r[e+2]),a.push(r[t+0],r[t+1],r[t+2]),a.push(r[n+0],r[n+1],r[n+2])},addFaceNormal:function(e,t,n){const r=this.vertices,a=this.object.geometry.normals;u.fromArray(r,e),c.fromArray(r,t),f.fromArray(r,n),p.subVectors(f,c),d.subVectors(u,c),p.cross(d),p.normalize(),a.push(p.x,p.y,p.z),a.push(p.x,p.y,p.z),a.push(p.x,p.y,p.z)},addColor:function(e,t,n){const r=this.colors,a=this.object.geometry.colors;void 0!==r[e]&&a.push(r[e+0],r[e+1],r[e+2]),void 0!==r[t]&&a.push(r[t+0],r[t+1],r[t+2]),void 0!==r[n]&&a.push(r[n+0],r[n+1],r[n+2])},addUV:function(e,t,n){const r=this.uvs,a=this.object.geometry.uvs;a.push(r[e+0],r[e+1]),a.push(r[t+0],r[t+1]),a.push(r[n+0],r[n+1])},addDefaultUV:function(){const e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){const t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,n,r,a,i,o,l,s){const u=this.vertices.length;let c=this.parseVertexIndex(e,u),f=this.parseVertexIndex(t,u),d=this.parseVertexIndex(n,u);if(this.addVertex(c,f,d),this.addColor(c,f,d),void 0!==o&&""!==o){const e=this.normals.length;c=this.parseNormalIndex(o,e),f=this.parseNormalIndex(l,e),d=this.parseNormalIndex(s,e),this.addNormal(c,f,d)}else this.addFaceNormal(c,f,d);if(void 0!==r&&""!==r){const e=this.uvs.length;c=this.parseUVIndex(r,e),f=this.parseUVIndex(a,e),d=this.parseUVIndex(i,e),this.addUV(c,f,d),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";const t=this.vertices.length;for(let n=0,r=e.length;n=7?(h.setRGB(parseFloat(n[4]),parseFloat(n[5]),parseFloat(n[6])).convertSRGBToLinear(),t.colors.push(h.r,h.g,h.b)):t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(n[1]),parseFloat(n[2]),parseFloat(n[3]));break;case"vt":t.uvs.push(parseFloat(n[1]),parseFloat(n[2]))}}else if("f"===c){const n=e.slice(1).trim().split(s),r=[];for(let e=0,t=n.length;e0){const e=t.split("/");r.push(e)}}const a=r[0];for(let e=1,i=r.length-1;e1){const e=u[1].trim().toLowerCase();t.object.smooth="0"!==e&&"off"!==e}else t.object.smooth=!0;const n=t.object.currentMaterial();n&&(n.smooth=t.object.smooth)}else{if("\0"===e)continue;console.warn('THREE.OBJLoader: Unexpected line: "'+e+'"')}}t.finalize();const c=new r.Group;c.materialLibraries=[].concat(t.materialLibraries);if(!0===!(1===t.objects.length&&0===t.objects[0].geometry.vertices.length))for(let a=0,i=t.objects.length;a0&&u.setAttribute("normal",new r.Float32BufferAttribute(n.normals,3)),n.colors.length>0&&(s=!0,u.setAttribute("color",new r.Float32BufferAttribute(n.colors,3))),!0===n.hasUVIndices&&u.setAttribute("uv",new r.Float32BufferAttribute(n.uvs,2));const f=[];for(let a=0,c=i.length;a1){for(let e=0,t=i.length;e0){const e=new r.PointsMaterial({size:1,sizeAttenuation:!1}),n=new r.BufferGeometry;n.setAttribute("position",new r.Float32BufferAttribute(t.vertices,3)),t.colors.length>0&&void 0!==t.colors[0]&&(n.setAttribute("color",new r.Float32BufferAttribute(t.colors,3)),e.vertexColors=!0);const a=new r.Points(n,e);c.add(a)}return c}}}}]);