!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="03bf6acc-babb-4524-bbeb-c97d792879be",e._sentryDebugIdIdentifier="sentry-dbid-03bf6acc-babb-4524-bbeb-c97d792879be")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3980],{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),s=n(72947);const l=new o.Vector3,u=new o.Vector3,c=new o.Vector3;function f(e,t,n){const r=l.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 h(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 p=(m=[1,-1,1,1,1,-1,1,1,1,-1,1,1,1,-1,1,1],e=>h(e,m));var m;const g=(e,t)=>{return h(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:h,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 R=(0,s.Ky)((({gl:e})=>e)),N=(0,s.Ky)((({camera:e})=>e)),O=(0,s.Ky)((({scene:e})=>e)),T=(0,s.Ky)((({size:e})=>e)),A=(0,s.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:R.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,N,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:h,style:n,children:e}))),F):i.render(a.createElement("div",{ref:L,style:$,className:h,children:e}),F)}));const q=a.useRef(!0);return(0,s.xQ)((()=>{if(V.current){N.updateMatrixWorld(),V.current.updateWorldMatrix(!0,!1);const e=S?D.current:P(V.current,N,T);if(S||Math.abs(U.current-N.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=l.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,N);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=l.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 s(){const n=r(t);if(!i(o,n)){const t=o;e(o=n,t)}}return n.add(s),()=>n.delete(s)})(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 s=n(7962),l=n.n(s),u=n(14616),c=n(69378),f=n.n(c);const d=[];function h(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 p(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 h(e,d,t,m.lifespan)}m.lifespan=0,m.clear=(...e)=>p(d,...e),m.preload=(e,...t)=>{h(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[s,l]=(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:s}),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[h,p,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:s,y:c}=u.current.element.getBoundingClientRect(),f={left:e,top:t,width:n,height:r,bottom:a,right:o,x:s,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)&&l(u.current.lastBounds=f)};return[e,f?y()(e,f):e,c?y()(e,c):e]}),[l,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;return function(e,t){(0,a.useEffect)((()=>{if(t){const t=e;return window.addEventListener("scroll",t,{capture:!0,passive:!0}),()=>{window.removeEventListener("scroll",t,!0)}}}),[e,t])}(m,Boolean(n)),b=p,(0,a.useEffect)((()=>{const e=b;return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[b]),(0,a.useEffect)((()=>{g(),v()}),[n,m,p]),(0,a.useEffect)((()=>g),[]),[e=>{e&&e!==u.current.element&&(g(),u.current.element=e,u.current.scrollContainers=w(e),v())},s,h]}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:s,internal:l}=e.getState();!function(t){var n,r,a,i;const o=e.getState(),{raycaster:s,mouse:l,camera:u,size:c}=o,f=null==s.computeOffsets?void 0:s.computeOffsets(t,o),d=null!=(n=null==f?void 0:f.offsetX)?n:t.offsetX,h=null!=(r=null==f?void 0:f.offsetY)?r:t.offsetY,p=null!=(a=null==f?void 0:f.width)?a:c.width,m=null!=(i=null==f?void 0:f.height)?i:c.height;l.set(d/p*2-1,-h/m*2+1),s.setFromCamera(l,u)}(o),l.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=[],s=t?t(a.interaction):a.interaction;let l=r.intersectObjects(s,!0).filter((e=>{const t=k(e);return!i.has(t)&&(i.add(t),!0)}));r.filter&&(l=r.filter(l,n));for(const e of l){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&&(l.initialClick=[o.offsetX,o.offsetY],l.initialHits=f.map((e=>e.eventObject))),c&&!f.length&&d<=2&&(i(o,l.interaction),s&&s(o)),u&&a(f),function(n,r,i,o){const{raycaster:s,mouse:l,camera:u,internal:c}=e.getState();if(n.length){const e=t.set(l.x,l.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},h=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)},p=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:l.x,spaceY:l.y,intersections:n,stopped:f.stopped,delta:i,unprojectedPoint:e,ray:s.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:h,releasePointerCapture:p},currentTarget:{hasPointerCapture:d,setPointerCapture:h,releasePointerCapture:p},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=l.hovered.get(t);n?n.stopped&&e.stopPropagation():(l.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&&!l.initialHits.includes(t)||(i(o,l.interaction.filter((e=>!l.initialHits.includes(e)))),n(e)):c&&l.initialHits.includes(t)&&i(o,l.interaction.filter((e=>!l.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 R=e=>e&&e.isOrthographicCamera;function N(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,s)=>{const{gl:l,size:u,shadows:c=!1,linear:f=!1,flat:d=!1,vr:h=!1,orthographic:p=!1,frameloop:m="always",dpr:g=1,performance:v,clock:y=new r.Clock,raycaster:b,camera:w,onPointerMissed:_}=s;c&&(l.shadowMap.enabled=!0,"object"===typeof c?Object.assign(l.shadowMap,c):l.shadowMap.type=r.PCFSoftShadowMap),f&&(l.outputEncoding=r.LinearEncoding),d&&(l.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(),s=(0,a.useRef)(i),l=(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 h=!1;(s.current!==i||l.current!==e||u.current!==n||c.current)&&(d=e(i),h=!n(f.current,d)),o((()=>{h&&(f.current=d),s.current=i,l.current=e,u.current=n,c.current=!1}));const p=(0,a.useRef)(i);o((()=>{const e=()=>{try{const e=t.getState(),n=l.current(e);u.current(f.current,n)||(s.current=e,f.current=n,r())}catch(e){c.current=!0,r()}},n=t.subscribe(e);return t.getState()!==p.current&&e(),n}),[]);const m=h?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:p?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=N(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,s=a/i;t instanceof r.Vector3?z.copy(t):z.set(...t);const l=e.getWorldPosition(P).distanceTo(z);if(R(e))return{width:a/e.zoom,height:i/e.zoom,factor:1,distance:l,aspect:s};{const t=e.fov*Math.PI/180,n=2*Math.tan(t/2)*l,r=n*(a/i);return{width:r,height:n,factor:a/r,distance:l,aspect:s}}}let I;const L=e=>i((t=>({performance:{...t.performance,current:e}})));return{gl:l,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:h,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:N(e)}}))),setFrameloop:(e="always")=>i((()=>({frameloop:e}))),events:{connected:!1},internal:{active:!1,priority:0,frames:0,lastProps:s,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||(R(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()),l.setPixelRatio(n.dpr),l.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:s,className:l,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),[h,{width:p,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((()=>{p>0&&m>0&&function(e,t,{gl:n,size:i,mode:o=re[1],events:s,onCreated:l,...u}={}){var c,f,d,h,p;i||(i={width:null!=(f=null==(d=t.parentElement)?void 0:d.clientWidth)?f:0,height:null!=(h=null==(p=t.parentElement)?void 0:p.clientHeight)?h: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,N(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&&se(i,e);return i})(n,t);u.vr&&(e.xr.enabled=!0,e.setAnimationLoop((e=>ie(e,!0)))),v=T(se,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}),s&&a.set({events:s(v)})}if(v&&g)return oe.updateContainer(a.createElement(le,{store:v,element:e,onCreated:l,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:p,height:m},onPointerMissed:d,events:u||$})}),[p,m,e,d]),H((()=>{const e=v.current;return()=>ue(e)}),[]),a.createElement("div",{ref:h,id:o,className:l,tabIndex:n,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",...s}},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:se}=function(e){function t(e,{children:t,key:n,ref:r,...a},{children:i,key:o,ref:s,...l}={},u=!1){var c;const f=null!=(c=null==e?void 0:e.__r3f)?c:{},d=Object.entries(a),h=[];if(u){const e=Object.keys(l);for(let t=0;t{var r,a,i;if(null!=(r=e.__r3f)&&r.primitive&&"object"===t)return;if(a=n,i=l[t],x.arr(a)&&x.equ(a,i)||a===i)return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(t))return h.push([t,n,!0,[]]);let o=[];t.includes("-")&&(o=t.split("-")),h.push([t,n,!1,o])}));const p={...a};return f.memoizedProps&&f.memoizedProps.args&&(p.args=f.memoizedProps.args),f.memoizedProps&&f.memoizedProps.attach&&(p.attach=f.memoizedProps.attach),{accumulative:u,memoized:p,changes:h}}function n(e,n){var o,s,l;const u=null!=(o=null==e?void 0:e.__r3f)?o:{},c=u.root,f=null!=(s=null==c||null==c.getState?void 0:c.getState())?s:{},{memoized:d,changes:h}=(p=n)&&p.memoized&&p.changes?n:t(e,n);var p;const m=u.eventCount;if(e.__r3f&&(e.__r3f.memoizedProps=d),h.forEach((([t,n,i,o])=>{var s;let l=e,c=l[t];if(o.length&&(c=o.reduce(((e,t)=>e[t]),e),!c||!c.set)){const[n,...r]=o.reverse();l=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(l.constructor){const e=new l.constructor(l.__r3f.memoizedProps.args);n=e[c],e.dispose&&e.dispose()}else n=0;const h=(null==f||null==(s=f.gl)?void 0:s.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),!h&&e&&c.convertSRGBToLinear()}}else l[t]=n,!h&&l[t]instanceof r.Texture&&(l[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 h.length&&null!=(l=e.__r3f)&&l.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,s){let l,u=`${e[0].toUpperCase()}${e.slice(1)}`;if(!C(i)&&s){const e=t=>t.return?e(t.return):t.stateNode&&t.stateNode.containerInfo;i=e(s)}if(!i||!C(i))throw`No valid root for ${u}!`;if("primitive"===e){if(void 0===a.object)throw"Primitives without 'object' are invalid!";l=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!";l=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(l,a),l}function s(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 s(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 l=null==(i=t.__r3f)?void 0:i.primitive,c=void 0===n?null!==t.dispose&&!l:n;var s;if(!l)f(null==(s=t.__r3f)?void 0:s.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,l||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:l()({now:u.unstable_now,createInstance:o,removeChild:d,appendChild:s,appendInitialChild:s,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,s(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:l=[],children:u,...c}=r;if(!Array.isArray(n))throw"The args prop must be an array!";if(n.some(((e,t)=>e!==l[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&&s(t,e)}return null}},commitUpdate(e,[t,r],a,i,l,u){t?function(e,t,n,r){var a;const i=null==(a=e.__r3f)?void 0:a.parent;if(!i)return;const l=o(t,n,e.__r3f.root);"primitive"!==t&&e.children&&(e.children.forEach((e=>s(l,e))),e.children=[]),e.__r3f.objects.forEach((e=>s(l,e))),e.__r3f.objects=[],d(i,e),s(i,l),l.raycast&&l.__r3f.eventCount&&l.__r3f.root.getState().internal.interaction.push(l);[r,r.alternate].forEach((e=>{null!==e&&(e.stateNode=l,e.ref&&("function"===typeof e.ref?e.ref(l):e.ref.current=l))}))}(e,a,l,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 le({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,s;function l(){var u=Date.now()-o;u=0?r=setTimeout(l,t-u):(r=null,n||(s=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(l,t)),u&&(s=e.apply(i,a),i=a=null),s};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(s=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}},4079:function(e){"use strict";var t=Object.assign.bind(Object);e.exports=t,e.exports.default=e.exports},99166:function(e,t,n){(e=n.nmd(e)).exports=function(t){var r={},a=n(4079),i=n(2784),o=n(14616);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n--s||a[o]!==i[s])return"\n"+a[o].replace(" at new "," at ")}while(1<=o&&0<=s);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 st(e,t,n){if(tt.current!==et)throw Error(s(168));Je(tt,t),Je(nt,n)}function lt(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(s(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(s(169));n?(e=lt(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 ht=0,pt=8;function mt(e){if(0!==(1&e))return pt=15,1;if(0!==(2&e))return pt=14,2;if(0!==(4&e))return pt=13,4;var t=24&e;return 0!==t?(pt=12,t):0!==(32&e)?(pt=11,32):0!==(t=192&e)?(pt=10,t):0!==(256&e)?(pt=9,256):0!==(t=3584&e)?(pt=8,t):0!==(4096&e)?(pt=7,4096):0!==(t=4186112&e)?(pt=6,t):0!==(t=62914560&e)?(pt=5,t):67108864&e?(pt=4,67108864):0!==(134217728&e)?(pt=3,134217728):0!==(t=805306368&e)?(pt=2,t):0!==(1073741824&e)?(pt=1,1073741824):(pt=8,e)}function gt(e,t){var n=e.pendingLanes;if(0===n)return pt=0;var r=0,a=0,i=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,a=pt=15;else if(0!==(i=134217727&n)){var l=i&~o;0!==l?(r=mt(l),a=pt):0!==(s&=i)&&(r=mt(s),a=pt)}else 0!==(i=n&~o)?(r=mt(i),a=pt):0!==s&&(r=mt(s),a=pt);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,Rt=o.unstable_UserBlockingPriority,Nt=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 Rt:return 98;case Nt:return 97;case Ot:return 96;case Tt:return 95;default:throw Error(s(332))}}function $t(e){switch(e){case 99:return jt;case 98:return Rt;case 97:return Nt;case 96:return Ot;case 95:return Tt;default:throw Error(s(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?(h=f,f=null):h=f.sibling;var p=g(a,f,s[d],l);if(null===p){null===f&&(f=h);break}e&&f&&null===p.alternate&&t(a,f),o=i(p,o,d),null===c?u=p:c.sibling=p,c=p,f=h}if(d===s.length)return n(a,f),u;if(null===f){for(;dh?(p=d,d=null):p=d.sibling;var b=g(a,d,y.value,u);if(null===b){null===d&&(d=p);break}e&&d&&null===b.alternate&&t(a,d),o=i(b,o,h),null===f?c=b:f.sibling=b,f=b,d=p}if(y.done)return n(a,d),c;if(null===d){for(;!y.done;h++,y=l.next())null!==(y=m(a,y.value,u))&&(o=i(y,o,h),null===f?c=y:f.sibling=y,f=y);return c}for(d=r(a,d);!y.done;h++,y=l.next())null!==(y=v(d,a,h,y.value,u))&&(e&&null!==y.alternate&&d.delete(null===y.key?h:y.key),o=i(y,o,h),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,l){var d="object"===typeof i&&null!==i&&i.type===f&&null===i.key;d&&(i=i.props.children);var h="object"===typeof i&&null!==i;if(h)switch(i.$$typeof){case u:e:{for(h=i.key,d=r;null!==d;){if(d.key===h){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,l,i.key)).return=e,e=r):((l=Eo(i.type,i.key,i.props,null,e.mode,l)).ref=Mn(e,r,i),l.return=e,e=l)}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,l)).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,l)).return=e,e=r),o(e);if(zn(i))return y(e,r,i,l);if(C(i))return b(e,r,i,l);if(h&&In(e,i),"undefined"===typeof i&&!d)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,z(e.type)||"Component"))}return n(e,r)}}var jn=Ln(!0),Rn=Ln(!1),Nn={},On=Xe(Nn),Tn=Xe(Nn),An=Xe(Nn);function Fn(e){if(e===Nn)throw Error(s(174));return e}function Vn(e,t){Je(An,t),Je(Tn,e),Je(On,Nn),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(s(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(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(s(301));i+=1,sr=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,sr=or=ir=null,lr=!1,t)throw Error(s(300));return e}function hr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sr?ir.memoizedState=sr=e:sr=sr.next=e,sr}function pr(){if(null===or){var e=ir.alternate;e=null!==e?e.memoizedState:null}else e=or.next;var t=null===sr?ir.memoizedState:sr.next;if(null!==t)sr=t,or=e;else{if(null===e)throw Error(s(310));e={memoizedState:(or=e).memoizedState,baseState:or.baseState,baseQueue:or.baseQueue,queue:or.queue,next:null},null===sr?ir.memoizedState=sr=e:sr=sr.next=e}return sr}function mr(e,t){return"function"===typeof t?t(e):t}function gr(e){var t=pr(),n=t.queue;if(null===n)throw Error(s(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 l=o=i=null,u=a;do{var c=u.lane;if((ar&c)===c)null!==l&&(l=l.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===l?(o=l=f,i=r):l=l.next=f,ir.lanes|=c,fi|=c}u=u.next}while(null!==u&&u!==a);null===l?i=r:l.next=o,Xt(r,t.memoizedState)||(Br=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function vr(e){var t=pr(),n=t.queue;if(null===n)throw Error(s(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(s(350))}function br(e,t,n,r){var a=ri;if(null===a)throw Error(s(349));var i=t._getVersion,o=i(t._source),l=nr.current,u=l.useState((function(){return yr(a,t,n)})),c=u[1],f=u[0];u=sr;var d=e.memoizedState,h=d.refs,p=h.getSnapshot,m=d.source;d=d.subscribe;var g=ir;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect((function(){h.getSnapshot=n,h.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,s=e;0n?98:n,(function(){e(!0)})),Ht(97gi&&(t.flags|=64,a=!0,pa(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),pa(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,pa(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(s(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(s(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(s(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)&&(so(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(s(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))so(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(s(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(s(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?Ra(e,n,t):Na(e,n,t)}}function Ra(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):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 Na(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):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 Oa(e,t){for(var n,r,a=t,i=!1;;){if(!i){i=a.return;e:for(;;){if(null===i)throw Error(s(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(s(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(s(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(s(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=ho.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(s(364));return t}if(null===(e=oe(e)))throw Error(s(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(s(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(s(329))}}return Ui(e,Qt()),e.callbackNode===t?Di.bind(null,e):null}function Bi(e,t){for(t&=~hi,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!==li&&(li=2),l=va(l,s),d=o;do{switch(d.tag){case 3:i=l,d.flags|=4096,t&=-t,d.lanes|=t,yn(d,wa(0,i,t));break e;case 1:i=l;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(sn(),ni=n,Ja.current=r,null!==ai)throw Error(s(261));return ri=null,ii=0,li}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):hi|=n),Ui(e,t)}function ho(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:ln(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,pn(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(s(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(s(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<=h){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||ho)){d>i&&(u.height+=d-i,u.y=i),ha)){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:l.ReactCurrentDispatcher,findHostInstanceByFiber:No,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(s(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=ht;try{return ht=e,t()}finally{ht=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(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(it(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var u=n.type;if(it(u)){n=lt(n,u,l);break e}}n=l}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)},46475:function(e,t){"use strict";var n,r,a,i;if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,c=null,f=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(n){throw setTimeout(f,0),n}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},a=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,h=window.clearTimeout;if("undefined"!==typeof console){var p=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,a=e[r];if(!(void 0!==a&&0E(o,n))void 0!==l&&0>E(l,o)?(e[r]=l,e[s]=n,r=s):(e[r]=o,e[i]=n,r=i);else{if(!(void 0!==l&&0>E(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],C=[],z=1,M=null,I=3,L=!1,j=!1,R=!1;function N(e){for(var t=x(C);null!==t;){if(null===t.callback)k(C);else{if(!(t.startTime<=e))break;k(C),t.sortIndex=t.expirationTime,S(P,t)}t=x(C)}}function O(e){if(R=!1,N(e),!j)if(null!==x(P))j=!0,n(T);else{var t=x(C);null!==t&&r(O,t.startTime-e)}}function T(e,n){j=!1,R&&(R=!1,a()),L=!0;var i=I;try{for(N(n),M=x(P);null!==M&&(!(M.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=M.callback;if("function"===typeof o){M.callback=null,I=M.priorityLevel;var s=o(M.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?M.callback=s:M===x(P)&&k(P),N(n)}else k(P);M=x(P)}if(null!==M)var l=!0;else{var u=x(C);null!==u&&r(O,u.startTime-n),l=!1}return l}finally{M=null,I=i,L=!1}}var A=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){j||L||(j=!0,n(T))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return x(P)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=A,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,i,o){var s=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0s?(e.sortIndex=o,S(C,e),null===x(P)&&e===x(C)&&(R?a():R=!0,r(O,o-s))):(e.sortIndex=l,S(P,e),j||L||(j=!0,n(T))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},14616:function(e,t,n){"use strict";e.exports=n(46475)},31290:function(e,t,n){"use strict";n.d(t,{q:function(){return Mn},vc:function(){return Ct},q_:function(){return _n}});var r=n(72947),a=n(2784),i=Object.defineProperty,o={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(o,{assign:()=>V,colors:()=>T,createStringInterpolator:()=>j,skipAnimation:()=>A,to:()=>R,willAdvance:()=>F});var s=x(),l=e=>b(e,s),u=x();l.write=e=>b(e,u);var c=x();l.onStart=e=>b(e,c);var f=x();l.onFrame=e=>b(e,f);var d=x();l.onFinish=e=>b(e,d);var h=[];l.setTimeout=(e,t)=>{const n=l.now()+t,r=()=>{const e=h.findIndex((e=>e.cancel==r));~e&&h.splice(e,1),v-=~e?1:0},a={time:n,handler:e,cancel:r};return h.splice(p(n),0,a),v+=1,w(),a};var p=e=>~(~h.findIndex((t=>t.time>e))||~h.length);l.cancel=e=>{c.delete(e),f.delete(e),d.delete(e),s.delete(e),u.delete(e)},l.sync=e=>{y=!0,l.batchedUpdates(e),y=!1},l.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,l.onStart(n)}return r.handler=e,r.cancel=()=>{c.delete(n),t=null},r};var m="undefined"!=typeof window?window.requestAnimationFrame:()=>{};l.use=e=>m=e,l.now="undefined"!=typeof performance?()=>performance.now():Date.now,l.batchedUpdates=e=>e(),l.catch=console.error,l.frameLoop="always",l.advance=()=>{"demand"!==l.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):S()};var g=-1,v=0,y=!1;function b(e,t){y?(t.delete(e),e(0)):(t.add(e),w())}function w(){g<0&&(g=0,"demand"!==l.frameLoop&&m(_))}function _(){~g&&(m(_),l.batchedUpdates(S))}function S(){const e=g;g=l.now();const t=p(g);t&&(k(h.splice(0,t),(e=>e.handler())),v-=t),v?(c.flush(),s.flush(e?Math.min(64,g-e):16.667),f.flush(),u.flush(),d.flush()):g=-1}function x(){let e=new Set,t=e;return{add(n){v+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(v-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,v-=t.size,k(t,(t=>t(n)&&e.add(t))),v+=e.size,t=e)}}}function k(e,t){e.forEach((e=>{try{t(e)}catch(n){l.catch(n)}}))}function E(){}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){const n=Array.from(e);e.clear(),z(n,t)}}var j,R,N=(e,...t)=>L(e,(e=>e(...t))),O=()=>"undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),T=null,A=!1,F=E,V=e=>{e.to&&(R=e.to),e.now&&(l.now=e.now),void 0!==e.colors&&(T=e.colors),null!=e.skipAnimation&&(A=e.skipAnimation),e.createStringInterpolator&&(j=e.createStringInterpolator),e.requestAnimationFrame&&l.use(e.requestAnimationFrame),e.batchedUpdates&&(l.batchedUpdates=e.batchedUpdates),e.willAdvance&&(F=e.willAdvance),e.frameLoop&&(l.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),l.onStart($)):(H(e),l(G))},advance:G,sort(e){if(Q)l.onFrame((()=>W.sort(e)));else{const t=D.indexOf(e);~t&&(D.splice(t,1),q(e))}},clear(){D=[],U.clear()}};function $(){U.forEach(H),U.clear(),l(G)}function H(e){D.includes(e)||q(e)}function q(e){D.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(D,(t=>t.priority>e.priority)),0,e)}function G(e){const 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 se(e,t,n){const 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),s=oe(a,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}function le(e){const 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){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){const 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))?(le(t[1])<<24|le(t[2])<<16|le(t[3])<<8|255)>>>0:(t=J.exec(e))?(le(t[1])<<24|le(t[2])<<16|le(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|se(ue(t[1]),fe(t[2]),fe(t[3])))>>>0:(t=te.exec(e))?(se(ue(t[1]),fe(t[2]),fe(t[3]))|ce(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var he=(e,t,n)=>{if(P.fun(e))return e;if(P.arr(e))return he({range:e,output:t,extrapolate:n});if(P.str(e.output[0]))return j(e);const r=e,a=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const 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,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}if(r===a)return r;if(t===n)return 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;return u}(e,i[t],i[t+1],a[t],a[t+1],l,o,s,r.map)}};var pe=1.70158,me=1.525*pe,ge=pe+1,ve=2*Math.PI/3,ye=2*Math.PI/4.5,be=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*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-pe*e*e,easeOutBack:e=>1+ge*Math.pow(e-1,3)+pe*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*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=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,a="end"===t?Math.floor(r):Math.ceil(r);return i=0,o=1,s=a/e,Math.min(Math.max(s,i),o);var i,o,s}},_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){const n=e[Se];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Ce=(e,t)=>Le(e,_e,t);function ze(e,t){if(e[_e]){let n=e[Se];n||Le(e,Se,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Me(e,t){const n=e[Se];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Se]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Ie,Le=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),je=/[+\-]?(?: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,Ne=new RegExp(`(${je.source})(%|[a-z]+)`,"i"),Oe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Te=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ae=e=>{const[t,n]=Fe(e);if(!t||O())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Te.test(n)?Ae(n):n||e},Fe=e=>{const t=Te.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Ve=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,Ue=e=>{Ie||(Ie=T?new RegExp(`(${Object.keys(T).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>ke(e).replace(Te,Ae).replace(Re,de).replace(Ie,de))),n=t.map((e=>e.match(je).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=>he({...e,output:t})));return e=>{const n=!Ne.test(t[0])&&t.find((e=>Ne.test(e)))?.replace(je,"");let a=0;return t[0].replace(je,(()=>`${r[a++](e)}${n||""}`)).replace(Oe,Ve)}},De="react-spring: ",Be=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${De}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Qe=Be(console.warn);var We=Be(console.warn);function $e(e){return P.str(e)&&("#"==e[0]||/\d/.test(e)||!O()&&Te.test(e)||e in(T||{}))}var He=O()?a.useEffect:a.useLayoutEffect;function qe(){const e=(0,a.useState)()[1],t=(()=>{const e=(0,a.useRef)(!1);return He((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var Ge=e=>(0,a.useEffect)(e,Ye),Ye=[];function Ke(e){const t=(0,a.useRef)();return(0,a.useEffect)((()=>{t.current=e})),t.current}var Xe=Symbol.for("Animated:node"),Ze=e=>e&&e[Xe],Je=(e,t)=>{return n=e,r=Xe,a=t,Object.defineProperty(n,r,{value:a,writable:!0,configurable:!0});var n,r,a},et=e=>e&&e[Xe]&&e[Xe].getPayload(),tt=class{constructor(){Je(this,this)}getPayload(){return this.payload||[]}},nt=class extends tt{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,P.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new nt(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(){const{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)}},rt=class extends nt{constructor(e){super(0),this._string=null,this._toString=he({output:[e,e]})}static create(e){return new rt(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}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=he({output:[this.getValue(),e]})),this._value=0,super.reset()}},at={dependencies:null},it=class extends tt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return M(this.source,((n,r)=>{var a;(a=n)&&a[Xe]===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){const t=new Set;return M(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){at.dependencies&&xe(e)&&at.dependencies.add(e);const t=et(e);t&&z(t,(e=>this.add(e)))}},ot=class extends it{constructor(e){super(e)}static create(e){return new ot(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const 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($e(e)?rt:nt).create(e)}function lt(e){const t=Ze(e);return t?t.constructor:P.arr(e)?ot:$e(e)?rt:nt}var ut=(e,t)=>{const n=!P.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,a.forwardRef)(((r,i)=>{const o=(0,a.useRef)(null),s=n&&(0,a.useCallback)((e=>{o.current=function(e,t){e&&(P.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[u,c]=function(e,t){const n=new Set;at.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new it(e),at.dependencies=null,[e,n]}(r,t),f=qe(),d=()=>{const e=o.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&f()},h=new ct(d,c),p=(0,a.useRef)();He((()=>(p.current=h,z(c,(e=>ze(e,h))),()=>{p.current&&(z(p.current.deps,(e=>Me(e,p.current))),l.cancel(p.current.update))}))),(0,a.useEffect)(d,[]),Ge((()=>()=>{const e=p.current;z(e.deps,(t=>Me(t,e)))}));const m=t.getComponentProps(u.getValue());return a.createElement(e,{...m,ref:s})}))},ct=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&l.write(this.update)}};var ft=Symbol.for("AnimatedComponent"),dt=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 pt=(e,t)=>!0===e||!!(t&&e&&(P.fun(e)?e(t):I(e).includes(t))),mt=(e,t)=>P.obj(e)?t&&e[t]:e,gt=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,vt=e=>e,yt=(e,t=vt)=>{let n=bt;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const n=t(e[a],a);P.und(n)||(r[a]=n)}return r},bt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],wt={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 _t(e){const t=function(e){const t={};let n=0;if(M(e,((e,r)=>{wt[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return M(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function St(e){return e=ke(e),P.arr(e)?e.map(St):$e(e)?o.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function xt(e){for(const t in e)return!0;return!1}function kt(e){return P.fun(e)||P.arr(e)&&P.obj(e[0])}function Et(e,t){e.ref?.delete(e),t?.delete(e)}function Pt(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Ct={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}},zt={...Ct.default,mass:1,damping:1,easing:we.linear,clamp:!1};function Mt(e,t){if(P.und(t.decay)){const 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 It=[];function Lt(e,{key:t,props:n,defaultProps:r,state:a,actions:i}){return new Promise(((s,u)=>{let c,f,d=pt(n.cancel??r?.cancel,t);if(d)m();else{P.und(n.pause)||(a.paused=pt(n.pause,t));let e=r?.pause;!0!==e&&(e=a.paused||pt(e,t)),c=ht(n.delay||0,t),e?(a.resumeQueue.add(p),i.pause()):(i.resume(),p())}function h(){a.resumeQueue.add(p),a.timeouts.delete(f),f.cancel(),c=f.time-l.now()}function p(){c>0&&!o.skipAnimation?(a.delayed=!0,f=l.setTimeout(m,c),a.pauseQueue.add(h),a.timeouts.add(f)):m()}function m(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(h),a.timeouts.delete(f),e<=(a.cancelId||0)&&(d=!0);try{i.start({...n,callId:e,cancel:d},s)}catch(t){u(t)}}}))}var jt=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Ot(e.get()):t.every((e=>e.noop))?Rt(e.get()):Nt(e.get(),t.every((e=>e.finished))),Rt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Nt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ot=e=>({value:e,cancelled:!0,finished:!1});function Tt(e,t,n,r){const{callId:a,parentId:i,onRest:s}=t,{asyncTo:u,promise:c}=n;return i||e!==u||t.reset?n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const f=yt(t,((e,t)=>"onRest"===t?void 0:e));let d,h;const p=new Promise(((e,t)=>(d=e,h=t))),m=e=>{const t=a<=(n.cancelId||0)&&Ot(r)||a!==n.asyncId&&Nt(r,!1);if(t)throw e.result=t,h(e),e},g=(e,t)=>{const i=new Ft,s=new Vt;return(async()=>{if(o.skipAnimation)throw At(n),s.result=Nt(r,!1),h(s),s;m(i);const l=P.obj(e)?{...e}:{...t,to:e};l.parentId=a,M(f,((e,t)=>{P.und(l[t])&&(l[t]=e)}));const u=await r.start(l);return m(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),u})()};let v;if(o.skipAnimation)return At(n),Nt(r,!1);try{let t;t=P.arr(e)?(async e=>{for(const t of e)await g(t)})(e):Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([t.then(d),p]),v=Nt(r.get(),!0,!1)}catch(y){if(y instanceof Ft)v=y.result;else{if(!(y instanceof Vt))throw y;v=y.result}}finally{a==n.asyncId&&(n.asyncId=i,n.asyncTo=i?u:void 0,n.promise=i?c:void 0)}return P.fun(s)&&l.batchedUpdates((()=>{s(v,r,r.item)})),v})():c}function At(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 Ft=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Vt=class extends Error{constructor(){super("SkipAnimationSignal")}},Ut=e=>e instanceof Bt,Dt=1,Bt=class extends class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ce(this,e)}}{constructor(){super(...arguments),this.id=Dt++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Ze(this);return e&&e.getValue()}to(...e){return o.to(this,e)}interpolate(...e){return Qe(`${De}The "interpolate" function is deprecated in v9 (use "to" instead)`),o.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})}},Qt=Symbol.for("SpringPhase"),Wt=e=>(1&e[Qt])>0,$t=e=>(2&e[Qt])>0,Ht=e=>(4&e[Qt])>0,qt=(e,t)=>t?e[Qt]|=3:e[Qt]&=-3,Gt=(e,t)=>t?e[Qt]|=4:e[Qt]&=-5,Yt=class extends Bt{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=It,this.toValues=null,this.fromValues=It,this.config=new class{constructor(){this.velocity=0,Object.assign(this,zt)}},this.immediate=!1}},this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!P.und(e)||!P.und(t)){const n=P.obj(e)?{...e}:{...t,from:e};P.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!($t(this)||this._state.asyncTo)||Ht(this)}get goal(){return ke(this.animation.to)}get velocity(){const e=Ze(this);return e instanceof nt?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Wt(this)}get isAnimating(){return $t(this)}get isPaused(){return Ht(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:i}=r,o=et(r.to);!o&&xe(r.to)&&(a=I(ke(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const u=s.constructor==rt?1:o?o[l].lastPosition:a[l];let c=r.immediate,f=u;if(!c){if(f=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=P.arr(i.velocity)?i.velocity[l]:i.velocity;let o;const d=i.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(P.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);f=n+a/(1-e)*(1-r),c=Math.abs(s.lastPosition-f)<=d,o=a*r}else{o=null==s.lastVelocity?a:s.lastVelocity;const t=i.restVelocity||d/10,r=i.clamp?0:i.bounce,l=!P.und(r),h=n==u?s.v0>0:nt,p||(c=Math.abs(u-f)<=d,!c));++e){l&&(m=f==u||f>u==h,m&&(o=-o*r,f=u));o+=(1e-6*-i.tension*(f-u)+.001*-i.friction*o)/i.mass*g,f+=o*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),f=n+i.easing(r)*(u-n),o=(f-s.lastPosition)/e,c=1==r}s.lastVelocity=o,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),c=!0)}o&&!o[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(f,i.round)&&(n=!0)}));const s=Ze(this),l=s.getValue();if(t){const e=ke(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return l.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if($t(this)){const{to:e,config:t}=this.animation;l.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=>jt(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),At(this._state,e&&this._lastCallId),l.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){const t=this.key||"";let{to:n,from:r}=e;n=P.obj(n)?n[t]:n,(null==n||kt(n))&&(n=void 0),r=P.obj(r)?r[t]:r,null==r&&(r=void 0);const a={to:n,from:r};return Wt(this)||(e.reverse&&([n,r]=[r,n]),r=ke(r),P.und(r)?Ze(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yt(e,((e,t)=>/^on/.test(t)?mt(e,n):e))),nn(this,e,"onProps"),rn(this,"onProps",e,this);const 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?");const i=this._state;return Lt(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ht(this)||(Gt(this,!0),N(i.pauseQueue),rn(this,"onPause",Nt(this,Kt(this,this.animation.to)),this))},resume:()=>{Ht(this)&&(Gt(this,!1),$t(this)&&this._resume(),N(i.resumeQueue),rn(this,"onResume",Nt(this,Kt(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=Xt(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ot(this));const r=!P.und(e.to),a=!P.und(e.from);if(r||a){if(!(t.callId>this._lastToId))return n(Ot(this));this._lastToId=t.callId}const{key:i,defaultProps:o,animation:s}=this,{to:u,from:c}=s;let{to:f=u,from:d=c}=e;!a||r||t.default&&!P.und(f)||(f=d),t.reverse&&([f,d]=[d,f]);const h=!C(d,c);h&&(s.from=d),d=ke(d);const p=!C(f,u);p&&this._focus(f);const m=kt(t.to),{config:g}=s,{decay:v,velocity:y}=g;(r||a)&&(g.velocity=0),t.config&&!m&&function(e,t,n){n&&(Mt(n={...n},t),t={...n,...t}),Mt(e,t),Object.assign(e,t);for(const o in zt)null==e[o]&&(e[o]=zt[o]);let{frequency:r,damping:a}=e;const{mass:i}=e;P.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*a*i/r)}(g,ht(t.config,i),t.config!==o.config?ht(o.config,i):void 0);let b=Ze(this);if(!b||P.und(f))return n(Nt(this,!0));const w=P.und(t.reset)?a&&!t.default:!P.und(d)&&pt(t.reset,i),_=w?d:this.get(),S=St(f),x=P.num(S)||P.arr(S)||$e(S),k=!m&&(!x||pt(o.immediate||t.immediate,i));if(p){const e=lt(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)}}const E=b.constructor;let M=xe(f),L=!1;if(!M){const e=w||!Wt(this)&&h;(p||e)&&(L=C(St(_),S),M=!L),(C(s.immediate,k)||k)&&C(g.decay,v)&&C(g.velocity,y)||(M=!0)}if(L&&$t(this)&&(s.changed&&!w?M=!0:M||this._stop(u)),!m&&((M||xe(u))&&(s.values=b.getPayload(),s.toValues=xe(f)?null:E==rt?[1]:I(S)),s.immediate!=k&&(s.immediate=k,k||w||this._set(u)),M)){const{onRest:e}=s;z(tn,(e=>nn(this,t,e)));const r=Nt(this,Kt(this,u));N(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&l.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?ht(o.onRest,r):s.onStart?.(r,this)}))}w&&this._set(_),m?n(Tt(t.to,t,this._state,this)):M?this._start():$t(this)&&!p?this._pendingCalls.add(n):n(Rt(_))}_focus(e){const t=this.animation;e!==t.to&&(Ee(this)&&this._detach(),t.to=e,Ee(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;xe(t)&&(ze(t,this),Ut(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;xe(e)&&Me(e,this)}_set(e,t=!0){const n=ke(e);if(!P.und(n)){const e=Ze(this);if(!e||!C(n,e.getValue())){const r=lt(n);e&&e.constructor==r?e.setValue(n):Je(this,r.create(n)),e&&l.batchedUpdates((()=>{this._onChange(n,t)}))}}return Ze(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,rn(this,"onStart",Nt(this,Kt(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(){const e=this.animation;Ze(this).reset(ke(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),$t(this)||(qt(this,!0),Ht(this)||this._resume())}_resume(){o.skipAnimation?this.finish():W.start(this)}_stop(e,t){if($t(this)){qt(this,!1);const 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});const r=t?Ot(this.get()):Nt(this.get(),Kt(this,e??n.to));N(this._pendingCalls,r),n.changed&&(n.changed=!1,rn(this,"onRest",r,this))}}};function Kt(e,t){const n=St(t);return C(St(e.get()),n)}function Xt(e,t=e.loop,n=e.to){const r=ht(t);if(r){const a=!0!==r&&_t(r),i=(a||e).reverse,o=!a||a.reset;return Zt({...e,loop:t,default:!1,pause:void 0,to:!i||kt(n)?n:void 0,from:o?e.from:void 0,reset:o,...a})}}function Zt(e){const{to:t,from:n}=e=_t(e),r=new Set;return P.obj(t)&&en(t,r),P.obj(n)&&en(n,r),e.keys=r.size?Array.from(r):null,e}function Jt(e){const t=Zt(e);return P.und(t.default)&&(t.default=yt(t)),t}function en(e,t){M(e,((e,n)=>null!=e&&t.add(n)))}var tn=["onStart","onRest","onChange","onPause","onResume"];function nn(e,t,n){e.animation[n]=t[n]!==gt(t,n)?mt(t[n],e.key):void 0}function rn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var an=["onStart","onChange","onRest"],on=1,sn=class{constructor(e,t){this.id=on++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},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(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];P.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Zt(e)),this}start(e){let{queue:t}=this;return e?t=I(e).map(Zt):this.queue=[],this._flush?this._flush(this,t):(pn(this,t),ln(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;z(I(t),(t=>n[t].stop(!!e)))}else At(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(P.und(e))this.start({pause:!0});else{const t=this.springs;z(I(e),(e=>t[e].pause()))}return this}resume(e){if(P.und(e))this.start({pause:!1});else{const t=this.springs;z(I(e),(e=>t[e].resume()))}return this}each(e){M(this.springs,e)}_onFrame(){const{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)})));const 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)}l.onFrame(this._onFrame)}};function ln(e,t){return Promise.all(t.map((t=>un(e,t)))).then((t=>jt(e,t)))}async function un(e,t,n){const{keys:r,to:a,from:i,loop:o,onRest:s,onResolve:u}=t,c=P.obj(t.default)&&t.default;o&&(t.loop=!1),!1===a&&(t.to=null),!1===i&&(t.from=null);const 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(an,(n=>{const r=t[n];if(P.fun(r)){const a=e._events[n];t[n]=({finished:e,cancelled:t})=>{const 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])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,N(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===gt(t,"cancel");(f||p&&d.asyncId)&&h.push(Lt(++e._lastAsyncId,{props:t,state:d,actions:{pause:E,resume:E,start(t,n){p?(At(d,e._lastAsyncId),n(Ot(e))):(t.onRest=s,n(Tt(f,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const m=jt(e,await Promise.all(h));if(o&&m.finished&&(!n||!m.noop)){const n=Xt(t,o,a);if(n)return pn(e,[n]),un(e,n,!0)}return u&&l.batchedUpdates((()=>u(m,e,e.item))),m}function cn(e,t){const n={...e.springs};return t&&z(I(t),(e=>{P.und(e.keys)&&(e=Zt(e)),P.obj(e.to)||(e={...e,to:void 0}),hn(n,e,(e=>dn(e)))})),fn(e,n),n}function fn(e,t){M(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,ze(t,e))}))}function dn(e,t){const n=new Yt;return n.key=e,t&&ze(n,t),n}function hn(e,t,n){t.keys&&z(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function pn(e,t){z(t,(t=>{hn(e.springs,t,(t=>dn(t,e)))}))}var mn,gn,vn=({children:e,...t})=>{const n=(0,a.useContext)(yn),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,a.useState)((()=>({inputs:t,result:e()}))),r=(0,a.useRef)(),i=r.current;let o=i;o?Boolean(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)}),[o]),o.result}((()=>({pause:r,immediate:i})),[r,i]);const{Provider:o}=yn;return a.createElement(o,{value:t},e)},yn=(mn=vn,gn={},Object.assign(mn,a.createContext(gn)),mn.Provider._context=mn,mn.Consumer._context=mn,mn);vn.Provider=yn.Provider,vn.Consumer=yn.Consumer;var bn=()=>{const e=[],t=function(t){We(`${De}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`);const r=[];return z(e,((e,a)=>{if(P.und(t))r.push(e.start());else{const 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){const 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)=>{const r=P.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return z(e,((e,r)=>{if(P.und(t))n.push(e.start());else{const 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};const n=function(e,t,n){return P.fun(e)?e(n,t):e};return t._getProps=n,t};function wn(e,t,n){const r=P.fun(t)&&t;r&&!n&&(n=[]);const i=(0,a.useMemo)((()=>r||3==arguments.length?bn():void 0),[]),o=(0,a.useRef)(0),s=qe(),l=(0,a.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=cn(e,t);return o.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?ln(e,t):new Promise((r=>{fn(e,n),l.queue.push((()=>{r(ln(e,t))})),s()}))}})),[]),u=(0,a.useRef)([...l.ctrls]),c=[],f=Ke(e)||0;function d(e,n){for(let a=e;a{z(u.current.slice(e,f),(e=>{Et(e,i),e.stop(!0)})),u.current.length=e,d(f,e)}),[e]),(0,a.useMemo)((()=>{d(0,Math.min(f,e))}),n);const h=u.current.map(((e,t)=>cn(e,c[t]))),p=(0,a.useContext)(vn),m=Ke(p),g=p!==m&&xt(p);He((()=>{o.current++,l.ctrls=u.current;const{queue:e}=l;e.length&&(l.queue=[],z(e,(e=>e()))),z(u.current,((e,t)=>{i?.add(e),g&&e.start({default:p});const n=c[t];n&&(Pt(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Ge((()=>()=>{z(l.ctrls,(e=>e.stop(!0)))}));const v=h.map((e=>({...e})));return i?[v,i]:v}function _n(e,t){const n=P.fun(e),[[r],a]=wn(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,a]:r}var Sn=class extends Bt{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=he(...t);const n=this._get(),r=lt(n);Je(this,r.create(n))}advance(e){const t=this._get();C(t,this.get())||(Ze(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&kn(this._active)&&En(this)}_get(){const e=P.arr(this.source)?this.source.map(ke):I(ke(this.source));return this.calc(...e)}_start(){this.idle&&!kn(this._active)&&(this.idle=!1,z(et(this),(e=>{e.done=!1})),o.skipAnimation?(l.batchedUpdates((()=>this.advance())),En(this)):W.start(this))}_attach(){let e=1;z(I(this.source),(t=>{xe(t)&&ze(t,this),Ut(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)&&Me(e,this)})),this._active.clear(),En(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,(Ut(t)?t.priority:0)+1)),0))}};function xn(e){return!1!==e.idle}function kn(e){return!e.size||Array.from(e).every(xn)}function En(e){e.idle||(e.idle=!0,z(et(e),(e=>{e.done=!0})),Pe(e,{type:"idle",parent:e}))}o.assign({createStringInterpolator:Ue,to:(e,t)=>new Sn(e,t)});W.advance;var Pn=n(96995),Cn=["primitive"].concat(Object.keys(Pn).filter((e=>/^[A-Z]/.test(e))).map((e=>e[0].toLowerCase()+e.slice(1))));o.assign({createStringInterpolator:Ue,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)((()=>{l.advance()}));var zn=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new it(e)),getComponentProps:r=(e=>e)}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=dt(e)||"Anonymous";return(e=P.str(e)?i[e]||(i[e]=ut(e,a)):e[ft]||(e[ft]=ut(e,a))).displayName=`Animated(${t})`,e};return M(e,((t,n)=>{P.arr(e)&&(n=dt(t)),i[n]=i(t)})),{animated:i}})(Cn,{applyAnimatedValues:r.nH}),Mn=zn.animated},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,s=new r.FileLoader(this.manager);s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.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;s=s.toLowerCase();let l=t>=0?e.substring(t+1):"";if(l=l.trim(),"newmtl"===s)r={name:l},o[l]=r;else if("ka"===s||"kd"===s||"ks"===s||"ke"===s){const e=l.split(a,3);r[s]=[parseFloat(e[0]),parseFloat(e[1]),parseFloat(e[2])]}else r[s]=l}const s=new i(this.resourcePath||t,this.materialOptions);return s.setCrossOrigin(this.crossOrigin),s.setManager(this.manager),s.setMaterials(o),s}}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((s=t.baseUrl,"string"!==typeof(l=i.url)||""===l?"":/^https?:\/\//i.test(l)?l:s+l));var s,l;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 s=o.getHandler(e);null===s&&(s=new r.TextureLoader(o)),s.setCrossOrigin&&s.setCrossOrigin(this.crossOrigin);const l=s.load(e,n,a,i);return void 0!==t&&(l.mapping=t),l}}},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 /,s=/^usemap /,l=/\s+/,u=new r.Vector3,c=new r.Vector3,f=new r.Vector3,d=new r.Vector3,h=new r.Vector3,p=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),h.subVectors(f,c),d.subVectors(u,c),h.cross(d),h.normalize(),a.push(h.x,h.y,h.z),a.push(h.x,h.y,h.z),a.push(h.x,h.y,h.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,s,l){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(s,e),d=this.parseNormalIndex(l,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?(p.setRGB(parseFloat(n[4]),parseFloat(n[5]),parseFloat(n[6])).convertSRGBToLinear(),t.colors.push(p.r,p.g,p.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(l),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&&(l=!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}}}}]); //# sourceMappingURL=3980-a9290359900f9e27.js.map