@dcl/playground-assets 7.0.6-4055981423.commit-60b7f6f → 7.0.6-4076330908.commit-cd40e5f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alpha.d.ts +487 -602
- package/dist/beta.d.ts +487 -606
- package/dist/index.bundled.d.ts +487 -606
- package/dist/index.d.ts +1 -1
- package/dist/index.js +582 -250
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +487 -614
- package/etc/playground-assets.api.json +8156 -10095
- package/etc/playground-assets.api.md +276 -947
- package/package.json +3 -3
package/dist/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var communicationsController=require("~system/CommunicationsController"),EthereumController=require("~system/EthereumController"),EngineApi=require("~system/EngineApi");function _interopNamespaceDefault(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var communicationsController__namespace=_interopNamespaceDefault(communicationsController);const ToGammaSpace=1/2.2,ToLinearSpace=2.2,Epsilon=1e-6,DEG2RAD=Math.PI/180,RAD2DEG=360/(2*Math.PI);exports.Scalar=void 0,function(e){function t(e){const t=+e;return 0===t||isNaN(t)?t:t>0?1:-1}function n(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function r(e,t){return e-Math.floor(e/t)*t}function o(e,t){let n=r(t-e,360);return n>180&&(n-=360),n}function i(e,n,r){let o=0;return o=Math.abs(n-e)<=r?n:e+t(n-e)*r,o}e.TwoPi=2*Math.PI,e.withinEpsilon=function(e,t,n=1401298e-51){const r=e-t;return-n<=r&&r<=n},e.toHex=function(e){const t=e.toString(16);return e<=15?("0"+t).toUpperCase():t.toUpperCase()},e.sign=t,e.clamp=n,e.log2=function(e){return Math.log(e)*Math.LOG2E},e.repeat=r,e.normalize=function(e,t,n){return(e-t)/(n-t)},e.denormalize=function(e,t,n){return e*(n-t)+t},e.deltaAngle=o,e.pingPong=function(e,t){const n=r(e,2*t);return t-Math.abs(n-t)},e.smoothStep=function(e,t,r){let o=n(r);return o=-2*o*o*o+3*o*o,t*o+e*(1-o)},e.moveTowards=i,e.moveTowardsAngle=function(e,t,n){const r=o(e,t);let a=0;return a=-n<r&&r<n?t:i(e,e+r,n),a},e.lerp=function(e,t,n){return e+(t-e)*n},e.lerpAngle=function(e,t,o){let i=r(t-e,360);return i>180&&(i-=360),e+i*n(o)},e.inverseLerp=function(e,t,r){let o=0;return o=e!==t?n((r-e)/(t-e)):0,o},e.hermite=function(e,t,n,r,o){const i=o*o,a=o*i;return e*(2*a-3*i+1)+n*(-2*a+3*i)+t*(a-2*i+o)+r*(a-i)},e.randomRange=function(e,t){return e===t?e:Math.random()*(t-e)+e},e.rangeToPercent=function(e,t,n){return(e-t)/(n-t)},e.percentToRange=function(e,t,n){return(n-t)*e+t},e.normalizeRadians=function(t){return t-e.TwoPi*Math.floor((t+Math.PI)/e.TwoPi)}}(exports.Scalar||(exports.Scalar={})),exports.Vector3=void 0,function(e){function t(e=0,t=0,n=0){return{x:e,y:t,z:n}}function n(e,t){return{x:e.x+t.x,y:e.y+t.y,z:e.z+t.z}}function r(e,t){t.x=e.x,t.y=e.y,t.z=e.z}function o(e,t,n,r){r.x=e,r.y=t,r.z=n}function i(e){return t(e.x,e.y,e.z)}function a(e,n=0){return t(e[n],e[n+1],e[n+2])}function s(e,t,n){n.x=e[t],n.y=e[t+1],n.z=e[t+2]}function u(e){return Math.sqrt(e.x*e.x+e.y*e.y+e.z*e.z)}function l(e,t,n){n.x=e.x*t,n.y=e.y*t,n.z=e.z*t}function c(e,n){const r=t(0,0,0);return f(e,n,r),r}function f(e,t,n){0!==t&&1!==t?l(e,1/t,n):r(e,n)}function d(e){return c(e,u(e))}function p(e,t){return e.x*t.x+e.y*t.y+e.z*t.z}function h(e,t,n){const{x:r,y:o,z:i}=e,a=t._m,s=1/(a[3]*r+a[7]*o+a[11]*i+a[15]);n.x=(a[0]*r+a[4]*o+a[8]*i+a[12])*s,n.y=(a[1]*r+a[5]*o+a[9]*i+a[13])*s,n.z=(a[2]*r+a[6]*o+a[10]*i+a[14])*s}function m(e,t,n){const{x:r,y:o,z:i}=e,{x:a,y:s,z:u,w:l}=t,c=l*r+s*i-u*o,f=l*o+u*r-a*i,d=l*i+a*o-s*r,p=-a*r-s*o-u*i;n.x=c*l+p*-a+f*-u-d*-s,n.y=f*l+p*-s+d*-a-c*-u,n.z=d*l+p*-u+c*-s-f*-a}function y(e,t,n,r){r.x=e.x+(t.x-e.x)*n,r.y=e.y+(t.y-e.y)*n,r.z=e.z+(t.z-e.z)*n}function g(e,t,n){n.x=e.y*t.z-e.z*t.y,n.y=e.z*t.x-e.x*t.z,n.z=e.x*t.y-e.y*t.x}function v(e,t,n){return b(e.x,e.y,e.z,t,n)}function b(e,t,n,r,o){const i=r._m,a=e*i[0]+t*i[4]+n*i[8]+i[12],s=e*i[1]+t*i[5]+n*i[9]+i[13],u=e*i[2]+t*i[6]+n*i[10]+i[14],l=1/(e*i[3]+t*i[7]+n*i[11]+i[15]);o.x=a*l,o.y=s*l,o.z=u*l}function _(e,t,n){x(e.x,e.y,e.z,t,n)}function x(e,t,n,r,o){const i=r._m;o.x=e*i[0]+t*i[4]+n*i[8],o.y=e*i[1]+t*i[5]+n*i[9],o.z=e*i[2]+t*i[6]+n*i[10]}function S(e,t,n,r){let i=e.x;i=i>n.x?n.x:i,i=i<t.x?t.x:i;let a=e.y;a=a>n.y?n.y:a,a=a<t.y?t.y:a;let s=e.z;s=s>n.z?n.z:s,s=s<t.z?t.z:s,o(i,a,s,r)}function w(e,t){const n=e.x-t.x,r=e.y-t.y,o=e.z-t.z;return n*n+r*r+o*o}function T(e,t,n,o){const i=exports.Quaternion.create();exports.Quaternion.fromAxisToRotationQuaternionToRef(e,t,n,i),r(exports.Quaternion.toEulerAngles(i),o)}function E(e,t,n){n.x=e.x*t.x,n.y=e.y*t.y,n.z=e.z*t.z}function R(e,t,n,r,o){o.x=e.x*t,o.y=e.y*n,o.z=e.z*r}function P(e,t,n,r,o){t>e.x?o.x=t:o.x=e.x,n>e.y?o.y=n:o.y=e.y,r>e.z?o.z=r:o.z=e.z}function k(e,t,n,r,o){t<e.x?o.x=t:o.x=e.x,n<e.y?o.y=n:o.y=e.y,r<e.z?o.z=r:o.z=e.z}function C(){return t(0,0,0)}e.isNonUniform=function(e){const t=Math.abs(e.x);return t!==Math.abs(e.y)||t!==Math.abs(e.z)},e.create=t,e.add=n,e.addToRef=function(e,t,n){n.x=e.x+t.x,n.y=e.y+t.y,n.z=e.z+t.z},e.subtract=function(e,t){return{x:e.x-t.x,y:e.y-t.y,z:e.z-t.z}},e.subtractToRef=function(e,t,n){n.x=e.x-t.x,n.y=e.y-t.y,n.z=e.z-t.z},e.subtractFromFloatsToRef=function(e,t,n,r,o){o.x=e.x-t,o.y=e.y-n,o.z=e.z-r},e.negate=function(e){return{x:-e.x,y:-e.y,z:-e.z}},e.copyFrom=r,e.copyFromFloats=o,e.clone=i,e.getClipFactor=function(e,t,n,r){const o=p(e,n)-r;return o/(o-(p(t,n)-r))},e.getAngleBetweenVectors=function(e,n,r){const o=d(e),i=d(n),a=p(o,i),s=t();return g(o,i,s),p(s,r)>0?Math.acos(a):-Math.acos(a)},e.fromArray=a,e.fromFloatArray=function(e,t){return a(e,t)},e.fromArrayToRef=s,e.fromFloatArrayToRef=function(e,t,n){return s(e,t,n)},e.length=u,e.lengthSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z},e.scaleToRef=l,e.scale=function(e,n){return t(e.x*n,e.y*n,e.z*n)},e.normalizeFromLength=c,e.normalizeFromLengthToRef=f,e.normalize=d,e.normalizeToRef=function(e,t){f(e,u(e),t)},e.dot=p,e.applyMatrix4=function(e,t){const n=i(e);return h(e,t,n),n},e.applyMatrix4ToRef=h,e.rotate=function(e,n){const r=t();return m(e,n,r),r},e.rotateToRef=m,e.lerp=function(e,n,r){const o=t(0,0,0);return y(e,n,r,o),o},e.lerpToRef=y,e.cross=function(e,t){const n=C();return g(e,t,n),n},e.crossToRef=g,e.transformCoordinates=function(e,t){const n=C();return v(e,t,n),n},e.transformCoordinatesToRef=v,e.transformCoordinatesFromFloatsToRef=b,e.transformNormal=function(e,t){const n=C();return _(e,t,n),n},e.transformNormalToRef=_,e.transformNormalFromFloatsToRef=x,e.catmullRom=function(e,n,r,o,i){const a=i*i,s=i*a;return t(.5*(2*n.x+(-e.x+r.x)*i+(2*e.x-5*n.x+4*r.x-o.x)*a+(-e.x+3*n.x-3*r.x+o.x)*s),.5*(2*n.y+(-e.y+r.y)*i+(2*e.y-5*n.y+4*r.y-o.y)*a+(-e.y+3*n.y-3*r.y+o.y)*s),.5*(2*n.z+(-e.z+r.z)*i+(2*e.z-5*n.z+4*r.z-o.z)*a+(-e.z+3*n.z-3*r.z+o.z)*s))},e.clamp=function(e,n,r){const o=t();return S(e,n,r,o),o},e.clampToRef=S,e.hermite=function(e,n,r,o,i){const a=i*i,s=i*a,u=2*s-3*a+1,l=-2*s+3*a,c=s-2*a+i,f=s-a;return t(e.x*u+r.x*l+n.x*c+o.x*f,e.y*u+r.y*l+n.y*c+o.y*f,e.z*u+r.z*l+n.z*c+o.z*f)},e.minimize=function(e,n){const r=t();return k(n,e.x,e.y,e.z,r),r},e.maximize=function(e,n){const r=t();return P(e,n.x,n.y,n.z,r),r},e.distance=function(e,t){return Math.sqrt(w(e,t))},e.distanceSquared=w,e.center=function(e,t){const r=n(e,t);return l(r,.5,r),r},e.rotationFromAxis=function(e,t,n){const r=C();return T(e,t,n,r),r},e.rotationFromAxisToRef=T,e.toString=function(e){return`(${e.x}, ${e.y}, ${e.z})`},e.getHashCode=function(e){let t=e.x||0;return t=397*t^(e.y||0),t=397*t^(e.z||0),t},e.equals=function(e,t){return e.x===t.x&&e.y===t.y&&e.z===t.z},e.equalsWithEpsilon=function(e,t,n=Epsilon){return exports.Scalar.withinEpsilon(e.x,t.x,n)&&exports.Scalar.withinEpsilon(e.y,t.y,n)&&exports.Scalar.withinEpsilon(e.z,t.z,n)},e.equalsToFloats=function(e,t,n,r){return e.x===t&&e.y===n&&e.z===r},e.multiply=function(e,n){const r=t();return E(e,n,r),r},e.multiplyToRef=E,e.multiplyByFloatsToRef=R,e.multiplyByFloats=function(e,n,r,o){const i=t();return R(e,n,r,o,i),i},e.divide=function(e,t){return{x:e.x/t.x,y:e.y/t.y,z:e.z/t.z}},e.divideToRef=function(e,t,n){n.x=e.x/t.x,n.y=e.y/t.y,n.z=e.z/t.z},e.maximizeInPlaceFromFloatsToRef=P,e.minimizeInPlaceFromFloatsToRef=k,e.floor=function(e){return t(Math.floor(e.x),Math.floor(e.y),Math.floor(e.z))},e.fract=function(e){return t(e.x-Math.floor(e.x),e.y-Math.floor(e.y),e.z-Math.floor(e.z))},e.Zero=C,e.One=function(){return t(1,1,1)},e.Up=function(){return t(0,1,0)},e.Down=function(){return t(0,-1,0)},e.Forward=function(){return t(0,0,1)},e.Backward=function(){return t(0,0,-1)},e.Right=function(){return t(1,0,0)},e.Left=function(){return t(-1,0,0)},e.Random=function(){return t(Math.random(),Math.random(),Math.random())}}(exports.Vector3||(exports.Vector3={})),exports.Plane=void 0,function(e){function t(e,t,n,r){return{normal:exports.Vector3.create(e,t,n),d:r}}e.create=t,e.fromArray=function(e){return t(e[0],e[1],e[2],e[3])},e.fromPoints=function(e,n,r){return t(0,0,0,0)},e.romPositionAndNormal=function(e,n){const r=t(0,0,0,0);return r.normal=exports.Vector3.normalize(n),r.d=-(n.x*e.x+n.y*e.y+n.z*e.z),r},e.signedDistanceToPlaneFromPositionAndNormal=function(e,t,n){const r=-(t.x*e.x+t.y*e.y+t.z*e.z);return exports.Vector3.dot(n,t)+r},e.asArray=function(e){return[e.normal.x,e.normal.y,e.normal.z,e.d]},e.clone=function(e){return t(e.normal.x,e.normal.y,e.normal.z,e.d)},e.getHashCode=function(e){return 0},e.normalize=function(e){const n=t(0,0,0,0),r=Math.sqrt(e.normal.x*e.normal.x+e.normal.y*e.normal.y+e.normal.z*e.normal.z);let o=0;return 0!==r&&(o=1/r),n.normal.x=e.normal.x*o,n.normal.y=e.normal.y*o,n.normal.z=e.normal.z*o,n.d*=o,e},e.transform=function(e,n){const r=exports.Matrix.create();exports.Matrix.transposeToRef(n,r);const o=r._m,i=e.normal.x,a=e.normal.y,s=e.normal.z,u=e.d;return t(i*o[0]+a*o[1]+s*o[2]+u*o[3],i*o[4]+a*o[5]+s*o[6]+u*o[7],i*o[8]+a*o[9]+s*o[10]+u*o[11],i*o[12]+a*o[13]+s*o[14]+u*o[15])},e.dotCoordinate=function(e,t){return e.normal.x*t.x+e.normal.y*t.y+e.normal.z*t.z+e.d},e.copyFromPoints=function(e,t,n){const r=t.x-e.x,o=t.y-e.y,i=t.z-e.z,a=n.x-e.x,s=n.y-e.y,u=n.z-e.z,l=o*u-i*s,c=i*a-r*u,f=r*s-o*a,d=Math.sqrt(l*l+c*c+f*f);let p;p=0!==d?1/d:0;const h=exports.Vector3.create(l*p,c*p,f*p);return{normal:h,d:-(h.x*e.x+h.y*e.y+h.z*e.z)}},e.isFrontFacingTo=function(e,t,n){return exports.Vector3.dot(e.normal,t)<=n},e.signedDistanceTo=function(e,t){return exports.Vector3.dot(t,e.normal)+e.d}}(exports.Plane||(exports.Plane={})),exports.Matrix=void 0,function(e){e.m=function(e){return e._m};let t=0;const n={};function r(){const e={updateFlag:0,isIdentity:!1,isIdentity3x2:!0,_isIdentityDirty:!0,_isIdentity3x2Dirty:!0,_m:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]};return W(e,!1),e}function o(e,t,n){for(let r=0;r<16;r++)n._m[r]=e[r+t];k(n)}function i(e,t,n,r,o,i,a,s,u,l,c,f,d,p,h,m,y){const g=y._m;g[0]=e,g[1]=t,g[2]=n,g[3]=r,g[4]=o,g[5]=i,g[6]=a,g[7]=s,g[8]=u,g[9]=l,g[10]=c,g[11]=f,g[12]=d,g[13]=p,g[14]=h,g[15]=m,k(y)}function a(e,t,n,o,i,a,s,u,l,c,f,d,p,h,m,y){const g=r(),v=g._m;return v[0]=e,v[1]=t,v[2]=n,v[3]=o,v[4]=i,v[5]=a,v[6]=s,v[7]=u,v[8]=l,v[9]=c,v[10]=f,v[11]=d,v[12]=p,v[13]=h,v[14]=m,v[15]=y,k(g),g}function s(e,t,n,o){const i=[r(),r(),r()];h(e.x,e.y,e.z,i[1]),P(t,i[0]),z(i[1],i[0],o),I(o,n)}function u(){const e=a(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return W(e,!0),e}function l(e,t){const n=Math.sin(e),r=Math.cos(e);i(1,0,0,0,0,r,n,0,0,-n,r,0,0,0,0,1,t),W(t,1===r&&0===n)}function c(e,t){const n=Math.sin(e),r=Math.cos(e);i(r,0,-n,0,0,1,0,0,n,0,r,0,0,0,0,1,t),W(t,1===r&&0===n)}function f(e,t){const n=Math.sin(e),r=Math.cos(e);i(r,n,0,0,-n,r,0,0,0,0,1,0,0,0,0,1,t),W(t,1===r&&0===n)}function d(e,t,n){const r=Math.sin(-t),o=Math.cos(-t),i=1-o,a=exports.Vector3.normalize(e),s=n._m;s[0]=a.x*a.x*i+o,s[1]=a.x*a.y*i-a.z*r,s[2]=a.x*a.z*i+a.y*r,s[3]=0,s[4]=a.y*a.x*i+a.z*r,s[5]=a.y*a.y*i+o,s[6]=a.y*a.z*i-a.x*r,s[7]=0,s[8]=a.z*a.x*i-a.y*r,s[9]=a.z*a.y*i+a.x*r,s[10]=a.z*a.z*i+o,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,k(n)}function p(e,t,n,r){const o=exports.Quaternion.Zero();exports.Quaternion.fromRotationYawPitchRollToRef(e,t,n,o),P(o,r)}function h(e,t,n,r){i(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1,r),W(r,1===e&&1===t&&1===n)}function m(e,t,n,r){i(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1,r),W(r,0===e&&0===t&&0===n)}function y(e,t,n,r){for(let o=0;o<16;o++)r._m[o]=e._m[o]*(1-n)+t._m[o]*n;k(r)}function g(e,t,n,r){const o=exports.Vector3.Zero(),i=exports.Quaternion.Zero(),a=exports.Vector3.Zero();O(e,o,i,a);const u=exports.Vector3.Zero(),l=exports.Quaternion.Zero(),c=exports.Vector3.Zero();O(t,u,l,c);const f=exports.Vector3.Zero();exports.Vector3.lerpToRef(o,u,n,f);const d=exports.Quaternion.Zero();exports.Quaternion.slerpToRef(i,l,n,d);const p=exports.Vector3.Zero();exports.Vector3.lerpToRef(a,c,n,p),s(f,d,p,r)}function v(e,t,n,r){const o=exports.Vector3.Zero(),a=exports.Vector3.Zero(),s=exports.Vector3.Zero();exports.Vector3.subtractToRef(t,e,s),exports.Vector3.normalizeToRef(s,s),exports.Vector3.crossToRef(n,s,o);const u=exports.Vector3.lengthSquared(o);0===u?o.x=1:exports.Vector3.normalizeFromLengthToRef(o,Math.sqrt(u),o),exports.Vector3.crossToRef(s,o,a),exports.Vector3.normalizeToRef(a,a);const l=-exports.Vector3.dot(o,e),c=-exports.Vector3.dot(a,e),f=-exports.Vector3.dot(s,e);i(o.x,a.x,s.x,0,o.y,a.y,s.y,0,o.z,a.z,s.z,0,l,c,f,1,r)}function b(e,t,n,r){const o=exports.Vector3.Zero(),a=exports.Vector3.Zero(),s=exports.Vector3.Zero();exports.Vector3.subtractToRef(e,t,s),exports.Vector3.normalizeToRef(s,s),exports.Vector3.crossToRef(n,s,o);const u=exports.Vector3.lengthSquared(o);0===u?o.x=1:exports.Vector3.normalizeFromLengthToRef(o,Math.sqrt(u),o),exports.Vector3.crossToRef(s,o,a),exports.Vector3.normalizeToRef(a,a);const l=-exports.Vector3.dot(o,e),c=-exports.Vector3.dot(a,e),f=-exports.Vector3.dot(s,e);i(o.x,a.x,s.x,0,o.y,a.y,s.y,0,o.z,a.z,s.z,0,l,c,f,1,r)}function _(e,t,n,r,o){const a=2/e,s=2/t,u=2/(r-n),l=-(r+n)/(r-n);i(a,0,0,0,0,s,0,0,0,0,u,0,0,0,l,1,o),W(o,1===a&&1===s&&1===u&&0===l)}function x(e,t,n,r,o,a,s){i(2/(t-e),0,0,0,0,2/(r-n),0,0,0,0,2/(a-o),0,(e+t)/(e-t),(r+n)/(n-r),-(a+o)/(a-o),1,s),k(s)}function S(e,t,n,r,o,i,a){x(e,t,n,r,o,i,a),a._m[10]*=-1}function w(e,t,n,r,o,a=!0){const s=n,u=r,l=1/Math.tan(.5*e);i(a?l/t:l,0,0,0,0,a?l:l*t,0,0,0,0,(u+s)/(u-s),1,0,0,-2*u*s/(u-s),0,o),W(o,!1)}function T(e,t,n,r,o,a=!0){const s=n,u=r,l=1/Math.tan(.5*e);i(a?l/t:l,0,0,0,0,a?l:l*t,0,0,0,0,-(u+s)/(u-s),-1,0,0,-2*u*s/(u-s),0,o),W(o,!1)}function E(e,t){const n=t._m,r=e._m;n[0]=r[0],n[1]=r[4],n[2]=r[8],n[3]=r[12],n[4]=r[1],n[5]=r[5],n[6]=r[9],n[7]=r[13],n[8]=r[2],n[9]=r[6],n[10]=r[10],n[11]=r[14],n[12]=r[3],n[13]=r[7],n[14]=r[11],n[15]=r[15],W(t,e.isIdentity,e._isIdentityDirty)}function R(e,t){const n=exports.Plane.normalize(e),r=n.normal.x,o=n.normal.y,a=n.normal.z,s=-2*r,u=-2*o,l=-2*a;i(s*r+1,u*r,l*r,0,s*o,u*o+1,l*o,0,s*a,u*a,l*a+1,0,s*n.d,u*n.d,l*n.d,1,t)}function P(e,t){const n=e.x*e.x,r=e.y*e.y,o=e.z*e.z,i=e.x*e.y,a=e.z*e.w,s=e.z*e.x,u=e.y*e.w,l=e.y*e.z,c=e.x*e.w;t._m[0]=1-2*(r+o),t._m[1]=2*(i+a),t._m[2]=2*(s-u),t._m[3]=0,t._m[4]=2*(i-a),t._m[5]=1-2*(o+n),t._m[6]=2*(l+c),t._m[7]=0,t._m[8]=2*(s+u),t._m[9]=2*(l-c),t._m[10]=1-2*(r+n),t._m[11]=0,t._m[12]=0,t._m[13]=0,t._m[14]=0,t._m[15]=1,k(t)}function k(e){e.updateFlag=t++,e.isIdentity=!1,e.isIdentity3x2=!1,e._isIdentityDirty=!0,e._isIdentity3x2Dirty=!0}function C(e){if(!0===e.isIdentity)return 1;const t=e._m,n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],u=t[6],l=t[7],c=t[8],f=t[9],d=t[10],p=t[11],h=t[12],m=t[13],y=t[14],g=t[15],v=d*g-y*p,b=f*g-m*p,_=f*y-m*d,x=c*g-h*p,S=c*y-d*h,w=c*m-h*f;return n*+(s*v-u*b+l*_)+r*-(a*v-u*x+l*S)+o*+(a*b-s*x+l*w)+i*-(a*_-s*S+u*w)}function M(e,t,n){for(let r=0;r<16;r++)n._m[r]=e._m[r]+t._m[r];k(n)}function B(e,t){if(!0===e.isIdentity)return void N(e,t);const n=e._m,r=n[0],o=n[1],a=n[2],s=n[3],u=n[4],l=n[5],c=n[6],f=n[7],d=n[8],p=n[9],h=n[10],m=n[11],y=n[12],g=n[13],v=n[14],b=n[15],_=h*b-v*m,x=p*b-g*m,S=p*v-g*h,w=d*b-y*m,T=d*v-h*y,E=d*g-y*p,R=+(l*_-c*x+f*S),P=-(u*_-c*w+f*T),k=+(u*x-l*w+f*E),C=-(u*S-l*T+c*E),M=r*R+o*P+a*k+s*C;if(0===M)return void N(e,t);const B=1/M,A=c*b-v*f,I=l*b-g*f,U=l*v-g*c,z=u*b-y*f,D=u*v-y*c,O=u*g-y*l,L=c*m-h*f,F=l*m-p*f,W=l*h-p*c,G=u*m-d*f,$=u*h-d*c,H=u*p-d*l;i(R*B,-(o*_-a*x+s*S)*B,+(o*A-a*I+s*U)*B,-(o*L-a*F+s*W)*B,P*B,+(r*_-a*w+s*T)*B,-(r*A-a*z+s*D)*B,+(r*L-a*G+s*$)*B,k*B,-(r*x-o*w+s*E)*B,+(r*I-o*z+s*O)*B,-(r*F-o*G+s*H)*B,C*B,+(r*S-o*T+a*E)*B,-(r*U-o*D+a*O)*B,+(r*W-o*$+a*H)*B,t)}function A(e,t,n,r){e._m[12]=t,e._m[13]=n,e._m[14]=r,k(e)}function I(e,t){A(e,t.x,t.y,t.z)}function N(e,t){U(e,t._m),W(t,e.isIdentity,e._isIdentityDirty,e.isIdentity3x2,e._isIdentity3x2Dirty)}function U(e,t,n=0){for(let r=0;r<16;r++)t[n+r]=e._m[r]}function z(e,t,n){e.isIdentity?N(t,n):t.isIdentity?N(e,n):(D(e,t,n._m,0),k(n))}function D(e,t,n,r){const o=e._m,i=t._m,a=o[0],s=o[1],u=o[2],l=o[3],c=o[4],f=o[5],d=o[6],p=o[7],h=o[8],m=o[9],y=o[10],g=o[11],v=o[12],b=o[13],_=o[14],x=o[15],S=i[0],w=i[1],T=i[2],E=i[3],R=i[4],P=i[5],k=i[6],C=i[7],M=i[8],B=i[9],A=i[10],I=i[11],N=i[12],U=i[13],z=i[14],D=i[15];n[r]=a*S+s*R+u*M+l*N,n[r+1]=a*w+s*P+u*B+l*U,n[r+2]=a*T+s*k+u*A+l*z,n[r+3]=a*E+s*C+u*I+l*D,n[r+4]=c*S+f*R+d*M+p*N,n[r+5]=c*w+f*P+d*B+p*U,n[r+6]=c*T+f*k+d*A+p*z,n[r+7]=c*E+f*C+d*I+p*D,n[r+8]=h*S+m*R+y*M+g*N,n[r+9]=h*w+m*P+y*B+g*U,n[r+10]=h*T+m*k+y*A+g*z,n[r+11]=h*E+m*C+y*I+g*D,n[r+12]=v*S+b*R+_*M+x*N,n[r+13]=v*w+b*P+_*B+x*U,n[r+14]=v*T+b*k+_*A+x*z,n[r+15]=v*E+b*C+_*I+x*D}function O(e,t,n,o){if(e.isIdentity)return o&&(o=exports.Vector3.create(0,0,0)),t&&(t=exports.Vector3.create(0,0,0)),n&&(n=exports.Quaternion.create(0,0,0,1)),!0;const a=e._m;o&&(o=exports.Vector3.create(a[12],a[13],a[14]));const s=t||exports.Vector3.Zero();if(s.x=Math.sqrt(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]),s.y=Math.sqrt(a[4]*a[4]+a[5]*a[5]+a[6]*a[6]),s.z=Math.sqrt(a[8]*a[8]+a[9]*a[9]+a[10]*a[10]),C(e)<=0&&(s.y*=-1),0===s.x||0===s.y||0===s.z)return n&&(n=exports.Quaternion.create(0,0,0,1)),!1;if(n){const e=1/s.x,t=1/s.y,o=1/s.z,u=r();i(a[0]*e,a[1]*e,a[2]*e,0,a[4]*t,a[5]*t,a[6]*t,0,a[8]*o,a[9]*o,a[10]*o,0,0,0,0,1,u),exports.Quaternion.fromRotationMatrixToRef(u,n)}return!0}function L(e,t,n){for(let r=0;r<16;r++)n._m[r]=e._m[r]*t;k(n)}function F(e,t){const n=exports.Vector3.Zero();if(!O(e,n))return void(t=u());const r=e._m,o=1/n.x,a=1/n.y,s=1/n.z;i(r[0]*o,r[1]*o,r[2]*o,0,r[4]*a,r[5]*a,r[6]*a,0,r[8]*s,r[9]*s,r[10]*s,0,0,0,0,1,t)}function W(e,n,r=!1,o=!1,i=!0){e.updateFlag=t++,e.isIdentity=n,e.isIdentity3x2=n||o,e._isIdentityDirty=!e.isIdentity&&r,e._isIdentity3x2Dirty=!e.isIdentity3x2&&i}e.IdentityReadonly=function(){return n},e.create=r,e.fromArray=function(e,t=0){const n=r();return o(e,t,n),n},e.fromArrayToRef=o,e.fromFloatArrayToRefScaled=function(e,t,n,r){for(let o=0;o<16;o++)r._m[o]=e[o+t]*n;k(r)},e.fromValuesToRef=i,e.fromValues=a,e.compose=function(e,t,n){const o=r();return s(e,t,n,o),o},e.composeToRef=s,e.Identity=u,e.IdentityToRef=function(e){i(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,e),W(e,!0)},e.Zero=function(){const e=a(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return W(e,!1),e},e.RotationX=function(e){const t=r();return l(e,t),t},e.rotationXToRef=l,e.rotationY=function(e){const t=r();return c(e,t),t},e.rotationYToRef=c,e.rotationZ=function(e){const t=r();return f(e,t),t},e.rotationZToRef=f,e.rotationAxis=function(e,t){const n=r();return d(e,t,n),n},e.rotationAxisToRef=d,e.rotationYawPitchRoll=function(e,t,n){const o=r();return p(e,t,n,o),o},e.rotationYawPitchRollToRef=p,e.scaling=function(e,t,n){const o=r();return h(e,t,n,o),o},e.scalingToRef=h,e.translation=function(e,t,n){const o=r();return m(e,t,n,o),o},e.translationToRef=m,e.lerp=function(e,t,n){const o=r();return y(e,t,n,o),o},e.lerpToRef=y,e.decomposeLerp=function(e,t,n){const o=r();return g(e,t,n,o),o},e.decomposeLerpToRef=g,e.LookAtLH=function(e,t,n){const o=r();return v(e,t,n,o),o},e.lookAtLHToRef=v,e.lookAtRH=function(e,t,n){const o=r();return b(e,t,n,o),o},e.lookAtRHToRef=b,e.orthoLH=function(e,t,n,o){const i=r();return _(e,t,n,o,i),i},e.orthoLHToRef=_,e.OrthoOffCenterLH=function(e,t,n,o,i,a){const s=r();return x(e,t,n,o,i,a,s),s},e.orthoOffCenterLHToRef=x,e.orthoOffCenterRH=function(e,t,n,o,i,a){const s=r();return S(e,t,n,o,i,a,s),s},e.orthoOffCenterRHToRef=S,e.perspectiveLH=function(e,t,n,o){const a=r();return i(2*n/e,0,0,0,0,2*n/t,0,0,0,0,(o+n)/(o-n),1,0,0,-2*o*n/(o-n),0,a),W(a,!1),a},e.perspectiveFovLH=function(e,t,n,o){const i=r();return w(e,t,n,o,i),i},e.perspectiveFovLHToRef=w,e.PerspectiveFovRH=function(e,t,n,o){const i=r();return T(e,t,n,o,i),i},e.perspectiveFovRHToRef=T,e.perspectiveFovWebVRToRef=function(e,t,n,r,o=!1){const i=o?-1:1,a=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),u=Math.tan(e.leftDegrees*Math.PI/180),l=Math.tan(e.rightDegrees*Math.PI/180),c=2/(u+l),f=2/(a+s),d=r._m;d[0]=c,d[1]=d[2]=d[3]=d[4]=0,d[5]=f,d[6]=d[7]=0,d[8]=(u-l)*c*.5,d[9]=-(a-s)*f*.5,d[10]=-n/(t-n),d[11]=1*i,d[12]=d[13]=d[15]=0,d[14]=-2*n*t/(n-t),k(r)},e.GetAsMatrix2x2=function(e){return[e._m[0],e._m[1],e._m[4],e._m[5]]},e.GetAsMatrix3x3=function(e){return[e._m[0],e._m[1],e._m[2],e._m[4],e._m[5],e._m[6],e._m[8],e._m[9],e._m[10]]},e.transpose=function(e){const t=r();return E(e,t),t},e.transposeToRef=E,e.reflection=function(e){const t=r();return R(e,t),t},e.reflectionToRef=R,e.fromXYZAxesToRef=function(e,t,n,r){i(e.x,e.y,e.z,0,t.x,t.y,t.z,0,n.x,n.y,n.z,0,0,0,0,1,r)},e.fromQuaternionToRef=P,e.isIdentityUpdate=function(e){if(e._isIdentityDirty){e._isIdentityDirty=!1;const t=e._m;e.isIdentity=1===t[0]&&0===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]&&0===t[8]&&0===t[9]&&1===t[10]&&0===t[11]&&0===t[12]&&0===t[13]&&0===t[14]&&1===t[15]}return e.isIdentity},e.isIdentityAs3x2Update=function(e){return e._isIdentity3x2Dirty&&(e._isIdentity3x2Dirty=!1,1!==e._m[0]||1!==e._m[5]||1!==e._m[15]||0!==e._m[1]||0!==e._m[2]||0!==e._m[3]||0!==e._m[4]||0!==e._m[6]||0!==e._m[7]||0!==e._m[8]||0!==e._m[9]||0!==e._m[10]||0!==e._m[11]||0!==e._m[12]||0!==e._m[13]||0!==e._m[14]?e.isIdentity3x2=!1:e.isIdentity3x2=!0),e.isIdentity3x2},e.determinant=C,e.toArray=function(e){return e._m},e.asArray=function(e){return e._m},e.reset=function(e){i(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,e),W(e,!1)},e.add=function(e,t){const n=r();return M(e,t,n),n},e.addToRef=M,e.addToSelf=function(e,t){for(let n=0;n<16;n++)e._m[n]+=t._m[n];k(e)},e.invert=function(e){const t=r();return B(e,t),t},e.invertToRef=B,e.addAtIndex=function(e,t,n){e._m[t]+=n,k(e)},e.multiplyAtIndex=function(e,t,n){return e._m[t]*=n,k(e),e},e.setTranslationFromFloats=A,e.setTranslation=I,e.getTranslation=function(e){return exports.Vector3.create(e._m[12],e._m[13],e._m[14])},e.getTranslationToRef=function(e,t){t.x=e._m[12],t.y=e._m[13],t.z=e._m[14]},e.removeRotationAndScaling=function(e){const t=e._m;return i(1,0,0,0,0,1,0,0,0,0,1,0,t[12],t[13],t[14],t[15],e),W(e,0===t[12]&&0===t[13]&&0===t[14]&&1===t[15]),e},e.multiply=function(e,t){const n=r();return z(e,t,n),n},e.copy=N,e.copyToArray=U,e.multiplyToRef=z,e.multiplyToArray=D,e.equals=function(e,t){const n=t;if(!n)return!1;if((e.isIdentity||n.isIdentity)&&!e._isIdentityDirty&&!n._isIdentityDirty)return e.isIdentity&&n.isIdentity;const r=e._m,o=n._m;return r[0]===o[0]&&r[1]===o[1]&&r[2]===o[2]&&r[3]===o[3]&&r[4]===o[4]&&r[5]===o[5]&&r[6]===o[6]&&r[7]===o[7]&&r[8]===o[8]&&r[9]===o[9]&&r[10]===o[10]&&r[11]===o[11]&&r[12]===o[12]&&r[13]===o[13]&&r[14]===o[14]&&r[15]===o[15]},e.clone=function(e){const t=r();return N(e,t),t},e.getHashCode=function(e){let t=e._m[0]||0;for(let n=1;n<16;n++)t=397*t^(e._m[n]||0);return t},e.decompose=O,e.setRowFromFloats=function(e,t,n,r,o,i){if(t<0||t>3)return;const a=4*t;e._m[a+0]=n,e._m[a+1]=r,e._m[a+2]=o,e._m[a+3]=i,k(e)},e.scale=function(e,t){const n=r();return L(e,t,n),n},e.scaleToRef=L,e.scaleAndAddToRef=function(e,t,n){for(let r=0;r<16;r++)n._m[r]+=e._m[r]*t;k(n)},e.normalMatrixToRef=function(e,t){const n=r();B(e,n),E(n,t);const o=t._m;i(o[0],o[1],o[2],0,o[4],o[5],o[6],0,o[8],o[9],o[10],0,0,0,0,1,t)},e.getRotationMatrix=function(e){const t=r();return F(e,t),t},e.getRotationMatrixToRef=F,e.toggleModelMatrixHandInPlace=function(e){e._m[2]*=-1,e._m[6]*=-1,e._m[8]*=-1,e._m[9]*=-1,e._m[14]*=-1,k(e)},e.toggleProjectionMatrixHandInPlace=function(e){e._m[8]*=-1,e._m[9]*=-1,e._m[10]*=-1,e._m[11]*=-1,k(e)}}(exports.Matrix||(exports.Matrix={})),exports.Quaternion=void 0,function(e){function t(e=0,t=0,n=0,r=1){return{x:e,y:t,z:n,w:r}}function n(e,n,r){const o=.5*n,i=.5*e,a=.5*r,s=Math.cos(o),u=Math.cos(i),l=Math.cos(a),c=Math.sin(o),f=Math.sin(i),d=Math.sin(a);return t(u*c*l+f*s*d,f*s*l-u*c*d,u*s*d-f*c*l,u*s*l+f*c*d)}function r(e){return Math.sqrt(o(e))}function o(e){return e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w}function i(e,t){return e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w}function a(e,t){const n=i(e,t);return 2*Math.acos(Math.min(Math.abs(n),1))*RAD2DEG}function s(e){const n=1/r(e);return t(e.x*n,e.y*n,e.z*n,e.w*n)}function u(){return t(0,0,0,1)}function l(t,n,r){const o=e.Identity();return e.slerpToRef(t,n,r,o),o}function c(e,t,n){n.x=e.x*t.w+e.y*t.z-e.z*t.y+e.w*t.x,n.y=-e.x*t.z+e.y*t.w+e.z*t.x+e.w*t.y,n.z=e.x*t.y-e.y*t.x+e.z*t.w+e.w*t.z,n.w=-e.x*t.x-e.y*t.y-e.z*t.z+e.w*t.w}function f(t,n,r,o){const i=exports.Matrix.create();exports.Matrix.fromXYZAxesToRef(exports.Vector3.normalize(t),exports.Vector3.normalize(n),exports.Vector3.normalize(r),i),e.fromRotationMatrixToRef(i,o)}function d(t,n,r=exports.Vector3.Up(),o){const i=exports.Matrix.Identity();exports.Matrix.lookAtLHToRef(t,n,r,i),exports.Matrix.invertToRef(i,i),e.fromRotationMatrixToRef(i,o)}e.create=t,e.add=function(e,t){return{x:e.x+t.x,y:e.y+t.y,z:e.z+t.z,w:e.w+t.w}},e.fromRotationYawPitchRoll=n,e.fromEulerDegrees=function(e,t,r){return n(t*DEG2RAD,e*DEG2RAD,r*DEG2RAD)},e.length=r,e.lengthSquared=o,e.dot=i,e.angle=a,e.rotateTowards=function(e,t,n){const r=a(e,t);return 0===r?t:l(e,t,Math.min(1,n/r))},e.lookRotation=function(e,n={x:0,y:1,z:0}){const r=exports.Vector3.normalize(e),o=exports.Vector3.normalize(exports.Vector3.cross(n,r)),i=exports.Vector3.cross(r,o),a=o.x,s=o.y,u=o.z,l=i.x,c=i.y,f=i.z,d=r.x,p=r.y,h=r.z,m=a+c+h,y=t();if(m>0){let e=Math.sqrt(m+1);return y.w=.5*e,e=.5/e,y.x=(f-p)*e,y.y=(d-u)*e,y.z=(s-l)*e,y}if(a>=c&&a>=h){const e=Math.sqrt(1+a-c-h),t=.5/e;return y.x=.5*e,y.y=(s+l)*t,y.z=(u+d)*t,y.w=(f-p)*t,y}if(c>h){const e=Math.sqrt(1+c-a-h),t=.5/e;return y.x=(l+s)*t,y.y=.5*e,y.z=(p+f)*t,y.w=(d-u)*t,y}const g=Math.sqrt(1+h-a-c),v=.5/g;return y.x=(d+u)*v,y.y=(p+f)*v,y.z=.5*g,y.w=(s-l)*v,y},e.normalize=s,e.fromToRotation=function(e,n,r=exports.Vector3.Up()){const o=exports.Vector3.normalize(e),i=exports.Vector3.normalize(n),a=exports.Vector3.cross(o,i),l=Math.sqrt(exports.Vector3.lengthSquared(o)*exports.Vector3.lengthSquared(i))+exports.Vector3.dot(o,i);return exports.Vector3.lengthSquared(a)<1e-4?Math.abs(l)<1e-4?s(t(r.x,r.y,r.z,0)):u():s(t(a.x,a.y,a.z,l))},e.Identity=u,e.toEulerAngles=function(e){const t=exports.Vector3.create(),n=e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w,r=e.x*e.w-e.y*e.z;return r>.4995*n?(t.x=Math.PI/2,t.y=2*Math.atan2(e.y,e.x),t.z=0):r<-.4995*n?(t.x=-Math.PI/2,t.y=-2*Math.atan2(e.y,e.x),t.z=0):(t.x=Math.asin(2*(e.w*e.x-e.y*e.z)),t.y=Math.atan2(2*e.w*e.y+2*e.z*e.x,1-2*(e.x*e.x+e.y*e.y)),t.z=Math.atan2(2*e.w*e.z+2*e.x*e.y,1-2*(e.z*e.z+e.x*e.x))),t.x*=RAD2DEG,t.y*=RAD2DEG,t.z*=RAD2DEG,t.x=exports.Scalar.repeat(t.x,360),t.y=exports.Scalar.repeat(t.y,360),t.z=exports.Scalar.repeat(t.z,360),t},e.fromRotationYawPitchRollToRef=function(e,t,n,r){const o=.5*t,i=.5*e,a=.5*n,s=Math.cos(o),u=Math.cos(i),l=Math.cos(a),c=Math.sin(o),f=Math.sin(i),d=Math.sin(a);r.x=u*c*l+f*s*d,r.y=f*s*l-u*c*d,r.z=u*s*d-f*c*l,r.w=u*s*l+f*c*d},e.fromRotationMatrixToRef=function(e,t){const n=e._m,r=n[0],o=n[4],i=n[8],a=n[1],s=n[5],u=n[9],l=n[2],c=n[6],f=n[10],d=r+s+f;let p;d>0?(p=.5/Math.sqrt(d+1),t.w=.25/p,t.x=(c-u)*p,t.y=(i-l)*p,t.z=(a-o)*p):r>s&&r>f?(p=2*Math.sqrt(1+r-s-f),t.w=(c-u)/p,t.x=.25*p,t.y=(o+a)/p,t.z=(i+l)/p):s>f?(p=2*Math.sqrt(1+s-r-f),t.w=(i-l)/p,t.x=(o+a)/p,t.y=.25*p,t.z=(u+c)/p):(p=2*Math.sqrt(1+f-r-s),t.w=(a-o)/p,t.x=(i+l)/p,t.y=(u+c)/p,t.z=.25*p)},e.slerp=l,e.slerpToRef=function(e,t,n,r){let o,i,a=e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w,s=!1;if(a<0&&(s=!0,a=-a),a>.999999)i=1-n,o=s?-n:n;else{const e=Math.acos(a),t=1/Math.sin(e);i=Math.sin((1-n)*e)*t,o=s?-Math.sin(n*e)*t:Math.sin(n*e)*t}r.x=i*e.x+o*t.x,r.y=i*e.y+o*t.y,r.z=i*e.z+o*t.z,r.w=i*e.w+o*t.w},e.multiply=function(e,n){const r=t(0,0,0,1);return c(e,n,r),r},e.multiplyToRef=c,e.fromAngleAxis=function(t,n){if(0===exports.Vector3.lengthSquared(n))return e.Identity();const r=u();let o=t*DEG2RAD;o*=.5;const i=exports.Vector3.normalize(n);return exports.Vector3.scaleToRef(i,Math.sin(o),i),r.x=i.x,r.y=i.y,r.z=i.z,r.w=Math.cos(o),s(r)},e.fromAxisToRotationQuaternion=function(t,n,r){const o=e.create(0,0,0,0);return f(t,n,r,o),o},e.fromAxisToRotationQuaternionToRef=f,e.Zero=function(){return t(0,0,0,0)},e.fromLookAt=function(t,n,r=exports.Vector3.Up()){const o=e.Identity();return d(t,n,r,o),o},e.fromLookAtToRef=d}(exports.Quaternion||(exports.Quaternion={})),exports.Color4=void 0,function(e){function t(e=0,t=0,n=0,r=1){return{r:e,g:t,b:n,a:r}}function n(){return t(0,0,0,0)}function r(e,t,n){n.r=e.r+t.r,n.g=e.g+t.g,n.b=e.b+t.b,n.a=e.a+t.a}function o(e,t,n){n.r=e.r-t.r,n.g=e.g-t.g,n.b=e.b-t.b,n.a=e.a-t.a}function i(e,t){t.r=Math.pow(e.r,ToLinearSpace),t.g=Math.pow(e.g,ToLinearSpace),t.b=Math.pow(e.b,ToLinearSpace),t.a=e.a}function a(e,t){t.r=Math.pow(e.r,ToGammaSpace),t.g=Math.pow(e.g,ToGammaSpace),t.b=Math.pow(e.b,ToGammaSpace),t.a=e.a}e.create=t,e.fromHexString=function(n){if("#"!==n.substring(0,1)||9!==n.length)return t(0,0,0,0);const r=parseInt(n.substring(1,3),16),o=parseInt(n.substring(3,5),16),i=parseInt(n.substring(5,7),16),a=parseInt(n.substring(7,9),16);return e.fromInts(r,o,i,a)},e.lerp=function(n,r,o){const i=t(0,0,0,0);return e.lerpToRef(n,r,o,i),i},e.lerpToRef=function(e,t,n,r){r.r=e.r+(t.r-e.r)*n,r.g=e.g+(t.g-e.g)*n,r.b=e.b+(t.b-e.b)*n,r.a=e.a+(t.a-e.a)*n},e.Red=function(){return t(1,0,0,1)},e.Green=function(){return t(0,1,0,1)},e.Blue=function(){return t(0,0,1,1)},e.Black=function(){return t(0,0,0,1)},e.White=function(){return t(1,1,1,1)},e.Purple=function(){return t(.5,0,.5,1)},e.Magenta=function(){return t(1,0,1,1)},e.Yellow=function(){return t(1,1,0,1)},e.Gray=function(){return t(.5,.5,.5,1)},e.Teal=function(){return t(0,1,1,1)},e.Clear=n,e.fromColor3=function(e,n=1){return t(e.r,e.g,e.b,n)},e.fromArray=function(e,n=0){return t(e[n],e[n+1],e[n+2],e[n+3])},e.fromInts=function(e,n,r,o){return t(e/255,n/255,r/255,o/255)},e.checkColors4=function(e,t){if(e.length===3*t){const t=[];for(let n=0;n<e.length;n+=3){const r=n/3*4;t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=1}return t}return e},e.addToRef=r,e.toArray=function(e,t,n=0){t[n]=e.r,t[n+1]=e.g,t[n+2]=e.b,t[n+3]=e.a},e.add=function(e,t){const o=n();return r(e,t,o),o},e.subtract=function(e,t){const r=n();return o(e,t,r),r},e.subtractToRef=o,e.scale=function(e,n){return t(e.r*n,e.g*n,e.b*n,e.a*n)},e.scaleToRef=function(e,t,n){n.r=e.r*t,n.g=e.g*t,n.b=e.b*t,n.a=e.a*t},e.scaleAndAddToRef=function(e,t,n){n.r+=e.r*t,n.g+=e.g*t,n.b+=e.b*t,n.a+=e.a*t},e.clampToRef=function(e,t=0,n=1,r){r.r=exports.Scalar.clamp(e.r,t,n),r.g=exports.Scalar.clamp(e.g,t,n),r.b=exports.Scalar.clamp(e.b,t,n),r.a=exports.Scalar.clamp(e.a,t,n)},e.multiply=function(e,n){return t(e.r*n.r,e.g*n.g,e.b*n.b,e.a*n.a)},e.multiplyToRef=function(e,t,n){n.r=e.r*t.r,n.g=e.g*t.g,n.b=e.b*t.b,n.a=e.a*t.a},e.toString=function(e){return"{R: "+e.r+" G:"+e.g+" B:"+e.b+" A:"+e.a+"}"},e.getHashCode=function(e){let t=e.r||0;return t=397*t^(e.g||0),t=397*t^(e.b||0),t=397*t^(e.a||0),t},e.clone=function(e){return t(e.r,e.g,e.b,e.a)},e.copyFrom=function(e,t){t.r=e.r,t.g=e.g,t.b=e.b,t.a=e.a},e.copyFromFloats=function(e,t,n,r,o){o.r=e,o.g=t,o.b=n,o.a=r},e.set=function(e,t,n,r,o){o.r=e,o.g=t,o.b=n,o.a=r},e.toHexString=function(e){const t=255*e.r|0,n=255*e.g|0,r=255*e.b|0,o=255*e.a|0;return"#"+exports.Scalar.toHex(t)+exports.Scalar.toHex(n)+exports.Scalar.toHex(r)+exports.Scalar.toHex(o)},e.toLinearSpace=function(e){const n=t();return i(e,n),n},e.toLinearSpaceToRef=i,e.toGammaSpace=function(e){const n=t();return a(e,n),n},e.toGammaSpaceToRef=a}(exports.Color4||(exports.Color4={})),exports.Color3=void 0,function(e){function t(e=0,t=0,n=0){return{r:e,g:t,b:n}}function n(e,n,r){return t(e/255,n/255,r/255)}function r(e,t,n=0){t[n]=e.r,t[n+1]=e.g,t[n+2]=e.b}function o(e,t=0,n=1,r){r.r=exports.Scalar.clamp(e.r,t,n),r.g=exports.Scalar.clamp(e.g,t,n),r.b=exports.Scalar.clamp(e.b,t,n)}function i(e,t){t.r=Math.pow(e.r,ToLinearSpace),t.g=Math.pow(e.g,ToLinearSpace),t.b=Math.pow(e.b,ToLinearSpace)}function a(e,t){t.r=Math.pow(e.r,ToGammaSpace),t.g=Math.pow(e.g,ToGammaSpace),t.b=Math.pow(e.b,ToGammaSpace)}e.create=t,e.fromHexString=function(e){return"#"!==e.substring(0,1)||7!==e.length?t(0,0,0):n(parseInt(e.substring(1,3),16),parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16))},e.fromArray=function(e,n=0){return t(e[n],e[n+1],e[n+2])},e.fromInts=n,e.lerp=function(n,r,o){const i=t(0,0,0);return e.lerpToRef(n,r,o,i),i},e.lerpToRef=function(e,t,n,r){r.r=e.r+(t.r-e.r)*n,r.g=e.g+(t.g-e.g)*n,r.b=e.b+(t.b-e.b)*n},e.Red=function(){return t(1,0,0)},e.Green=function(){return t(0,1,0)},e.Blue=function(){return t(0,0,1)},e.Black=function(){return t(0,0,0)},e.White=function(){return t(1,1,1)},e.Purple=function(){return t(.5,0,.5)},e.Magenta=function(){return t(1,0,1)},e.Yellow=function(){return t(1,1,0)},e.Gray=function(){return t(.5,.5,.5)},e.Teal=function(){return t(0,1,1)},e.Random=function(){return t(Math.random(),Math.random(),Math.random())},e.toString=function(e){return"{R: "+e.r+" G:"+e.g+" B:"+e.b+"}"},e.getHashCode=function(e){let t=e.r||0;return t=397*t^(e.g||0),t=397*t^(e.b||0),t},e.toArray=r,e.toColor4=function(e,t=1){return exports.Color4.create(e.r,e.g,e.b,t)},e.asArray=function(e){const t=new Array;return r(e,t,0),t},e.toLuminance=function(e){return.3*e.r+.59*e.g+.11*e.b},e.multiply=function(e,n){return t(e.r*n.r,e.g*n.g,e.b*n.b)},e.multiplyToRef=function(e,t,n){n.r=e.r*t.r,n.g=e.g*t.g,n.b=e.b*t.b},e.equals=function(e,t){return t&&e.r===t.r&&e.g===t.g&&e.b===t.b},e.equalsFloats=function(e,t,n,r){return e.r===t&&e.g===n&&e.b===r},e.scale=function(e,n){return t(e.r*n,e.g*n,e.b*n)},e.scaleToRef=function(e,t,n){n.r=e.r*t,n.g=e.g*t,n.b=e.b*t},e.scaleAndAddToRef=function(e,t,n){n.r+=e.r*t,n.g+=e.g*t,n.b+=e.b*t},e.clampToRef=o,e.clamp=function(t,n=0,r=1){const i=e.Black();return o(t,n,r,i),i},e.add=function(e,n){return t(e.r+n.r,e.g+n.g,e.b+n.b)},e.addToRef=function(e,t,n){n.r=e.r+t.r,n.g=e.g+t.g,n.b=e.b+t.b},e.subtract=function(e,n){return t(e.r-n.r,e.g-n.g,e.b-n.b)},e.subtractToRef=function(e,t,n){n.r=e.r-t.r,n.g=e.g-t.g,n.b=e.b-t.b},e.clone=function(e){return t(e.r,e.g,e.b)},e.copyFrom=function(e,t){t.r=e.r,t.g=e.g,t.b=e.b},e.set=function(e,t,n,r){e.r=t,e.g=n,e.b=r},e.toHexString=function(e){const t=255*e.r|0,n=255*e.g|0,r=255*e.b|0;return"#"+exports.Scalar.toHex(t)+exports.Scalar.toHex(n)+exports.Scalar.toHex(r)},e.toLinearSpace=function(e){const n=t();return i(e,n),n},e.toLinearSpaceToRef=i,e.toGammaSpace=function(e){const n=t();return a(e,n),n},e.toGammaSpaceToRef=a}(exports.Color3||(exports.Color3={}));var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var minimalExports$1={},minimal$1={get exports(){return minimalExports$1},set exports(e){minimalExports$1=e}},indexMinimal={},minimal={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;return hasRequiredAspromise=1,aspromise=function(e,t){var n=new Array(arguments.length-1),r=0,o=2,i=!0;for(;o<arguments.length;)n[r++]=arguments[o++];return new Promise((function(o,a){n[r]=function(e){if(i)if(i=!1,e)a(e);else{for(var t=new Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];o.apply(null,t)}};try{e.apply(t||null,n)}catch(e){i&&(i=!1,a(e))}}))},aspromise}var base64={},hasRequiredBase64,eventemitter,hasRequiredEventemitter,float,hasRequiredFloat,inquire_1,hasRequiredInquire;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=1,function(e){var t=e;t.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var n=new Array(64),r=new Array(123),o=0;o<64;)r[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;t.encode=function(e,t,r){for(var o,i=null,a=[],s=0,u=0;t<r;){var l=e[t++];switch(u){case 0:a[s++]=n[l>>2],o=(3&l)<<4,u=1;break;case 1:a[s++]=n[o|l>>4],o=(15&l)<<2,u=2;break;case 2:a[s++]=n[o|l>>6],a[s++]=n[63&l],u=0}s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,a)),s=0)}return u&&(a[s++]=n[o],a[s++]=61,1===u&&(a[s++]=61)),i?(s&&i.push(String.fromCharCode.apply(String,a.slice(0,s))),i.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var i="invalid encoding";t.decode=function(e,t,n){for(var o,a=n,s=0,u=0;u<e.length;){var l=e.charCodeAt(u++);if(61===l&&s>1)break;if(void 0===(l=r[l]))throw Error(i);switch(s){case 0:o=l,s=1;break;case 1:t[n++]=o<<2|(48&l)>>4,o=l,s=2;break;case 2:t[n++]=(15&o)<<4|(60&l)>>2,o=l,s=3;break;case 3:t[n++]=(3&o)<<6|l,s=0}}if(1===s)throw Error(i);return n-a},t.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(base64)),base64}function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;function e(){this._listeners={}}return hasRequiredEventemitter=1,eventemitter=e,e.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},e.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r<n.length;)n[r].fn===t?n.splice(r,1):++r;return this},e.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<t.length;)t[r].fn.apply(t[r++].ctx,n)}return this},eventemitter}function requireFloat(){if(hasRequiredFloat)return float;function e(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=128===n[3];function o(e,r,o){t[0]=e,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3]}function i(e,r,o){t[0]=e,r[o]=n[3],r[o+1]=n[2],r[o+2]=n[1],r[o+3]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function s(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.writeFloatLE=r?o:i,e.writeFloatBE=r?i:o,e.readFloatLE=r?a:s,e.readFloatBE=r?s:a}():function(){function i(e,t,n,r){var o=t<0?1:0;if(o&&(t=-t),0===t)e(1/t>0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,n,r)}}function a(e,t,n){var r=e(t,n),o=2*(r>>31)+1,i=r>>>23&255,a=8388607&r;return 255===i?a?NaN:o*(1/0):0===i?1401298464324817e-60*o*a:o*Math.pow(2,i-150)*(a+8388608)}e.writeFloatLE=i.bind(null,t),e.writeFloatBE=i.bind(null,n),e.readFloatLE=a.bind(null,r),e.readFloatBE=a.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function o(e,r,o){t[0]=e,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3],r[o+4]=n[4],r[o+5]=n[5],r[o+6]=n[6],r[o+7]=n[7]}function i(e,r,o){t[0]=e,r[o]=n[7],r[o+1]=n[6],r[o+2]=n[5],r[o+3]=n[4],r[o+4]=n[3],r[o+5]=n[2],r[o+6]=n[1],r[o+7]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?o:i,e.writeDoubleBE=r?i:o,e.readDoubleLE=r?a:s,e.readDoubleBE=r?s:a}():function(){function i(e,t,n,r,o,i){var a=r<0?1:0;if(a&&(r=-r),0===r)e(0,o,i+t),e(1/r>0?0:2147483648,o,i+n);else if(isNaN(r))e(0,o,i+t),e(2146959360,o,i+n);else if(r>17976931348623157e292)e(0,o,i+t),e((a<<31|2146435072)>>>0,o,i+n);else{var s;if(r<22250738585072014e-324)e((s=r/5e-324)>>>0,o,i+t),e((a<<31|s/4294967296)>>>0,o,i+n);else{var u=Math.floor(Math.log(r)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(s=r*Math.pow(2,-u))>>>0,o,i+t),e((a<<31|u+1023<<20|1048576*s&1048575)>>>0,o,i+n)}}}function a(e,t,n,r,o){var i=e(r,o+t),a=e(r,o+n),s=2*(a>>31)+1,u=a>>>20&2047,l=4294967296*(1048575&a)+i;return 2047===u?l?NaN:s*(1/0):0===u?5e-324*s*l:s*Math.pow(2,u-1075)*(l+4503599627370496)}e.writeDoubleLE=i.bind(null,t,0,4),e.writeDoubleBE=i.bind(null,n,4,0),e.readDoubleLE=a.bind(null,r,0,4),e.readDoubleBE=a.bind(null,o,4,0)}(),e}function t(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function n(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function r(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}return hasRequiredFloat=1,float=e(e)}function requireInquire(){if(hasRequiredInquire)return inquire_1;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}return hasRequiredInquire=1,inquire_1=inquire,inquire_1}var utf8={},hasRequiredUtf8,pool_1,hasRequiredPool,longbits,hasRequiredLongbits,hasRequiredMinimal$1,writer,hasRequiredWriter,writer_buffer,hasRequiredWriter_buffer,reader,hasRequiredReader,reader_buffer,hasRequiredReader_buffer;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,function(e){var t=e;t.length=function(e){for(var t=0,n=0,r=0;r<e.length;++r)(n=e.charCodeAt(r))<128?t+=1:n<2048?t+=2:55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))?(++r,t+=4):t+=3;return t},t.read=function(e,t,n){if(n-t<1)return"";for(var r,o=null,i=[],a=0;t<n;)(r=e[t++])<128?i[a++]=r:r>191&&r<224?i[a++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[a++]=55296+(r>>10),i[a++]=56320+(1023&r)):i[a++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))},t.write=function(e,t,n){for(var r,o,i=n,a=0;a<e.length;++a)(r=e.charCodeAt(a))<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(o=e.charCodeAt(a+1)))?(r=65536+((1023&r)<<10)+(1023&o),++a,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-i}}(utf8)),utf8}function requirePool(){if(hasRequiredPool)return pool_1;return hasRequiredPool=1,pool_1=function(e,t,n){var r=n||8192,o=r>>>1,i=null,a=r;return function(n){if(n<1||n>o)return e(n);a+n>r&&(i=e(r),a=0);var s=t.call(i,a,a+=n);return 7&a&&(a=1+(7|a)),s}}}function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=t;var e=requireMinimal$1();function t(e,t){this.lo=e>>>0,this.hi=t>>>0}var n=t.zero=new t(0,0);n.toNumber=function(){return 0},n.zzEncode=n.zzDecode=function(){return this},n.length=function(){return 1};var r=t.zeroHash="\0\0\0\0\0\0\0\0";t.fromNumber=function(e){if(0===e)return n;var r=e<0;r&&(e=-e);var o=e>>>0,i=(e-o)/4294967296>>>0;return r&&(i=~i>>>0,o=~o>>>0,++o>4294967295&&(o=0,++i>4294967295&&(i=0))),new t(o,i)},t.from=function(r){if("number"==typeof r)return t.fromNumber(r);if(e.isString(r)){if(!e.Long)return t.fromNumber(parseInt(r,10));r=e.Long.fromString(r)}return r.low||r.high?new t(r.low>>>0,r.high>>>0):n},t.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},t.prototype.toLong=function(t){return e.Long?new e.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var o=String.prototype.charCodeAt;return t.fromHash=function(e){return e===r?n:new t((o.call(e,0)|o.call(e,1)<<8|o.call(e,2)<<16|o.call(e,3)<<24)>>>0,(o.call(e,4)|o.call(e,5)<<8|o.call(e,6)<<16|o.call(e,7)<<24)>>>0)},t.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},t.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},t.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},t.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10},longbits}function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,function(e){var t=minimal;function n(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;++o)void 0!==e[r[o]]&&n||(e[r[o]]=t[r[o]]);return e}function r(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),r&&n(this,r)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+": "+this.message},t}t.asPromise=requireAspromise(),t.base64=requireBase64(),t.EventEmitter=requireEventemitter(),t.float=requireFloat(),t.inquire=requireInquire(),t.utf8=requireUtf8(),t.pool=requirePool(),t.LongBits=requireLongbits(),t.isNode=Boolean(void 0!==commonjsGlobal&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),t.global=t.isNode&&commonjsGlobal||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||commonjsGlobal,t.emptyArray=Object.freeze?Object.freeze([]):[],t.emptyObject=Object.freeze?Object.freeze({}):{},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.isString=function(e){return"string"==typeof e||e instanceof String},t.isObject=function(e){return e&&"object"==typeof e},t.isset=t.isSet=function(e,t){var n=e[t];return!(null==n||!e.hasOwnProperty(t))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},t.Buffer=function(){try{var e=t.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(e){return"number"==typeof e?t.Buffer?t._Buffer_allocUnsafe(e):new t.Array(e):t.Buffer?t._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},t.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||t.inquire("long"),t.key2Re=/^true|false|0|1$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,n){var r=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(r.lo,r.hi,n):r.toNumber(Boolean(n))},t.merge=n,t.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},t.newError=r,t.ProtocolError=r("ProtocolError"),t.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},t.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},t.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},t._configure=function(){var e=t.Buffer;e?(t._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},t._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):t._Buffer_from=t._Buffer_allocUnsafe=null}}()),minimal}function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1,writer=u;var e,t=requireMinimal$1(),n=t.LongBits,r=t.base64,o=t.utf8;function i(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function a(){}function s(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function u(){this.len=0,this.head=new i(a,0,0),this.tail=this.head,this.states=null}var l=function(){return t.Buffer?function(){return(u.create=function(){return new e})()}:function(){return new u}};function c(e,t,n){t[n]=255&e}function f(e,t){this.len=e,this.next=void 0,this.val=t}function d(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function p(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}u.create=l(),u.alloc=function(e){return new t.Array(e)},t.Array!==Array&&(u.alloc=t.pool(u.alloc,t.Array.prototype.subarray)),u.prototype._push=function(e,t,n){return this.tail=this.tail.next=new i(e,t,n),this.len+=t,this},f.prototype=Object.create(i.prototype),f.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},u.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new f((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},u.prototype.int32=function(e){return e<0?this._push(d,10,n.fromNumber(e)):this.uint32(e)},u.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},u.prototype.uint64=function(e){var t=n.from(e);return this._push(d,t.length(),t)},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(e){var t=n.from(e).zzEncode();return this._push(d,t.length(),t)},u.prototype.bool=function(e){return this._push(c,1,e?1:0)},u.prototype.fixed32=function(e){return this._push(p,4,e>>>0)},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(e){var t=n.from(e);return this._push(p,4,t.lo)._push(p,4,t.hi)},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(e){return this._push(t.float.writeFloatLE,4,e)},u.prototype.double=function(e){return this._push(t.float.writeDoubleLE,8,e)};var h=t.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r<e.length;++r)t[n+r]=e[r]};return u.prototype.bytes=function(e){var n=e.length>>>0;if(!n)return this._push(c,1,0);if(t.isString(e)){var o=u.alloc(n=r.length(e));r.decode(e,o,0),e=o}return this.uint32(n)._push(h,n,e)},u.prototype.string=function(e){var t=o.length(e);return t?this.uint32(t)._push(o.write,t,e):this._push(c,1,0)},u.prototype.fork=function(){return this.states=new s(this),this.head=this.tail=new i(a,0,0),this.len=0,this},u.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new i(a,0,0),this.len=0),this},u.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},u.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},u._configure=function(t){e=t,u.create=l(),e._configure()},writer}function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=n;var e=requireWriter();(n.prototype=Object.create(e.prototype)).constructor=n;var t=requireMinimal$1();function n(){e.call(this)}function r(e,n,r){e.length<40?t.utf8.write(e,n,r):n.utf8Write?n.utf8Write(e,r):n.write(e,r)}return n._configure=function(){n.alloc=t._Buffer_allocUnsafe,n.writeBytesBuffer=t.Buffer&&t.Buffer.prototype instanceof Uint8Array&&"set"===t.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r<e.length;)t[n++]=e[r++]}},n.prototype.bytes=function(e){t.isString(e)&&(e=t._Buffer_from(e,"base64"));var r=e.length>>>0;return this.uint32(r),r&&this._push(n.writeBytesBuffer,r,e),this},n.prototype.string=function(e){var n=t.Buffer.byteLength(e);return this.uint32(n),n&&this._push(r,n,e),this},n._configure(),writer_buffer}function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=i;var e,t=requireMinimal$1(),n=t.LongBits,r=t.utf8;function o(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function i(e){this.buf=e,this.pos=0,this.len=e.length}var a,s="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new i(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new i(e);throw Error("illegal buffer")},u=function(){return t.Buffer?function(n){return(i.create=function(n){return t.Buffer.isBuffer(n)?new e(n):s(n)})(n)}:s};function l(){var e=new n(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw o(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function f(){if(this.pos+8>this.len)throw o(this,8);return new n(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}return i.create=u(),i.prototype._slice=t.Array.prototype.subarray||t.Array.prototype.slice,i.prototype.uint32=(a=4294967295,function(){if(a=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return a;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return a}),i.prototype.int32=function(){return 0|this.uint32()},i.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},i.prototype.bool=function(){return 0!==this.uint32()},i.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return c(this.buf,this.pos+=4)},i.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return 0|c(this.buf,this.pos+=4)},i.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=t.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},i.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=t.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},i.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw o(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},i.prototype.string=function(){var e=this.bytes();return r.read(e,0,e.length)},i.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw o(this)}while(128&this.buf[this.pos++]);return this},i.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},i._configure=function(n){e=n,i.create=u(),e._configure();var r=t.Long?"toLong":"toNumber";t.merge(i.prototype,{int64:function(){return l.call(this)[r](!1)},uint64:function(){return l.call(this)[r](!0)},sint64:function(){return l.call(this).zzDecode()[r](!1)},fixed64:function(){return f.call(this)[r](!0)},sfixed64:function(){return f.call(this)[r](!1)}})},reader}function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=n;var e=requireReader();(n.prototype=Object.create(e.prototype)).constructor=n;var t=requireMinimal$1();function n(t){e.call(this,t)}return n._configure=function(){t.Buffer&&(n.prototype._slice=t.Buffer.prototype.slice)},n.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},n._configure(),reader_buffer}var rpc={},service,hasRequiredService,hasRequiredRpc,roots,hasRequiredRoots,hasRequiredIndexMinimal,hasRequiredMinimal;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=t;var e=requireMinimal$1();function t(t,n,r){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");e.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(n),this.responseDelimited=Boolean(r)}return(t.prototype=Object.create(e.EventEmitter.prototype)).constructor=t,t.prototype.rpcCall=function t(n,r,o,i,a){if(!i)throw TypeError("request must be specified");var s=this;if(!a)return e.asPromise(t,s,n,r,o,i);if(s.rpcImpl)try{return s.rpcImpl(n,r[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,t){if(e)return s.emit("error",e,n),a(e);if(null!==t){if(!(t instanceof o))try{t=o[s.responseDelimited?"decodeDelimited":"decode"](t)}catch(e){return s.emit("error",e,n),a(e)}return s.emit("data",t,n),a(null,t)}s.end(!0)}))}catch(e){return s.emit("error",e,n),void setTimeout((function(){a(e)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},t.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},service}function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,function(e){e.Service=requireService()}(rpc)),rpc}function requireRoots(){return hasRequiredRoots?roots:(hasRequiredRoots=1,roots={})}function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,function(e){var t=indexMinimal;function n(){t.util._configure(),t.Writer._configure(t.BufferWriter),t.Reader._configure(t.BufferReader)}t.build="minimal",t.Writer=requireWriter(),t.BufferWriter=requireWriter_buffer(),t.Reader=requireReader(),t.BufferReader=requireReader_buffer(),t.util=requireMinimal$1(),t.rpc=requireRpc(),t.roots=requireRoots(),t.configure=n,n()}()),indexMinimal}function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,minimal$1.exports=requireIndexMinimal()),minimalExports$1}var minimalExports=requireMinimal(),_m0=getDefaultExportFromCjs(minimalExports);function createBasePBAnimator(){return{states:[]}}const PBAnimator={encode(e,t=_m0.Writer.create()){for(const n of e.states)PBAnimationState.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAnimator();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.states.push(PBAnimationState.decode(n,n.uint32()));else n.skipType(7&e)}return o}};function createBasePBAnimationState(){return{name:"",clip:"",playing:void 0,weight:void 0,speed:void 0,loop:void 0,shouldReset:void 0}}const PBAnimationState={encode:(e,t=_m0.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),""!==e.clip&&t.uint32(18).string(e.clip),void 0!==e.playing&&t.uint32(24).bool(e.playing),void 0!==e.weight&&t.uint32(37).float(e.weight),void 0!==e.speed&&t.uint32(45).float(e.speed),void 0!==e.loop&&t.uint32(48).bool(e.loop),void 0!==e.shouldReset&&t.uint32(56).bool(e.shouldReset),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAnimationState();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.name=n.string();break;case 2:o.clip=n.string();break;case 3:o.playing=n.bool();break;case 4:o.weight=n.float();break;case 5:o.speed=n.float();break;case 6:o.loop=n.bool();break;case 7:o.shouldReset=n.bool();break;default:n.skipType(7&e)}}return o}},AnimatorSchema={COMPONENT_ID:1042,serialize(e,t){const n=PBAnimator.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBAnimator.decode(e.buffer(),e.remainingBytes()),create:()=>PBAnimator.decode(new Uint8Array)};function createBasePBAudioSource(){return{playing:void 0,volume:void 0,loop:void 0,pitch:void 0,audioClipUrl:""}}const PBAudioSource={encode:(e,t=_m0.Writer.create())=>(void 0!==e.playing&&t.uint32(8).bool(e.playing),void 0!==e.volume&&t.uint32(21).float(e.volume),void 0!==e.loop&&t.uint32(24).bool(e.loop),void 0!==e.pitch&&t.uint32(37).float(e.pitch),""!==e.audioClipUrl&&t.uint32(42).string(e.audioClipUrl),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAudioSource();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.playing=n.bool();break;case 2:o.volume=n.float();break;case 3:o.loop=n.bool();break;case 4:o.pitch=n.float();break;case 5:o.audioClipUrl=n.string();break;default:n.skipType(7&e)}}return o}},AudioSourceSchema={COMPONENT_ID:1020,serialize(e,t){const n=PBAudioSource.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBAudioSource.decode(e.buffer(),e.remainingBytes()),create:()=>PBAudioSource.decode(new Uint8Array)};function createBasePBAudioStream(){return{playing:void 0,volume:void 0,url:""}}const PBAudioStream={encode:(e,t=_m0.Writer.create())=>(void 0!==e.playing&&t.uint32(8).bool(e.playing),void 0!==e.volume&&t.uint32(21).float(e.volume),""!==e.url&&t.uint32(26).string(e.url),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAudioStream();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.playing=n.bool();break;case 2:o.volume=n.float();break;case 3:o.url=n.string();break;default:n.skipType(7&e)}}return o}},AudioStreamSchema={COMPONENT_ID:1021,serialize(e,t){const n=PBAudioStream.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBAudioStream.decode(e.buffer(),e.remainingBytes()),create:()=>PBAudioStream.decode(new Uint8Array)};var AvatarAnchorPointType;function createBasePBAvatarAttach(){return{avatarId:void 0,anchorPointId:0}}exports.AvatarAnchorPointType=void 0,AvatarAnchorPointType=exports.AvatarAnchorPointType||(exports.AvatarAnchorPointType={}),AvatarAnchorPointType[AvatarAnchorPointType.AAPT_POSITION=0]="AAPT_POSITION",AvatarAnchorPointType[AvatarAnchorPointType.AAPT_NAME_TAG=1]="AAPT_NAME_TAG",AvatarAnchorPointType[AvatarAnchorPointType.AAPT_LEFT_HAND=2]="AAPT_LEFT_HAND",AvatarAnchorPointType[AvatarAnchorPointType.AAPT_RIGHT_HAND=3]="AAPT_RIGHT_HAND";const PBAvatarAttach={encode:(e,t=_m0.Writer.create())=>(void 0!==e.avatarId&&t.uint32(10).string(e.avatarId),0!==e.anchorPointId&&t.uint32(16).int32(e.anchorPointId),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAvatarAttach();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.avatarId=n.string();break;case 2:o.anchorPointId=n.int32();break;default:n.skipType(7&e)}}return o}},AvatarAttachSchema={COMPONENT_ID:1073,serialize(e,t){const n=PBAvatarAttach.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBAvatarAttach.decode(e.buffer(),e.remainingBytes()),create:()=>PBAvatarAttach.decode(new Uint8Array)};function createBaseVector3(){return{x:0,y:0,z:0}}const Vector3={encode:(e,t=_m0.Writer.create())=>(0!==e.x&&t.uint32(13).float(e.x),0!==e.y&&t.uint32(21).float(e.y),0!==e.z&&t.uint32(29).float(e.z),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseVector3();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.x=n.float();break;case 2:o.y=n.float();break;case 3:o.z=n.float();break;default:n.skipType(7&e)}}return o}};var AvatarModifierType;function createBasePBAvatarModifierArea(){return{area:void 0,excludeIds:[],modifiers:[]}}exports.AvatarModifierType=void 0,AvatarModifierType=exports.AvatarModifierType||(exports.AvatarModifierType={}),AvatarModifierType[AvatarModifierType.AMT_HIDE_AVATARS=0]="AMT_HIDE_AVATARS",AvatarModifierType[AvatarModifierType.AMT_DISABLE_PASSPORTS=1]="AMT_DISABLE_PASSPORTS";const PBAvatarModifierArea={encode(e,t=_m0.Writer.create()){void 0!==e.area&&Vector3.encode(e.area,t.uint32(10).fork()).ldelim();for(const n of e.excludeIds)t.uint32(18).string(n);t.uint32(26).fork();for(const n of e.modifiers)t.int32(n);return t.ldelim(),t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAvatarModifierArea();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.area=Vector3.decode(n,n.uint32());break;case 2:o.excludeIds.push(n.string());break;case 3:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.modifiers.push(n.int32())}else o.modifiers.push(n.int32());break;default:n.skipType(7&e)}}return o}},AvatarModifierAreaSchema={COMPONENT_ID:1070,serialize(e,t){const n=PBAvatarModifierArea.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBAvatarModifierArea.decode(e.buffer(),e.remainingBytes()),create:()=>PBAvatarModifierArea.decode(new Uint8Array)};var long,hasRequiredLong;function requireLong(){if(hasRequiredLong)return long;hasRequiredLong=1,long=t;var e=null;try{e=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function t(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function n(e){return!0===(e&&e.__isLong__)}t.prototype.__isLong__,Object.defineProperty(t.prototype,"__isLong__",{value:!0}),t.isLong=n;var r={},o={};function i(e,t){var n,i,a;return t?(a=0<=(e>>>=0)&&e<256)&&(i=o[e])?i:(n=s(e,(0|e)<0?-1:0,!0),a&&(o[e]=n),n):(a=-128<=(e|=0)&&e<128)&&(i=r[e])?i:(n=s(e,e<0?-1:0,!1),a&&(r[e]=n),n)}function a(e,t){if(isNaN(e))return t?y:m;if(t){if(e<0)return y;if(e>=d)return x}else{if(e<=-p)return S;if(e+1>=p)return _}return e<0?a(-e,t).neg():s(e%f|0,e/f|0,t)}function s(e,n,r){return new t(e,n,r)}t.fromInt=i,t.fromNumber=a,t.fromBits=s;var u=Math.pow;function l(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return m;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r;if((r=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===r)return l(e.substring(1),t,n).neg();for(var o=a(u(n,8)),i=m,s=0;s<e.length;s+=8){var c=Math.min(8,e.length-s),f=parseInt(e.substring(s,s+c),n);if(c<8){var d=a(u(n,c));i=i.mul(d).add(a(f))}else i=(i=i.mul(o)).add(a(f))}return i.unsigned=t,i}function c(e,t){return"number"==typeof e?a(e,t):"string"==typeof e?l(e,t):s(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}t.fromString=l,t.fromValue=c;var f=4294967296,d=f*f,p=d/2,h=i(1<<24),m=i(0);t.ZERO=m;var y=i(0,!0);t.UZERO=y;var g=i(1);t.ONE=g;var v=i(1,!0);t.UONE=v;var b=i(-1);t.NEG_ONE=b;var _=s(-1,2147483647,!1);t.MAX_VALUE=_;var x=s(-1,-1,!0);t.MAX_UNSIGNED_VALUE=x;var S=s(0,-2147483648,!1);t.MIN_VALUE=S;var w=t.prototype;return w.toInt=function(){return this.unsigned?this.low>>>0:this.low},w.toNumber=function(){return this.unsigned?(this.high>>>0)*f+(this.low>>>0):this.high*f+(this.low>>>0)},w.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(S)){var t=a(e),n=this.div(t),r=n.mul(t).sub(this);return n.toString(e)+r.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var o=a(u(e,6),this.unsigned),i=this,s="";;){var l=i.div(o),c=(i.sub(l.mul(o)).toInt()>>>0).toString(e);if((i=l).isZero())return c+s;for(;c.length<6;)c="0"+c;s=""+c+s}},w.getHighBits=function(){return this.high},w.getHighBitsUnsigned=function(){return this.high>>>0},w.getLowBits=function(){return this.low},w.getLowBitsUnsigned=function(){return this.low>>>0},w.getNumBitsAbs=function(){if(this.isNegative())return this.eq(S)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},w.isZero=function(){return 0===this.high&&0===this.low},w.eqz=w.isZero,w.isNegative=function(){return!this.unsigned&&this.high<0},w.isPositive=function(){return this.unsigned||this.high>=0},w.isOdd=function(){return 1==(1&this.low)},w.isEven=function(){return 0==(1&this.low)},w.equals=function(e){return n(e)||(e=c(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},w.eq=w.equals,w.notEquals=function(e){return!this.eq(e)},w.neq=w.notEquals,w.ne=w.notEquals,w.lessThan=function(e){return this.comp(e)<0},w.lt=w.lessThan,w.lessThanOrEqual=function(e){return this.comp(e)<=0},w.lte=w.lessThanOrEqual,w.le=w.lessThanOrEqual,w.greaterThan=function(e){return this.comp(e)>0},w.gt=w.greaterThan,w.greaterThanOrEqual=function(e){return this.comp(e)>=0},w.gte=w.greaterThanOrEqual,w.ge=w.greaterThanOrEqual,w.compare=function(e){if(n(e)||(e=c(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},w.comp=w.compare,w.negate=function(){return!this.unsigned&&this.eq(S)?S:this.not().add(g)},w.neg=w.negate,w.add=function(e){n(e)||(e=c(e));var t=this.high>>>16,r=65535&this.high,o=this.low>>>16,i=65535&this.low,a=e.high>>>16,u=65535&e.high,l=e.low>>>16,f=0,d=0,p=0,h=0;return p+=(h+=i+(65535&e.low))>>>16,d+=(p+=o+l)>>>16,f+=(d+=r+u)>>>16,f+=t+a,s((p&=65535)<<16|(h&=65535),(f&=65535)<<16|(d&=65535),this.unsigned)},w.subtract=function(e){return n(e)||(e=c(e)),this.add(e.neg())},w.sub=w.subtract,w.multiply=function(t){if(this.isZero())return m;if(n(t)||(t=c(t)),e)return s(e.mul(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned);if(t.isZero())return m;if(this.eq(S))return t.isOdd()?S:m;if(t.eq(S))return this.isOdd()?S:m;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(h)&&t.lt(h))return a(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,o=65535&this.high,i=this.low>>>16,u=65535&this.low,l=t.high>>>16,f=65535&t.high,d=t.low>>>16,p=65535&t.low,y=0,g=0,v=0,b=0;return v+=(b+=u*p)>>>16,g+=(v+=i*p)>>>16,v&=65535,g+=(v+=u*d)>>>16,y+=(g+=o*p)>>>16,g&=65535,y+=(g+=i*d)>>>16,g&=65535,y+=(g+=u*f)>>>16,y+=r*p+o*d+i*f+u*l,s((v&=65535)<<16|(b&=65535),(y&=65535)<<16|(g&=65535),this.unsigned)},w.mul=w.multiply,w.divide=function(t){if(n(t)||(t=c(t)),t.isZero())throw Error("division by zero");var r,o,i;if(e)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?s((this.unsigned?e.div_u:e.div_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?y:m;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return y;if(t.gt(this.shru(1)))return v;i=y}else{if(this.eq(S))return t.eq(g)||t.eq(b)?S:t.eq(S)?g:(r=this.shr(1).div(t).shl(1)).eq(m)?t.isNegative()?g:b:(o=this.sub(t.mul(r)),i=r.add(o.div(t)));if(t.eq(S))return this.unsigned?y:m;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=m}for(o=this;o.gte(t);){r=Math.max(1,Math.floor(o.toNumber()/t.toNumber()));for(var l=Math.ceil(Math.log(r)/Math.LN2),f=l<=48?1:u(2,l-48),d=a(r),p=d.mul(t);p.isNegative()||p.gt(o);)p=(d=a(r-=f,this.unsigned)).mul(t);d.isZero()&&(d=g),i=i.add(d),o=o.sub(p)}return i},w.div=w.divide,w.modulo=function(t){return n(t)||(t=c(t)),e?s((this.unsigned?e.rem_u:e.rem_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},w.mod=w.modulo,w.rem=w.modulo,w.not=function(){return s(~this.low,~this.high,this.unsigned)},w.and=function(e){return n(e)||(e=c(e)),s(this.low&e.low,this.high&e.high,this.unsigned)},w.or=function(e){return n(e)||(e=c(e)),s(this.low|e.low,this.high|e.high,this.unsigned)},w.xor=function(e){return n(e)||(e=c(e)),s(this.low^e.low,this.high^e.high,this.unsigned)},w.shiftLeft=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?s(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):s(0,this.low<<e-32,this.unsigned)},w.shl=w.shiftLeft,w.shiftRight=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?s(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):s(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},w.shr=w.shiftRight,w.shiftRightUnsigned=function(e){if(n(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?s(this.low>>>e|t<<32-e,t>>>e,this.unsigned):s(32===e?t:t>>>e-32,0,this.unsigned)},w.shru=w.shiftRightUnsigned,w.shr_u=w.shiftRightUnsigned,w.toSigned=function(){return this.unsigned?s(this.low,this.high,!1):this},w.toUnsigned=function(){return this.unsigned?this:s(this.low,this.high,!0)},w.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},w.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},w.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},t.fromBytes=function(e,n,r){return r?t.fromBytesLE(e,n):t.fromBytesBE(e,n)},t.fromBytesLE=function(e,n){return new t(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)},t.fromBytesBE=function(e,n){return new t(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)},long}var longExports=requireLong(),Long=getDefaultExportFromCjs(longExports);function createBaseColor3(){return{r:0,g:0,b:0}}const Color3={encode:(e,t=_m0.Writer.create())=>(0!==e.r&&t.uint32(13).float(e.r),0!==e.g&&t.uint32(21).float(e.g),0!==e.b&&t.uint32(29).float(e.b),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseColor3();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.r=n.float();break;case 2:o.g=n.float();break;case 3:o.b=n.float();break;default:n.skipType(7&e)}}return o}};function createBaseColor4(){return{r:0,g:0,b:0,a:0}}const Color4={encode:(e,t=_m0.Writer.create())=>(0!==e.r&&t.uint32(13).float(e.r),0!==e.g&&t.uint32(21).float(e.g),0!==e.b&&t.uint32(29).float(e.b),0!==e.a&&t.uint32(37).float(e.a),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseColor4();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.r=n.float();break;case 2:o.g=n.float();break;case 3:o.b=n.float();break;case 4:o.a=n.float();break;default:n.skipType(7&e)}}return o}};function createBasePBAvatarShape(){return{id:"",name:void 0,bodyShape:void 0,skinColor:void 0,hairColor:void 0,eyeColor:void 0,expressionTriggerId:void 0,expressionTriggerTimestamp:void 0,talking:void 0,wearables:[],emotes:[]}}const PBAvatarShape={encode(e,t=_m0.Writer.create()){""!==e.id&&t.uint32(10).string(e.id),void 0!==e.name&&t.uint32(18).string(e.name),void 0!==e.bodyShape&&t.uint32(26).string(e.bodyShape),void 0!==e.skinColor&&Color3.encode(e.skinColor,t.uint32(34).fork()).ldelim(),void 0!==e.hairColor&&Color3.encode(e.hairColor,t.uint32(42).fork()).ldelim(),void 0!==e.eyeColor&&Color3.encode(e.eyeColor,t.uint32(50).fork()).ldelim(),void 0!==e.expressionTriggerId&&t.uint32(58).string(e.expressionTriggerId),void 0!==e.expressionTriggerTimestamp&&t.uint32(64).int64(e.expressionTriggerTimestamp),void 0!==e.talking&&t.uint32(72).bool(e.talking);for(const n of e.wearables)t.uint32(82).string(n);for(const n of e.emotes)t.uint32(90).string(n);return t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAvatarShape();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.id=n.string();break;case 2:o.name=n.string();break;case 3:o.bodyShape=n.string();break;case 4:o.skinColor=Color3.decode(n,n.uint32());break;case 5:o.hairColor=Color3.decode(n,n.uint32());break;case 6:o.eyeColor=Color3.decode(n,n.uint32());break;case 7:o.expressionTriggerId=n.string();break;case 8:o.expressionTriggerTimestamp=longToNumber$1(n.int64());break;case 9:o.talking=n.bool();break;case 10:o.wearables.push(n.string());break;case 11:o.emotes.push(n.string());break;default:n.skipType(7&e)}}return o}};var tsProtoGlobalThis$1=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function longToNumber$1(e){if(e.gt(Number.MAX_SAFE_INTEGER))throw new tsProtoGlobalThis$1.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}_m0.util.Long!==Long&&(_m0.util.Long=Long,_m0.configure());const AvatarShapeSchema={COMPONENT_ID:1080,serialize(e,t){const n=PBAvatarShape.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBAvatarShape.decode(e.buffer(),e.remainingBytes()),create:()=>PBAvatarShape.decode(new Uint8Array)};var BillboardMode;function createBasePBBillboard(){return{billboardMode:void 0}}exports.BillboardMode=void 0,BillboardMode=exports.BillboardMode||(exports.BillboardMode={}),BillboardMode[BillboardMode.BM_NONE=0]="BM_NONE",BillboardMode[BillboardMode.BM_X=1]="BM_X",BillboardMode[BillboardMode.BM_Y=2]="BM_Y",BillboardMode[BillboardMode.BM_Z=4]="BM_Z",BillboardMode[BillboardMode.BM_ALL=7]="BM_ALL";const PBBillboard={encode:(e,t=_m0.Writer.create())=>(void 0!==e.billboardMode&&t.uint32(8).int32(e.billboardMode),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBBillboard();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.billboardMode=n.int32();else n.skipType(7&e)}return o}},BillboardSchema={COMPONENT_ID:1090,serialize(e,t){const n=PBBillboard.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBBillboard.decode(e.buffer(),e.remainingBytes()),create:()=>PBBillboard.decode(new Uint8Array)};function createBasePBCameraMode(){return{mode:0}}const PBCameraMode={encode:(e,t=_m0.Writer.create())=>(0!==e.mode&&t.uint32(8).int32(e.mode),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBCameraMode();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.mode=n.int32();else n.skipType(7&e)}return o}},CameraModeSchema={COMPONENT_ID:1072,serialize(e,t){const n=PBCameraMode.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBCameraMode.decode(e.buffer(),e.remainingBytes()),create:()=>PBCameraMode.decode(new Uint8Array)};function createBasePBCameraModeArea(){return{area:void 0,mode:0}}const PBCameraModeArea={encode:(e,t=_m0.Writer.create())=>(void 0!==e.area&&Vector3.encode(e.area,t.uint32(10).fork()).ldelim(),0!==e.mode&&t.uint32(16).int32(e.mode),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBCameraModeArea();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.area=Vector3.decode(n,n.uint32());break;case 2:o.mode=n.int32();break;default:n.skipType(7&e)}}return o}},CameraModeAreaSchema={COMPONENT_ID:1071,serialize(e,t){const n=PBCameraModeArea.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBCameraModeArea.decode(e.buffer(),e.remainingBytes()),create:()=>PBCameraModeArea.decode(new Uint8Array)};function createBasePBGltfContainer(){return{src:""}}const PBGltfContainer={encode:(e,t=_m0.Writer.create())=>(""!==e.src&&t.uint32(10).string(e.src),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBGltfContainer();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.src=n.string();else n.skipType(7&e)}return o}},GltfContainerSchema={COMPONENT_ID:1041,serialize(e,t){const n=PBGltfContainer.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBGltfContainer.decode(e.buffer(),e.remainingBytes()),create:()=>PBGltfContainer.decode(new Uint8Array)};var TextureWrapMode,TextureFilterMode;function createBaseTexture(){return{src:"",wrapMode:void 0,filterMode:void 0}}exports.TextureWrapMode=void 0,TextureWrapMode=exports.TextureWrapMode||(exports.TextureWrapMode={}),TextureWrapMode[TextureWrapMode.TWM_REPEAT=0]="TWM_REPEAT",TextureWrapMode[TextureWrapMode.TWM_CLAMP=1]="TWM_CLAMP",TextureWrapMode[TextureWrapMode.TWM_MIRROR=2]="TWM_MIRROR",TextureWrapMode[TextureWrapMode.TWM_MIRROR_ONCE=3]="TWM_MIRROR_ONCE",exports.TextureFilterMode=void 0,TextureFilterMode=exports.TextureFilterMode||(exports.TextureFilterMode={}),TextureFilterMode[TextureFilterMode.TFM_POINT=0]="TFM_POINT",TextureFilterMode[TextureFilterMode.TFM_BILINEAR=1]="TFM_BILINEAR",TextureFilterMode[TextureFilterMode.TFM_TRILINEAR=2]="TFM_TRILINEAR";const Texture={encode:(e,t=_m0.Writer.create())=>(""!==e.src&&t.uint32(10).string(e.src),void 0!==e.wrapMode&&t.uint32(16).int32(e.wrapMode),void 0!==e.filterMode&&t.uint32(24).int32(e.filterMode),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseTexture();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.src=n.string();break;case 2:o.wrapMode=n.int32();break;case 3:o.filterMode=n.int32();break;default:n.skipType(7&e)}}return o}};function createBaseAvatarTexture(){return{userId:"",wrapMode:void 0,filterMode:void 0}}const AvatarTexture={encode:(e,t=_m0.Writer.create())=>(""!==e.userId&&t.uint32(10).string(e.userId),void 0!==e.wrapMode&&t.uint32(16).int32(e.wrapMode),void 0!==e.filterMode&&t.uint32(24).int32(e.filterMode),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseAvatarTexture();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.userId=n.string();break;case 2:o.wrapMode=n.int32();break;case 3:o.filterMode=n.int32();break;default:n.skipType(7&e)}}return o}};function createBaseTextureUnion(){return{tex:void 0}}const TextureUnion={encode:(e,t=_m0.Writer.create())=>("texture"===e.tex?.$case&&Texture.encode(e.tex.texture,t.uint32(10).fork()).ldelim(),"avatarTexture"===e.tex?.$case&&AvatarTexture.encode(e.tex.avatarTexture,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseTextureUnion();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.tex={$case:"texture",texture:Texture.decode(n,n.uint32())};break;case 2:o.tex={$case:"avatarTexture",avatarTexture:AvatarTexture.decode(n,n.uint32())};break;default:n.skipType(7&e)}}return o}};var MaterialTransparencyMode;function createBasePBMaterial(){return{material:void 0}}exports.MaterialTransparencyMode=void 0,MaterialTransparencyMode=exports.MaterialTransparencyMode||(exports.MaterialTransparencyMode={}),MaterialTransparencyMode[MaterialTransparencyMode.MTM_OPAQUE=0]="MTM_OPAQUE",MaterialTransparencyMode[MaterialTransparencyMode.MTM_ALPHA_TEST=1]="MTM_ALPHA_TEST",MaterialTransparencyMode[MaterialTransparencyMode.MTM_ALPHA_BLEND=2]="MTM_ALPHA_BLEND",MaterialTransparencyMode[MaterialTransparencyMode.MTM_ALPHA_TEST_AND_ALPHA_BLEND=3]="MTM_ALPHA_TEST_AND_ALPHA_BLEND",MaterialTransparencyMode[MaterialTransparencyMode.MTM_AUTO=4]="MTM_AUTO";const PBMaterial={encode:(e,t=_m0.Writer.create())=>("unlit"===e.material?.$case&&PBMaterial_UnlitMaterial.encode(e.material.unlit,t.uint32(10).fork()).ldelim(),"pbr"===e.material?.$case&&PBMaterial_PbrMaterial.encode(e.material.pbr,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMaterial();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.material={$case:"unlit",unlit:PBMaterial_UnlitMaterial.decode(n,n.uint32())};break;case 2:o.material={$case:"pbr",pbr:PBMaterial_PbrMaterial.decode(n,n.uint32())};break;default:n.skipType(7&e)}}return o}};function createBasePBMaterial_UnlitMaterial(){return{texture:void 0,alphaTest:void 0,castShadows:void 0}}const PBMaterial_UnlitMaterial={encode:(e,t=_m0.Writer.create())=>(void 0!==e.texture&&TextureUnion.encode(e.texture,t.uint32(10).fork()).ldelim(),void 0!==e.alphaTest&&t.uint32(21).float(e.alphaTest),void 0!==e.castShadows&&t.uint32(24).bool(e.castShadows),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMaterial_UnlitMaterial();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.texture=TextureUnion.decode(n,n.uint32());break;case 2:o.alphaTest=n.float();break;case 3:o.castShadows=n.bool();break;default:n.skipType(7&e)}}return o}};function createBasePBMaterial_PbrMaterial(){return{texture:void 0,alphaTest:void 0,castShadows:void 0,alphaTexture:void 0,emissiveTexture:void 0,bumpTexture:void 0,albedoColor:void 0,emissiveColor:void 0,reflectivityColor:void 0,transparencyMode:void 0,metallic:void 0,roughness:void 0,glossiness:void 0,specularIntensity:void 0,emissiveIntensity:void 0,directIntensity:void 0}}const PBMaterial_PbrMaterial={encode:(e,t=_m0.Writer.create())=>(void 0!==e.texture&&TextureUnion.encode(e.texture,t.uint32(10).fork()).ldelim(),void 0!==e.alphaTest&&t.uint32(21).float(e.alphaTest),void 0!==e.castShadows&&t.uint32(24).bool(e.castShadows),void 0!==e.alphaTexture&&TextureUnion.encode(e.alphaTexture,t.uint32(34).fork()).ldelim(),void 0!==e.emissiveTexture&&TextureUnion.encode(e.emissiveTexture,t.uint32(42).fork()).ldelim(),void 0!==e.bumpTexture&&TextureUnion.encode(e.bumpTexture,t.uint32(50).fork()).ldelim(),void 0!==e.albedoColor&&Color4.encode(e.albedoColor,t.uint32(58).fork()).ldelim(),void 0!==e.emissiveColor&&Color3.encode(e.emissiveColor,t.uint32(66).fork()).ldelim(),void 0!==e.reflectivityColor&&Color3.encode(e.reflectivityColor,t.uint32(74).fork()).ldelim(),void 0!==e.transparencyMode&&t.uint32(80).int32(e.transparencyMode),void 0!==e.metallic&&t.uint32(93).float(e.metallic),void 0!==e.roughness&&t.uint32(101).float(e.roughness),void 0!==e.glossiness&&t.uint32(109).float(e.glossiness),void 0!==e.specularIntensity&&t.uint32(117).float(e.specularIntensity),void 0!==e.emissiveIntensity&&t.uint32(125).float(e.emissiveIntensity),void 0!==e.directIntensity&&t.uint32(133).float(e.directIntensity),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMaterial_PbrMaterial();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.texture=TextureUnion.decode(n,n.uint32());break;case 2:o.alphaTest=n.float();break;case 3:o.castShadows=n.bool();break;case 4:o.alphaTexture=TextureUnion.decode(n,n.uint32());break;case 5:o.emissiveTexture=TextureUnion.decode(n,n.uint32());break;case 6:o.bumpTexture=TextureUnion.decode(n,n.uint32());break;case 7:o.albedoColor=Color4.decode(n,n.uint32());break;case 8:o.emissiveColor=Color3.decode(n,n.uint32());break;case 9:o.reflectivityColor=Color3.decode(n,n.uint32());break;case 10:o.transparencyMode=n.int32();break;case 11:o.metallic=n.float();break;case 12:o.roughness=n.float();break;case 13:o.glossiness=n.float();break;case 14:o.specularIntensity=n.float();break;case 15:o.emissiveIntensity=n.float();break;case 16:o.directIntensity=n.float();break;default:n.skipType(7&e)}}return o}},MaterialSchema={COMPONENT_ID:1017,serialize(e,t){const n=PBMaterial.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBMaterial.decode(e.buffer(),e.remainingBytes()),create:()=>PBMaterial.decode(new Uint8Array)};var ColliderLayer;function createBasePBMeshCollider(){return{collisionMask:void 0,mesh:void 0}}exports.ColliderLayer=void 0,ColliderLayer=exports.ColliderLayer||(exports.ColliderLayer={}),ColliderLayer[ColliderLayer.CL_NONE=0]="CL_NONE",ColliderLayer[ColliderLayer.CL_POINTER=1]="CL_POINTER",ColliderLayer[ColliderLayer.CL_PHYSICS=2]="CL_PHYSICS";const PBMeshCollider={encode:(e,t=_m0.Writer.create())=>(void 0!==e.collisionMask&&t.uint32(8).int32(e.collisionMask),"box"===e.mesh?.$case&&PBMeshCollider_BoxMesh.encode(e.mesh.box,t.uint32(18).fork()).ldelim(),"sphere"===e.mesh?.$case&&PBMeshCollider_SphereMesh.encode(e.mesh.sphere,t.uint32(26).fork()).ldelim(),"cylinder"===e.mesh?.$case&&PBMeshCollider_CylinderMesh.encode(e.mesh.cylinder,t.uint32(34).fork()).ldelim(),"plane"===e.mesh?.$case&&PBMeshCollider_PlaneMesh.encode(e.mesh.plane,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshCollider();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.collisionMask=n.int32();break;case 2:o.mesh={$case:"box",box:PBMeshCollider_BoxMesh.decode(n,n.uint32())};break;case 3:o.mesh={$case:"sphere",sphere:PBMeshCollider_SphereMesh.decode(n,n.uint32())};break;case 4:o.mesh={$case:"cylinder",cylinder:PBMeshCollider_CylinderMesh.decode(n,n.uint32())};break;case 5:o.mesh={$case:"plane",plane:PBMeshCollider_PlaneMesh.decode(n,n.uint32())};break;default:n.skipType(7&e)}}return o}};function createBasePBMeshCollider_BoxMesh(){return{}}const PBMeshCollider_BoxMesh={encode:(e,t=_m0.Writer.create())=>t,decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshCollider_BoxMesh();for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return o}};function createBasePBMeshCollider_CylinderMesh(){return{radiusTop:void 0,radiusBottom:void 0}}const PBMeshCollider_CylinderMesh={encode:(e,t=_m0.Writer.create())=>(void 0!==e.radiusTop&&t.uint32(13).float(e.radiusTop),void 0!==e.radiusBottom&&t.uint32(21).float(e.radiusBottom),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshCollider_CylinderMesh();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.radiusTop=n.float();break;case 2:o.radiusBottom=n.float();break;default:n.skipType(7&e)}}return o}};function createBasePBMeshCollider_PlaneMesh(){return{}}const PBMeshCollider_PlaneMesh={encode:(e,t=_m0.Writer.create())=>t,decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshCollider_PlaneMesh();for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return o}};function createBasePBMeshCollider_SphereMesh(){return{}}const PBMeshCollider_SphereMesh={encode:(e,t=_m0.Writer.create())=>t,decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshCollider_SphereMesh();for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return o}},MeshColliderSchema={COMPONENT_ID:1019,serialize(e,t){const n=PBMeshCollider.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBMeshCollider.decode(e.buffer(),e.remainingBytes()),create:()=>PBMeshCollider.decode(new Uint8Array)};function createBasePBMeshRenderer(){return{mesh:void 0}}const PBMeshRenderer={encode:(e,t=_m0.Writer.create())=>("box"===e.mesh?.$case&&PBMeshRenderer_BoxMesh.encode(e.mesh.box,t.uint32(10).fork()).ldelim(),"sphere"===e.mesh?.$case&&PBMeshRenderer_SphereMesh.encode(e.mesh.sphere,t.uint32(18).fork()).ldelim(),"cylinder"===e.mesh?.$case&&PBMeshRenderer_CylinderMesh.encode(e.mesh.cylinder,t.uint32(26).fork()).ldelim(),"plane"===e.mesh?.$case&&PBMeshRenderer_PlaneMesh.encode(e.mesh.plane,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshRenderer();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.mesh={$case:"box",box:PBMeshRenderer_BoxMesh.decode(n,n.uint32())};break;case 2:o.mesh={$case:"sphere",sphere:PBMeshRenderer_SphereMesh.decode(n,n.uint32())};break;case 3:o.mesh={$case:"cylinder",cylinder:PBMeshRenderer_CylinderMesh.decode(n,n.uint32())};break;case 4:o.mesh={$case:"plane",plane:PBMeshRenderer_PlaneMesh.decode(n,n.uint32())};break;default:n.skipType(7&e)}}return o}};function createBasePBMeshRenderer_BoxMesh(){return{uvs:[]}}const PBMeshRenderer_BoxMesh={encode(e,t=_m0.Writer.create()){t.uint32(10).fork();for(const n of e.uvs)t.float(n);return t.ldelim(),t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshRenderer_BoxMesh();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.uvs.push(n.float())}else o.uvs.push(n.float());else n.skipType(7&e)}return o}};function createBasePBMeshRenderer_CylinderMesh(){return{radiusTop:void 0,radiusBottom:void 0}}const PBMeshRenderer_CylinderMesh={encode:(e,t=_m0.Writer.create())=>(void 0!==e.radiusTop&&t.uint32(13).float(e.radiusTop),void 0!==e.radiusBottom&&t.uint32(21).float(e.radiusBottom),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshRenderer_CylinderMesh();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.radiusTop=n.float();break;case 2:o.radiusBottom=n.float();break;default:n.skipType(7&e)}}return o}};function createBasePBMeshRenderer_PlaneMesh(){return{uvs:[]}}const PBMeshRenderer_PlaneMesh={encode(e,t=_m0.Writer.create()){t.uint32(10).fork();for(const n of e.uvs)t.float(n);return t.ldelim(),t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshRenderer_PlaneMesh();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.uvs.push(n.float())}else o.uvs.push(n.float());else n.skipType(7&e)}return o}};function createBasePBMeshRenderer_SphereMesh(){return{}}const PBMeshRenderer_SphereMesh={encode:(e,t=_m0.Writer.create())=>t,decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshRenderer_SphereMesh();for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return o}},MeshRendererSchema={COMPONENT_ID:1018,serialize(e,t){const n=PBMeshRenderer.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBMeshRenderer.decode(e.buffer(),e.remainingBytes()),create:()=>PBMeshRenderer.decode(new Uint8Array)};var NftFrameType;function createBasePBNftShape(){return{src:"",style:void 0,color:void 0}}exports.NftFrameType=void 0,NftFrameType=exports.NftFrameType||(exports.NftFrameType={}),NftFrameType[NftFrameType.NFT_CLASSIC=0]="NFT_CLASSIC",NftFrameType[NftFrameType.NFT_BAROQUE_ORNAMENT=1]="NFT_BAROQUE_ORNAMENT",NftFrameType[NftFrameType.NFT_DIAMOND_ORNAMENT=2]="NFT_DIAMOND_ORNAMENT",NftFrameType[NftFrameType.NFT_MINIMAL_WIDE=3]="NFT_MINIMAL_WIDE",NftFrameType[NftFrameType.NFT_MINIMAL_GREY=4]="NFT_MINIMAL_GREY",NftFrameType[NftFrameType.NFT_BLOCKY=5]="NFT_BLOCKY",NftFrameType[NftFrameType.NFT_GOLD_EDGES=6]="NFT_GOLD_EDGES",NftFrameType[NftFrameType.NFT_GOLD_CARVED=7]="NFT_GOLD_CARVED",NftFrameType[NftFrameType.NFT_GOLD_WIDE=8]="NFT_GOLD_WIDE",NftFrameType[NftFrameType.NFT_GOLD_ROUNDED=9]="NFT_GOLD_ROUNDED",NftFrameType[NftFrameType.NFT_METAL_MEDIUM=10]="NFT_METAL_MEDIUM",NftFrameType[NftFrameType.NFT_METAL_WIDE=11]="NFT_METAL_WIDE",NftFrameType[NftFrameType.NFT_METAL_SLIM=12]="NFT_METAL_SLIM",NftFrameType[NftFrameType.NFT_METAL_ROUNDED=13]="NFT_METAL_ROUNDED",NftFrameType[NftFrameType.NFT_PINS=14]="NFT_PINS",NftFrameType[NftFrameType.NFT_MINIMAL_BLACK=15]="NFT_MINIMAL_BLACK",NftFrameType[NftFrameType.NFT_MINIMAL_WHITE=16]="NFT_MINIMAL_WHITE",NftFrameType[NftFrameType.NFT_TAPE=17]="NFT_TAPE",NftFrameType[NftFrameType.NFT_WOOD_SLIM=18]="NFT_WOOD_SLIM",NftFrameType[NftFrameType.NFT_WOOD_WIDE=19]="NFT_WOOD_WIDE",NftFrameType[NftFrameType.NFT_WOOD_TWIGS=20]="NFT_WOOD_TWIGS",NftFrameType[NftFrameType.NFT_CANVAS=21]="NFT_CANVAS",NftFrameType[NftFrameType.NFT_NONE=22]="NFT_NONE";const PBNftShape={encode:(e,t=_m0.Writer.create())=>(""!==e.src&&t.uint32(10).string(e.src),void 0!==e.style&&t.uint32(16).int32(e.style),void 0!==e.color&&Color3.encode(e.color,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBNftShape();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.src=n.string();break;case 2:o.style=n.int32();break;case 3:o.color=Color3.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o}},NftShapeSchema={COMPONENT_ID:1040,serialize(e,t){const n=PBNftShape.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBNftShape.decode(e.buffer(),e.remainingBytes()),create:()=>PBNftShape.decode(new Uint8Array)};var PointerEventType;function createBasePBPointerEvents(){return{pointerEvents:[]}}exports.PointerEventType=void 0,PointerEventType=exports.PointerEventType||(exports.PointerEventType={}),PointerEventType[PointerEventType.PET_UP=0]="PET_UP",PointerEventType[PointerEventType.PET_DOWN=1]="PET_DOWN",PointerEventType[PointerEventType.PET_HOVER_ENTER=2]="PET_HOVER_ENTER",PointerEventType[PointerEventType.PET_HOVER_LEAVE=3]="PET_HOVER_LEAVE";const PBPointerEvents={encode(e,t=_m0.Writer.create()){for(const n of e.pointerEvents)PBPointerEvents_Entry.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBPointerEvents();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.pointerEvents.push(PBPointerEvents_Entry.decode(n,n.uint32()));else n.skipType(7&e)}return o}};function createBasePBPointerEvents_Info(){return{button:void 0,hoverText:void 0,maxDistance:void 0,showFeedback:void 0}}const PBPointerEvents_Info={encode:(e,t=_m0.Writer.create())=>(void 0!==e.button&&t.uint32(8).int32(e.button),void 0!==e.hoverText&&t.uint32(18).string(e.hoverText),void 0!==e.maxDistance&&t.uint32(29).float(e.maxDistance),void 0!==e.showFeedback&&t.uint32(32).bool(e.showFeedback),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBPointerEvents_Info();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.button=n.int32();break;case 2:o.hoverText=n.string();break;case 3:o.maxDistance=n.float();break;case 4:o.showFeedback=n.bool();break;default:n.skipType(7&e)}}return o}};function createBasePBPointerEvents_Entry(){return{eventType:0,eventInfo:void 0}}const PBPointerEvents_Entry={encode:(e,t=_m0.Writer.create())=>(0!==e.eventType&&t.uint32(8).int32(e.eventType),void 0!==e.eventInfo&&PBPointerEvents_Info.encode(e.eventInfo,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBPointerEvents_Entry();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.eventType=n.int32();break;case 2:o.eventInfo=PBPointerEvents_Info.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o}},PointerEventsSchema={COMPONENT_ID:1062,serialize(e,t){const n=PBPointerEvents.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBPointerEvents.decode(e.buffer(),e.remainingBytes()),create:()=>PBPointerEvents.decode(new Uint8Array)};function createBasePBRaycastResult(){return{timestamp:0,origin:void 0,direction:void 0,hits:[]}}const PBRaycastResult={encode(e,t=_m0.Writer.create()){0!==e.timestamp&&t.uint32(8).int32(e.timestamp),void 0!==e.origin&&Vector3.encode(e.origin,t.uint32(18).fork()).ldelim(),void 0!==e.direction&&Vector3.encode(e.direction,t.uint32(26).fork()).ldelim();for(const n of e.hits)RaycastHit.encode(n,t.uint32(34).fork()).ldelim();return t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBRaycastResult();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.timestamp=n.int32();break;case 2:o.origin=Vector3.decode(n,n.uint32());break;case 3:o.direction=Vector3.decode(n,n.uint32());break;case 4:o.hits.push(RaycastHit.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return o}};function createBaseRaycastHit(){return{position:void 0,origin:void 0,direction:void 0,normalHit:void 0,length:0,meshName:void 0,entityId:void 0}}const RaycastHit={encode:(e,t=_m0.Writer.create())=>(void 0!==e.position&&Vector3.encode(e.position,t.uint32(10).fork()).ldelim(),void 0!==e.origin&&Vector3.encode(e.origin,t.uint32(18).fork()).ldelim(),void 0!==e.direction&&Vector3.encode(e.direction,t.uint32(26).fork()).ldelim(),void 0!==e.normalHit&&Vector3.encode(e.normalHit,t.uint32(34).fork()).ldelim(),0!==e.length&&t.uint32(45).float(e.length),void 0!==e.meshName&&t.uint32(50).string(e.meshName),void 0!==e.entityId&&t.uint32(56).int64(e.entityId),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseRaycastHit();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.position=Vector3.decode(n,n.uint32());break;case 2:o.origin=Vector3.decode(n,n.uint32());break;case 3:o.direction=Vector3.decode(n,n.uint32());break;case 4:o.normalHit=Vector3.decode(n,n.uint32());break;case 5:o.length=n.float();break;case 6:o.meshName=n.string();break;case 7:o.entityId=longToNumber(n.int64());break;default:n.skipType(7&e)}}return o}};var tsProtoGlobalThis=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function longToNumber(e){if(e.gt(Number.MAX_SAFE_INTEGER))throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}function createBasePBPointerEventsResult(){return{commands:[]}}_m0.util.Long!==Long&&(_m0.util.Long=Long,_m0.configure());const PBPointerEventsResult={encode(e,t=_m0.Writer.create()){for(const n of e.commands)PBPointerEventsResult_PointerCommand.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBPointerEventsResult();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.commands.push(PBPointerEventsResult_PointerCommand.decode(n,n.uint32()));else n.skipType(7&e)}return o}};function createBasePBPointerEventsResult_PointerCommand(){return{button:0,hit:void 0,state:0,timestamp:0,analog:void 0}}const PBPointerEventsResult_PointerCommand={encode:(e,t=_m0.Writer.create())=>(0!==e.button&&t.uint32(8).int32(e.button),void 0!==e.hit&&RaycastHit.encode(e.hit,t.uint32(18).fork()).ldelim(),0!==e.state&&t.uint32(32).int32(e.state),0!==e.timestamp&&t.uint32(40).int32(e.timestamp),void 0!==e.analog&&t.uint32(53).float(e.analog),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBPointerEventsResult_PointerCommand();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.button=n.int32();break;case 2:o.hit=RaycastHit.decode(n,n.uint32());break;case 4:o.state=n.int32();break;case 5:o.timestamp=n.int32();break;case 6:o.analog=n.float();break;default:n.skipType(7&e)}}return o}},PointerEventsResultSchema={COMPONENT_ID:1063,serialize(e,t){const n=PBPointerEventsResult.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBPointerEventsResult.decode(e.buffer(),e.remainingBytes()),create:()=>PBPointerEventsResult.decode(new Uint8Array)};function createBasePBPointerLock(){return{isPointerLocked:!1}}const PBPointerLock={encode:(e,t=_m0.Writer.create())=>(!0===e.isPointerLocked&&t.uint32(8).bool(e.isPointerLocked),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBPointerLock();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.isPointerLocked=n.bool();else n.skipType(7&e)}return o}},PointerLockSchema={COMPONENT_ID:1074,serialize(e,t){const n=PBPointerLock.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBPointerLock.decode(e.buffer(),e.remainingBytes()),create:()=>PBPointerLock.decode(new Uint8Array)};var RaycastQueryType;function createBasePBRaycast(){return{origin:void 0,direction:void 0,maxDistance:0,queryType:0}}exports.RaycastQueryType=void 0,RaycastQueryType=exports.RaycastQueryType||(exports.RaycastQueryType={}),RaycastQueryType[RaycastQueryType.RQT_HIT_FIRST=0]="RQT_HIT_FIRST",RaycastQueryType[RaycastQueryType.RQT_QUERY_ALL=1]="RQT_QUERY_ALL";const PBRaycast={encode:(e,t=_m0.Writer.create())=>(void 0!==e.origin&&Vector3.encode(e.origin,t.uint32(18).fork()).ldelim(),void 0!==e.direction&&Vector3.encode(e.direction,t.uint32(26).fork()).ldelim(),0!==e.maxDistance&&t.uint32(37).float(e.maxDistance),0!==e.queryType&&t.uint32(40).int32(e.queryType),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBRaycast();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 2:o.origin=Vector3.decode(n,n.uint32());break;case 3:o.direction=Vector3.decode(n,n.uint32());break;case 4:o.maxDistance=n.float();break;case 5:o.queryType=n.int32();break;default:n.skipType(7&e)}}return o}},RaycastSchema={COMPONENT_ID:1067,serialize(e,t){const n=PBRaycast.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBRaycast.decode(e.buffer(),e.remainingBytes()),create:()=>PBRaycast.decode(new Uint8Array)},RaycastResultSchema={COMPONENT_ID:1068,serialize(e,t){const n=PBRaycastResult.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBRaycastResult.decode(e.buffer(),e.remainingBytes()),create:()=>PBRaycastResult.decode(new Uint8Array)};function createBasePBTextShape(){return{text:"",font:void 0,fontSize:void 0,fontAutoSize:void 0,textAlign:void 0,width:void 0,height:void 0,paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0,lineSpacing:void 0,lineCount:void 0,textWrapping:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,outlineWidth:void 0,shadowColor:void 0,outlineColor:void 0,textColor:void 0}}const PBTextShape={encode:(e,t=_m0.Writer.create())=>(""!==e.text&&t.uint32(10).string(e.text),void 0!==e.font&&t.uint32(16).int32(e.font),void 0!==e.fontSize&&t.uint32(29).float(e.fontSize),void 0!==e.fontAutoSize&&t.uint32(32).bool(e.fontAutoSize),void 0!==e.textAlign&&t.uint32(40).int32(e.textAlign),void 0!==e.width&&t.uint32(53).float(e.width),void 0!==e.height&&t.uint32(61).float(e.height),void 0!==e.paddingTop&&t.uint32(69).float(e.paddingTop),void 0!==e.paddingRight&&t.uint32(77).float(e.paddingRight),void 0!==e.paddingBottom&&t.uint32(85).float(e.paddingBottom),void 0!==e.paddingLeft&&t.uint32(93).float(e.paddingLeft),void 0!==e.lineSpacing&&t.uint32(101).float(e.lineSpacing),void 0!==e.lineCount&&t.uint32(104).int32(e.lineCount),void 0!==e.textWrapping&&t.uint32(112).bool(e.textWrapping),void 0!==e.shadowBlur&&t.uint32(125).float(e.shadowBlur),void 0!==e.shadowOffsetX&&t.uint32(133).float(e.shadowOffsetX),void 0!==e.shadowOffsetY&&t.uint32(141).float(e.shadowOffsetY),void 0!==e.outlineWidth&&t.uint32(149).float(e.outlineWidth),void 0!==e.shadowColor&&Color3.encode(e.shadowColor,t.uint32(154).fork()).ldelim(),void 0!==e.outlineColor&&Color3.encode(e.outlineColor,t.uint32(162).fork()).ldelim(),void 0!==e.textColor&&Color4.encode(e.textColor,t.uint32(170).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBTextShape();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.text=n.string();break;case 2:o.font=n.int32();break;case 3:o.fontSize=n.float();break;case 4:o.fontAutoSize=n.bool();break;case 5:o.textAlign=n.int32();break;case 6:o.width=n.float();break;case 7:o.height=n.float();break;case 8:o.paddingTop=n.float();break;case 9:o.paddingRight=n.float();break;case 10:o.paddingBottom=n.float();break;case 11:o.paddingLeft=n.float();break;case 12:o.lineSpacing=n.float();break;case 13:o.lineCount=n.int32();break;case 14:o.textWrapping=n.bool();break;case 15:o.shadowBlur=n.float();break;case 16:o.shadowOffsetX=n.float();break;case 17:o.shadowOffsetY=n.float();break;case 18:o.outlineWidth=n.float();break;case 19:o.shadowColor=Color3.decode(n,n.uint32());break;case 20:o.outlineColor=Color3.decode(n,n.uint32());break;case 21:o.textColor=Color4.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o}},TextShapeSchema={COMPONENT_ID:1030,serialize(e,t){const n=PBTextShape.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBTextShape.decode(e.buffer(),e.remainingBytes()),create:()=>PBTextShape.decode(new Uint8Array)};function createBaseBorderRect(){return{top:0,left:0,right:0,bottom:0}}const BorderRect={encode:(e,t=_m0.Writer.create())=>(0!==e.top&&t.uint32(13).float(e.top),0!==e.left&&t.uint32(21).float(e.left),0!==e.right&&t.uint32(29).float(e.right),0!==e.bottom&&t.uint32(37).float(e.bottom),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseBorderRect();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.top=n.float();break;case 2:o.left=n.float();break;case 3:o.right=n.float();break;case 4:o.bottom=n.float();break;default:n.skipType(7&e)}}return o}};var BackgroundTextureMode;function createBasePBUiBackground(){return{color:void 0,texture:void 0,textureMode:0,textureSlices:void 0,uvs:[]}}exports.BackgroundTextureMode=void 0,BackgroundTextureMode=exports.BackgroundTextureMode||(exports.BackgroundTextureMode={}),BackgroundTextureMode[BackgroundTextureMode.NINE_SLICES=0]="NINE_SLICES",BackgroundTextureMode[BackgroundTextureMode.CENTER=1]="CENTER",BackgroundTextureMode[BackgroundTextureMode.STRETCH=2]="STRETCH";const PBUiBackground={encode(e,t=_m0.Writer.create()){void 0!==e.color&&Color4.encode(e.color,t.uint32(10).fork()).ldelim(),void 0!==e.texture&&TextureUnion.encode(e.texture,t.uint32(18).fork()).ldelim(),0!==e.textureMode&&t.uint32(24).int32(e.textureMode),void 0!==e.textureSlices&&BorderRect.encode(e.textureSlices,t.uint32(34).fork()).ldelim(),t.uint32(42).fork();for(const n of e.uvs)t.float(n);return t.ldelim(),t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiBackground();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.color=Color4.decode(n,n.uint32());break;case 2:o.texture=TextureUnion.decode(n,n.uint32());break;case 3:o.textureMode=n.int32();break;case 4:o.textureSlices=BorderRect.decode(n,n.uint32());break;case 5:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.uvs.push(n.float())}else o.uvs.push(n.float());break;default:n.skipType(7&e)}}return o}},UiBackgroundSchema={COMPONENT_ID:1053,serialize(e,t){const n=PBUiBackground.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiBackground.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiBackground.decode(new Uint8Array)};function createBasePBUiDropdown(){return{acceptEmpty:!1,emptyLabel:void 0,options:[],selectedIndex:void 0,disabled:!1,color:void 0,textAlign:void 0,font:void 0,fontSize:void 0}}const PBUiDropdown={encode(e,t=_m0.Writer.create()){!0===e.acceptEmpty&&t.uint32(8).bool(e.acceptEmpty),void 0!==e.emptyLabel&&t.uint32(18).string(e.emptyLabel);for(const n of e.options)t.uint32(26).string(n);return void 0!==e.selectedIndex&&t.uint32(32).int32(e.selectedIndex),!0===e.disabled&&t.uint32(40).bool(e.disabled),void 0!==e.color&&Color4.encode(e.color,t.uint32(50).fork()).ldelim(),void 0!==e.textAlign&&t.uint32(80).int32(e.textAlign),void 0!==e.font&&t.uint32(88).int32(e.font),void 0!==e.fontSize&&t.uint32(96).int32(e.fontSize),t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiDropdown();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.acceptEmpty=n.bool();break;case 2:o.emptyLabel=n.string();break;case 3:o.options.push(n.string());break;case 4:o.selectedIndex=n.int32();break;case 5:o.disabled=n.bool();break;case 6:o.color=Color4.decode(n,n.uint32());break;case 10:o.textAlign=n.int32();break;case 11:o.font=n.int32();break;case 12:o.fontSize=n.int32();break;default:n.skipType(7&e)}}return o}},UiDropdownSchema={COMPONENT_ID:1094,serialize(e,t){const n=PBUiDropdown.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiDropdown.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiDropdown.decode(new Uint8Array)};function createBasePBUiDropdownResult(){return{value:0}}const PBUiDropdownResult={encode:(e,t=_m0.Writer.create())=>(0!==e.value&&t.uint32(8).int32(e.value),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiDropdownResult();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.value=n.int32();else n.skipType(7&e)}return o}},UiDropdownResultSchema={COMPONENT_ID:1096,serialize(e,t){const n=PBUiDropdownResult.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiDropdownResult.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiDropdownResult.decode(new Uint8Array)};function createBasePBUiInput(){return{placeholder:"",color:void 0,placeholderColor:void 0,disabled:!1,textAlign:void 0,font:void 0,fontSize:void 0}}const PBUiInput={encode:(e,t=_m0.Writer.create())=>(""!==e.placeholder&&t.uint32(10).string(e.placeholder),void 0!==e.color&&Color4.encode(e.color,t.uint32(18).fork()).ldelim(),void 0!==e.placeholderColor&&Color4.encode(e.placeholderColor,t.uint32(26).fork()).ldelim(),!0===e.disabled&&t.uint32(32).bool(e.disabled),void 0!==e.textAlign&&t.uint32(80).int32(e.textAlign),void 0!==e.font&&t.uint32(88).int32(e.font),void 0!==e.fontSize&&t.uint32(96).int32(e.fontSize),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiInput();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.placeholder=n.string();break;case 2:o.color=Color4.decode(n,n.uint32());break;case 3:o.placeholderColor=Color4.decode(n,n.uint32());break;case 4:o.disabled=n.bool();break;case 10:o.textAlign=n.int32();break;case 11:o.font=n.int32();break;case 12:o.fontSize=n.int32();break;default:n.skipType(7&e)}}return o}},UiInputSchema={COMPONENT_ID:1093,serialize(e,t){const n=PBUiInput.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiInput.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiInput.decode(new Uint8Array)};function createBasePBUiInputResult(){return{value:""}}const PBUiInputResult={encode:(e,t=_m0.Writer.create())=>(""!==e.value&&t.uint32(10).string(e.value),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiInputResult();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.value=n.string();else n.skipType(7&e)}return o}},UiInputResultSchema={COMPONENT_ID:1095,serialize(e,t){const n=PBUiInputResult.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiInputResult.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiInputResult.decode(new Uint8Array)};function createBasePBUiText(){return{value:"",color:void 0,textAlign:void 0,font:void 0,fontSize:void 0}}const PBUiText={encode:(e,t=_m0.Writer.create())=>(""!==e.value&&t.uint32(10).string(e.value),void 0!==e.color&&Color4.encode(e.color,t.uint32(18).fork()).ldelim(),void 0!==e.textAlign&&t.uint32(24).int32(e.textAlign),void 0!==e.font&&t.uint32(32).int32(e.font),void 0!==e.fontSize&&t.uint32(40).int32(e.fontSize),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiText();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.value=n.string();break;case 2:o.color=Color4.decode(n,n.uint32());break;case 3:o.textAlign=n.int32();break;case 4:o.font=n.int32();break;case 5:o.fontSize=n.int32();break;default:n.skipType(7&e)}}return o}},UiTextSchema={COMPONENT_ID:1052,serialize(e,t){const n=PBUiText.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiText.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiText.decode(new Uint8Array)};var YGPositionType,YGAlign,YGUnit,YGFlexDirection,YGWrap,YGJustify,YGOverflow,YGDisplay,YGEdge;function createBasePBUiTransform(){return{parent:0,rightOf:0,alignContent:void 0,alignItems:void 0,flexWrap:void 0,flexShrink:void 0,positionType:0,alignSelf:0,flexDirection:0,justifyContent:0,overflow:0,display:0,flexBasisUnit:0,flexBasis:0,flexGrow:0,widthUnit:0,width:0,heightUnit:0,height:0,minWidthUnit:0,minWidth:0,minHeightUnit:0,minHeight:0,maxWidthUnit:0,maxWidth:0,maxHeightUnit:0,maxHeight:0,positionLeftUnit:0,positionLeft:0,positionTopUnit:0,positionTop:0,positionRightUnit:0,positionRight:0,positionBottomUnit:0,positionBottom:0,marginLeftUnit:0,marginLeft:0,marginTopUnit:0,marginTop:0,marginRightUnit:0,marginRight:0,marginBottomUnit:0,marginBottom:0,paddingLeftUnit:0,paddingLeft:0,paddingTopUnit:0,paddingTop:0,paddingRightUnit:0,paddingRight:0,paddingBottomUnit:0,paddingBottom:0}}exports.YGPositionType=void 0,YGPositionType=exports.YGPositionType||(exports.YGPositionType={}),YGPositionType[YGPositionType.YGPT_RELATIVE=0]="YGPT_RELATIVE",YGPositionType[YGPositionType.YGPT_ABSOLUTE=1]="YGPT_ABSOLUTE",exports.YGAlign=void 0,YGAlign=exports.YGAlign||(exports.YGAlign={}),YGAlign[YGAlign.YGA_AUTO=0]="YGA_AUTO",YGAlign[YGAlign.YGA_FLEX_START=1]="YGA_FLEX_START",YGAlign[YGAlign.YGA_CENTER=2]="YGA_CENTER",YGAlign[YGAlign.YGA_FLEX_END=3]="YGA_FLEX_END",YGAlign[YGAlign.YGA_STRETCH=4]="YGA_STRETCH",YGAlign[YGAlign.YGA_BASELINE=5]="YGA_BASELINE",YGAlign[YGAlign.YGA_SPACE_BETWEEN=6]="YGA_SPACE_BETWEEN",YGAlign[YGAlign.YGA_SPACE_AROUND=7]="YGA_SPACE_AROUND",exports.YGUnit=void 0,YGUnit=exports.YGUnit||(exports.YGUnit={}),YGUnit[YGUnit.YGU_UNDEFINED=0]="YGU_UNDEFINED",YGUnit[YGUnit.YGU_POINT=1]="YGU_POINT",YGUnit[YGUnit.YGU_PERCENT=2]="YGU_PERCENT",YGUnit[YGUnit.YGU_AUTO=3]="YGU_AUTO",exports.YGFlexDirection=void 0,YGFlexDirection=exports.YGFlexDirection||(exports.YGFlexDirection={}),YGFlexDirection[YGFlexDirection.YGFD_ROW=0]="YGFD_ROW",YGFlexDirection[YGFlexDirection.YGFD_COLUMN=1]="YGFD_COLUMN",YGFlexDirection[YGFlexDirection.YGFD_COLUMN_REVERSE=2]="YGFD_COLUMN_REVERSE",YGFlexDirection[YGFlexDirection.YGFD_ROW_REVERSE=3]="YGFD_ROW_REVERSE",exports.YGWrap=void 0,YGWrap=exports.YGWrap||(exports.YGWrap={}),YGWrap[YGWrap.YGW_NO_WRAP=0]="YGW_NO_WRAP",YGWrap[YGWrap.YGW_WRAP=1]="YGW_WRAP",YGWrap[YGWrap.YGW_WRAP_REVERSE=2]="YGW_WRAP_REVERSE",exports.YGJustify=void 0,YGJustify=exports.YGJustify||(exports.YGJustify={}),YGJustify[YGJustify.YGJ_FLEX_START=0]="YGJ_FLEX_START",YGJustify[YGJustify.YGJ_CENTER=1]="YGJ_CENTER",YGJustify[YGJustify.YGJ_FLEX_END=2]="YGJ_FLEX_END",YGJustify[YGJustify.YGJ_SPACE_BETWEEN=3]="YGJ_SPACE_BETWEEN",YGJustify[YGJustify.YGJ_SPACE_AROUND=4]="YGJ_SPACE_AROUND",YGJustify[YGJustify.YGJ_SPACE_EVENLY=5]="YGJ_SPACE_EVENLY",exports.YGOverflow=void 0,YGOverflow=exports.YGOverflow||(exports.YGOverflow={}),YGOverflow[YGOverflow.YGO_VISIBLE=0]="YGO_VISIBLE",YGOverflow[YGOverflow.YGO_HIDDEN=1]="YGO_HIDDEN",YGOverflow[YGOverflow.YGO_SCROLL=2]="YGO_SCROLL",exports.YGDisplay=void 0,YGDisplay=exports.YGDisplay||(exports.YGDisplay={}),YGDisplay[YGDisplay.YGD_FLEX=0]="YGD_FLEX",YGDisplay[YGDisplay.YGD_NONE=1]="YGD_NONE",exports.YGEdge=void 0,YGEdge=exports.YGEdge||(exports.YGEdge={}),YGEdge[YGEdge.YGE_LEFT=0]="YGE_LEFT",YGEdge[YGEdge.YGE_TOP=1]="YGE_TOP",YGEdge[YGEdge.YGE_RIGHT=2]="YGE_RIGHT",YGEdge[YGEdge.YGE_BOTTOM=3]="YGE_BOTTOM",YGEdge[YGEdge.YGE_START=4]="YGE_START",YGEdge[YGEdge.YGE_END=5]="YGE_END",YGEdge[YGEdge.YGE_HORIZONTAL=6]="YGE_HORIZONTAL",YGEdge[YGEdge.YGE_VERTICAL=7]="YGE_VERTICAL",YGEdge[YGEdge.YGE_ALL=8]="YGE_ALL";const PBUiTransform={encode:(e,t=_m0.Writer.create())=>(0!==e.parent&&t.uint32(8).int32(e.parent),0!==e.rightOf&&t.uint32(16).int32(e.rightOf),void 0!==e.alignContent&&t.uint32(24).int32(e.alignContent),void 0!==e.alignItems&&t.uint32(32).int32(e.alignItems),void 0!==e.flexWrap&&t.uint32(40).int32(e.flexWrap),void 0!==e.flexShrink&&t.uint32(53).float(e.flexShrink),0!==e.positionType&&t.uint32(56).int32(e.positionType),0!==e.alignSelf&&t.uint32(64).int32(e.alignSelf),0!==e.flexDirection&&t.uint32(72).int32(e.flexDirection),0!==e.justifyContent&&t.uint32(80).int32(e.justifyContent),0!==e.overflow&&t.uint32(88).int32(e.overflow),0!==e.display&&t.uint32(96).int32(e.display),0!==e.flexBasisUnit&&t.uint32(104).int32(e.flexBasisUnit),0!==e.flexBasis&&t.uint32(117).float(e.flexBasis),0!==e.flexGrow&&t.uint32(125).float(e.flexGrow),0!==e.widthUnit&&t.uint32(128).int32(e.widthUnit),0!==e.width&&t.uint32(141).float(e.width),0!==e.heightUnit&&t.uint32(144).int32(e.heightUnit),0!==e.height&&t.uint32(157).float(e.height),0!==e.minWidthUnit&&t.uint32(160).int32(e.minWidthUnit),0!==e.minWidth&&t.uint32(173).float(e.minWidth),0!==e.minHeightUnit&&t.uint32(176).int32(e.minHeightUnit),0!==e.minHeight&&t.uint32(189).float(e.minHeight),0!==e.maxWidthUnit&&t.uint32(192).int32(e.maxWidthUnit),0!==e.maxWidth&&t.uint32(205).float(e.maxWidth),0!==e.maxHeightUnit&&t.uint32(208).int32(e.maxHeightUnit),0!==e.maxHeight&&t.uint32(221).float(e.maxHeight),0!==e.positionLeftUnit&&t.uint32(224).int32(e.positionLeftUnit),0!==e.positionLeft&&t.uint32(237).float(e.positionLeft),0!==e.positionTopUnit&&t.uint32(240).int32(e.positionTopUnit),0!==e.positionTop&&t.uint32(253).float(e.positionTop),0!==e.positionRightUnit&&t.uint32(256).int32(e.positionRightUnit),0!==e.positionRight&&t.uint32(269).float(e.positionRight),0!==e.positionBottomUnit&&t.uint32(272).int32(e.positionBottomUnit),0!==e.positionBottom&&t.uint32(285).float(e.positionBottom),0!==e.marginLeftUnit&&t.uint32(288).int32(e.marginLeftUnit),0!==e.marginLeft&&t.uint32(301).float(e.marginLeft),0!==e.marginTopUnit&&t.uint32(304).int32(e.marginTopUnit),0!==e.marginTop&&t.uint32(317).float(e.marginTop),0!==e.marginRightUnit&&t.uint32(320).int32(e.marginRightUnit),0!==e.marginRight&&t.uint32(333).float(e.marginRight),0!==e.marginBottomUnit&&t.uint32(336).int32(e.marginBottomUnit),0!==e.marginBottom&&t.uint32(349).float(e.marginBottom),0!==e.paddingLeftUnit&&t.uint32(352).int32(e.paddingLeftUnit),0!==e.paddingLeft&&t.uint32(365).float(e.paddingLeft),0!==e.paddingTopUnit&&t.uint32(368).int32(e.paddingTopUnit),0!==e.paddingTop&&t.uint32(381).float(e.paddingTop),0!==e.paddingRightUnit&&t.uint32(384).int32(e.paddingRightUnit),0!==e.paddingRight&&t.uint32(397).float(e.paddingRight),0!==e.paddingBottomUnit&&t.uint32(400).int32(e.paddingBottomUnit),0!==e.paddingBottom&&t.uint32(413).float(e.paddingBottom),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiTransform();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.parent=n.int32();break;case 2:o.rightOf=n.int32();break;case 3:o.alignContent=n.int32();break;case 4:o.alignItems=n.int32();break;case 5:o.flexWrap=n.int32();break;case 6:o.flexShrink=n.float();break;case 7:o.positionType=n.int32();break;case 8:o.alignSelf=n.int32();break;case 9:o.flexDirection=n.int32();break;case 10:o.justifyContent=n.int32();break;case 11:o.overflow=n.int32();break;case 12:o.display=n.int32();break;case 13:o.flexBasisUnit=n.int32();break;case 14:o.flexBasis=n.float();break;case 15:o.flexGrow=n.float();break;case 16:o.widthUnit=n.int32();break;case 17:o.width=n.float();break;case 18:o.heightUnit=n.int32();break;case 19:o.height=n.float();break;case 20:o.minWidthUnit=n.int32();break;case 21:o.minWidth=n.float();break;case 22:o.minHeightUnit=n.int32();break;case 23:o.minHeight=n.float();break;case 24:o.maxWidthUnit=n.int32();break;case 25:o.maxWidth=n.float();break;case 26:o.maxHeightUnit=n.int32();break;case 27:o.maxHeight=n.float();break;case 28:o.positionLeftUnit=n.int32();break;case 29:o.positionLeft=n.float();break;case 30:o.positionTopUnit=n.int32();break;case 31:o.positionTop=n.float();break;case 32:o.positionRightUnit=n.int32();break;case 33:o.positionRight=n.float();break;case 34:o.positionBottomUnit=n.int32();break;case 35:o.positionBottom=n.float();break;case 36:o.marginLeftUnit=n.int32();break;case 37:o.marginLeft=n.float();break;case 38:o.marginTopUnit=n.int32();break;case 39:o.marginTop=n.float();break;case 40:o.marginRightUnit=n.int32();break;case 41:o.marginRight=n.float();break;case 42:o.marginBottomUnit=n.int32();break;case 43:o.marginBottom=n.float();break;case 44:o.paddingLeftUnit=n.int32();break;case 45:o.paddingLeft=n.float();break;case 46:o.paddingTopUnit=n.int32();break;case 47:o.paddingTop=n.float();break;case 48:o.paddingRightUnit=n.int32();break;case 49:o.paddingRight=n.float();break;case 50:o.paddingBottomUnit=n.int32();break;case 51:o.paddingBottom=n.float();break;default:n.skipType(7&e)}}return o}},UiTransformSchema={COMPONENT_ID:1050,serialize(e,t){const n=PBUiTransform.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiTransform.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiTransform.decode(new Uint8Array)};function createBasePBVisibilityComponent(){return{visible:void 0}}const PBVisibilityComponent={encode:(e,t=_m0.Writer.create())=>(void 0!==e.visible&&t.uint32(8).bool(e.visible),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBVisibilityComponent();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.visible=n.bool();else n.skipType(7&e)}return o}},VisibilityComponentSchema={COMPONENT_ID:1081,serialize(e,t){const n=PBVisibilityComponent.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBVisibilityComponent.decode(e.buffer(),e.remainingBytes()),create:()=>PBVisibilityComponent.decode(new Uint8Array)},Animator$2=e=>e.defineComponentFromSchema("core::Animator",AnimatorSchema),AudioSource$1=e=>e.defineComponentFromSchema("core::AudioSource",AudioSourceSchema),AudioStream$1=e=>e.defineComponentFromSchema("core::AudioStream",AudioStreamSchema),AvatarAttach$1=e=>e.defineComponentFromSchema("core::AvatarAttach",AvatarAttachSchema),AvatarModifierArea$1=e=>e.defineComponentFromSchema("core::AvatarModifierArea",AvatarModifierAreaSchema),AvatarShape$1=e=>e.defineComponentFromSchema("core::AvatarShape",AvatarShapeSchema),Billboard$1=e=>e.defineComponentFromSchema("core::Billboard",BillboardSchema),CameraMode$1=e=>e.defineComponentFromSchema("core::CameraMode",CameraModeSchema),CameraModeArea$1=e=>e.defineComponentFromSchema("core::CameraModeArea",CameraModeAreaSchema),GltfContainer$1=e=>e.defineComponentFromSchema("core::GltfContainer",GltfContainerSchema),Material$2=e=>e.defineComponentFromSchema("core::Material",MaterialSchema),MeshCollider$2=e=>e.defineComponentFromSchema("core::MeshCollider",MeshColliderSchema),MeshRenderer$2=e=>e.defineComponentFromSchema("core::MeshRenderer",MeshRendererSchema),NftShape$1=e=>e.defineComponentFromSchema("core::NftShape",NftShapeSchema),PointerEvents$1=e=>e.defineComponentFromSchema("core::PointerEvents",PointerEventsSchema),PointerEventsResult$1=e=>e.defineComponentFromSchema("core::PointerEventsResult",PointerEventsResultSchema),PointerLock$1=e=>e.defineComponentFromSchema("core::PointerLock",PointerLockSchema),Raycast$1=e=>e.defineComponentFromSchema("core::Raycast",RaycastSchema),RaycastResult$1=e=>e.defineComponentFromSchema("core::RaycastResult",RaycastResultSchema),TextShape$1=e=>e.defineComponentFromSchema("core::TextShape",TextShapeSchema),UiBackground$1=e=>e.defineComponentFromSchema("core::UiBackground",UiBackgroundSchema),UiDropdown$1=e=>e.defineComponentFromSchema("core::UiDropdown",UiDropdownSchema),UiDropdownResult$1=e=>e.defineComponentFromSchema("core::UiDropdownResult",UiDropdownResultSchema),UiInput$1=e=>e.defineComponentFromSchema("core::UiInput",UiInputSchema),UiInputResult$1=e=>e.defineComponentFromSchema("core::UiInputResult",UiInputResultSchema),UiText$1=e=>e.defineComponentFromSchema("core::UiText",UiTextSchema),UiTransform$1=e=>e.defineComponentFromSchema("core::UiTransform",UiTransformSchema),VisibilityComponent$1=e=>e.defineComponentFromSchema("core::VisibilityComponent",VisibilityComponentSchema);function defineAnimatorComponent(e){const t=Animator$2(e);function n(e,n){const r=t.getMutableOrNull(e);if(!r)return[null,null];const o=r.states.find((e=>e.name===n||e.clip===n));return o?[r,o]:[r,null]}return{...t,getClipOrNull(e,t){const[r,o]=n(e,t);return o},getClip(e,t){const[r,o]=n(e,t);if(!r)throw new Error(`There is no Animator found in the entity ${e}`);if(!o)throw new Error(`The Animator component of ${e} has no the state ${t}`);return o},playSingleAnimation(e,t,r=!0){const[o,i]=n(e,t);if(!o||!i)return!1;for(const e of o.states)e.playing=!1,e.shouldReset=!0;return i.playing=!0,i.shouldReset=r,!0},stopAllAnimations(e,n=!0){const r=t.getMutableOrNull(e);if(!r)return!1;for(const e of r.states)e.playing=!1,e.shouldReset=n;return!0}}}const TextureHelper={Common:e=>({tex:{$case:"texture",texture:e}}),Avatar:e=>({tex:{$case:"avatarTexture",avatarTexture:e}})};function defineMaterialComponent(e){const t=Material$2(e);return{...t,Texture:TextureHelper,setBasicMaterial(e,n){t.createOrReplace(e,{material:{$case:"unlit",unlit:n}})},setPbrMaterial(e,n){t.createOrReplace(e,{material:{$case:"pbr",pbr:n}})}}}function defineMeshColliderComponent(e){const t=MeshCollider$2(e);function n(e){return Array.isArray(e)?e.map((e=>e)).reduce(((e,t)=>e|t),0):e||void 0}return{...t,setBox(e,r){t.createOrReplace(e,{mesh:{$case:"box",box:{}},collisionMask:n(r)})},setPlane(e,r){t.createOrReplace(e,{mesh:{$case:"plane",plane:{}},collisionMask:n(r)})},setCylinder(e,r,o,i){t.createOrReplace(e,{mesh:{$case:"cylinder",cylinder:{radiusBottom:r,radiusTop:o}},collisionMask:n(i)})},setSphere(e,r){t.createOrReplace(e,{mesh:{$case:"sphere",sphere:{}},collisionMask:n(r)})}}}function defineMeshRendererComponent(e){const t=MeshRenderer$2(e);return{...t,setBox(e,n){t.createOrReplace(e,{mesh:{$case:"box",box:{uvs:n||[]}}})},setPlane(e,n){t.createOrReplace(e,{mesh:{$case:"plane",plane:{uvs:n||[]}}})},setCylinder(e,n,r){t.createOrReplace(e,{mesh:{$case:"cylinder",cylinder:{radiusBottom:n,radiusTop:r}}})},setSphere(e){t.createOrReplace(e,{mesh:{$case:"sphere",sphere:{}}})}}}const TRANSFORM_LENGTH=44,TransformSchema={serialize(e,t){const n=t.incrementWriteOffset(TRANSFORM_LENGTH);t.setFloat32(n,e.position.x),t.setFloat32(n+4,e.position.y),t.setFloat32(n+8,e.position.z),t.setFloat32(n+12,e.rotation.x),t.setFloat32(n+16,e.rotation.y),t.setFloat32(n+20,e.rotation.z),t.setFloat32(n+24,e.rotation.w),t.setFloat32(n+28,e.scale.x),t.setFloat32(n+32,e.scale.y),t.setFloat32(n+36,e.scale.z),t.setUint32(n+40,e.parent||0)},deserialize(e){const t=e.incrementReadOffset(TRANSFORM_LENGTH);return{position:{x:e.getFloat32(t),y:e.getFloat32(t+4),z:e.getFloat32(t+8)},rotation:{x:e.getFloat32(t+12),y:e.getFloat32(t+16),z:e.getFloat32(t+20),w:e.getFloat32(t+24)},scale:{x:e.getFloat32(t+28),y:e.getFloat32(t+32),z:e.getFloat32(t+36)},parent:e.getUint32(t+40)}},create:()=>({position:{x:0,y:0,z:0},scale:{x:1,y:1,z:1},rotation:{x:0,y:0,z:0,w:1}}),extend:e=>({position:{x:0,y:0,z:0},scale:{x:1,y:1,z:1},rotation:{x:0,y:0,z:0,w:1},...e})};function defineTransformComponent(e){const t=e.defineComponentFromSchema("core::Transform",TransformSchema);return{...t,create:(e,n)=>t.create(e,n),createOrReplace:(e,n)=>t.createOrReplace(e,n)}}const Transform$1=e=>defineTransformComponent(e),Material$1=e=>defineMaterialComponent(e),Animator$1=e=>defineAnimatorComponent(e),MeshRenderer$1=e=>defineMeshRendererComponent(e),MeshCollider$1=e=>defineMeshColliderComponent(e);var index=Object.freeze({__proto__:null,Animator:Animator$1,AudioSource:AudioSource$1,AudioStream:AudioStream$1,get AvatarAnchorPointType(){return exports.AvatarAnchorPointType},AvatarAttach:AvatarAttach$1,AvatarModifierArea:AvatarModifierArea$1,get AvatarModifierType(){return exports.AvatarModifierType},AvatarShape:AvatarShape$1,get BackgroundTextureMode(){return exports.BackgroundTextureMode},Billboard:Billboard$1,get BillboardMode(){return exports.BillboardMode},CameraMode:CameraMode$1,CameraModeArea:CameraModeArea$1,get ColliderLayer(){return exports.ColliderLayer},GltfContainer:GltfContainer$1,Material:Material$1,get MaterialTransparencyMode(){return exports.MaterialTransparencyMode},MeshCollider:MeshCollider$1,MeshRenderer:MeshRenderer$1,get NftFrameType(){return exports.NftFrameType},NftShape:NftShape$1,PBAnimationState:PBAnimationState,PBAnimator:PBAnimator,PBAudioSource:PBAudioSource,PBAudioStream:PBAudioStream,PBAvatarAttach:PBAvatarAttach,PBAvatarModifierArea:PBAvatarModifierArea,PBAvatarShape:PBAvatarShape,PBBillboard:PBBillboard,PBCameraMode:PBCameraMode,PBCameraModeArea:PBCameraModeArea,PBGltfContainer:PBGltfContainer,PBMaterial:PBMaterial,PBMaterial_PbrMaterial:PBMaterial_PbrMaterial,PBMaterial_UnlitMaterial:PBMaterial_UnlitMaterial,PBMeshCollider:PBMeshCollider,PBMeshCollider_BoxMesh:PBMeshCollider_BoxMesh,PBMeshCollider_CylinderMesh:PBMeshCollider_CylinderMesh,PBMeshCollider_PlaneMesh:PBMeshCollider_PlaneMesh,PBMeshCollider_SphereMesh:PBMeshCollider_SphereMesh,PBMeshRenderer:PBMeshRenderer,PBMeshRenderer_BoxMesh:PBMeshRenderer_BoxMesh,PBMeshRenderer_CylinderMesh:PBMeshRenderer_CylinderMesh,PBMeshRenderer_PlaneMesh:PBMeshRenderer_PlaneMesh,PBMeshRenderer_SphereMesh:PBMeshRenderer_SphereMesh,PBNftShape:PBNftShape,PBPointerEvents:PBPointerEvents,PBPointerEventsResult:PBPointerEventsResult,PBPointerEventsResult_PointerCommand:PBPointerEventsResult_PointerCommand,PBPointerEvents_Entry:PBPointerEvents_Entry,PBPointerEvents_Info:PBPointerEvents_Info,PBPointerLock:PBPointerLock,PBRaycast:PBRaycast,PBRaycastResult:PBRaycastResult,PBTextShape:PBTextShape,PBUiBackground:PBUiBackground,PBUiDropdown:PBUiDropdown,PBUiDropdownResult:PBUiDropdownResult,PBUiInput:PBUiInput,PBUiInputResult:PBUiInputResult,PBUiText:PBUiText,PBUiTransform:PBUiTransform,PBVisibilityComponent:PBVisibilityComponent,get PointerEventType(){return exports.PointerEventType},PointerEvents:PointerEvents$1,PointerEventsResult:PointerEventsResult$1,PointerLock:PointerLock$1,Raycast:Raycast$1,RaycastHit:RaycastHit,get RaycastQueryType(){return exports.RaycastQueryType},RaycastResult:RaycastResult$1,TextShape:TextShape$1,Transform:Transform$1,UiBackground:UiBackground$1,UiDropdown:UiDropdown$1,UiDropdownResult:UiDropdownResult$1,UiInput:UiInput$1,UiInputResult:UiInputResult$1,UiText:UiText$1,UiTransform:UiTransform$1,VisibilityComponent:VisibilityComponent$1,get YGAlign(){return exports.YGAlign},get YGDisplay(){return exports.YGDisplay},get YGEdge(){return exports.YGEdge},get YGFlexDirection(){return exports.YGFlexDirection},get YGJustify(){return exports.YGJustify},get YGOverflow(){return exports.YGOverflow},get YGPositionType(){return exports.YGPositionType},get YGUnit(){return exports.YGUnit},get YGWrap(){return exports.YGWrap}});const coreComponentMappings={"core::Transform":1,"core::Animator":1042,"core::AudioSource":1020,"core::AudioStream":1021,"core::AvatarAttach":1073,"core::AvatarModifierArea":1070,"core::AvatarShape":1080,"core::Billboard":1090,"core::CameraMode":1072,"core::CameraModeArea":1071,"core::GltfContainer":1041,"core::Material":1017,"core::MeshCollider":1019,"core::MeshRenderer":1018,"core::NftShape":1040,"core::PointerEvents":1062,"core::PointerEventsResult":1063,"core::PointerLock":1074,"core::Raycast":1067,"core::RaycastResult":1068,"core::TextShape":1030,"core::UiBackground":1053,"core::UiDropdown":1094,"core::UiDropdownResult":1096,"core::UiInput":1093,"core::UiInputResult":1095,"core::UiText":1052,"core::UiTransform":1050,"core::VisibilityComponent":1081};var utf8Exports=requireUtf8();const CRC_TABLE=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function _crc32(e,t){let n=-1^~~t;for(let t=0;t<e.length;t++)n=CRC_TABLE[255&(n^e[t])]^n>>>8;return-1^n}function unsignedCRC32(e,t=0){return _crc32(e,t)>>>0}const MAX_STATIC_COMPONENT=2048;function componentNumberFromName(e){if(coreComponentMappings[e])return coreComponentMappings[e];const t=new Uint8Array(128);return utf8Exports.write(e,t,0),(unsignedCRC32(t)+MAX_STATIC_COMPONENT&4294967295)>>>0}function checkNotThenable(e,t){if(globalThis.DEBUG&&e&&"object"==typeof e&&"function"==typeof e.then)throw new Error(t);return e}function IArray(e){return{serialize(t,n){n.writeUint32(t.length);for(const r of t)e.serialize(r,n)},deserialize(t){const n=[],r=t.readUint32();for(let o=0;o<r;o++)n.push(e.deserialize(t));return n},create:()=>[]}}const Bool={serialize(e,t){t.writeInt8(e?1:0)},deserialize:e=>1===e.readInt8(),create:()=>!1};function IEnum(e){return{serialize(t,n){e.serialize(t,n)},deserialize:t=>e.deserialize(t),create:()=>e.create()}}const Float32={serialize(e,t){t.writeFloat32(e)},deserialize:e=>e.readFloat32(),create:()=>0},Float64={serialize(e,t){t.writeFloat64(e)},deserialize:e=>e.readFloat64(),create:()=>0},Int64={serialize(e,t){t.writeInt64(BigInt(e))},deserialize:e=>Number(e.readInt64()),create:()=>0},Int32={serialize(e,t){t.writeInt32(e)},deserialize:e=>e.readInt32(),create:()=>0},Int16={serialize(e,t){t.writeInt16(e)},deserialize:e=>e.readInt16(),create:()=>0},Int8={serialize(e,t){t.writeInt8(e)},deserialize:e=>e.readInt8(),create:()=>0},FlatString={serialize(e,t){t.writeUtf8String(e)},deserialize:e=>e.readUtf8String(),create:()=>""},EcsString=FlatString,Color3Schema={serialize(e,t){t.writeFloat32(e.r),t.writeFloat32(e.g),t.writeFloat32(e.b)},deserialize:e=>({r:e.readFloat32(),g:e.readFloat32(),b:e.readFloat32()}),create:()=>({r:0,g:0,b:0})},Color4Schema={serialize(e,t){t.writeFloat32(e.r),t.writeFloat32(e.g),t.writeFloat32(e.b),t.writeFloat32(e.a)},deserialize:e=>({r:e.readFloat32(),g:e.readFloat32(),b:e.readFloat32(),a:e.readFloat32()}),create:()=>({r:0,g:0,b:0,a:0})},EntitySchema={serialize(e,t){t.writeInt32(e)},deserialize:e=>e.readInt32(),create:()=>0},QuaternionSchema={serialize(e,t){t.writeFloat32(e.x),t.writeFloat32(e.y),t.writeFloat32(e.z),t.writeFloat32(e.w)},deserialize:e=>({x:e.readFloat32(),y:e.readFloat32(),z:e.readFloat32(),w:e.readFloat32()}),create:()=>({x:0,y:0,z:0,w:0})},Vector3Schema={serialize(e,t){t.writeFloat32(e.x),t.writeFloat32(e.y),t.writeFloat32(e.z)},deserialize:e=>({x:e.readFloat32(),y:e.readFloat32(),z:e.readFloat32()}),create:()=>({x:0,y:0,z:0})};function IMap(e,t){return{serialize(t,n){for(const r in e)e[r].serialize(t[r],n)},deserialize(t){const n={};for(const r in e)n[r]=e[r].deserialize(t);return n},create(){const n={};for(const t in e)n[t]=e[t].create();return{...n,...t}},extend:n=>{const r={};for(const t in e)r[t]=e[t].create();return{...r,...t,...n}}}}function IOptional(e){return{serialize(t,n){t?(n.writeInt8(1),e.serialize(t,n)):n.writeInt8(0)},deserialize(t){if(t.readInt8())return e.deserialize(t)},create(){}}}var Schemas;exports.Schemas=void 0,Schemas=exports.Schemas||(exports.Schemas={}),Schemas.Boolean=Bool,Schemas.String=EcsString,Schemas.Float=Float32,Schemas.Double=Float64,Schemas.Byte=Int8,Schemas.Short=Int16,Schemas.Int=Int32,Schemas.Int64=Int64,Schemas.Number=Float32,Schemas.Vector3=Vector3Schema,Schemas.Quaternion=QuaternionSchema,Schemas.Color3=Color3Schema,Schemas.Color4=Color4Schema,Schemas.Entity=EntitySchema,Schemas.Enum=IEnum,Schemas.Array=IArray,Schemas.Map=IMap,Schemas.Optional=IOptional;var dist={},gset={},hasRequiredGset;function requireGset(){if(hasRequiredGset)return gset;return hasRequiredGset=1,Object.defineProperty(gset,"__esModule",{value:!0}),gset.createGSet=void 0,gset.createGSet=function(){const e=new Map;return{addTo(t,n){if(n<0)return!1;const r=e.get(t);return void 0!==r&&r>=n||e.set(t,n),!0},get(){const t=[];for(const[n,r]of e)for(let e=0;e<=r;e++)t.push([n,e]);return t},has(t,n){const r=e.get(t);return void 0!==r&&r>=n},getMap:()=>e}},gset}var types={},hasRequiredTypes,hasRequiredDist;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(e){var t,n;Object.defineProperty(e,"__esModule",{value:!0}),e.ProcessMessageResultType=e.CRDTMessageType=void 0,(t=e.CRDTMessageType||(e.CRDTMessageType={}))[t.CRDTMT_PutComponentData=1]="CRDTMT_PutComponentData",t[t.CRDTMT_DeleteEntity=2]="CRDTMT_DeleteEntity",(n=e.ProcessMessageResultType||(e.ProcessMessageResultType={}))[n.StateUpdatedTimestamp=1]="StateUpdatedTimestamp",n[n.StateOutdatedTimestamp=2]="StateOutdatedTimestamp",n[n.NoChanges=3]="NoChanges",n[n.StateOutdatedData=4]="StateOutdatedData",n[n.StateUpdatedData=5]="StateUpdatedData",n[n.EntityWasDeleted=6]="EntityWasDeleted",n[n.EntityDeleted=7]="EntityDeleted"}(types)),types}function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(e){var t=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=commonjsGlobal&&commonjsGlobal.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.crdtProtocol=e.stateIterator=e.dataCompare=void 0;const r=requireGset(),o=requireTypes(),i=globalThis.Buffer;function a(e,t){if(e===t)return 0;if(null===e&&null!==t)return-1;if(null!==e&&null===t)return 1;if(e instanceof Uint8Array&&t instanceof Uint8Array){let n;const r=e.byteLength>t.byteLength?t.byteLength:e.byteLength;for(let o=0;o<r;o++)if(n=e[o]-t[o],0!==n)return n>0?1:-1;return n=e.byteLength-t.byteLength,n>0?1:n<0?-1:0}return i&&e instanceof i&&t instanceof i?e.compare(t):"string"==typeof e?e.localeCompare(t):e>t?1:-1}n(requireTypes(),e),e.dataCompare=a,e.stateIterator=function*(e){for(const[t,n]of e.components.entries())for(const[e,r]of n.entries())yield[t,e,r]},e.crdtProtocol=function(e){const t={components:new Map,deletedEntities:(0,r.createGSet)()};function n(e,n,r,o){const i=t.components.get(e),a=Math.max(o,i?.get(n)?.timestamp||0);if(i)i.set(n,{timestamp:a,data:r});else{const o=new Map;o.set(n,{timestamp:a,data:r}),t.components.set(e,o)}return{timestamp:a,data:r}}function i(r){const[i,s]=e.fromEntityId(r.entityId);if(t.deletedEntities.has(i,s))return o.ProcessMessageResultType.EntityWasDeleted;const{componentId:u,entityId:l,data:c,timestamp:f}=r,d=t.components.get(u)?.get(l);if(!d||d.timestamp<f)return n(u,l,c,f),o.ProcessMessageResultType.StateUpdatedTimestamp;if(d.timestamp>f)return o.ProcessMessageResultType.StateOutdatedData;const p=a(d.data,c);return 0===p?o.ProcessMessageResultType.NoChanges:p>0?o.ProcessMessageResultType.StateOutdatedData:(n(u,l,c,f),o.ProcessMessageResultType.StateUpdatedData)}function s(n){const{entityId:r}=n,[i,a]=e.fromEntityId(n.entityId);t.deletedEntities.addTo(i,a);for(const[,e]of t.components)e.delete(r);return o.ProcessMessageResultType.EntityDeleted}return{getElementSetState:function(e,n){return t.components.get(e)?.get(n)||null},createComponentDataEvent:function(e,n,r){const a=(t.components.get(e)?.get(n)?.timestamp||0)+1,s={type:o.CRDTMessageType.CRDTMT_PutComponentData,componentId:e,entityId:n,data:r,timestamp:a};return i(s)===o.ProcessMessageResultType.StateUpdatedTimestamp?s:null},createDeleteEntityEvent:function(e){const t={type:o.CRDTMessageType.CRDTMT_DeleteEntity,entityId:e};return s(t),t},processMessage:function(e){return e.type===o.CRDTMessageType.CRDTMT_PutComponentData?i(e):e.type===o.CRDTMessageType.CRDTMT_DeleteEntity?s(e):o.ProcessMessageResultType.NoChanges},getState:function(){return t}}}}(dist)),dist}var distExports=requireDist(),typesExports=requireTypes(),gsetExports=requireGset();const MAX_U16=65535,MASK_UPPER_16_ON_32=4294901760,AMOUNT_VERSION_AVAILABLE=MAX_U16+1,RESERVED_STATIC_ENTITIES=512,MAX_ENTITY_NUMBER=MAX_U16;var EntityUtils,EntityState;function EntityContainer(){let e=RESERVED_STATIC_ENTITIES;const t=new Set;let n=[];const r=gsetExports.createGSet();function o(){if(e>MAX_ENTITY_NUMBER-1)throw new Error(`It fails trying to generate an entity out of range ${MAX_ENTITY_NUMBER}.`);const n=e++,o=r.getMap().has(n)?r.getMap().get(n)+1:0,i=exports.EntityUtils.toEntityId(n,o);return t.add(i),i}function i(e){const[n,o]=exports.EntityUtils.fromEntityId(e);r.addTo(n,o);for(let e=0;e<=o;e++)t.delete(exports.EntityUtils.toEntityId(n,e));return!0}return{generateEntity:function(){if(t.size+RESERVED_STATIC_ENTITIES>=e)return o();for(const[e,o]of r.getMap())if(o<MAX_U16){const r=exports.EntityUtils.toEntityId(e,o+1);if(!t.has(r)&&!n.includes(r))return t.add(r),r}return o()},removeEntity:function(e){return!(e<RESERVED_STATIC_ENTITIES)&&(t.has(e)?(t.delete(e),n.push(e)):i(e),!0)},getExistingEntities:()=>new Set(t),getEntityState:function(e){const[n,o]=exports.EntityUtils.fromEntityId(e);if(n<RESERVED_STATIC_ENTITIES)return exports.EntityState.Reserved;if(t.has(e))return exports.EntityState.UsedEntity;const i=r.getMap().get(n);return void 0!==i&&i>=o?exports.EntityState.Removed:exports.EntityState.Unknown},releaseRemovedEntities:function(){const e=n;n=[];for(const t of e){const[e,n]=exports.EntityUtils.fromEntityId(t);r.addTo(e,n)}return e},updateRemovedEntity:i,updateUsedEntity:function(e){const[n,o]=exports.EntityUtils.fromEntityId(e),i=r.getMap().get(n);if(void 0!==i&&i>=o)return!1;if(o>0){for(let e=0;e<=o-1;e++)t.delete(exports.EntityUtils.toEntityId(n,e));r.addTo(n,o-1)}return t.add(e),!0}}}exports.EntityUtils=void 0,EntityUtils=exports.EntityUtils||(exports.EntityUtils={}),EntityUtils.fromEntityId=function(e){return[(e&MAX_U16)>>>0,((e&MASK_UPPER_16_ON_32)>>16&MAX_U16)>>>0]},EntityUtils.toEntityId=function(e,t){return(e&MAX_U16|(t&MAX_U16)<<16)>>>0},exports.EntityState=void 0,EntityState=exports.EntityState||(exports.EntityState={}),EntityState[EntityState.Unknown=0]="Unknown",EntityState[EntityState.UsedEntity=1]="UsedEntity",EntityState[EntityState.Removed=2]="Removed",EntityState[EntityState.Reserved=3]="Reserved";var __classPrivateFieldGet=globalThis&&globalThis.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},_ReadWriteByteBuffer_instances,_ReadWriteByteBuffer_woAdd,_ReadWriteByteBuffer_roAdd;function getNextSize(e,t){const n=Math.max(e,t)+1024;return 1024*Math.ceil(n/1024)}const defaultInitialCapacity=10240;class ReadWriteByteBuffer{constructor(e,t,n){_ReadWriteByteBuffer_instances.add(this),this._buffer=e||new Uint8Array(defaultInitialCapacity),this.view=new DataView(this._buffer.buffer,this._buffer.byteOffset),this.woffset=n??(e?this._buffer.length:null)??0,this.roffset=t??0}buffer(){return this._buffer}bufferLength(){return this._buffer.length}resetBuffer(){this.roffset=0,this.woffset=0}currentReadOffset(){return this.roffset}currentWriteOffset(){return this.woffset}incrementReadOffset(e){return __classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,e)}remainingBytes(){return this.woffset-this.roffset}readFloat32(){return this.view.getFloat32(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,4))}readFloat64(){return this.view.getFloat64(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,8))}readInt8(){return this.view.getInt8(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,1))}readInt16(){return this.view.getInt16(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,2))}readInt32(){return this.view.getInt32(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,4))}readInt64(){return this.view.getBigInt64(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,8))}readUint8(){return this.view.getUint8(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,1))}readUint16(){return this.view.getUint16(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,2))}readUint32(){return this.view.getUint32(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,4))}readUint64(){return this.view.getBigUint64(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,8))}readBuffer(){const e=this.view.getUint32(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,4));return this._buffer.subarray(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,e),__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,0))}readUtf8String(){const e=this.view.getUint32(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,4));return utf8Exports.read(this._buffer,__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,e),__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,0))}incrementWriteOffset(e){return __classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,e)}toBinary(){return this._buffer.subarray(0,this.woffset)}toCopiedBinary(){return new Uint8Array(this.toBinary())}writeBuffer(e,t=!0){t&&this.writeUint32(e.byteLength);const n=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,e.byteLength);this._buffer.set(e,n)}writeUtf8String(e,t=!0){const n=utf8Exports.length(e);t&&this.writeUint32(n);const r=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,n);utf8Exports.write(e,this._buffer,r)}writeFloat32(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,4);this.view.setFloat32(t,e)}writeFloat64(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,8);this.view.setFloat64(t,e)}writeInt8(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,1);this.view.setInt8(t,e)}writeInt16(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,2);this.view.setInt16(t,e)}writeInt32(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,4);this.view.setInt32(t,e)}writeInt64(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,8);this.view.setBigInt64(t,e)}writeUint8(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,1);this.view.setUint8(t,e)}writeUint16(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,2);this.view.setUint16(t,e)}writeUint32(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,4);this.view.setUint32(t,e)}writeUint64(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,8);this.view.setBigUint64(t,e)}getFloat32(e){return this.view.getFloat32(e)}getFloat64(e){return this.view.getFloat64(e)}getInt8(e){return this.view.getInt8(e)}getInt16(e){return this.view.getInt16(e)}getInt32(e){return this.view.getInt32(e)}getInt64(e){return this.view.getBigInt64(e)}getUint8(e){return this.view.getUint8(e)}getUint16(e){return this.view.getUint16(e)}getUint32(e){return this.view.getUint32(e)>>>0}getUint64(e){return this.view.getBigUint64(e)}setFloat32(e,t){this.view.setFloat32(e,t)}setFloat64(e,t){this.view.setFloat64(e,t)}setInt8(e,t){this.view.setInt8(e,t)}setInt16(e,t){this.view.setInt16(e,t)}setInt32(e,t){this.view.setInt32(e,t)}setInt64(e,t){this.view.setBigInt64(e,t)}setUint8(e,t){this.view.setUint8(e,t)}setUint16(e,t){this.view.setUint16(e,t)}setUint32(e,t){this.view.setUint32(e,t)}setUint64(e,t){this.view.setBigUint64(e,t)}}var CrdtMessageType;_ReadWriteByteBuffer_instances=new WeakSet,_ReadWriteByteBuffer_woAdd=function(e){if(this.woffset+e>this._buffer.byteLength){const t=getNextSize(this._buffer.byteLength,this.woffset+e),n=new Uint8Array(t);n.set(this._buffer);const r=this._buffer.byteOffset;this._buffer=n,this.view=new DataView(this._buffer.buffer,r)}return this.woffset+=e,this.woffset-e},_ReadWriteByteBuffer_roAdd=function(e){if(this.roffset+e>this.woffset)throw new Error("Outside of the bounds of writen data.");return this.roffset+=e,this.roffset-e},exports.CrdtMessageType=void 0,CrdtMessageType=exports.CrdtMessageType||(exports.CrdtMessageType={}),CrdtMessageType[CrdtMessageType.RESERVED=0]="RESERVED",CrdtMessageType[CrdtMessageType.PUT_COMPONENT=1]="PUT_COMPONENT",CrdtMessageType[CrdtMessageType.DELETE_COMPONENT=2]="DELETE_COMPONENT",CrdtMessageType[CrdtMessageType.DELETE_ENTITY=3]="DELETE_ENTITY",CrdtMessageType[CrdtMessageType.MAX_MESSAGE_TYPE=4]="MAX_MESSAGE_TYPE";const CRDT_MESSAGE_HEADER_LENGTH=8;var DeleteComponent,PutComponentOperation,DeleteEntity;exports.DeleteComponent=void 0,DeleteComponent=exports.DeleteComponent||(exports.DeleteComponent={}),DeleteComponent.MESSAGE_HEADER_LENGTH=20,DeleteComponent.write=function(e,t,n,r){const o=CRDT_MESSAGE_HEADER_LENGTH+DeleteComponent.MESSAGE_HEADER_LENGTH,i=r.incrementWriteOffset(o);r.setUint32(i,o),r.setUint32(i+4,exports.CrdtMessageType.DELETE_COMPONENT),r.setUint32(i+8,e),r.setUint32(i+12,t),r.setUint64(i+16,BigInt(n)),r.setUint32(i+24,0)},DeleteComponent.read=function(e){const t=CrdtMessageProtocol.readHeader(e);if(!t)return null;if(t.type!==exports.CrdtMessageType.DELETE_COMPONENT)throw new Error("DeleteComponentOperation tried to read another message type.");const n={...t,entityId:e.readUint32(),componentId:e.readUint32(),timestamp:Number(e.readUint64())};return e.incrementReadOffset(4),n},exports.PutComponentOperation=void 0,PutComponentOperation=exports.PutComponentOperation||(exports.PutComponentOperation={}),PutComponentOperation.MESSAGE_HEADER_LENGTH=20,PutComponentOperation.write=function(e,t,n,r){const o=r.incrementWriteOffset(CRDT_MESSAGE_HEADER_LENGTH+PutComponentOperation.MESSAGE_HEADER_LENGTH);n.writeToByteBuffer(e,r);const i=r.currentWriteOffset()-o;r.setUint32(o,i),r.setUint32(o+4,exports.CrdtMessageType.PUT_COMPONENT),r.setUint32(o+8,e),r.setUint32(o+12,n.componentId),r.setUint64(o+16,BigInt(t));const a=i-PutComponentOperation.MESSAGE_HEADER_LENGTH-CRDT_MESSAGE_HEADER_LENGTH;r.setUint32(o+24,a)},PutComponentOperation.read=function(e){const t=CrdtMessageProtocol.readHeader(e);if(!t)return null;if(t.type!==exports.CrdtMessageType.PUT_COMPONENT)throw new Error("PutComponentOperation tried to read another message type.");return{...t,entityId:e.readUint32(),componentId:e.readUint32(),timestamp:Number(e.readUint64()),data:e.readBuffer()}},exports.DeleteEntity=void 0,DeleteEntity=exports.DeleteEntity||(exports.DeleteEntity={}),DeleteEntity.MESSAGE_HEADER_LENGTH=4,DeleteEntity.write=function(e,t){t.writeUint32(CRDT_MESSAGE_HEADER_LENGTH+4),t.writeUint32(exports.CrdtMessageType.DELETE_ENTITY),t.writeUint32(e)},DeleteEntity.read=function(e){const t=CrdtMessageProtocol.readHeader(e);if(!t)return null;if(t.type!==exports.CrdtMessageType.DELETE_ENTITY)throw new Error("DeleteComponentOperation tried to read another message type.");return{...t,entityId:e.readUint32()}},exports.CrdtMessageProtocol=void 0,function(e){function t(e){const t=e.remainingBytes();if(t<CRDT_MESSAGE_HEADER_LENGTH)return!1;return!(t<e.getUint32(e.currentReadOffset()))}function n(e){if(!t(e))return null;const n=e.currentReadOffset();return{length:e.getUint32(n),type:e.getUint32(n+4)}}e.validate=t,e.readHeader=function(e){return t(e)?{length:e.readUint32(),type:e.readUint32()}:null},e.getHeader=n,e.consumeMessage=function(e){const t=n(e);return!!t&&(e.incrementReadOffset(t.length),!0)}}(exports.CrdtMessageProtocol||(exports.CrdtMessageProtocol={}));var CrdtMessageProtocol=exports.CrdtMessageProtocol;function crdtSceneSystem(e,t){const n=[],r=distExports.crdtProtocol({toEntityId:exports.EntityUtils.toEntityId,fromEntityId:exports.EntityUtils.fromEntityId}),o=[],i=[],a=[];function s(e){return e.splice(0,e.length)}return{getCrdt:function(){return r.getState()},sendMessages:async function(e,t){const o=s(i),u=s(a),l=new ReadWriteByteBuffer;for(const[t,i]of e)for(const e of i){const{timestamp:i}=r.getState().components.get(t.componentId).get(e),a=l.currentWriteOffset(),s={type:t.has(e)?exports.CrdtMessageType.PUT_COMPONENT:exports.CrdtMessageType.DELETE_COMPONENT,entityId:e,componentId:t.componentId,timestamp:i};n.some((e=>e.filter(s)))&&(s.type===exports.CrdtMessageType.PUT_COMPONENT?exports.PutComponentOperation.write(e,i,t,l):exports.DeleteComponent.write(e,t.componentId,i,l),o.push({...s,messageBuffer:l.buffer().subarray(a,l.currentWriteOffset())}))}for(const e of t){r.createDeleteEntityEvent(e);const t=l.currentWriteOffset();exports.DeleteEntity.write(e,l),o.push({type:exports.CrdtMessageType.DELETE_ENTITY,entityId:e,messageBuffer:l.buffer().subarray(t,l.currentWriteOffset())})}const c=new ReadWriteByteBuffer;for(const e in n){const t=Number(e),r=n[t];c.resetBuffer();for(const e of u)e.transportId!==t||o.find((t=>t.entityId===e.entityId&&t.componentId&&t.componentId===e.componentId))||c.writeBuffer(e.messageBuffer,!1);for(const e of o)e.transportId!==t&&r.filter(e)&&c.writeBuffer(e.messageBuffer,!1);const i=c.currentWriteOffset()?c.toBinary():new Uint8Array([]);await r.send(i)}},receiveMessages:async function(){const n=s(o),u=new ReadWriteByteBuffer,l=[];for(const o of n)if(o.type===exports.CrdtMessageType.DELETE_ENTITY)r.processMessage({type:typesExports.CRDTMessageType.CRDTMT_DeleteEntity,entityId:o.entityId}),l.push(o.entityId);else{const n={type:typesExports.CRDTMessageType.CRDTMT_PutComponentData,entityId:o.entityId,componentId:o.componentId,data:o.type===exports.CrdtMessageType.PUT_COMPONENT?o.data:null,timestamp:o.timestamp},s=e.entityContainer.getEntityState(o.entityId);if(s===exports.EntityState.Removed)continue;s===exports.EntityState.Unknown&&e.entityContainer.updateUsedEntity(o.entityId);const l=e.getComponentOrNull(o.componentId);l?.isDirty(o.entityId)&&r.createComponentDataEvent(l.componentId,o.entityId,l.toBinaryOrNull(o.entityId)?.toBinary()||null);const c=r.processMessage(n);if(!l)continue;switch(c){case typesExports.ProcessMessageResultType.StateUpdatedTimestamp:case typesExports.ProcessMessageResultType.StateUpdatedData:if(i.push(o),o.type===exports.CrdtMessageType.DELETE_COMPONENT)l.deleteFrom(o.entityId,!1);else{const e=new ReadWriteByteBuffer(o.data);l.upsertFromBinary(o.entityId,e,!1)}t&&t(o.entityId,o.type,l);break;case typesExports.ProcessMessageResultType.StateOutdatedData:case typesExports.ProcessMessageResultType.StateOutdatedTimestamp:const e=r.getState().components.get(o.componentId)?.get(o.entityId);if(e){const t=u.currentWriteOffset(),n=e.timestamp;l.has(o.entityId)?exports.PutComponentOperation.write(o.entityId,n,l,u):exports.DeleteComponent.write(o.entityId,l.componentId,n,u),a.push({...o,messageBuffer:u.buffer().subarray(t,u.currentWriteOffset())})}case typesExports.ProcessMessageResultType.NoChanges:case typesExports.ProcessMessageResultType.EntityDeleted:case typesExports.ProcessMessageResultType.EntityWasDeleted:}}for(const n of l){for(let e=a.length-1;e>=0;e--)a[e].entityId===n&&a.splice(e,1);for(const t of e.componentsIter())t.deleteFrom(n,!1);e.entityContainer.updateRemovedEntity(n),t&&t(n,exports.CrdtMessageType.DELETE_ENTITY)}},addTransport:function(e){const t=n.push(e)-1;var r;e.onmessage=(r=t,function(e){const t=new ReadWriteByteBuffer(e);let n;for(;n=CrdtMessageProtocol.getHeader(t);){const e=t.currentReadOffset();if(n.type===exports.CrdtMessageType.DELETE_COMPONENT){const i=exports.DeleteComponent.read(t);o.push({...n,...i,transportId:r,messageBuffer:t.buffer().subarray(e,t.currentReadOffset())})}else if(n.type===exports.CrdtMessageType.PUT_COMPONENT){const i=exports.PutComponentOperation.read(t);o.push({...n,...i,transportId:r,messageBuffer:t.buffer().subarray(e,t.currentReadOffset())})}else if(n.type===exports.CrdtMessageType.DELETE_ENTITY){const i=exports.DeleteEntity.read(t);o.push({...n,...i,transportId:r,messageBuffer:t.buffer().subarray(e,t.currentReadOffset())})}else t.incrementReadOffset(n.length)}})},updateState:function(){const n=new Map;for(const o of e.componentsIter()){let e=null;for(const i of o.dirtyIterator()){e||(e=[],n.set(o,e));const a=o.toBinaryOrNull(i)?.toBinary()??null;null===r.createComponentDataEvent(o.componentId,i,a)?o.deleteFrom(i,!1):(e.push(i),t&&t(i,null===a?exports.CrdtMessageType.DELETE_COMPONENT:exports.CrdtMessageType.PUT_COMPONENT,o))}}return n}}}function deepReadonly(e){return Object.freeze({...e})}function createComponentDefinitionFromSchema(e,t,n){const r=new Map,o=new Set;return{get componentId(){return t},get componentName(){return e},default:()=>n.create(),isDirty:e=>o.has(e),has:e=>r.has(e),deleteFrom(e,t=!0){const n=r.get(e);return r.delete(e),t?o.add(e):o.delete(e),n||null},getOrNull(e){const t=r.get(e);return t?deepReadonly(t):null},get(t){const n=r.get(t);if(!n)throw new Error(`[getFrom] Component ${e} for entity #${t} not found`);return deepReadonly(n)},create(t,i){if(r.get(t))throw new Error(`[create] Component ${e} for ${t} already exists`);const a=void 0===i?n.create():n.extend?n.extend(i):i;return r.set(t,a),o.add(t),a},createOrReplace(e,t){const i=void 0===t?n.create():n.extend?n.extend(t):t;return r.set(e,i),o.add(e),i},getMutableOrNull(e){const t=r.get(e);return t?(o.add(e),t):null},getMutable(t){const n=this.getMutableOrNull(t);if(null===n)throw new Error(`[mutable] Component ${e} for ${t} not found`);return n},*iterator(){for(const[e,t]of r)yield[e,t]},*dirtyIterator(){for(const e of o)yield e},toBinary(t){const o=r.get(t);if(!o)throw new Error(`[toBinary] Component ${e} for ${t} not found`);const i=new ReadWriteByteBuffer;return n.serialize(o,i),i},toBinaryOrNull(e){const t=r.get(e);if(!t)return null;const o=new ReadWriteByteBuffer;return n.serialize(t,o),o},writeToByteBuffer(t,o){const i=r.get(t);if(!i)throw new Error(`[writeToByteBuffer] Component ${e} for entity #${t} not found`);n.serialize(i,o)},updateFromBinary(t,n,o=!0){if(!r.get(t))throw new Error(`[updateFromBinary] Component ${e} for ${t} not found`);return this.upsertFromBinary(t,n,o)},upsertFromBinary(e,t,i=!0){const a=n.deserialize(t);return r.set(e,a),i?o.add(e):o.delete(e),a},deserialize:e=>n.deserialize(e),clearDirty(){o.clear()}}}const SYSTEMS_REGULAR_PRIORITY=1e5;function SystemContainer(){const e=[];function t(){e.sort(((e,t)=>t.priority-e.priority))}return{add:function(n,r,o){const i=o??n.name;if(e.find((e=>e.fn===n)))throw new Error(`System ${JSON.stringify(i)} already added to the engine`);e.push({fn:n,priority:r,name:i}),t()},remove:function(n){let r=-1;return r="string"==typeof n?e.findIndex((e=>e.name===n)):e.findIndex((e=>e.fn===n)),-1!==r&&(e.splice(r,1),t(),!0)},getSystems:()=>e}}const InputCommands=[0,1,2,4,5,6,7,8,9,10,11,12,13],InternalInputStateSchema={timestampLastUpdate:exports.Schemas.Number,currentTimestamp:exports.Schemas.Number,buttonState:exports.Schemas.Array(exports.Schemas.Map({value:exports.Schemas.Boolean,ts:exports.Schemas.Number}))},TimestampUpdateSystemPriority=1<<20,ButtonStateUpdateSystemPriority=0;function createInputSystem(e){const t=PointerEventsResult$1(e),n=e.defineComponent("@dcl/sdk/InternalInputStateSchema",InternalInputStateSchema);function r(e,t){if(3!==e)return o(e,t);for(const e of InputCommands){const n=o(e,t);if(n)return n}return null}function o(r,o){const i=t.getOrNull(e.RootEntity);if(!i)return null;const a=i.commands,s=findLastAction(a,1,r,o);if(!s)return null;const u=findLastAction(a,0,r,o);if(!u)return null;const l=n.get(e.RootEntity);return s.timestamp<u.timestamp&&u.timestamp>l.timestampLastUpdate?(n.getMutable(e.RootEntity).currentTimestamp=Math.max(u.timestamp,l.currentTimestamp),{up:u,down:s}):null}function i(e,t,n){if(3!==e)return a(e,t,n);for(const e of InputCommands){const r=a(e,t,n);if(r)return r}return null}function a(r,o,i){const a=t.getOrNull(e.RootEntity);if(!a)return null;const s=findLastAction(a.commands,o,r,i);if(!s)return null;const u=n.get(e.RootEntity);return s.timestamp>u.timestampLastUpdate?(n.getMutable(e.RootEntity).currentTimestamp=Math.max(s.timestamp,u.currentTimestamp),s):null}return n.create(e.RootEntity,{buttonState:Array.from({length:InputCommands.length},(()=>({ts:0,value:!1})))}),e.addSystem((function(){const r=t.getOrNull(e.RootEntity);if(!r)return;const o=n.getMutable(e.RootEntity);for(const e of r.commands)e.timestamp>o.buttonState[e.button].ts&&(1===e.state?o.buttonState[e.button].value=!0:0===e.state&&(o.buttonState[e.button].value=!1))}),ButtonStateUpdateSystemPriority,"@dcl/ecs#buttonStateUpdateSystem"),e.addSystem((function(){const t=n.get(e.RootEntity);t.currentTimestamp>t.timestampLastUpdate&&(n.getMutable(e.RootEntity).timestampLastUpdate=t.currentTimestamp)}),TimestampUpdateSystemPriority,"@dcl/ecs#timestampUpdateSystem"),{isPressed:function(t){return n.get(e.RootEntity).buttonState[t].value},getClick:r,getInputCommand:i,isClicked:function(e,t){return null!==r(e,t)},isTriggered:function(e,t,n){return null!==i(e,t,n)}}}function findLastAction(e,t,n,r){let o;for(const i of e)i.button===n&&i.state===t&&(!r||i.hit&&r===i.hit.entityId)&&(!o||i.timestamp>=o.timestamp)&&(o=i);return o}function preEngine(){const e=EntityContainer(),t=new Map,n=SystemContainer();let r=!1;function o(n){for(const[,e]of t)e.has(n)&&e.deleteFrom(n);return e.removeEntity(n)}function i(e,n){if(r)throw new Error("Engine is already sealed. No components can be added at this stage");const o=componentNumberFromName(e),i=t.get(o);if(i)return i;const a=createComponentDefinitionFromSchema(e,o,n);return t.set(o,a),a}function*a(...e){for(const[t,...n]of function*(...e){const[t,...n]=e;for(const[r]of t.iterator()){let t=!0;for(const e of n)if(!e.has(r)){t=!1;break}t&&(yield[r,...e])}}(...e))yield[t,...n.map((e=>e.get(t)))]}const s=Transform$1({defineComponentFromSchema:i});function*u(e,t){if(!t.find((t=>e===t))){t.push(e);for(const[n,r]of a(s))r.parent===e&&(yield*u(n,t));yield e}}return{addEntity:function(){return e.generateEntity()},removeEntity:o,addSystem:function(e,t=SYSTEMS_REGULAR_PRIORITY,r){n.add(e,t,r)},getSystems:function(){return n.getSystems()},removeSystem:function(e){return n.remove(e)},defineComponent:function(e,n,o){if(r)throw new Error("Engine is already sealed. No components can be added at this stage");const i=componentNumberFromName(e),a=t.get(i);if(a)return a;const s=createComponentDefinitionFromSchema(e,i,exports.Schemas.Map(n,o)),u={...s,create:(e,t)=>s.create(e,t),createOrReplace:(e,t)=>s.createOrReplace(e,t)};return t.set(i,u),u},defineComponentFromSchema:i,getEntitiesWith:a,getComponent:function(e){const n=t.get(e);if(!n)throw new Error(`Component ${e} not found. You need to declare the components at the beginnig of the engine declaration`);return n},getComponentOrNull:function(e){return t.get(e)??null},removeComponentDefinition:function(e){t.delete(e)},removeEntityWithChildren:function(e){for(const t of u(e,[]))o(t)},registerComponentDefinition:function(e,n){if(r)throw new Error("Engine is already sealed. No components can be added at this stage");const o=componentNumberFromName(e);if(t.get(o))throw new Error(`Component number ${o} was already registered.`);if(n.componentName!==e)throw new Error(`Component name doesn't match componentDefinition.componentName ${e} != ${n.componentName}`);if(n.componentId!==o)throw new Error(`Component number doesn't match componentDefinition.componentId ${o} != ${n.componentId}`);return t.set(o,n),n},entityContainer:e,componentsIter:function(){return t.values()},seal:function(){r||(r=!0)}}}function Engine(e){const t=preEngine(),n=crdtSceneSystem(t,e?.onChangeFunction||null);return{addEntity:t.addEntity,removeEntity:t.removeEntity,removeEntityWithChildren:t.removeEntityWithChildren,addSystem:t.addSystem,removeSystem:t.removeSystem,defineComponent:t.defineComponent,defineComponentFromSchema:t.defineComponentFromSchema,registerComponentDefinition:t.registerComponentDefinition,getEntitiesWith:t.getEntitiesWith,getComponent:t.getComponent,getComponentOrNull:t.getComponentOrNull,removeComponentDefinition:t.removeComponentDefinition,componentsIter:t.componentsIter,seal:t.seal,update:async function(e){await n.receiveMessages();for(const n of t.getSystems()){checkNotThenable(n.fn(e),`A system (${n.name||"anonymous"}) returned a thenable. Systems cannot be async functions. Documentation: https://dcl.gg/sdk/sync-systems`)}const r=n.updateState(),o=t.entityContainer.releaseRemovedEntities();await n.sendMessages(r,o);for(const e of t.componentsIter())e.clearDirty()},RootEntity:0,PlayerEntity:1,CameraEntity:2,getEntityState:t.entityContainer.getEntityState,addTransport:n.addTransport,getCrdtState:n.getCrdt,entityContainer:t.entityContainer}}function getAndClean(e){const t=Array.from(e);return e.length=0,t}function createTaskSystem(e){const t=[];async function n(e){try{return await e()}catch(e){console.error(e)}}return e.addSystem((function(){for(const e of getAndClean(t))n(e).catch(console.error)})),{executeTask(e){t.push(e)}}}function createPointerEventSystem(e,t){const n=PointerEvents$1(e);let r;!function(e){e[e.Click=0]="Click",e[e.Down=1]="Down",e[e.Up=2]="Up"}(r||(r={}));const o=(e={})=>({button:3,...e}),i=new Map;function a(e){return i.get(e)||i.set(e,new Map).get(e)}function s(e,t,r){if(r.hoverText||r.showFeedback){(n.getMutableOrNull(e)||n.create(e)).pointerEvents.push({eventType:t,eventInfo:{button:r.button,showFeedback:r.showFeedback,hoverText:r.hoverText,maxDistance:r.maxDistance}})}}function u(e){return e===r.Up?0:1}function l(e,t){const r=a(e),o=r.get(t);o?.opts.hoverText&&function(e,t,r){const o=n.getMutableOrNull(e);o&&(o.pointerEvents=o.pointerEvents.filter((e=>!(e.eventInfo?.button===r&&e.eventType===t))))}(e,u(t),o.opts.button),r.delete(t)}return e.addSystem((function(){for(const[n,o]of i)if(e.getEntityState(n)!==exports.EntityState.Removed)for(const[e,{cb:i,opts:a}]of o){if(e===r.Click){const e=t.getClick(a.button,n);e&&checkNotThenable(i(e.up),"Click event returned a thenable. Only synchronous functions are allowed")}if(e===r.Down||e===r.Up){const r=t.getInputCommand(a.button,u(e),n);r&&checkNotThenable(i(r),"Event handler returned a thenable. Only synchronous functions are allowed")}}else i.delete(n)})),{removeOnClick(e){l(e,r.Click)},removeOnPointerDown(e){l(e,r.Down)},removeOnPointerUp(e){l(e,r.Up)},onClick(e,t,n){const i=o(n);l(e,r.Click),a(e).set(r.Click,{cb:t,opts:i}),s(e,1,i)},onPointerDown(e,t,n){const i=o(n);l(e,r.Down),a(e).set(r.Down,{cb:t,opts:i}),s(e,1,i)},onPointerUp(e,t,n){const i=o(n);l(e,r.Up),a(e).set(r.Up,{cb:t,opts:i}),s(e,0,i)}}}const engine=Engine(),inputSystem=createInputSystem(engine),pointerEventsSystem=createPointerEventSystem(engine,inputSystem),executeTask=createTaskSystem(engine).executeTask;function cyclicParentingChecker(e){const t=Transform$1(e);return()=>{for(const e of t.dirtyIterator()){let n=t.getOrNull(e);for(;n&&n.parent;){if(n.parent===e){console.error(`There is a cyclic parent with entity ${e}`);break}n=t.getOrNull(n.parent)}}}}const AudioSource=AudioSource$1(engine),AudioStream=AudioStream$1(engine),AvatarAttach=AvatarAttach$1(engine),AvatarModifierArea=AvatarModifierArea$1(engine),AvatarShape=AvatarShape$1(engine),Billboard=Billboard$1(engine),CameraMode=CameraMode$1(engine),CameraModeArea=CameraModeArea$1(engine),GltfContainer=GltfContainer$1(engine),NftShape=NftShape$1(engine),PointerEvents=PointerEvents$1(engine),PointerEventsResult=PointerEventsResult$1(engine),PointerLock=PointerLock$1(engine),Raycast=Raycast$1(engine),RaycastResult=RaycastResult$1(engine),TextShape=TextShape$1(engine),UiBackground=UiBackground$1(engine),UiDropdown=UiDropdown$1(engine),UiDropdownResult=UiDropdownResult$1(engine),UiInput=UiInput$1(engine),UiInputResult=UiInputResult$1(engine),UiText=UiText$1(engine),UiTransform=UiTransform$1(engine),VisibilityComponent=VisibilityComponent$1(engine);var CameraType,InputAction,TextAlignMode,Font;exports.CameraType=void 0,CameraType=exports.CameraType||(exports.CameraType={}),CameraType[CameraType.CT_FIRST_PERSON=0]="CT_FIRST_PERSON",CameraType[CameraType.CT_THIRD_PERSON=1]="CT_THIRD_PERSON",exports.InputAction=void 0,InputAction=exports.InputAction||(exports.InputAction={}),InputAction[InputAction.IA_POINTER=0]="IA_POINTER",InputAction[InputAction.IA_PRIMARY=1]="IA_PRIMARY",InputAction[InputAction.IA_SECONDARY=2]="IA_SECONDARY",InputAction[InputAction.IA_ANY=3]="IA_ANY",InputAction[InputAction.IA_FORWARD=4]="IA_FORWARD",InputAction[InputAction.IA_BACKWARD=5]="IA_BACKWARD",InputAction[InputAction.IA_RIGHT=6]="IA_RIGHT",InputAction[InputAction.IA_LEFT=7]="IA_LEFT",InputAction[InputAction.IA_JUMP=8]="IA_JUMP",InputAction[InputAction.IA_WALK=9]="IA_WALK",InputAction[InputAction.IA_ACTION_3=10]="IA_ACTION_3",InputAction[InputAction.IA_ACTION_4=11]="IA_ACTION_4",InputAction[InputAction.IA_ACTION_5=12]="IA_ACTION_5",InputAction[InputAction.IA_ACTION_6=13]="IA_ACTION_6",exports.TextAlignMode=void 0,TextAlignMode=exports.TextAlignMode||(exports.TextAlignMode={}),TextAlignMode[TextAlignMode.TAM_TOP_LEFT=0]="TAM_TOP_LEFT",TextAlignMode[TextAlignMode.TAM_TOP_CENTER=1]="TAM_TOP_CENTER",TextAlignMode[TextAlignMode.TAM_TOP_RIGHT=2]="TAM_TOP_RIGHT",TextAlignMode[TextAlignMode.TAM_MIDDLE_LEFT=3]="TAM_MIDDLE_LEFT",TextAlignMode[TextAlignMode.TAM_MIDDLE_CENTER=4]="TAM_MIDDLE_CENTER",TextAlignMode[TextAlignMode.TAM_MIDDLE_RIGHT=5]="TAM_MIDDLE_RIGHT",TextAlignMode[TextAlignMode.TAM_BOTTOM_LEFT=6]="TAM_BOTTOM_LEFT",TextAlignMode[TextAlignMode.TAM_BOTTOM_CENTER=7]="TAM_BOTTOM_CENTER",TextAlignMode[TextAlignMode.TAM_BOTTOM_RIGHT=8]="TAM_BOTTOM_RIGHT",exports.Font=void 0,Font=exports.Font||(exports.Font={}),Font[Font.F_SANS_SERIF=0]="F_SANS_SERIF",Font[Font.F_SERIF=1]="F_SERIF",Font[Font.F_MONOSPACE=2]="F_MONOSPACE";const Transform=Transform$1(engine),Animator=Animator$1(engine),Material=Material$1(engine),MeshRenderer=MeshRenderer$1(engine),MeshCollider=MeshCollider$1(engine);var reactExports$1={},react={get exports(){return reactExports$1},set exports(e){reactExports$1=e}},react_production_min={},hasRequiredReact_production_min;function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.iterator;var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||d}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||d}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var v=g.prototype=new y;v.constructor=g,p(v,m.prototype),v.isPureReactComponent=!0;var b=Array.isArray,_=Object.prototype.hasOwnProperty,x={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function w(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)_.call(n,o)&&!S.hasOwnProperty(o)&&(i[o]=n[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(o in u=t.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:x.current}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var E=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var u=!1;if(null===n)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(n.$$typeof){case e:case t:u=!0}}if(u)return a=a(u=n),n=""===i?"."+R(u,0):i,b(a)?(o="",null!=n&&(o=n.replace(E,"$&/")+"/"),P(a,r,o,"",(function(e){return e}))):null!=a&&(T(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+n)),r.push(a)),1;if(u=0,i=""===i?".":i+":",b(n))for(var l=0;l<n.length;l++){var c=i+R(s=n[l],l);u+=P(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),l=0;!(s=n.next()).done;)u+=P(s=s.value,r,o,c=i+R(s,l++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return u}function k(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function C(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},B={transition:null},A={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:B,ReactCurrentOwner:x};return react_production_min.Children={map:k,forEach:function(e,t,n){k(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},react_production_min.Component=m,react_production_min.Fragment=n,react_production_min.Profiler=o,react_production_min.PureComponent=g,react_production_min.StrictMode=r,react_production_min.Suspense=u,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,react_production_min.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=x.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var u=t.type.defaultProps;for(l in n)_.call(n,l)&&!S.hasOwnProperty(l)&&(o[l]=void 0===n[l]&&void 0!==u?u[l]:n[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},react_production_min.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},react_production_min.createElement=w,react_production_min.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(e){return{$$typeof:s,render:e}},react_production_min.isValidElement=T,react_production_min.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:C}},react_production_min.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},react_production_min.startTransition=function(e){var t=B.transition;B.transition={};try{e()}finally{B.transition=t}},react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},react_production_min.useCallback=function(e,t){return M.current.useCallback(e,t)},react_production_min.useContext=function(e){return M.current.useContext(e)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(e){return M.current.useDeferredValue(e)},react_production_min.useEffect=function(e,t){return M.current.useEffect(e,t)},react_production_min.useId=function(){return M.current.useId()},react_production_min.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},react_production_min.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},react_production_min.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},react_production_min.useMemo=function(e,t){return M.current.useMemo(e,t)},react_production_min.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},react_production_min.useRef=function(e){return M.current.useRef(e)},react_production_min.useState=function(e){return M.current.useState(e)},react_production_min.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},react_production_min.useTransition=function(){return M.current.useTransition()},react_production_min.version="18.2.0",react_production_min}var react_developmentExports={},react_development={get exports(){return react_developmentExports},set exports(e){react_developmentExports=e}},hasRequiredReact_development,hasRequiredReact;function requireReact_development(){return hasRequiredReact_development||(hasRequiredReact_development=1,function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator;function y(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},v={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},_={current:null},x={},S=null;function w(e){S=e}x.setExtraStackFrame=function(e){S=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";S&&(e+=S);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var T={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:v,ReactCurrentOwner:_};function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];P("warn",e,n)}function R(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];P("error",e,n)}function P(e,t,n){var r=T.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}T.ReactDebugCurrentFrame=x,T.ReactCurrentActQueue=b;var k={};function C(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;k[o]||(R("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),k[o]=!0)}var M={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){C(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){C(e,"replaceState")},enqueueSetState:function(e,t,n,r){C(e,"setState")}},B=Object.assign,A={};function I(e,t,n){this.props=e,this.context=t,this.refs=A,this.updater=n||M}Object.freeze(A),I.prototype.isReactComponent={},I.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},I.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var N={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},U=function(e,t){Object.defineProperty(I.prototype,e,{get:function(){E("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var z in N)N.hasOwnProperty(z)&&U(z,N[z]);function D(){}function O(e,t,n){this.props=e,this.context=t,this.refs=A,this.updater=n||M}D.prototype=I.prototype;var L=O.prototype=new D;L.constructor=O,B(L,I.prototype),L.isPureReactComponent=!0;var F=Array.isArray;function W(e){return F(e)}function G(e){return""+e}function $(e){if(function(e){try{return G(e),!1}catch(e){return!0}}(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),G(e)}function H(e){return e.displayName||"Context"}function q(e){if(null==e)return null;if("number"==typeof e.tag&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case u:return H(e)+".Consumer";case s:return H(e._context)+".Provider";case l:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case d:var t=e.displayName||null;return null!==t?t:q(e.type)||"Memo";case p:var n=e,h=n._payload,m=n._init;try{return q(m(h))}catch(e){return null}}return null}var j,Y,V,Q=Object.prototype.hasOwnProperty,J={key:!0,ref:!0,__self:!0,__source:!0};function X(e){if(Q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Z(e){if(Q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function K(e,t){var n=function(){j||(j=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function ee(e,t){var n=function(){Y||(Y=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function te(e){if("string"==typeof e.ref&&_.current&&e.__self&&_.current.stateNode!==e.__self){var t=q(_.current.type);V[t]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),V[t]=!0)}}V={};var ne=function(e,t,r,o,i,a,s){var u={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function re(e,t,n){var r,o={},i=null,a=null,s=null,u=null;if(null!=t)for(r in X(t)&&(a=t.ref,te(t)),Z(t)&&($(t.key),i=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)Q.call(t,r)&&!J.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(l>1){for(var c=Array(l),f=0;f<l;f++)c[f]=arguments[f+2];Object.freeze&&Object.freeze(c),o.children=c}if(e&&e.defaultProps){var d=e.defaultProps;for(r in d)void 0===o[r]&&(o[r]=d[r])}if(i||a){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&K(o,p),a&&ee(o,p)}return ne(e,i,a,s,u,_.current,o)}function oe(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,i=B({},e.props),a=e.key,s=e.ref,u=e._self,l=e._source,c=e._owner;if(null!=t)for(r in X(t)&&(s=t.ref,c=_.current),Z(t)&&($(t.key),a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)Q.call(t,r)&&!J.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==o?i[r]=o[r]:i[r]=t[r]);var f=arguments.length-2;if(1===f)i.children=n;else if(f>1){for(var d=Array(f),p=0;p<f;p++)d[p]=arguments[p+2];i.children=d}return ne(e.type,a,s,u,l,c,i)}function ie(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var ae=!1,se=/\/+/g;function ue(e){return e.replace(se,"$&/")}function le(e,t){return"object"==typeof e&&null!==e&&null!=e.key?($(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function ce(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u,l,c,f=!1;if(null===e)f=!0;else switch(s){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case n:case r:f=!0}}if(f){var d=e,p=a(d),h=""===i?"."+le(d,0):i;if(W(p)){var m="";null!=h&&(m=ue(h)+"/"),ce(p,t,m,"",(function(e){return e}))}else null!=p&&(ie(p)&&(!p.key||d&&d.key===p.key||$(p.key),u=p,l=o+(!p.key||d&&d.key===p.key?"":ue(""+p.key)+"/")+h,p=ne(u.type,l,u.ref,u._self,u._source,u._owner,u.props)),t.push(p));return 1}var g=0,v=""===i?".":i+":";if(W(e))for(var b=0;b<e.length;b++)g+=ce(c=e[b],t,o,v+le(c,b),a);else{var _=y(e);if("function"==typeof _){var x=e;_===x.entries&&(ae||E("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ae=!0);for(var S,w=_.call(x),T=0;!(S=w.next()).done;)g+=ce(c=S.value,t,o,v+le(c,T++),a)}else if("object"===s){var R=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===R?"object with keys {"+Object.keys(e).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}}return g}function fe(e,t,n){if(null==e)return e;var r=[],o=0;return ce(e,r,"","",(function(e){return t.call(n,e,o++)})),r}var de;function pe(e){if(-1===e._status){var t=(0,e._result)();if(t.then((function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}}),(function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}})),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&R("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||R("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function he(e){return"string"==typeof e||"function"==typeof e||(e===o||e===a||e===i||e===c||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===s||e.$$typeof===u||e.$$typeof===l||e.$$typeof===de||void 0!==e.getModuleId))}function me(){var e=g.current;return null===e&&R("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}de=Symbol.for("react.module.reference");var ye,ge,ve,be,_e,xe,Se,we=0;function Te(){}Te.__reactDisabledLog=!0;var Ee,Re=T.ReactCurrentDispatcher;function Pe(e,t,n){if(void 0===Ee)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Ee=r&&r[1]||""}return"\n"+Ee+e}var ke,Ce=!1,Me="function"==typeof WeakMap?WeakMap:Map;function Be(e,t){if(!e||Ce)return"";var n,r=ke.get(e);if(void 0!==r)return r;Ce=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Re.current,Re.current=null,function(){if(0===we){ye=console.log,ge=console.info,ve=console.warn,be=console.error,_e=console.group,xe=console.groupCollapsed,Se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}we++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),u=n.stack.split("\n"),l=s.length-1,c=u.length-1;l>=1&&c>=0&&s[l]!==u[c];)c--;for(;l>=1&&c>=0;l--,c--)if(s[l]!==u[c]){if(1!==l||1!==c)do{if(l--,--c<0||s[l]!==u[c]){var f="\n"+s[l].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&ke.set(e,f),f}}while(l>=1&&c>=0);break}}}finally{Ce=!1,Re.current=o,function(){if(0==--we){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:B({},e,{value:ye}),info:B({},e,{value:ge}),warn:B({},e,{value:ve}),error:B({},e,{value:be}),group:B({},e,{value:_e}),groupCollapsed:B({},e,{value:xe}),groupEnd:B({},e,{value:Se})})}we<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var d=e?e.displayName||e.name:"",p=d?Pe(d):"";return"function"==typeof e&&ke.set(e,p),p}function Ae(e,t,n){if(null==e)return"";if("function"==typeof e)return Be(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Pe(e);switch(e){case c:return Pe("Suspense");case f:return Pe("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case l:return Be(e.render,!1);case d:return Ae(e.type,t,n);case p:var r=e,o=r._payload,i=r._init;try{return Ae(i(o),t,n)}catch(e){}}return""}ke=new Me;var Ie,Ne={},Ue=T.ReactDebugCurrentFrame;function ze(e){if(e){var t=e._owner,n=Ae(e.type,e._source,t?t.type:null);Ue.setExtraStackFrame(n)}else Ue.setExtraStackFrame(null)}function De(e){if(e){var t=e._owner;w(Ae(e.type,e._source,t?t.type:null))}else w(null)}function Oe(){if(_.current){var e=q(_.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Le(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Ie=!1;var Fe={};function We(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Oe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Fe[n]){Fe[n]=!0;var r="";e&&e._owner&&e._owner!==_.current&&(r=" It was passed a child from "+q(e._owner.type)+"."),De(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),De(null)}}}function Ge(e,t){if("object"==typeof e)if(W(e))for(var n=0;n<e.length;n++){var r=e[n];ie(r)&&We(r,t)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var o=y(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ie(i.value)&&We(i.value,t)}}function $e(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==d)return;t=n.propTypes}if(t){var r=q(n);!function(e,t,n,r,o){var i=Function.call.bind(Q);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var u=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(ze(o),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),ze(null)),s instanceof Error&&!(s.message in Ne)&&(Ne[s.message]=!0,ze(o),R("Failed %s type: %s",n,s.message),ze(null))}}(t,e.props,"prop",r,e)}else if(void 0!==n.PropTypes&&!Ie){Ie=!0,R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function He(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){De(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),De(null);break}}null!==e.ref&&(De(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),De(null))}function qe(e,t,r){var i=he(e);if(!i){var a="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,u=Le(t);a+=u||Oe(),null===e?s="null":W(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+(q(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,R("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=re.apply(this,arguments);if(null==l)return l;if(i)for(var c=2;c<arguments.length;c++)Ge(arguments[c],e);return e===o?He(l):$e(l),l}var je=!1;var Ye=!1,Ve=null;var Qe=0,Je=!1;function Xe(e){e!==Qe-1&&R("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Qe=e}function Ze(t,n,r){var o=b.current;if(null!==o)try{et(o),function(t){if(null===Ve)try{var n=("require"+Math.random()).slice(0,7),r=e&&e[n];Ve=r.call(e,"timers").setImmediate}catch(e){Ve=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&R("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ve(t)}((function(){0===o.length?(b.current=null,n(t)):Ze(t,n,r)}))}catch(e){r(e)}else n(t)}var Ke=!1;function et(e){if(!Ke){Ke=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{Ke=!1}}}var tt=qe,nt=function(e,t,n){for(var r=oe.apply(this,arguments),o=2;o<arguments.length;o++)Ge(arguments[o],r.type);return $e(r),r},rt=function(e){var t=qe.bind(null,e);return t.type=e,je||(je=!0,E("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return E("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},ot={map:fe,forEach:function(e,t,n){fe(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return fe(e,(function(){t++})),t},toArray:function(e){return fe(e,(function(e){return e}))||[]},only:function(e){if(!ie(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=ot,t.Component=I,t.Fragment=o,t.Profiler=a,t.PureComponent=O,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,t.cloneElement=nt,t.createContext=function(e){var t={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,o=!1,i={$$typeof:u,_context:t};return Object.defineProperties(i,{Provider:{get:function(){return r||(r=!0,R("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,R("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(E("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=i,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=rt,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===d?R("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?R("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&R("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||R("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:l,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=ie,t.lazy=function(e){var t,n,r={$$typeof:p,_payload:{_status:-1,_result:e},_init:pe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){R("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){R("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){he(e)||R("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:d,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=v.transition;v.transition={};var r=v.transition;v.transition._updatedFibers=new Set;try{e()}finally{if(v.transition=n,null===n&&r._updatedFibers)r._updatedFibers.size>10&&E("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear()}},t.unstable_act=function(e){var t=Qe;Qe++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var o=b.current;null!==o&&(b.didScheduleLegacyUpdate=!1,et(o))}}catch(e){throw Xe(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var i=n,a=!1,s={then:function(e,n){a=!0,i.then((function(r){Xe(t),0===Qe?Ze(r,e,n):e(r)}),(function(e){Xe(t),n(e)}))}};return Je||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){a||(Je=!0,R("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),s}var u=n;if(Xe(t),0===Qe){var l=b.current;return null!==l&&(et(l),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Ze(u,e,t)):e(u)}}}return{then:function(e,t){e(u)}}},t.useCallback=function(e,t){return me().useCallback(e,t)},t.useContext=function(e){var t=me();if(void 0!==e._context){var n=e._context;n.Consumer===e?R("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&R("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return me().useDebugValue(e,t)},t.useDeferredValue=function(e){return me().useDeferredValue(e)},t.useEffect=function(e,t){return me().useEffect(e,t)},t.useId=function(){return me().useId()},t.useImperativeHandle=function(e,t,n){return me().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return me().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return me().useLayoutEffect(e,t)},t.useMemo=function(e,t){return me().useMemo(e,t)},t.useReducer=function(e,t,n){return me().useReducer(e,t,n)},t.useRef=function(e){return me().useRef(e)},t.useState=function(e){return me().useState(e)},t.useSyncExternalStore=function(e,t,n){return me().useSyncExternalStore(e,t,n)},t.useTransition=function(){return me().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(react_development,react_developmentExports)),react_developmentExports}function requireReact(){return hasRequiredReact||(hasRequiredReact=1,e=react,"production"===process.env.NODE_ENV?e.exports=requireReact_production_min():e.exports=requireReact_development()),reactExports$1;var e}var reactExports=requireReact(),React=getDefaultExportFromCjs(reactExports),ReactEcs$1;(ReactEcs$1||(ReactEcs$1={})).createElement=React.createElement;var reactReconcilerExports$1={},reactReconciler={get exports(){return reactReconcilerExports$1},set exports(e){reactReconcilerExports$1=e}},schedulerExports={},scheduler={get exports(){return schedulerExports},set exports(e){schedulerExports=e}},scheduler_production_min={},hasRequiredScheduler_production_min;function requireScheduler_production_min(){return hasRequiredScheduler_production_min||(hasRequiredScheduler_production_min=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(0>o(u,n))l<i&&0>o(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(l<i&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],c=1,f=null,d=3,p=!1,h=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(l);null!==o;){if(null===o.callback)r(l);else{if(!(o.startTime<=e))break;r(l),o.sortIndex=o.expirationTime,t(u,o)}o=n(l)}}function _(e){if(m=!1,b(e),!h)if(null!==n(u))h=!0,A(x);else{var t=n(l);null!==t&&I(_,t.startTime-e)}}function x(t,o){h=!1,m&&(m=!1,g(E),E=-1),p=!0;var i=d;try{for(b(o),f=n(u);null!==f&&(!(f.expirationTime>o)||t&&!k());){var a=f.callback;if("function"==typeof a){f.callback=null,d=f.priorityLevel;var s=a(f.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?f.callback=s:f===n(u)&&r(u),b(o)}else r(u);f=n(u)}if(null!==f)var c=!0;else{var y=n(l);null!==y&&I(_,y.startTime-o),c=!1}return c}finally{f=null,d=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,w=!1,T=null,E=-1,R=5,P=-1;function k(){return!(e.unstable_now()-P<R)}function C(){if(null!==T){var t=e.unstable_now();P=t;var n=!0;try{n=T(!0,t)}finally{n?S():(w=!1,T=null)}}else w=!1}if("function"==typeof v)S=function(){v(C)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,B=M.port2;M.port1.onmessage=C,S=function(){B.postMessage(null)}}else S=function(){y(C,0)};function A(e){T=e,w||(w=!0,S())}function I(t,n){E=y((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,A(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(l,r),null===n(u)&&r===n(l)&&(m?(g(E),E=-1):m=!0,I(_,i-a))):(r.sortIndex=s,t(u,r),h||p||(h=!0,A(x))),r},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}}(scheduler_production_min)),scheduler_production_min}var scheduler_development={},hasRequiredScheduler_development,hasRequiredScheduler,reactReconciler_production_min,hasRequiredReactReconciler_production_min;function requireScheduler_development(){return hasRequiredScheduler_development||(hasRequiredScheduler_development=1,function(e){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);function t(e,t){var n=e.length;e.push(t),function(e,t,n){var r=n;for(;r>0;){var i=r-1>>>1,a=e[i];if(!(o(a,t)>0))return;e[i]=t,e[r]=a,r=i}}(e,t,n)}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();return n!==t&&(e[0]=n,function(e,t,n){var r=n,i=e.length,a=i>>>1;for(;r<a;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(o(u,t)<0)l<i&&o(c,u)<0?(e[r]=c,e[l]=t,r=l):(e[r]=u,e[s]=t,r=s);else{if(!(l<i&&o(c,t)<0))return;e[r]=c,e[l]=t,r=l}}}(e,n,0)),t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],c=1,f=null,d=3,p=!1,h=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(l);null!==o;){if(null===o.callback)r(l);else{if(!(o.startTime<=e))return;r(l),o.sortIndex=o.expirationTime,t(u,o)}o=n(l)}}function _(e){if(m=!1,b(e),!h)if(null!==n(u))h=!0,A(x);else{var t=n(l);null!==t&&I(_,t.startTime-e)}}function x(t,o){h=!1,m&&(m=!1,N()),p=!0;var i=d;try{return function(t,o){var i=o;b(i),f=n(u);for(;null!==f&&(!(f.expirationTime>i)||t&&!P());){var a=f.callback;if("function"==typeof a){f.callback=null,d=f.priorityLevel;var s=a(f.expirationTime<=i);i=e.unstable_now(),"function"==typeof s?f.callback=s:f===n(u)&&r(u),b(i)}else r(u);f=n(u)}if(null!==f)return!0;var c=n(l);return null!==c&&I(_,c.startTime-i),!1}(t,o)}finally{f=null,d=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S=!1,w=null,T=-1,E=5,R=-1;function P(){return!(e.unstable_now()-R<E)}var k,C=function(){if(null!==w){var t=e.unstable_now();R=t;var n=!0;try{n=w(!0,t)}finally{n?k():(S=!1,w=null)}}else S=!1};if("function"==typeof v)k=function(){v(C)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,B=M.port2;M.port1.onmessage=C,k=function(){B.postMessage(null)}}else k=function(){y(C,0)};function A(e){w=e,S||(S=!0,k())}function I(t,n){T=y((function(){t(e.unstable_now())}),n)}function N(){g(T),T=-1}var U=function(){};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,A(x))},e.unstable_forceFrameRate=function(e){e<0||e>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=e>0?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(e){var t;switch(d){case 1:case 2:case 3:t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=U,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},e.unstable_scheduleCallback=function(r,o,i){var a,s,f=e.unstable_now();if("object"==typeof i&&null!==i){var d=i.delay;a="number"==typeof d&&d>0?f+d:f}else a=f;switch(r){case 1:s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}var y=a+s,g={id:c++,callback:o,priorityLevel:r,startTime:a,expirationTime:y,sortIndex:-1};return a>f?(g.sortIndex=a,t(l,g),null===n(u)&&g===n(l)&&(m?N():m=!0,I(_,a-f))):(g.sortIndex=y,t(u,g),h||p||(h=!0,A(x))),g},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(scheduler_development)),scheduler_development}function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,e=scheduler,"production"===process.env.NODE_ENV?e.exports=requireScheduler_production_min():e.exports=requireScheduler_development()),schedulerExports;var e}function requireReactReconciler_production_min(){return hasRequiredReactReconciler_production_min||(hasRequiredReactReconciler_production_min=1,reactReconciler_production_min=function(e){var t={},n=requireReact(),r=requireScheduler(),o=Object.assign;function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,s=Symbol.for("react.element"),u=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),_=Symbol.iterator;function x(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=_&&e[_]||e["@@iterator"])?e:null}function S(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case l:return"Fragment";case u:return"Portal";case f:return"Profiler";case c:return"StrictMode";case m:return"Suspense";case y:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case p:return(e.displayName||"Context")+".Consumer";case d:return(e._context.displayName||"Context")+".Provider";case h:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case g:return null!==(t=e.displayName||null)?t:S(e.type)||"Memo";case v:t=e._payload,e=e._init;try{return S(e(t))}catch(e){}}return null}function w(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return S(t);case 8:return t===c?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function T(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function E(e){if(T(e)!==e)throw Error(i(188))}function R(e){var t=e.alternate;if(!t){if(null===(t=T(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return E(o),e;if(a===r)return E(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,u=o.child;u;){if(u===n){s=!0,n=o,r=a;break}if(u===r){s=!0,r=o,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=o;break}if(u===r){s=!0,r=a,n=o;break}u=u.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}function P(e){return null!==(e=R(e))?k(e):null}function k(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=k(e);if(null!==t)return t;e=e.sibling}return null}function C(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){if(4!==e.tag){var t=C(e);if(null!==t)return t}e=e.sibling}return null}var M,B=Array.isArray,A=e.getPublicInstance,I=e.getRootHostContext,N=e.getChildHostContext,U=e.prepareForCommit,z=e.resetAfterCommit,D=e.createInstance,O=e.appendInitialChild,L=e.finalizeInitialChildren,F=e.prepareUpdate,W=e.shouldSetTextContent,G=e.createTextInstance,$=e.scheduleTimeout,H=e.cancelTimeout,q=e.noTimeout,j=e.isPrimaryRenderer,Y=e.supportsMutation,V=e.supportsPersistence,Q=e.supportsHydration,J=e.getInstanceFromNode,X=e.preparePortalMount,Z=e.getCurrentEventPriority,K=e.detachDeletedInstance,ee=e.supportsMicrotasks,te=e.scheduleMicrotask,ne=e.supportsTestSelectors,re=e.findFiberRoot,oe=e.getBoundingRect,ie=e.getTextContent,ae=e.isHiddenSubtree,se=e.matchAccessibilityRole,ue=e.setFocusIfFocusable,le=e.setupIntersectionObserver,ce=e.appendChild,fe=e.appendChildToContainer,de=e.commitTextUpdate,pe=e.commitMount,he=e.commitUpdate,me=e.insertBefore,ye=e.insertInContainerBefore,ge=e.removeChild,ve=e.removeChildFromContainer,be=e.resetTextContent,_e=e.hideInstance,xe=e.hideTextInstance,Se=e.unhideInstance,we=e.unhideTextInstance,Te=e.clearContainer,Ee=e.cloneInstance,Re=e.createContainerChildSet,Pe=e.appendChildToContainerChildSet,ke=e.finalizeContainerChildren,Ce=e.replaceContainerChildren,Me=e.cloneHiddenInstance,Be=e.cloneHiddenTextInstance,Ae=e.canHydrateInstance,Ie=e.canHydrateTextInstance,Ne=e.canHydrateSuspenseInstance,Ue=e.isSuspenseInstancePending,ze=e.isSuspenseInstanceFallback,De=e.getSuspenseInstanceFallbackErrorDetails,Oe=e.registerSuspenseInstanceRetry,Le=e.getNextHydratableSibling,Fe=e.getFirstHydratableChild,We=e.getFirstHydratableChildWithinContainer,Ge=e.getFirstHydratableChildWithinSuspenseInstance,$e=e.hydrateInstance,He=e.hydrateTextInstance,qe=e.hydrateSuspenseInstance,je=e.getNextHydratableInstanceAfterSuspenseInstance,Ye=e.commitHydratedContainer,Ve=e.commitHydratedSuspenseInstance,Qe=e.clearSuspenseBoundary,Je=e.clearSuspenseBoundaryFromContainer,Xe=e.shouldDeleteUnhydratedTailInstances,Ze=e.didNotMatchHydratedContainerTextInstance,Ke=e.didNotMatchHydratedTextInstance;function et(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var tt=!1;function nt(e,t){if(!e||tt)return"";tt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var u="\n"+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=s);break}}}finally{tt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?et(e):""}var rt=Object.prototype.hasOwnProperty,ot=[],it=-1;function at(e){return{current:e}}function st(e){0>it||(e.current=ot[it],ot[it]=null,it--)}function ut(e,t){it++,ot[it]=e.current,e.current=t}var lt={},ct=at(lt),ft=at(!1),dt=lt;function pt(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ht(e){return null!=(e=e.childContextTypes)}function mt(){st(ft),st(ct)}function yt(e,t,n){if(ct.current!==lt)throw Error(i(168));ut(ct,t),ut(ft,n)}function gt(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(i(108,w(e)||"Unknown",a));return o({},n,r)}function vt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,dt=ct.current,ut(ct,e),ut(ft,ft.current),!0}function bt(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=gt(e,t,dt),r.__reactInternalMemoizedMergedChildContext=e,st(ft),st(ct),ut(ct,e)):st(ft),ut(ft,n)}var _t=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(xt(e)/St|0)|0},xt=Math.log,St=Math.LN2;var wt=64,Tt=4194304;function Et(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=Et(s):0!==(i&=a)&&(r=Et(i))}else 0!==(a=n&~o)?r=Et(a):0!==i&&(r=Et(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-_t(t)),r|=e[n],t&=~o;return r}function Pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function kt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ct(){var e=wt;return 0==(4194240&(wt<<=1))&&(wt=64),e}function Mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-_t(t)]=n}function At(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_t(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var It=0;function Nt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Ut=r.unstable_scheduleCallback,zt=r.unstable_cancelCallback,Dt=r.unstable_shouldYield,Ot=r.unstable_requestPaint,Lt=r.unstable_now,Ft=r.unstable_ImmediatePriority,Wt=r.unstable_UserBlockingPriority,Gt=r.unstable_NormalPriority,$t=r.unstable_IdlePriority,Ht=null,qt=null;var jt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Yt=null,Vt=!1,Qt=!1;function Jt(e){null===Yt?Yt=[e]:Yt.push(e)}function Xt(){if(!Qt&&null!==Yt){Qt=!0;var e=0,t=It;try{var n=Yt;for(It=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Yt=null,Vt=!1}catch(t){throw null!==Yt&&(Yt=Yt.slice(e+1)),Ut(Ft,Xt),t}finally{It=t,Qt=!1}}return null}var Zt=[],Kt=0,en=null,tn=0,nn=[],rn=0,on=null,an=1,sn="";function un(e,t){Zt[Kt++]=tn,Zt[Kt++]=en,en=e,tn=t}function ln(e,t,n){nn[rn++]=an,nn[rn++]=sn,nn[rn++]=on,on=e;var r=an;e=sn;var o=32-_t(r)-1;r&=~(1<<o),n+=1;var i=32-_t(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,an=1<<32-_t(t)+o|n<<o|r,sn=i+e}else an=1<<i|n<<o|r,sn=e}function cn(e){null!==e.return&&(un(e,1),ln(e,1,0))}function fn(e){for(;e===en;)en=Zt[--Kt],Zt[Kt]=null,tn=Zt[--Kt],Zt[Kt]=null;for(;e===on;)on=nn[--rn],nn[rn]=null,sn=nn[--rn],nn[rn]=null,an=nn[--rn],nn[rn]=null}var dn=null,pn=null,hn=!1,mn=!1,yn=null;function gn(e,t){var n=as(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function vn(e,t){switch(e.tag){case 5:return null!==(t=Ae(t,e.type,e.pendingProps))&&(e.stateNode=t,dn=e,pn=Fe(t),!0);case 6:return null!==(t=Ie(t,e.pendingProps))&&(e.stateNode=t,dn=e,pn=null,!0);case 13:if(null!==(t=Ne(t))){var n=null!==on?{id:an,overflow:sn}:null;return e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=as(18,null,null,0)).stateNode=t,n.return=e,e.child=n,dn=e,pn=null,!0}return!1;default:return!1}}function bn(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function _n(e){if(hn){var t=pn;if(t){var n=t;if(!vn(e,t)){if(bn(e))throw Error(i(418));t=Le(n);var r=dn;t&&vn(e,t)?gn(r,n):(e.flags=-4097&e.flags|2,hn=!1,dn=e)}}else{if(bn(e))throw Error(i(418));e.flags=-4097&e.flags|2,hn=!1,dn=e}}}function xn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;dn=e}function Sn(e){if(!Q||e!==dn)return!1;if(!hn)return xn(e),hn=!0,!1;if(3!==e.tag&&(5!==e.tag||Xe(e.type)&&!W(e.type,e.memoizedProps))){var t=pn;if(t){if(bn(e))throw wn(),Error(i(418));for(;t;)gn(e,t),t=Le(t)}}if(xn(e),13===e.tag){if(!Q)throw Error(i(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));pn=je(e)}else pn=dn?Le(e.stateNode):null;return!0}function wn(){for(var e=pn;e;)e=Le(e)}function Tn(){Q&&(pn=dn=null,mn=hn=!1)}function En(e){null===yn?yn=[e]:yn.push(e)}var Rn=a.ReactCurrentBatchConfig;function Pn(e,t){if(jt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!rt.call(t,o)||!jt(e[o],t[o]))return!1}return!0}function kn(e){switch(e.tag){case 5:return et(e.type);case 16:return et("Lazy");case 13:return et("Suspense");case 19:return et("SuspenseList");case 0:case 2:case 15:return e=nt(e.type,!1);case 11:return e=nt(e.type.render,!1);case 1:return e=nt(e.type,!0);default:return""}}function Cn(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Mn=at(null),Bn=null,An=null,In=null;function Nn(){In=An=Bn=null}function Un(e,t,n){j?(ut(Mn,t._currentValue),t._currentValue=n):(ut(Mn,t._currentValue2),t._currentValue2=n)}function zn(e){var t=Mn.current;st(Mn),j?e._currentValue=t:e._currentValue2=t}function Dn(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function On(e,t){Bn=e,In=An=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(No=!0),e.firstContext=null)}function Ln(e){var t=j?e._currentValue:e._currentValue2;if(In!==e)if(e={context:e,memoizedValue:t,next:null},null===An){if(null===Bn)throw Error(i(308));An=e,Bn.dependencies={lanes:0,firstContext:e}}else An=An.next=e;return t}var Fn=null;function Wn(e){null===Fn?Fn=[e]:Fn.push(e)}function Gn(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Wn(t)):(n.next=o.next,o.next=n),t.interleaved=n,$n(e,r)}function $n(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Hn=!1;function qn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jn(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Yn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&na)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,$n(e,n)}return null===(o=r.interleaved)?(t.next=t,Wn(r)):(t.next=o.next,o.next=t),r.interleaved=t,$n(e,n)}function Qn(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,At(e,n)}}function Jn(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xn(e,t,n,r){var i=e.updateQueue;Hn=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var l=u,c=l.next;l.next=null,null===s?a=c:s.next=c,s=l;var f=e.alternate;null!==f&&((u=(f=f.updateQueue).lastBaseUpdate)!==s&&(null===u?f.firstBaseUpdate=c:u.next=c,f.lastBaseUpdate=l))}if(null!==a){var d=i.baseState;for(s=0,f=c=l=null,u=a;;){var p=u.lane,h=u.eventTime;if((r&p)===p){null!==f&&(f=f.next={eventTime:h,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var m=e,y=u;switch(p=t,h=n,y.tag){case 1:if("function"==typeof(m=y.payload)){d=m.call(h,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=y.payload)?m.call(h,d,p):m))break e;d=o({},d,p);break e;case 2:Hn=!0}}null!==u.callback&&0!==u.lane&&(e.flags|=64,null===(p=i.effects)?i.effects=[u]:p.push(u))}else h={eventTime:h,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===f?(c=f=h,l=d):f=f.next=h,s|=p;if(null===(u=u.next)){if(null===(u=i.shared.pending))break;u=(p=u).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}if(null===f&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,null!==(t=i.shared.interleaved)){i=t;do{s|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);ca|=s,e.lanes=s,e.memoizedState=d}}function Zn(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Kn=(new n.Component).refs;function er(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var tr={isMounted:function(e){return!!(e=e._reactInternals)&&T(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ma(),o=Ba(e),i=Yn(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Vn(e,i,o))&&(Aa(t,e,o,r),Qn(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ma(),o=Ba(e),i=Yn(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Vn(e,i,o))&&(Aa(t,e,o,r),Qn(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ma(),r=Ba(e),o=Yn(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Vn(e,o,r))&&(Aa(t,e,r,n),Qn(t,e,r))}};function nr(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Pn(n,r)||!Pn(o,i))}function rr(e,t,n){var r=!1,o=lt,i=t.contextType;return"object"==typeof i&&null!==i?i=Ln(i):(o=ht(t)?dt:ct.current,i=(r=null!=(r=t.contextTypes))?pt(e,o):lt),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=tr,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function or(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&tr.enqueueReplaceState(t,t.state,null)}function ir(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Kn,qn(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ln(i):(i=ht(t)?dt:ct.current,o.context=pt(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(er(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&tr.enqueueReplaceState(o,o.state,null),Xn(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ar(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Kn&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function sr(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ur(e){return(0,e._init)(e._payload)}function lr(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=us(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function c(t){return e&&null===t.alternate&&(t.flags|=2),t}function f(e,t,n,r){return null===t||6!==t.tag?((t=ds(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n,r){var i=n.type;return i===l?h(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===v&&ur(i)===t.type)?((r=o(t,n.props)).ref=ar(e,t,n),r.return=e,r):((r=ls(n.type,n.key,n.props,null,e.mode,r)).ref=ar(e,t,n),r.return=e,r)}function p(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ps(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function h(e,t,n,r,i){return null===t||7!==t.tag?((t=cs(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function m(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ds(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case s:return(n=ls(t.type,t.key,t.props,null,e.mode,n)).ref=ar(e,null,t),n.return=e,n;case u:return(t=ps(t,e.mode,n)).return=e,t;case v:return m(e,(0,t._init)(t._payload),n)}if(B(t)||x(t))return(t=cs(t,e.mode,n,null)).return=e,t;sr(e,t)}return null}function y(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:f(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case s:return n.key===o?d(e,t,n,r):null;case u:return n.key===o?p(e,t,n,r):null;case v:return y(e,t,(o=n._init)(n._payload),r)}if(B(n)||x(n))return null!==o?null:h(e,t,n,r,null);sr(e,n)}return null}function g(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return f(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case s:return d(t,e=e.get(null===r.key?n:r.key)||null,r,o);case u:return p(t,e=e.get(null===r.key?n:r.key)||null,r,o);case v:return g(e,t,n,(0,r._init)(r._payload),o)}if(B(r)||x(r))return h(t,e=e.get(n)||null,r,o,null);sr(t,r)}return null}function b(o,i,s,u){for(var l=null,c=null,f=i,d=i=0,p=null;null!==f&&d<s.length;d++){f.index>d?(p=f,f=null):p=f.sibling;var h=y(o,f,s[d],u);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(o,f),i=a(h,i,d),null===c?l=h:c.sibling=h,c=h,f=p}if(d===s.length)return n(o,f),hn&&un(o,d),l;if(null===f){for(;d<s.length;d++)null!==(f=m(o,s[d],u))&&(i=a(f,i,d),null===c?l=f:c.sibling=f,c=f);return hn&&un(o,d),l}for(f=r(o,f);d<s.length;d++)null!==(p=g(f,o,d,s[d],u))&&(e&&null!==p.alternate&&f.delete(null===p.key?d:p.key),i=a(p,i,d),null===c?l=p:c.sibling=p,c=p);return e&&f.forEach((function(e){return t(o,e)})),hn&&un(o,d),l}function _(o,s,u,l){var c=x(u);if("function"!=typeof c)throw Error(i(150));if(null==(u=c.call(u)))throw Error(i(151));for(var f=c=null,d=s,p=s=0,h=null,v=u.next();null!==d&&!v.done;p++,v=u.next()){d.index>p?(h=d,d=null):h=d.sibling;var b=y(o,d,v.value,l);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(o,d),s=a(b,s,p),null===f?c=b:f.sibling=b,f=b,d=h}if(v.done)return n(o,d),hn&&un(o,p),c;if(null===d){for(;!v.done;p++,v=u.next())null!==(v=m(o,v.value,l))&&(s=a(v,s,p),null===f?c=v:f.sibling=v,f=v);return hn&&un(o,p),c}for(d=r(o,d);!v.done;p++,v=u.next())null!==(v=g(d,o,p,v.value,l))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),s=a(v,s,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach((function(e){return t(o,e)})),hn&&un(o,p),c}return function e(r,i,a,f){if("object"==typeof a&&null!==a&&a.type===l&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case s:e:{for(var d=a.key,p=i;null!==p;){if(p.key===d){if((d=a.type)===l){if(7===p.tag){n(r,p.sibling),(i=o(p,a.props.children)).return=r,r=i;break e}}else if(p.elementType===d||"object"==typeof d&&null!==d&&d.$$typeof===v&&ur(d)===p.type){n(r,p.sibling),(i=o(p,a.props)).ref=ar(r,p,a),i.return=r,r=i;break e}n(r,p);break}t(r,p),p=p.sibling}a.type===l?((i=cs(a.props.children,r.mode,f,a.key)).return=r,r=i):((f=ls(a.type,a.key,a.props,null,r.mode,f)).ref=ar(r,i,a),f.return=r,r=f)}return c(r);case u:e:{for(p=a.key;null!==i;){if(i.key===p){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=ps(a,r.mode,f)).return=r,r=i}return c(r);case v:return e(r,i,(p=a._init)(a._payload),f)}if(B(a))return b(r,i,a,f);if(x(a))return _(r,i,a,f);sr(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=ds(a,r.mode,f)).return=r,r=i),c(r)):n(r,i)}}var cr=lr(!0),fr=lr(!1),dr={},pr=at(dr),hr=at(dr),mr=at(dr);function yr(e){if(e===dr)throw Error(i(174));return e}function gr(e,t){ut(mr,t),ut(hr,e),ut(pr,dr),e=I(t),st(pr),ut(pr,e)}function vr(){st(pr),st(hr),st(mr)}function br(e){var t=yr(mr.current),n=yr(pr.current);n!==(t=N(n,e.type,t))&&(ut(hr,e),ut(pr,t))}function _r(e){hr.current===e&&(st(pr),st(hr))}var xr=at(0);function Sr(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ue(n)||ze(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&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 wr=[];function Tr(){for(var e=0;e<wr.length;e++){var t=wr[e];j?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}wr.length=0}var Er=a.ReactCurrentDispatcher,Rr=a.ReactCurrentBatchConfig,Pr=0,kr=null,Cr=null,Mr=null,Br=!1,Ar=!1,Ir=0,Nr=0;function Ur(){throw Error(i(321))}function zr(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function Dr(e,t,n,r,o,a){if(Pr=a,kr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Er.current=null===e||null===e.memoizedState?xo:So,e=n(r,o),Ar){a=0;do{if(Ar=!1,Ir=0,25<=a)throw Error(i(301));a+=1,Mr=Cr=null,t.updateQueue=null,Er.current=wo,e=n(r,o)}while(Ar)}if(Er.current=_o,t=null!==Cr&&null!==Cr.next,Pr=0,Mr=Cr=kr=null,Br=!1,t)throw Error(i(300));return e}function Or(){var e=0!==Ir;return Ir=0,e}function Lr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Mr?kr.memoizedState=Mr=e:Mr=Mr.next=e,Mr}function Fr(){if(null===Cr){var e=kr.alternate;e=null!==e?e.memoizedState:null}else e=Cr.next;var t=null===Mr?kr.memoizedState:Mr.next;if(null!==t)Mr=t,Cr=e;else{if(null===e)throw Error(i(310));e={memoizedState:(Cr=e).memoizedState,baseState:Cr.baseState,baseQueue:Cr.baseQueue,queue:Cr.queue,next:null},null===Mr?kr.memoizedState=Mr=e:Mr=Mr.next=e}return Mr}function Wr(e,t){return"function"==typeof t?t(e):t}function Gr(e){var t=Fr(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=Cr,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var u=s=null,l=null,c=a;do{var f=c.lane;if((Pr&f)===f)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(u=l=d,s=r):l=l.next=d,kr.lanes|=f,ca|=f}c=c.next}while(null!==c&&c!==a);null===l?s=r:l.next=u,jt(r,t.memoizedState)||(No=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,kr.lanes|=a,ca|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function $r(e){var t=Fr(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);jt(a,t.memoizedState)||(No=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Hr(){}function qr(e,t){var n=kr,r=Fr(),o=t(),a=!jt(r.memoizedState,o);if(a&&(r.memoizedState=o,No=!0),r=r.queue,ro(Vr.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==Mr&&1&Mr.memoizedState.tag){if(n.flags|=2048,Zr(9,Yr.bind(null,n,r,o,t),void 0,null),null===ra)throw Error(i(349));0!=(30&Pr)||jr(n,t,o)}return o}function jr(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=kr.updateQueue)?(t={lastEffect:null,stores:null},kr.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Yr(e,t,n,r){t.value=n,t.getSnapshot=r,Qr(t)&&Jr(e)}function Vr(e,t,n){return n((function(){Qr(t)&&Jr(e)}))}function Qr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch(e){return!0}}function Jr(e){var t=$n(e,1);null!==t&&Aa(t,e,1,-1)}function Xr(e){var t=Lr();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wr,lastRenderedState:e},t.queue=e,e=e.dispatch=yo.bind(null,kr,e),[t.memoizedState,e]}function Zr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=kr.updateQueue)?(t={lastEffect:null,stores:null},kr.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Kr(){return Fr().memoizedState}function eo(e,t,n,r){var o=Lr();kr.flags|=e,o.memoizedState=Zr(1|t,n,void 0,void 0===r?null:r)}function to(e,t,n,r){var o=Fr();r=void 0===r?null:r;var i=void 0;if(null!==Cr){var a=Cr.memoizedState;if(i=a.destroy,null!==r&&zr(r,a.deps))return void(o.memoizedState=Zr(t,n,i,r))}kr.flags|=e,o.memoizedState=Zr(1|t,n,i,r)}function no(e,t){return eo(8390656,8,e,t)}function ro(e,t){return to(2048,8,e,t)}function oo(e,t){return to(4,2,e,t)}function io(e,t){return to(4,4,e,t)}function ao(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function so(e,t,n){return n=null!=n?n.concat([e]):null,to(4,4,ao.bind(null,t,e),n)}function uo(){}function lo(e,t){var n=Fr();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&zr(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function co(e,t){var n=Fr();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&zr(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fo(e,t,n){return 0==(21&Pr)?(e.baseState&&(e.baseState=!1,No=!0),e.memoizedState=n):(jt(n,t)||(n=Ct(),kr.lanes|=n,ca|=n,e.baseState=!0),t)}function po(e,t){var n=It;It=0!==n&&4>n?n:4,e(!0);var r=Rr.transition;Rr.transition={};try{e(!1),t()}finally{It=n,Rr.transition=r}}function ho(){return Fr().memoizedState}function mo(e,t,n){var r=Ba(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},go(e))vo(t,n);else if(null!==(n=Gn(e,t,n,r))){Aa(n,e,r,Ma()),bo(n,t,r)}}function yo(e,t,n){var r=Ba(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(go(e))vo(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,jt(s,a)){var u=t.interleaved;return null===u?(o.next=o,Wn(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Gn(e,t,o,r))&&(Aa(n,e,r,o=Ma()),bo(n,t,r))}}function go(e){var t=e.alternate;return e===kr||null!==t&&t===kr}function vo(e,t){Ar=Br=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bo(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,At(e,n)}}var _o={readContext:Ln,useCallback:Ur,useContext:Ur,useEffect:Ur,useImperativeHandle:Ur,useInsertionEffect:Ur,useLayoutEffect:Ur,useMemo:Ur,useReducer:Ur,useRef:Ur,useState:Ur,useDebugValue:Ur,useDeferredValue:Ur,useTransition:Ur,useMutableSource:Ur,useSyncExternalStore:Ur,useId:Ur,unstable_isNewReconciler:!1},xo={readContext:Ln,useCallback:function(e,t){return Lr().memoizedState=[e,void 0===t?null:t],e},useContext:Ln,useEffect:no,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,eo(4194308,4,ao.bind(null,t,e),n)},useLayoutEffect:function(e,t){return eo(4194308,4,e,t)},useInsertionEffect:function(e,t){return eo(4,2,e,t)},useMemo:function(e,t){var n=Lr();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lr();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mo.bind(null,kr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Lr().memoizedState=e},useState:Xr,useDebugValue:uo,useDeferredValue:function(e){return Lr().memoizedState=e},useTransition:function(){var e=Xr(!1),t=e[0];return e=po.bind(null,e[1]),Lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=kr,o=Lr();if(hn){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===ra)throw Error(i(349));0!=(30&Pr)||jr(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,no(Vr.bind(null,r,a,e),[e]),r.flags|=2048,Zr(9,Yr.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Lr(),t=ra.identifierPrefix;if(hn){var n=sn;t=":"+t+"R"+(n=(an&~(1<<32-_t(an)-1)).toString(32)+n),0<(n=Ir++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Nr++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},So={readContext:Ln,useCallback:lo,useContext:Ln,useEffect:ro,useImperativeHandle:so,useInsertionEffect:oo,useLayoutEffect:io,useMemo:co,useReducer:Gr,useRef:Kr,useState:function(){return Gr(Wr)},useDebugValue:uo,useDeferredValue:function(e){return fo(Fr(),Cr.memoizedState,e)},useTransition:function(){return[Gr(Wr)[0],Fr().memoizedState]},useMutableSource:Hr,useSyncExternalStore:qr,useId:ho,unstable_isNewReconciler:!1},wo={readContext:Ln,useCallback:lo,useContext:Ln,useEffect:ro,useImperativeHandle:so,useInsertionEffect:oo,useLayoutEffect:io,useMemo:co,useReducer:$r,useRef:Kr,useState:function(){return $r(Wr)},useDebugValue:uo,useDeferredValue:function(e){var t=Fr();return null===Cr?t.memoizedState=e:fo(t,Cr.memoizedState,e)},useTransition:function(){return[$r(Wr)[0],Fr().memoizedState]},useMutableSource:Hr,useSyncExternalStore:qr,useId:ho,unstable_isNewReconciler:!1};function To(e,t){try{var n="",r=t;do{n+=kn(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function Eo(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Ro(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Po="function"==typeof WeakMap?WeakMap:Map;function ko(e,t,n){(n=Yn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_a||(_a=!0,xa=r),Ro(0,t)},n}function Co(e,t,n){(n=Yn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ro(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){Ro(0,t),"function"!=typeof r&&(null===Sa?Sa=new Set([this]):Sa.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Mo(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Po;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=es.bind(null,e,t,n),t.then(e,e))}function Bo(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Ao(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Yn(-1,1)).tag=2,Vn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Io=a.ReactCurrentOwner,No=!1;function Uo(e,t,n,r){t.child=null===e?fr(t,null,n,r):cr(t,e.child,n,r)}function zo(e,t,n,r,o){n=n.render;var i=t.ref;return On(t,o),r=Dr(e,t,n,r,i,o),n=Or(),null===e||No?(hn&&n&&cn(t),t.flags|=1,Uo(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ii(e,t,o))}function Do(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||ss(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ls(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Oo(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Pn)(a,r)&&e.ref===t.ref)return ii(e,t,o)}return t.flags|=1,(e=us(i,r)).ref=t.ref,e.return=t,t.child=e}function Oo(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Pn(i,r)&&e.ref===t.ref){if(No=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,ii(e,t,o);0!=(131072&e.flags)&&(No=!0)}}return Wo(e,t,n,r,o)}function Lo(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut(sa,aa),aa|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ut(sa,aa),aa|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,ut(sa,aa),aa|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,ut(sa,aa),aa|=r;return Uo(e,t,o,n),t.child}function Fo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wo(e,t,n,r,o){var i=ht(n)?dt:ct.current;return i=pt(t,i),On(t,o),n=Dr(e,t,n,r,i,o),r=Or(),null===e||No?(hn&&r&&cn(t),t.flags|=1,Uo(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ii(e,t,o))}function Go(e,t,n,r,o){if(ht(n)){var i=!0;vt(t)}else i=!1;if(On(t,o),null===t.stateNode)oi(e,t),rr(t,n,r),ir(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=Ln(l):l=pt(t,l=ht(n)?dt:ct.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&or(t,a,r,l),Hn=!1;var d=t.memoizedState;a.state=d,Xn(t,r,a,o),u=t.memoizedState,s!==r||d!==u||ft.current||Hn?("function"==typeof c&&(er(t,n,c,r),u=t.memoizedState),(s=Hn||nr(t,n,s,r,d,u,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,jn(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Cn(t.type,s),a.props=l,f=t.pendingProps,d=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=Ln(u):u=pt(t,u=ht(n)?dt:ct.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==u)&&or(t,a,r,u),Hn=!1,d=t.memoizedState,a.state=d,Xn(t,r,a,o);var h=t.memoizedState;s!==f||d!==h||ft.current||Hn?("function"==typeof p&&(er(t,n,p,r),h=t.memoizedState),(l=Hn||nr(t,n,l,r,d,h,u)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return $o(e,t,n,r,i,o)}function $o(e,t,n,r,o,i){Fo(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&bt(t,n,!1),ii(e,t,i);r=t.stateNode,Io.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=cr(t,e.child,null,i),t.child=cr(t,null,s,i)):Uo(e,t,s,i),t.memoizedState=r.state,o&&bt(t,n,!0),t.child}function Ho(e){var t=e.stateNode;t.pendingContext?yt(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yt(0,t.context,!1),gr(e,t.containerInfo)}function qo(e,t,n,r,o){return Tn(),En(o),t.flags|=256,Uo(e,t,n,r),t.child}var jo,Yo,Vo,Qo,Jo={dehydrated:null,treeContext:null,retryLane:0};function Xo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zo(e,t,n){var r,o=t.pendingProps,a=xr.current,s=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ut(xr,1&a),null===e)return _n(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:ze(e)?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,s?(o=t.mode,s=t.child,u={mode:"hidden",children:u},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=fs(u,o,0,null),e=cs(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Xo(n),t.memoizedState=Jo,e):Ko(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,ei(e,t,s,r=Eo(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=fs({mode:"visible",children:r.children},o,0,null),(a=cs(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&cr(t,e.child,null,s),t.child.memoizedState=Xo(s),t.memoizedState=Jo,a);if(0==(1&t.mode))return ei(e,t,s,null);if(ze(o))return r=De(o).digest,a=Error(i(419)),r=Eo(a,r,void 0),ei(e,t,s,r);if(n=0!=(s&e.childLanes),No||n){if(null!==(r=ra)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,$n(e,o),Aa(r,e,o,-1))}return Ha(),ei(e,t,s,r=Eo(Error(i(421))))}return Ue(o)?(t.flags|=128,t.child=e.child,t=ns.bind(null,e),Oe(o,t),null):(e=a.treeContext,Q&&(pn=Ge(o),dn=t,hn=!0,yn=null,mn=!1,null!==e&&(nn[rn++]=an,nn[rn++]=sn,nn[rn++]=on,an=e.id,sn=e.overflow,on=t)),(t=Ko(t,r.children)).flags|=4096,t)}(e,t,u,o,r,a,n);if(s){s=o.fallback,u=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&u)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=us(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=us(r,s):(s=cs(s,u,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,u=null===(u=e.child.memoizedState)?Xo(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=Jo,o}return e=(s=e.child).sibling,o=us(s,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ko(e,t){return(t=fs({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function ei(e,t,n,r){return null!==r&&En(r),cr(t,e.child,null,n),(e=Ko(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ti(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Dn(e.return,t,n)}function ni(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function ri(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Uo(e,t,r.children,n),0!=(2&(r=xr.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ti(e,n,t);else if(19===e.tag)ti(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ut(xr,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Sr(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ni(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Sr(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ni(t,!0,n,null,i);break;case"together":ni(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oi(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ii(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ca|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=us(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=us(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ai(e){e.flags|=4}function si(e,t){if(null!==e&&e.child===t.child)return!0;if(0!=(16&t.flags))return!1;for(e=t.child;null!==e;){if(0!=(12854&e.flags)||0!=(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}if(Y)jo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)O(e,n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}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}},Yo=function(){},Vo=function(e,t,n,r,o){if((e=e.memoizedProps)!==r){var i=t.stateNode,a=yr(pr.current);n=F(i,n,e,r,o,a),(t.updateQueue=n)&&ai(t)}},Qo=function(e,t,n,r){n!==r&&ai(t)};else if(V){jo=function(e,t,n,r){for(var o=t.child;null!==o;){if(5===o.tag){var i=o.stateNode;n&&r&&(i=Me(i,o.type,o.memoizedProps,o)),O(e,i)}else if(6===o.tag)i=o.stateNode,n&&r&&(i=Be(i,o.memoizedProps,o)),O(e,i);else if(4!==o.tag)if(22===o.tag&&null!==o.memoizedState)null!==(i=o.child)&&(i.return=o),jo(e,o,!0,!0);else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};var ui=function(e,t,n,r){for(var o=t.child;null!==o;){if(5===o.tag){var i=o.stateNode;n&&r&&(i=Me(i,o.type,o.memoizedProps,o)),Pe(e,i)}else if(6===o.tag)i=o.stateNode,n&&r&&(i=Be(i,o.memoizedProps,o)),Pe(e,i);else if(4!==o.tag)if(22===o.tag&&null!==o.memoizedState)null!==(i=o.child)&&(i.return=o),ui(e,o,!0,!0);else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};Yo=function(e,t){var n=t.stateNode;if(!si(e,t)){e=n.containerInfo;var r=Re(e);ui(r,t,!1,!1),n.pendingChildren=r,ai(t),ke(e,r)}},Vo=function(e,t,n,r,o){var i=e.stateNode,a=e.memoizedProps;if((e=si(e,t))&&a===r)t.stateNode=i;else{var s=t.stateNode,u=yr(pr.current),l=null;a!==r&&(l=F(s,n,a,r,o,u)),e&&null===l?t.stateNode=i:(i=Ee(i,l,n,a,r,t,e,s),L(i,n,r,o,u)&&ai(t),t.stateNode=i,e?ai(t):jo(i,t,!1,!1))}},Qo=function(e,t,n,r){n!==r?(e=yr(mr.current),n=yr(pr.current),t.stateNode=G(r,e,n,t),ai(t)):t.stateNode=e.stateNode}}else Yo=function(){},Vo=function(){},Qo=function(){};function li(e,t){if(!hn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ci(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function fi(e,t,n){var r=t.pendingProps;switch(fn(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ci(t),null;case 1:case 17:return ht(t.type)&&mt(),ci(t),null;case 3:return n=t.stateNode,vr(),st(ft),st(ct),Tr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Sn(t)?ai(t):null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==yn&&(za(yn),yn=null))),Yo(e,t),ci(t),null;case 5:_r(t),n=yr(mr.current);var o=t.type;if(null!==e&&null!=t.stateNode)Vo(e,t,o,r,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return ci(t),null}if(e=yr(pr.current),Sn(t)){if(!Q)throw Error(i(175));e=$e(t.stateNode,t.type,t.memoizedProps,n,e,t,!mn),t.updateQueue=e,null!==e&&ai(t)}else{var a=D(o,r,n,e,t);jo(a,t,!1,!1),t.stateNode=a,L(a,o,r,n,e)&&ai(t)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ci(t),null;case 6:if(e&&null!=t.stateNode)Qo(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=yr(mr.current),n=yr(pr.current),Sn(t)){if(!Q)throw Error(i(176));if(e=t.stateNode,n=t.memoizedProps,(r=He(e,n,t,!mn))&&null!==(o=dn))switch(o.tag){case 3:Ze(o.stateNode.containerInfo,e,n,0!=(1&o.mode));break;case 5:Ke(o.type,o.memoizedProps,o.stateNode,e,n,0!=(1&o.mode))}r&&ai(t)}else t.stateNode=G(r,e,n,t)}return ci(t),null;case 13:if(st(xr),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(hn&&null!==pn&&0!=(1&t.mode)&&0==(128&t.flags))wn(),Tn(),t.flags|=98560,o=!1;else if(o=Sn(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!Q)throw Error(i(344));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));qe(o,t)}else Tn(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ci(t),o=!1}else null!==yn&&(za(yn),yn=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((n=null!==r)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&xr.current)?0===ua&&(ua=3):Ha())),null!==t.updateQueue&&(t.flags|=4),ci(t),null);case 4:return vr(),Yo(e,t),null===e&&X(t.stateNode.containerInfo),ci(t),null;case 10:return zn(t.type._context),ci(t),null;case 19:if(st(xr),null===(o=t.memoizedState))return ci(t),null;if(r=0!=(128&t.flags),null===(a=o.rendering))if(r)li(o,!1);else{if(0!==ua||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=Sr(e))){for(t.flags|=128,li(o,!1),null!==(e=a.updateQueue)&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=n,n=t.child;null!==n;)o=e,(r=n).flags&=14680066,null===(a=r.alternate)?(r.childLanes=0,r.lanes=o,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=a.childLanes,r.lanes=a.lanes,r.child=a.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=a.memoizedProps,r.memoizedState=a.memoizedState,r.updateQueue=a.updateQueue,r.type=a.type,o=a.dependencies,r.dependencies=null===o?null:{lanes:o.lanes,firstContext:o.firstContext}),n=n.sibling;return ut(xr,1&xr.current|2),t.child}e=e.sibling}null!==o.tail&&Lt()>ya&&(t.flags|=128,r=!0,li(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Sr(a))){if(t.flags|=128,r=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),li(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!hn)return ci(t),null}else 2*Lt()-o.renderingStartTime>ya&&1073741824!==n&&(t.flags|=128,r=!0,li(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=o.last)?e.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Lt(),t.sibling=null,e=xr.current,ut(xr,r?1&e|2:1&e),t):(ci(t),null);case 22:case 23:return Fa(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&aa)&&(ci(t),Y&&6&t.subtreeFlags&&(t.flags|=8192)):ci(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function di(e,t){switch(fn(t),t.tag){case 1:return ht(t.type)&&mt(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vr(),st(ft),st(ct),Tr(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return _r(t),null;case 13:if(st(xr),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));Tn()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return st(xr),null;case 4:return vr(),null;case 10:return zn(t.type._context),null;case 22:case 23:return Fa(),null;default:return null}}var pi=!1,hi=!1,mi="function"==typeof WeakSet?WeakSet:Set,yi=null;function gi(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ka(e,t,n)}else n.current=null}function vi(e,t,n){try{n()}catch(n){Ka(e,t,n)}}var bi=!1;function _i(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&vi(t,n,i)}o=o.next}while(o!==r)}}function xi(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.create;n.destroy=r()}n=n.next}while(n!==t)}}function Si(e){var t=e.ref;if(null!==t){var n=e.stateNode;if(5===e.tag)e=A(n);else e=n;"function"==typeof t?t(e):t.current=e}}function wi(e){var t=e.alternate;null!==t&&(e.alternate=null,wi(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&K(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ti(e){return 5===e.tag||3===e.tag||4===e.tag}function Ei(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ti(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ri(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?ye(n,e,t):fe(n,e);else if(4!==r&&null!==(e=e.child))for(Ri(e,t,n),e=e.sibling;null!==e;)Ri(e,t,n),e=e.sibling}function Pi(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?me(n,e,t):ce(n,e);else if(4!==r&&null!==(e=e.child))for(Pi(e,t,n),e=e.sibling;null!==e;)Pi(e,t,n),e=e.sibling}var ki=null,Ci=!1;function Mi(e,t,n){for(n=n.child;null!==n;)Bi(e,t,n),n=n.sibling}function Bi(e,t,n){if(qt&&"function"==typeof qt.onCommitFiberUnmount)try{qt.onCommitFiberUnmount(Ht,n)}catch(e){}switch(n.tag){case 5:hi||gi(n,t);case 6:if(Y){var r=ki,o=Ci;ki=null,Mi(e,t,n),Ci=o,null!==(ki=r)&&(Ci?ve(ki,n.stateNode):ge(ki,n.stateNode))}else Mi(e,t,n);break;case 18:Y&&null!==ki&&(Ci?Je(ki,n.stateNode):Qe(ki,n.stateNode));break;case 4:Y?(r=ki,o=Ci,ki=n.stateNode.containerInfo,Ci=!0,Mi(e,t,n),ki=r,Ci=o):(V&&(r=n.stateNode.containerInfo,o=Re(r),Ce(r,o)),Mi(e,t,n));break;case 0:case 11:case 14:case 15:if(!hi&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&vi(n,t,a),o=o.next}while(o!==r)}Mi(e,t,n);break;case 1:if(!hi&&(gi(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Ka(n,t,e)}Mi(e,t,n);break;case 21:Mi(e,t,n);break;case 22:1&n.mode?(hi=(r=hi)||null!==n.memoizedState,Mi(e,t,n),hi=r):Mi(e,t,n);break;default:Mi(e,t,n)}}function Ai(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new mi),t.forEach((function(t){var r=rs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ii(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t;if(Y){var u=s;e:for(;null!==u;){switch(u.tag){case 5:ki=u.stateNode,Ci=!1;break e;case 3:case 4:ki=u.stateNode.containerInfo,Ci=!0;break e}u=u.return}if(null===ki)throw Error(i(160));Bi(a,s,o),ki=null,Ci=!1}else Bi(a,s,o);var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){Ka(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Ni(t,e),t=t.sibling}function Ni(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ii(t,e),Ui(e),4&r){try{_i(3,e,e.return),xi(3,e)}catch(t){Ka(e,e.return,t)}try{_i(5,e,e.return)}catch(t){Ka(e,e.return,t)}}break;case 1:Ii(t,e),Ui(e),512&r&&null!==n&&gi(n,n.return);break;case 5:if(Ii(t,e),Ui(e),512&r&&null!==n&&gi(n,n.return),Y){if(32&e.flags){var o=e.stateNode;try{be(o)}catch(t){Ka(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps;if(n=null!==n?n.memoizedProps:a,r=e.type,t=e.updateQueue,e.updateQueue=null,null!==t)try{he(o,t,r,n,a,e)}catch(t){Ka(e,e.return,t)}}}break;case 6:if(Ii(t,e),Ui(e),4&r&&Y){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps,n=null!==n?n.memoizedProps:a;try{de(o,n,a)}catch(t){Ka(e,e.return,t)}}break;case 3:if(Ii(t,e),Ui(e),4&r){if(Y&&Q&&null!==n&&n.memoizedState.isDehydrated)try{Ye(t.containerInfo)}catch(t){Ka(e,e.return,t)}if(V){o=t.containerInfo,a=t.pendingChildren;try{Ce(o,a)}catch(t){Ka(e,e.return,t)}}}break;case 4:if(Ii(t,e),Ui(e),4&r&&V){o=(a=e.stateNode).containerInfo,a=a.pendingChildren;try{Ce(o,a)}catch(t){Ka(e,e.return,t)}}break;case 13:Ii(t,e),Ui(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(ma=Lt())),4&r&&Ai(e);break;case 22:var s=null!==n&&null!==n.memoizedState;if(1&e.mode?(hi=(n=hi)||s,Ii(t,e),hi=n):Ii(t,e),Ui(e),8192&r){if(n=null!==e.memoizedState,(e.stateNode.isHidden=n)&&!s&&0!=(1&e.mode))for(yi=e,r=e.child;null!==r;){for(t=yi=r;null!==yi;){var u=(s=yi).child;switch(s.tag){case 0:case 11:case 14:case 15:_i(4,s,s.return);break;case 1:gi(s,s.return);var l=s.stateNode;if("function"==typeof l.componentWillUnmount){var c=s,f=s.return;try{var d=c;l.props=d.memoizedProps,l.state=d.memoizedState,l.componentWillUnmount()}catch(e){Ka(c,f,e)}}break;case 5:gi(s,s.return);break;case 22:if(null!==s.memoizedState){Li(t);continue}}null!==u?(u.return=s,yi=u):Li(t)}r=r.sibling}if(Y)e:if(r=null,Y)for(t=e;;){if(5===t.tag){if(null===r){r=t;try{o=t.stateNode,n?_e(o):Se(t.stateNode,t.memoizedProps)}catch(t){Ka(e,e.return,t)}}}else if(6===t.tag){if(null===r)try{a=t.stateNode,n?xe(a):we(a,t.memoizedProps)}catch(t){Ka(e,e.return,t)}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}}break;case 19:Ii(t,e),Ui(e),4&r&&Ai(e);break;case 21:break;default:Ii(t,e),Ui(e)}}function Ui(e){var t=e.flags;if(2&t){try{if(Y){e:{for(var n=e.return;null!==n;){if(Ti(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(be(o),r.flags&=-33),Pi(e,Ei(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;Ri(e,Ei(e),a);break;default:throw Error(i(161))}}}catch(t){Ka(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function zi(e,t,n){yi=e,Di(e)}function Di(e,t,n){for(var r=0!=(1&e.mode);null!==yi;){var o=yi,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||pi;if(!a){var s=o.alternate,u=null!==s&&null!==s.memoizedState||hi;s=pi;var l=hi;if(pi=a,(hi=u)&&!l)for(yi=o;null!==yi;)u=(a=yi).child,22===a.tag&&null!==a.memoizedState?Fi(o):null!==u?(u.return=a,yi=u):Fi(o);for(;null!==i;)yi=i,Di(i),i=i.sibling;yi=o,pi=s,hi=l}Oi(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,yi=i):Oi(e)}}function Oi(e){for(;null!==yi;){var t=yi;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:hi||xi(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!hi)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Cn(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Zn(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:n=A(t.child.stateNode);break;case 1:n=t.child.stateNode}Zn(t,s,n)}break;case 5:var u=t.stateNode;null===n&&4&t.flags&&pe(u,t.type,t.memoizedProps,t);break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(Q&&null===t.memoizedState){var l=t.alternate;if(null!==l){var c=l.memoizedState;if(null!==c){var f=c.dehydrated;null!==f&&Ve(f)}}}break;default:throw Error(i(163))}hi||512&t.flags&&Si(t)}catch(e){Ka(t,t.return,e)}}if(t===e){yi=null;break}if(null!==(n=t.sibling)){n.return=t.return,yi=n;break}yi=t.return}}function Li(e){for(;null!==yi;){var t=yi;if(t===e){yi=null;break}var n=t.sibling;if(null!==n){n.return=t.return,yi=n;break}yi=t.return}}function Fi(e){for(;null!==yi;){var t=yi;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xi(4,t)}catch(e){Ka(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Ka(t,o,e)}}var i=t.return;try{Si(t)}catch(e){Ka(t,i,e)}break;case 5:var a=t.return;try{Si(t)}catch(e){Ka(t,a,e)}}}catch(e){Ka(t,t.return,e)}if(t===e){yi=null;break}var s=t.sibling;if(null!==s){s.return=t.return,yi=s;break}yi=t.return}}var Wi=0,Gi=1,$i=2,Hi=3,qi=4;if("function"==typeof Symbol&&Symbol.for){var ji=Symbol.for;Wi=ji("selector.component"),Gi=ji("selector.has_pseudo_class"),$i=ji("selector.role"),Hi=ji("selector.test_id"),qi=ji("selector.text")}function Yi(e){var t=J(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(i(364));return t}if(null===(e=re(e)))throw Error(i(362));return e.stateNode.current}function Vi(e,t){switch(t.$$typeof){case Wi:if(e.type===t.value)return!0;break;case Gi:e:{t=t.value,e=[e,0];for(var n=0;n<e.length;){var r=e[n++],o=e[n++],a=t[o];if(5!==r.tag||!ae(r)){for(;null!=a&&Vi(r,a);)a=t[++o];if(o===t.length){t=!0;break e}for(r=r.child;null!==r;)e.push(r,o),r=r.sibling}}t=!1}return t;case $i:if(5===e.tag&&se(e.stateNode,t.value))return!0;break;case qi:if((5===e.tag||6===e.tag)&&(null!==(e=ie(e))&&0<=e.indexOf(t.value)))return!0;break;case Hi:if(5===e.tag&&("string"==typeof(e=e.memoizedProps["data-testname"])&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(i(365))}return!1}function Qi(e){switch(e.$$typeof){case Wi:return"<"+(S(e.value)||"Unknown")+">";case Gi:return":has("+(Qi(e)||"")+")";case $i:return'[role="'+e.value+'"]';case qi:return'"'+e.value+'"';case Hi:return'[data-testname="'+e.value+'"]';default:throw Error(i(365))}}function Ji(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var o=e[r++],i=e[r++],a=t[i];if(5!==o.tag||!ae(o)){for(;null!=a&&Vi(o,a);)a=t[++i];if(i===t.length)n.push(o);else for(o=o.child;null!==o;)e.push(o,i),o=o.sibling}}return n}function Xi(e,t){if(!ne)throw Error(i(363));e=Ji(e=Yi(e),t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var r=e[n++];if(5===r.tag)ae(r)||t.push(r.stateNode);else for(r=r.child;null!==r;)e.push(r),r=r.sibling}return t}var Zi=Math.ceil,Ki=a.ReactCurrentDispatcher,ea=a.ReactCurrentOwner,ta=a.ReactCurrentBatchConfig,na=0,ra=null,oa=null,ia=0,aa=0,sa=at(0),ua=0,la=null,ca=0,fa=0,da=0,pa=null,ha=null,ma=0,ya=1/0,ga=null;function va(){ya=Lt()+500}var ba,_a=!1,xa=null,Sa=null,wa=!1,Ta=null,Ea=0,Ra=0,Pa=null,ka=-1,Ca=0;function Ma(){return 0!=(6&na)?Lt():-1!==ka?ka:ka=Lt()}function Ba(e){return 0==(1&e.mode)?1:0!=(2&na)&&0!==ia?ia&-ia:null!==Rn.transition?(0===Ca&&(Ca=Ct()),Ca):0!==(e=It)?e:Z()}function Aa(e,t,n,r){if(50<Ra)throw Ra=0,Pa=null,Error(i(185));Bt(e,n,r),0!=(2&na)&&e===ra||(e===ra&&(0==(2&na)&&(fa|=n),4===ua&&Da(e,ia)),Ia(e,r),1===n&&0===na&&0==(1&t.mode)&&(va(),Vt&&Xt()))}function Ia(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-_t(i),s=1<<a,u=o[a];-1===u?0!=(s&n)&&0==(s&r)||(o[a]=Pt(s,t)):u<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=Rt(e,e===ra?ia:0);if(0===r)null!==n&&zt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&zt(n),1===t)0===e.tag?function(e){Vt=!0,Jt(e)}(Oa.bind(null,e)):Jt(Oa.bind(null,e)),ee?te((function(){0==(6&na)&&Xt()})):Ut(Ft,Xt),n=null;else{switch(Nt(r)){case 1:n=Ft;break;case 4:n=Wt;break;case 16:default:n=Gt;break;case 536870912:n=$t}n=os(n,Na.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Na(e,t){if(ka=-1,Ca=0,0!=(6&na))throw Error(i(327));var n=e.callbackNode;if(Xa()&&e.callbackNode!==n)return null;var r=Rt(e,e===ra?ia:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=qa(e,r);else{t=r;var o=na;na|=2;var a=$a();for(ra===e&&ia===t||(ga=null,va(),Wa(e,t));;)try{Ya();break}catch(t){Ga(e,t)}Nn(),Ki.current=a,na=o,null!==oa?t=0:(ra=null,ia=0,t=ua)}if(0!==t){if(2===t&&(0!==(o=kt(e))&&(r=o,t=Ua(e,o))),1===t)throw n=la,Wa(e,0),Da(e,r),Ia(e,Lt()),n;if(6===t)Da(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!jt(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=qa(e,r))&&(0!==(a=kt(e))&&(r=a,t=Ua(e,a))),1===t))throw n=la,Wa(e,0),Da(e,r),Ia(e,Lt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Ja(e,ha,ga);break;case 3:if(Da(e,r),(130023424&r)===r&&10<(t=ma+500-Lt())){if(0!==Rt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Ma(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=$(Ja.bind(null,e,ha,ga),t);break}Ja(e,ha,ga);break;case 4:if(Da(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-_t(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Lt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zi(r/1960))-r)){e.timeoutHandle=$(Ja.bind(null,e,ha,ga),r);break}Ja(e,ha,ga);break;default:throw Error(i(329))}}}return Ia(e,Lt()),e.callbackNode===n?Na.bind(null,e):null}function Ua(e,t){var n=pa;return e.current.memoizedState.isDehydrated&&(Wa(e,t).flags|=256),2!==(e=qa(e,t))&&(t=ha,ha=n,null!==t&&za(t)),e}function za(e){null===ha?ha=e:ha.push.apply(ha,e)}function Da(e,t){for(t&=~da,t&=~fa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),r=1<<n;e[n]=-1,t&=~r}}function Oa(e){if(0!=(6&na))throw Error(i(327));Xa();var t=Rt(e,0);if(0==(1&t))return Ia(e,Lt()),null;var n=qa(e,t);if(0!==e.tag&&2===n){var r=kt(e);0!==r&&(t=r,n=Ua(e,r))}if(1===n)throw n=la,Wa(e,0),Da(e,t),Ia(e,Lt()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ja(e,ha,ga),Ia(e,Lt()),null}function La(e){null!==Ta&&0===Ta.tag&&0==(6&na)&&Xa();var t=na;na|=1;var n=ta.transition,r=It;try{if(ta.transition=null,It=1,e)return e()}finally{It=r,ta.transition=n,0==(6&(na=t))&&Xt()}}function Fa(){aa=sa.current,st(sa)}function Wa(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==q&&(e.timeoutHandle=q,H(n)),null!==oa)for(n=oa.return;null!==n;){var r=n;switch(fn(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&mt();break;case 3:vr(),st(ft),st(ct),Tr();break;case 5:_r(r);break;case 4:vr();break;case 13:case 19:st(xr);break;case 10:zn(r.type._context);break;case 22:case 23:Fa()}n=n.return}if(ra=e,oa=e=us(e.current,null),ia=aa=t,ua=0,la=null,da=fa=ca=0,ha=pa=null,null!==Fn){for(t=0;t<Fn.length;t++)if(null!==(r=(n=Fn[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Fn=null}return e}function Ga(e,t){for(;;){var n=oa;try{if(Nn(),Er.current=_o,Br){for(var r=kr.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Br=!1}if(Pr=0,Mr=Cr=kr=null,Ar=!1,Ir=0,ea.current=null,null===n||null===n.return){ua=1,la=t,oa=null;break}e:{var a=e,s=n.return,u=n,l=t;if(t=ia,u.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,f=u,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=Bo(s);if(null!==h){h.flags&=-257,Ao(h,s,u,0,t),1&h.mode&&Mo(a,c,t),l=c;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}if(0==(1&t)){Mo(a,c,t),Ha();break e}l=Error(i(426))}else if(hn&&1&u.mode){var g=Bo(s);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Ao(g,s,u,0,t),En(To(l,u));break e}}a=l=To(l,u),4!==ua&&(ua=2),null===pa?pa=[a]:pa.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Jn(a,ko(0,l,t));break e;case 1:u=l;var v=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Sa||!Sa.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Jn(a,Co(a,u,t));break e}}a=a.return}while(null!==a)}Qa(n)}catch(e){t=e,oa===n&&null!==n&&(oa=n=n.return);continue}break}}function $a(){var e=Ki.current;return Ki.current=_o,null===e?_o:e}function Ha(){0!==ua&&3!==ua&&2!==ua||(ua=4),null===ra||0==(268435455&ca)&&0==(268435455&fa)||Da(ra,ia)}function qa(e,t){var n=na;na|=2;var r=$a();for(ra===e&&ia===t||(ga=null,Wa(e,t));;)try{ja();break}catch(t){Ga(e,t)}if(Nn(),na=n,Ki.current=r,null!==oa)throw Error(i(261));return ra=null,ia=0,ua}function ja(){for(;null!==oa;)Va(oa)}function Ya(){for(;null!==oa&&!Dt();)Va(oa)}function Va(e){var t=ba(e.alternate,e,aa);e.memoizedProps=e.pendingProps,null===t?Qa(e):oa=t,ea.current=null}function Qa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=fi(n,t,aa)))return void(oa=n)}else{if(null!==(n=di(n,t)))return n.flags&=32767,void(oa=n);if(null===e)return ua=6,void(oa=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(oa=t);oa=t=e}while(null!==t);0===ua&&(ua=5)}function Ja(e,t,n){var r=It,o=ta.transition;try{ta.transition=null,It=1,function(e,t,n,r){do{Xa()}while(null!==Ta);if(0!=(6&na))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-_t(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===ra&&(oa=ra=null,ia=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||wa||(wa=!0,os(Gt,(function(){return Xa(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=ta.transition,ta.transition=null;var s=It;It=1;var u=na;na|=4,ea.current=null,function(e,t){for(U(e.containerInfo),yi=t;null!==yi;)if(t=(e=yi).child,0!=(1028&e.subtreeFlags)&&null!==t)t.return=e,yi=t;else for(;null!==yi;){e=yi;try{var n=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==n){var r=n.memoizedProps,o=n.memoizedState,a=e.stateNode,s=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:Cn(e.type,r),o);a.__reactInternalSnapshotBeforeUpdate=s}break;case 3:Y&&Te(e.stateNode.containerInfo);break;default:throw Error(i(163))}}catch(t){Ka(e,e.return,t)}if(null!==(t=e.sibling)){t.return=e.return,yi=t;break}yi=e.return}n=bi,bi=!1}(e,n),Ni(n,e),z(e.containerInfo),e.current=n,zi(n),Ot(),na=u,It=s,ta.transition=a}else e.current=n;if(wa&&(wa=!1,Ta=e,Ea=o),0===(a=e.pendingLanes)&&(Sa=null),function(e){if(qt&&"function"==typeof qt.onCommitFiberRoot)try{qt.onCommitFiberRoot(Ht,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),Ia(e,Lt()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(_a)throw _a=!1,e=xa,xa=null,e;0!=(1&Ea)&&0!==e.tag&&Xa(),0!=(1&(a=e.pendingLanes))?e===Pa?Ra++:(Ra=0,Pa=e):Ra=0,Xt()}(e,t,n,r)}finally{ta.transition=o,It=r}return null}function Xa(){if(null!==Ta){var e=Nt(Ea),t=ta.transition,n=It;try{if(ta.transition=null,It=16>e?16:e,null===Ta)var r=!1;else{if(e=Ta,Ta=null,Ea=0,0!=(6&na))throw Error(i(331));var o=na;for(na|=4,yi=e.current;null!==yi;){var a=yi,s=a.child;if(0!=(16&yi.flags)){var u=a.deletions;if(null!==u){for(var l=0;l<u.length;l++){var c=u[l];for(yi=c;null!==yi;){var f=yi;switch(f.tag){case 0:case 11:case 15:_i(8,f,a)}var d=f.child;if(null!==d)d.return=f,yi=d;else for(;null!==yi;){var p=(f=yi).sibling,h=f.return;if(wi(f),f===c){yi=null;break}if(null!==p){p.return=h,yi=p;break}yi=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var g=y.sibling;y.sibling=null,y=g}while(null!==y)}}yi=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,yi=s;else e:for(;null!==yi;){if(0!=(2048&(a=yi).flags))switch(a.tag){case 0:case 11:case 15:_i(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,yi=v;break e}yi=a.return}}var b=e.current;for(yi=b;null!==yi;){var _=(s=yi).child;if(0!=(2064&s.subtreeFlags)&&null!==_)_.return=s,yi=_;else e:for(s=b;null!==yi;){if(0!=(2048&(u=yi).flags))try{switch(u.tag){case 0:case 11:case 15:xi(9,u)}}catch(e){Ka(u,u.return,e)}if(u===s){yi=null;break e}var x=u.sibling;if(null!==x){x.return=u.return,yi=x;break e}yi=u.return}}if(na=o,Xt(),qt&&"function"==typeof qt.onPostCommitFiberRoot)try{qt.onPostCommitFiberRoot(Ht,e)}catch(e){}r=!0}return r}finally{It=n,ta.transition=t}}return!1}function Za(e,t,n){e=Vn(e,t=ko(0,t=To(n,t),1),1),t=Ma(),null!==e&&(Bt(e,1,t),Ia(e,t))}function Ka(e,t,n){if(3===e.tag)Za(e,e,n);else for(;null!==t;){if(3===t.tag){Za(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Sa||!Sa.has(r))){t=Vn(t,e=Co(t,e=To(n,e),1),1),e=Ma(),null!==t&&(Bt(t,1,e),Ia(t,e));break}}t=t.return}}function es(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Ma(),e.pingedLanes|=e.suspendedLanes&n,ra===e&&(ia&n)===n&&(4===ua||3===ua&&(130023424&ia)===ia&&500>Lt()-ma?Wa(e,0):da|=n),Ia(e,t)}function ts(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Tt,0==(130023424&(Tt<<=1))&&(Tt=4194304)));var n=Ma();null!==(e=$n(e,t))&&(Bt(e,t,n),Ia(e,n))}function ns(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ts(e,n)}function rs(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),ts(e,n)}function os(e,t){return Ut(e,t)}function is(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function as(e,t,n,r){return new is(e,t,n,r)}function ss(e){return!(!(e=e.prototype)||!e.isReactComponent)}function us(e,t){var n=e.alternate;return null===n?((n=as(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ls(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)ss(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case l:return cs(n.children,o,a,t);case c:s=8,o|=8;break;case f:return(e=as(12,n,t,2|o)).elementType=f,e.lanes=a,e;case m:return(e=as(13,n,t,o)).elementType=m,e.lanes=a,e;case y:return(e=as(19,n,t,o)).elementType=y,e.lanes=a,e;case b:return fs(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case d:s=10;break e;case p:s=9;break e;case h:s=11;break e;case g:s=14;break e;case v:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=as(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function cs(e,t,n,r){return(e=as(7,e,r,t)).lanes=n,e}function fs(e,t,n,r){return(e=as(22,e,r,t)).elementType=b,e.lanes=n,e.stateNode={isHidden:!1},e}function ds(e,t,n){return(e=as(6,e,null,t)).lanes=n,e}function ps(e,t,n){return(t=as(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hs(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=q,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mt(0),this.expirationTimes=Mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mt(0),this.identifierPrefix=r,this.onRecoverableError=o,Q&&(this.mutableSourceEagerHydrationData=null)}function ms(e,t,n,r,o,i,a,s,u){return e=new hs(e,t,n,s,u),1===t?(t=1,!0===i&&(t|=8)):t=0,i=as(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qn(i),e}function ys(e){if(!e)return lt;e:{if(T(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ht(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(ht(n))return gt(e,n,t)}return t}function gs(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=P(t))?null:e.stateNode}function vs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function bs(e,t){vs(e,t),(e=e.alternate)&&vs(e,t)}function _s(e){return null===(e=P(e))?null:e.stateNode}function xs(){return null}return ba=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||ft.current)No=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return No=!1,function(e,t,n){switch(t.tag){case 3:Ho(t),Tn();break;case 5:br(t);break;case 1:ht(t.type)&&vt(t);break;case 4:gr(t,t.stateNode.containerInfo);break;case 10:Un(0,t.type._context,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(ut(xr,1&xr.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Zo(e,t,n):(ut(xr,1&xr.current),null!==(e=ii(e,t,n))?e.sibling:null);ut(xr,1&xr.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return ri(e,t,n);t.flags|=128}var o=t.memoizedState;if(null!==o&&(o.rendering=null,o.tail=null,o.lastEffect=null),ut(xr,xr.current),r)break;return null;case 22:case 23:return t.lanes=0,Lo(e,t,n)}return ii(e,t,n)}(e,t,n);No=0!=(131072&e.flags)}else No=!1,hn&&0!=(1048576&t.flags)&&ln(t,tn,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;oi(e,t),e=t.pendingProps;var o=pt(t,ct.current);On(t,n),o=Dr(null,t,r,e,o,n);var a=Or();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ht(r)?(a=!0,vt(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,qn(t),o.updater=tr,t.stateNode=o,o._reactInternals=t,ir(t,r,e,n),t=$o(null,t,r,!0,a,n)):(t.tag=0,hn&&a&&cn(t),Uo(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(oi(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return ss(e)?1:0;if(null!=e){if((e=e.$$typeof)===h)return 11;if(e===g)return 14}return 2}(r),e=Cn(r,e),o){case 0:t=Wo(null,t,r,e,n);break e;case 1:t=Go(null,t,r,e,n);break e;case 11:t=zo(null,t,r,e,n);break e;case 14:t=Do(null,t,r,Cn(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Wo(e,t,r,o=t.elementType===r?o:Cn(r,o),n);case 1:return r=t.type,o=t.pendingProps,Go(e,t,r,o=t.elementType===r?o:Cn(r,o),n);case 3:e:{if(Ho(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,jn(e,t),Xn(t,r,null,n);var s=t.memoizedState;if(r=s.element,Q&&a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=qo(e,t,r,n,o=To(Error(i(423)),t));break e}if(r!==o){t=qo(e,t,r,n,o=To(Error(i(424)),t));break e}for(Q&&(pn=We(t.stateNode.containerInfo),dn=t,hn=!0,yn=null,mn=!1),n=fr(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Tn(),r===o){t=ii(e,t,n);break e}Uo(e,t,r,n)}t=t.child}return t;case 5:return br(t),null===e&&_n(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,W(r,o)?s=null:null!==a&&W(r,a)&&(t.flags|=32),Fo(e,t),Uo(e,t,s,n),t.child;case 6:return null===e&&_n(t),null;case 13:return Zo(e,t,n);case 4:return gr(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=cr(t,null,r,n):Uo(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,zo(e,t,r,o=t.elementType===r?o:Cn(r,o),n);case 7:return Uo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Uo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,Un(0,r,s=o.value),null!==a)if(jt(a.value,s)){if(a.children===o.children&&!ft.current){t=ii(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){s=a.child;for(var l=u.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=Yn(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Dn(a.return,n,t),u.lanes|=n;break}l=l.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Dn(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}Uo(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,On(t,n),r=r(o=Ln(o)),t.flags|=1,Uo(e,t,r,n),t.child;case 14:return o=Cn(r=t.type,t.pendingProps),Do(e,t,r,o=Cn(r.type,o),n);case 15:return Oo(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Cn(r,o),oi(e,t),t.tag=1,ht(r)?(e=!0,vt(t)):e=!1,On(t,n),rr(t,r,o),ir(t,r,o,n),$o(null,t,r,!0,e,n);case 19:return ri(e,t,n);case 22:return Lo(e,t,n)}throw Error(i(156,t.tag))},t.attemptContinuousHydration=function(e){if(13===e.tag){var t=$n(e,134217728);if(null!==t)Aa(t,e,134217728,Ma());bs(e,134217728)}},t.attemptDiscreteHydration=function(e){if(13===e.tag){var t=$n(e,1);if(null!==t)Aa(t,e,1,Ma());bs(e,1)}},t.attemptHydrationAtCurrentPriority=function(e){if(13===e.tag){var t=Ba(e),n=$n(e,t);if(null!==n)Aa(n,e,t,Ma());bs(e,t)}},t.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Et(t.pendingLanes);0!==n&&(At(t,1|n),Ia(t,Lt()),0==(6&na)&&(va(),Xt()))}break;case 13:La((function(){var t=$n(e,1);if(null!==t){var n=Ma();Aa(t,e,1,n)}})),bs(e,1)}},t.batchedUpdates=function(e,t){var n=na;na|=1;try{return e(t)}finally{0===(na=n)&&(va(),Vt&&Xt())}},t.createComponentSelector=function(e){return{$$typeof:Wi,value:e}},t.createContainer=function(e,t,n,r,o,i,a){return ms(e,t,!1,null,0,r,0,i,a)},t.createHasPseudoClassSelector=function(e){return{$$typeof:Gi,value:e}},t.createHydrationContainer=function(e,t,n,r,o,i,a,s,u){return(e=ms(n,r,!0,e,0,i,0,s,u)).context=ys(null),n=e.current,(i=Yn(r=Ma(),o=Ba(n))).callback=null!=t?t:null,Vn(n,i,o),e.current.lanes=o,Bt(e,o,r),Ia(e,r),e},t.createPortal=function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:u,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}},t.createRoleSelector=function(e){return{$$typeof:$i,value:e}},t.createTestNameSelector=function(e){return{$$typeof:Hi,value:e}},t.createTextSelector=function(e){return{$$typeof:qi,value:e}},t.deferredUpdates=function(e){var t=It,n=ta.transition;try{return ta.transition=null,It=16,e()}finally{It=t,ta.transition=n}},t.discreteUpdates=function(e,t,n,r,o){var i=It,a=ta.transition;try{return ta.transition=null,It=1,e(t,n,r,o)}finally{It=i,ta.transition=a,0===na&&va()}},t.findAllNodes=Xi,t.findBoundingRects=function(e,t){if(!ne)throw Error(i(363));t=Xi(e,t),e=[];for(var n=0;n<t.length;n++)e.push(oe(t[n]));for(t=e.length-1;0<t;t--)for(var r=(n=e[t]).x,o=r+n.width,a=n.y,s=a+n.height,u=t-1;0<=u;u--)if(t!==u){var l=e[u],c=l.x,f=c+l.width,d=l.y,p=d+l.height;if(r>=c&&a>=d&&o<=f&&s<=p){e.splice(t,1);break}if(!(r!==c||n.width!==l.width||p<a||d>s)){d>a&&(l.height+=d-a,l.y=a),p<s&&(l.height=s-d),e.splice(t,1);break}if(!(a!==d||n.height!==l.height||f<r||c>o)){c>r&&(l.width+=c-r,l.x=r),f<o&&(l.width=o-c),e.splice(t,1);break}}return e},t.findHostInstance=gs,t.findHostInstanceWithNoPortals=function(e){return null===(e=null!==(e=R(e))?C(e):null)?null:e.stateNode},t.findHostInstanceWithWarning=function(e){return gs(e)},t.flushControlled=function(e){var t=na;na|=1;var n=ta.transition,r=It;try{ta.transition=null,It=1,e()}finally{It=r,ta.transition=n,0===(na=t)&&(va(),Xt())}},t.flushPassiveEffects=Xa,t.flushSync=La,t.focusWithin=function(e,t){if(!ne)throw Error(i(363));for(t=Ji(e=Yi(e),t),t=Array.from(t),e=0;e<t.length;){var n=t[e++];if(!ae(n)){if(5===n.tag&&ue(n.stateNode))return!0;for(n=n.child;null!==n;)t.push(n),n=n.sibling}}return!1},t.getCurrentUpdatePriority=function(){return It},t.getFindAllNodesFailureDescription=function(e,t){if(!ne)throw Error(i(363));var n=0,r=[];e=[Yi(e),0];for(var o=0;o<e.length;){var a=e[o++],s=e[o++],u=t[s];if((5!==a.tag||!ae(a))&&(Vi(a,u)&&(r.push(Qi(u)),++s>n&&(n=s)),s<t.length))for(a=a.child;null!==a;)e.push(a,s),a=a.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(Qi(t[n]));return"findAllNodes was able to match part of the selector:\n "+r.join(" > ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},t.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?A(e.child.stateNode):e.child.stateNode:null},t.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,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:a.ReactCurrentDispatcher,findHostInstanceByFiber:_s,findFiberByHostInstance:e.findFiberByHostInstance||xs,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{Ht=t.inject(e),qt=t}catch(e){}e=!!t.checkDCE}}return e},t.isAlreadyRendering=function(){return!1},t.observeVisibleRects=function(e,t,n,r){if(!ne)throw Error(i(363));e=Xi(e,t);var o=le(e,n,r).disconnect;return{disconnect:function(){o()}}},t.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},t.runWithPriority=function(e,t){var n=It;try{return It=e,t()}finally{It=n}},t.shouldError=function(){return null},t.shouldSuspend=function(){return!1},t.updateContainer=function(e,t,n,r){var o=t.current,i=Ma(),a=Ba(o);return n=ys(n),null===t.context?t.context=n:t.pendingContext=n,(t=Yn(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Vn(o,t,a))&&(Aa(e,o,a,i),Qn(e,o,a)),a},t}),reactReconciler_production_min}var reactReconciler_developmentExports={},reactReconciler_development={get exports(){return reactReconciler_developmentExports},set exports(e){reactReconciler_developmentExports=e}},hasRequiredReactReconciler_development,hasRequiredReactReconciler;function requireReactReconciler_development(){return hasRequiredReactReconciler_development||(hasRequiredReactReconciler_development=1,"production"!==process.env.NODE_ENV&&(reactReconciler_development.exports=function(e){var t={},n=requireReact(),r=requireScheduler(),o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function a(e){if(!i){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u("warn",e,n)}}function s(e){if(!i){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u("error",e,n)}}function u(e,t,n){var r=o.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}var l=Object.assign;function c(e){return e._reactInternals}var f=!1,d=10,p=11,h=12,m=13,y=14,g=15,v=17,b=18,_=19,x=21,S=22,w=23,T=Symbol.for("react.element"),E=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),M=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),z=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen")),D=(Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker"),Symbol.iterator);function O(e){if(null===e||"object"!=typeof e)return null;var t=D&&e[D]||e["@@iterator"];return"function"==typeof t?t:null}function L(e){return e.displayName||"Context"}function F(e){if(null==e)return null;if("number"==typeof e.tag&&s("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case R:return"Fragment";case E:return"Portal";case k:return"Profiler";case P:return"StrictMode";case A:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case M:return L(e)+".Consumer";case C:return L(e._context)+".Provider";case B:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case N:var t=e.displayName||null;return null!==t?t:F(e.type)||"Memo";case U:var n=e,r=n._payload,o=n._init;try{return F(o(r))}catch(e){return null}}return null}function W(e){return e.displayName||"Context"}function G(e){var t,n,r,o,i=e.tag,a=e.type;switch(i){case 24:return"Cache";case 9:return W(a)+".Consumer";case d:return W(a._context)+".Provider";case 18:return"DehydratedFragment";case p:return t=a,n=a.render,r="ForwardRef",o=n.displayName||n.name||"",t.displayName||(""!==o?r+"("+o+")":r);case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(a);case 8:return a===P?"StrictMode":"Mode";case S:return"Offscreen";case h:return"Profiler";case x:return"Scope";case m:return"Suspense";case _:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case v:case 2:case y:case g:if("function"==typeof a)return a.displayName||a.name||null;if("string"==typeof a)return a}return null}var $=16,H=128,q=256,j=512,Y=1024,V=2048,Q=4096,J=8192,X=16384,Z=32768,K=65536,ee=131072,te=1048576,ne=2097152,re=4194304,oe=16777216,ie=33554432,ae=1028,se=12854,ue=8772,le=2064,ce=14680064,fe=o.ReactCurrentOwner;function de(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var r=t;do{0!=(4098&(t=r).flags)&&(n=t.return),r=t.return}while(r)}return 3===t.tag?n:null}function pe(e){if(de(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function he(e){var t=e.alternate;if(!t){var n=de(e);if(null===n)throw new Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){var s=i.return;if(null!==s){r=o=s;continue}break}if(i.child===a.child){for(var u=i.child;u;){if(u===r)return pe(i),e;if(u===o)return pe(i),t;u=u.sibling}throw new Error("Unable to find node on an unmounted component.")}if(r.return!==o.return)r=i,o=a;else{for(var l=!1,c=i.child;c;){if(c===r){l=!0,r=i,o=a;break}if(c===o){l=!0,o=i,r=a;break}c=c.sibling}if(!l){for(c=a.child;c;){if(c===r){l=!0,r=a,o=i;break}if(c===o){l=!0,o=a,r=i;break}c=c.sibling}if(!l)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==o)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==r.tag)throw new Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function me(e){var t=he(e);return null!==t?ye(t):null}function ye(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){var n=ye(t);if(null!==n)return n;t=t.sibling}return null}function ge(e){var t=he(e);return null!==t?ve(t):null}function ve(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){if(4!==t.tag){var n=ve(t);if(null!==n)return n}t=t.sibling}return null}var be=Array.isArray;function _e(e){return be(e)}var xe=e.getPublicInstance,Se=e.getRootHostContext,we=e.getChildHostContext,Te=e.prepareForCommit,Ee=e.resetAfterCommit,Re=e.createInstance,Pe=e.appendInitialChild,ke=e.finalizeInitialChildren,Ce=e.prepareUpdate,Me=e.shouldSetTextContent,Be=e.createTextInstance,Ae=e.scheduleTimeout,Ie=e.cancelTimeout,Ne=e.noTimeout,Ue=e.isPrimaryRenderer,ze=e.warnsIfNotActing,De=e.supportsMutation,Oe=e.supportsPersistence,Le=e.supportsHydration,Fe=e.getInstanceFromNode;e.beforeActiveInstanceBlur,e.afterActiveInstanceBlur;var We=e.preparePortalMount;e.prepareScopeUpdate,e.getInstanceFromScope;var Ge,$e,He,qe,je,Ye,Ve,Qe=e.getCurrentEventPriority,Je=e.detachDeletedInstance,Xe=e.supportsMicrotasks,Ze=e.scheduleMicrotask,Ke=e.supportsTestSelectors,et=e.findFiberRoot,tt=e.getBoundingRect,nt=e.getTextContent,rt=e.isHiddenSubtree,ot=e.matchAccessibilityRole,it=e.setFocusIfFocusable,at=e.setupIntersectionObserver,st=e.appendChild,ut=e.appendChildToContainer,lt=e.commitTextUpdate,ct=e.commitMount,ft=e.commitUpdate,dt=e.insertBefore,pt=e.insertInContainerBefore,ht=e.removeChild,mt=e.removeChildFromContainer,yt=e.resetTextContent,gt=e.hideInstance,vt=e.hideTextInstance,bt=e.unhideInstance,_t=e.unhideTextInstance,xt=e.clearContainer,St=e.cloneInstance,wt=e.createContainerChildSet,Tt=e.appendChildToContainerChildSet,Et=e.finalizeContainerChildren,Rt=e.replaceContainerChildren,Pt=e.cloneHiddenInstance,kt=e.cloneHiddenTextInstance,Ct=e.canHydrateInstance,Mt=e.canHydrateTextInstance,Bt=e.canHydrateSuspenseInstance,At=e.isSuspenseInstancePending,It=e.isSuspenseInstanceFallback,Nt=e.getSuspenseInstanceFallbackErrorDetails,Ut=e.registerSuspenseInstanceRetry,zt=e.getNextHydratableSibling,Dt=e.getFirstHydratableChild,Ot=e.getFirstHydratableChildWithinContainer,Lt=e.getFirstHydratableChildWithinSuspenseInstance,Ft=e.hydrateInstance,Wt=e.hydrateTextInstance,Gt=e.hydrateSuspenseInstance,$t=e.getNextHydratableInstanceAfterSuspenseInstance,Ht=e.commitHydratedContainer,qt=e.commitHydratedSuspenseInstance,jt=e.clearSuspenseBoundary,Yt=e.clearSuspenseBoundaryFromContainer,Vt=e.shouldDeleteUnhydratedTailInstances,Qt=e.didNotMatchHydratedContainerTextInstance,Jt=e.didNotMatchHydratedTextInstance,Xt=e.didNotHydrateInstanceWithinContainer,Zt=e.didNotHydrateInstanceWithinSuspenseInstance,Kt=e.didNotHydrateInstance,en=e.didNotFindHydratableInstanceWithinContainer,tn=e.didNotFindHydratableTextInstanceWithinContainer,nn=e.didNotFindHydratableSuspenseInstanceWithinContainer,rn=e.didNotFindHydratableInstanceWithinSuspenseInstance,on=e.didNotFindHydratableTextInstanceWithinSuspenseInstance,an=e.didNotFindHydratableSuspenseInstanceWithinSuspenseInstance,sn=e.didNotFindHydratableInstance,un=e.didNotFindHydratableTextInstance,ln=e.didNotFindHydratableSuspenseInstance,cn=e.errorHydratingContainer,fn=0;function dn(){}dn.__reactDisabledLog=!0;var pn,hn=o.ReactCurrentDispatcher;function mn(e,t,n){if(void 0===pn)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);pn=r&&r[1]||""}return"\n"+pn+e}var yn,gn=!1,vn="function"==typeof WeakMap?WeakMap:Map;function bn(e,t){if(!e||gn)return"";var n,r=yn.get(e);if(void 0!==r)return r;gn=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=hn.current,hn.current=null,function(){if(0===fn){Ge=console.log,$e=console.info,He=console.warn,qe=console.error,je=console.group,Ye=console.groupCollapsed,Ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:dn,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}fn++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var u=t.stack.split("\n"),c=n.stack.split("\n"),f=u.length-1,d=c.length-1;f>=1&&d>=0&&u[f]!==c[d];)d--;for(;f>=1&&d>=0;f--,d--)if(u[f]!==c[d]){if(1!==f||1!==d)do{if(f--,--d<0||u[f]!==c[d]){var p="\n"+u[f].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),"function"==typeof e&&yn.set(e,p),p}}while(f>=1&&d>=0);break}}}finally{gn=!1,hn.current=o,function(){if(0==--fn){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:l({},e,{value:Ge}),info:l({},e,{value:$e}),warn:l({},e,{value:He}),error:l({},e,{value:qe}),group:l({},e,{value:je}),groupCollapsed:l({},e,{value:Ye}),groupEnd:l({},e,{value:Ve})})}fn<0&&s("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var h=e?e.displayName||e.name:"",m=h?mn(h):"";return"function"==typeof e&&yn.set(e,m),m}function _n(e,t,n){return bn(e,!1)}function xn(e,t,n){if(null==e)return"";if("function"==typeof e)return bn(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return mn(e);switch(e){case A:return mn("Suspense");case I:return mn("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case B:return _n(e.render);case N:return xn(e.type,t,n);case U:var o=e,i=o._payload,a=o._init;try{return xn(a(i),t,n)}catch(e){}}return""}yn=new vn;var Sn=Object.prototype.hasOwnProperty,wn={},Tn=o.ReactDebugCurrentFrame;function En(e){if(e){var t=e._owner,n=xn(e.type,e._source,t?t.type:null);Tn.setExtraStackFrame(n)}else Tn.setExtraStackFrame(null)}function Rn(e,t,n,r,o){var i=Function.call.bind(Sn);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}u=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(En(o),s("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof u),En(null)),u instanceof Error&&!(u.message in wn)&&(wn[u.message]=!0,En(o),s("Failed %s type: %s",n,u.message),En(null))}}var Pn,kn=[];Pn=[];var Cn,Mn=-1;function Bn(e){return{current:e}}function An(e,t){Mn<0?s("Unexpected pop."):(t!==Pn[Mn]&&s("Unexpected Fiber popped."),e.current=kn[Mn],kn[Mn]=null,Pn[Mn]=null,Mn--)}function In(e,t,n){Mn++,kn[Mn]=e.current,Pn[Mn]=n,e.current=t}Cn={};var Nn={};Object.freeze(Nn);var Un=Bn(Nn),zn=Bn(!1),Dn=Nn;function On(e,t,n){return n&&Gn(t)?Dn:Un.current}function Ln(e,t,n){var r=e.stateNode;r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=n}function Fn(e,t){var n=e.type.contextTypes;if(!n)return Nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={};for(var i in n)o[i]=t[i];return Rn(n,o,"context",G(e)||"Unknown"),r&&Ln(e,t,o),o}function Wn(){return zn.current}function Gn(e){var t=e.childContextTypes;return null!=t}function $n(e){An(zn,e),An(Un,e)}function Hn(e){An(zn,e),An(Un,e)}function qn(e,t,n){if(Un.current!==Nn)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");In(Un,t,e),In(zn,n,e)}function jn(e,t,n){var r=e.stateNode,o=t.childContextTypes;if("function"!=typeof r.getChildContext){var i=G(e)||"Unknown";return Cn[i]||(Cn[i]=!0,s("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",i,i)),n}var a=r.getChildContext();for(var u in a)if(!(u in o))throw new Error((G(e)||"Unknown")+'.getChildContext(): key "'+u+'" is not defined in childContextTypes.');return Rn(o,a,"child context",G(e)||"Unknown"),l({},n,a)}function Yn(e){var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||Nn;return Dn=Un.current,In(Un,n,e),In(zn,zn.current,e),!0}function Vn(e,t,n){var r=e.stateNode;if(!r)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var o=jn(e,t,Dn);r.__reactInternalMemoizedMergedChildContext=o,An(zn,e),An(Un,e),In(Un,o,e),In(zn,n,e)}else An(zn,e),In(zn,n,e)}function Qn(e){if(!function(e){return de(e)===e}(e)||1!==e.tag)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case 3:return t.stateNode.context;case 1:if(Gn(t.type))return t.stateNode.__reactInternalMemoizedMergedChildContext}t=t.return}while(null!==t);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}var Jn=16,Xn=Math.clz32?Math.clz32:function(e){var t=e>>>0;if(0===t)return 32;return 31-(Zn(t)/Kn|0)|0},Zn=Math.log,Kn=Math.LN2;var er=16,tr=4194240,nr=1024,rr=2048,or=4096,ir=8192,ar=16384,sr=32768,ur=65536,lr=131072,cr=262144,fr=524288,dr=1048576,pr=2097152,hr=130023424,mr=4194304,yr=8388608,gr=16777216,vr=33554432,br=67108864,_r=mr,xr=134217728,Sr=268435455,wr=268435456,Tr=536870912,Er=1073741824;function Rr(e){return 1&e?"Sync":2&e?"InputContinuousHydration":4&e?"InputContinuous":8&e?"DefaultHydration":e&er?"Default":32&e?"TransitionHydration":e&tr?"Transition":e&hr?"Retry":e&xr?"SelectiveHydration":e&wr?"IdleHydration":e&Tr?"Idle":e&Er?"Offscreen":void 0}var Pr=-1,kr=64,Cr=mr;function Mr(e){switch(Lr(e)){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case er:return er;case 32:return 32;case 64:case 128:case 256:case 512:case nr:case rr:case or:case ir:case ar:case sr:case ur:case lr:case cr:case fr:case dr:case pr:return e&tr;case mr:case yr:case gr:case vr:case br:return e&hr;case xr:return xr;case wr:return wr;case Tr:return Tr;case Er:return Er;default:return s("Should have found matching lanes. This is a bug in React."),e}}function Br(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&Sr;if(0!==a){var s=a&~o;if(0!==s)r=Mr(s);else{var u=a&i;0!==u&&(r=Mr(u))}}else{var l=n&~o;0!==l?r=Mr(l):0!==i&&(r=Mr(i))}if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)){var c=Lr(r),f=Lr(t);if(c>=f||c===er&&0!=(f&tr))return t}0!=(4&r)&&(r|=n&er);var d=e.entangledLanes;if(0!==d)for(var p=e.entanglements,h=r&d;h>0;){var m=Wr(h),y=1<<m;r|=p[m],h&=~y}return r}function Ar(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case er:case 32:case 64:case 128:case 256:case 512:case nr:case rr:case or:case ir:case ar:case sr:case ur:case lr:case cr:case fr:case dr:case pr:return t+5e3;case mr:case yr:case gr:case vr:case br:case xr:case wr:case Tr:case Er:return Pr;default:return s("Should have found matching lanes. This is a bug in React."),Pr}}function Ir(e){var t=-1073741825&e.pendingLanes;return 0!==t?t:t&Er?Er:0}function Nr(e){return 0!=(e&Sr)}function Ur(e){return(e&hr)===e}function zr(e,t){return 0!=(30&t)}function Dr(e){return 0!=(e&tr)}function Or(){var e=kr;return 0==((kr<<=1)&tr)&&(kr=64),e}function Lr(e){return e&-e}function Fr(e){return Lr(e)}function Wr(e){return 31-Xn(e)}function Gr(e){return Wr(e)}function $r(e,t){return 0!=(e&t)}function Hr(e,t){return(e&t)===t}function qr(e,t){return e|t}function jr(e,t){return e&~t}function Yr(e,t){return e&t}function Vr(e){for(var t=[],n=0;n<31;n++)t.push(e);return t}function Qr(e,t,n){e.pendingLanes|=t,t!==Tr&&(e.suspendedLanes=0,e.pingedLanes=0),e.eventTimes[Gr(t)]=n}function Jr(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function Xr(e,t){for(var n=e.entangledLanes|=t,r=e.entanglements,o=n;o;){var i=Wr(o),a=1<<i;a&t|r[i]&t&&(r[i]|=t),o&=~a}}function Zr(e,t,n){if(So)for(var r=e.pendingUpdatersLaneMap;n>0;){var o=Gr(n),i=1<<o;r[o].add(t),n&=~i}}function Kr(e,t){if(So)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;t>0;){var o=Gr(t),i=1<<o,a=n[o];a.size>0&&(a.forEach((function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)})),a.clear()),t&=~i}}var eo=Tr,to=0;function no(){return to}function ro(e){to=e}function oo(e,t){return 0!==e&&e<t}function io(e){var t=Lr(e);return oo(1,t)?oo(4,t)?Nr(t)?16:eo:4:1}var ao=r.unstable_scheduleCallback,so=r.unstable_cancelCallback,uo=r.unstable_shouldYield,lo=r.unstable_requestPaint,co=r.unstable_now,fo=r.unstable_ImmediatePriority,po=r.unstable_UserBlockingPriority,ho=r.unstable_NormalPriority,mo=r.unstable_IdlePriority,yo=r.unstable_yieldValue,go=r.unstable_setDisableYieldValue,vo=null,bo=null,_o=null,xo=!1,So="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;function wo(e){if("function"==typeof yo&&(go(e),i=e),bo&&"function"==typeof bo.setStrictMode)try{bo.setStrictMode(vo,e)}catch(e){xo||(xo=!0,s("React instrumentation encountered an error: %s",e))}}function To(e){_o=e}function Eo(){for(var e=new Map,t=1,n=0;n<31;n++){var r=Rr(t);e.set(t,r),t*=2}return e}function Ro(){null!==_o&&"function"==typeof _o.markCommitStopped&&_o.markCommitStopped()}function Po(e){null!==_o&&"function"==typeof _o.markComponentRenderStarted&&_o.markComponentRenderStarted(e)}function ko(){null!==_o&&"function"==typeof _o.markComponentRenderStopped&&_o.markComponentRenderStopped()}function Co(e){null!==_o&&"function"==typeof _o.markComponentLayoutEffectMountStarted&&_o.markComponentLayoutEffectMountStarted(e)}function Mo(e){null!==_o&&"function"==typeof _o.markComponentLayoutEffectUnmountStarted&&_o.markComponentLayoutEffectUnmountStarted(e)}function Bo(){null!==_o&&"function"==typeof _o.markComponentLayoutEffectUnmountStopped&&_o.markComponentLayoutEffectUnmountStopped()}function Ao(e,t,n){null!==_o&&"function"==typeof _o.markComponentErrored&&_o.markComponentErrored(e,t,n)}function Io(e,t,n){null!==_o&&"function"==typeof _o.markComponentSuspended&&_o.markComponentSuspended(e,t,n)}function No(e){null!==_o&&"function"==typeof _o.markRenderStarted&&_o.markRenderStarted(e)}function Uo(){null!==_o&&"function"==typeof _o.markRenderStopped&&_o.markRenderStopped()}function zo(e,t){null!==_o&&"function"==typeof _o.markStateUpdateScheduled&&_o.markStateUpdateScheduled(e,t)}var Do="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Oo=null,Lo=!1,Fo=!1;function Wo(e){null===Oo?Oo=[e]:Oo.push(e)}function Go(){Lo&&$o()}function $o(){if(!Fo&&null!==Oo){Fo=!0;var e=0,t=no();try{var n=Oo;for(ro(1);e<n.length;e++){var r=n[e];do{r=r(true)}while(null!==r)}Oo=null,Lo=!1}catch(t){throw null!==Oo&&(Oo=Oo.slice(e+1)),ao(fo,$o),t}finally{ro(t),Fo=!1}}return null}function Ho(e){return e.current.memoizedState.isDehydrated}var qo=[],jo=0,Yo=null,Vo=0,Qo=[],Jo=0,Xo=null,Zo=1,Ko="";function ei(){var e=Ko;return(Zo&~function(e){return 1<<oi(e)-1}(Zo)).toString(32)+e}function ti(e,t){ai(),qo[jo++]=Vo,qo[jo++]=Yo,Yo=e,Vo=t}function ni(e,t,n){ai(),Qo[Jo++]=Zo,Qo[Jo++]=Ko,Qo[Jo++]=Xo,Xo=e;var r=Zo,o=Ko,i=oi(r)-1,a=r&~(1<<i),s=n+1,u=oi(t)+i;if(u>30){var l=i-i%5,c=(a&(1<<l)-1).toString(32),f=a>>l,d=i-l,p=oi(t)+d;Zo=1<<p|(s<<d|f),Ko=c+o}else{Zo=1<<u|(s<<i|a),Ko=o}}function ri(e){if(ai(),null!==e.return){ti(e,1),ni(e,1,0)}}function oi(e){return 32-Xn(e)}function ii(e){for(;e===Yo;)Yo=qo[--jo],qo[jo]=null,Vo=qo[--jo],qo[jo]=null;for(;e===Xo;)Xo=Qo[--Jo],Qo[Jo]=null,Ko=Qo[--Jo],Qo[Jo]=null,Zo=Qo[--Jo],Qo[Jo]=null}function ai(){ki()||s("Expected to be hydrating. This is a bug in React. Please file an issue.")}var si=null,ui=null,li=!1,ci=!1,fi=null;function di(){li&&s("We should not be hydrating here. This is a bug in React. Please file a bug.")}function pi(){ci=!0}function hi(e,t,n){return!!Le&&(ui=Lt(t),si=e,li=!0,fi=null,ci=!1,null!==n&&function(e,t){ai(),Qo[Jo++]=Zo,Qo[Jo++]=Ko,Qo[Jo++]=Xo,Zo=t.id,Ko=t.overflow,Xo=e}(e,n),!0)}function mi(e,t){switch(e.tag){case 3:Xt(e.stateNode.containerInfo,t);break;case 5:var n=0!=(1&e.mode);Kt(e.type,e.memoizedProps,e.stateNode,t,n);break;case m:var r=e.memoizedState;null!==r.dehydrated&&Zt(r.dehydrated,t)}}function yi(e,t){mi(e,t);var n,r=((n=xh(5,null,null,0)).elementType="DELETED",n);r.stateNode=t,r.return=e;var o=e.deletions;null===o?(e.deletions=[r],e.flags|=$):o.push(r)}function gi(e,t){if(!ci)switch(e.tag){case 3:var n=e.stateNode.containerInfo;switch(t.tag){case 5:var r=t.type,o=t.pendingProps;en(n,r,o);break;case 6:var i=t.pendingProps;tn(n,i);break;case m:nn(n)}break;case 5:var a=e.type,s=e.memoizedProps,u=e.stateNode;switch(t.tag){case 5:var l=t.type,c=t.pendingProps,f=0!=(1&e.mode);sn(a,s,u,l,c,f);break;case 6:var d=t.pendingProps,p=0!=(1&e.mode);un(a,s,u,d,p);break;case m:ln(a,s,u)}break;case m:var h=e.memoizedState.dehydrated;if(null!==h)switch(t.tag){case 5:var y=t.type,g=t.pendingProps;rn(h,y,g);break;case 6:var v=t.pendingProps;on(h,v);break;case m:an(h)}break;default:return}}function vi(e,t){t.flags=-4097&t.flags|2,gi(e,t)}function bi(e,t){switch(e.tag){case 5:var n=e.type,r=e.pendingProps,o=Ct(t,n,r);return null!==o&&(e.stateNode=o,si=e,ui=Dt(o),!0);case 6:var i=e.pendingProps,a=Mt(t,i);return null!==a&&(e.stateNode=a,si=e,ui=null,!0);case m:var s=Bt(t);if(null!==s){var u={dehydrated:s,treeContext:(ai(),null!==Xo?{id:Zo,overflow:Ko}:null),retryLane:Er};e.memoizedState=u;var l=function(e){var t=xh(b,null,null,0);return t.stateNode=e,t}(s);return l.return=e,e.child=l,si=e,ui=null,!0}return!1;default:return!1}}function _i(e){return 0!=(1&e.mode)&&0==(e.flags&H)}function xi(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Si(e){if(li){var t=ui;if(!t)return _i(e)&&(gi(si,e),xi()),vi(si,e),li=!1,void(si=e);var n=t;if(!bi(e,t)){_i(e)&&(gi(si,e),xi()),t=zt(n);var r=si;if(!t||!bi(e,t))return vi(si,e),li=!1,void(si=e);yi(r,n)}}}function wi(e){for(var t=e.return;null!==t&&5!==t.tag&&3!==t.tag&&t.tag!==m;)t=t.return;si=t}function Ti(e){if(!Le)return!1;if(e!==si)return!1;if(!li)return wi(e),li=!0,!1;if(3!==e.tag&&(5!==e.tag||Vt(e.type)&&!Me(e.type,e.memoizedProps))){var t=ui;if(t)if(_i(e))Ei(e),xi();else for(;t;)yi(e,t),t=zt(t)}return wi(e),ui=e.tag===m?function(e){if(!Le)throw new Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return $t(n)}(e):si?zt(e.stateNode):null,!0}function Ei(e){for(var t=ui;t;)mi(e,t),t=zt(t)}function Ri(){Le&&(si=null,ui=null,li=!1,ci=!1)}function Pi(){null!==fi&&(bp(fi),fi=null)}function ki(){return li}function Ci(e){null===fi?fi=[e]:fi.push(e)}var Mi=o.ReactCurrentBatchConfig;function Bi(e,t){if(Do(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!Sn.call(t,i)||!Do(e[i],t[i]))return!1}return!0}function Ai(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case 5:return mn(e.type);case 16:return mn("Lazy");case m:return mn("Suspense");case _:return mn("SuspenseList");case 0:case 2:case g:return _n(e.type);case p:return _n(e.type.render);case 1:return bn(e.type,!0);default:return""}}function Ii(e){try{var t="",n=e;do{t+=Ai(n),n=n.return}while(n);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var Ni=o.ReactDebugCurrentFrame,Ui=null,zi=!1;function Di(){return null===Ui?"":Ii(Ui)}function Oi(){Ni.getCurrentStack=null,Ui=null,zi=!1}function Li(e){Ni.getCurrentStack=null===e?null:Di,Ui=e,zi=!1}function Fi(e){zi=e}var Wi={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Gi=function(e){var t=[];return e.forEach((function(e){t.push(e)})),t.sort().join(", ")},$i=[],Hi=[],qi=[],ji=[],Yi=[],Vi=[],Qi=new Set;Wi.recordUnsafeLifecycleWarnings=function(e,t){Qi.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&$i.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillMount&&Hi.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&qi.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&ji.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&Yi.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillUpdate&&Vi.push(e))},Wi.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;$i.length>0&&($i.forEach((function(t){e.add(G(t)||"Component"),Qi.add(t.type)})),$i=[]);var t=new Set;Hi.length>0&&(Hi.forEach((function(e){t.add(G(e)||"Component"),Qi.add(e.type)})),Hi=[]);var n=new Set;qi.length>0&&(qi.forEach((function(e){n.add(G(e)||"Component"),Qi.add(e.type)})),qi=[]);var r=new Set;ji.length>0&&(ji.forEach((function(e){r.add(G(e)||"Component"),Qi.add(e.type)})),ji=[]);var o=new Set;Yi.length>0&&(Yi.forEach((function(e){o.add(G(e)||"Component"),Qi.add(e.type)})),Yi=[]);var i=new Set;(Vi.length>0&&(Vi.forEach((function(e){i.add(G(e)||"Component"),Qi.add(e.type)})),Vi=[]),t.size>0)&&s("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",Gi(t));r.size>0&&s("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s",Gi(r));i.size>0&&s("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",Gi(i));e.size>0&&a("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Gi(e));n.size>0&&a("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Gi(n));o.size>0&&a("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Gi(o))};var Ji=new Map,Xi=new Set;function Zi(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Ki(e){try{return ea(e),!1}catch(e){return!0}}function ea(e){return""+e}function ta(e){if(Ki(e))return s("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Zi(e)),ea(e)}function na(e,t){if(e&&e.defaultProps){var n=l({},t),r=e.defaultProps;for(var o in r)void 0===n[o]&&(n[o]=r[o]);return n}return t}Wi.recordLegacyContextWarning=function(e,t){var n=function(e){for(var t=null,n=e;null!==n;)8&n.mode&&(t=n),n=n.return;return t}(e);if(null!==n){if(!Xi.has(e.type)){var r=Ji.get(n);(null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],Ji.set(n,r)),r.push(e))}}else s("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.")},Wi.flushLegacyContextWarning=function(){Ji.forEach((function(e,t){if(0!==e.length){var n=e[0],r=new Set;e.forEach((function(e){r.add(G(e)||"Component"),Xi.add(e.type)}));var o=Gi(r);try{Li(n),s("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",o)}finally{Oi()}}}))},Wi.discardPendingWarnings=function(){$i=[],Hi=[],qi=[],ji=[],Yi=[],Vi=[],Ji=new Map};var ra,oa=Bn(null);ra={};var ia=null,aa=null,sa=null,ua=!1;function la(){ia=null,aa=null,sa=null,ua=!1}function ca(){ua=!0}function fa(){ua=!1}function da(e,t,n){Ue?(In(oa,t._currentValue,e),t._currentValue=n,void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==ra&&s("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=ra):(In(oa,t._currentValue2,e),t._currentValue2=n,void 0!==t._currentRenderer2&&null!==t._currentRenderer2&&t._currentRenderer2!==ra&&s("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer2=ra)}function pa(e,t){var n=oa.current;An(oa,t),Ue?e._currentValue=n:e._currentValue2=n}function ha(e,t,n){for(var r=e;null!==r;){var o=r.alternate;if(Hr(r.childLanes,t)?null===o||Hr(o.childLanes,t)||(o.childLanes=qr(o.childLanes,t)):(r.childLanes=qr(r.childLanes,t),null!==o&&(o.childLanes=qr(o.childLanes,t))),r===n)break;r=r.return}r!==n&&s("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function ma(e,t,n){!function(e,t,n){var r=e.child;null!==r&&(r.return=e);for(;null!==r;){var o=void 0,i=r.dependencies;if(null!==i){o=r.child;for(var a=i.firstContext;null!==a;){if(a.context===t){if(1===r.tag){var s=Fr(n),u=Ba(Pr,s);u.tag=Pa;var l=r.updateQueue;if(null===l);else{var c=l.shared,f=c.pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}r.lanes=qr(r.lanes,n);var p=r.alternate;null!==p&&(p.lanes=qr(p.lanes,n)),ha(r.return,n,e),i.lanes=qr(i.lanes,n);break}a=a.next}}else if(r.tag===d)o=r.type===e.type?null:r.child;else if(r.tag===b){var h=r.return;if(null===h)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");h.lanes=qr(h.lanes,n);var m=h.alternate;null!==m&&(m.lanes=qr(m.lanes,n)),ha(h,n,e),o=r.sibling}else o=r.child;if(null!==o)o.return=r;else for(o=r;null!==o;){if(o===e){o=null;break}var y=o.sibling;if(null!==y){y.return=o.return,o=y;break}o=o.return}r=o}}(e,t,n)}function ya(e,t){ia=e,aa=null,sa=null;var n=e.dependencies;null!==n&&(null!==n.firstContext&&($r(n.lanes,t)&&Dc(),n.firstContext=null))}function ga(e){ua&&s("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=Ue?e._currentValue:e._currentValue2;if(sa===e);else{var n={context:e,memoizedValue:t,next:null};if(null===aa){if(null===ia)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");aa=n,ia.dependencies={lanes:0,firstContext:n}}else aa=aa.next=n}return t}var va=null;function ba(e){null===va?va=[e]:va.push(e)}function _a(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,ba(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ta(e,r)}function xa(e,t,n,r){var o=t.interleaved;null===o?(n.next=n,ba(t)):(n.next=o.next,o.next=n),t.interleaved=n}function Sa(e,t){return Ta(e,t)}var wa=Ta;function Ta(e,t){e.lanes=qr(e.lanes,t);var n=e.alternate;null!==n&&(n.lanes=qr(n.lanes,t)),null===n&&0!=(4098&e.flags)&&Jp(e);for(var r=e,o=e.return;null!==o;)o.childLanes=qr(o.childLanes,t),null!==(n=o.alternate)?n.childLanes=qr(n.childLanes,t):0!=(4098&o.flags)&&Jp(e),r=o,o=o.return;return 3===r.tag?r.stateNode:null}var Ea,Ra,Pa=2,ka=!1;function Ca(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null};e.updateQueue=t}function Ma(e,t){var n=t.updateQueue,r=e.updateQueue;if(n===r){var o={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects};t.updateQueue=o}}function Ba(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Aa(e,t,n){var r=e.updateQueue;if(null===r)return null;var o=r.shared;if(Ra!==o||Ea||(s("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Ea=!0),0!=(2&Md)){var i=o.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),o.pending=t,wa(e,n)}return function(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,ba(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ta(e,r)}(e,o,t,n)}function Ia(e,t,n){var r=t.updateQueue;if(null!==r){var o=r.shared;if(Dr(n)){var i=o.lanes,a=qr(i=Yr(i,e.pendingLanes),n);o.lanes=a,Xr(e,a)}}}function Na(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r){var o=r.updateQueue;if(n===o){var i=null,a=null,s=n.firstBaseUpdate;if(null!==s){var u=s;do{var l={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};null===a?i=a=l:(a.next=l,a=l),u=u.next}while(null!==u);null===a?i=a=t:(a.next=t,a=t)}else i=a=t;return n={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}}var c=n.lastBaseUpdate;null===c?n.firstBaseUpdate=t:c.next=t,n.lastBaseUpdate=t}function Ua(e,t,n,r,o,i){switch(n.tag){case 1:var a=n.payload;if("function"==typeof a){ca();var s=a.call(i,r,o);if(8&e.mode){wo(!0);try{a.call(i,r,o)}finally{wo(!1)}}return fa(),s}return a;case 3:e.flags=-65537&e.flags|H;case 0:var u,c=n.payload;if("function"==typeof c){if(ca(),u=c.call(i,r,o),8&e.mode){wo(!0);try{c.call(i,r,o)}finally{wo(!1)}}fa()}else u=c;return null==u?r:l({},r,u);case Pa:return ka=!0,r}return r}function za(e,t,n,r){var o=e.updateQueue;ka=!1,Ra=o.shared;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var u=s,l=u.next;u.next=null,null===a?i=l:a.next=l,a=u;var c=e.alternate;if(null!==c){var f=c.updateQueue,d=f.lastBaseUpdate;d!==a&&(null===d?f.firstBaseUpdate=l:d.next=l,f.lastBaseUpdate=u)}}if(null!==i){for(var p=o.baseState,h=0,m=null,y=null,g=null,v=i;;){var b=v.lane,_=v.eventTime;if(Hr(r,b)){if(null!==g){var x={eventTime:_,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null};g=g.next=x}if(p=Ua(e,0,v,p,t,n),null!==v.callback&&0!==v.lane){e.flags|=64;var S=o.effects;null===S?o.effects=[v]:S.push(v)}}else{var w={eventTime:_,lane:b,tag:v.tag,payload:v.payload,callback:v.callback,next:null};null===g?(y=g=w,m=p):g=g.next=w,h=qr(h,b)}if(null===(v=v.next)){if(null===(s=o.shared.pending))break;var T=s,E=T.next;T.next=null,v=E,o.lastBaseUpdate=T,o.shared.pending=null}}null===g&&(m=p),o.baseState=m,o.firstBaseUpdate=y,o.lastBaseUpdate=g;var R=o.shared.interleaved;if(null!==R){var P=R;do{h=qr(h,P.lane),P=P.next}while(P!==R)}else null===i&&(o.shared.lanes=0);Cp(h),e.lanes=h,e.memoizedState=p}Ra=null}function Da(e,t){if("function"!=typeof e)throw new Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Oa(){ka=!1}function La(){return ka}function Fa(e,t,n){var r=t.effects;if(t.effects=null,null!==r)for(var o=0;o<r.length;o++){var i=r[o],a=i.callback;null!==a&&(i.callback=null,Da(a,n))}}Ea=!1,Ra=null;var Wa,Ga,$a,Ha,qa,ja,Ya,Va,Qa,Ja,Xa={},Za=(new n.Component).refs;Wa=new Set,Ga=new Set,$a=new Set,Ha=new Set,Va=new Set,qa=new Set,Qa=new Set,Ja=new Set;var Ka=new Set;function es(e,t,n,r){var o=e.memoizedState,i=n(r,o);if(8&e.mode){wo(!0);try{i=n(r,o)}finally{wo(!1)}}ja(t,i);var a=null==i?o:l({},o,i);(e.memoizedState=a,0===e.lanes)&&(e.updateQueue.baseState=a)}Ya=function(e,t){if(null!==e&&"function"!=typeof e){var n=t+"_"+e;Ka.has(n)||(Ka.add(n),s("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},ja=function(e,t){if(void 0===t){var n=F(e)||"Component";qa.has(n)||(qa.add(n),s("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Xa,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Xa);var ts,ns,rs,os,is,as={isMounted:function(e){var t=fe.current;if(null!==t&&1===t.tag){var n=t,r=n.stateNode;r._warnedAboutRefsInRender||s("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",G(n)||"A component"),r._warnedAboutRefsInRender=!0}var o=c(e);return!!o&&de(o)===o},enqueueSetState:function(e,t,n){var r=c(e),o=dp(),i=pp(r),a=Ba(o,i);a.payload=t,null!=n&&(Ya(n,"setState"),a.callback=n);var s=Aa(r,a,i);null!==s&&(mp(s,r,i,o),Ia(s,r,i)),zo(r,i)},enqueueReplaceState:function(e,t,n){var r=c(e),o=dp(),i=pp(r),a=Ba(o,i);a.tag=1,a.payload=t,null!=n&&(Ya(n,"replaceState"),a.callback=n);var s=Aa(r,a,i);null!==s&&(mp(s,r,i,o),Ia(s,r,i)),zo(r,i)},enqueueForceUpdate:function(e,t){var n=c(e),r=dp(),o=pp(n),i=Ba(r,o);i.tag=Pa,null!=t&&(Ya(t,"forceUpdate"),i.callback=t);var a=Aa(n,i,o);null!==a&&(mp(a,n,o,r),Ia(a,n,o)),function(e,t){null!==_o&&"function"==typeof _o.markForceUpdateScheduled&&_o.markForceUpdateScheduled(e,t)}(n,o)}};function ss(e,t,n,r,o,i,a){var u=e.stateNode;if("function"==typeof u.shouldComponentUpdate){var l=u.shouldComponentUpdate(r,i,a);if(8&e.mode){wo(!0);try{l=u.shouldComponentUpdate(r,i,a)}finally{wo(!1)}}return void 0===l&&s("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",F(t)||"Component"),l}return!t.prototype||!t.prototype.isPureReactComponent||(!Bi(n,r)||!Bi(o,i))}function us(e,t){var n;t.updater=as,e.stateNode=t,n=e,t._reactInternals=n,t._reactInternalInstance=Xa}function ls(e,t,n){var r=!1,o=Nn,i=Nn,a=t.contextType;if("contextType"in t&&(!(null===a||void 0!==a&&a.$$typeof===M&&void 0===a._context)&&!Ja.has(t))){Ja.add(t);var u="";u=void 0===a?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof a?" However, it is set to a "+typeof a+".":a.$$typeof===C?" Did you accidentally pass the Context.Provider instead?":void 0!==a._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(a).join(", ")+"}.",s("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",F(t)||"Component",u)}if("object"==typeof a&&null!==a)i=ga(a);else{o=On(0,t,!0);var l=t.contextTypes;i=(r=null!=l)?Fn(e,o):Nn}var c=new t(n,i);if(8&e.mode){wo(!0);try{c=new t(n,i)}finally{wo(!1)}}var f=e.memoizedState=null!==c.state&&void 0!==c.state?c.state:null;if(us(e,c),"function"==typeof t.getDerivedStateFromProps&&null===f){var d=F(t)||"Component";Ga.has(d)||(Ga.add(d),s("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",d,null===c.state?"null":"undefined",d))}if("function"==typeof t.getDerivedStateFromProps||"function"==typeof c.getSnapshotBeforeUpdate){var p=null,h=null,m=null;if("function"==typeof c.componentWillMount&&!0!==c.componentWillMount.__suppressDeprecationWarning?p="componentWillMount":"function"==typeof c.UNSAFE_componentWillMount&&(p="UNSAFE_componentWillMount"),"function"==typeof c.componentWillReceiveProps&&!0!==c.componentWillReceiveProps.__suppressDeprecationWarning?h="componentWillReceiveProps":"function"==typeof c.UNSAFE_componentWillReceiveProps&&(h="UNSAFE_componentWillReceiveProps"),"function"==typeof c.componentWillUpdate&&!0!==c.componentWillUpdate.__suppressDeprecationWarning?m="componentWillUpdate":"function"==typeof c.UNSAFE_componentWillUpdate&&(m="UNSAFE_componentWillUpdate"),null!==p||null!==h||null!==m){var y=F(t)||"Component",g="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ha.has(y)||(Ha.add(y),s("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles",y,g,null!==p?"\n "+p:"",null!==h?"\n "+h:"",null!==m?"\n "+m:""))}}return r&&Ln(e,o,i),c}function cs(e,t,n,r){var o=t.state;if("function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==o){var i=G(e)||"Component";Wa.has(i)||(Wa.add(i),s("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i)),as.enqueueReplaceState(t,t.state,null)}}function fs(e,t,n,r){!function(e,t,n){var r=e.stateNode,o=F(t)||"Component";r.render||(t.prototype&&"function"==typeof t.prototype.render?s("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",o):s("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",o)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||s("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",o),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&s("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",o),r.propTypes&&s("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",o),r.contextType&&s("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",o),r.contextTypes&&s("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",o),t.contextType&&t.contextTypes&&!Qa.has(t)&&(Qa.add(t),s("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",o)),"function"==typeof r.componentShouldUpdate&&s("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",o),t.prototype&&t.prototype.isPureReactComponent&&void 0!==r.shouldComponentUpdate&&s("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",F(t)||"A pure component"),"function"==typeof r.componentDidUnmount&&s("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",o),"function"==typeof r.componentDidReceiveProps&&s("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",o),"function"==typeof r.componentWillRecieveProps&&s("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",o),"function"==typeof r.UNSAFE_componentWillRecieveProps&&s("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",o);var i=r.props!==n;void 0!==r.props&&i&&s("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o,o),r.defaultProps&&s("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",o,o),"function"!=typeof r.getSnapshotBeforeUpdate||"function"==typeof r.componentDidUpdate||$a.has(t)||($a.add(t),s("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",F(t))),"function"==typeof r.getDerivedStateFromProps&&s("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof r.getDerivedStateFromError&&s("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof t.getSnapshotBeforeUpdate&&s("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",o);var a=r.state;a&&("object"!=typeof a||_e(a))&&s("%s.state: must be set to an object or null",o),"function"==typeof r.getChildContext&&"object"!=typeof t.childContextTypes&&s("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",o)}(e,t,n);var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Za,Ca(e);var i=t.contextType;if("object"==typeof i&&null!==i)o.context=ga(i);else{var a=On(0,t,!0);o.context=Fn(e,a)}if(o.state===n){var u=F(t)||"Component";Va.has(u)||(Va.add(u),s("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",u))}8&e.mode&&Wi.recordLegacyContextWarning(e,o),Wi.recordUnsafeLifecycleWarnings(e,o),o.state=e.memoizedState;var l=t.getDerivedStateFromProps;if("function"==typeof l&&(es(e,t,l,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(!function(e,t){var n=t.state;"function"==typeof t.componentWillMount&&t.componentWillMount(),"function"==typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),n!==t.state&&(s("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",G(e)||"Component"),as.enqueueReplaceState(t,t.state,null))}(e,o),za(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount){var c=4;c|=re,0!=(e.mode&Jn)&&(c|=oe),e.flags|=c}}var ds;function ps(e,t,n){var r=n.ref;if(null!==r&&"function"!=typeof r&&"object"!=typeof r){if(8&e.mode&&(!n._owner||!n._self||n._owner.stateNode===n._self)){var o=G(e)||"Component";rs[o]||(s('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r),rs[o]=!0)}if(n._owner){var i,a=n._owner;if(a){var u=a;if(1!==u.tag)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");i=u.stateNode}if(!i)throw new Error("Missing owner for string ref "+r+". This error is likely caused by a bug in React. Please file an issue.");var l=i;!function(e,t){if(Ki(e))s("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Zi(e)),ea(e)}(r,"ref");var c=""+r;if(null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===c)return t.ref;var f=function(e){var t=l.refs;t===Za&&(t=l.refs={}),null===e?delete t[c]:t[c]=e};return f._stringRef=c,f}if("string"!=typeof r)throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+r+") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information.")}return r}function hs(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function ms(e){var t=G(e)||"Component";is[t]||(is[t]=!0,s("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."))}function ys(e){var t=e._payload;return(0,e._init)(t)}function gs(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=$):r.push(n)}}function n(n,r){if(!e)return null;for(var o=r;null!==o;)t(n,o),o=o.sibling;return null}function r(e,t){for(var n=new Map,r=t;null!==r;)null!==r.key?n.set(r.key,r):n.set(r.index,r),r=r.sibling;return n}function o(e,t){var n=wh(e,t);return n.index=0,n.sibling=null,n}function i(t,n,r){if(t.index=r,!e)return t.flags|=te,n;var o=t.alternate;if(null!==o){var i=o.index;return i<n?(t.flags|=2,n):i}return t.flags|=2,n}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){if(null===t||6!==t.tag){var i=Ch(n,e.mode,r);return i.return=e,i}var a=o(t,n);return a.return=e,a}function l(e,t,n,r){var i=n.type;if(i===R)return f(e,t,n.props.children,r,n.key);if(null!==t&&(t.elementType===i||fh(t,n)||"object"==typeof i&&null!==i&&i.$$typeof===U&&ys(i)===t.type)){var a=o(t,n.props);return a.ref=ps(e,t,n),a.return=e,a._debugSource=n._source,a._debugOwner=n._owner,a}var s=Rh(n,e.mode,r);return s.ref=ps(e,t,n),s.return=e,s}function c(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var i=Mh(n,e.mode,r);return i.return=e,i}var a=o(t,n.children||[]);return a.return=e,a}function f(e,t,n,r,i){if(null===t||7!==t.tag){var a=Ph(n,e.mode,r,i);return a.return=e,a}var s=o(t,n);return s.return=e,s}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t){var r=Ch(""+t,e.mode,n);return r.return=e,r}if("object"==typeof t&&null!==t){switch(t.$$typeof){case T:var o=Rh(t,e.mode,n);return o.ref=ps(e,null,t),o.return=e,o;case E:var i=Mh(t,e.mode,n);return i.return=e,i;case U:var a=t._payload;return d(e,(0,t._init)(a),n)}if(_e(t)||O(t)){var s=Ph(t,e.mode,n,null);return s.return=e,s}hs(0,t)}return"function"==typeof t&&ms(e),null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case T:return n.key===o?l(e,t,n,r):null;case E:return n.key===o?c(e,t,n,r):null;case U:var i=n._payload;return p(e,t,(0,n._init)(i),r)}if(_e(n)||O(n))return null!==o?null:f(e,t,n,r,null);hs(0,n)}return"function"==typeof n&&ms(e),null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case T:return l(t,e.get(null===r.key?n:r.key)||null,r,o);case E:return c(t,e.get(null===r.key?n:r.key)||null,r,o);case U:var i=r._payload;return h(e,t,n,(0,r._init)(i),o)}if(_e(r)||O(r))return f(t,e.get(n)||null,r,o,null);hs(0,r)}return"function"==typeof r&&ms(t),null}function m(e,t,n){if("object"!=typeof e||null===e)return t;switch(e.$$typeof){case T:case E:ds(e,n);var r=e.key;if("string"!=typeof r)break;if(null===t){(t=new Set).add(r);break}if(!t.has(r)){t.add(r);break}s("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",r);break;case U:var o=e._payload;m((0,e._init)(o),t,n)}return t}return function u(l,c,f,y){if("object"==typeof f&&null!==f&&f.type===R&&null===f.key&&(f=f.props.children),"object"==typeof f&&null!==f){switch(f.$$typeof){case T:return a(function(e,r,i,a){for(var s=i.key,u=r;null!==u;){if(u.key===s){var l=i.type;if(l===R){if(7===u.tag){n(e,u.sibling);var c=o(u,i.props.children);return c.return=e,c._debugSource=i._source,c._debugOwner=i._owner,c}}else if(u.elementType===l||fh(u,i)||"object"==typeof l&&null!==l&&l.$$typeof===U&&ys(l)===u.type){n(e,u.sibling);var f=o(u,i.props);return f.ref=ps(e,u,i),f.return=e,f._debugSource=i._source,f._debugOwner=i._owner,f}n(e,u);break}t(e,u),u=u.sibling}if(i.type===R){var d=Ph(i.props.children,e.mode,a,i.key);return d.return=e,d}var p=Rh(i,e.mode,a);return p.ref=ps(e,r,i),p.return=e,p}(l,c,f,y));case E:return a(function(e,r,i,a){for(var s=i.key,u=r;null!==u;){if(u.key===s){if(4===u.tag&&u.stateNode.containerInfo===i.containerInfo&&u.stateNode.implementation===i.implementation){n(e,u.sibling);var l=o(u,i.children||[]);return l.return=e,l}n(e,u);break}t(e,u),u=u.sibling}var c=Mh(i,e.mode,a);return c.return=e,c}(l,c,f,y));case U:var g=f._payload;return u(l,c,(0,f._init)(g),y)}if(_e(f))return function(o,a,s,u){for(var l=null,c=0;c<s.length;c++)l=m(s[c],l,o);for(var f=null,y=null,g=a,v=0,b=0,_=null;null!==g&&b<s.length;b++){g.index>b?(_=g,g=null):_=g.sibling;var x=p(o,g,s[b],u);if(null===x){null===g&&(g=_);break}e&&g&&null===x.alternate&&t(o,g),v=i(x,v,b),null===y?f=x:y.sibling=x,y=x,g=_}if(b===s.length)return n(o,g),ki()&&ti(o,b),f;if(null===g){for(;b<s.length;b++){var S=d(o,s[b],u);null!==S&&(v=i(S,v,b),null===y?f=S:y.sibling=S,y=S)}return ki()&&ti(o,b),f}for(var w=r(0,g);b<s.length;b++){var T=h(w,o,b,s[b],u);null!==T&&(e&&null!==T.alternate&&w.delete(null===T.key?b:T.key),v=i(T,v,b),null===y?f=T:y.sibling=T,y=T)}return e&&w.forEach((function(e){return t(o,e)})),ki()&&ti(o,b),f}(l,c,f,y);if(O(f))return function(o,a,u,l){var c=O(u);if("function"!=typeof c)throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");"function"==typeof Symbol&&"Generator"===u[Symbol.toStringTag]&&(ns||s("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),ns=!0),u.entries===c&&(ts||s("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ts=!0);var f=c.call(u);if(f)for(var y=null,g=f.next();!g.done;g=f.next())y=m(g.value,y,o);var v=c.call(u);if(null==v)throw new Error("An iterable object provided no iterator.");for(var b=null,_=null,x=a,S=0,w=0,T=null,E=v.next();null!==x&&!E.done;w++,E=v.next()){x.index>w?(T=x,x=null):T=x.sibling;var R=p(o,x,E.value,l);if(null===R){null===x&&(x=T);break}e&&x&&null===R.alternate&&t(o,x),S=i(R,S,w),null===_?b=R:_.sibling=R,_=R,x=T}if(E.done)return n(o,x),ki()&&ti(o,w),b;if(null===x){for(;!E.done;w++,E=v.next()){var P=d(o,E.value,l);null!==P&&(S=i(P,S,w),null===_?b=P:_.sibling=P,_=P)}return ki()&&ti(o,w),b}for(var k=r(0,x);!E.done;w++,E=v.next()){var C=h(k,o,w,E.value,l);null!==C&&(e&&null!==C.alternate&&k.delete(null===C.key?w:C.key),S=i(C,S,w),null===_?b=C:_.sibling=C,_=C)}return e&&k.forEach((function(e){return t(o,e)})),ki()&&ti(o,w),b}(l,c,f,y);hs(0,f)}return"string"==typeof f&&""!==f||"number"==typeof f?a(function(e,t,r,i){if(null!==t&&6===t.tag){n(e,t.sibling);var a=o(t,r);return a.return=e,a}n(e,t);var s=Ch(r,e.mode,i);return s.return=e,s}(l,c,""+f,y)):("function"==typeof f&&ms(l),n(l,c))}}ts=!1,ns=!1,rs={},os={},is={},ds=function(e,t){if(null!==e&&"object"==typeof e&&e._store&&!e._store.validated&&null==e.key){if("object"!=typeof e._store)throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=G(t)||"Component";os[n]||(os[n]=!0,s('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var vs=gs(!0),bs=gs(!1);function _s(e,t){for(var n=e.child;null!==n;)Th(n,t),n=n.sibling}var xs={},Ss=Bn(xs),ws=Bn(xs),Ts=Bn(xs);function Es(e){if(e===xs)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function Rs(){return Es(Ts.current)}function Ps(e,t){In(Ts,t,e),In(ws,e,e),In(Ss,xs,e);var n=Se(t);An(Ss,e),In(Ss,n,e)}function ks(e){An(Ss,e),An(ws,e),An(Ts,e)}function Cs(){return Es(Ss.current)}function Ms(e){var t=Es(Ts.current),n=Es(Ss.current),r=we(n,e.type,t);n!==r&&(In(ws,e,e),In(Ss,r,e))}function Bs(e){ws.current===e&&(An(Ss,e),An(ws,e))}var As=Bn(0);function Is(e,t){return 0!=(e&t)}function Ns(e){return 1&e}function Us(e,t){return 1&e|t}function zs(e,t){In(As,t,e)}function Ds(e){An(As,e)}function Os(e,t){var n=e.memoizedState;return null!==n?null!==n.dehydrated:(e.memoizedProps,!0)}function Ls(e){for(var t=e;null!==t;){if(t.tag===m){var n=t.memoizedState;if(null!==n){var r=n.dehydrated;if(null===r||At(r)||It(r))return t}}else if(t.tag===_&&void 0!==t.memoizedProps.revealOrder){if(0!=(t.flags&H))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)return null;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 Fs=[];function Ws(){for(var e=0;e<Fs.length;e++){var t=Fs[e];Ue?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}Fs.length=0}var Gs,$s,Hs=o.ReactCurrentDispatcher,qs=o.ReactCurrentBatchConfig;Gs=new Set;var js=0,Ys=null,Vs=null,Qs=null,Js=!1,Xs=!1,Zs=0,Ks=0,eu=null,tu=null,nu=-1,ru=!1;function ou(){var e=eu;null===tu?tu=[e]:tu.push(e)}function iu(){var e=eu;null!==tu&&(nu++,tu[nu]!==e&&function(e){var t=G(Ys);if(!Gs.has(t)&&(Gs.add(t),null!==tu)){for(var n="",r=30,o=0;o<=nu;o++){for(var i=tu[o],a=o===nu?e:i,u=o+1+". "+i;u.length<r;)u+=" ";n+=u+=a+"\n"}s("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}(e))}function au(e){null==e||_e(e)||s("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",eu,typeof e)}function su(){throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.")}function uu(e,t){if(ru)return!1;if(null===t)return s("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",eu),!1;e.length!==t.length&&s("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",eu,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Do(e[n],t[n]))return!1;return!0}function lu(e,t,n,r,o,i){js=i,Ys=t,tu=null!==e?e._debugHookTypes:null,nu=-1,ru=null!==e&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=0,null!==e&&null!==e.memoizedState?Hs.current=ml:Hs.current=null!==tu?hl:pl;var a=n(r,o);if(Xs){var u=0;do{if(Xs=!1,Zs=0,u>=25)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");u+=1,ru=!1,Vs=null,Qs=null,t.updateQueue=null,nu=-1,Hs.current=yl,a=n(r,o)}while(Xs)}Hs.current=dl,t._debugHookTypes=tu;var l=null!==Vs&&null!==Vs.next;if(js=0,Ys=null,Vs=null,Qs=null,eu=null,tu=null,nu=-1,null!==e&&(e.flags&ce)!=(t.flags&ce)&&0!=(1&e.mode)&&s("Internal React error: Expected static flag was missing. Please notify the React team."),Js=!1,l)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return a}function cu(){var e=0!==Zs;return Zs=0,e}function fu(e,t,n){t.updateQueue=e.updateQueue,0!=(t.mode&Jn)?t.flags&=-50333701:t.flags&=-2053,e.lanes=jr(e.lanes,n)}function du(){if(Hs.current=dl,Js){for(var e=Ys.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Js=!1}js=0,Ys=null,Vs=null,Qs=null,tu=null,nu=-1,eu=null,rl=!1,Xs=!1,Zs=0}function pu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qs?Ys.memoizedState=Qs=e:Qs=Qs.next=e,Qs}function hu(){var e,t;if(null===Vs){var n=Ys.alternate;e=null!==n?n.memoizedState:null}else e=Vs.next;if(null!==(t=null===Qs?Ys.memoizedState:Qs.next))t=(Qs=t).next,Vs=e;else{if(null===e)throw new Error("Rendered more hooks than during the previous render.");var r={memoizedState:(Vs=e).memoizedState,baseState:Vs.baseState,baseQueue:Vs.baseQueue,queue:Vs.queue,next:null};null===Qs?Ys.memoizedState=Qs=r:Qs=Qs.next=r}return Qs}function mu(e,t){return"function"==typeof t?t(e):t}function yu(e,t,n){var r,o=pu();r=void 0!==n?n(t):t,o.memoizedState=o.baseState=r;var i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};o.queue=i;var a=i.dispatch=al.bind(null,Ys,i);return[o.memoizedState,a]}function gu(e,t,n){var r=hu(),o=r.queue;if(null===o)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var i=Vs,a=i.baseQueue,u=o.pending;if(null!==u){if(null!==a){var l=a.next,c=u.next;a.next=c,u.next=l}i.baseQueue!==a&&s("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=a=u,o.pending=null}if(null!==a){var f=a.next,d=i.baseState,p=null,h=null,m=null,y=f;do{var g=y.lane;if(Hr(js,g)){if(null!==m){var v={lane:0,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null};m=m.next=v}if(y.hasEagerState)d=y.eagerState;else d=e(d,y.action)}else{var b={lane:g,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null};null===m?(h=m=b,p=d):m=m.next=b,Ys.lanes=qr(Ys.lanes,g),Cp(g)}y=y.next}while(null!==y&&y!==f);null===m?p=d:m.next=h,Do(d,r.memoizedState)||Dc(),r.memoizedState=d,r.baseState=p,r.baseQueue=m,o.lastRenderedState=d}var _=o.interleaved;if(null!==_){var x=_;do{var S=x.lane;Ys.lanes=qr(Ys.lanes,S),Cp(S),x=x.next}while(x!==_)}else null===a&&(o.lanes=0);var w=o.dispatch;return[r.memoizedState,w]}function vu(e,t,n){var r=hu(),o=r.queue;if(null===o)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var i=o.dispatch,a=o.pending,s=r.memoizedState;if(null!==a){o.pending=null;var u=a.next,l=u;do{s=e(s,l.action),l=l.next}while(l!==u);Do(s,r.memoizedState)||Dc(),r.memoizedState=s,null===r.baseQueue&&(r.baseState=s),o.lastRenderedState=s}return[s,i]}function bu(e,t,n){var r,o=Ys,i=pu();if(ki()){if(void 0===n)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=n(),$s||r!==n()&&(s("The result of getServerSnapshot should be cached to avoid an infinite loop"),$s=!0)}else{if(r=t(),!$s){var a=t();Do(r,a)||(s("The result of getSnapshot should be cached to avoid an infinite loop"),$s=!0)}var u=fp();if(null===u)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");zr(0,js)||xu(o,t,r)}i.memoizedState=r;var l={value:r,getSnapshot:t};return i.queue=l,Nu(wu.bind(null,o,l,e),[e]),o.flags|=V,Cu(9,Su.bind(null,o,l,r,t),void 0,null),r}function _u(e,t,n){var r=Ys,o=hu(),i=t();if(!$s){var a=t();Do(i,a)||(s("The result of getSnapshot should be cached to avoid an infinite loop"),$s=!0)}var u=o.memoizedState,l=!Do(u,i);l&&(o.memoizedState=i,Dc());var c=o.queue;if(Uu(wu.bind(null,r,c,e),[e]),c.getSnapshot!==t||l||null!==Qs&&1&Qs.memoizedState.tag){r.flags|=V,Cu(9,Su.bind(null,r,c,i,t),void 0,null);var f=fp();if(null===f)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");zr(0,js)||xu(r,t,i)}return i}function xu(e,t,n){e.flags|=X;var r={getSnapshot:t,value:n},o=Ys.updateQueue;if(null===o)o={lastEffect:null,stores:null},Ys.updateQueue=o,o.stores=[r];else{var i=o.stores;null===i?o.stores=[r]:i.push(r)}}function Su(e,t,n,r){t.value=n,t.getSnapshot=r,Tu(t)&&Eu(e)}function wu(e,t,n){return n((function(){Tu(t)&&Eu(e)}))}function Tu(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!Do(n,r)}catch(e){return!0}}function Eu(e){var t=Sa(e,1);null!==t&&mp(t,e,1,Pr)}function Ru(e){var t=pu();"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:mu,lastRenderedState:e};t.queue=n;var r=n.dispatch=sl.bind(null,Ys,n);return[t.memoizedState,r]}function Pu(e){return gu(mu)}function ku(e){return vu(mu)}function Cu(e,t,n,r){var o={tag:e,create:t,destroy:n,deps:r,next:null},i=Ys.updateQueue;if(null===i)i={lastEffect:null,stores:null},Ys.updateQueue=i,i.lastEffect=o.next=o;else{var a=i.lastEffect;if(null===a)i.lastEffect=o.next=o;else{var s=a.next;a.next=o,o.next=s,i.lastEffect=o}}return o}function Mu(e){var t={current:e};return pu().memoizedState=t,t}function Bu(e){return hu().memoizedState}function Au(e,t,n,r){var o=pu(),i=void 0===r?null:r;Ys.flags|=e,o.memoizedState=Cu(1|t,n,void 0,i)}function Iu(e,t,n,r){var o=hu(),i=void 0===r?null:r,a=void 0;if(null!==Vs){var s=Vs.memoizedState;if(a=s.destroy,null!==i)if(uu(i,s.deps))return void(o.memoizedState=Cu(t,n,a,i))}Ys.flags|=e,o.memoizedState=Cu(1|t,n,a,i)}function Nu(e,t){return 0!=(Ys.mode&Jn)?Au(41945088,8,e,t):Au(8390656,8,e,t)}function Uu(e,t){return Iu(V,8,e,t)}function zu(e,t){return Au(4,2,e,t)}function Du(e,t){return Iu(4,2,e,t)}function Ou(e,t){var n=4;return n|=re,0!=(Ys.mode&Jn)&&(n|=oe),Au(n,4,e,t)}function Lu(e,t){return Iu(4,4,e,t)}function Fu(e,t){if("function"==typeof t){var n=t,r=e();return n(r),function(){n(null)}}if(null!=t){var o=t;o.hasOwnProperty("current")||s("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}");var i=e();return o.current=i,function(){o.current=null}}}function Wu(e,t,n){"function"!=typeof t&&s("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null,o=4;return o|=re,0!=(Ys.mode&Jn)&&(o|=oe),Au(o,4,Fu.bind(null,t,e),r)}function Gu(e,t,n){"function"!=typeof t&&s("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null;return Iu(4,4,Fu.bind(null,t,e),r)}function $u(e,t){}var Hu=$u;function qu(e,t){var n=void 0===t?null:t;return pu().memoizedState=[e,n],e}function ju(e,t){var n=hu(),r=void 0===t?null:t,o=n.memoizedState;if(null!==o&&(null!==r&&uu(r,o[1])))return o[0];return n.memoizedState=[e,r],e}function Yu(e,t){var n=pu(),r=void 0===t?null:t,o=e();return n.memoizedState=[o,r],o}function Vu(e,t){var n=hu(),r=void 0===t?null:t,o=n.memoizedState;if(null!==o&&(null!==r&&uu(r,o[1])))return o[0];var i=e();return n.memoizedState=[i,r],i}function Qu(e){return pu().memoizedState=e,e}function Ju(e){return Zu(hu(),Vs.memoizedState,e)}function Xu(e){var t=hu();return null===Vs?(t.memoizedState=e,e):Zu(t,Vs.memoizedState,e)}function Zu(e,t,n){if(!(0==(21&js))){if(!Do(n,t)){var r=Or();Ys.lanes=qr(Ys.lanes,r),Cp(r),e.baseState=!0}return t}return e.baseState&&(e.baseState=!1,Dc()),e.memoizedState=n,n}function Ku(e,t,n){var r,o,i=no();ro((o=4,0!==(r=i)&&r<o?r:o)),e(!0);var s=qs.transition;qs.transition={};var u=qs.transition;qs.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(ro(i),qs.transition=s,null===s&&u._updatedFibers)u._updatedFibers.size>10&&a("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),u._updatedFibers.clear()}}function el(){var e=Ru(!1),t=e[0],n=e[1],r=Ku.bind(null,n);return pu().memoizedState=r,[t,r]}function tl(){return[Pu()[0],hu().memoizedState]}function nl(){return[ku()[0],hu().memoizedState]}var rl=!1;function ol(){var e,t=pu(),n=fp().identifierPrefix;if(ki()){e=":"+n+"R"+ei();var r=Zs++;r>0&&(e+="H"+r.toString(32)),e+=":"}else{e=":"+n+"r"+(Ks++).toString(32)+":"}return t.memoizedState=e,e}function il(){return hu().memoizedState}function al(e,t,n){"function"==typeof arguments[3]&&s("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=pp(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ul(e))ll(t,o);else{var i=_a(e,t,o,r);if(null!==i){var a=dp();mp(i,e,r,a),cl(i,t,r)}}fl(e,r)}function sl(e,t,n){"function"==typeof arguments[3]&&s("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=pp(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ul(e))ll(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)){var a=t.lastRenderedReducer;if(null!==a){var u;u=Hs.current,Hs.current=vl;try{var l=t.lastRenderedState,c=a(l,n);if(o.hasEagerState=!0,o.eagerState=c,Do(c,l))return void xa(0,t,o)}catch(e){}finally{Hs.current=u}}}var f=_a(e,t,o,r);if(null!==f){var d=dp();mp(f,e,r,d),cl(f,t,r)}}fl(e,r)}function ul(e){var t=e.alternate;return e===Ys||null!==t&&t===Ys}function ll(e,t){Xs=Js=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cl(e,t,n){if(Dr(n)){var r=t.lanes,o=qr(r=Yr(r,e.pendingLanes),n);t.lanes=o,Xr(e,o)}}function fl(e,t,n){zo(e,t)}var dl={readContext:ga,useCallback:su,useContext:su,useEffect:su,useImperativeHandle:su,useInsertionEffect:su,useLayoutEffect:su,useMemo:su,useReducer:su,useRef:su,useState:su,useDebugValue:su,useDeferredValue:su,useTransition:su,useMutableSource:su,useSyncExternalStore:su,useId:su,unstable_isNewReconciler:f},pl=null,hl=null,ml=null,yl=null,gl=null,vl=null,bl=null,_l=function(){s("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},xl=function(){s("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};pl={readContext:function(e){return ga(e)},useCallback:function(e,t){return eu="useCallback",ou(),au(t),qu(e,t)},useContext:function(e){return eu="useContext",ou(),ga(e)},useEffect:function(e,t){return eu="useEffect",ou(),au(t),Nu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",ou(),au(n),Wu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",ou(),au(t),zu(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",ou(),au(t),Ou(e,t)},useMemo:function(e,t){eu="useMemo",ou(),au(t);var n=Hs.current;Hs.current=gl;try{return Yu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",ou();var r=Hs.current;Hs.current=gl;try{return yu(e,t,n)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",ou(),Mu(e)},useState:function(e){eu="useState",ou();var t=Hs.current;Hs.current=gl;try{return Ru(e)}finally{Hs.current=t}},useDebugValue:function(e,t){eu="useDebugValue",ou()},useDeferredValue:function(e){return eu="useDeferredValue",ou(),Qu(e)},useTransition:function(){return eu="useTransition",ou(),el()},useMutableSource:function(e,t,n){eu="useMutableSource",ou()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",ou(),bu(e,t,n)},useId:function(){return eu="useId",ou(),ol()},unstable_isNewReconciler:f},hl={readContext:function(e){return ga(e)},useCallback:function(e,t){return eu="useCallback",iu(),qu(e,t)},useContext:function(e){return eu="useContext",iu(),ga(e)},useEffect:function(e,t){return eu="useEffect",iu(),Nu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",iu(),Wu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",iu(),zu(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",iu(),Ou(e,t)},useMemo:function(e,t){eu="useMemo",iu();var n=Hs.current;Hs.current=gl;try{return Yu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",iu();var r=Hs.current;Hs.current=gl;try{return yu(e,t,n)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",iu(),Mu(e)},useState:function(e){eu="useState",iu();var t=Hs.current;Hs.current=gl;try{return Ru(e)}finally{Hs.current=t}},useDebugValue:function(e,t){eu="useDebugValue",iu()},useDeferredValue:function(e){return eu="useDeferredValue",iu(),Qu(e)},useTransition:function(){return eu="useTransition",iu(),el()},useMutableSource:function(e,t,n){eu="useMutableSource",iu()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",iu(),bu(e,t,n)},useId:function(){return eu="useId",iu(),ol()},unstable_isNewReconciler:f},ml={readContext:function(e){return ga(e)},useCallback:function(e,t){return eu="useCallback",iu(),ju(e,t)},useContext:function(e){return eu="useContext",iu(),ga(e)},useEffect:function(e,t){return eu="useEffect",iu(),Uu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",iu(),Gu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",iu(),Du(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",iu(),Lu(e,t)},useMemo:function(e,t){eu="useMemo",iu();var n=Hs.current;Hs.current=vl;try{return Vu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",iu();var r=Hs.current;Hs.current=vl;try{return gu(e)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",iu(),Bu()},useState:function(e){eu="useState",iu();var t=Hs.current;Hs.current=vl;try{return Pu()}finally{Hs.current=t}},useDebugValue:function(e,t){return eu="useDebugValue",iu(),Hu()},useDeferredValue:function(e){return eu="useDeferredValue",iu(),Ju(e)},useTransition:function(){return eu="useTransition",iu(),tl()},useMutableSource:function(e,t,n){eu="useMutableSource",iu()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",iu(),_u(e,t)},useId:function(){return eu="useId",iu(),il()},unstable_isNewReconciler:f},yl={readContext:function(e){return ga(e)},useCallback:function(e,t){return eu="useCallback",iu(),ju(e,t)},useContext:function(e){return eu="useContext",iu(),ga(e)},useEffect:function(e,t){return eu="useEffect",iu(),Uu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",iu(),Gu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",iu(),Du(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",iu(),Lu(e,t)},useMemo:function(e,t){eu="useMemo",iu();var n=Hs.current;Hs.current=bl;try{return Vu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",iu();var r=Hs.current;Hs.current=bl;try{return vu(e)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",iu(),Bu()},useState:function(e){eu="useState",iu();var t=Hs.current;Hs.current=bl;try{return ku()}finally{Hs.current=t}},useDebugValue:function(e,t){return eu="useDebugValue",iu(),Hu()},useDeferredValue:function(e){return eu="useDeferredValue",iu(),Xu(e)},useTransition:function(){return eu="useTransition",iu(),nl()},useMutableSource:function(e,t,n){eu="useMutableSource",iu()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",iu(),_u(e,t)},useId:function(){return eu="useId",iu(),il()},unstable_isNewReconciler:f},gl={readContext:function(e){return _l(),ga(e)},useCallback:function(e,t){return eu="useCallback",xl(),ou(),qu(e,t)},useContext:function(e){return eu="useContext",xl(),ou(),ga(e)},useEffect:function(e,t){return eu="useEffect",xl(),ou(),Nu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",xl(),ou(),Wu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",xl(),ou(),zu(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",xl(),ou(),Ou(e,t)},useMemo:function(e,t){eu="useMemo",xl(),ou();var n=Hs.current;Hs.current=gl;try{return Yu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",xl(),ou();var r=Hs.current;Hs.current=gl;try{return yu(e,t,n)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",xl(),ou(),Mu(e)},useState:function(e){eu="useState",xl(),ou();var t=Hs.current;Hs.current=gl;try{return Ru(e)}finally{Hs.current=t}},useDebugValue:function(e,t){eu="useDebugValue",xl(),ou()},useDeferredValue:function(e){return eu="useDeferredValue",xl(),ou(),Qu(e)},useTransition:function(){return eu="useTransition",xl(),ou(),el()},useMutableSource:function(e,t,n){eu="useMutableSource",xl(),ou()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",xl(),ou(),bu(e,t,n)},useId:function(){return eu="useId",xl(),ou(),ol()},unstable_isNewReconciler:f},vl={readContext:function(e){return _l(),ga(e)},useCallback:function(e,t){return eu="useCallback",xl(),iu(),ju(e,t)},useContext:function(e){return eu="useContext",xl(),iu(),ga(e)},useEffect:function(e,t){return eu="useEffect",xl(),iu(),Uu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",xl(),iu(),Gu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",xl(),iu(),Du(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",xl(),iu(),Lu(e,t)},useMemo:function(e,t){eu="useMemo",xl(),iu();var n=Hs.current;Hs.current=vl;try{return Vu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",xl(),iu();var r=Hs.current;Hs.current=vl;try{return gu(e)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",xl(),iu(),Bu()},useState:function(e){eu="useState",xl(),iu();var t=Hs.current;Hs.current=vl;try{return Pu()}finally{Hs.current=t}},useDebugValue:function(e,t){return eu="useDebugValue",xl(),iu(),Hu()},useDeferredValue:function(e){return eu="useDeferredValue",xl(),iu(),Ju(e)},useTransition:function(){return eu="useTransition",xl(),iu(),tl()},useMutableSource:function(e,t,n){eu="useMutableSource",xl(),iu()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",xl(),iu(),_u(e,t)},useId:function(){return eu="useId",xl(),iu(),il()},unstable_isNewReconciler:f},bl={readContext:function(e){return _l(),ga(e)},useCallback:function(e,t){return eu="useCallback",xl(),iu(),ju(e,t)},useContext:function(e){return eu="useContext",xl(),iu(),ga(e)},useEffect:function(e,t){return eu="useEffect",xl(),iu(),Uu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",xl(),iu(),Gu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",xl(),iu(),Du(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",xl(),iu(),Lu(e,t)},useMemo:function(e,t){eu="useMemo",xl(),iu();var n=Hs.current;Hs.current=vl;try{return Vu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",xl(),iu();var r=Hs.current;Hs.current=vl;try{return vu(e)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",xl(),iu(),Bu()},useState:function(e){eu="useState",xl(),iu();var t=Hs.current;Hs.current=vl;try{return ku()}finally{Hs.current=t}},useDebugValue:function(e,t){return eu="useDebugValue",xl(),iu(),Hu()},useDeferredValue:function(e){return eu="useDeferredValue",xl(),iu(),Xu(e)},useTransition:function(){return eu="useTransition",xl(),iu(),nl()},useMutableSource:function(e,t,n){eu="useMutableSource",xl(),iu()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",xl(),iu(),_u(e,t)},useId:function(){return eu="useId",xl(),iu(),il()},unstable_isNewReconciler:f};var Sl=r.unstable_now,wl=0,Tl=-1,El=-1,Rl=-1,Pl=!1,kl=!1;function Cl(){return Pl}function Ml(){return wl}function Bl(){wl=Sl()}function Al(e){El=Sl(),e.actualStartTime<0&&(e.actualStartTime=Sl())}function Il(e){El=-1}function Nl(e,t){if(El>=0){var n=Sl()-El;e.actualDuration+=n,t&&(e.selfBaseDuration=n),El=-1}}function Ul(e){if(Tl>=0){var t=Sl()-Tl;Tl=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:return void(n.stateNode.effectDuration+=t);case h:return void(n.stateNode.effectDuration+=t)}n=n.return}}}function zl(e){if(Rl>=0){var t=Sl()-Rl;Rl=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:var r=n.stateNode;return void(null!==r&&(r.passiveEffectDuration+=t));case h:var o=n.stateNode;return void(null!==o&&(o.passiveEffectDuration+=t))}n=n.return}}}function Dl(){Tl=Sl()}function Ol(){Rl=Sl()}function Ll(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Fl(e,t){return{value:e,source:t,stack:Ii(t),digest:null}}function Wl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Gl(e,t){try{0;var n=t.value,r=t.source,o=t.stack,i=null!==o?o:"";if(null!=n&&n._suppressLogging){if(1===e.tag)return;console.error(n)}var a=r?G(r):null,s=(a?"The above error occurred in the <"+a+"> component:":"The above error occurred in one of your React components:")+"\n"+i+"\n\n"+(3===e.tag?"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries.":"React will try to recreate this component tree from scratch using the error boundary you provided, "+(G(e)||"Anonymous")+".");console.error(s)}catch(e){setTimeout((function(){throw e}))}}var $l="function"==typeof WeakMap?WeakMap:Map;function Hl(e,t,n){var r=Ba(Pr,n);r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){Lp(o),Gl(e,t)},r}function ql(e,t,n){var r=Ba(Pr,n);r.tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var i=t.value;r.payload=function(){return o(i)},r.callback=function(){dh(e),Gl(e,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){var n;dh(e),Gl(e,t),"function"!=typeof o&&(n=this,null===Jd?Jd=new Set([n]):Jd.add(n));var r=t.value,i=t.stack;this.componentDidCatch(r,{componentStack:null!==i?i:""}),"function"!=typeof o&&($r(e.lanes,1)||s("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",G(e)||"Unknown"))}),r}function jl(e,t,n){var r,o=e.pingCache;if(null===o?(o=e.pingCache=new $l,r=new Set,o.set(t,r)):void 0===(r=o.get(t))&&(r=new Set,o.set(t,r)),!r.has(n)){r.add(n);var i=Gp.bind(null,e,t,n);So&&Kp(e,n),t.then(i,i)}}function Yl(e){var t=e;do{if(t.tag===m&&Os(t))return t;t=t.return}while(null!==t);return null}function Vl(e,t,n,r,o){if(0==(1&e.mode)){if(e===t)e.flags|=K;else{if(e.flags|=H,n.flags|=ee,n.flags&=-52805,1===n.tag)if(null===n.alternate)n.tag=v;else{var i=Ba(Pr,1);i.tag=Pa,Aa(n,i,1)}n.lanes=qr(n.lanes,1)}return e}return e.flags|=K,e.lanes=o,e}function Ql(e,t,n,r,o){if(n.flags|=Z,So&&Kp(e,o),null!==r&&"object"==typeof r&&"function"==typeof r.then){var i=r;!function(e,t){var n=e.tag;if(0==(1&e.mode)&&(0===n||n===p||n===g)){var r=e.alternate;r?(e.updateQueue=r.updateQueue,e.memoizedState=r.memoizedState,e.lanes=r.lanes):(e.updateQueue=null,e.memoizedState=null)}}(n),ki()&&1&n.mode&&pi();var a=Yl(t);if(null!==a)return a.flags&=-257,Vl(a,t,n,0,o),1&a.mode&&jl(e,i,o),void function(e,t,n,r){var o=e.updateQueue;if(null===o){var i=new Set;i.add(n),e.updateQueue=i}else o.add(n)}(a,0,i);if(0==(1&o))return jl(e,i,o),void Mp();r=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.")}else if(ki()&&1&n.mode){pi();var s=Yl(t);if(null!==s)return 0==(s.flags&K)&&(s.flags|=q),Vl(s,t,n,0,o),void Ci(Fl(r,n))}!function(e){4!==zd&&(zd=2);null===Wd?Wd=[e]:Wd.push(e)}(r=Fl(r,n));var u=t;do{switch(u.tag){case 3:var l=r;u.flags|=K;var c=Fr(o);return u.lanes=qr(u.lanes,c),void Na(u,Hl(u,l,c));case 1:var f=r,d=u.type,h=u.stateNode;if(0==(u.flags&H)&&("function"==typeof d.getDerivedStateFromError||null!==h&&"function"==typeof h.componentDidCatch&&!Op(h))){u.flags|=K;var m=Fr(o);return u.lanes=qr(u.lanes,m),void Na(u,ql(u,f,m))}}u=u.return}while(null!==u)}var Jl,Xl,Zl,Kl,ec,tc,nc,rc,oc=o.ReactCurrentOwner,ic=!1;function ac(e,t,n,r){t.child=null===e?bs(t,null,n,r):vs(t,e.child,n,r)}function sc(e,t,n,r,o){if(t.type!==t.elementType){var i=n.propTypes;i&&Rn(i,r,"prop",F(n))}var a,s,u=n.render,l=t.ref;if(ya(t,o),Po(t),oc.current=t,Fi(!0),a=lu(e,t,u,r,l,o),s=cu(),8&t.mode){wo(!0);try{a=lu(e,t,u,r,l,o),s=cu()}finally{wo(!1)}}return Fi(!1),ko(),null===e||ic?(ki()&&s&&ri(t),t.flags|=1,ac(e,t,a,o),t.child):(fu(e,t,o),Lc(e,t,o))}function uc(e,t,n,r,o){if(null===e){var i=n.type;if(function(e){return"function"==typeof e&&!Sh(e)&&void 0===e.defaultProps}(i)&&null===n.compare&&void 0===n.defaultProps){var a;return a=uh(i),t.tag=g,t.type=a,bc(t,i),lc(e,t,a,r,o)}var s=i.propTypes;s&&Rn(s,r,"prop",F(i));var u=Eh(n.type,null,r,t,t.mode,o);return u.ref=t.ref,u.return=t,t.child=u,u}var l=n.type,c=l.propTypes;c&&Rn(c,r,"prop",F(l));var f=e.child;if(!Fc(e,o)){var d=f.memoizedProps,p=n.compare;if((p=null!==p?p:Bi)(d,r)&&e.ref===t.ref)return Lc(e,t,o)}t.flags|=1;var h=wh(f,r);return h.ref=t.ref,h.return=t,t.child=h,h}function lc(e,t,n,r,o){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===U){var a=i,s=a._payload,u=a._init;try{i=u(s)}catch(e){i=null}var l=i&&i.propTypes;l&&Rn(l,r,"prop",F(i))}}if(null!==e){var c=e.memoizedProps;if(Bi(c,r)&&e.ref===t.ref&&t.type===e.type){if(ic=!1,t.pendingProps=r=c,!Fc(e,o))return t.lanes=e.lanes,Lc(e,t,o);0!=(e.flags&ee)&&(ic=!0)}}return dc(e,t,n,r,o)}function cc(e,t,n){var r,o=t.pendingProps,i=o.children,a=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(0==(1&t.mode)){var s={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=s,wp(t,n)}else{if(!$r(n,Er)){var u;if(null!==a)u=qr(a.baseLanes,n);else u=n;t.lanes=t.childLanes=Er;var l={baseLanes:u,cachePool:null,transitions:null};return t.memoizedState=l,t.updateQueue=null,wp(t,u),null}var c={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=c,wp(t,null!==a?a.baseLanes:n)}else null!==a?(r=qr(a.baseLanes,n),t.memoizedState=null):r=n,wp(t,r);return ac(e,t,i,n),t.child}function fc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=j,t.flags|=ne)}function dc(e,t,n,r,o){if(t.type!==t.elementType){var i=n.propTypes;i&&Rn(i,r,"prop",F(n))}var a,s,u;if(a=Fn(t,On(0,n,!0)),ya(t,o),Po(t),oc.current=t,Fi(!0),s=lu(e,t,n,r,a,o),u=cu(),8&t.mode){wo(!0);try{s=lu(e,t,n,r,a,o),u=cu()}finally{wo(!1)}}return Fi(!1),ko(),null===e||ic?(ki()&&u&&ri(t),t.flags|=1,ac(e,t,s,o),t.child):(fu(e,t,o),Lc(e,t,o))}function pc(e,t,n,r,o){switch(Wh(t)){case!1:var i=t.stateNode,a=new(0,t.type)(t.memoizedProps,i.context).state;i.updater.enqueueSetState(i,a,null);break;case!0:t.flags|=H,t.flags|=K;var u=new Error("Simulated error coming from DevTools"),l=Fr(o);t.lanes=qr(t.lanes,l),Na(t,ql(t,Fl(u,t),l))}if(t.type!==t.elementType){var c=n.propTypes;c&&Rn(c,r,"prop",F(n))}var f,d;Gn(n)?(f=!0,Yn(t)):f=!1,ya(t,o),null===t.stateNode?(Oc(e,t),ls(t,n,r),fs(t,n,r,o),d=!0):d=null===e?function(e,t,n,r){var o=e.stateNode,i=e.memoizedProps;o.props=i;var a=o.context,s=t.contextType,u=Nn;u="object"==typeof s&&null!==s?ga(s):Fn(e,On(0,t,!0));var l=t.getDerivedStateFromProps,c="function"==typeof l||"function"==typeof o.getSnapshotBeforeUpdate;c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||i===n&&a===u||cs(e,o,n,u),Oa();var f=e.memoizedState,d=o.state=f;if(za(e,n,o,r),d=e.memoizedState,i===n&&f===d&&!Wn()&&!La()){if("function"==typeof o.componentDidMount){var p=4;p|=re,0!=(e.mode&Jn)&&(p|=oe),e.flags|=p}return!1}"function"==typeof l&&(es(e,t,l,n),d=e.memoizedState);var h=La()||ss(e,t,i,n,f,d,u);if(h){if(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount){var m=4;m|=re,0!=(e.mode&Jn)&&(m|=oe),e.flags|=m}}else{if("function"==typeof o.componentDidMount){var y=4;y|=re,0!=(e.mode&Jn)&&(y|=oe),e.flags|=y}e.memoizedProps=n,e.memoizedState=d}return o.props=n,o.state=d,o.context=u,h}(t,n,r,o):function(e,t,n,r,o){var i=t.stateNode;Ma(e,t);var a=t.memoizedProps,s=t.type===t.elementType?a:na(t.type,a);i.props=s;var u=t.pendingProps,l=i.context,c=n.contextType,f=Nn;f="object"==typeof c&&null!==c?ga(c):Fn(t,On(0,n,!0));var d=n.getDerivedStateFromProps,p="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate;p||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||a===u&&l===f||cs(t,i,r,f),Oa();var h=t.memoizedState,m=i.state=h;if(za(t,r,i,o),m=t.memoizedState,a===u&&h===m&&!Wn()&&!La())return"function"==typeof i.componentDidUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof i.getSnapshotBeforeUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=Y)),!1;"function"==typeof d&&(es(t,n,d,r),m=t.memoizedState);var y=La()||ss(t,n,s,r,h,m,f)||!1;return y?(p||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,f),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,f)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=Y)):("function"==typeof i.componentDidUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof i.getSnapshotBeforeUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=Y)),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=f,y}(e,t,n,r,o);var p=hc(e,t,n,d,f,o),h=t.stateNode;return d&&h.props!==r&&(tc||s("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",G(t)||"a component"),tc=!0),p}function hc(e,t,n,r,o,i){fc(e,t);var a=0!=(t.flags&H);if(!r&&!a)return o&&Vn(t,n,!1),Lc(e,t,i);var s,u=t.stateNode;if(oc.current=t,a&&"function"!=typeof n.getDerivedStateFromError)s=null,Il();else{if(Po(t),Fi(!0),s=u.render(),8&t.mode){wo(!0);try{u.render()}finally{wo(!1)}}Fi(!1),ko()}return t.flags|=1,null!==e&&a?function(e,t,n,r){t.child=vs(t,e.child,null,r),t.child=vs(t,null,n,r)}(e,t,s,i):ac(e,t,s,i),t.memoizedState=u.state,o&&Vn(t,n,!0),t.child}function mc(e){var t=e.stateNode;t.pendingContext?qn(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qn(e,t.context,!1),Ps(e,t.containerInfo)}function yc(e,t,n){if(mc(t),null===e)throw new Error("Should have a current fiber. This is a bug in React.");var r=t.pendingProps,o=t.memoizedState,i=o.element;Ma(e,t),za(t,r,null,n);var a=t.memoizedState;t.stateNode;var s=a.element;if(Le&&o.isDehydrated){var u={element:s,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions};if(t.updateQueue.baseState=u,t.memoizedState=u,t.flags&q)return gc(e,t,s,n,Fl(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t));if(s!==i)return gc(e,t,s,n,Fl(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t));!function(e){if(!Le)return!1;var t=e.stateNode.containerInfo;ui=Ot(t),si=e,li=!0,fi=null,ci=!1}(t);var l=bs(t,null,s,n);t.child=l;for(var c=l;c;)c.flags=-3&c.flags|Q,c=c.sibling}else{if(Ri(),s===i)return Lc(e,t,n);ac(e,t,s,n)}return t.child}function gc(e,t,n,r,o){return Ri(),Ci(o),t.flags|=q,ac(e,t,n,r),t.child}function vc(e,t,n,r){Oc(e,t);var o=t.pendingProps,i=n,a=i._payload,s=(0,i._init)(a);t.type=s;var u=t.tag=function(e){if("function"==typeof e)return Sh(e)?1:0;if(null!=e){var t=e.$$typeof;if(t===B)return p;if(t===N)return y}return 2}(s),l=na(s,o);switch(u){case 0:return bc(t,s),t.type=s=uh(s),dc(null,t,s,l,r);case 1:return t.type=s=lh(s),pc(null,t,s,l,r);case p:return t.type=s=ch(s),sc(null,t,s,l,r);case y:if(t.type!==t.elementType){var c=s.propTypes;c&&Rn(c,l,"prop",F(s))}return uc(null,t,s,na(s.type,l),r)}var f="";throw null!==s&&"object"==typeof s&&s.$$typeof===U&&(f=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+s+". Lazy element type must resolve to a class or function."+f)}function bc(e,t){if(t&&t.childContextTypes&&s("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),null!==e.ref){var n="",r=function(){if(null===Ui)return null;var e=Ui._debugOwner;return null!=e?G(e):null}();r&&(n+="\n\nCheck the render method of `"+r+"`.");var o=r||"",i=e._debugSource;i&&(o=i.fileName+":"+i.lineNumber),ec[o]||(ec[o]=!0,s("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if("function"==typeof t.getDerivedStateFromProps){var a=F(t)||"Unknown";Kl[a]||(s("%s: Function components do not support getDerivedStateFromProps.",a),Kl[a]=!0)}if("object"==typeof t.contextType&&null!==t.contextType){var u=F(t)||"Unknown";Zl[u]||(s("%s: Function components do not support contextType.",u),Zl[u]=!0)}}Jl={},Xl={},Zl={},Kl={},ec={},tc=!1,nc={},rc={};var _c={dehydrated:null,treeContext:null,retryLane:0};function xc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sc(e,t,n){var r=t.pendingProps;$h(t)&&(t.flags|=H);var o=As.current,i=!1,a=0!=(t.flags&H);if(a||function(e,t,n,r){return(null===t||null!==t.memoizedState)&&Is(e,2)}(o,e)?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o=o|1),zs(t,o=Ns(o)),null===e){Si(t);var u=t.memoizedState;if(null!==u){var l=u.dehydrated;if(null!==l)return function(e,t,n){0==(1&e.mode)?(s("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=1):It(t)?e.lanes=8:e.lanes=Er;return null}(t,l)}var c=r.children,f=r.fallback;if(i){var d=function(e,t,n,r){var o,i,a=e.mode,s=e.child,u={mode:"hidden",children:t};0==(1&a)&&null!==s?((o=s).childLanes=0,o.pendingProps=u,2&e.mode&&(o.actualDuration=0,o.actualStartTime=-1,o.selfBaseDuration=0,o.treeBaseDuration=0),i=Ph(n,a,r,null)):(o=Tc(u,a),i=Ph(n,a,r,null));return o.return=e,i.return=e,o.sibling=i,e.child=o,i}(t,c,f,n);return t.child.memoizedState=xc(n),t.memoizedState=_c,d}return wc(t,c)}var p=e.memoizedState;if(null!==p){var h=p.dehydrated;if(null!==h)return function(e,t,n,r,o,i,a){if(n){if(t.flags&q)return t.flags&=-257,Rc(e,t,a,Wl(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")));if(null!==t.memoizedState)return t.child=e.child,t.flags|=H,null;var s=function(e,t,n,r,o){var i=t.mode,a=Tc({mode:"visible",children:n},i),s=Ph(r,i,o,null);s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,0!=(1&t.mode)&&vs(t,e.child,null,o);return s}(e,t,r.children,r.fallback,a);return t.child.memoizedState=xc(a),t.memoizedState=_c,s}if(di(),0==(1&t.mode))return Rc(e,t,a,null);if(It(o)){var u,l,c,f=Nt(o);return u=f.digest,l=f.message,c=f.stack,Rc(e,t,a,Wl(l?new Error(l):new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),u,c))}var d=$r(a,e.childLanes);if(ic||d){var p=fp();if(null!==p){var h=function(e,t){var n;switch(Lr(t)){case 4:n=2;break;case er:n=8;break;case 64:case 128:case 256:case 512:case nr:case rr:case or:case ir:case ar:case sr:case ur:case lr:case cr:case fr:case dr:case pr:case mr:case yr:case gr:case vr:case br:n=32;break;case Tr:n=wr;break;default:n=0}return 0!=(n&(e.suspendedLanes|t))?0:n}(p,a);if(0!==h&&h!==i.retryLane){i.retryLane=h;var m=Pr;Sa(e,h),mp(p,e,h,m)}}return Mp(),Rc(e,t,a,Wl(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}if(At(o)){t.flags|=H,t.child=e.child;var y=Hp.bind(null,e);return Ut(o,y),null}hi(t,o,i.treeContext);var g=wc(t,r.children);return g.flags|=Q,g}(e,t,a,r,h,p,n)}if(i){var m=r.fallback,y=function(e,t,n,r,o){var i,a,s=t.mode,u=e.child,l=u.sibling,c={mode:"hidden",children:n};if(0==(1&s)&&t.child!==u){(i=t.child).childLanes=0,i.pendingProps=c,2&t.mode&&(i.actualDuration=0,i.actualStartTime=-1,i.selfBaseDuration=u.selfBaseDuration,i.treeBaseDuration=u.treeBaseDuration),t.deletions=null}else(i=Ec(u,c)).subtreeFlags=u.subtreeFlags&ce;null!==l?a=wh(l,r):(a=Ph(r,s,o,null)).flags|=2;return a.return=t,i.return=t,i.sibling=a,t.child=i,a}(e,t,r.children,m,n),g=t.child,v=e.child.memoizedState;return g.memoizedState=null===v?xc(n):function(e,t){return{baseLanes:qr(e.baseLanes,t),cachePool:null,transitions:e.transitions}}(v,n),g.childLanes=function(e,t){return jr(e.childLanes,t)}(e,n),t.memoizedState=_c,y}var b=function(e,t,n,r){var o=e.child,i=o.sibling,a=Ec(o,{mode:"visible",children:n});0==(1&t.mode)&&(a.lanes=r);if(a.return=t,a.sibling=null,null!==i){var s=t.deletions;null===s?(t.deletions=[i],t.flags|=$):s.push(i)}return t.child=a,a}(e,t,r.children,n);return t.memoizedState=null,b}function wc(e,t,n){var r=Tc({mode:"visible",children:t},e.mode);return r.return=e,e.child=r,r}function Tc(e,t,n){return kh(e,t,0,null)}function Ec(e,t){return wh(e,t)}function Rc(e,t,n,r){null!==r&&Ci(r),vs(t,e.child,null,n);var o=wc(t,t.pendingProps.children);return o.flags|=2,t.memoizedState=null,o}function Pc(e,t,n){e.lanes=qr(e.lanes,t);var r=e.alternate;null!==r&&(r.lanes=qr(r.lanes,t)),ha(e.return,t,n)}function kc(e,t){var n=_e(e),r=!n&&"function"==typeof O(e);if(n||r){var o=n?"array":"iterable";return s("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",o,t,o),!1}return!0}function Cc(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Mc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail,a=r.children;!function(e){if(void 0!==e&&"forwards"!==e&&"backwards"!==e&&"together"!==e&&!nc[e])if(nc[e]=!0,"string"==typeof e)switch(e.toLowerCase()){case"together":case"forwards":case"backwards":s('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break;case"forward":case"backward":s('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break;default:s('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}else s('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}(o),function(e,t){void 0===e||rc[e]||("collapsed"!==e&&"hidden"!==e?(rc[e]=!0,s('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):"forwards"!==t&&"backwards"!==t&&(rc[e]=!0,s('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}(i,o),function(e,t){if(("forwards"===t||"backwards"===t)&&null!=e&&!1!==e)if(_e(e)){for(var n=0;n<e.length;n++)if(!kc(e[n],n))return}else{var r=O(e);if("function"==typeof r){var o=r.call(e);if(o)for(var i=o.next(),a=0;!i.done;i=o.next()){if(!kc(i.value,a))return;a++}}else s('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}(a,o),ac(e,t,a,n);var u=As.current;Is(u,2)?(u=Us(u,2),t.flags|=H):(null!==e&&0!=(e.flags&H)&&function(e,t,n){for(var r=t;null!==r;){if(r.tag===m)null!==r.memoizedState&&Pc(r,n,e);else if(r.tag===_)Pc(r,n,e);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}(t,t.child,n),u=Ns(u));if(zs(t,u),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":var l,c=function(e){for(var t=e,n=null;null!==t;){var r=t.alternate;null!==r&&null===Ls(r)&&(n=t),t=t.sibling}return n}(t.child);null===c?(l=t.child,t.child=null):(l=c.sibling,c.sibling=null),Cc(t,!1,l,c,i);break;case"backwards":var f=null,d=t.child;for(t.child=null;null!==d;){var p=d.alternate;if(null!==p&&null===Ls(p)){t.child=d;break}var h=d.sibling;d.sibling=f,f=d,d=h}Cc(t,!0,f,null,i);break;case"together":Cc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}var Bc=!1;var Ac,Ic,Nc,Uc,zc=!1;function Dc(){ic=!0}function Oc(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lc(e,t,n){return null!==e&&(t.dependencies=e.dependencies),Il(),Cp(t.lanes),$r(n,t.childLanes)?(function(e,t){if(null!==e&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(null!==t.child){var n=t.child,r=wh(n,n.pendingProps);for(t.child=r,r.return=t;null!==n.sibling;)n=n.sibling,(r=r.sibling=wh(n,n.pendingProps)).return=t;r.sibling=null}}(e,t),t.child):null}function Fc(e,t){return!!$r(e.lanes,t)}function Wc(e,t,n){if(t._debugNeedsRemount&&null!==e)return function(e,t,n){var r=t.return;if(null===r)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===r.child)r.child=n;else{var o=r.child;if(null===o)throw new Error("Expected parent to have a child.");for(;o.sibling!==t;)if(null===(o=o.sibling))throw new Error("Expected to find the previous sibling.");o.sibling=n}var i=r.deletions;return null===i?(r.deletions=[e],r.flags|=$):i.push(e),n.flags|=2,n}(e,t,Eh(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(null!==e)if(e.memoizedProps!==t.pendingProps||Wn()||t.type!==e.type)ic=!0;else{if(!Fc(e,n)&&0==(t.flags&H))return ic=!1,function(e,t,n){switch(t.tag){case 3:mc(t),t.stateNode,Ri();break;case 5:Ms(t);break;case 1:Gn(t.type)&&Yn(t);break;case 4:Ps(t,t.stateNode.containerInfo);break;case d:var r=t.memoizedProps.value;da(t,t.type._context,r);break;case h:$r(n,t.childLanes)&&(t.flags|=4);var o=t.stateNode;o.effectDuration=0,o.passiveEffectDuration=0;break;case m:var i=t.memoizedState;if(null!==i){if(null!==i.dehydrated)return zs(t,Ns(As.current)),t.flags|=H,null;if($r(n,t.child.childLanes))return Sc(e,t,n);zs(t,Ns(As.current));var a=Lc(e,t,n);return null!==a?a.sibling:null}zs(t,Ns(As.current));break;case _:var s=0!=(e.flags&H),u=$r(n,t.childLanes);if(s){if(u)return Mc(e,t,n);t.flags|=H}var l=t.memoizedState;if(null!==l&&(l.rendering=null,l.tail=null,l.lastEffect=null),zs(t,As.current),u)break;return null;case S:case w:return t.lanes=0,cc(e,t,n)}return Lc(e,t,n)}(e,t,n);ic=0!=(e.flags&ee)}else if(ic=!1,ki()&&function(e){return ai(),0!=(e.flags&te)}(t)){var r=t.index;ni(t,(ai(),Vo),r)}switch(t.lanes=0,t.tag){case 2:return function(e,t,n,r){Oc(e,t);var o,i,a,u=t.pendingProps;if(o=Fn(t,On(0,n,!1)),ya(t,r),Po(t),n.prototype&&"function"==typeof n.prototype.render){var l=F(n)||"Unknown";Jl[l]||(s("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",l,l),Jl[l]=!0)}if(8&t.mode&&Wi.recordLegacyContextWarning(t,null),Fi(!0),oc.current=t,i=lu(null,t,n,u,o,r),a=cu(),Fi(!1),ko(),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var c=F(n)||"Unknown";Xl[c]||(s("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",c,c,c),Xl[c]=!0)}if("object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var f=F(n)||"Unknown";Xl[f]||(s("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",f,f,f),Xl[f]=!0),t.tag=1,t.memoizedState=null,t.updateQueue=null;var d=!1;return Gn(n)?(d=!0,Yn(t)):d=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ca(t),us(t,i),fs(t,n,u,r),hc(null,t,n,!0,d,r)}if(t.tag=0,8&t.mode){wo(!0);try{i=lu(null,t,n,u,o,r),a=cu()}finally{wo(!1)}}return ki()&&a&&ri(t),ac(null,t,i,r),bc(t,n),t.child}(e,t,t.type,n);case 16:return vc(e,t,t.elementType,n);case 0:var o=t.type,i=t.pendingProps;return dc(e,t,o,t.elementType===o?i:na(o,i),n);case 1:var a=t.type,u=t.pendingProps;return pc(e,t,a,t.elementType===a?u:na(a,u),n);case 3:return yc(e,t,n);case 5:return function(e,t,n){Ms(t),null===e&&Si(t);var r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children;return Me(r,o)?a=null:null!==i&&Me(r,i)&&(t.flags|=32),fc(e,t),ac(e,t,a,n),t.child}(e,t,n);case 6:return function(e,t){return null===e&&Si(t),null}(e,t);case m:return Sc(e,t,n);case 4:return function(e,t,n){Ps(t,t.stateNode.containerInfo);var r=t.pendingProps;return null===e?t.child=vs(t,null,r,n):ac(e,t,r,n),t.child}(e,t,n);case p:var l=t.type,c=t.pendingProps;return sc(e,t,l,t.elementType===l?c:na(l,c),n);case 7:return function(e,t,n){return ac(e,t,t.pendingProps,n),t.child}(e,t,n);case 8:return function(e,t,n){return ac(e,t,t.pendingProps.children,n),t.child}(e,t,n);case h:return function(e,t,n){t.flags|=4;var r=t.stateNode;return r.effectDuration=0,r.passiveEffectDuration=0,ac(e,t,t.pendingProps.children,n),t.child}(e,t,n);case d:return function(e,t,n){var r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value;"value"in o||Bc||(Bc=!0,s("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var u=t.type.propTypes;if(u&&Rn(u,o,"prop","Context.Provider"),da(t,r,a),null!==i){var l=i.value;if(Do(l,a)){if(i.children===o.children&&!Wn())return Lc(e,t,n)}else ma(t,r,n)}return ac(e,t,o.children,n),t.child}(e,t,n);case 9:return function(e,t,n){var r=t.type;void 0===r._context?r!==r.Consumer&&(zc||(zc=!0,s("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var o=t.pendingProps.children;"function"!=typeof o&&s("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),ya(t,n);var i,a=ga(r);return Po(t),oc.current=t,Fi(!0),i=o(a),Fi(!1),ko(),t.flags|=1,ac(e,t,i,n),t.child}(e,t,n);case y:var f=t.type,b=na(f,t.pendingProps);if(t.type!==t.elementType){var T=f.propTypes;T&&Rn(T,b,"prop",F(f))}return uc(e,t,f,b=na(f.type,b),n);case g:return lc(e,t,t.type,t.pendingProps,n);case v:var E=t.type,R=t.pendingProps;return function(e,t,n,r,o){var i;return Oc(e,t),t.tag=1,Gn(n)?(i=!0,Yn(t)):i=!1,ya(t,o),ls(t,n,r),fs(t,n,r,o),hc(null,t,n,!0,i,o)}(e,t,E,t.elementType===E?R:na(E,R),n);case _:return Mc(e,t,n);case x:break;case S:return cc(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Gc(e){e.flags|=4}function $c(e){e.flags|=j,e.flags|=ne}function Hc(e,t){if(null!==e&&e.child===t.child)return!0;if(0!=(t.flags&$))return!1;for(var n=t.child;null!==n;){if(0!=(n.flags&se)||0!=(n.subtreeFlags&se))return!1;n=n.sibling}return!0}if(De)Ac=function(e,t,n,r){for(var o=t.child;null!==o;){if(5===o.tag||6===o.tag)Pe(e,o.stateNode);else if(4===o.tag);else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)return;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Ic=function(e,t){},Nc=function(e,t,n,r,o){var i=e.memoizedProps;if(i!==r){var a=t.stateNode,s=Cs(),u=Ce(a,n,i,r,o,s);t.updateQueue=u,u&&Gc(t)}},Uc=function(e,t,n,r){n!==r&&Gc(t)};else if(Oe){Ac=function(e,t,n,r){for(var o=t.child;null!==o;){if(5===o.tag){var i=o.stateNode;if(n&&r){var a=o.memoizedProps,s=o.type;i=Pt(i,s,a,o)}Pe(e,i)}else if(6===o.tag){var u=o.stateNode;if(n&&r){var l=o.memoizedProps;u=kt(u,l,o)}Pe(e,u)}else if(4===o.tag);else if(o.tag===S&&null!==o.memoizedState){var c=o.child;null!==c&&(c.return=o),Ac(e,o,!0,!0)}else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)return;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};var qc=function(e,t,n,r){for(var o=t.child;null!==o;){if(5===o.tag){var i=o.stateNode;if(n&&r){var a=o.memoizedProps,s=o.type;i=Pt(i,s,a,o)}Tt(e,i)}else if(6===o.tag){var u=o.stateNode;if(n&&r){var l=o.memoizedProps;u=kt(u,l,o)}Tt(e,u)}else if(4===o.tag);else if(o.tag===S&&null!==o.memoizedState){var c=o.child;null!==c&&(c.return=o),qc(e,o,!0,!0)}else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)return;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};Ic=function(e,t){var n=t.stateNode;if(Hc(e,t));else{var r=n.containerInfo,o=wt(r);qc(o,t,!1,!1),n.pendingChildren=o,Gc(t),Et(r,o)}},Nc=function(e,t,n,r,o){var i=e.stateNode,a=e.memoizedProps,s=Hc(e,t);if(s&&a===r)t.stateNode=i;else{var u=t.stateNode,l=Cs(),c=null;if(a!==r&&(c=Ce(u,n,a,r,o,l)),s&&null===c)t.stateNode=i;else{var f=St(i,c,n,a,r,t,s,u);ke(f,n,r,o,l)&&Gc(t),t.stateNode=f,s?Gc(t):Ac(f,t,!1,!1)}}},Uc=function(e,t,n,r){if(n!==r){var o=Rs(),i=Cs();t.stateNode=Be(r,o,i,t),Gc(t)}else t.stateNode=e.stateNode}}else Ic=function(e,t){},Nc=function(e,t,n,r,o){},Uc=function(e,t,n,r){};function jc(e,t){if(!ki())switch(e.tailMode){case"hidden":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":for(var o=e.tail,i=null;null!==o;)null!==o.alternate&&(i=o),o=o.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Yc(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t){if(0!=(2&e.mode)){for(var o=e.selfBaseDuration,i=e.child;null!==i;)n=qr(n,qr(i.lanes,i.childLanes)),r|=i.subtreeFlags&ce,r|=i.flags&ce,o+=i.treeBaseDuration,i=i.sibling;e.treeBaseDuration=o}else for(var a=e.child;null!==a;)n=qr(n,qr(a.lanes,a.childLanes)),r|=a.subtreeFlags&ce,r|=a.flags&ce,a.return=e,a=a.sibling;e.subtreeFlags|=r}else{if(0!=(2&e.mode)){for(var s=e.actualDuration,u=e.selfBaseDuration,l=e.child;null!==l;)n=qr(n,qr(l.lanes,l.childLanes)),r|=l.subtreeFlags,r|=l.flags,s+=l.actualDuration,u+=l.treeBaseDuration,l=l.sibling;e.actualDuration=s,e.treeBaseDuration=u}else for(var c=e.child;null!==c;)n=qr(n,qr(c.lanes,c.childLanes)),r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;e.subtreeFlags|=r}return e.childLanes=n,t}function Vc(e,t,n){if(li&&null!==ui&&0!=(1&t.mode)&&0==(t.flags&H))return Ei(t),Ri(),t.flags|=98560,!1;var r=Ti(t);if(null!==n&&null!==n.dehydrated){if(null===e){if(!r)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(function(e){if(!Le)throw new Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Gt(n,e)}(t),Yc(t),0!=(2&t.mode))if(null!==n){var o=t.child;null!==o&&(t.treeBaseDuration-=o.treeBaseDuration)}return!1}if(Ri(),0==(t.flags&H)&&(t.memoizedState=null),t.flags|=4,Yc(t),0!=(2&t.mode)&&null!==n){var i=t.child;null!==i&&(t.treeBaseDuration-=i.treeBaseDuration)}return!1}return Pi(),!0}function Qc(e,t,n){var r=t.pendingProps;switch(ii(t),t.tag){case 2:case 16:case g:case 0:case p:case 7:case 8:case h:case 9:case y:return Yc(t),null;case 1:return Gn(t.type)&&$n(t),Yc(t),null;case 3:var o=t.stateNode;if(ks(t),Hn(t),Ws(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null===e||null===e.child)if(Ti(t))Gc(t);else if(null!==e)e.memoizedState.isDehydrated&&0==(t.flags&q)||(t.flags|=Y,Pi());return Ic(e,t),Yc(t),null;case 5:Bs(t);var i=Rs(),a=t.type;if(null!==e&&null!=t.stateNode)Nc(e,t,a,r,i),e.ref!==t.ref&&$c(t);else{if(!r){if(null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Yc(t),null}var s=Cs();if(Ti(t))(function(e,t,n){if(!Le)throw new Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var r=e.stateNode,o=!ci,i=Ft(r,e.type,e.memoizedProps,t,n,e,o);return e.updateQueue=i,null!==i})(t,i,s)&&Gc(t);else{var u=Re(a,r,i,s,t);Ac(u,t,!1,!1),t.stateNode=u,ke(u,a,r,i,s)&&Gc(t)}null!==t.ref&&$c(t)}return Yc(t),null;case 6:var l=r;if(e&&null!=t.stateNode){var c=e.memoizedProps;Uc(e,t,c,l)}else{if("string"!=typeof l&&null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var f=Rs(),b=Cs();Ti(t)?function(e){if(!Le)throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var t=e.stateNode,n=e.memoizedProps,r=Wt(t,n,e,!ci);if(r){var o=si;if(null!==o)switch(o.tag){case 3:var i=o.stateNode.containerInfo,a=0!=(1&o.mode);Qt(i,t,n,a);break;case 5:var s=o.type,u=o.memoizedProps,l=o.stateNode,c=0!=(1&o.mode);Jt(s,u,l,t,n,c)}}return r}(t)&&Gc(t):t.stateNode=Be(l,f,b,t)}return Yc(t),null;case m:Ds(t);var T=t.memoizedState;if(null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated)if(!Vc(e,t,T))return t.flags&K?t:null;if(0!=(t.flags&H))return t.lanes=n,0!=(2&t.mode)&&Ll(t),t;var E=null!==T;if(E!==(null!==e&&null!==e.memoizedState))if(E)if(t.child.flags|=J,0!=(1&t.mode))null===e&&(!0!==t.memoizedProps.unstable_avoidThisFallback||!0)||Is(As.current,1)?0===zd&&(zd=3):Mp();if(null!==t.updateQueue&&(t.flags|=4),Yc(t),0!=(2&t.mode)&&E){var R=t.child;null!==R&&(t.treeBaseDuration-=R.treeBaseDuration)}return null;case 4:return ks(t),Ic(e,t),null===e&&We(t.stateNode.containerInfo),Yc(t),null;case d:return pa(t.type._context,t),Yc(t),null;case v:return Gn(t.type)&&$n(t),Yc(t),null;case _:Ds(t);var P=t.memoizedState;if(null===P)return Yc(t),null;var k=0!=(t.flags&H),C=P.rendering;if(null===C)if(k)jc(P,!1);else{if(!(0===zd&&(null===e||0==(e.flags&H))))for(var M=t.child;null!==M;){var B=Ls(M);if(null!==B){k=!0,t.flags|=H,jc(P,!1);var A=B.updateQueue;return null!==A&&(t.updateQueue=A,t.flags|=4),t.subtreeFlags=0,_s(t,n),zs(t,Us(As.current,2)),t.child}M=M.sibling}null!==P.tail&&co()>Yd()&&(t.flags|=H,k=!0,jc(P,!1),t.lanes=_r)}else{if(!k){var I=Ls(C);if(null!==I){t.flags|=H,k=!0;var N=I.updateQueue;if(null!==N&&(t.updateQueue=N,t.flags|=4),jc(P,!0),null===P.tail&&"hidden"===P.tailMode&&!C.alternate&&!ki())return Yc(t),null}else 2*co()-P.renderingStartTime>Yd()&&n!==Er&&(t.flags|=H,k=!0,jc(P,!1),t.lanes=_r)}if(P.isBackwards)C.sibling=t.child,t.child=C;else{var U=P.last;null!==U?U.sibling=C:t.child=C,P.last=C}}if(null!==P.tail){var z=P.tail;P.rendering=z,P.tail=z.sibling,P.renderingStartTime=co(),z.sibling=null;var D=As.current;return zs(t,D=k?Us(D,2):Ns(D)),z}return Yc(t),null;case x:break;case S:case w:Tp(t);var O=null!==t.memoizedState;if(null!==e)null!==e.memoizedState!==O&&(t.flags|=J);return O&&0!=(1&t.mode)?$r(Nd,Er)&&(Yc(t),De&&6&t.subtreeFlags&&(t.flags|=J)):Yc(t),null;case 24:case 25:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Jc(e,t,n){switch(ii(t),t.tag){case 1:Gn(t.type)&&$n(t);var r=t.flags;return r&K?(t.flags=-65537&r|H,0!=(2&t.mode)&&Ll(t),t):null;case 3:t.stateNode,ks(t),Hn(t),Ws();var o=t.flags;return 0!=(o&K)&&0==(o&H)?(t.flags=-65537&o|H,t):null;case 5:return Bs(t),null;case m:Ds(t);var i=t.memoizedState;if(null!==i&&null!==i.dehydrated){if(null===t.alternate)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Ri()}var a=t.flags;return a&K?(t.flags=-65537&a|H,0!=(2&t.mode)&&Ll(t),t):null;case _:return Ds(t),null;case 4:return ks(t),null;case d:return pa(t.type._context,t),null;case S:case w:return Tp(t),null;default:return null}}function Xc(e,t,n){switch(ii(t),t.tag){case 1:var r=t.type.childContextTypes;null!=r&&$n(t);break;case 3:t.stateNode,ks(t),Hn(t),Ws();break;case 5:Bs(t);break;case 4:ks(t);break;case m:case _:Ds(t);break;case d:pa(t.type._context,t);break;case S:case w:Tp(t)}}function Zc(e,t,n,r,o,i,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Kc=Zc;if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var ef=document.createElement("react");Kc=function(e,t,n,r,o,i,a,s,u){if("undefined"==typeof document||null===document)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var l=document.createEvent("Event"),c=!1,f=!0,d=window.event,p=Object.getOwnPropertyDescriptor(window,"event");function h(){ef.removeEventListener(x,g,!1),void 0!==window.event&&window.hasOwnProperty("event")&&(window.event=d)}var m,y=Array.prototype.slice.call(arguments,3);function g(){c=!0,h(),t.apply(n,y),f=!1}var v=!1,b=!1;function _(e){if(m=e.error,v=!0,null===m&&0===e.colno&&0===e.lineno&&(b=!0),e.defaultPrevented&&null!=m&&"object"==typeof m)try{m._suppressLogging=!0}catch(e){}}var x="react-"+(e||"invokeguardedcallback");if(window.addEventListener("error",_),ef.addEventListener(x,g,!1),l.initEvent(x,!1,!1),ef.dispatchEvent(l),p&&Object.defineProperty(window,"event",p),c&&f&&(v?b&&(m=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):m=new Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."),this.onError(m)),window.removeEventListener("error",_),!c)return h(),Zc.apply(this,arguments)}}var tf=Kc,nf=!1,rf=null,of={onError:function(e){nf=!0,rf=e}};function af(e,t,n,r,o,i,a,s,u){nf=!1,rf=null,tf.apply(of,arguments)}function sf(){if(nf){var e=rf;return nf=!1,rf=null,e}throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}var uf;uf=new Set;var lf=!1,cf=!1,ff="function"==typeof WeakSet?WeakSet:Set,df=null,pf=null,hf=null;function mf(e,t){try{Ef(4,e)}catch(n){Wp(e,t,n)}}function yf(e,t,n){try{!function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,2&e.mode)try{Dl(),t.componentWillUnmount()}finally{Ul(e)}else t.componentWillUnmount()}(e,n)}catch(n){Wp(e,t,n)}}function gf(e,t){try{Cf(e)}catch(n){Wp(e,t,n)}}function vf(e,t){var n=e.ref;if(null!==n)if("function"==typeof n){var r;try{if(2&e.mode)try{Dl(),r=n(null)}finally{Ul(e)}else r=n(null)}catch(n){Wp(e,t,n)}"function"==typeof r&&s("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",G(e))}else n.current=null}function bf(e,t,n){try{n()}catch(n){Wp(e,t,n)}}var _f=!1;function xf(e,t){Te(e.containerInfo),df=t,function(){for(;null!==df;){var e=df,t=e.child;0!=(e.subtreeFlags&ae)&&null!==t?(t.return=e,df=t):Sf()}}();var n=_f;return _f=!1,n}function Sf(){for(;null!==df;){var e=df;Li(e);try{wf(e)}catch(t){Wp(e,e.return,t)}Oi();var t=e.sibling;if(null!==t)return t.return=e.return,void(df=t);df=e.return}}function wf(e){var t=e.alternate;if(0!=(e.flags&Y)){switch(Li(e),e.tag){case 0:case p:case g:break;case 1:if(null!==t){var n=t.memoizedProps,r=t.memoizedState,o=e.stateNode;e.type!==e.elementType||tc||(o.props!==e.memoizedProps&&s("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(e)||"instance"),o.state!==e.memoizedState&&s("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(e)||"instance"));var i=o.getSnapshotBeforeUpdate(e.elementType===e.type?n:na(e.type,n),r),a=uf;void 0!==i||a.has(e.type)||(a.add(e.type),s("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",G(e))),o.__reactInternalSnapshotBeforeUpdate=i}break;case 3:if(De){var u=e.stateNode;xt(u.containerInfo)}break;case 5:case 6:case 4:case v:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Oi()}}function Tf(e,t,n){var r,o=t.updateQueue,i=null!==o?o.lastEffect:null;if(null!==i){var a=i.next,s=a;do{if((s.tag&e)===e){var u=s.destroy;s.destroy=void 0,void 0!==u&&(0!=(8&e)?(r=t,null!==_o&&"function"==typeof _o.markComponentPassiveEffectUnmountStarted&&_o.markComponentPassiveEffectUnmountStarted(r)):0!=(4&e)&&Mo(t),0!=(2&e)&&oh(!0),bf(t,n,u),0!=(2&e)&&oh(!1),0!=(8&e)?null!==_o&&"function"==typeof _o.markComponentPassiveEffectUnmountStopped&&_o.markComponentPassiveEffectUnmountStopped():0!=(4&e)&&Bo())}s=s.next}while(s!==a)}}function Ef(e,t){var n,r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next,a=i;do{if((a.tag&e)===e){0!=(8&e)?(n=t,null!==_o&&"function"==typeof _o.markComponentPassiveEffectMountStarted&&_o.markComponentPassiveEffectMountStarted(n)):0!=(4&e)&&Co(t);var u=a.create;0!=(2&e)&&oh(!0),a.destroy=u(),0!=(2&e)&&oh(!1),0!=(8&e)?null!==_o&&"function"==typeof _o.markComponentPassiveEffectMountStopped&&_o.markComponentPassiveEffectMountStopped():0!=(4&e)&&null!==_o&&"function"==typeof _o.markComponentLayoutEffectMountStopped&&_o.markComponentLayoutEffectMountStopped();var l=a.destroy;if(void 0!==l&&"function"!=typeof l){var c=void 0;s("%s must not return anything besides a function, which is used for clean-up.%s",c=0!=(4&a.tag)?"useLayoutEffect":0!=(2&a.tag)?"useInsertionEffect":"useEffect",null===l?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof l.then?"\n\nIt looks like you wrote "+c+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+c+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching":" You returned: "+l)}}a=a.next}while(a!==i)}}function Rf(e,t){if(0!=(4&t.flags)&&t.tag===h){var n=t.stateNode.passiveEffectDuration,r=t.memoizedProps,o=r.id,i=r.onPostCommit,a=Ml(),s=null===t.alternate?"mount":"update";Cl()&&(s="nested-update"),"function"==typeof i&&i(o,s,n,a);var u=t.return;e:for(;null!==u;){switch(u.tag){case 3:u.stateNode.passiveEffectDuration+=n;break e;case h:u.stateNode.passiveEffectDuration+=n;break e}u=u.return}}}function Pf(e,t,n,r){if(0!=(n.flags&ue))switch(n.tag){case 0:case p:case g:if(!cf)if(2&n.mode)try{Dl(),Ef(5,n)}finally{Ul(n)}else Ef(5,n);break;case 1:var o=n.stateNode;if(4&n.flags&&!cf)if(null===t)if(n.type!==n.elementType||tc||(o.props!==n.memoizedProps&&s("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(n)||"instance"),o.state!==n.memoizedState&&s("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(n)||"instance")),2&n.mode)try{Dl(),o.componentDidMount()}finally{Ul(n)}else o.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:na(n.type,t.memoizedProps),a=t.memoizedState;if(n.type!==n.elementType||tc||(o.props!==n.memoizedProps&&s("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(n)||"instance"),o.state!==n.memoizedState&&s("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(n)||"instance")),2&n.mode)try{Dl(),o.componentDidUpdate(i,a,o.__reactInternalSnapshotBeforeUpdate)}finally{Ul(n)}else o.componentDidUpdate(i,a,o.__reactInternalSnapshotBeforeUpdate)}var u=n.updateQueue;null!==u&&(n.type!==n.elementType||tc||(o.props!==n.memoizedProps&&s("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(n)||"instance"),o.state!==n.memoizedState&&s("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(n)||"instance")),Fa(0,u,o));break;case 3:var l=n.updateQueue;if(null!==l){var c=null;if(null!==n.child)switch(n.child.tag){case 5:c=xe(n.child.stateNode);break;case 1:c=n.child.stateNode}Fa(0,l,c)}break;case 5:var f=n.stateNode;if(null===t&&4&n.flags){var d=n.type,y=n.memoizedProps;ct(f,d,y,n)}break;case 6:case 4:break;case h:var b=n.memoizedProps,T=b.onCommit,E=b.onRender,R=n.stateNode.effectDuration,P=Ml(),k=null===t?"mount":"update";Cl()&&(k="nested-update"),"function"==typeof E&&E(n.memoizedProps.id,k,n.actualDuration,n.treeBaseDuration,n.actualStartTime,P),"function"==typeof T&&T(n.memoizedProps.id,k,R,P),M=n,ep.push(M),Xd||(Xd=!0,th(ho,(function(){return Dp(),null})));var C=n.return;e:for(;null!==C;){switch(C.tag){case 3:C.stateNode.effectDuration+=R;break e;case h:C.stateNode.effectDuration+=R;break e}C=C.return}break;case m:!function(e,t){if(!Le)return;if(null===t.memoizedState){var n=t.alternate;if(null!==n){var r=n.memoizedState;if(null!==r){var o=r.dehydrated;null!==o&&qt(o)}}}}(0,n);break;case _:case v:case x:case S:case w:case 25:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}var M;cf||n.flags&j&&Cf(n)}function kf(e){switch(e.tag){case 0:case p:case g:if(2&e.mode)try{Dl(),mf(e,e.return)}finally{Ul(e)}else mf(e,e.return);break;case 1:var t=e.stateNode;"function"==typeof t.componentDidMount&&function(e,t,n){try{n.componentDidMount()}catch(n){Wp(e,t,n)}}(e,e.return,t),gf(e,e.return);break;case 5:gf(e,e.return)}}function Cf(e){var t=e.ref;if(null!==t){var n,r=e.stateNode;if(5===e.tag)n=xe(r);else n=r;if("function"==typeof t){var o;if(2&e.mode)try{Dl(),o=t(n)}finally{Ul(e)}else o=t(n);"function"==typeof o&&s("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",G(e))}else t.hasOwnProperty("current")||s("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",G(e)),t.current=n}}function Mf(e){var t=e.alternate;if(null!==t&&(e.alternate=null,Mf(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag){var n=e.stateNode;null!==n&&Je(n)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Bf(e){return 5===e.tag||3===e.tag||4===e.tag}function Af(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||Bf(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&t.tag!==b;){if(2&t.flags)continue e;if(null===t.child||4===t.tag)continue e;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function If(e){if(De){var t=function(e){for(var t=e.return;null!==t;){if(Bf(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}(e);switch(t.tag){case 5:var n=t.stateNode;32&t.flags&&(yt(n),t.flags&=-33),Uf(e,Af(e),n);break;case 3:case 4:var r=t.stateNode.containerInfo;Nf(e,Af(e),r);break;default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}}function Nf(e,t,n){var r=e.tag;if(5===r||6===r){var o=e.stateNode;t?pt(n,o,t):ut(n,o)}else if(4===r);else{var i=e.child;if(null!==i){Nf(i,t,n);for(var a=i.sibling;null!==a;)Nf(a,t,n),a=a.sibling}}}function Uf(e,t,n){var r=e.tag;if(5===r||6===r){var o=e.stateNode;t?dt(n,o,t):st(n,o)}else if(4===r);else{var i=e.child;if(null!==i){Uf(i,t,n);for(var a=i.sibling;null!==a;)Uf(a,t,n),a=a.sibling}}}var zf=null,Df=!1;function Of(e,t,n){if(De){var r=t;e:for(;null!==r;){switch(r.tag){case 5:zf=r.stateNode,Df=!1;break e;case 3:case 4:zf=r.stateNode.containerInfo,Df=!0;break e}r=r.return}if(null===zf)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Ff(e,t,n),zf=null,Df=!1}else Ff(e,t,n);var o,i;null!==(i=(o=n).alternate)&&(i.return=null),o.return=null}function Lf(e,t,n){for(var r=n.child;null!==r;)Ff(e,t,r),r=r.sibling}function Ff(e,t,n){switch(function(e){if(bo&&"function"==typeof bo.onCommitFiberUnmount)try{bo.onCommitFiberUnmount(vo,e)}catch(e){xo||(xo=!0,s("React instrumentation encountered an error: %s",e))}}(n),n.tag){case 5:cf||vf(n,t);case 6:if(De){var r=zf,o=Df;zf=null,Lf(e,t,n),Df=o,null!==(zf=r)&&(Df?mt(zf,n.stateNode):ht(zf,n.stateNode))}else Lf(e,t,n);return;case b:return void(De&&null!==zf&&(Df?Yt(zf,n.stateNode):jt(zf,n.stateNode)));case 4:if(De){var i=zf,a=Df;zf=n.stateNode.containerInfo,Df=!0,Lf(e,t,n),zf=i,Df=a}else!function(e){if(Oe){var t=e.stateNode.containerInfo,n=wt(t);Rt(t,n)}}(n),Lf(e,t,n);return;case 0:case p:case y:case g:if(!cf){var u=n.updateQueue;if(null!==u){var l=u.lastEffect;if(null!==l){var c=l.next,f=c;do{var d=f,h=d.destroy,m=d.tag;void 0!==h&&(0!=(2&m)?bf(n,t,h):0!=(4&m)&&(Mo(n),2&n.mode?(Dl(),bf(n,t,h),Ul(n)):bf(n,t,h),Bo())),f=f.next}while(f!==c)}}}return void Lf(e,t,n);case 1:if(!cf){vf(n,t);var v=n.stateNode;"function"==typeof v.componentWillUnmount&&yf(n,t,v)}return void Lf(e,t,n);case x:return void Lf(e,t,n);case S:if(1&n.mode){var _=cf;cf=_||null!==n.memoizedState,Lf(e,t,n),cf=_}else Lf(e,t,n);break;default:return void Lf(e,t,n)}}function Wf(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ff),t.forEach((function(t){var r=qp.bind(null,e,t);if(!n.has(t)){if(n.add(t),So){if(null===pf||null===hf)throw Error("Expected finished root and lanes to be set. This is a bug in React.");Kp(hf,pf)}t.then(r,r)}}))}}function Gf(e,t,n){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{Of(e,t,i)}catch(e){Wp(i,t,e)}}var a=Ui;if(t.subtreeFlags&se)for(var s=t.child;null!==s;)Li(s),$f(s,e),s=s.sibling;Li(a)}function $f(e,t,n){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case p:case y:case g:if(Gf(t,e),Hf(e),4&o){try{Tf(3,e,e.return),Ef(3,e)}catch(t){Wp(e,e.return,t)}if(2&e.mode){try{Dl(),Tf(5,e,e.return)}catch(t){Wp(e,e.return,t)}Ul(e)}else try{Tf(5,e,e.return)}catch(t){Wp(e,e.return,t)}}return;case 1:return Gf(t,e),Hf(e),void(o&j&&null!==r&&vf(r,r.return));case 5:if(Gf(t,e),Hf(e),o&j&&null!==r&&vf(r,r.return),De){if(32&e.flags){var i=e.stateNode;try{yt(i)}catch(t){Wp(e,e.return,t)}}if(4&o){var a=e.stateNode;if(null!=a){var s=e.memoizedProps,u=null!==r?r.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{ft(a,c,l,u,s,e)}catch(t){Wp(e,e.return,t)}}}}return;case 6:if(Gf(t,e),Hf(e),4&o&&De){if(null===e.stateNode)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var f=e.stateNode,d=e.memoizedProps,h=null!==r?r.memoizedProps:d;try{lt(f,h,d)}catch(t){Wp(e,e.return,t)}}return;case 3:if(Gf(t,e),Hf(e),4&o){if(De&&Le)if(null!==r)if(r.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Wp(e,e.return,t)}if(Oe){var v=t.containerInfo,b=t.pendingChildren;try{Rt(v,b)}catch(t){Wp(e,e.return,t)}}}return;case 4:if(Gf(t,e),Hf(e),4&o&&Oe){var T=e.stateNode,E=T.containerInfo,R=T.pendingChildren;try{Rt(E,R)}catch(t){Wp(e,e.return,t)}}return;case m:Gf(t,e),Hf(e);var P=e.child;if(P.flags&J){var k=P.stateNode,C=null!==P.memoizedState;if(k.isHidden=C,C)null!==P.alternate&&null!==P.alternate.memoizedState||($d=co())}if(4&o){try{!function(e){e.memoizedState}(e)}catch(t){Wp(e,e.return,t)}Wf(e)}return;case S:var M=null!==r&&null!==r.memoizedState;if(1&e.mode){var B=cf;cf=B||M,Gf(t,e),cf=B}else Gf(t,e);if(Hf(e),o&J){var A=e.stateNode,I=null!==e.memoizedState,N=e;if(A.isHidden=I,I&&!M&&0!=(1&N.mode)){df=N;for(var U=N.child;null!==U;)df=U,Vf(U),U=U.sibling}De&&function(e,t){var n=null;if(De)for(var r=e;;){if(5===r.tag){if(null===n){n=r;try{var o=r.stateNode;t?gt(o):bt(r.stateNode,r.memoizedProps)}catch(t){Wp(e,e.return,t)}}}else if(6===r.tag){if(null===n)try{var i=r.stateNode;t?vt(i):_t(i,r.memoizedProps)}catch(t){Wp(e,e.return,t)}}else if((r.tag!==S&&r.tag!==w||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;n===r&&(n=null),r=r.return}n===r&&(n=null),r.sibling.return=r.return,r=r.sibling}}(N,I)}return;case _:return Gf(t,e),Hf(e),void(4&o&&Wf(e));case x:return;default:return Gf(t,e),void Hf(e)}}function Hf(e){var t=e.flags;if(2&t){try{If(e)}catch(t){Wp(e,e.return,t)}e.flags&=-3}t&Q&&(e.flags&=-4097)}function qf(e,t,n){pf=n,hf=t,df=e,jf(e,t,n),pf=null,hf=null}function jf(e,t,n){for(var r=0!=(1&e.mode);null!==df;){var o=df,i=o.child;if(o.tag===S&&r){var a=null!==o.memoizedState||lf;if(a){Yf(e,t,n);continue}var s=o.alternate,u=null!==s&&null!==s.memoizedState,l=lf,c=cf;lf=a,(cf=u||cf)&&!c&&(df=o,Jf(o));for(var f=i;null!==f;)df=f,jf(f,t,n),f=f.sibling;df=o,lf=l,cf=c,Yf(e,t,n)}else 0!=(o.subtreeFlags&ue)&&null!==i?(i.return=o,df=i):Yf(e,t,n)}}function Yf(e,t,n){for(;null!==df;){var r=df;if(0!=(r.flags&ue)){var o=r.alternate;Li(r);try{Pf(0,o,r)}catch(e){Wp(r,r.return,e)}Oi()}if(r===e)return void(df=null);var i=r.sibling;if(null!==i)return i.return=r.return,void(df=i);df=r.return}}function Vf(e){for(;null!==df;){var t=df,n=t.child;switch(t.tag){case 0:case p:case y:case g:if(2&t.mode)try{Dl(),Tf(4,t,t.return)}finally{Ul(t)}else Tf(4,t,t.return);break;case 1:vf(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&yf(t,t.return,r);break;case 5:vf(t,t.return);break;case S:if(null!==t.memoizedState){Qf(e);continue}}null!==n?(n.return=t,df=n):Qf(e)}}function Qf(e){for(;null!==df;){var t=df;if(t===e)return void(df=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(df=n);df=t.return}}function Jf(e){for(;null!==df;){var t=df,n=t.child;if(t.tag===S)if(null!==t.memoizedState){Xf(e);continue}null!==n?(n.return=t,df=n):Xf(e)}}function Xf(e){for(;null!==df;){var t=df;Li(t);try{kf(t)}catch(e){Wp(t,t.return,e)}if(Oi(),t===e)return void(df=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(df=n);df=t.return}}function Zf(e,t,n,r){df=t,function(e,t,n,r){for(;null!==df;){var o=df,i=o.child;0!=(o.subtreeFlags&le)&&null!==i?(i.return=o,df=i):Kf(e,t,n,r)}}(t,e,n,r)}function Kf(e,t,n,r){for(;null!==df;){var o=df;if(0!=(o.flags&V)){Li(o);try{ed(t,o,n,r)}catch(e){Wp(o,o.return,e)}Oi()}if(o===e)return void(df=null);var i=o.sibling;if(null!==i)return i.return=o.return,void(df=i);df=o.return}}function ed(e,t,n,r){switch(t.tag){case 0:case p:case g:if(2&t.mode){Ol();try{Ef(9,t)}finally{zl(t)}}else Ef(9,t)}}function td(e){df=e,function(){for(;null!==df;){var e=df,t=e.child;if(0!=(df.flags&$)){var n=e.deletions;if(null!==n){for(var r=0;r<n.length;r++){var o=n[r];df=o,od(o,e)}var i=e.alternate;if(null!==i){var a=i.child;if(null!==a){i.child=null;do{var s=a.sibling;a.sibling=null,a=s}while(null!==a)}}df=e}}0!=(e.subtreeFlags&le)&&null!==t?(t.return=e,df=t):nd()}}()}function nd(){for(;null!==df;){var e=df;0!=(e.flags&V)&&(Li(e),rd(e),Oi());var t=e.sibling;if(null!==t)return t.return=e.return,void(df=t);df=e.return}}function rd(e){switch(e.tag){case 0:case p:case g:2&e.mode?(Ol(),Tf(9,e,e.return),zl(e)):Tf(9,e,e.return)}}function od(e,t){for(;null!==df;){var n=df;Li(n),ad(n,t),Oi();var r=n.child;null!==r?(r.return=n,df=r):id(e)}}function id(e){for(;null!==df;){var t=df,n=t.sibling,r=t.return;if(Mf(t),t===e)return void(df=null);if(null!==n)return n.return=r,void(df=n);df=r}}function ad(e,t){switch(e.tag){case 0:case p:case g:2&e.mode?(Ol(),Tf(8,e,t),zl(e)):Tf(8,e,t)}}function sd(e){switch(e.tag){case 0:case p:case g:try{Ef(5,e)}catch(t){Wp(e,e.return,t)}break;case 1:var t=e.stateNode;try{t.componentDidMount()}catch(t){Wp(e,e.return,t)}}}function ud(e){switch(e.tag){case 0:case p:case g:try{Ef(9,e)}catch(t){Wp(e,e.return,t)}}}function ld(e){switch(e.tag){case 0:case p:case g:try{Tf(5,e,e.return)}catch(t){Wp(e,e.return,t)}break;case 1:var t=e.stateNode;"function"==typeof t.componentWillUnmount&&yf(e,e.return,t)}}function cd(e){switch(e.tag){case 0:case p:case g:try{Tf(9,e,e.return)}catch(t){Wp(e,e.return,t)}}}var fd=0,dd=1,pd=2,hd=3,md=4;if("function"==typeof Symbol&&Symbol.for){var yd=Symbol.for;fd=yd("selector.component"),dd=yd("selector.has_pseudo_class"),pd=yd("selector.role"),hd=yd("selector.test_id"),md=yd("selector.text")}function gd(e){var t=Fe(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw new Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");return t}var n=et(e);if(null===n)throw new Error("Could not find React container within specified host subtree.");return n.stateNode.current}function vd(e,t){switch(t.$$typeof){case fd:if(e.type===t.value)return!0;break;case dd:return function(e,t){var n=[e,0],r=0;for(;r<n.length;){var o=n[r++],i=n[r++],a=t[i];if(5!==o.tag||!rt(o)){for(;null!=a&&vd(o,a);)a=t[++i];if(i===t.length)return!0;for(var s=o.child;null!==s;)n.push(s,i),s=s.sibling}}return!1}(e,t.value);case pd:if(5===e.tag){var n=e.stateNode;if(ot(n,t.value))return!0}break;case md:if(5===e.tag||6===e.tag){var r=nt(e);if(null!==r&&r.indexOf(t.value)>=0)return!0}break;case hd:if(5===e.tag){var o=e.memoizedProps["data-testname"];if("string"==typeof o&&o.toLowerCase()===t.value.toLowerCase())return!0}break;default:throw new Error("Invalid selector type specified.")}return!1}function bd(e){switch(e.$$typeof){case fd:return"<"+(F(e.value)||"Unknown")+">";case dd:return":has("+(bd(e)||"")+")";case pd:return'[role="'+e.value+'"]';case md:return'"'+e.value+'"';case hd:return'[data-testname="'+e.value+'"]';default:throw new Error("Invalid selector type specified.")}}function _d(e,t){for(var n=[],r=[e,0],o=0;o<r.length;){var i=r[o++],a=r[o++],s=t[a];if(5!==i.tag||!rt(i)){for(;null!=s&&vd(i,s);)s=t[++a];if(a===t.length)n.push(i);else for(var u=i.child;null!==u;)r.push(u,a),u=u.sibling}}return n}function xd(e,t){if(!Ke)throw new Error("Test selector API is not supported by this renderer.");for(var n=_d(gd(e),t),r=[],o=Array.from(n),i=0;i<o.length;){var a=o[i++];if(5===a.tag){if(rt(a))continue;r.push(a.stateNode)}else for(var s=a.child;null!==s;)o.push(s),s=s.sibling}return r}var Sd=[];var wd=o.ReactCurrentActQueue;function Td(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===wd.current||s("The current testing environment is not configured to support act(...)"),e}var Ed=Math.ceil,Rd=o.ReactCurrentDispatcher,Pd=o.ReactCurrentOwner,kd=o.ReactCurrentBatchConfig,Cd=o.ReactCurrentActQueue,Md=0,Bd=null,Ad=null,Id=0,Nd=0,Ud=Bn(0),zd=0,Dd=null,Od=0,Ld=0,Fd=0,Wd=null,Gd=null,$d=0,Hd=1/0,qd=null;function jd(){Hd=co()+500}function Yd(){return Hd}var Vd=!1,Qd=null,Jd=null,Xd=!1,Zd=null,Kd=0,ep=[],tp=null,np=0,rp=null,op=!1,ip=!1,ap=0,sp=null,up=Pr,lp=0,cp=!1;function fp(){return Bd}function dp(){return 0!=(6&Md)?co():up!==Pr?up:up=co()}function pp(e){if(0==(1&e.mode))return 1;if(0!=(2&Md)&&0!==Id)return Fr(Id);if(null!==Mi.transition){if(null!==kd.transition){var t=kd.transition;t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e)}return 0===lp&&(lp=Or()),lp}var n=no();return 0!==n?n:Qe()}function hp(e){var t;return 0==(1&e.mode)?1:(t=Cr,0==((Cr<<=1)&hr)&&(Cr=mr),t)}function mp(e,t,n,r){!function(){if(np>50)throw np=0,rp=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");ap>50&&(ap=0,sp=null,s("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}(),cp&&s("useInsertionEffect must not schedule updates."),op&&(ip=!0),Qr(e,n,r),0!=(2&Md)&&e===Bd?function(e){if(zi&&!rl)switch(e.tag){case 0:case p:case g:var t=Ad&&G(Ad)||"Unknown",n=t;if(!Xp.has(n))Xp.add(n),s("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",G(e)||"Unknown",t,t);break;case 1:Zp||(s("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Zp=!0)}}(t):(So&&Zr(e,t,n),function(e){if(1&e.mode){if(!Td())return}else{if(t="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0,n="undefined"!=typeof jest,!ze||!n||!1===t)return;if(0!==Md)return;if(0!==e.tag&&e.tag!==p&&e.tag!==g)return}var t,n;if(null===Cd.current){var r=Ui;try{Li(e),s("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act",G(e))}finally{r?Li(e):Oi()}}}(t),e===Bd&&(0==(2&Md)&&(Ld=qr(Ld,n)),4===zd&&_p(e,Id)),yp(e,r),1!==n||0!==Md||0!=(1&t.mode)||Cd.isBatchingLegacy||(jd(),Go()))}function yp(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.pendingLanes,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,a=n;a>0;){var s=Wr(a),u=1<<s,l=i[s];l===Pr?0!=(u&r)&&0==(u&o)||(i[s]=Ar(u,t)):l<=t&&(e.expiredLanes|=u),a&=~u}}(e,t);var r=Br(e,e===Bd?Id:0);if(0===r)return null!==n&&nh(n),e.callbackNode=null,void(e.callbackPriority=0);var o=Lr(r),i=e.callbackPriority;if(i!==o||null!==Cd.current&&n!==eh){var a,u;if(null!=n&&nh(n),1===o)0===e.tag?(null!==Cd.isBatchingLegacy&&(Cd.didScheduleLegacyUpdate=!0),u=xp.bind(null,e),Lo=!0,Wo(u)):Wo(xp.bind(null,e)),Xe?null!==Cd.current?Cd.current.push($o):Ze((function(){0==(6&Md)&&$o()})):th(fo,$o),a=null;else{var l;switch(io(r)){case 1:l=fo;break;case 4:l=po;break;case 16:l=ho;break;case eo:l=mo;break;default:l=ho}a=th(l,gp.bind(null,e))}e.callbackPriority=o,e.callbackNode=a}else null==n&&1!==i&&s("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.")}function gp(e,t){if(Pl=!1,kl=!1,up=Pr,lp=0,0!=(6&Md))throw new Error("Should not already be working.");var n=e.callbackNode;if(Dp()&&e.callbackNode!==n)return null;var r=Br(e,e===Bd?Id:0);if(0===r)return null;var o=!zr(0,r)&&!function(e,t){return 0!=(t&e.expiredLanes)}(e,r)&&!t,i=o?function(e,t){var n=Md;Md|=2;var r=Pp();if(Bd!==e||Id!==t){if(So){var o=e.memoizedUpdaters;o.size>0&&(Kp(e,Id),o.clear()),Kr(e,t)}qd=null,jd(),Ep(e,t)}No(t);for(;;)try{Ip();break}catch(t){Rp(e,t)}return la(),kp(r),Md=n,null!==Ad?(null!==_o&&"function"==typeof _o.markRenderYielded&&_o.markRenderYielded(),0):(Uo(),Bd=null,Id=0,zd)}(e,r):Bp(e,r);if(0!==i){if(2===i){var a=Ir(e);0!==a&&(r=a,i=vp(e,a))}if(1===i){var s=Dd;throw Ep(e,0),_p(e,r),yp(e,co()),s}if(6===i)_p(e,r);else{var u=!zr(0,r),l=e.current.alternate;if(u&&!function(e){var t=e;for(;;){if(t.flags&X){var n=t.updateQueue;if(null!==n){var r=n.stores;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o],a=i.getSnapshot,s=i.value;try{if(!Do(a(),s))return!1}catch(e){return!1}}}}var u=t.child;if(t.subtreeFlags&X&&null!==u)u.return=t,t=u;else{if(t===e)return!0;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(l)){if(2===(i=Bp(e,r))){var c=Ir(e);0!==c&&(r=c,i=vp(e,c))}if(1===i){var f=Dd;throw Ep(e,0),_p(e,r),yp(e,co()),f}}e.finishedWork=l,e.finishedLanes=r,function(e,t,n){switch(t){case 0:case 1:throw new Error("Root did not complete. This is a bug in React.");case 2:case 5:zp(e,Gd,qd);break;case 3:if(_p(e,n),Ur(n)&&!rh()){var r=$d+500-co();if(r>10){if(0!==Br(e,0))break;var o=e.suspendedLanes;if(!Hr(o,n)){dp(),Jr(e,o);break}e.timeoutHandle=Ae(zp.bind(null,e,Gd,qd),r);break}}zp(e,Gd,qd);break;case 4:if(_p(e,n),function(e){return(e&tr)===e}(n))break;if(!rh()){var i=function(e,t){for(var n=e.eventTimes,r=Pr;t>0;){var o=Wr(t),i=1<<o,a=n[o];a>r&&(r=a),t&=~i}return r}(e,n),a=i,s=co()-a,u=((l=s)<120?120:l<480?480:l<1080?1080:l<1920?1920:l<3e3?3e3:l<4320?4320:1960*Ed(l/1960))-s;if(u>10){e.timeoutHandle=Ae(zp.bind(null,e,Gd,qd),u);break}}zp(e,Gd,qd);break;default:throw new Error("Unknown root exit status.")}var l}(e,i,r)}}return yp(e,co()),e.callbackNode===n?gp.bind(null,e):null}function vp(e,t){var n=Wd;Ho(e)&&(Ep(e,t).flags|=q,cn(e.containerInfo));var r=Bp(e,t);if(2!==r){var o=Gd;Gd=n,null!==o&&bp(o)}return r}function bp(e){null===Gd?Gd=e:Gd.push.apply(Gd,e)}function _p(e,t){t=jr(t,Fd),function(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var o=Wr(r),i=1<<o;n[o]=Pr,r&=~i}}(e,t=jr(t,Ld))}function xp(e){if(Pl=kl,kl=!1,0!=(6&Md))throw new Error("Should not already be working.");Dp();var t=Br(e,0);if(!$r(t,1))return yp(e,co()),null;var n=Bp(e,t);if(0!==e.tag&&2===n){var r=Ir(e);0!==r&&(t=r,n=vp(e,r))}if(1===n){var o=Dd;throw Ep(e,0),_p(e,t),yp(e,co()),o}if(6===n)throw new Error("Root did not complete. This is a bug in React.");var i=e.current.alternate;return e.finishedWork=i,e.finishedLanes=t,zp(e,Gd,qd),yp(e,co()),null}function Sp(e){null!==Zd&&0===Zd.tag&&0==(6&Md)&&Dp();var t=Md;Md|=1;var n=kd.transition,r=no();try{return kd.transition=null,ro(1),e?e():void 0}finally{ro(r),kd.transition=n,0==(6&(Md=t))&&$o()}}function wp(e,t){In(Ud,Nd,e),Nd=qr(Nd,t)}function Tp(e){Nd=Ud.current,An(Ud,e)}function Ep(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==Ne&&(e.timeoutHandle=Ne,Ie(n)),null!==Ad)for(var r=Ad.return;null!==r;){r.alternate;Xc(0,r),r=r.return}Bd=e;var o=wh(e.current,null);return Ad=o,Id=Nd=t,zd=0,Dd=null,Od=0,Ld=0,Fd=0,Wd=null,Gd=null,function(){if(null!==va){for(var e=0;e<va.length;e++){var t=va[e],n=t.interleaved;if(null!==n){t.interleaved=null;var r=n.next,o=t.pending;if(null!==o){var i=o.next;o.next=r,n.next=i}t.pending=n}}va=null}}(),Wi.discardPendingWarnings(),o}function Rp(e,t){for(;;){var n=Ad;try{if(la(),du(),Oi(),Pd.current=null,null===n||null===n.return)return zd=1,Dd=t,void(Ad=null);2&n.mode&&Nl(n,!0),ko(),null!==t&&"object"==typeof t&&"function"==typeof t.then?Io(n,t,Id):Ao(n,t,Id),Ql(e,n.return,n,t,Id),Up(n)}catch(e){t=e,Ad===n&&null!==n?(n=n.return,Ad=n):n=Ad;continue}return}}function Pp(){var e=Rd.current;return Rd.current=dl,null===e?dl:e}function kp(e){Rd.current=e}function Cp(e){Od=qr(e,Od)}function Mp(){0!==zd&&3!==zd&&2!==zd||(zd=4),null!==Bd&&(Nr(Od)||Nr(Ld))&&_p(Bd,Id)}function Bp(e,t){var n=Md;Md|=2;var r=Pp();if(Bd!==e||Id!==t){if(So){var o=e.memoizedUpdaters;o.size>0&&(Kp(e,Id),o.clear()),Kr(e,t)}qd=null,Ep(e,t)}for(No(t);;)try{Ap();break}catch(t){Rp(e,t)}if(la(),Md=n,kp(r),null!==Ad)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Uo(),Bd=null,Id=0,zd}function Ap(){for(;null!==Ad;)Np(Ad)}function Ip(){for(;null!==Ad&&!uo();)Np(Ad)}function Np(e){var t,n=e.alternate;Li(e),0!=(2&e.mode)?(Al(e),t=Vp(n,e,Nd),Nl(e,!0)):t=Vp(n,e,Nd),Oi(),e.memoizedProps=e.pendingProps,null===t?Up(e):Ad=t,Pd.current=null}function Up(e){var t=e;do{var n=t.alternate,r=t.return;if(0==(t.flags&Z)){Li(t);var o=void 0;if(0==(2&t.mode)?o=Qc(n,t,Nd):(Al(t),o=Qc(n,t,Nd),Nl(t,!1)),Oi(),null!==o)return void(Ad=o)}else{var i=Jc(0,t);if(null!==i)return i.flags&=32767,void(Ad=i);if(0!=(2&t.mode)){Nl(t,!1);for(var a=t.actualDuration,s=t.child;null!==s;)a+=s.actualDuration,s=s.sibling;t.actualDuration=a}if(null===r)return zd=6,void(Ad=null);r.flags|=Z,r.subtreeFlags=0,r.deletions=null}var u=t.sibling;if(null!==u)return void(Ad=u);Ad=t=r}while(null!==t);0===zd&&(zd=5)}function zp(e,t,n){var r=no(),o=kd.transition;try{kd.transition=null,ro(1),function(e,t,n,r){do{Dp()}while(null!==Zd);if(function(){Wi.flushLegacyContextWarning(),Wi.flushPendingUnsafeLifecycleWarnings()}(),0!=(6&Md))throw new Error("Should not already be working.");var o=e.finishedWork,i=e.finishedLanes;if(function(e){null!==_o&&"function"==typeof _o.markCommitStarted&&_o.markCommitStarted(e)}(i),null===o)return Ro(),null;0===i&&s("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var a=qr(o.lanes,o.childLanes);(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var r=e.entanglements,o=e.eventTimes,i=e.expirationTimes,a=n;a>0;){var s=Wr(a),u=1<<s;r[s]=0,o[s]=Pr,i[s]=Pr,a&=~u}})(e,a),e===Bd&&(Bd=null,Ad=null,Id=0);0==(o.subtreeFlags&le)&&0==(o.flags&le)||Xd||(Xd=!0,tp=n,th(ho,(function(){return Dp(),null})));var u=0!=(15990&o.subtreeFlags),l=0!=(15990&o.flags);if(u||l){var c=kd.transition;kd.transition=null;var f=no();ro(1);var d=Md;Md|=4,Pd.current=null,xf(e,o),Bl(),function(e,t,n){pf=n,hf=e,Li(t),$f(t,e),Li(t),pf=null,hf=null}(e,o,i),Ee(e.containerInfo),e.current=o,function(e){null!==_o&&"function"==typeof _o.markLayoutEffectsStarted&&_o.markLayoutEffectsStarted(e)}(i),qf(o,e,i),null!==_o&&"function"==typeof _o.markLayoutEffectsStopped&&_o.markLayoutEffectsStopped(),lo(),Md=d,ro(f),kd.transition=c}else e.current=o,Bl();var p=Xd;Xd?(Xd=!1,Zd=e,Kd=i):(ap=0,sp=null);0===(a=e.pendingLanes)&&(Jd=null);p||jp(e.current,!1);(function(e,t){if(bo&&"function"==typeof bo.onCommitFiberRoot)try{var n,r=(e.current.flags&H)===H;switch(t){case 1:n=fo;break;case 4:n=po;break;case 16:n=ho;break;case eo:n=mo;break;default:n=ho}bo.onCommitFiberRoot(vo,e,n,r)}catch(e){xo||(xo=!0,s("React instrumentation encountered an error: %s",e))}})(o.stateNode,r),So&&e.memoizedUpdaters.clear();if(function(){Ke&&Sd.forEach((function(e){return e()}))}(),yp(e,co()),null!==t)for(var h=e.onRecoverableError,m=0;m<t.length;m++){var y=t[m],g=y.stack,v=y.digest;h(y.value,{componentStack:g,digest:v})}if(Vd){Vd=!1;var b=Qd;throw Qd=null,b}$r(Kd,1)&&0!==e.tag&&Dp();$r(a=e.pendingLanes,1)?(kl=!0,e===rp?np++:(np=0,rp=e)):np=0;$o(),Ro()}(e,t,n,r)}finally{kd.transition=o,ro(r)}return null}function Dp(){if(null!==Zd){var e=io(Kd),t=(i=e,0===(o=16)||o>i?o:i),n=kd.transition,r=no();try{return kd.transition=null,ro(t),function(){if(null===Zd)return!1;var e=tp;tp=null;var t=Zd,n=Kd;if(Zd=null,Kd=0,0!=(6&Md))throw new Error("Cannot flush passive effects while already rendering.");op=!0,ip=!1,function(e){null!==_o&&"function"==typeof _o.markPassiveEffectsStarted&&_o.markPassiveEffectsStarted(e)}(n);var r=Md;Md|=4,td(t.current),Zf(t,t.current,n,e);var o=ep;ep=[];for(var i=0;i<o.length;i++){Rf(0,o[i])}void(null!==_o&&"function"==typeof _o.markPassiveEffectsStopped&&_o.markPassiveEffectsStopped()),jp(t.current,!0),Md=r,$o(),ip?t===sp?ap++:(ap=0,sp=t):ap=0;op=!1,ip=!1,function(e){if(bo&&"function"==typeof bo.onPostCommitFiberRoot)try{bo.onPostCommitFiberRoot(vo,e)}catch(e){xo||(xo=!0,s("React instrumentation encountered an error: %s",e))}}(t);var a=t.current.stateNode;return a.effectDuration=0,a.passiveEffectDuration=0,!0}()}finally{ro(r),kd.transition=n}}var o,i;return!1}function Op(e){return null!==Jd&&Jd.has(e)}var Lp=function(e){Vd||(Vd=!0,Qd=e)};function Fp(e,t,n){var r=Aa(e,Hl(e,Fl(n,t),1),1),o=dp();null!==r&&(Qr(r,1,o),yp(r,o))}function Wp(e,t,n){if(function(e){af(null,(function(){throw e})),sf()}(n),oh(!1),3!==e.tag){var r=null;for(r=t;null!==r;){if(3===r.tag)return void Fp(r,e,n);if(1===r.tag){var o=r.type,i=r.stateNode;if("function"==typeof o.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&!Op(i)){var a=Aa(r,ql(r,Fl(n,e),1),1),u=dp();return void(null!==a&&(Qr(a,1,u),yp(a,u)))}}r=r.return}s("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}else Fp(e,e,n)}function Gp(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);var o=dp();Jr(e,n),function(e){0!==e.tag&&Td()&&null===Cd.current&&s("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act")}(e),Bd===e&&Hr(Id,n)&&(4===zd||3===zd&&Ur(Id)&&co()-$d<500?Ep(e,0):Fd=qr(Fd,n)),yp(e,o)}function $p(e,t){0===t&&(t=hp(e));var n=dp(),r=Sa(e,t);null!==r&&(Qr(r,t,n),yp(r,n))}function Hp(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),$p(e,n)}function qp(e,t){var n,r=0;switch(e.tag){case m:n=e.stateNode;var o=e.memoizedState;null!==o&&(r=o.retryLane);break;case _:n=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==n&&n.delete(t),$p(e,r)}function jp(e,t){Li(e),Yp(e,oe,ld),t&&Yp(e,ie,cd),Yp(e,oe,sd),t&&Yp(e,ie,ud),Oi()}function Yp(e,t,n){for(var r=e,o=null;null!==r;){var i=r.subtreeFlags&t;r!==o&&null!==r.child&&0!==i?r=r.child:(0!=(r.flags&t)&&n(r),r=null!==r.sibling?r.sibling:o=r.return)}}var Vp,Qp=null;function Jp(e){if(0==(2&Md)&&1&e.mode){var t=e.tag;if(2===t||3===t||1===t||0===t||t===p||t===y||t===g){var n=G(e)||"ReactComponent";if(null!==Qp){if(Qp.has(n))return;Qp.add(n)}else Qp=new Set([n]);var r=Ui;try{Li(e),s("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{r?Li(e):Oi()}}}}Vp=function(e,t,n){var r=Bh(null,t);try{return Wc(e,t,n)}catch(i){if(ci||null!==i&&"object"==typeof i&&"function"==typeof i.then)throw i;if(la(),du(),Xc(0,t),Bh(t,r),2&t.mode&&Al(t),af(null,Wc,null,e,t,n),nf){var o=sf();"object"==typeof o&&null!==o&&o._suppressLogging&&"object"==typeof i&&null!==i&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}};var Xp,Zp=!1;function Kp(e,t){So&&e.memoizedUpdaters.forEach((function(n){Zr(e,n,t)}))}Xp=new Set;var eh={};function th(e,t){var n=Cd.current;return null!==n?(n.push(t),eh):ao(e,t)}function nh(e){if(e!==eh)return so(e)}function rh(){return null!==Cd.current}function oh(e){cp=e}var ih=null,ah=null,sh=function(e){ih=e};function uh(e){if(null===ih)return e;var t=ih(e);return void 0===t?e:t.current}function lh(e){return uh(e)}function ch(e){if(null===ih)return e;var t=ih(e);if(void 0===t){if(null!=e&&"function"==typeof e.render){var n=uh(e.render);if(e.render!==n){var r={$$typeof:B,render:n};return void 0!==e.displayName&&(r.displayName=e.displayName),r}}return e}return t.current}function fh(e,t){if(null===ih)return!1;var n=e.elementType,r=t.type,o=!1,i="object"==typeof r&&null!==r?r.$$typeof:null;switch(e.tag){case 1:"function"==typeof r&&(o=!0);break;case 0:("function"==typeof r||i===U)&&(o=!0);break;case p:(i===B||i===U)&&(o=!0);break;case y:case g:(i===N||i===U)&&(o=!0);break;default:return!1}if(o){var a=ih(n);if(void 0!==a&&a===ih(r))return!0}return!1}function dh(e){null!==ih&&"function"==typeof WeakSet&&(null===ah&&(ah=new WeakSet),ah.add(e))}var ph=function(e,t){if(null!==ih){var n=t.staleFamilies,r=t.updatedFamilies;Dp(),Sp((function(){mh(e.current,r,n)}))}},hh=function(e,t){e.context===Nn&&(Dp(),Sp((function(){Dh(t,e,null,null)})))};function mh(e,t,n){var r=e.alternate,o=e.child,i=e.sibling,a=e.tag,s=e.type,u=null;switch(a){case 0:case g:case 1:u=s;break;case p:u=s.render}if(null===ih)throw new Error("Expected resolveFamily to be set during hot reload.");var l=!1,c=!1;if(null!==u){var f=ih(u);void 0!==f&&(n.has(f)?c=!0:t.has(f)&&(1===a?c=!0:l=!0))}if(null!==ah&&(ah.has(e)||null!==r&&ah.has(r))&&(c=!0),c&&(e._debugNeedsRemount=!0),c||l){var d=Sa(e,1);null!==d&&mp(d,e,1,Pr)}null===o||c||mh(o,t,n),null!==i&&mh(i,t,n)}var yh,gh=function(e,t){var n=new Set,r=new Set(t.map((function(e){return e.current})));return vh(e.current,r,n),n};function vh(e,t,n){var r=e.child,o=e.sibling,i=e.tag,a=e.type,s=null;switch(i){case 0:case g:case 1:s=a;break;case p:s=a.render}var u=!1;null!==s&&t.has(s)&&(u=!0),u?function(e,t){if(function(e,t){var n=e,r=!1;for(;;){if(5===n.tag)r=!0,t.add(n.stateNode);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)return r;for(;null===n.sibling;){if(null===n.return||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}(e,t))return;var n=e;for(;;){switch(n.tag){case 5:return void t.add(n.stateNode);case 4:case 3:return void t.add(n.stateNode.containerInfo)}if(null===n.return)throw new Error("Expected to reach root first.");n=n.return}}(e,n):null!==r&&vh(r,t,n),null!==o&&vh(o,t,n)}yh=!1;try{var bh=Object.preventExtensions({});new Map([[bh,null]]),new Set([bh])}catch(e){yh=!0}function _h(e,t,n,r){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=r,this.flags=0,this.subtreeFlags=0,this.deletions=null,this.lanes=0,this.childLanes=0,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,yh||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}var xh=function(e,t,n,r){return new _h(e,t,n,r)};function Sh(e){var t=e.prototype;return!(!t||!t.isReactComponent)}function wh(e,t){var n=e.alternate;null===n?((n=xh(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&ce,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var r=e.dependencies;switch(n.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 2:case 0:case g:n.type=uh(e.type);break;case 1:n.type=lh(e.type);break;case p:n.type=ch(e.type)}return n}function Th(e,t){e.flags&=14680066;var n=e.alternate;if(null===n)e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var r=n.dependencies;e.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function Eh(e,t,n,r,o,i){var a=2,u=e;if("function"==typeof e)Sh(e)?(a=1,u=lh(u)):u=uh(u);else if("string"==typeof e)a=5;else e:switch(e){case R:return Ph(n.children,o,i,t);case P:a=8,0!=(1&(o|=8))&&(o|=Jn);break;case k:return function(e,t,n,r){"string"!=typeof e.id&&s('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var o=xh(h,e,r,2|t);return o.elementType=k,o.lanes=n,o.stateNode={effectDuration:0,passiveEffectDuration:0},o}(n,o,i,t);case A:return function(e,t,n,r){var o=xh(m,e,r,t);return o.elementType=A,o.lanes=n,o}(n,o,i,t);case I:return function(e,t,n,r){var o=xh(_,e,r,t);return o.elementType=I,o.lanes=n,o}(n,o,i,t);case z:return kh(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:a=d;break e;case M:a=9;break e;case B:a=p,u=ch(u);break e;case N:a=y;break e;case U:a=16,u=null;break e}var l="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var c=r?G(r):null;throw c&&(l+="\n\nCheck the render method of `"+c+"`."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+"."+l)}var f=xh(a,n,t,o);return f.elementType=e,f.type=u,f.lanes=i,f._debugOwner=r,f}function Rh(e,t,n){var r;r=e._owner;var o=Eh(e.type,e.key,e.props,r,t,n);return o._debugSource=e._source,o._debugOwner=e._owner,o}function Ph(e,t,n,r){var o=xh(7,e,r,t);return o.lanes=n,o}function kh(e,t,n,r){var o=xh(S,e,r,t);o.elementType=z,o.lanes=n;return o.stateNode={isHidden:!1},o}function Ch(e,t,n){var r=xh(6,e,null,t);return r.lanes=n,r}function Mh(e,t,n){var r=null!==e.children?e.children:[],o=xh(4,r,e.key,t);return o.lanes=n,o.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},o}function Bh(e,t){return null===e&&(e=xh(2,null,null,0)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function Ah(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Ne,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vr(0),this.expirationTimes=Vr(Pr),this.pendingLanes=0,this.suspendedLanes=0,this.pingedLanes=0,this.expiredLanes=0,this.mutableReadLanes=0,this.finishedLanes=0,this.entangledLanes=0,this.entanglements=Vr(0),this.identifierPrefix=r,this.onRecoverableError=o,Le&&(this.mutableSourceEagerHydrationData=null),this.effectDuration=0,this.passiveEffectDuration=0,this.memoizedUpdaters=new Set;for(var i=this.pendingUpdatersLaneMap=[],a=0;a<31;a++)i.push(new Set);switch(t){case 1:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case 0:this._debugRootType=n?"hydrate()":"render()"}}function Ih(e,t,n,r,o,i,a,s,u,l){var c=new Ah(e,t,n,s,u),f=function(e,t,n){var r;return 1===e?(r=1,!0===t&&(r|=8,r|=Jn)):r=0,So&&(r|=2),xh(3,null,null,r)}(t,i);c.current=f,f.stateNode=c;var d={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};return f.memoizedState=d,Ca(f),c}var Nh,Uh;function zh(e){if(!e)return Nn;var t=c(e),n=Qn(t);if(1===t.tag){var r=t.type;if(Gn(r))return jn(t,r,n)}return n}function Dh(e,t,n,r){!function(e,t){if(bo&&"function"==typeof bo.onScheduleFiberRoot)try{bo.onScheduleFiberRoot(vo,e,t)}catch(e){xo||(xo=!0,s("React instrumentation encountered an error: %s",e))}}(t,e);var o=t.current,i=dp(),a=pp(o);!function(e){null!==_o&&"function"==typeof _o.markRenderScheduled&&_o.markRenderScheduled(e)}(a);var u=zh(n);null===t.context?t.context=u:t.pendingContext=u,zi&&null!==Ui&&!Nh&&(Nh=!0,s("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",G(Ui)||"Unknown"));var l=Ba(i,a);l.payload={element:e},null!==(r=void 0===r?null:r)&&("function"!=typeof r&&s("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r),l.callback=r);var c=Aa(o,l,a);return null!==c&&(mp(c,o,a,i),Ia(c,o,a)),a}function Oh(e,t){var n,r,o=e.memoizedState;null!==o&&null!==o.dehydrated&&(o.retryLane=(n=o.retryLane,r=t,0!==n&&n<r?n:r))}function Lh(e,t){Oh(e,t);var n=e.alternate;n&&Oh(n,t)}Nh=!1,Uh={};var Fh=function(e){return null};function Wh(e){return Fh(e)}var Gh=function(e){return!1};function $h(e){return Gh(e)}var Hh,qh,jh,Yh,Vh,Qh,Jh,Xh,Zh,Kh=function(e,t,n){var r=t[n],o=_e(e)?e.slice():l({},e);return n+1===t.length?(_e(o)?o.splice(r,1):delete o[r],o):(o[r]=Kh(e[r],t,n+1),o)},em=function(e,t){return Kh(e,t,0)},tm=function(e,t,n,r){var o=t[r],i=_e(e)?e.slice():l({},e);r+1===t.length?(i[n[r]]=i[o],_e(i)?i.splice(o,1):delete i[o]):i[o]=tm(e[o],t,n,r+1);return i},nm=function(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void a("copyWithRename() expects paths to be the same except for the deepest key");return tm(e,t,n,0)}a("copyWithRename() expects paths of the same length")},rm=function(e,t,n,r){if(n>=t.length)return r;var o=t[n],i=_e(e)?e.slice():l({},e);return i[o]=rm(e[o],t,n+1,r),i},om=function(e,t,n){return rm(e,t,0,n)},im=function(e,t){for(var n=e.memoizedState;null!==n&&t>0;)n=n.next,t--;return n};function am(e){var t=me(e);return null===t?null:t.stateNode}function sm(e){return null}function um(){return Ui}return Hh=function(e,t,n,r){var o=im(e,t);if(null!==o){var i=om(o.memoizedState,n,r);o.memoizedState=i,o.baseState=i,e.memoizedProps=l({},e.memoizedProps);var a=Sa(e,1);null!==a&&mp(a,e,1,Pr)}},qh=function(e,t,n){var r=im(e,t);if(null!==r){var o=em(r.memoizedState,n);r.memoizedState=o,r.baseState=o,e.memoizedProps=l({},e.memoizedProps);var i=Sa(e,1);null!==i&&mp(i,e,1,Pr)}},jh=function(e,t,n,r){var o=im(e,t);if(null!==o){var i=nm(o.memoizedState,n,r);o.memoizedState=i,o.baseState=i,e.memoizedProps=l({},e.memoizedProps);var a=Sa(e,1);null!==a&&mp(a,e,1,Pr)}},Yh=function(e,t,n){e.pendingProps=om(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Sa(e,1);null!==r&&mp(r,e,1,Pr)},Vh=function(e,t){e.pendingProps=em(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=Sa(e,1);null!==n&&mp(n,e,1,Pr)},Qh=function(e,t,n){e.pendingProps=nm(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Sa(e,1);null!==r&&mp(r,e,1,Pr)},Jh=function(e){var t=Sa(e,1);null!==t&&mp(t,e,1,Pr)},Xh=function(e){Fh=e},Zh=function(e){Gh=e},t.attemptContinuousHydration=function(e){if(e.tag===m){var t=xr,n=Sa(e,t);if(null!==n)mp(n,e,t,dp());Lh(e,t)}},t.attemptDiscreteHydration=function(e){if(e.tag===m){var t=Sa(e,1);if(null!==t)mp(t,e,1,dp());Lh(e,1)}},t.attemptHydrationAtCurrentPriority=function(e){if(e.tag===m){var t=pp(e),n=Sa(e,t);if(null!==n)mp(n,e,t,dp());Lh(e,t)}},t.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(Ho(t)){var n=function(e){return Mr(e.pendingLanes)}(t);!function(e,t){0!==t&&(Xr(e,qr(t,1)),yp(e,co()),0==(6&Md)&&(jd(),$o()))}(t,n)}break;case m:Sp((function(){var t=Sa(e,1);if(null!==t){var n=dp();mp(t,e,1,n)}}));Lh(e,1)}},t.batchedUpdates=function(e,t){var n=Md;Md|=1;try{return e(t)}finally{0!==(Md=n)||Cd.isBatchingLegacy||(jd(),Go())}},t.createComponentSelector=function(e){return{$$typeof:fd,value:e}},t.createContainer=function(e,t,n,r,o,i,a,s){return Ih(e,t,!1,null,0,r,0,i,a)},t.createHasPseudoClassSelector=function(e){return{$$typeof:dd,value:e}},t.createHydrationContainer=function(e,t,n,r,o,i,a,s,u,l){var c=Ih(n,r,!0,e,0,i,0,s,u);c.context=zh(null);var f=c.current,d=dp(),p=pp(f),h=Ba(d,p);return h.callback=null!=t?t:null,Aa(f,h,p),function(e,t,n){e.current.lanes=t,Qr(e,t,n),yp(e,n)}(c,p,d),c},t.createPortal=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return ta(r),{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}},t.createRoleSelector=function(e){return{$$typeof:pd,value:e}},t.createTestNameSelector=function(e){return{$$typeof:hd,value:e}},t.createTextSelector=function(e){return{$$typeof:md,value:e}},t.deferredUpdates=function(e){var t=no(),n=kd.transition;try{return kd.transition=null,ro(16),e()}finally{ro(t),kd.transition=n}},t.discreteUpdates=function(e,t,n,r,o){var i=no(),a=kd.transition;try{return kd.transition=null,ro(1),e(t,n,r,o)}finally{ro(i),kd.transition=a,0===Md&&jd()}},t.findAllNodes=xd,t.findBoundingRects=function(e,t){if(!Ke)throw new Error("Test selector API is not supported by this renderer.");for(var n=xd(e,t),r=[],o=0;o<n.length;o++)r.push(tt(n[o]));for(var i=r.length-1;i>0;i--)for(var a=r[i],s=a.x,u=s+a.width,l=a.y,c=l+a.height,f=i-1;f>=0;f--)if(i!==f){var d=r[f],p=d.x,h=p+d.width,m=d.y,y=m+d.height;if(s>=p&&l>=m&&u<=h&&c<=y){r.splice(i,1);break}if(!(s!==p||a.width!==d.width||y<l||m>c)){m>l&&(d.height+=m-l,d.y=l),y<c&&(d.height=c-m),r.splice(i,1);break}if(!(l!==m||a.height!==d.height||h<s||p>u)){p>s&&(d.width+=p-s,d.x=s),h<u&&(d.width=u-p),r.splice(i,1);break}}return r},t.findHostInstance=function(e){var t=c(e);if(void 0===t){if("function"==typeof e.render)throw new Error("Unable to find node on an unmounted component.");var n=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+n)}var r=me(t);return null===r?null:r.stateNode},t.findHostInstanceWithNoPortals=function(e){var t=ge(e);return null===t?null:t.stateNode},t.findHostInstanceWithWarning=function(e,t){var n=c(e);if(void 0===n){if("function"==typeof e.render)throw new Error("Unable to find node on an unmounted component.");var r=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+r)}var o=me(n);if(null===o)return null;if(8&o.mode){var i=G(n)||"Component";if(!Uh[i]){Uh[i]=!0;var a=Ui;try{Li(o),8&n.mode?s("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i):s("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i)}finally{a?Li(a):Oi()}}}return o.stateNode},t.flushControlled=function(e){var t=Md;Md|=1;var n=kd.transition,r=no();try{kd.transition=null,ro(1),e()}finally{ro(r),kd.transition=n,0===(Md=t)&&(jd(),$o())}},t.flushPassiveEffects=Dp,t.flushSync=Sp,t.focusWithin=function(e,t){if(!Ke)throw new Error("Test selector API is not supported by this renderer.");for(var n=_d(gd(e),t),r=Array.from(n),o=0;o<r.length;){var i=r[o++];if(!rt(i)){if(5===i.tag){var a=i.stateNode;if(it(a))return!0}for(var s=i.child;null!==s;)r.push(s),s=s.sibling}}return!1},t.getCurrentUpdatePriority=no,t.getFindAllNodesFailureDescription=function(e,t){if(!Ke)throw new Error("Test selector API is not supported by this renderer.");for(var n=0,r=[],o=[gd(e),0],i=0;i<o.length;){var a=o[i++],s=o[i++],u=t[s];if((5!==a.tag||!rt(a))&&(vd(a,u)&&(r.push(bd(u)),++s>n&&(n=s)),s<t.length))for(var l=a.child;null!==l;)o.push(l,s),l=l.sibling}if(n<t.length){for(var c=[],f=n;f<t.length;f++)c.push(bd(t[f]));return"findAllNodes was able to match part of the selector:\n "+r.join(" > ")+"\n\nNo matching component was found for:\n "+c.join(" > ")}return null},t.getPublicRootInstance=function(e){var t=e.current;return t.child?5===t.child.tag?xe(t.child.stateNode):t.child.stateNode:null},t.injectIntoDevTools=function(e){var t=e.findFiberByHostInstance,n=o.ReactCurrentDispatcher;return function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return s("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{e=l({},e,{getLaneLabelMap:Eo,injectProfilingHooks:To}),vo=t.inject(e),bo=t}catch(e){s("React instrumentation encountered an error: %s.",e)}return!!t.checkDCE}({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:Hh,overrideHookStateDeletePath:qh,overrideHookStateRenamePath:jh,overrideProps:Yh,overridePropsDeletePath:Vh,overridePropsRenamePath:Qh,setErrorHandler:Xh,setSuspenseHandler:Zh,scheduleUpdate:Jh,currentDispatcherRef:n,findHostInstanceByFiber:am,findFiberByHostInstance:t||sm,findHostInstancesForRefresh:gh,scheduleRefresh:ph,scheduleRoot:hh,setRefreshHandler:sh,getCurrentFiber:um,reconcilerVersion:"18.2.0"})},t.isAlreadyRendering=function(){return 0!=(6&Md)},t.observeVisibleRects=function(e,t,n,r){if(!Ke)throw new Error("Test selector API is not supported by this renderer.");var o=xd(e,t),i=at(o,n,r),a=i.disconnect,s=i.observe,u=i.unobserve,l=function(){var n=xd(e,t);o.forEach((function(e){n.indexOf(e)<0&&u(e)})),n.forEach((function(e){o.indexOf(e)<0&&s(e)}))};return Sd.push(l),{disconnect:function(){var e=Sd.indexOf(l);e>=0&&Sd.splice(e,1),a()}}},t.registerMutableSourceForHydration=function(e,t){var n=(0,t._getVersion)(t._source);null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},t.runWithPriority=function(e,t){var n=to;try{return to=e,t()}finally{to=n}},t.shouldError=Wh,t.shouldSuspend=$h,t.updateContainer=Dh,t})),reactReconciler_developmentExports}function requireReactReconciler(){return hasRequiredReactReconciler||(hasRequiredReactReconciler=1,e=reactReconciler,"production"===process.env.NODE_ENV?e.exports=requireReactReconciler_production_min():e.exports=requireReactReconciler_development()),reactReconcilerExports$1;var e}var reactReconcilerExports=requireReactReconciler(),Reconciler=getDefaultExportFromCjs(reactReconcilerExports);function capitalize(e){return`${e[0].toUpperCase()}${e.slice(1,e.length)}`}function isPercent(e){return"string"==typeof e&&e.endsWith("%")}function isPoint(e){return"string"==typeof e&&e.endsWith("px")}function parsePositionUnit(e){function t(e,t){return Number(t.slice(0,t.indexOf(e)))}return null==e?[void 0,0]:"number"==typeof e?[Number(e),1]:isPercent(e)?[t("%",e),2]:isPoint(e)?[t("px",e),1]:[void 0,0]}function parsePosition(e={},t){const n={};for(const r in e){const o=r,i=`${t}${capitalize(o)}`,a=`${t}${capitalize(o)}Unit`,[s,u]=parsePositionUnit(e[o]);void 0!==s&&(n[a]=u,n[i]=s)}return n}function parseSize(e,t){const n=`${t}Unit`,[r,o]=parsePositionUnit(e);return void 0===r?{}:{[t]:r,[n]:o}}function getDisplay(e){return{display:e?parseDisplay[e]:0}}const parseDisplay={flex:0,none:1};function getJustify(e){return{justifyContent:e?parseJustify[e]:0}}const parseJustify={center:1,"flex-end":2,"flex-start":0,"space-around":4,"space-between":3,"space-evenly":5};function getAlign(e,t,n){return{[e]:t?parseAligns[t]:n}}const parseAligns={auto:0,baseline:5,center:2,"flex-end":3,"flex-start":1,stretch:4,"space-between":6,"space-around":7};function getFlexDirection(e){return{flexDirection:e?parseFlexDirection[e]:0}}const parseFlexDirection={row:0,column:1,"row-reverse":3,"column-reverse":2};function getFlexWrap(e){return{flexWrap:e?parseFlexWrap[e]:1}}const parseFlexWrap={wrap:1,nowrap:0,"wrap-reverse":2};function getOverflow(e){return{overflow:e?parseOverflow[e]:0}}const parseOverflow={visible:0,scroll:2,hidden:1};function getPoistionType(e){return{positionType:e?parsePositionType[e]:0}}const parsePositionType={relative:0,absolute:1},CANVAS_ROOT_ENTITY=0,defaultUiTransform={parent:CANVAS_ROOT_ENTITY,rightOf:0,flexBasis:0,width:0,height:0,minWidth:0,minHeight:0,maxWidth:0,maxHeight:0,flexGrow:0,marginBottom:0,marginBottomUnit:0,marginLeft:0,marginLeftUnit:0,marginRight:0,marginRightUnit:0,marginTop:0,marginTopUnit:0,maxHeightUnit:0,maxWidthUnit:0,minHeightUnit:0,minWidthUnit:0,paddingBottom:0,paddingBottomUnit:0,paddingLeft:0,paddingLeftUnit:0,paddingTopUnit:0,paddingRight:0,paddingRightUnit:0,paddingTop:0,positionBottom:0,positionBottomUnit:0,positionLeft:0,positionLeftUnit:0,positionRight:0,positionRightUnit:0,positionTop:0,positionTopUnit:0,flexBasisUnit:0,widthUnit:0,heightUnit:0};function parseUiTransform(e={}){const{height:t,minHeight:n,maxHeight:r,width:o,minWidth:i,maxWidth:a,...s}=e;return{...defaultUiTransform,...s,...parsePosition(e.position,"position"),...parsePosition(e.margin,"margin"),...parsePosition(e.padding,"padding"),...parseSize(e.height,"height"),...parseSize(e.minHeight,"minHeight"),...parseSize(e.maxHeight,"maxHeight"),...parseSize(e.width,"width"),...parseSize(e.minWidth,"minWidth"),...parseSize(e.maxWidth,"maxWidth"),...getDisplay(e.display),...getAlign("alignContent",e.alignContent,1),...getAlign("alignSelf",e.alignSelf,1),...getAlign("alignItems",e.alignItems,1),...getJustify(e.justifyContent),...getFlexDirection(e.flexDirection),...getFlexWrap(e.flexWrap),...getOverflow(e.overflow),...getPoistionType(e.positionType)}}const parseTextureMode={"nine-slices":0,center:1,stretch:2};function getTextureMode(e){return{textureMode:e?parseTextureMode[e]:1}}function isAvatarTexture(e){return!!e.avatarTexture}function isTexture(e){return!!e.texture}function getTexture(e){return isTexture(e)&&e.texture?{tex:{$case:"texture",texture:parseTexture(e.texture)}}:isAvatarTexture(e)&&e.avatarTexture?{tex:{$case:"avatarTexture",avatarTexture:parseTexture(e.avatarTexture)}}:void 0}function parseTexture(e){return{...e,wrapMode:e.wrapMode?parseWrap[e.wrapMode]:void 0,filterMode:e.filterMode?parseFilter[e.filterMode]:void 0}}const parseWrap={repeat:0,clamp:1,mirror:2,"mirror-once":3},parseFilter={point:0,"bi-linear":1,"tri-linear":2};function parseUiBackground(e){if(!e||!Object.keys(e).length)return;const t=getTexture(e);return{...e,...getTextureMode(e.textureMode),uvs:e.uvs??[],texture:t}}function parseProps(e){const{uiTransform:t,uiBackground:n,...r}=e;return{...r,uiTransform:parseUiTransform(t),...n?{uiBackground:parseUiBackground(n)}:void 0}}const listeners={onMouseDown:void 0,onMouseUp:void 0},listenersKey=Object.keys(listeners),isListener=e=>listenersKey.includes(e),parseFont={"sans-serif":0,serif:1,monospace:2};function getFont(e){if(e)return{font:parseFont[e]}}const parseTextAlign={"top-left":0,"top-center":1,"top-right":2,"middle-left":3,"middle-center":4,"middle-right":5,"bottom-left":6,"bottom-center":7,"bottom-right":8};function getTextAlign(e){if(e)return{textAlign:parseTextAlign[e]}}function parseUiDropdown(e){const{textAlign:t,font:n,...r}=e;return{acceptEmpty:!1,options:[],selectedIndex:e.acceptEmpty?-1:0,disabled:!1,...r,...getTextAlign(t),...getFont(n)}}function Dropdown(e){const{uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o,...i}=e,a=parseUiDropdown(i),s=parseProps({uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o});return ReactEcs$1.createElement("entity",{...s,uiDropdown:a})}function parseUiInput(e){const{textAlign:t,font:n,...r}=e;return{disabled:!1,placeholder:"",...r,...getTextAlign(t),...getFont(n)}}function Input(e){const{uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o,...i}=e,a=parseUiInput(i),s=parseProps({uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o});return ReactEcs$1.createElement("entity",{...s,uiInput:a})}function Label(e){const{uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o,...i}=e,a=parseProps({uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o}),{font:s,textAlign:u,...l}=i,c={...l,...getFont(s),...getTextAlign(u)};return ReactEcs$1.createElement("entity",{...a,uiText:c})}function getButtonProps(e){return"primary"===e.type?{uiBackground:{color:{r:.98,g:.17,b:.33,a:1}},uiText:{color:{r:1,g:1,b:1,a:1}}}:"secondary"===e.type?{uiBackground:{color:{r:1,g:1,b:1,a:1}},uiText:{color:{r:.98,g:.17,b:.33,a:1}}}:{}}function Button(e){const{uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o,...i}=e,a=getButtonProps(e),s=parseUiBackground({...a.uiBackground,...n}),{font:u,textAlign:l,...c}=i,f={...a.uiText,...c,...getFont(u),...getTextAlign(l)},d=parseUiTransform({height:36,...t});return ReactEcs$1.createElement("entity",{onMouseDown:r,onMouseUp:o,uiTransform:d,uiText:f,uiBackground:s})}function UiEntity(e){return ReactEcs$1.createElement("entity",{...parseProps(e)})}function propsChanged(e,t,n){if(t&&!n)return{type:"delete",component:e};if(!n)return;if(!t&&n)return{type:"add",props:n,component:e};if(isListener(e)&&!isEqual(t,n))return{type:"put",component:e,props:n};const r={};for(const e in t){const o=e;isEqual(t[o],n[o])||(r[o]=n[o])}return Object.keys(r).length?{type:"put",props:r,component:e}:void 0}const entityComponent={uiText:void 0,uiBackground:void 0,uiTransform:void 0,onMouseDown:void 0,onMouseUp:void 0,uiInput:void 0,uiDropdown:void 0},componentKeys=Object.keys(entityComponent);function isEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return e===t;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return e===t;if(Array.isArray(e)&&Array.isArray(t)&&e.length!==t.length)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;if(JSON.stringify(e)===JSON.stringify(t))return!0;for(const n in e)if(!isEqual(e[n],t[n]))return!1;return!0}const isNotUndefined=e=>!!e,noopConfig={supportsMutation:!0,supportsPersistence:!1,noTimeout:-1,isPrimaryRenderer:!0,supportsHydration:!1,insertInContainerBefore(e,t,n){},detachDeletedInstance(e){},hideInstance(e){},hideTextInstance(e){},unhideInstance(e,t){},unhideTextInstance(e,t){},clearContainer(e){},getCurrentEventPriority:()=>0,getInstanceFromNode:e=>null,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},prepareScopeUpdate(){},getInstanceFromScope:()=>null,commitMount(e,t,n,r){},resetTextContent(e){},commitTextUpdate(e,t,n){},prepareForCommit:e=>null,resetAfterCommit(e){},preparePortalMount(e){},createTextInstance:(e,t,n,r)=>({}),scheduleTimeout(e,t){},cancelTimeout(e){},shouldSetTextContent:(e,t)=>!1,getRootHostContext:e=>null,getChildHostContext:(e,t,n)=>null,getPublicInstance:e=>e,finalizeInitialChildren:(e,t,n,r,o)=>!1};function createReconciler(e,t){const n=new Set,r=new Map,o=UiTransform$1(e),i=UiText$1(e),a=UiBackground$1(e),s=UiInput$1(e),u=UiInputResult$1(e),l=UiDropdown$1(e),c=UiDropdownResult$1(e),f={uiTransform:o.componentId,uiText:i.componentId,uiBackground:a.componentId,uiInput:s.componentId,uiDropdown:l.componentId};function d(e,t){m(e,t,"uiTransform")}function p(e,n){if("delete"!==n.type&&n.props){if(n.props){("onMouseDown"===n.component?t.onPointerDown:t.onPointerUp)(e.entity,n.props,{button:0,showFeedback:!0})}}else"onMouseDown"===n.component?t.removeOnPointerDown(e.entity):"onMouseUp"===n.component&&t.removeOnPointerUp(e.entity)}function h(t,n){const r=f[n];e.getComponent(r).deleteFrom(t.entity)}function m(t,n,r){const o=f[r],i=e.getComponent(o),a=i.getMutableOrNull(t.entity)||i.create(t.entity);for(const e in n){const r=e;if("onChange"===e){const e=n[r];v(t.entity,o,{fn:e})}else a[r]=n[r]}}function y(t){r.delete(t.entity),e.removeEntity(t.entity);for(const e of t._child)y(e)}function g(e,t){if(!t||!Object.keys(e).length)return;if(e._child.find((e=>e.entity===t.entity))){const n=e._child.find((e=>e.rightOf===t.entity));n&&(n.rightOf=t.rightOf,e._child=e._child.filter((e=>e.entity!==t.entity)),e._child.push(t),d(n,{rightOf:n.rightOf})),t.rightOf=e._child[e._child.length-2]?.entity}else t.rightOf=e._child[e._child.length-1]?.entity,e._child.push(t);t.parent=e.entity,d(t,{rightOf:t.rightOf,parent:e.entity})}function v(e,t,n){const o=r.get(e)||r.set(e,new Map).get(e),i=o.get(t),a=n?.fn,s=n?.value??i?.value;o.set(t,{fn:a,value:s})}const b={...noopConfig,createInstance(t,r){const o=e.addEntity();n.add(o);const i={entity:o,_child:[],parent:CANVAS_ROOT_ENTITY,rightOf:void 0};for(const e in r){const t=e;"children"!==t&&"key"!==t&&(isListener(t)?p(i,{type:"add",props:r[t],component:t}):m(i,r[t],t))}return i},appendChild:g,appendChildToContainer:g,appendInitialChild:g,removeChild:function(e,t){const n=e._child.findIndex((e=>e.entity===t.entity)),r=e._child[n+1];r&&(r.rightOf=t.rightOf,d(r,{rightOf:t.rightOf})),e._child.splice(n,1),y(t)},prepareUpdate:(e,t,n,r)=>componentKeys.map((e=>propsChanged(e,n[e],r[e]))).filter(isNotUndefined),commitUpdate(e,t,n,r,o,i){for(const n of t)isListener(n.component)?p(e,n):"delete"===n.type?h(e,n.component):m(e,n.props,n.component)},insertBefore(e,t,n){const r=e._child.findIndex((e=>e.entity===n.entity));e._child=[...e._child.slice(0,r),t,...e._child.slice(r)],t.rightOf=n.rightOf,n.rightOf=t.entity,t.parent=e.entity,d(t,{rightOf:t.rightOf,parent:t.parent}),d(n,{rightOf:n.rightOf})},removeChildFromContainer(e,t){y(t)}},_=Reconciler(b),x=_.createContainer({},0,null,!1,null,"",(function(){}),null);function S(t,n){for(const[o,i]of e.getEntitiesWith(n)){const e=r.get(o)?.get(t);e?.fn&&i.value!==e.value&&(e.fn(i.value),v(o,t,{fn:e.fn,value:i.value}))}}return{update:function(e){return r.size&&(S(s.componentId,u),S(l.componentId,c)),_.updateContainer(e,x,null)},getEntities:()=>Array.from(n)}}function createReactBasedUiSystem(e,t){const n=createReconciler(e,t);let r;function o(){r&&n.update(r())}return e.addSystem(o,1e5,"@dcl/react-ecs"),{destroy(){e.removeSystem(o);for(const t of n.getEntities())e.removeEntity(t)},setUiRenderer(e){r=e}}}const ReactEcsRenderer=createReactBasedUiSystem(engine,pointerEventsSystem);var ReactEcs=ReactEcs$1;class ObserverEventState{constructor(e,t=!1,n,r){this.initalize(e,t,n,r)}initalize(e,t=!1,n,r){return this.mask=e,this.skipNextObservers=t,this.target=n,this.currentTarget=r,this}}class Observer{constructor(e,t,n=null){this.callback=e,this.mask=t,this.scope=n,this.unregisterOnNextCall=!1,this._willBeUnregistered=!1}}class Observable{constructor(e){this._observers=new Array,this._onObserverAdded=null,this._eventState=new ObserverEventState(0),e&&(this._onObserverAdded=e)}add(e,t=-1,n=!1,r=null,o=!1){if(!e)return null;const i=new Observer(e,t,r);return i.unregisterOnNextCall=o,n?this._observers.unshift(i):this._observers.push(i),this._onObserverAdded&&this._onObserverAdded(i),i}addOnce(e){return this.add(e,void 0,void 0,void 0,!0)}remove(e){if(!e)return!1;return-1!==this._observers.indexOf(e)&&(this._deferUnregister(e),!0)}removeCallback(e,t){for(let n=0;n<this._observers.length;n++)if(this._observers[n].callback===e&&(!t||t===this._observers[n].scope))return this._deferUnregister(this._observers[n]),!0;return!1}notifyObservers(e,t=-1,n,r){if(!this._observers.length)return!0;const o=this._eventState;o.mask=t,o.target=n,o.currentTarget=r,o.skipNextObservers=!1,o.lastReturnValue=e;for(const n of this._observers)if(!n._willBeUnregistered&&(n.mask&t&&(n.scope?o.lastReturnValue=n.callback.apply(n.scope,[e,o]):o.lastReturnValue=n.callback(e,o),n.unregisterOnNextCall&&this._deferUnregister(n)),o.skipNextObservers))return!1;return!0}notifyObserversWithPromise(e,t=-1,n,r){let o=Promise.resolve(e);if(!this._observers.length)return o;const i=this._eventState;return i.mask=t,i.target=n,i.currentTarget=r,i.skipNextObservers=!1,this._observers.forEach((n=>{i.skipNextObservers||n._willBeUnregistered||n.mask&t&&(o=n.scope?o.then((t=>(i.lastReturnValue=t,n.callback.apply(n.scope,[e,i])))):o.then((t=>(i.lastReturnValue=t,n.callback(e,i)))),n.unregisterOnNextCall&&this._deferUnregister(n))})),o.then((()=>e))}notifyObserver(e,t,n=-1){const r=this._eventState;r.mask=n,r.skipNextObservers=!1,e.callback(t,r)}hasObservers(){return this._observers.length>0}clear(){this._observers=new Array,this._onObserverAdded=null}clone(){const e=new Observable;return e._observers=this._observers.slice(0),e}hasSpecificMask(e=-1){for(const t of this._observers)if(t.mask&e||t.mask===e)return!0;return!1}_deferUnregister(e){e.unregisterOnNextCall=!1,e._willBeUnregistered=!0,Promise.resolve().then.bind(Promise.resolve())((async()=>this._remove(e))).catch(console.error)}_remove(e){if(!e)return!1;const t=this._observers.indexOf(e);return-1!==t&&(this._observers.splice(t,1),!0)}}let subscribeFunction=async()=>{};function createSubscriber(e){return()=>{subscribeFunction({eventId:e}).catch(console.error)}}const onEnterSceneObservable=new Observable(createSubscriber("onEnterScene")),onEnterScene=onEnterSceneObservable,onLeaveSceneObservable=new Observable(createSubscriber("onLeaveScene")),onLeaveScene=onLeaveSceneObservable,onSceneReadyObservable=new Observable(createSubscriber("sceneStart")),onPlayerExpressionObservable=new Observable(createSubscriber("playerExpression")),onVideoEvent=new Observable(createSubscriber("videoEvent")),onProfileChanged=new Observable(createSubscriber("profileChanged")),onPlayerConnectedObservable=new Observable(createSubscriber("playerConnected")),onPlayerDisconnectedObservable=new Observable(createSubscriber("playerDisconnected")),onRealmChangedObservable=new Observable(createSubscriber("onRealmChanged")),onPlayerClickedObservable=new Observable(createSubscriber("playerClicked")),onCommsMessage=new Observable(createSubscriber("comms"));function setSubscribeFunction(e){subscribeFunction=e}async function pollEvents(e){const{events:t}=await e({actions:[]});for(const e of t)if(e.generic){const t=JSON.parse(e.generic.eventData);switch(e.generic.eventId){case"onEnterScene":onEnterSceneObservable.notifyObservers(t);break;case"onLeaveScene":onLeaveSceneObservable.notifyObservers(t);break;case"sceneStart":onSceneReadyObservable.notifyObservers(t);break;case"playerExpression":onPlayerExpressionObservable.notifyObservers(t);break;case"videoEvent":{const e=t;onVideoEvent.notifyObservers(e);break}case"profileChanged":onProfileChanged.notifyObservers(t);break;case"playerConnected":onPlayerConnectedObservable.notifyObservers(t);break;case"playerDisconnected":onPlayerDisconnectedObservable.notifyObservers(t);break;case"onRealmChanged":onRealmChangedObservable.notifyObservers(t);break;case"playerClicked":onPlayerClickedObservable.notifyObservers(t)}}}class MessageBus{constructor(){this.messageQueue=[],this.flushing=!1}on(e,t){return onCommsMessage.add((n=>{const r=JSON.parse(n.message);r.message===e&&t(r.payload,n.sender)}))}sendRaw(e){this.messageQueue.push(e),this.flush()}emit(e,t){const n=JSON.stringify({message:e,payload:t});this.sendRaw(n),onCommsMessage.notifyObservers({message:n,sender:"self"})}flush(){if(0===this.messageQueue.length)return;if(this.flushing)return;const e=this.messageQueue.shift();this.flushing=!0,communicationsController__namespace.send({message:e}).then((e=>{this.flushing=!1,this.flush()}),(e=>{this.flushing=!1}))}}function getEthereumProvider(e){async function t(t){const n=await e({id:t.id,method:t.method,jsonParams:JSON.stringify(t.params)});return JSON.parse(n.jsonAnyResponse)}return{send(e,n){if(!(e&&n&&n instanceof Function))throw new Error("Decentraland provider only allows async calls");t(e).then((e=>n(null,e))).catch(n)},sendAsync(e,n){t(e).then((e=>n(null,e))).catch(n)}}}function createEthereumProvider(){return getEthereumProvider(EthereumController.sendAsync)}function createRendererTransport(e){const t={async send(n){try{await async function(n){const r=await e.crdtSendToRenderer({data:new Uint8Array(n)});if(r&&r.data&&r.data.length&&t.onmessage)for(const e of r.data)t.onmessage(e)}(n)}catch(e){console.error(e)}},filter:e=>(e.type!==exports.CrdtMessageType.PUT_COMPONENT&&e.type!==exports.CrdtMessageType.DELETE_COMPONENT||!(e.componentId>MAX_STATIC_COMPONENT))&&!!e};return t}const rendererTransport=createRendererTransport({crdtSendToRenderer:EngineApi.crdtSendToRenderer});async function onUpdate(e){await engine.update(e),await pollEvents(EngineApi.sendBatch)}async function onStart(){await engine.seal();const e=await EngineApi.crdtGetState({data:new Uint8Array});if(rendererTransport.onmessage&&e&&e.data&&e.data.length)for(const t of e.data)rendererTransport.onmessage(t)}engine.addTransport(rendererTransport),setSubscribeFunction(EngineApi.subscribe),exports.AMOUNT_VERSION_AVAILABLE=AMOUNT_VERSION_AVAILABLE,exports.Animator=Animator,exports.AudioSource=AudioSource,exports.AudioStream=AudioStream,exports.AvatarAttach=AvatarAttach,exports.AvatarModifierArea=AvatarModifierArea,exports.AvatarShape=AvatarShape,exports.AvatarTexture=AvatarTexture,exports.Billboard=Billboard,exports.BorderRect=BorderRect,exports.Button=Button,exports.CANVAS_ROOT_ENTITY=CANVAS_ROOT_ENTITY,exports.CRDT_MESSAGE_HEADER_LENGTH=CRDT_MESSAGE_HEADER_LENGTH,exports.CameraMode=CameraMode,exports.CameraModeArea=CameraModeArea,exports.DEG2RAD=DEG2RAD,exports.Dropdown=Dropdown,exports.Engine=Engine,exports.EntityContainer=EntityContainer,exports.Epsilon=Epsilon,exports.GltfContainer=GltfContainer,exports.Input=Input,exports.Label=Label,exports.MASK_UPPER_16_ON_32=MASK_UPPER_16_ON_32,exports.MAX_ENTITY_NUMBER=MAX_ENTITY_NUMBER,exports.MAX_U16=MAX_U16,exports.Material=Material,exports.MeshCollider=MeshCollider,exports.MeshRenderer=MeshRenderer,exports.MessageBus=MessageBus,exports.NftShape=NftShape,exports.Observable=Observable,exports.Observer=Observer,exports.ObserverEventState=ObserverEventState,exports.PBAnimationState=PBAnimationState,exports.PBAnimator=PBAnimator,exports.PBAudioSource=PBAudioSource,exports.PBAudioStream=PBAudioStream,exports.PBAvatarAttach=PBAvatarAttach,exports.PBAvatarModifierArea=PBAvatarModifierArea,exports.PBAvatarShape=PBAvatarShape,exports.PBBillboard=PBBillboard,exports.PBCameraMode=PBCameraMode,exports.PBCameraModeArea=PBCameraModeArea,exports.PBGltfContainer=PBGltfContainer,exports.PBMaterial=PBMaterial,exports.PBMaterial_PbrMaterial=PBMaterial_PbrMaterial,exports.PBMaterial_UnlitMaterial=PBMaterial_UnlitMaterial,exports.PBMeshCollider=PBMeshCollider,exports.PBMeshCollider_BoxMesh=PBMeshCollider_BoxMesh,exports.PBMeshCollider_CylinderMesh=PBMeshCollider_CylinderMesh,exports.PBMeshCollider_PlaneMesh=PBMeshCollider_PlaneMesh,exports.PBMeshCollider_SphereMesh=PBMeshCollider_SphereMesh,exports.PBMeshRenderer=PBMeshRenderer,exports.PBMeshRenderer_BoxMesh=PBMeshRenderer_BoxMesh,exports.PBMeshRenderer_CylinderMesh=PBMeshRenderer_CylinderMesh,exports.PBMeshRenderer_PlaneMesh=PBMeshRenderer_PlaneMesh,exports.PBMeshRenderer_SphereMesh=PBMeshRenderer_SphereMesh,exports.PBNftShape=PBNftShape,exports.PBPointerEvents=PBPointerEvents,exports.PBPointerEventsResult=PBPointerEventsResult,exports.PBPointerEventsResult_PointerCommand=PBPointerEventsResult_PointerCommand,exports.PBPointerEvents_Entry=PBPointerEvents_Entry,exports.PBPointerEvents_Info=PBPointerEvents_Info,exports.PBPointerLock=PBPointerLock,exports.PBRaycast=PBRaycast,exports.PBRaycastResult=PBRaycastResult,exports.PBTextShape=PBTextShape,exports.PBUiBackground=PBUiBackground,exports.PBUiDropdown=PBUiDropdown,exports.PBUiDropdownResult=PBUiDropdownResult,exports.PBUiInput=PBUiInput,exports.PBUiInputResult=PBUiInputResult,exports.PBUiText=PBUiText,exports.PBUiTransform=PBUiTransform,exports.PBVisibilityComponent=PBVisibilityComponent,exports.PointerEvents=PointerEvents,exports.PointerEventsResult=PointerEventsResult,exports.PointerLock=PointerLock,exports.RAD2DEG=RAD2DEG,exports.RESERVED_STATIC_ENTITIES=RESERVED_STATIC_ENTITIES,exports.Raycast=Raycast,exports.RaycastHit=RaycastHit,exports.RaycastResult=RaycastResult,exports.ReactEcs=ReactEcs,exports.ReactEcsRenderer=ReactEcsRenderer,exports.TextShape=TextShape,exports.Texture=Texture,exports.TextureUnion=TextureUnion,exports.ToGammaSpace=ToGammaSpace,exports.ToLinearSpace=ToLinearSpace,exports.Transform=Transform,exports.UiBackground=UiBackground,exports.UiDropdown=UiDropdown,exports.UiDropdownResult=UiDropdownResult,exports.UiEntity=UiEntity,exports.UiInput=UiInput,exports.UiInputResult=UiInputResult,exports.UiText=UiText,exports.UiTransform=UiTransform,exports.VisibilityComponent=VisibilityComponent,exports.components=index,exports.createComponentDefinitionFromSchema=createComponentDefinitionFromSchema,exports.createEthereumProvider=createEthereumProvider,exports.createInputSystem=createInputSystem,exports.createPointerEventSystem=createPointerEventSystem,exports.createReactBasedUiSystem=createReactBasedUiSystem,exports.createTaskSystem=createTaskSystem,exports.cyclicParentingChecker=cyclicParentingChecker,exports.deepReadonly=deepReadonly,exports.engine=engine,exports.executeTask=executeTask,exports.inputSystem=inputSystem,exports.isListener=isListener,exports.onCommsMessage=onCommsMessage,exports.onEnterScene=onEnterScene,exports.onEnterSceneObservable=onEnterSceneObservable,exports.onLeaveScene=onLeaveScene,exports.onLeaveSceneObservable=onLeaveSceneObservable,exports.onPlayerClickedObservable=onPlayerClickedObservable,exports.onPlayerConnectedObservable=onPlayerConnectedObservable,exports.onPlayerDisconnectedObservable=onPlayerDisconnectedObservable,exports.onPlayerExpressionObservable=onPlayerExpressionObservable,exports.onProfileChanged=onProfileChanged,exports.onRealmChangedObservable=onRealmChangedObservable,exports.onSceneReadyObservable=onSceneReadyObservable,exports.onStart=onStart,exports.onUpdate=onUpdate,exports.onVideoEvent=onVideoEvent,exports.pointerEventsSystem=pointerEventsSystem,exports.pollEvents=pollEvents,exports.setSubscribeFunction=setSubscribeFunction;
|
|
1
|
+
"use strict";var communicationsController=require("~system/CommunicationsController"),EthereumController=require("~system/EthereumController"),EngineApi=require("~system/EngineApi");function _interopNamespaceDefault(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var communicationsController__namespace=_interopNamespaceDefault(communicationsController);const ToGammaSpace=1/2.2,ToLinearSpace=2.2,Epsilon=1e-6,DEG2RAD=Math.PI/180,RAD2DEG=360/(2*Math.PI);exports.Scalar=void 0,function(e){function t(e){const t=+e;return 0===t||isNaN(t)?t:t>0?1:-1}function n(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function r(e,t){return e-Math.floor(e/t)*t}function o(e,t){let n=r(t-e,360);return n>180&&(n-=360),n}function i(e,n,r){let o=0;return o=Math.abs(n-e)<=r?n:e+t(n-e)*r,o}e.TwoPi=2*Math.PI,e.withinEpsilon=function(e,t,n=1401298e-51){const r=e-t;return-n<=r&&r<=n},e.toHex=function(e){const t=e.toString(16);return e<=15?("0"+t).toUpperCase():t.toUpperCase()},e.sign=t,e.clamp=n,e.log2=function(e){return Math.log(e)*Math.LOG2E},e.repeat=r,e.normalize=function(e,t,n){return(e-t)/(n-t)},e.denormalize=function(e,t,n){return e*(n-t)+t},e.deltaAngle=o,e.pingPong=function(e,t){const n=r(e,2*t);return t-Math.abs(n-t)},e.smoothStep=function(e,t,r){let o=n(r);return o=-2*o*o*o+3*o*o,t*o+e*(1-o)},e.moveTowards=i,e.moveTowardsAngle=function(e,t,n){const r=o(e,t);let a=0;return a=-n<r&&r<n?t:i(e,e+r,n),a},e.lerp=function(e,t,n){return e+(t-e)*n},e.lerpAngle=function(e,t,o){let i=r(t-e,360);return i>180&&(i-=360),e+i*n(o)},e.inverseLerp=function(e,t,r){let o=0;return o=e!==t?n((r-e)/(t-e)):0,o},e.hermite=function(e,t,n,r,o){const i=o*o,a=o*i;return e*(2*a-3*i+1)+n*(-2*a+3*i)+t*(a-2*i+o)+r*(a-i)},e.randomRange=function(e,t){return e===t?e:Math.random()*(t-e)+e},e.rangeToPercent=function(e,t,n){return(e-t)/(n-t)},e.percentToRange=function(e,t,n){return(n-t)*e+t},e.normalizeRadians=function(t){return t-e.TwoPi*Math.floor((t+Math.PI)/e.TwoPi)}}(exports.Scalar||(exports.Scalar={})),exports.Vector3=void 0,function(e){function t(e=0,t=0,n=0){return{x:e,y:t,z:n}}function n(e,t){return{x:e.x+t.x,y:e.y+t.y,z:e.z+t.z}}function r(e,t){t.x=e.x,t.y=e.y,t.z=e.z}function o(e,t,n,r){r.x=e,r.y=t,r.z=n}function i(e){return t(e.x,e.y,e.z)}function a(e,n=0){return t(e[n],e[n+1],e[n+2])}function s(e,t,n){n.x=e[t],n.y=e[t+1],n.z=e[t+2]}function u(e){return Math.sqrt(e.x*e.x+e.y*e.y+e.z*e.z)}function l(e,t,n){n.x=e.x*t,n.y=e.y*t,n.z=e.z*t}function c(e,n){const r=t(0,0,0);return f(e,n,r),r}function f(e,t,n){0!==t&&1!==t?l(e,1/t,n):r(e,n)}function d(e){return c(e,u(e))}function p(e,t){return e.x*t.x+e.y*t.y+e.z*t.z}function h(e,t,n){const{x:r,y:o,z:i}=e,a=t._m,s=1/(a[3]*r+a[7]*o+a[11]*i+a[15]);n.x=(a[0]*r+a[4]*o+a[8]*i+a[12])*s,n.y=(a[1]*r+a[5]*o+a[9]*i+a[13])*s,n.z=(a[2]*r+a[6]*o+a[10]*i+a[14])*s}function m(e,t,n){const{x:r,y:o,z:i}=e,{x:a,y:s,z:u,w:l}=t,c=l*r+s*i-u*o,f=l*o+u*r-a*i,d=l*i+a*o-s*r,p=-a*r-s*o-u*i;n.x=c*l+p*-a+f*-u-d*-s,n.y=f*l+p*-s+d*-a-c*-u,n.z=d*l+p*-u+c*-s-f*-a}function y(e,t,n,r){r.x=e.x+(t.x-e.x)*n,r.y=e.y+(t.y-e.y)*n,r.z=e.z+(t.z-e.z)*n}function g(e,t,n){n.x=e.y*t.z-e.z*t.y,n.y=e.z*t.x-e.x*t.z,n.z=e.x*t.y-e.y*t.x}function v(e,t,n){return b(e.x,e.y,e.z,t,n)}function b(e,t,n,r,o){const i=r._m,a=e*i[0]+t*i[4]+n*i[8]+i[12],s=e*i[1]+t*i[5]+n*i[9]+i[13],u=e*i[2]+t*i[6]+n*i[10]+i[14],l=1/(e*i[3]+t*i[7]+n*i[11]+i[15]);o.x=a*l,o.y=s*l,o.z=u*l}function _(e,t,n){x(e.x,e.y,e.z,t,n)}function x(e,t,n,r,o){const i=r._m;o.x=e*i[0]+t*i[4]+n*i[8],o.y=e*i[1]+t*i[5]+n*i[9],o.z=e*i[2]+t*i[6]+n*i[10]}function S(e,t,n,r){let i=e.x;i=i>n.x?n.x:i,i=i<t.x?t.x:i;let a=e.y;a=a>n.y?n.y:a,a=a<t.y?t.y:a;let s=e.z;s=s>n.z?n.z:s,s=s<t.z?t.z:s,o(i,a,s,r)}function w(e,t){const n=e.x-t.x,r=e.y-t.y,o=e.z-t.z;return n*n+r*r+o*o}function T(e,t,n,o){const i=exports.Quaternion.create();exports.Quaternion.fromAxisToRotationQuaternionToRef(e,t,n,i),r(exports.Quaternion.toEulerAngles(i),o)}function E(e,t,n){n.x=e.x*t.x,n.y=e.y*t.y,n.z=e.z*t.z}function R(e,t,n,r,o){o.x=e.x*t,o.y=e.y*n,o.z=e.z*r}function P(e,t,n,r,o){t>e.x?o.x=t:o.x=e.x,n>e.y?o.y=n:o.y=e.y,r>e.z?o.z=r:o.z=e.z}function k(e,t,n,r,o){t<e.x?o.x=t:o.x=e.x,n<e.y?o.y=n:o.y=e.y,r<e.z?o.z=r:o.z=e.z}function C(){return t(0,0,0)}e.isNonUniform=function(e){const t=Math.abs(e.x);return t!==Math.abs(e.y)||t!==Math.abs(e.z)},e.create=t,e.add=n,e.addToRef=function(e,t,n){n.x=e.x+t.x,n.y=e.y+t.y,n.z=e.z+t.z},e.subtract=function(e,t){return{x:e.x-t.x,y:e.y-t.y,z:e.z-t.z}},e.subtractToRef=function(e,t,n){n.x=e.x-t.x,n.y=e.y-t.y,n.z=e.z-t.z},e.subtractFromFloatsToRef=function(e,t,n,r,o){o.x=e.x-t,o.y=e.y-n,o.z=e.z-r},e.negate=function(e){return{x:-e.x,y:-e.y,z:-e.z}},e.copyFrom=r,e.copyFromFloats=o,e.clone=i,e.getClipFactor=function(e,t,n,r){const o=p(e,n)-r;return o/(o-(p(t,n)-r))},e.getAngleBetweenVectors=function(e,n,r){const o=d(e),i=d(n),a=p(o,i),s=t();return g(o,i,s),p(s,r)>0?Math.acos(a):-Math.acos(a)},e.fromArray=a,e.fromFloatArray=function(e,t){return a(e,t)},e.fromArrayToRef=s,e.fromFloatArrayToRef=function(e,t,n){return s(e,t,n)},e.length=u,e.lengthSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z},e.scaleToRef=l,e.scale=function(e,n){return t(e.x*n,e.y*n,e.z*n)},e.normalizeFromLength=c,e.normalizeFromLengthToRef=f,e.normalize=d,e.normalizeToRef=function(e,t){f(e,u(e),t)},e.dot=p,e.applyMatrix4=function(e,t){const n=i(e);return h(e,t,n),n},e.applyMatrix4ToRef=h,e.rotate=function(e,n){const r=t();return m(e,n,r),r},e.rotateToRef=m,e.lerp=function(e,n,r){const o=t(0,0,0);return y(e,n,r,o),o},e.lerpToRef=y,e.cross=function(e,t){const n=C();return g(e,t,n),n},e.crossToRef=g,e.transformCoordinates=function(e,t){const n=C();return v(e,t,n),n},e.transformCoordinatesToRef=v,e.transformCoordinatesFromFloatsToRef=b,e.transformNormal=function(e,t){const n=C();return _(e,t,n),n},e.transformNormalToRef=_,e.transformNormalFromFloatsToRef=x,e.catmullRom=function(e,n,r,o,i){const a=i*i,s=i*a;return t(.5*(2*n.x+(-e.x+r.x)*i+(2*e.x-5*n.x+4*r.x-o.x)*a+(-e.x+3*n.x-3*r.x+o.x)*s),.5*(2*n.y+(-e.y+r.y)*i+(2*e.y-5*n.y+4*r.y-o.y)*a+(-e.y+3*n.y-3*r.y+o.y)*s),.5*(2*n.z+(-e.z+r.z)*i+(2*e.z-5*n.z+4*r.z-o.z)*a+(-e.z+3*n.z-3*r.z+o.z)*s))},e.clamp=function(e,n,r){const o=t();return S(e,n,r,o),o},e.clampToRef=S,e.hermite=function(e,n,r,o,i){const a=i*i,s=i*a,u=2*s-3*a+1,l=-2*s+3*a,c=s-2*a+i,f=s-a;return t(e.x*u+r.x*l+n.x*c+o.x*f,e.y*u+r.y*l+n.y*c+o.y*f,e.z*u+r.z*l+n.z*c+o.z*f)},e.minimize=function(e,n){const r=t();return k(n,e.x,e.y,e.z,r),r},e.maximize=function(e,n){const r=t();return P(e,n.x,n.y,n.z,r),r},e.distance=function(e,t){return Math.sqrt(w(e,t))},e.distanceSquared=w,e.center=function(e,t){const r=n(e,t);return l(r,.5,r),r},e.rotationFromAxis=function(e,t,n){const r=C();return T(e,t,n,r),r},e.rotationFromAxisToRef=T,e.toString=function(e){return`(${e.x}, ${e.y}, ${e.z})`},e.getHashCode=function(e){let t=e.x||0;return t=397*t^(e.y||0),t=397*t^(e.z||0),t},e.equals=function(e,t){return e.x===t.x&&e.y===t.y&&e.z===t.z},e.equalsWithEpsilon=function(e,t,n=Epsilon){return exports.Scalar.withinEpsilon(e.x,t.x,n)&&exports.Scalar.withinEpsilon(e.y,t.y,n)&&exports.Scalar.withinEpsilon(e.z,t.z,n)},e.equalsToFloats=function(e,t,n,r){return e.x===t&&e.y===n&&e.z===r},e.multiply=function(e,n){const r=t();return E(e,n,r),r},e.multiplyToRef=E,e.multiplyByFloatsToRef=R,e.multiplyByFloats=function(e,n,r,o){const i=t();return R(e,n,r,o,i),i},e.divide=function(e,t){return{x:e.x/t.x,y:e.y/t.y,z:e.z/t.z}},e.divideToRef=function(e,t,n){n.x=e.x/t.x,n.y=e.y/t.y,n.z=e.z/t.z},e.maximizeInPlaceFromFloatsToRef=P,e.minimizeInPlaceFromFloatsToRef=k,e.floor=function(e){return t(Math.floor(e.x),Math.floor(e.y),Math.floor(e.z))},e.fract=function(e){return t(e.x-Math.floor(e.x),e.y-Math.floor(e.y),e.z-Math.floor(e.z))},e.Zero=C,e.One=function(){return t(1,1,1)},e.Up=function(){return t(0,1,0)},e.Down=function(){return t(0,-1,0)},e.Forward=function(){return t(0,0,1)},e.Backward=function(){return t(0,0,-1)},e.Right=function(){return t(1,0,0)},e.Left=function(){return t(-1,0,0)},e.Random=function(){return t(Math.random(),Math.random(),Math.random())}}(exports.Vector3||(exports.Vector3={})),exports.Plane=void 0,function(e){function t(e,t,n,r){return{normal:exports.Vector3.create(e,t,n),d:r}}e.create=t,e.fromArray=function(e){return t(e[0],e[1],e[2],e[3])},e.fromPoints=function(e,n,r){return t(0,0,0,0)},e.romPositionAndNormal=function(e,n){const r=t(0,0,0,0);return r.normal=exports.Vector3.normalize(n),r.d=-(n.x*e.x+n.y*e.y+n.z*e.z),r},e.signedDistanceToPlaneFromPositionAndNormal=function(e,t,n){const r=-(t.x*e.x+t.y*e.y+t.z*e.z);return exports.Vector3.dot(n,t)+r},e.asArray=function(e){return[e.normal.x,e.normal.y,e.normal.z,e.d]},e.clone=function(e){return t(e.normal.x,e.normal.y,e.normal.z,e.d)},e.getHashCode=function(e){return 0},e.normalize=function(e){const n=t(0,0,0,0),r=Math.sqrt(e.normal.x*e.normal.x+e.normal.y*e.normal.y+e.normal.z*e.normal.z);let o=0;return 0!==r&&(o=1/r),n.normal.x=e.normal.x*o,n.normal.y=e.normal.y*o,n.normal.z=e.normal.z*o,n.d*=o,e},e.transform=function(e,n){const r=exports.Matrix.create();exports.Matrix.transposeToRef(n,r);const o=r._m,i=e.normal.x,a=e.normal.y,s=e.normal.z,u=e.d;return t(i*o[0]+a*o[1]+s*o[2]+u*o[3],i*o[4]+a*o[5]+s*o[6]+u*o[7],i*o[8]+a*o[9]+s*o[10]+u*o[11],i*o[12]+a*o[13]+s*o[14]+u*o[15])},e.dotCoordinate=function(e,t){return e.normal.x*t.x+e.normal.y*t.y+e.normal.z*t.z+e.d},e.copyFromPoints=function(e,t,n){const r=t.x-e.x,o=t.y-e.y,i=t.z-e.z,a=n.x-e.x,s=n.y-e.y,u=n.z-e.z,l=o*u-i*s,c=i*a-r*u,f=r*s-o*a,d=Math.sqrt(l*l+c*c+f*f);let p;p=0!==d?1/d:0;const h=exports.Vector3.create(l*p,c*p,f*p);return{normal:h,d:-(h.x*e.x+h.y*e.y+h.z*e.z)}},e.isFrontFacingTo=function(e,t,n){return exports.Vector3.dot(e.normal,t)<=n},e.signedDistanceTo=function(e,t){return exports.Vector3.dot(t,e.normal)+e.d}}(exports.Plane||(exports.Plane={})),exports.Matrix=void 0,function(e){e.m=function(e){return e._m};let t=0;const n={};function r(){const e={updateFlag:0,isIdentity:!1,isIdentity3x2:!0,_isIdentityDirty:!0,_isIdentity3x2Dirty:!0,_m:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]};return W(e,!1),e}function o(e,t,n){for(let r=0;r<16;r++)n._m[r]=e[r+t];k(n)}function i(e,t,n,r,o,i,a,s,u,l,c,f,d,p,h,m,y){const g=y._m;g[0]=e,g[1]=t,g[2]=n,g[3]=r,g[4]=o,g[5]=i,g[6]=a,g[7]=s,g[8]=u,g[9]=l,g[10]=c,g[11]=f,g[12]=d,g[13]=p,g[14]=h,g[15]=m,k(y)}function a(e,t,n,o,i,a,s,u,l,c,f,d,p,h,m,y){const g=r(),v=g._m;return v[0]=e,v[1]=t,v[2]=n,v[3]=o,v[4]=i,v[5]=a,v[6]=s,v[7]=u,v[8]=l,v[9]=c,v[10]=f,v[11]=d,v[12]=p,v[13]=h,v[14]=m,v[15]=y,k(g),g}function s(e,t,n,o){const i=[r(),r(),r()];h(e.x,e.y,e.z,i[1]),P(t,i[0]),z(i[1],i[0],o),I(o,n)}function u(){const e=a(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return W(e,!0),e}function l(e,t){const n=Math.sin(e),r=Math.cos(e);i(1,0,0,0,0,r,n,0,0,-n,r,0,0,0,0,1,t),W(t,1===r&&0===n)}function c(e,t){const n=Math.sin(e),r=Math.cos(e);i(r,0,-n,0,0,1,0,0,n,0,r,0,0,0,0,1,t),W(t,1===r&&0===n)}function f(e,t){const n=Math.sin(e),r=Math.cos(e);i(r,n,0,0,-n,r,0,0,0,0,1,0,0,0,0,1,t),W(t,1===r&&0===n)}function d(e,t,n){const r=Math.sin(-t),o=Math.cos(-t),i=1-o,a=exports.Vector3.normalize(e),s=n._m;s[0]=a.x*a.x*i+o,s[1]=a.x*a.y*i-a.z*r,s[2]=a.x*a.z*i+a.y*r,s[3]=0,s[4]=a.y*a.x*i+a.z*r,s[5]=a.y*a.y*i+o,s[6]=a.y*a.z*i-a.x*r,s[7]=0,s[8]=a.z*a.x*i-a.y*r,s[9]=a.z*a.y*i+a.x*r,s[10]=a.z*a.z*i+o,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,k(n)}function p(e,t,n,r){const o=exports.Quaternion.Zero();exports.Quaternion.fromRotationYawPitchRollToRef(e,t,n,o),P(o,r)}function h(e,t,n,r){i(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1,r),W(r,1===e&&1===t&&1===n)}function m(e,t,n,r){i(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1,r),W(r,0===e&&0===t&&0===n)}function y(e,t,n,r){for(let o=0;o<16;o++)r._m[o]=e._m[o]*(1-n)+t._m[o]*n;k(r)}function g(e,t,n,r){const o=exports.Vector3.Zero(),i=exports.Quaternion.Zero(),a=exports.Vector3.Zero();O(e,o,i,a);const u=exports.Vector3.Zero(),l=exports.Quaternion.Zero(),c=exports.Vector3.Zero();O(t,u,l,c);const f=exports.Vector3.Zero();exports.Vector3.lerpToRef(o,u,n,f);const d=exports.Quaternion.Zero();exports.Quaternion.slerpToRef(i,l,n,d);const p=exports.Vector3.Zero();exports.Vector3.lerpToRef(a,c,n,p),s(f,d,p,r)}function v(e,t,n,r){const o=exports.Vector3.Zero(),a=exports.Vector3.Zero(),s=exports.Vector3.Zero();exports.Vector3.subtractToRef(t,e,s),exports.Vector3.normalizeToRef(s,s),exports.Vector3.crossToRef(n,s,o);const u=exports.Vector3.lengthSquared(o);0===u?o.x=1:exports.Vector3.normalizeFromLengthToRef(o,Math.sqrt(u),o),exports.Vector3.crossToRef(s,o,a),exports.Vector3.normalizeToRef(a,a);const l=-exports.Vector3.dot(o,e),c=-exports.Vector3.dot(a,e),f=-exports.Vector3.dot(s,e);i(o.x,a.x,s.x,0,o.y,a.y,s.y,0,o.z,a.z,s.z,0,l,c,f,1,r)}function b(e,t,n,r){const o=exports.Vector3.Zero(),a=exports.Vector3.Zero(),s=exports.Vector3.Zero();exports.Vector3.subtractToRef(e,t,s),exports.Vector3.normalizeToRef(s,s),exports.Vector3.crossToRef(n,s,o);const u=exports.Vector3.lengthSquared(o);0===u?o.x=1:exports.Vector3.normalizeFromLengthToRef(o,Math.sqrt(u),o),exports.Vector3.crossToRef(s,o,a),exports.Vector3.normalizeToRef(a,a);const l=-exports.Vector3.dot(o,e),c=-exports.Vector3.dot(a,e),f=-exports.Vector3.dot(s,e);i(o.x,a.x,s.x,0,o.y,a.y,s.y,0,o.z,a.z,s.z,0,l,c,f,1,r)}function _(e,t,n,r,o){const a=2/e,s=2/t,u=2/(r-n),l=-(r+n)/(r-n);i(a,0,0,0,0,s,0,0,0,0,u,0,0,0,l,1,o),W(o,1===a&&1===s&&1===u&&0===l)}function x(e,t,n,r,o,a,s){i(2/(t-e),0,0,0,0,2/(r-n),0,0,0,0,2/(a-o),0,(e+t)/(e-t),(r+n)/(n-r),-(a+o)/(a-o),1,s),k(s)}function S(e,t,n,r,o,i,a){x(e,t,n,r,o,i,a),a._m[10]*=-1}function w(e,t,n,r,o,a=!0){const s=n,u=r,l=1/Math.tan(.5*e);i(a?l/t:l,0,0,0,0,a?l:l*t,0,0,0,0,(u+s)/(u-s),1,0,0,-2*u*s/(u-s),0,o),W(o,!1)}function T(e,t,n,r,o,a=!0){const s=n,u=r,l=1/Math.tan(.5*e);i(a?l/t:l,0,0,0,0,a?l:l*t,0,0,0,0,-(u+s)/(u-s),-1,0,0,-2*u*s/(u-s),0,o),W(o,!1)}function E(e,t){const n=t._m,r=e._m;n[0]=r[0],n[1]=r[4],n[2]=r[8],n[3]=r[12],n[4]=r[1],n[5]=r[5],n[6]=r[9],n[7]=r[13],n[8]=r[2],n[9]=r[6],n[10]=r[10],n[11]=r[14],n[12]=r[3],n[13]=r[7],n[14]=r[11],n[15]=r[15],W(t,e.isIdentity,e._isIdentityDirty)}function R(e,t){const n=exports.Plane.normalize(e),r=n.normal.x,o=n.normal.y,a=n.normal.z,s=-2*r,u=-2*o,l=-2*a;i(s*r+1,u*r,l*r,0,s*o,u*o+1,l*o,0,s*a,u*a,l*a+1,0,s*n.d,u*n.d,l*n.d,1,t)}function P(e,t){const n=e.x*e.x,r=e.y*e.y,o=e.z*e.z,i=e.x*e.y,a=e.z*e.w,s=e.z*e.x,u=e.y*e.w,l=e.y*e.z,c=e.x*e.w;t._m[0]=1-2*(r+o),t._m[1]=2*(i+a),t._m[2]=2*(s-u),t._m[3]=0,t._m[4]=2*(i-a),t._m[5]=1-2*(o+n),t._m[6]=2*(l+c),t._m[7]=0,t._m[8]=2*(s+u),t._m[9]=2*(l-c),t._m[10]=1-2*(r+n),t._m[11]=0,t._m[12]=0,t._m[13]=0,t._m[14]=0,t._m[15]=1,k(t)}function k(e){e.updateFlag=t++,e.isIdentity=!1,e.isIdentity3x2=!1,e._isIdentityDirty=!0,e._isIdentity3x2Dirty=!0}function C(e){if(!0===e.isIdentity)return 1;const t=e._m,n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],u=t[6],l=t[7],c=t[8],f=t[9],d=t[10],p=t[11],h=t[12],m=t[13],y=t[14],g=t[15],v=d*g-y*p,b=f*g-m*p,_=f*y-m*d,x=c*g-h*p,S=c*y-d*h,w=c*m-h*f;return n*+(s*v-u*b+l*_)+r*-(a*v-u*x+l*S)+o*+(a*b-s*x+l*w)+i*-(a*_-s*S+u*w)}function M(e,t,n){for(let r=0;r<16;r++)n._m[r]=e._m[r]+t._m[r];k(n)}function B(e,t){if(!0===e.isIdentity)return void N(e,t);const n=e._m,r=n[0],o=n[1],a=n[2],s=n[3],u=n[4],l=n[5],c=n[6],f=n[7],d=n[8],p=n[9],h=n[10],m=n[11],y=n[12],g=n[13],v=n[14],b=n[15],_=h*b-v*m,x=p*b-g*m,S=p*v-g*h,w=d*b-y*m,T=d*v-h*y,E=d*g-y*p,R=+(l*_-c*x+f*S),P=-(u*_-c*w+f*T),k=+(u*x-l*w+f*E),C=-(u*S-l*T+c*E),M=r*R+o*P+a*k+s*C;if(0===M)return void N(e,t);const B=1/M,A=c*b-v*f,I=l*b-g*f,U=l*v-g*c,z=u*b-y*f,D=u*v-y*c,O=u*g-y*l,L=c*m-h*f,F=l*m-p*f,W=l*h-p*c,G=u*m-d*f,$=u*h-d*c,H=u*p-d*l;i(R*B,-(o*_-a*x+s*S)*B,+(o*A-a*I+s*U)*B,-(o*L-a*F+s*W)*B,P*B,+(r*_-a*w+s*T)*B,-(r*A-a*z+s*D)*B,+(r*L-a*G+s*$)*B,k*B,-(r*x-o*w+s*E)*B,+(r*I-o*z+s*O)*B,-(r*F-o*G+s*H)*B,C*B,+(r*S-o*T+a*E)*B,-(r*U-o*D+a*O)*B,+(r*W-o*$+a*H)*B,t)}function A(e,t,n,r){e._m[12]=t,e._m[13]=n,e._m[14]=r,k(e)}function I(e,t){A(e,t.x,t.y,t.z)}function N(e,t){U(e,t._m),W(t,e.isIdentity,e._isIdentityDirty,e.isIdentity3x2,e._isIdentity3x2Dirty)}function U(e,t,n=0){for(let r=0;r<16;r++)t[n+r]=e._m[r]}function z(e,t,n){e.isIdentity?N(t,n):t.isIdentity?N(e,n):(D(e,t,n._m,0),k(n))}function D(e,t,n,r){const o=e._m,i=t._m,a=o[0],s=o[1],u=o[2],l=o[3],c=o[4],f=o[5],d=o[6],p=o[7],h=o[8],m=o[9],y=o[10],g=o[11],v=o[12],b=o[13],_=o[14],x=o[15],S=i[0],w=i[1],T=i[2],E=i[3],R=i[4],P=i[5],k=i[6],C=i[7],M=i[8],B=i[9],A=i[10],I=i[11],N=i[12],U=i[13],z=i[14],D=i[15];n[r]=a*S+s*R+u*M+l*N,n[r+1]=a*w+s*P+u*B+l*U,n[r+2]=a*T+s*k+u*A+l*z,n[r+3]=a*E+s*C+u*I+l*D,n[r+4]=c*S+f*R+d*M+p*N,n[r+5]=c*w+f*P+d*B+p*U,n[r+6]=c*T+f*k+d*A+p*z,n[r+7]=c*E+f*C+d*I+p*D,n[r+8]=h*S+m*R+y*M+g*N,n[r+9]=h*w+m*P+y*B+g*U,n[r+10]=h*T+m*k+y*A+g*z,n[r+11]=h*E+m*C+y*I+g*D,n[r+12]=v*S+b*R+_*M+x*N,n[r+13]=v*w+b*P+_*B+x*U,n[r+14]=v*T+b*k+_*A+x*z,n[r+15]=v*E+b*C+_*I+x*D}function O(e,t,n,o){if(e.isIdentity)return o&&(o=exports.Vector3.create(0,0,0)),t&&(t=exports.Vector3.create(0,0,0)),n&&(n=exports.Quaternion.create(0,0,0,1)),!0;const a=e._m;o&&(o=exports.Vector3.create(a[12],a[13],a[14]));const s=t||exports.Vector3.Zero();if(s.x=Math.sqrt(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]),s.y=Math.sqrt(a[4]*a[4]+a[5]*a[5]+a[6]*a[6]),s.z=Math.sqrt(a[8]*a[8]+a[9]*a[9]+a[10]*a[10]),C(e)<=0&&(s.y*=-1),0===s.x||0===s.y||0===s.z)return n&&(n=exports.Quaternion.create(0,0,0,1)),!1;if(n){const e=1/s.x,t=1/s.y,o=1/s.z,u=r();i(a[0]*e,a[1]*e,a[2]*e,0,a[4]*t,a[5]*t,a[6]*t,0,a[8]*o,a[9]*o,a[10]*o,0,0,0,0,1,u),exports.Quaternion.fromRotationMatrixToRef(u,n)}return!0}function L(e,t,n){for(let r=0;r<16;r++)n._m[r]=e._m[r]*t;k(n)}function F(e,t){const n=exports.Vector3.Zero();if(!O(e,n))return void(t=u());const r=e._m,o=1/n.x,a=1/n.y,s=1/n.z;i(r[0]*o,r[1]*o,r[2]*o,0,r[4]*a,r[5]*a,r[6]*a,0,r[8]*s,r[9]*s,r[10]*s,0,0,0,0,1,t)}function W(e,n,r=!1,o=!1,i=!0){e.updateFlag=t++,e.isIdentity=n,e.isIdentity3x2=n||o,e._isIdentityDirty=!e.isIdentity&&r,e._isIdentity3x2Dirty=!e.isIdentity3x2&&i}e.IdentityReadonly=function(){return n},e.create=r,e.fromArray=function(e,t=0){const n=r();return o(e,t,n),n},e.fromArrayToRef=o,e.fromFloatArrayToRefScaled=function(e,t,n,r){for(let o=0;o<16;o++)r._m[o]=e[o+t]*n;k(r)},e.fromValuesToRef=i,e.fromValues=a,e.compose=function(e,t,n){const o=r();return s(e,t,n,o),o},e.composeToRef=s,e.Identity=u,e.IdentityToRef=function(e){i(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,e),W(e,!0)},e.Zero=function(){const e=a(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return W(e,!1),e},e.RotationX=function(e){const t=r();return l(e,t),t},e.rotationXToRef=l,e.rotationY=function(e){const t=r();return c(e,t),t},e.rotationYToRef=c,e.rotationZ=function(e){const t=r();return f(e,t),t},e.rotationZToRef=f,e.rotationAxis=function(e,t){const n=r();return d(e,t,n),n},e.rotationAxisToRef=d,e.rotationYawPitchRoll=function(e,t,n){const o=r();return p(e,t,n,o),o},e.rotationYawPitchRollToRef=p,e.scaling=function(e,t,n){const o=r();return h(e,t,n,o),o},e.scalingToRef=h,e.translation=function(e,t,n){const o=r();return m(e,t,n,o),o},e.translationToRef=m,e.lerp=function(e,t,n){const o=r();return y(e,t,n,o),o},e.lerpToRef=y,e.decomposeLerp=function(e,t,n){const o=r();return g(e,t,n,o),o},e.decomposeLerpToRef=g,e.LookAtLH=function(e,t,n){const o=r();return v(e,t,n,o),o},e.lookAtLHToRef=v,e.lookAtRH=function(e,t,n){const o=r();return b(e,t,n,o),o},e.lookAtRHToRef=b,e.orthoLH=function(e,t,n,o){const i=r();return _(e,t,n,o,i),i},e.orthoLHToRef=_,e.OrthoOffCenterLH=function(e,t,n,o,i,a){const s=r();return x(e,t,n,o,i,a,s),s},e.orthoOffCenterLHToRef=x,e.orthoOffCenterRH=function(e,t,n,o,i,a){const s=r();return S(e,t,n,o,i,a,s),s},e.orthoOffCenterRHToRef=S,e.perspectiveLH=function(e,t,n,o){const a=r();return i(2*n/e,0,0,0,0,2*n/t,0,0,0,0,(o+n)/(o-n),1,0,0,-2*o*n/(o-n),0,a),W(a,!1),a},e.perspectiveFovLH=function(e,t,n,o){const i=r();return w(e,t,n,o,i),i},e.perspectiveFovLHToRef=w,e.PerspectiveFovRH=function(e,t,n,o){const i=r();return T(e,t,n,o,i),i},e.perspectiveFovRHToRef=T,e.perspectiveFovWebVRToRef=function(e,t,n,r,o=!1){const i=o?-1:1,a=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),u=Math.tan(e.leftDegrees*Math.PI/180),l=Math.tan(e.rightDegrees*Math.PI/180),c=2/(u+l),f=2/(a+s),d=r._m;d[0]=c,d[1]=d[2]=d[3]=d[4]=0,d[5]=f,d[6]=d[7]=0,d[8]=(u-l)*c*.5,d[9]=-(a-s)*f*.5,d[10]=-n/(t-n),d[11]=1*i,d[12]=d[13]=d[15]=0,d[14]=-2*n*t/(n-t),k(r)},e.GetAsMatrix2x2=function(e){return[e._m[0],e._m[1],e._m[4],e._m[5]]},e.GetAsMatrix3x3=function(e){return[e._m[0],e._m[1],e._m[2],e._m[4],e._m[5],e._m[6],e._m[8],e._m[9],e._m[10]]},e.transpose=function(e){const t=r();return E(e,t),t},e.transposeToRef=E,e.reflection=function(e){const t=r();return R(e,t),t},e.reflectionToRef=R,e.fromXYZAxesToRef=function(e,t,n,r){i(e.x,e.y,e.z,0,t.x,t.y,t.z,0,n.x,n.y,n.z,0,0,0,0,1,r)},e.fromQuaternionToRef=P,e.isIdentityUpdate=function(e){if(e._isIdentityDirty){e._isIdentityDirty=!1;const t=e._m;e.isIdentity=1===t[0]&&0===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[7]&&0===t[8]&&0===t[9]&&1===t[10]&&0===t[11]&&0===t[12]&&0===t[13]&&0===t[14]&&1===t[15]}return e.isIdentity},e.isIdentityAs3x2Update=function(e){return e._isIdentity3x2Dirty&&(e._isIdentity3x2Dirty=!1,1!==e._m[0]||1!==e._m[5]||1!==e._m[15]||0!==e._m[1]||0!==e._m[2]||0!==e._m[3]||0!==e._m[4]||0!==e._m[6]||0!==e._m[7]||0!==e._m[8]||0!==e._m[9]||0!==e._m[10]||0!==e._m[11]||0!==e._m[12]||0!==e._m[13]||0!==e._m[14]?e.isIdentity3x2=!1:e.isIdentity3x2=!0),e.isIdentity3x2},e.determinant=C,e.toArray=function(e){return e._m},e.asArray=function(e){return e._m},e.reset=function(e){i(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,e),W(e,!1)},e.add=function(e,t){const n=r();return M(e,t,n),n},e.addToRef=M,e.addToSelf=function(e,t){for(let n=0;n<16;n++)e._m[n]+=t._m[n];k(e)},e.invert=function(e){const t=r();return B(e,t),t},e.invertToRef=B,e.addAtIndex=function(e,t,n){e._m[t]+=n,k(e)},e.multiplyAtIndex=function(e,t,n){return e._m[t]*=n,k(e),e},e.setTranslationFromFloats=A,e.setTranslation=I,e.getTranslation=function(e){return exports.Vector3.create(e._m[12],e._m[13],e._m[14])},e.getTranslationToRef=function(e,t){t.x=e._m[12],t.y=e._m[13],t.z=e._m[14]},e.removeRotationAndScaling=function(e){const t=e._m;return i(1,0,0,0,0,1,0,0,0,0,1,0,t[12],t[13],t[14],t[15],e),W(e,0===t[12]&&0===t[13]&&0===t[14]&&1===t[15]),e},e.multiply=function(e,t){const n=r();return z(e,t,n),n},e.copy=N,e.copyToArray=U,e.multiplyToRef=z,e.multiplyToArray=D,e.equals=function(e,t){const n=t;if(!n)return!1;if((e.isIdentity||n.isIdentity)&&!e._isIdentityDirty&&!n._isIdentityDirty)return e.isIdentity&&n.isIdentity;const r=e._m,o=n._m;return r[0]===o[0]&&r[1]===o[1]&&r[2]===o[2]&&r[3]===o[3]&&r[4]===o[4]&&r[5]===o[5]&&r[6]===o[6]&&r[7]===o[7]&&r[8]===o[8]&&r[9]===o[9]&&r[10]===o[10]&&r[11]===o[11]&&r[12]===o[12]&&r[13]===o[13]&&r[14]===o[14]&&r[15]===o[15]},e.clone=function(e){const t=r();return N(e,t),t},e.getHashCode=function(e){let t=e._m[0]||0;for(let n=1;n<16;n++)t=397*t^(e._m[n]||0);return t},e.decompose=O,e.setRowFromFloats=function(e,t,n,r,o,i){if(t<0||t>3)return;const a=4*t;e._m[a+0]=n,e._m[a+1]=r,e._m[a+2]=o,e._m[a+3]=i,k(e)},e.scale=function(e,t){const n=r();return L(e,t,n),n},e.scaleToRef=L,e.scaleAndAddToRef=function(e,t,n){for(let r=0;r<16;r++)n._m[r]+=e._m[r]*t;k(n)},e.normalMatrixToRef=function(e,t){const n=r();B(e,n),E(n,t);const o=t._m;i(o[0],o[1],o[2],0,o[4],o[5],o[6],0,o[8],o[9],o[10],0,0,0,0,1,t)},e.getRotationMatrix=function(e){const t=r();return F(e,t),t},e.getRotationMatrixToRef=F,e.toggleModelMatrixHandInPlace=function(e){e._m[2]*=-1,e._m[6]*=-1,e._m[8]*=-1,e._m[9]*=-1,e._m[14]*=-1,k(e)},e.toggleProjectionMatrixHandInPlace=function(e){e._m[8]*=-1,e._m[9]*=-1,e._m[10]*=-1,e._m[11]*=-1,k(e)}}(exports.Matrix||(exports.Matrix={})),exports.Quaternion=void 0,function(e){function t(e=0,t=0,n=0,r=1){return{x:e,y:t,z:n,w:r}}function n(e,n,r){const o=.5*n,i=.5*e,a=.5*r,s=Math.cos(o),u=Math.cos(i),l=Math.cos(a),c=Math.sin(o),f=Math.sin(i),d=Math.sin(a);return t(u*c*l+f*s*d,f*s*l-u*c*d,u*s*d-f*c*l,u*s*l+f*c*d)}function r(e){return Math.sqrt(o(e))}function o(e){return e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w}function i(e,t){return e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w}function a(e,t){const n=i(e,t);return 2*Math.acos(Math.min(Math.abs(n),1))*RAD2DEG}function s(e){const n=1/r(e);return t(e.x*n,e.y*n,e.z*n,e.w*n)}function u(){return t(0,0,0,1)}function l(t,n,r){const o=e.Identity();return e.slerpToRef(t,n,r,o),o}function c(e,t,n){n.x=e.x*t.w+e.y*t.z-e.z*t.y+e.w*t.x,n.y=-e.x*t.z+e.y*t.w+e.z*t.x+e.w*t.y,n.z=e.x*t.y-e.y*t.x+e.z*t.w+e.w*t.z,n.w=-e.x*t.x-e.y*t.y-e.z*t.z+e.w*t.w}function f(t,n,r,o){const i=exports.Matrix.create();exports.Matrix.fromXYZAxesToRef(exports.Vector3.normalize(t),exports.Vector3.normalize(n),exports.Vector3.normalize(r),i),e.fromRotationMatrixToRef(i,o)}function d(t,n,r=exports.Vector3.Up(),o){const i=exports.Matrix.Identity();exports.Matrix.lookAtLHToRef(t,n,r,i),exports.Matrix.invertToRef(i,i),e.fromRotationMatrixToRef(i,o)}e.create=t,e.add=function(e,t){return{x:e.x+t.x,y:e.y+t.y,z:e.z+t.z,w:e.w+t.w}},e.fromRotationYawPitchRoll=n,e.fromEulerDegrees=function(e,t,r){return n(t*DEG2RAD,e*DEG2RAD,r*DEG2RAD)},e.length=r,e.lengthSquared=o,e.dot=i,e.angle=a,e.rotateTowards=function(e,t,n){const r=a(e,t);return 0===r?t:l(e,t,Math.min(1,n/r))},e.lookRotation=function(e,n={x:0,y:1,z:0}){const r=exports.Vector3.normalize(e),o=exports.Vector3.normalize(exports.Vector3.cross(n,r)),i=exports.Vector3.cross(r,o),a=o.x,s=o.y,u=o.z,l=i.x,c=i.y,f=i.z,d=r.x,p=r.y,h=r.z,m=a+c+h,y=t();if(m>0){let e=Math.sqrt(m+1);return y.w=.5*e,e=.5/e,y.x=(f-p)*e,y.y=(d-u)*e,y.z=(s-l)*e,y}if(a>=c&&a>=h){const e=Math.sqrt(1+a-c-h),t=.5/e;return y.x=.5*e,y.y=(s+l)*t,y.z=(u+d)*t,y.w=(f-p)*t,y}if(c>h){const e=Math.sqrt(1+c-a-h),t=.5/e;return y.x=(l+s)*t,y.y=.5*e,y.z=(p+f)*t,y.w=(d-u)*t,y}const g=Math.sqrt(1+h-a-c),v=.5/g;return y.x=(d+u)*v,y.y=(p+f)*v,y.z=.5*g,y.w=(s-l)*v,y},e.normalize=s,e.fromToRotation=function(e,n,r=exports.Vector3.Up()){const o=exports.Vector3.normalize(e),i=exports.Vector3.normalize(n),a=exports.Vector3.cross(o,i),l=Math.sqrt(exports.Vector3.lengthSquared(o)*exports.Vector3.lengthSquared(i))+exports.Vector3.dot(o,i);return exports.Vector3.lengthSquared(a)<1e-4?Math.abs(l)<1e-4?s(t(r.x,r.y,r.z,0)):u():s(t(a.x,a.y,a.z,l))},e.Identity=u,e.toEulerAngles=function(e){const t=exports.Vector3.create(),n=e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w,r=e.x*e.w-e.y*e.z;return r>.4995*n?(t.x=Math.PI/2,t.y=2*Math.atan2(e.y,e.x),t.z=0):r<-.4995*n?(t.x=-Math.PI/2,t.y=-2*Math.atan2(e.y,e.x),t.z=0):(t.x=Math.asin(2*(e.w*e.x-e.y*e.z)),t.y=Math.atan2(2*e.w*e.y+2*e.z*e.x,1-2*(e.x*e.x+e.y*e.y)),t.z=Math.atan2(2*e.w*e.z+2*e.x*e.y,1-2*(e.z*e.z+e.x*e.x))),t.x*=RAD2DEG,t.y*=RAD2DEG,t.z*=RAD2DEG,t.x=exports.Scalar.repeat(t.x,360),t.y=exports.Scalar.repeat(t.y,360),t.z=exports.Scalar.repeat(t.z,360),t},e.fromRotationYawPitchRollToRef=function(e,t,n,r){const o=.5*t,i=.5*e,a=.5*n,s=Math.cos(o),u=Math.cos(i),l=Math.cos(a),c=Math.sin(o),f=Math.sin(i),d=Math.sin(a);r.x=u*c*l+f*s*d,r.y=f*s*l-u*c*d,r.z=u*s*d-f*c*l,r.w=u*s*l+f*c*d},e.fromRotationMatrixToRef=function(e,t){const n=e._m,r=n[0],o=n[4],i=n[8],a=n[1],s=n[5],u=n[9],l=n[2],c=n[6],f=n[10],d=r+s+f;let p;d>0?(p=.5/Math.sqrt(d+1),t.w=.25/p,t.x=(c-u)*p,t.y=(i-l)*p,t.z=(a-o)*p):r>s&&r>f?(p=2*Math.sqrt(1+r-s-f),t.w=(c-u)/p,t.x=.25*p,t.y=(o+a)/p,t.z=(i+l)/p):s>f?(p=2*Math.sqrt(1+s-r-f),t.w=(i-l)/p,t.x=(o+a)/p,t.y=.25*p,t.z=(u+c)/p):(p=2*Math.sqrt(1+f-r-s),t.w=(a-o)/p,t.x=(i+l)/p,t.y=(u+c)/p,t.z=.25*p)},e.slerp=l,e.slerpToRef=function(e,t,n,r){let o,i,a=e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w,s=!1;if(a<0&&(s=!0,a=-a),a>.999999)i=1-n,o=s?-n:n;else{const e=Math.acos(a),t=1/Math.sin(e);i=Math.sin((1-n)*e)*t,o=s?-Math.sin(n*e)*t:Math.sin(n*e)*t}r.x=i*e.x+o*t.x,r.y=i*e.y+o*t.y,r.z=i*e.z+o*t.z,r.w=i*e.w+o*t.w},e.multiply=function(e,n){const r=t(0,0,0,1);return c(e,n,r),r},e.multiplyToRef=c,e.fromAngleAxis=function(t,n){if(0===exports.Vector3.lengthSquared(n))return e.Identity();const r=u();let o=t*DEG2RAD;o*=.5;const i=exports.Vector3.normalize(n);return exports.Vector3.scaleToRef(i,Math.sin(o),i),r.x=i.x,r.y=i.y,r.z=i.z,r.w=Math.cos(o),s(r)},e.fromAxisToRotationQuaternion=function(t,n,r){const o=e.create(0,0,0,0);return f(t,n,r,o),o},e.fromAxisToRotationQuaternionToRef=f,e.Zero=function(){return t(0,0,0,0)},e.fromLookAt=function(t,n,r=exports.Vector3.Up()){const o=e.Identity();return d(t,n,r,o),o},e.fromLookAtToRef=d}(exports.Quaternion||(exports.Quaternion={})),exports.Color4=void 0,function(e){function t(e=0,t=0,n=0,r=1){return{r:e,g:t,b:n,a:r}}function n(){return t(0,0,0,0)}function r(e,t,n){n.r=e.r+t.r,n.g=e.g+t.g,n.b=e.b+t.b,n.a=e.a+t.a}function o(e,t,n){n.r=e.r-t.r,n.g=e.g-t.g,n.b=e.b-t.b,n.a=e.a-t.a}function i(e,t){t.r=Math.pow(e.r,ToLinearSpace),t.g=Math.pow(e.g,ToLinearSpace),t.b=Math.pow(e.b,ToLinearSpace),t.a=e.a}function a(e,t){t.r=Math.pow(e.r,ToGammaSpace),t.g=Math.pow(e.g,ToGammaSpace),t.b=Math.pow(e.b,ToGammaSpace),t.a=e.a}e.create=t,e.fromHexString=function(n){if("#"!==n.substring(0,1)||9!==n.length)return t(0,0,0,0);const r=parseInt(n.substring(1,3),16),o=parseInt(n.substring(3,5),16),i=parseInt(n.substring(5,7),16),a=parseInt(n.substring(7,9),16);return e.fromInts(r,o,i,a)},e.lerp=function(n,r,o){const i=t(0,0,0,0);return e.lerpToRef(n,r,o,i),i},e.lerpToRef=function(e,t,n,r){r.r=e.r+(t.r-e.r)*n,r.g=e.g+(t.g-e.g)*n,r.b=e.b+(t.b-e.b)*n,r.a=e.a+(t.a-e.a)*n},e.Red=function(){return t(1,0,0,1)},e.Green=function(){return t(0,1,0,1)},e.Blue=function(){return t(0,0,1,1)},e.Black=function(){return t(0,0,0,1)},e.White=function(){return t(1,1,1,1)},e.Purple=function(){return t(.5,0,.5,1)},e.Magenta=function(){return t(1,0,1,1)},e.Yellow=function(){return t(1,1,0,1)},e.Gray=function(){return t(.5,.5,.5,1)},e.Teal=function(){return t(0,1,1,1)},e.Clear=n,e.fromColor3=function(e,n=1){return t(e.r,e.g,e.b,n)},e.fromArray=function(e,n=0){return t(e[n],e[n+1],e[n+2],e[n+3])},e.fromInts=function(e,n,r,o){return t(e/255,n/255,r/255,o/255)},e.checkColors4=function(e,t){if(e.length===3*t){const t=[];for(let n=0;n<e.length;n+=3){const r=n/3*4;t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=1}return t}return e},e.addToRef=r,e.toArray=function(e,t,n=0){t[n]=e.r,t[n+1]=e.g,t[n+2]=e.b,t[n+3]=e.a},e.add=function(e,t){const o=n();return r(e,t,o),o},e.subtract=function(e,t){const r=n();return o(e,t,r),r},e.subtractToRef=o,e.scale=function(e,n){return t(e.r*n,e.g*n,e.b*n,e.a*n)},e.scaleToRef=function(e,t,n){n.r=e.r*t,n.g=e.g*t,n.b=e.b*t,n.a=e.a*t},e.scaleAndAddToRef=function(e,t,n){n.r+=e.r*t,n.g+=e.g*t,n.b+=e.b*t,n.a+=e.a*t},e.clampToRef=function(e,t=0,n=1,r){r.r=exports.Scalar.clamp(e.r,t,n),r.g=exports.Scalar.clamp(e.g,t,n),r.b=exports.Scalar.clamp(e.b,t,n),r.a=exports.Scalar.clamp(e.a,t,n)},e.multiply=function(e,n){return t(e.r*n.r,e.g*n.g,e.b*n.b,e.a*n.a)},e.multiplyToRef=function(e,t,n){n.r=e.r*t.r,n.g=e.g*t.g,n.b=e.b*t.b,n.a=e.a*t.a},e.toString=function(e){return"{R: "+e.r+" G:"+e.g+" B:"+e.b+" A:"+e.a+"}"},e.getHashCode=function(e){let t=e.r||0;return t=397*t^(e.g||0),t=397*t^(e.b||0),t=397*t^(e.a||0),t},e.clone=function(e){return t(e.r,e.g,e.b,e.a)},e.copyFrom=function(e,t){t.r=e.r,t.g=e.g,t.b=e.b,t.a=e.a},e.copyFromFloats=function(e,t,n,r,o){o.r=e,o.g=t,o.b=n,o.a=r},e.set=function(e,t,n,r,o){o.r=e,o.g=t,o.b=n,o.a=r},e.toHexString=function(e){const t=255*e.r|0,n=255*e.g|0,r=255*e.b|0,o=255*e.a|0;return"#"+exports.Scalar.toHex(t)+exports.Scalar.toHex(n)+exports.Scalar.toHex(r)+exports.Scalar.toHex(o)},e.toLinearSpace=function(e){const n=t();return i(e,n),n},e.toLinearSpaceToRef=i,e.toGammaSpace=function(e){const n=t();return a(e,n),n},e.toGammaSpaceToRef=a}(exports.Color4||(exports.Color4={})),exports.Color3=void 0,function(e){function t(e=0,t=0,n=0){return{r:e,g:t,b:n}}function n(e,n,r){return t(e/255,n/255,r/255)}function r(e,t,n=0){t[n]=e.r,t[n+1]=e.g,t[n+2]=e.b}function o(e,t=0,n=1,r){r.r=exports.Scalar.clamp(e.r,t,n),r.g=exports.Scalar.clamp(e.g,t,n),r.b=exports.Scalar.clamp(e.b,t,n)}function i(e,t){t.r=Math.pow(e.r,ToLinearSpace),t.g=Math.pow(e.g,ToLinearSpace),t.b=Math.pow(e.b,ToLinearSpace)}function a(e,t){t.r=Math.pow(e.r,ToGammaSpace),t.g=Math.pow(e.g,ToGammaSpace),t.b=Math.pow(e.b,ToGammaSpace)}e.create=t,e.fromHexString=function(e){return"#"!==e.substring(0,1)||7!==e.length?t(0,0,0):n(parseInt(e.substring(1,3),16),parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16))},e.fromArray=function(e,n=0){return t(e[n],e[n+1],e[n+2])},e.fromInts=n,e.lerp=function(n,r,o){const i=t(0,0,0);return e.lerpToRef(n,r,o,i),i},e.lerpToRef=function(e,t,n,r){r.r=e.r+(t.r-e.r)*n,r.g=e.g+(t.g-e.g)*n,r.b=e.b+(t.b-e.b)*n},e.Red=function(){return t(1,0,0)},e.Green=function(){return t(0,1,0)},e.Blue=function(){return t(0,0,1)},e.Black=function(){return t(0,0,0)},e.White=function(){return t(1,1,1)},e.Purple=function(){return t(.5,0,.5)},e.Magenta=function(){return t(1,0,1)},e.Yellow=function(){return t(1,1,0)},e.Gray=function(){return t(.5,.5,.5)},e.Teal=function(){return t(0,1,1)},e.Random=function(){return t(Math.random(),Math.random(),Math.random())},e.toString=function(e){return"{R: "+e.r+" G:"+e.g+" B:"+e.b+"}"},e.getHashCode=function(e){let t=e.r||0;return t=397*t^(e.g||0),t=397*t^(e.b||0),t},e.toArray=r,e.toColor4=function(e,t=1){return exports.Color4.create(e.r,e.g,e.b,t)},e.asArray=function(e){const t=new Array;return r(e,t,0),t},e.toLuminance=function(e){return.3*e.r+.59*e.g+.11*e.b},e.multiply=function(e,n){return t(e.r*n.r,e.g*n.g,e.b*n.b)},e.multiplyToRef=function(e,t,n){n.r=e.r*t.r,n.g=e.g*t.g,n.b=e.b*t.b},e.equals=function(e,t){return t&&e.r===t.r&&e.g===t.g&&e.b===t.b},e.equalsFloats=function(e,t,n,r){return e.r===t&&e.g===n&&e.b===r},e.scale=function(e,n){return t(e.r*n,e.g*n,e.b*n)},e.scaleToRef=function(e,t,n){n.r=e.r*t,n.g=e.g*t,n.b=e.b*t},e.scaleAndAddToRef=function(e,t,n){n.r+=e.r*t,n.g+=e.g*t,n.b+=e.b*t},e.clampToRef=o,e.clamp=function(t,n=0,r=1){const i=e.Black();return o(t,n,r,i),i},e.add=function(e,n){return t(e.r+n.r,e.g+n.g,e.b+n.b)},e.addToRef=function(e,t,n){n.r=e.r+t.r,n.g=e.g+t.g,n.b=e.b+t.b},e.subtract=function(e,n){return t(e.r-n.r,e.g-n.g,e.b-n.b)},e.subtractToRef=function(e,t,n){n.r=e.r-t.r,n.g=e.g-t.g,n.b=e.b-t.b},e.clone=function(e){return t(e.r,e.g,e.b)},e.copyFrom=function(e,t){t.r=e.r,t.g=e.g,t.b=e.b},e.set=function(e,t,n,r){e.r=t,e.g=n,e.b=r},e.toHexString=function(e){const t=255*e.r|0,n=255*e.g|0,r=255*e.b|0;return"#"+exports.Scalar.toHex(t)+exports.Scalar.toHex(n)+exports.Scalar.toHex(r)},e.toLinearSpace=function(e){const n=t();return i(e,n),n},e.toLinearSpaceToRef=i,e.toGammaSpace=function(e){const n=t();return a(e,n),n},e.toGammaSpaceToRef=a}(exports.Color3||(exports.Color3={}));var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var minimalExports$1={},minimal$1={get exports(){return minimalExports$1},set exports(e){minimalExports$1=e}},indexMinimal={},minimal={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;return hasRequiredAspromise=1,aspromise=function(e,t){var n=new Array(arguments.length-1),r=0,o=2,i=!0;for(;o<arguments.length;)n[r++]=arguments[o++];return new Promise((function(o,a){n[r]=function(e){if(i)if(i=!1,e)a(e);else{for(var t=new Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];o.apply(null,t)}};try{e.apply(t||null,n)}catch(e){i&&(i=!1,a(e))}}))},aspromise}var base64={},hasRequiredBase64,eventemitter,hasRequiredEventemitter,float,hasRequiredFloat,inquire_1,hasRequiredInquire;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=1,function(e){var t=e;t.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var n=new Array(64),r=new Array(123),o=0;o<64;)r[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;t.encode=function(e,t,r){for(var o,i=null,a=[],s=0,u=0;t<r;){var l=e[t++];switch(u){case 0:a[s++]=n[l>>2],o=(3&l)<<4,u=1;break;case 1:a[s++]=n[o|l>>4],o=(15&l)<<2,u=2;break;case 2:a[s++]=n[o|l>>6],a[s++]=n[63&l],u=0}s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,a)),s=0)}return u&&(a[s++]=n[o],a[s++]=61,1===u&&(a[s++]=61)),i?(s&&i.push(String.fromCharCode.apply(String,a.slice(0,s))),i.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var i="invalid encoding";t.decode=function(e,t,n){for(var o,a=n,s=0,u=0;u<e.length;){var l=e.charCodeAt(u++);if(61===l&&s>1)break;if(void 0===(l=r[l]))throw Error(i);switch(s){case 0:o=l,s=1;break;case 1:t[n++]=o<<2|(48&l)>>4,o=l,s=2;break;case 2:t[n++]=(15&o)<<4|(60&l)>>2,o=l,s=3;break;case 3:t[n++]=(3&o)<<6|l,s=0}}if(1===s)throw Error(i);return n-a},t.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(base64)),base64}function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;function e(){this._listeners={}}return hasRequiredEventemitter=1,eventemitter=e,e.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},e.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r<n.length;)n[r].fn===t?n.splice(r,1):++r;return this},e.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<t.length;)t[r].fn.apply(t[r++].ctx,n)}return this},eventemitter}function requireFloat(){if(hasRequiredFloat)return float;function e(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=128===n[3];function o(e,r,o){t[0]=e,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3]}function i(e,r,o){t[0]=e,r[o]=n[3],r[o+1]=n[2],r[o+2]=n[1],r[o+3]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function s(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.writeFloatLE=r?o:i,e.writeFloatBE=r?i:o,e.readFloatLE=r?a:s,e.readFloatBE=r?s:a}():function(){function i(e,t,n,r){var o=t<0?1:0;if(o&&(t=-t),0===t)e(1/t>0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,n,r)}}function a(e,t,n){var r=e(t,n),o=2*(r>>31)+1,i=r>>>23&255,a=8388607&r;return 255===i?a?NaN:o*(1/0):0===i?1401298464324817e-60*o*a:o*Math.pow(2,i-150)*(a+8388608)}e.writeFloatLE=i.bind(null,t),e.writeFloatBE=i.bind(null,n),e.readFloatLE=a.bind(null,r),e.readFloatBE=a.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function o(e,r,o){t[0]=e,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3],r[o+4]=n[4],r[o+5]=n[5],r[o+6]=n[6],r[o+7]=n[7]}function i(e,r,o){t[0]=e,r[o]=n[7],r[o+1]=n[6],r[o+2]=n[5],r[o+3]=n[4],r[o+4]=n[3],r[o+5]=n[2],r[o+6]=n[1],r[o+7]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?o:i,e.writeDoubleBE=r?i:o,e.readDoubleLE=r?a:s,e.readDoubleBE=r?s:a}():function(){function i(e,t,n,r,o,i){var a=r<0?1:0;if(a&&(r=-r),0===r)e(0,o,i+t),e(1/r>0?0:2147483648,o,i+n);else if(isNaN(r))e(0,o,i+t),e(2146959360,o,i+n);else if(r>17976931348623157e292)e(0,o,i+t),e((a<<31|2146435072)>>>0,o,i+n);else{var s;if(r<22250738585072014e-324)e((s=r/5e-324)>>>0,o,i+t),e((a<<31|s/4294967296)>>>0,o,i+n);else{var u=Math.floor(Math.log(r)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(s=r*Math.pow(2,-u))>>>0,o,i+t),e((a<<31|u+1023<<20|1048576*s&1048575)>>>0,o,i+n)}}}function a(e,t,n,r,o){var i=e(r,o+t),a=e(r,o+n),s=2*(a>>31)+1,u=a>>>20&2047,l=4294967296*(1048575&a)+i;return 2047===u?l?NaN:s*(1/0):0===u?5e-324*s*l:s*Math.pow(2,u-1075)*(l+4503599627370496)}e.writeDoubleLE=i.bind(null,t,0,4),e.writeDoubleBE=i.bind(null,n,4,0),e.readDoubleLE=a.bind(null,r,0,4),e.readDoubleBE=a.bind(null,o,4,0)}(),e}function t(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function n(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function r(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}return hasRequiredFloat=1,float=e(e)}function requireInquire(){if(hasRequiredInquire)return inquire_1;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}return hasRequiredInquire=1,inquire_1=inquire,inquire_1}var utf8={},hasRequiredUtf8,pool_1,hasRequiredPool,longbits,hasRequiredLongbits,hasRequiredMinimal$1,writer,hasRequiredWriter,writer_buffer,hasRequiredWriter_buffer,reader,hasRequiredReader,reader_buffer,hasRequiredReader_buffer;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,function(e){var t=e;t.length=function(e){for(var t=0,n=0,r=0;r<e.length;++r)(n=e.charCodeAt(r))<128?t+=1:n<2048?t+=2:55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))?(++r,t+=4):t+=3;return t},t.read=function(e,t,n){if(n-t<1)return"";for(var r,o=null,i=[],a=0;t<n;)(r=e[t++])<128?i[a++]=r:r>191&&r<224?i[a++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[a++]=55296+(r>>10),i[a++]=56320+(1023&r)):i[a++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))},t.write=function(e,t,n){for(var r,o,i=n,a=0;a<e.length;++a)(r=e.charCodeAt(a))<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(o=e.charCodeAt(a+1)))?(r=65536+((1023&r)<<10)+(1023&o),++a,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-i}}(utf8)),utf8}function requirePool(){if(hasRequiredPool)return pool_1;return hasRequiredPool=1,pool_1=function(e,t,n){var r=n||8192,o=r>>>1,i=null,a=r;return function(n){if(n<1||n>o)return e(n);a+n>r&&(i=e(r),a=0);var s=t.call(i,a,a+=n);return 7&a&&(a=1+(7|a)),s}}}function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=t;var e=requireMinimal$1();function t(e,t){this.lo=e>>>0,this.hi=t>>>0}var n=t.zero=new t(0,0);n.toNumber=function(){return 0},n.zzEncode=n.zzDecode=function(){return this},n.length=function(){return 1};var r=t.zeroHash="\0\0\0\0\0\0\0\0";t.fromNumber=function(e){if(0===e)return n;var r=e<0;r&&(e=-e);var o=e>>>0,i=(e-o)/4294967296>>>0;return r&&(i=~i>>>0,o=~o>>>0,++o>4294967295&&(o=0,++i>4294967295&&(i=0))),new t(o,i)},t.from=function(r){if("number"==typeof r)return t.fromNumber(r);if(e.isString(r)){if(!e.Long)return t.fromNumber(parseInt(r,10));r=e.Long.fromString(r)}return r.low||r.high?new t(r.low>>>0,r.high>>>0):n},t.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},t.prototype.toLong=function(t){return e.Long?new e.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var o=String.prototype.charCodeAt;return t.fromHash=function(e){return e===r?n:new t((o.call(e,0)|o.call(e,1)<<8|o.call(e,2)<<16|o.call(e,3)<<24)>>>0,(o.call(e,4)|o.call(e,5)<<8|o.call(e,6)<<16|o.call(e,7)<<24)>>>0)},t.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},t.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},t.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},t.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10},longbits}function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,function(e){var t=minimal;function n(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;++o)void 0!==e[r[o]]&&n||(e[r[o]]=t[r[o]]);return e}function r(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),r&&n(this,r)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+": "+this.message},t}t.asPromise=requireAspromise(),t.base64=requireBase64(),t.EventEmitter=requireEventemitter(),t.float=requireFloat(),t.inquire=requireInquire(),t.utf8=requireUtf8(),t.pool=requirePool(),t.LongBits=requireLongbits(),t.isNode=Boolean(void 0!==commonjsGlobal&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),t.global=t.isNode&&commonjsGlobal||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||commonjsGlobal,t.emptyArray=Object.freeze?Object.freeze([]):[],t.emptyObject=Object.freeze?Object.freeze({}):{},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.isString=function(e){return"string"==typeof e||e instanceof String},t.isObject=function(e){return e&&"object"==typeof e},t.isset=t.isSet=function(e,t){var n=e[t];return!(null==n||!e.hasOwnProperty(t))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},t.Buffer=function(){try{var e=t.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(e){return"number"==typeof e?t.Buffer?t._Buffer_allocUnsafe(e):new t.Array(e):t.Buffer?t._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},t.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||t.inquire("long"),t.key2Re=/^true|false|0|1$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,n){var r=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(r.lo,r.hi,n):r.toNumber(Boolean(n))},t.merge=n,t.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},t.newError=r,t.ProtocolError=r("ProtocolError"),t.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},t.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},t.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},t._configure=function(){var e=t.Buffer;e?(t._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},t._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):t._Buffer_from=t._Buffer_allocUnsafe=null}}()),minimal}function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1,writer=u;var e,t=requireMinimal$1(),n=t.LongBits,r=t.base64,o=t.utf8;function i(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function a(){}function s(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function u(){this.len=0,this.head=new i(a,0,0),this.tail=this.head,this.states=null}var l=function(){return t.Buffer?function(){return(u.create=function(){return new e})()}:function(){return new u}};function c(e,t,n){t[n]=255&e}function f(e,t){this.len=e,this.next=void 0,this.val=t}function d(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function p(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}u.create=l(),u.alloc=function(e){return new t.Array(e)},t.Array!==Array&&(u.alloc=t.pool(u.alloc,t.Array.prototype.subarray)),u.prototype._push=function(e,t,n){return this.tail=this.tail.next=new i(e,t,n),this.len+=t,this},f.prototype=Object.create(i.prototype),f.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},u.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new f((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},u.prototype.int32=function(e){return e<0?this._push(d,10,n.fromNumber(e)):this.uint32(e)},u.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},u.prototype.uint64=function(e){var t=n.from(e);return this._push(d,t.length(),t)},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(e){var t=n.from(e).zzEncode();return this._push(d,t.length(),t)},u.prototype.bool=function(e){return this._push(c,1,e?1:0)},u.prototype.fixed32=function(e){return this._push(p,4,e>>>0)},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(e){var t=n.from(e);return this._push(p,4,t.lo)._push(p,4,t.hi)},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(e){return this._push(t.float.writeFloatLE,4,e)},u.prototype.double=function(e){return this._push(t.float.writeDoubleLE,8,e)};var h=t.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r<e.length;++r)t[n+r]=e[r]};return u.prototype.bytes=function(e){var n=e.length>>>0;if(!n)return this._push(c,1,0);if(t.isString(e)){var o=u.alloc(n=r.length(e));r.decode(e,o,0),e=o}return this.uint32(n)._push(h,n,e)},u.prototype.string=function(e){var t=o.length(e);return t?this.uint32(t)._push(o.write,t,e):this._push(c,1,0)},u.prototype.fork=function(){return this.states=new s(this),this.head=this.tail=new i(a,0,0),this.len=0,this},u.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new i(a,0,0),this.len=0),this},u.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},u.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},u._configure=function(t){e=t,u.create=l(),e._configure()},writer}function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=n;var e=requireWriter();(n.prototype=Object.create(e.prototype)).constructor=n;var t=requireMinimal$1();function n(){e.call(this)}function r(e,n,r){e.length<40?t.utf8.write(e,n,r):n.utf8Write?n.utf8Write(e,r):n.write(e,r)}return n._configure=function(){n.alloc=t._Buffer_allocUnsafe,n.writeBytesBuffer=t.Buffer&&t.Buffer.prototype instanceof Uint8Array&&"set"===t.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r<e.length;)t[n++]=e[r++]}},n.prototype.bytes=function(e){t.isString(e)&&(e=t._Buffer_from(e,"base64"));var r=e.length>>>0;return this.uint32(r),r&&this._push(n.writeBytesBuffer,r,e),this},n.prototype.string=function(e){var n=t.Buffer.byteLength(e);return this.uint32(n),n&&this._push(r,n,e),this},n._configure(),writer_buffer}function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=i;var e,t=requireMinimal$1(),n=t.LongBits,r=t.utf8;function o(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function i(e){this.buf=e,this.pos=0,this.len=e.length}var a,s="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new i(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new i(e);throw Error("illegal buffer")},u=function(){return t.Buffer?function(n){return(i.create=function(n){return t.Buffer.isBuffer(n)?new e(n):s(n)})(n)}:s};function l(){var e=new n(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw o(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function f(){if(this.pos+8>this.len)throw o(this,8);return new n(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}return i.create=u(),i.prototype._slice=t.Array.prototype.subarray||t.Array.prototype.slice,i.prototype.uint32=(a=4294967295,function(){if(a=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return a;if(a=(a|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return a;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return a}),i.prototype.int32=function(){return 0|this.uint32()},i.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},i.prototype.bool=function(){return 0!==this.uint32()},i.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return c(this.buf,this.pos+=4)},i.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return 0|c(this.buf,this.pos+=4)},i.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=t.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},i.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=t.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},i.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw o(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},i.prototype.string=function(){var e=this.bytes();return r.read(e,0,e.length)},i.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw o(this)}while(128&this.buf[this.pos++]);return this},i.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},i._configure=function(n){e=n,i.create=u(),e._configure();var r=t.Long?"toLong":"toNumber";t.merge(i.prototype,{int64:function(){return l.call(this)[r](!1)},uint64:function(){return l.call(this)[r](!0)},sint64:function(){return l.call(this).zzDecode()[r](!1)},fixed64:function(){return f.call(this)[r](!0)},sfixed64:function(){return f.call(this)[r](!1)}})},reader}function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=n;var e=requireReader();(n.prototype=Object.create(e.prototype)).constructor=n;var t=requireMinimal$1();function n(t){e.call(this,t)}return n._configure=function(){t.Buffer&&(n.prototype._slice=t.Buffer.prototype.slice)},n.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},n._configure(),reader_buffer}var rpc={},service,hasRequiredService,hasRequiredRpc,roots,hasRequiredRoots,hasRequiredIndexMinimal,hasRequiredMinimal;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=t;var e=requireMinimal$1();function t(t,n,r){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");e.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(n),this.responseDelimited=Boolean(r)}return(t.prototype=Object.create(e.EventEmitter.prototype)).constructor=t,t.prototype.rpcCall=function t(n,r,o,i,a){if(!i)throw TypeError("request must be specified");var s=this;if(!a)return e.asPromise(t,s,n,r,o,i);if(s.rpcImpl)try{return s.rpcImpl(n,r[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,t){if(e)return s.emit("error",e,n),a(e);if(null!==t){if(!(t instanceof o))try{t=o[s.responseDelimited?"decodeDelimited":"decode"](t)}catch(e){return s.emit("error",e,n),a(e)}return s.emit("data",t,n),a(null,t)}s.end(!0)}))}catch(e){return s.emit("error",e,n),void setTimeout((function(){a(e)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},t.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},service}function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,function(e){e.Service=requireService()}(rpc)),rpc}function requireRoots(){return hasRequiredRoots?roots:(hasRequiredRoots=1,roots={})}function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,function(e){var t=indexMinimal;function n(){t.util._configure(),t.Writer._configure(t.BufferWriter),t.Reader._configure(t.BufferReader)}t.build="minimal",t.Writer=requireWriter(),t.BufferWriter=requireWriter_buffer(),t.Reader=requireReader(),t.BufferReader=requireReader_buffer(),t.util=requireMinimal$1(),t.rpc=requireRpc(),t.roots=requireRoots(),t.configure=n,n()}()),indexMinimal}function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,minimal$1.exports=requireIndexMinimal()),minimalExports$1}var minimalExports=requireMinimal(),_m0=getDefaultExportFromCjs(minimalExports);function createBasePBAnimator(){return{states:[]}}const PBAnimator={encode(e,t=_m0.Writer.create()){for(const n of e.states)PBAnimationState.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAnimator();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.states.push(PBAnimationState.decode(n,n.uint32()));else n.skipType(7&e)}return o}};function createBasePBAnimationState(){return{name:"",clip:"",playing:void 0,weight:void 0,speed:void 0,loop:void 0,shouldReset:void 0}}const PBAnimationState={encode:(e,t=_m0.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),""!==e.clip&&t.uint32(18).string(e.clip),void 0!==e.playing&&t.uint32(24).bool(e.playing),void 0!==e.weight&&t.uint32(37).float(e.weight),void 0!==e.speed&&t.uint32(45).float(e.speed),void 0!==e.loop&&t.uint32(48).bool(e.loop),void 0!==e.shouldReset&&t.uint32(56).bool(e.shouldReset),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAnimationState();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.name=n.string();break;case 2:o.clip=n.string();break;case 3:o.playing=n.bool();break;case 4:o.weight=n.float();break;case 5:o.speed=n.float();break;case 6:o.loop=n.bool();break;case 7:o.shouldReset=n.bool();break;default:n.skipType(7&e)}}return o}},AnimatorSchema={COMPONENT_ID:1042,serialize(e,t){const n=PBAnimator.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBAnimator.decode(e.buffer(),e.remainingBytes()),create:()=>PBAnimator.decode(new Uint8Array)};function createBasePBAudioSource(){return{playing:void 0,volume:void 0,loop:void 0,pitch:void 0,audioClipUrl:""}}const PBAudioSource={encode:(e,t=_m0.Writer.create())=>(void 0!==e.playing&&t.uint32(8).bool(e.playing),void 0!==e.volume&&t.uint32(21).float(e.volume),void 0!==e.loop&&t.uint32(24).bool(e.loop),void 0!==e.pitch&&t.uint32(37).float(e.pitch),""!==e.audioClipUrl&&t.uint32(42).string(e.audioClipUrl),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAudioSource();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.playing=n.bool();break;case 2:o.volume=n.float();break;case 3:o.loop=n.bool();break;case 4:o.pitch=n.float();break;case 5:o.audioClipUrl=n.string();break;default:n.skipType(7&e)}}return o}},AudioSourceSchema={COMPONENT_ID:1020,serialize(e,t){const n=PBAudioSource.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBAudioSource.decode(e.buffer(),e.remainingBytes()),create:()=>PBAudioSource.decode(new Uint8Array)};function createBasePBAudioStream(){return{playing:void 0,volume:void 0,url:""}}const PBAudioStream={encode:(e,t=_m0.Writer.create())=>(void 0!==e.playing&&t.uint32(8).bool(e.playing),void 0!==e.volume&&t.uint32(21).float(e.volume),""!==e.url&&t.uint32(26).string(e.url),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAudioStream();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.playing=n.bool();break;case 2:o.volume=n.float();break;case 3:o.url=n.string();break;default:n.skipType(7&e)}}return o}},AudioStreamSchema={COMPONENT_ID:1021,serialize(e,t){const n=PBAudioStream.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBAudioStream.decode(e.buffer(),e.remainingBytes()),create:()=>PBAudioStream.decode(new Uint8Array)};var AvatarAnchorPointType;function createBasePBAvatarAttach(){return{avatarId:void 0,anchorPointId:0}}exports.AvatarAnchorPointType=void 0,AvatarAnchorPointType=exports.AvatarAnchorPointType||(exports.AvatarAnchorPointType={}),AvatarAnchorPointType[AvatarAnchorPointType.AAPT_POSITION=0]="AAPT_POSITION",AvatarAnchorPointType[AvatarAnchorPointType.AAPT_NAME_TAG=1]="AAPT_NAME_TAG",AvatarAnchorPointType[AvatarAnchorPointType.AAPT_LEFT_HAND=2]="AAPT_LEFT_HAND",AvatarAnchorPointType[AvatarAnchorPointType.AAPT_RIGHT_HAND=3]="AAPT_RIGHT_HAND";const PBAvatarAttach={encode:(e,t=_m0.Writer.create())=>(void 0!==e.avatarId&&t.uint32(10).string(e.avatarId),0!==e.anchorPointId&&t.uint32(16).int32(e.anchorPointId),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAvatarAttach();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.avatarId=n.string();break;case 2:o.anchorPointId=n.int32();break;default:n.skipType(7&e)}}return o}},AvatarAttachSchema={COMPONENT_ID:1073,serialize(e,t){const n=PBAvatarAttach.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBAvatarAttach.decode(e.buffer(),e.remainingBytes()),create:()=>PBAvatarAttach.decode(new Uint8Array)};function createBaseVector3(){return{x:0,y:0,z:0}}const Vector3={encode:(e,t=_m0.Writer.create())=>(0!==e.x&&t.uint32(13).float(e.x),0!==e.y&&t.uint32(21).float(e.y),0!==e.z&&t.uint32(29).float(e.z),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseVector3();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.x=n.float();break;case 2:o.y=n.float();break;case 3:o.z=n.float();break;default:n.skipType(7&e)}}return o}};var AvatarModifierType;function createBasePBAvatarModifierArea(){return{area:void 0,excludeIds:[],modifiers:[]}}exports.AvatarModifierType=void 0,AvatarModifierType=exports.AvatarModifierType||(exports.AvatarModifierType={}),AvatarModifierType[AvatarModifierType.AMT_HIDE_AVATARS=0]="AMT_HIDE_AVATARS",AvatarModifierType[AvatarModifierType.AMT_DISABLE_PASSPORTS=1]="AMT_DISABLE_PASSPORTS";const PBAvatarModifierArea={encode(e,t=_m0.Writer.create()){void 0!==e.area&&Vector3.encode(e.area,t.uint32(10).fork()).ldelim();for(const n of e.excludeIds)t.uint32(18).string(n);t.uint32(26).fork();for(const n of e.modifiers)t.int32(n);return t.ldelim(),t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAvatarModifierArea();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.area=Vector3.decode(n,n.uint32());break;case 2:o.excludeIds.push(n.string());break;case 3:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.modifiers.push(n.int32())}else o.modifiers.push(n.int32());break;default:n.skipType(7&e)}}return o}},AvatarModifierAreaSchema={COMPONENT_ID:1070,serialize(e,t){const n=PBAvatarModifierArea.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBAvatarModifierArea.decode(e.buffer(),e.remainingBytes()),create:()=>PBAvatarModifierArea.decode(new Uint8Array)};var long,hasRequiredLong;function requireLong(){if(hasRequiredLong)return long;hasRequiredLong=1,long=t;var e=null;try{e=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function t(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function n(e){return!0===(e&&e.__isLong__)}t.prototype.__isLong__,Object.defineProperty(t.prototype,"__isLong__",{value:!0}),t.isLong=n;var r={},o={};function i(e,t){var n,i,a;return t?(a=0<=(e>>>=0)&&e<256)&&(i=o[e])?i:(n=s(e,(0|e)<0?-1:0,!0),a&&(o[e]=n),n):(a=-128<=(e|=0)&&e<128)&&(i=r[e])?i:(n=s(e,e<0?-1:0,!1),a&&(r[e]=n),n)}function a(e,t){if(isNaN(e))return t?y:m;if(t){if(e<0)return y;if(e>=d)return x}else{if(e<=-p)return S;if(e+1>=p)return _}return e<0?a(-e,t).neg():s(e%f|0,e/f|0,t)}function s(e,n,r){return new t(e,n,r)}t.fromInt=i,t.fromNumber=a,t.fromBits=s;var u=Math.pow;function l(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return m;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r;if((r=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===r)return l(e.substring(1),t,n).neg();for(var o=a(u(n,8)),i=m,s=0;s<e.length;s+=8){var c=Math.min(8,e.length-s),f=parseInt(e.substring(s,s+c),n);if(c<8){var d=a(u(n,c));i=i.mul(d).add(a(f))}else i=(i=i.mul(o)).add(a(f))}return i.unsigned=t,i}function c(e,t){return"number"==typeof e?a(e,t):"string"==typeof e?l(e,t):s(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}t.fromString=l,t.fromValue=c;var f=4294967296,d=f*f,p=d/2,h=i(1<<24),m=i(0);t.ZERO=m;var y=i(0,!0);t.UZERO=y;var g=i(1);t.ONE=g;var v=i(1,!0);t.UONE=v;var b=i(-1);t.NEG_ONE=b;var _=s(-1,2147483647,!1);t.MAX_VALUE=_;var x=s(-1,-1,!0);t.MAX_UNSIGNED_VALUE=x;var S=s(0,-2147483648,!1);t.MIN_VALUE=S;var w=t.prototype;return w.toInt=function(){return this.unsigned?this.low>>>0:this.low},w.toNumber=function(){return this.unsigned?(this.high>>>0)*f+(this.low>>>0):this.high*f+(this.low>>>0)},w.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(S)){var t=a(e),n=this.div(t),r=n.mul(t).sub(this);return n.toString(e)+r.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var o=a(u(e,6),this.unsigned),i=this,s="";;){var l=i.div(o),c=(i.sub(l.mul(o)).toInt()>>>0).toString(e);if((i=l).isZero())return c+s;for(;c.length<6;)c="0"+c;s=""+c+s}},w.getHighBits=function(){return this.high},w.getHighBitsUnsigned=function(){return this.high>>>0},w.getLowBits=function(){return this.low},w.getLowBitsUnsigned=function(){return this.low>>>0},w.getNumBitsAbs=function(){if(this.isNegative())return this.eq(S)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},w.isZero=function(){return 0===this.high&&0===this.low},w.eqz=w.isZero,w.isNegative=function(){return!this.unsigned&&this.high<0},w.isPositive=function(){return this.unsigned||this.high>=0},w.isOdd=function(){return 1==(1&this.low)},w.isEven=function(){return 0==(1&this.low)},w.equals=function(e){return n(e)||(e=c(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},w.eq=w.equals,w.notEquals=function(e){return!this.eq(e)},w.neq=w.notEquals,w.ne=w.notEquals,w.lessThan=function(e){return this.comp(e)<0},w.lt=w.lessThan,w.lessThanOrEqual=function(e){return this.comp(e)<=0},w.lte=w.lessThanOrEqual,w.le=w.lessThanOrEqual,w.greaterThan=function(e){return this.comp(e)>0},w.gt=w.greaterThan,w.greaterThanOrEqual=function(e){return this.comp(e)>=0},w.gte=w.greaterThanOrEqual,w.ge=w.greaterThanOrEqual,w.compare=function(e){if(n(e)||(e=c(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},w.comp=w.compare,w.negate=function(){return!this.unsigned&&this.eq(S)?S:this.not().add(g)},w.neg=w.negate,w.add=function(e){n(e)||(e=c(e));var t=this.high>>>16,r=65535&this.high,o=this.low>>>16,i=65535&this.low,a=e.high>>>16,u=65535&e.high,l=e.low>>>16,f=0,d=0,p=0,h=0;return p+=(h+=i+(65535&e.low))>>>16,d+=(p+=o+l)>>>16,f+=(d+=r+u)>>>16,f+=t+a,s((p&=65535)<<16|(h&=65535),(f&=65535)<<16|(d&=65535),this.unsigned)},w.subtract=function(e){return n(e)||(e=c(e)),this.add(e.neg())},w.sub=w.subtract,w.multiply=function(t){if(this.isZero())return m;if(n(t)||(t=c(t)),e)return s(e.mul(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned);if(t.isZero())return m;if(this.eq(S))return t.isOdd()?S:m;if(t.eq(S))return this.isOdd()?S:m;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(h)&&t.lt(h))return a(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,o=65535&this.high,i=this.low>>>16,u=65535&this.low,l=t.high>>>16,f=65535&t.high,d=t.low>>>16,p=65535&t.low,y=0,g=0,v=0,b=0;return v+=(b+=u*p)>>>16,g+=(v+=i*p)>>>16,v&=65535,g+=(v+=u*d)>>>16,y+=(g+=o*p)>>>16,g&=65535,y+=(g+=i*d)>>>16,g&=65535,y+=(g+=u*f)>>>16,y+=r*p+o*d+i*f+u*l,s((v&=65535)<<16|(b&=65535),(y&=65535)<<16|(g&=65535),this.unsigned)},w.mul=w.multiply,w.divide=function(t){if(n(t)||(t=c(t)),t.isZero())throw Error("division by zero");var r,o,i;if(e)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?s((this.unsigned?e.div_u:e.div_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?y:m;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return y;if(t.gt(this.shru(1)))return v;i=y}else{if(this.eq(S))return t.eq(g)||t.eq(b)?S:t.eq(S)?g:(r=this.shr(1).div(t).shl(1)).eq(m)?t.isNegative()?g:b:(o=this.sub(t.mul(r)),i=r.add(o.div(t)));if(t.eq(S))return this.unsigned?y:m;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=m}for(o=this;o.gte(t);){r=Math.max(1,Math.floor(o.toNumber()/t.toNumber()));for(var l=Math.ceil(Math.log(r)/Math.LN2),f=l<=48?1:u(2,l-48),d=a(r),p=d.mul(t);p.isNegative()||p.gt(o);)p=(d=a(r-=f,this.unsigned)).mul(t);d.isZero()&&(d=g),i=i.add(d),o=o.sub(p)}return i},w.div=w.divide,w.modulo=function(t){return n(t)||(t=c(t)),e?s((this.unsigned?e.rem_u:e.rem_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},w.mod=w.modulo,w.rem=w.modulo,w.not=function(){return s(~this.low,~this.high,this.unsigned)},w.and=function(e){return n(e)||(e=c(e)),s(this.low&e.low,this.high&e.high,this.unsigned)},w.or=function(e){return n(e)||(e=c(e)),s(this.low|e.low,this.high|e.high,this.unsigned)},w.xor=function(e){return n(e)||(e=c(e)),s(this.low^e.low,this.high^e.high,this.unsigned)},w.shiftLeft=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?s(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):s(0,this.low<<e-32,this.unsigned)},w.shl=w.shiftLeft,w.shiftRight=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?s(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):s(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},w.shr=w.shiftRight,w.shiftRightUnsigned=function(e){if(n(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?s(this.low>>>e|t<<32-e,t>>>e,this.unsigned):s(32===e?t:t>>>e-32,0,this.unsigned)},w.shru=w.shiftRightUnsigned,w.shr_u=w.shiftRightUnsigned,w.toSigned=function(){return this.unsigned?s(this.low,this.high,!1):this},w.toUnsigned=function(){return this.unsigned?this:s(this.low,this.high,!0)},w.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},w.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},w.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},t.fromBytes=function(e,n,r){return r?t.fromBytesLE(e,n):t.fromBytesBE(e,n)},t.fromBytesLE=function(e,n){return new t(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)},t.fromBytesBE=function(e,n){return new t(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)},long}var longExports=requireLong(),Long=getDefaultExportFromCjs(longExports);function createBaseColor3(){return{r:0,g:0,b:0}}const Color3={encode:(e,t=_m0.Writer.create())=>(0!==e.r&&t.uint32(13).float(e.r),0!==e.g&&t.uint32(21).float(e.g),0!==e.b&&t.uint32(29).float(e.b),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseColor3();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.r=n.float();break;case 2:o.g=n.float();break;case 3:o.b=n.float();break;default:n.skipType(7&e)}}return o}};function createBaseColor4(){return{r:0,g:0,b:0,a:0}}const Color4={encode:(e,t=_m0.Writer.create())=>(0!==e.r&&t.uint32(13).float(e.r),0!==e.g&&t.uint32(21).float(e.g),0!==e.b&&t.uint32(29).float(e.b),0!==e.a&&t.uint32(37).float(e.a),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseColor4();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.r=n.float();break;case 2:o.g=n.float();break;case 3:o.b=n.float();break;case 4:o.a=n.float();break;default:n.skipType(7&e)}}return o}};function createBasePBAvatarShape(){return{id:"",name:void 0,bodyShape:void 0,skinColor:void 0,hairColor:void 0,eyeColor:void 0,expressionTriggerId:void 0,expressionTriggerTimestamp:void 0,talking:void 0,wearables:[],emotes:[]}}const PBAvatarShape={encode(e,t=_m0.Writer.create()){""!==e.id&&t.uint32(10).string(e.id),void 0!==e.name&&t.uint32(18).string(e.name),void 0!==e.bodyShape&&t.uint32(26).string(e.bodyShape),void 0!==e.skinColor&&Color3.encode(e.skinColor,t.uint32(34).fork()).ldelim(),void 0!==e.hairColor&&Color3.encode(e.hairColor,t.uint32(42).fork()).ldelim(),void 0!==e.eyeColor&&Color3.encode(e.eyeColor,t.uint32(50).fork()).ldelim(),void 0!==e.expressionTriggerId&&t.uint32(58).string(e.expressionTriggerId),void 0!==e.expressionTriggerTimestamp&&t.uint32(64).int64(e.expressionTriggerTimestamp),void 0!==e.talking&&t.uint32(72).bool(e.talking);for(const n of e.wearables)t.uint32(82).string(n);for(const n of e.emotes)t.uint32(90).string(n);return t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBAvatarShape();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.id=n.string();break;case 2:o.name=n.string();break;case 3:o.bodyShape=n.string();break;case 4:o.skinColor=Color3.decode(n,n.uint32());break;case 5:o.hairColor=Color3.decode(n,n.uint32());break;case 6:o.eyeColor=Color3.decode(n,n.uint32());break;case 7:o.expressionTriggerId=n.string();break;case 8:o.expressionTriggerTimestamp=longToNumber$1(n.int64());break;case 9:o.talking=n.bool();break;case 10:o.wearables.push(n.string());break;case 11:o.emotes.push(n.string());break;default:n.skipType(7&e)}}return o}};var tsProtoGlobalThis$1=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function longToNumber$1(e){if(e.gt(Number.MAX_SAFE_INTEGER))throw new tsProtoGlobalThis$1.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}_m0.util.Long!==Long&&(_m0.util.Long=Long,_m0.configure());const AvatarShapeSchema={COMPONENT_ID:1080,serialize(e,t){const n=PBAvatarShape.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBAvatarShape.decode(e.buffer(),e.remainingBytes()),create:()=>PBAvatarShape.decode(new Uint8Array)};var BillboardMode;function createBasePBBillboard(){return{billboardMode:void 0}}exports.BillboardMode=void 0,BillboardMode=exports.BillboardMode||(exports.BillboardMode={}),BillboardMode[BillboardMode.BM_NONE=0]="BM_NONE",BillboardMode[BillboardMode.BM_X=1]="BM_X",BillboardMode[BillboardMode.BM_Y=2]="BM_Y",BillboardMode[BillboardMode.BM_Z=4]="BM_Z",BillboardMode[BillboardMode.BM_ALL=7]="BM_ALL";const PBBillboard={encode:(e,t=_m0.Writer.create())=>(void 0!==e.billboardMode&&t.uint32(8).int32(e.billboardMode),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBBillboard();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.billboardMode=n.int32();else n.skipType(7&e)}return o}},BillboardSchema={COMPONENT_ID:1090,serialize(e,t){const n=PBBillboard.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBBillboard.decode(e.buffer(),e.remainingBytes()),create:()=>PBBillboard.decode(new Uint8Array)};function createBasePBCameraMode(){return{mode:0}}const PBCameraMode={encode:(e,t=_m0.Writer.create())=>(0!==e.mode&&t.uint32(8).int32(e.mode),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBCameraMode();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.mode=n.int32();else n.skipType(7&e)}return o}},CameraModeSchema={COMPONENT_ID:1072,serialize(e,t){const n=PBCameraMode.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBCameraMode.decode(e.buffer(),e.remainingBytes()),create:()=>PBCameraMode.decode(new Uint8Array)};function createBasePBCameraModeArea(){return{area:void 0,mode:0}}const PBCameraModeArea={encode:(e,t=_m0.Writer.create())=>(void 0!==e.area&&Vector3.encode(e.area,t.uint32(10).fork()).ldelim(),0!==e.mode&&t.uint32(16).int32(e.mode),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBCameraModeArea();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.area=Vector3.decode(n,n.uint32());break;case 2:o.mode=n.int32();break;default:n.skipType(7&e)}}return o}},CameraModeAreaSchema={COMPONENT_ID:1071,serialize(e,t){const n=PBCameraModeArea.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBCameraModeArea.decode(e.buffer(),e.remainingBytes()),create:()=>PBCameraModeArea.decode(new Uint8Array)};function createBasePBGltfContainer(){return{src:""}}const PBGltfContainer={encode:(e,t=_m0.Writer.create())=>(""!==e.src&&t.uint32(10).string(e.src),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBGltfContainer();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.src=n.string();else n.skipType(7&e)}return o}},GltfContainerSchema={COMPONENT_ID:1041,serialize(e,t){const n=PBGltfContainer.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBGltfContainer.decode(e.buffer(),e.remainingBytes()),create:()=>PBGltfContainer.decode(new Uint8Array)};var TextureWrapMode,TextureFilterMode;function createBaseTexture(){return{src:"",wrapMode:void 0,filterMode:void 0}}exports.TextureWrapMode=void 0,TextureWrapMode=exports.TextureWrapMode||(exports.TextureWrapMode={}),TextureWrapMode[TextureWrapMode.TWM_REPEAT=0]="TWM_REPEAT",TextureWrapMode[TextureWrapMode.TWM_CLAMP=1]="TWM_CLAMP",TextureWrapMode[TextureWrapMode.TWM_MIRROR=2]="TWM_MIRROR",TextureWrapMode[TextureWrapMode.TWM_MIRROR_ONCE=3]="TWM_MIRROR_ONCE",exports.TextureFilterMode=void 0,TextureFilterMode=exports.TextureFilterMode||(exports.TextureFilterMode={}),TextureFilterMode[TextureFilterMode.TFM_POINT=0]="TFM_POINT",TextureFilterMode[TextureFilterMode.TFM_BILINEAR=1]="TFM_BILINEAR",TextureFilterMode[TextureFilterMode.TFM_TRILINEAR=2]="TFM_TRILINEAR";const Texture={encode:(e,t=_m0.Writer.create())=>(""!==e.src&&t.uint32(10).string(e.src),void 0!==e.wrapMode&&t.uint32(16).int32(e.wrapMode),void 0!==e.filterMode&&t.uint32(24).int32(e.filterMode),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseTexture();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.src=n.string();break;case 2:o.wrapMode=n.int32();break;case 3:o.filterMode=n.int32();break;default:n.skipType(7&e)}}return o}};function createBaseAvatarTexture(){return{userId:"",wrapMode:void 0,filterMode:void 0}}const AvatarTexture={encode:(e,t=_m0.Writer.create())=>(""!==e.userId&&t.uint32(10).string(e.userId),void 0!==e.wrapMode&&t.uint32(16).int32(e.wrapMode),void 0!==e.filterMode&&t.uint32(24).int32(e.filterMode),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseAvatarTexture();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.userId=n.string();break;case 2:o.wrapMode=n.int32();break;case 3:o.filterMode=n.int32();break;default:n.skipType(7&e)}}return o}};function createBaseTextureUnion(){return{tex:void 0}}const TextureUnion={encode:(e,t=_m0.Writer.create())=>("texture"===e.tex?.$case&&Texture.encode(e.tex.texture,t.uint32(10).fork()).ldelim(),"avatarTexture"===e.tex?.$case&&AvatarTexture.encode(e.tex.avatarTexture,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseTextureUnion();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.tex={$case:"texture",texture:Texture.decode(n,n.uint32())};break;case 2:o.tex={$case:"avatarTexture",avatarTexture:AvatarTexture.decode(n,n.uint32())};break;default:n.skipType(7&e)}}return o}};var MaterialTransparencyMode;function createBasePBMaterial(){return{material:void 0}}exports.MaterialTransparencyMode=void 0,MaterialTransparencyMode=exports.MaterialTransparencyMode||(exports.MaterialTransparencyMode={}),MaterialTransparencyMode[MaterialTransparencyMode.MTM_OPAQUE=0]="MTM_OPAQUE",MaterialTransparencyMode[MaterialTransparencyMode.MTM_ALPHA_TEST=1]="MTM_ALPHA_TEST",MaterialTransparencyMode[MaterialTransparencyMode.MTM_ALPHA_BLEND=2]="MTM_ALPHA_BLEND",MaterialTransparencyMode[MaterialTransparencyMode.MTM_ALPHA_TEST_AND_ALPHA_BLEND=3]="MTM_ALPHA_TEST_AND_ALPHA_BLEND",MaterialTransparencyMode[MaterialTransparencyMode.MTM_AUTO=4]="MTM_AUTO";const PBMaterial={encode:(e,t=_m0.Writer.create())=>("unlit"===e.material?.$case&&PBMaterial_UnlitMaterial.encode(e.material.unlit,t.uint32(10).fork()).ldelim(),"pbr"===e.material?.$case&&PBMaterial_PbrMaterial.encode(e.material.pbr,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMaterial();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.material={$case:"unlit",unlit:PBMaterial_UnlitMaterial.decode(n,n.uint32())};break;case 2:o.material={$case:"pbr",pbr:PBMaterial_PbrMaterial.decode(n,n.uint32())};break;default:n.skipType(7&e)}}return o}};function createBasePBMaterial_UnlitMaterial(){return{texture:void 0,alphaTest:void 0,castShadows:void 0}}const PBMaterial_UnlitMaterial={encode:(e,t=_m0.Writer.create())=>(void 0!==e.texture&&TextureUnion.encode(e.texture,t.uint32(10).fork()).ldelim(),void 0!==e.alphaTest&&t.uint32(21).float(e.alphaTest),void 0!==e.castShadows&&t.uint32(24).bool(e.castShadows),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMaterial_UnlitMaterial();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.texture=TextureUnion.decode(n,n.uint32());break;case 2:o.alphaTest=n.float();break;case 3:o.castShadows=n.bool();break;default:n.skipType(7&e)}}return o}};function createBasePBMaterial_PbrMaterial(){return{texture:void 0,alphaTest:void 0,castShadows:void 0,alphaTexture:void 0,emissiveTexture:void 0,bumpTexture:void 0,albedoColor:void 0,emissiveColor:void 0,reflectivityColor:void 0,transparencyMode:void 0,metallic:void 0,roughness:void 0,glossiness:void 0,specularIntensity:void 0,emissiveIntensity:void 0,directIntensity:void 0}}const PBMaterial_PbrMaterial={encode:(e,t=_m0.Writer.create())=>(void 0!==e.texture&&TextureUnion.encode(e.texture,t.uint32(10).fork()).ldelim(),void 0!==e.alphaTest&&t.uint32(21).float(e.alphaTest),void 0!==e.castShadows&&t.uint32(24).bool(e.castShadows),void 0!==e.alphaTexture&&TextureUnion.encode(e.alphaTexture,t.uint32(34).fork()).ldelim(),void 0!==e.emissiveTexture&&TextureUnion.encode(e.emissiveTexture,t.uint32(42).fork()).ldelim(),void 0!==e.bumpTexture&&TextureUnion.encode(e.bumpTexture,t.uint32(50).fork()).ldelim(),void 0!==e.albedoColor&&Color4.encode(e.albedoColor,t.uint32(58).fork()).ldelim(),void 0!==e.emissiveColor&&Color3.encode(e.emissiveColor,t.uint32(66).fork()).ldelim(),void 0!==e.reflectivityColor&&Color3.encode(e.reflectivityColor,t.uint32(74).fork()).ldelim(),void 0!==e.transparencyMode&&t.uint32(80).int32(e.transparencyMode),void 0!==e.metallic&&t.uint32(93).float(e.metallic),void 0!==e.roughness&&t.uint32(101).float(e.roughness),void 0!==e.glossiness&&t.uint32(109).float(e.glossiness),void 0!==e.specularIntensity&&t.uint32(117).float(e.specularIntensity),void 0!==e.emissiveIntensity&&t.uint32(125).float(e.emissiveIntensity),void 0!==e.directIntensity&&t.uint32(133).float(e.directIntensity),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMaterial_PbrMaterial();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.texture=TextureUnion.decode(n,n.uint32());break;case 2:o.alphaTest=n.float();break;case 3:o.castShadows=n.bool();break;case 4:o.alphaTexture=TextureUnion.decode(n,n.uint32());break;case 5:o.emissiveTexture=TextureUnion.decode(n,n.uint32());break;case 6:o.bumpTexture=TextureUnion.decode(n,n.uint32());break;case 7:o.albedoColor=Color4.decode(n,n.uint32());break;case 8:o.emissiveColor=Color3.decode(n,n.uint32());break;case 9:o.reflectivityColor=Color3.decode(n,n.uint32());break;case 10:o.transparencyMode=n.int32();break;case 11:o.metallic=n.float();break;case 12:o.roughness=n.float();break;case 13:o.glossiness=n.float();break;case 14:o.specularIntensity=n.float();break;case 15:o.emissiveIntensity=n.float();break;case 16:o.directIntensity=n.float();break;default:n.skipType(7&e)}}return o}},MaterialSchema={COMPONENT_ID:1017,serialize(e,t){const n=PBMaterial.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBMaterial.decode(e.buffer(),e.remainingBytes()),create:()=>PBMaterial.decode(new Uint8Array)};var ColliderLayer;function createBasePBMeshCollider(){return{collisionMask:void 0,mesh:void 0}}exports.ColliderLayer=void 0,ColliderLayer=exports.ColliderLayer||(exports.ColliderLayer={}),ColliderLayer[ColliderLayer.CL_NONE=0]="CL_NONE",ColliderLayer[ColliderLayer.CL_POINTER=1]="CL_POINTER",ColliderLayer[ColliderLayer.CL_PHYSICS=2]="CL_PHYSICS";const PBMeshCollider={encode:(e,t=_m0.Writer.create())=>(void 0!==e.collisionMask&&t.uint32(8).int32(e.collisionMask),"box"===e.mesh?.$case&&PBMeshCollider_BoxMesh.encode(e.mesh.box,t.uint32(18).fork()).ldelim(),"sphere"===e.mesh?.$case&&PBMeshCollider_SphereMesh.encode(e.mesh.sphere,t.uint32(26).fork()).ldelim(),"cylinder"===e.mesh?.$case&&PBMeshCollider_CylinderMesh.encode(e.mesh.cylinder,t.uint32(34).fork()).ldelim(),"plane"===e.mesh?.$case&&PBMeshCollider_PlaneMesh.encode(e.mesh.plane,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshCollider();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.collisionMask=n.int32();break;case 2:o.mesh={$case:"box",box:PBMeshCollider_BoxMesh.decode(n,n.uint32())};break;case 3:o.mesh={$case:"sphere",sphere:PBMeshCollider_SphereMesh.decode(n,n.uint32())};break;case 4:o.mesh={$case:"cylinder",cylinder:PBMeshCollider_CylinderMesh.decode(n,n.uint32())};break;case 5:o.mesh={$case:"plane",plane:PBMeshCollider_PlaneMesh.decode(n,n.uint32())};break;default:n.skipType(7&e)}}return o}};function createBasePBMeshCollider_BoxMesh(){return{}}const PBMeshCollider_BoxMesh={encode:(e,t=_m0.Writer.create())=>t,decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshCollider_BoxMesh();for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return o}};function createBasePBMeshCollider_CylinderMesh(){return{radiusTop:void 0,radiusBottom:void 0}}const PBMeshCollider_CylinderMesh={encode:(e,t=_m0.Writer.create())=>(void 0!==e.radiusTop&&t.uint32(13).float(e.radiusTop),void 0!==e.radiusBottom&&t.uint32(21).float(e.radiusBottom),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshCollider_CylinderMesh();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.radiusTop=n.float();break;case 2:o.radiusBottom=n.float();break;default:n.skipType(7&e)}}return o}};function createBasePBMeshCollider_PlaneMesh(){return{}}const PBMeshCollider_PlaneMesh={encode:(e,t=_m0.Writer.create())=>t,decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshCollider_PlaneMesh();for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return o}};function createBasePBMeshCollider_SphereMesh(){return{}}const PBMeshCollider_SphereMesh={encode:(e,t=_m0.Writer.create())=>t,decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshCollider_SphereMesh();for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return o}},MeshColliderSchema={COMPONENT_ID:1019,serialize(e,t){const n=PBMeshCollider.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBMeshCollider.decode(e.buffer(),e.remainingBytes()),create:()=>PBMeshCollider.decode(new Uint8Array)};function createBasePBMeshRenderer(){return{mesh:void 0}}const PBMeshRenderer={encode:(e,t=_m0.Writer.create())=>("box"===e.mesh?.$case&&PBMeshRenderer_BoxMesh.encode(e.mesh.box,t.uint32(10).fork()).ldelim(),"sphere"===e.mesh?.$case&&PBMeshRenderer_SphereMesh.encode(e.mesh.sphere,t.uint32(18).fork()).ldelim(),"cylinder"===e.mesh?.$case&&PBMeshRenderer_CylinderMesh.encode(e.mesh.cylinder,t.uint32(26).fork()).ldelim(),"plane"===e.mesh?.$case&&PBMeshRenderer_PlaneMesh.encode(e.mesh.plane,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshRenderer();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.mesh={$case:"box",box:PBMeshRenderer_BoxMesh.decode(n,n.uint32())};break;case 2:o.mesh={$case:"sphere",sphere:PBMeshRenderer_SphereMesh.decode(n,n.uint32())};break;case 3:o.mesh={$case:"cylinder",cylinder:PBMeshRenderer_CylinderMesh.decode(n,n.uint32())};break;case 4:o.mesh={$case:"plane",plane:PBMeshRenderer_PlaneMesh.decode(n,n.uint32())};break;default:n.skipType(7&e)}}return o}};function createBasePBMeshRenderer_BoxMesh(){return{uvs:[]}}const PBMeshRenderer_BoxMesh={encode(e,t=_m0.Writer.create()){t.uint32(10).fork();for(const n of e.uvs)t.float(n);return t.ldelim(),t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshRenderer_BoxMesh();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.uvs.push(n.float())}else o.uvs.push(n.float());else n.skipType(7&e)}return o}};function createBasePBMeshRenderer_CylinderMesh(){return{radiusTop:void 0,radiusBottom:void 0}}const PBMeshRenderer_CylinderMesh={encode:(e,t=_m0.Writer.create())=>(void 0!==e.radiusTop&&t.uint32(13).float(e.radiusTop),void 0!==e.radiusBottom&&t.uint32(21).float(e.radiusBottom),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshRenderer_CylinderMesh();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.radiusTop=n.float();break;case 2:o.radiusBottom=n.float();break;default:n.skipType(7&e)}}return o}};function createBasePBMeshRenderer_PlaneMesh(){return{uvs:[]}}const PBMeshRenderer_PlaneMesh={encode(e,t=_m0.Writer.create()){t.uint32(10).fork();for(const n of e.uvs)t.float(n);return t.ldelim(),t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshRenderer_PlaneMesh();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.uvs.push(n.float())}else o.uvs.push(n.float());else n.skipType(7&e)}return o}};function createBasePBMeshRenderer_SphereMesh(){return{}}const PBMeshRenderer_SphereMesh={encode:(e,t=_m0.Writer.create())=>t,decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBMeshRenderer_SphereMesh();for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return o}},MeshRendererSchema={COMPONENT_ID:1018,serialize(e,t){const n=PBMeshRenderer.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBMeshRenderer.decode(e.buffer(),e.remainingBytes()),create:()=>PBMeshRenderer.decode(new Uint8Array)};var NftFrameType;function createBasePBNftShape(){return{src:"",style:void 0,color:void 0}}exports.NftFrameType=void 0,NftFrameType=exports.NftFrameType||(exports.NftFrameType={}),NftFrameType[NftFrameType.NFT_CLASSIC=0]="NFT_CLASSIC",NftFrameType[NftFrameType.NFT_BAROQUE_ORNAMENT=1]="NFT_BAROQUE_ORNAMENT",NftFrameType[NftFrameType.NFT_DIAMOND_ORNAMENT=2]="NFT_DIAMOND_ORNAMENT",NftFrameType[NftFrameType.NFT_MINIMAL_WIDE=3]="NFT_MINIMAL_WIDE",NftFrameType[NftFrameType.NFT_MINIMAL_GREY=4]="NFT_MINIMAL_GREY",NftFrameType[NftFrameType.NFT_BLOCKY=5]="NFT_BLOCKY",NftFrameType[NftFrameType.NFT_GOLD_EDGES=6]="NFT_GOLD_EDGES",NftFrameType[NftFrameType.NFT_GOLD_CARVED=7]="NFT_GOLD_CARVED",NftFrameType[NftFrameType.NFT_GOLD_WIDE=8]="NFT_GOLD_WIDE",NftFrameType[NftFrameType.NFT_GOLD_ROUNDED=9]="NFT_GOLD_ROUNDED",NftFrameType[NftFrameType.NFT_METAL_MEDIUM=10]="NFT_METAL_MEDIUM",NftFrameType[NftFrameType.NFT_METAL_WIDE=11]="NFT_METAL_WIDE",NftFrameType[NftFrameType.NFT_METAL_SLIM=12]="NFT_METAL_SLIM",NftFrameType[NftFrameType.NFT_METAL_ROUNDED=13]="NFT_METAL_ROUNDED",NftFrameType[NftFrameType.NFT_PINS=14]="NFT_PINS",NftFrameType[NftFrameType.NFT_MINIMAL_BLACK=15]="NFT_MINIMAL_BLACK",NftFrameType[NftFrameType.NFT_MINIMAL_WHITE=16]="NFT_MINIMAL_WHITE",NftFrameType[NftFrameType.NFT_TAPE=17]="NFT_TAPE",NftFrameType[NftFrameType.NFT_WOOD_SLIM=18]="NFT_WOOD_SLIM",NftFrameType[NftFrameType.NFT_WOOD_WIDE=19]="NFT_WOOD_WIDE",NftFrameType[NftFrameType.NFT_WOOD_TWIGS=20]="NFT_WOOD_TWIGS",NftFrameType[NftFrameType.NFT_CANVAS=21]="NFT_CANVAS",NftFrameType[NftFrameType.NFT_NONE=22]="NFT_NONE";const PBNftShape={encode:(e,t=_m0.Writer.create())=>(""!==e.src&&t.uint32(10).string(e.src),void 0!==e.style&&t.uint32(16).int32(e.style),void 0!==e.color&&Color3.encode(e.color,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBNftShape();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.src=n.string();break;case 2:o.style=n.int32();break;case 3:o.color=Color3.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o}},NftShapeSchema={COMPONENT_ID:1040,serialize(e,t){const n=PBNftShape.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBNftShape.decode(e.buffer(),e.remainingBytes()),create:()=>PBNftShape.decode(new Uint8Array)};var PointerEventType;function createBasePBPointerEvents(){return{pointerEvents:[]}}exports.PointerEventType=void 0,PointerEventType=exports.PointerEventType||(exports.PointerEventType={}),PointerEventType[PointerEventType.PET_UP=0]="PET_UP",PointerEventType[PointerEventType.PET_DOWN=1]="PET_DOWN",PointerEventType[PointerEventType.PET_HOVER_ENTER=2]="PET_HOVER_ENTER",PointerEventType[PointerEventType.PET_HOVER_LEAVE=3]="PET_HOVER_LEAVE";const PBPointerEvents={encode(e,t=_m0.Writer.create()){for(const n of e.pointerEvents)PBPointerEvents_Entry.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBPointerEvents();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.pointerEvents.push(PBPointerEvents_Entry.decode(n,n.uint32()));else n.skipType(7&e)}return o}};function createBasePBPointerEvents_Info(){return{button:void 0,hoverText:void 0,maxDistance:void 0,showFeedback:void 0}}const PBPointerEvents_Info={encode:(e,t=_m0.Writer.create())=>(void 0!==e.button&&t.uint32(8).int32(e.button),void 0!==e.hoverText&&t.uint32(18).string(e.hoverText),void 0!==e.maxDistance&&t.uint32(29).float(e.maxDistance),void 0!==e.showFeedback&&t.uint32(32).bool(e.showFeedback),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBPointerEvents_Info();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.button=n.int32();break;case 2:o.hoverText=n.string();break;case 3:o.maxDistance=n.float();break;case 4:o.showFeedback=n.bool();break;default:n.skipType(7&e)}}return o}};function createBasePBPointerEvents_Entry(){return{eventType:0,eventInfo:void 0}}const PBPointerEvents_Entry={encode:(e,t=_m0.Writer.create())=>(0!==e.eventType&&t.uint32(8).int32(e.eventType),void 0!==e.eventInfo&&PBPointerEvents_Info.encode(e.eventInfo,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBPointerEvents_Entry();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.eventType=n.int32();break;case 2:o.eventInfo=PBPointerEvents_Info.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o}},PointerEventsSchema={COMPONENT_ID:1062,serialize(e,t){const n=PBPointerEvents.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBPointerEvents.decode(e.buffer(),e.remainingBytes()),create:()=>PBPointerEvents.decode(new Uint8Array)};function createBasePBRaycastResult(){return{timestamp:0,origin:void 0,direction:void 0,hits:[]}}const PBRaycastResult={encode(e,t=_m0.Writer.create()){0!==e.timestamp&&t.uint32(8).int32(e.timestamp),void 0!==e.origin&&Vector3.encode(e.origin,t.uint32(18).fork()).ldelim(),void 0!==e.direction&&Vector3.encode(e.direction,t.uint32(26).fork()).ldelim();for(const n of e.hits)RaycastHit.encode(n,t.uint32(34).fork()).ldelim();return t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBRaycastResult();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.timestamp=n.int32();break;case 2:o.origin=Vector3.decode(n,n.uint32());break;case 3:o.direction=Vector3.decode(n,n.uint32());break;case 4:o.hits.push(RaycastHit.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return o}};function createBaseRaycastHit(){return{position:void 0,origin:void 0,direction:void 0,normalHit:void 0,length:0,meshName:void 0,entityId:void 0}}const RaycastHit={encode:(e,t=_m0.Writer.create())=>(void 0!==e.position&&Vector3.encode(e.position,t.uint32(10).fork()).ldelim(),void 0!==e.origin&&Vector3.encode(e.origin,t.uint32(18).fork()).ldelim(),void 0!==e.direction&&Vector3.encode(e.direction,t.uint32(26).fork()).ldelim(),void 0!==e.normalHit&&Vector3.encode(e.normalHit,t.uint32(34).fork()).ldelim(),0!==e.length&&t.uint32(45).float(e.length),void 0!==e.meshName&&t.uint32(50).string(e.meshName),void 0!==e.entityId&&t.uint32(56).int64(e.entityId),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseRaycastHit();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.position=Vector3.decode(n,n.uint32());break;case 2:o.origin=Vector3.decode(n,n.uint32());break;case 3:o.direction=Vector3.decode(n,n.uint32());break;case 4:o.normalHit=Vector3.decode(n,n.uint32());break;case 5:o.length=n.float();break;case 6:o.meshName=n.string();break;case 7:o.entityId=longToNumber(n.int64());break;default:n.skipType(7&e)}}return o}};var tsProtoGlobalThis=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function longToNumber(e){if(e.gt(Number.MAX_SAFE_INTEGER))throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}function createBasePBPointerEventsResult(){return{commands:[]}}_m0.util.Long!==Long&&(_m0.util.Long=Long,_m0.configure());const PBPointerEventsResult={encode(e,t=_m0.Writer.create()){for(const n of e.commands)PBPointerEventsResult_PointerCommand.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBPointerEventsResult();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.commands.push(PBPointerEventsResult_PointerCommand.decode(n,n.uint32()));else n.skipType(7&e)}return o}};function createBasePBPointerEventsResult_PointerCommand(){return{button:0,hit:void 0,state:0,timestamp:0,analog:void 0}}const PBPointerEventsResult_PointerCommand={encode:(e,t=_m0.Writer.create())=>(0!==e.button&&t.uint32(8).int32(e.button),void 0!==e.hit&&RaycastHit.encode(e.hit,t.uint32(18).fork()).ldelim(),0!==e.state&&t.uint32(32).int32(e.state),0!==e.timestamp&&t.uint32(40).int32(e.timestamp),void 0!==e.analog&&t.uint32(53).float(e.analog),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBPointerEventsResult_PointerCommand();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.button=n.int32();break;case 2:o.hit=RaycastHit.decode(n,n.uint32());break;case 4:o.state=n.int32();break;case 5:o.timestamp=n.int32();break;case 6:o.analog=n.float();break;default:n.skipType(7&e)}}return o}},PointerEventsResultSchema={COMPONENT_ID:1063,serialize(e,t){const n=PBPointerEventsResult.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBPointerEventsResult.decode(e.buffer(),e.remainingBytes()),create:()=>PBPointerEventsResult.decode(new Uint8Array)};function createBasePBPointerLock(){return{isPointerLocked:!1}}const PBPointerLock={encode:(e,t=_m0.Writer.create())=>(!0===e.isPointerLocked&&t.uint32(8).bool(e.isPointerLocked),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBPointerLock();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.isPointerLocked=n.bool();else n.skipType(7&e)}return o}},PointerLockSchema={COMPONENT_ID:1074,serialize(e,t){const n=PBPointerLock.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBPointerLock.decode(e.buffer(),e.remainingBytes()),create:()=>PBPointerLock.decode(new Uint8Array)};var RaycastQueryType;function createBasePBRaycast(){return{origin:void 0,direction:void 0,maxDistance:0,queryType:0}}exports.RaycastQueryType=void 0,RaycastQueryType=exports.RaycastQueryType||(exports.RaycastQueryType={}),RaycastQueryType[RaycastQueryType.RQT_HIT_FIRST=0]="RQT_HIT_FIRST",RaycastQueryType[RaycastQueryType.RQT_QUERY_ALL=1]="RQT_QUERY_ALL";const PBRaycast={encode:(e,t=_m0.Writer.create())=>(void 0!==e.origin&&Vector3.encode(e.origin,t.uint32(18).fork()).ldelim(),void 0!==e.direction&&Vector3.encode(e.direction,t.uint32(26).fork()).ldelim(),0!==e.maxDistance&&t.uint32(37).float(e.maxDistance),0!==e.queryType&&t.uint32(40).int32(e.queryType),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBRaycast();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 2:o.origin=Vector3.decode(n,n.uint32());break;case 3:o.direction=Vector3.decode(n,n.uint32());break;case 4:o.maxDistance=n.float();break;case 5:o.queryType=n.int32();break;default:n.skipType(7&e)}}return o}},RaycastSchema={COMPONENT_ID:1067,serialize(e,t){const n=PBRaycast.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBRaycast.decode(e.buffer(),e.remainingBytes()),create:()=>PBRaycast.decode(new Uint8Array)},RaycastResultSchema={COMPONENT_ID:1068,serialize(e,t){const n=PBRaycastResult.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBRaycastResult.decode(e.buffer(),e.remainingBytes()),create:()=>PBRaycastResult.decode(new Uint8Array)};function createBasePBTextShape(){return{text:"",font:void 0,fontSize:void 0,fontAutoSize:void 0,textAlign:void 0,width:void 0,height:void 0,paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0,lineSpacing:void 0,lineCount:void 0,textWrapping:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,outlineWidth:void 0,shadowColor:void 0,outlineColor:void 0,textColor:void 0}}const PBTextShape={encode:(e,t=_m0.Writer.create())=>(""!==e.text&&t.uint32(10).string(e.text),void 0!==e.font&&t.uint32(16).int32(e.font),void 0!==e.fontSize&&t.uint32(29).float(e.fontSize),void 0!==e.fontAutoSize&&t.uint32(32).bool(e.fontAutoSize),void 0!==e.textAlign&&t.uint32(40).int32(e.textAlign),void 0!==e.width&&t.uint32(53).float(e.width),void 0!==e.height&&t.uint32(61).float(e.height),void 0!==e.paddingTop&&t.uint32(69).float(e.paddingTop),void 0!==e.paddingRight&&t.uint32(77).float(e.paddingRight),void 0!==e.paddingBottom&&t.uint32(85).float(e.paddingBottom),void 0!==e.paddingLeft&&t.uint32(93).float(e.paddingLeft),void 0!==e.lineSpacing&&t.uint32(101).float(e.lineSpacing),void 0!==e.lineCount&&t.uint32(104).int32(e.lineCount),void 0!==e.textWrapping&&t.uint32(112).bool(e.textWrapping),void 0!==e.shadowBlur&&t.uint32(125).float(e.shadowBlur),void 0!==e.shadowOffsetX&&t.uint32(133).float(e.shadowOffsetX),void 0!==e.shadowOffsetY&&t.uint32(141).float(e.shadowOffsetY),void 0!==e.outlineWidth&&t.uint32(149).float(e.outlineWidth),void 0!==e.shadowColor&&Color3.encode(e.shadowColor,t.uint32(154).fork()).ldelim(),void 0!==e.outlineColor&&Color3.encode(e.outlineColor,t.uint32(162).fork()).ldelim(),void 0!==e.textColor&&Color4.encode(e.textColor,t.uint32(170).fork()).ldelim(),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBTextShape();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.text=n.string();break;case 2:o.font=n.int32();break;case 3:o.fontSize=n.float();break;case 4:o.fontAutoSize=n.bool();break;case 5:o.textAlign=n.int32();break;case 6:o.width=n.float();break;case 7:o.height=n.float();break;case 8:o.paddingTop=n.float();break;case 9:o.paddingRight=n.float();break;case 10:o.paddingBottom=n.float();break;case 11:o.paddingLeft=n.float();break;case 12:o.lineSpacing=n.float();break;case 13:o.lineCount=n.int32();break;case 14:o.textWrapping=n.bool();break;case 15:o.shadowBlur=n.float();break;case 16:o.shadowOffsetX=n.float();break;case 17:o.shadowOffsetY=n.float();break;case 18:o.outlineWidth=n.float();break;case 19:o.shadowColor=Color3.decode(n,n.uint32());break;case 20:o.outlineColor=Color3.decode(n,n.uint32());break;case 21:o.textColor=Color4.decode(n,n.uint32());break;default:n.skipType(7&e)}}return o}},TextShapeSchema={COMPONENT_ID:1030,serialize(e,t){const n=PBTextShape.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBTextShape.decode(e.buffer(),e.remainingBytes()),create:()=>PBTextShape.decode(new Uint8Array)};function createBaseBorderRect(){return{top:0,left:0,right:0,bottom:0}}const BorderRect={encode:(e,t=_m0.Writer.create())=>(0!==e.top&&t.uint32(13).float(e.top),0!==e.left&&t.uint32(21).float(e.left),0!==e.right&&t.uint32(29).float(e.right),0!==e.bottom&&t.uint32(37).float(e.bottom),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBaseBorderRect();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.top=n.float();break;case 2:o.left=n.float();break;case 3:o.right=n.float();break;case 4:o.bottom=n.float();break;default:n.skipType(7&e)}}return o}};var BackgroundTextureMode;function createBasePBUiBackground(){return{color:void 0,texture:void 0,textureMode:0,textureSlices:void 0,uvs:[]}}exports.BackgroundTextureMode=void 0,BackgroundTextureMode=exports.BackgroundTextureMode||(exports.BackgroundTextureMode={}),BackgroundTextureMode[BackgroundTextureMode.NINE_SLICES=0]="NINE_SLICES",BackgroundTextureMode[BackgroundTextureMode.CENTER=1]="CENTER",BackgroundTextureMode[BackgroundTextureMode.STRETCH=2]="STRETCH";const PBUiBackground={encode(e,t=_m0.Writer.create()){void 0!==e.color&&Color4.encode(e.color,t.uint32(10).fork()).ldelim(),void 0!==e.texture&&TextureUnion.encode(e.texture,t.uint32(18).fork()).ldelim(),0!==e.textureMode&&t.uint32(24).int32(e.textureMode),void 0!==e.textureSlices&&BorderRect.encode(e.textureSlices,t.uint32(34).fork()).ldelim(),t.uint32(42).fork();for(const n of e.uvs)t.float(n);return t.ldelim(),t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiBackground();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.color=Color4.decode(n,n.uint32());break;case 2:o.texture=TextureUnion.decode(n,n.uint32());break;case 3:o.textureMode=n.int32();break;case 4:o.textureSlices=BorderRect.decode(n,n.uint32());break;case 5:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)o.uvs.push(n.float())}else o.uvs.push(n.float());break;default:n.skipType(7&e)}}return o}},UiBackgroundSchema={COMPONENT_ID:1053,serialize(e,t){const n=PBUiBackground.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiBackground.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiBackground.decode(new Uint8Array)};function createBasePBUiDropdown(){return{acceptEmpty:!1,emptyLabel:void 0,options:[],selectedIndex:void 0,disabled:!1,color:void 0,textAlign:void 0,font:void 0,fontSize:void 0}}const PBUiDropdown={encode(e,t=_m0.Writer.create()){!0===e.acceptEmpty&&t.uint32(8).bool(e.acceptEmpty),void 0!==e.emptyLabel&&t.uint32(18).string(e.emptyLabel);for(const n of e.options)t.uint32(26).string(n);return void 0!==e.selectedIndex&&t.uint32(32).int32(e.selectedIndex),!0===e.disabled&&t.uint32(40).bool(e.disabled),void 0!==e.color&&Color4.encode(e.color,t.uint32(50).fork()).ldelim(),void 0!==e.textAlign&&t.uint32(80).int32(e.textAlign),void 0!==e.font&&t.uint32(88).int32(e.font),void 0!==e.fontSize&&t.uint32(96).int32(e.fontSize),t},decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiDropdown();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.acceptEmpty=n.bool();break;case 2:o.emptyLabel=n.string();break;case 3:o.options.push(n.string());break;case 4:o.selectedIndex=n.int32();break;case 5:o.disabled=n.bool();break;case 6:o.color=Color4.decode(n,n.uint32());break;case 10:o.textAlign=n.int32();break;case 11:o.font=n.int32();break;case 12:o.fontSize=n.int32();break;default:n.skipType(7&e)}}return o}},UiDropdownSchema={COMPONENT_ID:1094,serialize(e,t){const n=PBUiDropdown.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiDropdown.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiDropdown.decode(new Uint8Array)};function createBasePBUiDropdownResult(){return{value:0}}const PBUiDropdownResult={encode:(e,t=_m0.Writer.create())=>(0!==e.value&&t.uint32(8).int32(e.value),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiDropdownResult();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.value=n.int32();else n.skipType(7&e)}return o}},UiDropdownResultSchema={COMPONENT_ID:1096,serialize(e,t){const n=PBUiDropdownResult.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiDropdownResult.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiDropdownResult.decode(new Uint8Array)};function createBasePBUiInput(){return{placeholder:"",color:void 0,placeholderColor:void 0,disabled:!1,textAlign:void 0,font:void 0,fontSize:void 0}}const PBUiInput={encode:(e,t=_m0.Writer.create())=>(""!==e.placeholder&&t.uint32(10).string(e.placeholder),void 0!==e.color&&Color4.encode(e.color,t.uint32(18).fork()).ldelim(),void 0!==e.placeholderColor&&Color4.encode(e.placeholderColor,t.uint32(26).fork()).ldelim(),!0===e.disabled&&t.uint32(32).bool(e.disabled),void 0!==e.textAlign&&t.uint32(80).int32(e.textAlign),void 0!==e.font&&t.uint32(88).int32(e.font),void 0!==e.fontSize&&t.uint32(96).int32(e.fontSize),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiInput();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.placeholder=n.string();break;case 2:o.color=Color4.decode(n,n.uint32());break;case 3:o.placeholderColor=Color4.decode(n,n.uint32());break;case 4:o.disabled=n.bool();break;case 10:o.textAlign=n.int32();break;case 11:o.font=n.int32();break;case 12:o.fontSize=n.int32();break;default:n.skipType(7&e)}}return o}},UiInputSchema={COMPONENT_ID:1093,serialize(e,t){const n=PBUiInput.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiInput.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiInput.decode(new Uint8Array)};function createBasePBUiInputResult(){return{value:""}}const PBUiInputResult={encode:(e,t=_m0.Writer.create())=>(""!==e.value&&t.uint32(10).string(e.value),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiInputResult();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.value=n.string();else n.skipType(7&e)}return o}},UiInputResultSchema={COMPONENT_ID:1095,serialize(e,t){const n=PBUiInputResult.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiInputResult.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiInputResult.decode(new Uint8Array)};function createBasePBUiText(){return{value:"",color:void 0,textAlign:void 0,font:void 0,fontSize:void 0}}const PBUiText={encode:(e,t=_m0.Writer.create())=>(""!==e.value&&t.uint32(10).string(e.value),void 0!==e.color&&Color4.encode(e.color,t.uint32(18).fork()).ldelim(),void 0!==e.textAlign&&t.uint32(24).int32(e.textAlign),void 0!==e.font&&t.uint32(32).int32(e.font),void 0!==e.fontSize&&t.uint32(40).int32(e.fontSize),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiText();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.value=n.string();break;case 2:o.color=Color4.decode(n,n.uint32());break;case 3:o.textAlign=n.int32();break;case 4:o.font=n.int32();break;case 5:o.fontSize=n.int32();break;default:n.skipType(7&e)}}return o}},UiTextSchema={COMPONENT_ID:1052,serialize(e,t){const n=PBUiText.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiText.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiText.decode(new Uint8Array)};var YGPositionType,YGAlign,YGUnit,YGFlexDirection,YGWrap,YGJustify,YGOverflow,YGDisplay,YGEdge;function createBasePBUiTransform(){return{parent:0,rightOf:0,alignContent:void 0,alignItems:void 0,flexWrap:void 0,flexShrink:void 0,positionType:0,alignSelf:0,flexDirection:0,justifyContent:0,overflow:0,display:0,flexBasisUnit:0,flexBasis:0,flexGrow:0,widthUnit:0,width:0,heightUnit:0,height:0,minWidthUnit:0,minWidth:0,minHeightUnit:0,minHeight:0,maxWidthUnit:0,maxWidth:0,maxHeightUnit:0,maxHeight:0,positionLeftUnit:0,positionLeft:0,positionTopUnit:0,positionTop:0,positionRightUnit:0,positionRight:0,positionBottomUnit:0,positionBottom:0,marginLeftUnit:0,marginLeft:0,marginTopUnit:0,marginTop:0,marginRightUnit:0,marginRight:0,marginBottomUnit:0,marginBottom:0,paddingLeftUnit:0,paddingLeft:0,paddingTopUnit:0,paddingTop:0,paddingRightUnit:0,paddingRight:0,paddingBottomUnit:0,paddingBottom:0}}exports.YGPositionType=void 0,YGPositionType=exports.YGPositionType||(exports.YGPositionType={}),YGPositionType[YGPositionType.YGPT_RELATIVE=0]="YGPT_RELATIVE",YGPositionType[YGPositionType.YGPT_ABSOLUTE=1]="YGPT_ABSOLUTE",exports.YGAlign=void 0,YGAlign=exports.YGAlign||(exports.YGAlign={}),YGAlign[YGAlign.YGA_AUTO=0]="YGA_AUTO",YGAlign[YGAlign.YGA_FLEX_START=1]="YGA_FLEX_START",YGAlign[YGAlign.YGA_CENTER=2]="YGA_CENTER",YGAlign[YGAlign.YGA_FLEX_END=3]="YGA_FLEX_END",YGAlign[YGAlign.YGA_STRETCH=4]="YGA_STRETCH",YGAlign[YGAlign.YGA_BASELINE=5]="YGA_BASELINE",YGAlign[YGAlign.YGA_SPACE_BETWEEN=6]="YGA_SPACE_BETWEEN",YGAlign[YGAlign.YGA_SPACE_AROUND=7]="YGA_SPACE_AROUND",exports.YGUnit=void 0,YGUnit=exports.YGUnit||(exports.YGUnit={}),YGUnit[YGUnit.YGU_UNDEFINED=0]="YGU_UNDEFINED",YGUnit[YGUnit.YGU_POINT=1]="YGU_POINT",YGUnit[YGUnit.YGU_PERCENT=2]="YGU_PERCENT",YGUnit[YGUnit.YGU_AUTO=3]="YGU_AUTO",exports.YGFlexDirection=void 0,YGFlexDirection=exports.YGFlexDirection||(exports.YGFlexDirection={}),YGFlexDirection[YGFlexDirection.YGFD_ROW=0]="YGFD_ROW",YGFlexDirection[YGFlexDirection.YGFD_COLUMN=1]="YGFD_COLUMN",YGFlexDirection[YGFlexDirection.YGFD_COLUMN_REVERSE=2]="YGFD_COLUMN_REVERSE",YGFlexDirection[YGFlexDirection.YGFD_ROW_REVERSE=3]="YGFD_ROW_REVERSE",exports.YGWrap=void 0,YGWrap=exports.YGWrap||(exports.YGWrap={}),YGWrap[YGWrap.YGW_NO_WRAP=0]="YGW_NO_WRAP",YGWrap[YGWrap.YGW_WRAP=1]="YGW_WRAP",YGWrap[YGWrap.YGW_WRAP_REVERSE=2]="YGW_WRAP_REVERSE",exports.YGJustify=void 0,YGJustify=exports.YGJustify||(exports.YGJustify={}),YGJustify[YGJustify.YGJ_FLEX_START=0]="YGJ_FLEX_START",YGJustify[YGJustify.YGJ_CENTER=1]="YGJ_CENTER",YGJustify[YGJustify.YGJ_FLEX_END=2]="YGJ_FLEX_END",YGJustify[YGJustify.YGJ_SPACE_BETWEEN=3]="YGJ_SPACE_BETWEEN",YGJustify[YGJustify.YGJ_SPACE_AROUND=4]="YGJ_SPACE_AROUND",YGJustify[YGJustify.YGJ_SPACE_EVENLY=5]="YGJ_SPACE_EVENLY",exports.YGOverflow=void 0,YGOverflow=exports.YGOverflow||(exports.YGOverflow={}),YGOverflow[YGOverflow.YGO_VISIBLE=0]="YGO_VISIBLE",YGOverflow[YGOverflow.YGO_HIDDEN=1]="YGO_HIDDEN",YGOverflow[YGOverflow.YGO_SCROLL=2]="YGO_SCROLL",exports.YGDisplay=void 0,YGDisplay=exports.YGDisplay||(exports.YGDisplay={}),YGDisplay[YGDisplay.YGD_FLEX=0]="YGD_FLEX",YGDisplay[YGDisplay.YGD_NONE=1]="YGD_NONE",exports.YGEdge=void 0,YGEdge=exports.YGEdge||(exports.YGEdge={}),YGEdge[YGEdge.YGE_LEFT=0]="YGE_LEFT",YGEdge[YGEdge.YGE_TOP=1]="YGE_TOP",YGEdge[YGEdge.YGE_RIGHT=2]="YGE_RIGHT",YGEdge[YGEdge.YGE_BOTTOM=3]="YGE_BOTTOM",YGEdge[YGEdge.YGE_START=4]="YGE_START",YGEdge[YGEdge.YGE_END=5]="YGE_END",YGEdge[YGEdge.YGE_HORIZONTAL=6]="YGE_HORIZONTAL",YGEdge[YGEdge.YGE_VERTICAL=7]="YGE_VERTICAL",YGEdge[YGEdge.YGE_ALL=8]="YGE_ALL";const PBUiTransform={encode:(e,t=_m0.Writer.create())=>(0!==e.parent&&t.uint32(8).int32(e.parent),0!==e.rightOf&&t.uint32(16).int32(e.rightOf),void 0!==e.alignContent&&t.uint32(24).int32(e.alignContent),void 0!==e.alignItems&&t.uint32(32).int32(e.alignItems),void 0!==e.flexWrap&&t.uint32(40).int32(e.flexWrap),void 0!==e.flexShrink&&t.uint32(53).float(e.flexShrink),0!==e.positionType&&t.uint32(56).int32(e.positionType),0!==e.alignSelf&&t.uint32(64).int32(e.alignSelf),0!==e.flexDirection&&t.uint32(72).int32(e.flexDirection),0!==e.justifyContent&&t.uint32(80).int32(e.justifyContent),0!==e.overflow&&t.uint32(88).int32(e.overflow),0!==e.display&&t.uint32(96).int32(e.display),0!==e.flexBasisUnit&&t.uint32(104).int32(e.flexBasisUnit),0!==e.flexBasis&&t.uint32(117).float(e.flexBasis),0!==e.flexGrow&&t.uint32(125).float(e.flexGrow),0!==e.widthUnit&&t.uint32(128).int32(e.widthUnit),0!==e.width&&t.uint32(141).float(e.width),0!==e.heightUnit&&t.uint32(144).int32(e.heightUnit),0!==e.height&&t.uint32(157).float(e.height),0!==e.minWidthUnit&&t.uint32(160).int32(e.minWidthUnit),0!==e.minWidth&&t.uint32(173).float(e.minWidth),0!==e.minHeightUnit&&t.uint32(176).int32(e.minHeightUnit),0!==e.minHeight&&t.uint32(189).float(e.minHeight),0!==e.maxWidthUnit&&t.uint32(192).int32(e.maxWidthUnit),0!==e.maxWidth&&t.uint32(205).float(e.maxWidth),0!==e.maxHeightUnit&&t.uint32(208).int32(e.maxHeightUnit),0!==e.maxHeight&&t.uint32(221).float(e.maxHeight),0!==e.positionLeftUnit&&t.uint32(224).int32(e.positionLeftUnit),0!==e.positionLeft&&t.uint32(237).float(e.positionLeft),0!==e.positionTopUnit&&t.uint32(240).int32(e.positionTopUnit),0!==e.positionTop&&t.uint32(253).float(e.positionTop),0!==e.positionRightUnit&&t.uint32(256).int32(e.positionRightUnit),0!==e.positionRight&&t.uint32(269).float(e.positionRight),0!==e.positionBottomUnit&&t.uint32(272).int32(e.positionBottomUnit),0!==e.positionBottom&&t.uint32(285).float(e.positionBottom),0!==e.marginLeftUnit&&t.uint32(288).int32(e.marginLeftUnit),0!==e.marginLeft&&t.uint32(301).float(e.marginLeft),0!==e.marginTopUnit&&t.uint32(304).int32(e.marginTopUnit),0!==e.marginTop&&t.uint32(317).float(e.marginTop),0!==e.marginRightUnit&&t.uint32(320).int32(e.marginRightUnit),0!==e.marginRight&&t.uint32(333).float(e.marginRight),0!==e.marginBottomUnit&&t.uint32(336).int32(e.marginBottomUnit),0!==e.marginBottom&&t.uint32(349).float(e.marginBottom),0!==e.paddingLeftUnit&&t.uint32(352).int32(e.paddingLeftUnit),0!==e.paddingLeft&&t.uint32(365).float(e.paddingLeft),0!==e.paddingTopUnit&&t.uint32(368).int32(e.paddingTopUnit),0!==e.paddingTop&&t.uint32(381).float(e.paddingTop),0!==e.paddingRightUnit&&t.uint32(384).int32(e.paddingRightUnit),0!==e.paddingRight&&t.uint32(397).float(e.paddingRight),0!==e.paddingBottomUnit&&t.uint32(400).int32(e.paddingBottomUnit),0!==e.paddingBottom&&t.uint32(413).float(e.paddingBottom),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBUiTransform();for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.parent=n.int32();break;case 2:o.rightOf=n.int32();break;case 3:o.alignContent=n.int32();break;case 4:o.alignItems=n.int32();break;case 5:o.flexWrap=n.int32();break;case 6:o.flexShrink=n.float();break;case 7:o.positionType=n.int32();break;case 8:o.alignSelf=n.int32();break;case 9:o.flexDirection=n.int32();break;case 10:o.justifyContent=n.int32();break;case 11:o.overflow=n.int32();break;case 12:o.display=n.int32();break;case 13:o.flexBasisUnit=n.int32();break;case 14:o.flexBasis=n.float();break;case 15:o.flexGrow=n.float();break;case 16:o.widthUnit=n.int32();break;case 17:o.width=n.float();break;case 18:o.heightUnit=n.int32();break;case 19:o.height=n.float();break;case 20:o.minWidthUnit=n.int32();break;case 21:o.minWidth=n.float();break;case 22:o.minHeightUnit=n.int32();break;case 23:o.minHeight=n.float();break;case 24:o.maxWidthUnit=n.int32();break;case 25:o.maxWidth=n.float();break;case 26:o.maxHeightUnit=n.int32();break;case 27:o.maxHeight=n.float();break;case 28:o.positionLeftUnit=n.int32();break;case 29:o.positionLeft=n.float();break;case 30:o.positionTopUnit=n.int32();break;case 31:o.positionTop=n.float();break;case 32:o.positionRightUnit=n.int32();break;case 33:o.positionRight=n.float();break;case 34:o.positionBottomUnit=n.int32();break;case 35:o.positionBottom=n.float();break;case 36:o.marginLeftUnit=n.int32();break;case 37:o.marginLeft=n.float();break;case 38:o.marginTopUnit=n.int32();break;case 39:o.marginTop=n.float();break;case 40:o.marginRightUnit=n.int32();break;case 41:o.marginRight=n.float();break;case 42:o.marginBottomUnit=n.int32();break;case 43:o.marginBottom=n.float();break;case 44:o.paddingLeftUnit=n.int32();break;case 45:o.paddingLeft=n.float();break;case 46:o.paddingTopUnit=n.int32();break;case 47:o.paddingTop=n.float();break;case 48:o.paddingRightUnit=n.int32();break;case 49:o.paddingRight=n.float();break;case 50:o.paddingBottomUnit=n.int32();break;case 51:o.paddingBottom=n.float();break;default:n.skipType(7&e)}}return o}},UiTransformSchema={COMPONENT_ID:1050,serialize(e,t){const n=PBUiTransform.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBUiTransform.decode(e.buffer(),e.remainingBytes()),create:()=>PBUiTransform.decode(new Uint8Array)};function createBasePBVisibilityComponent(){return{visible:void 0}}const PBVisibilityComponent={encode:(e,t=_m0.Writer.create())=>(void 0!==e.visible&&t.uint32(8).bool(e.visible),t),decode(e,t){const n=e instanceof _m0.Reader?e:new _m0.Reader(e);let r=void 0===t?n.len:n.pos+t;const o=createBasePBVisibilityComponent();for(;n.pos<r;){const e=n.uint32();if(e>>>3==1)o.visible=n.bool();else n.skipType(7&e)}return o}},VisibilityComponentSchema={COMPONENT_ID:1081,serialize(e,t){const n=PBVisibilityComponent.encode(e),r=new Uint8Array(n.finish(),0,n.len);t.writeBuffer(r,!1)},deserialize:e=>PBVisibilityComponent.decode(e.buffer(),e.remainingBytes()),create:()=>PBVisibilityComponent.decode(new Uint8Array)},Animator$2=e=>e.defineComponentFromSchema("core::Animator",AnimatorSchema),AudioSource$1=e=>e.defineComponentFromSchema("core::AudioSource",AudioSourceSchema),AudioStream$1=e=>e.defineComponentFromSchema("core::AudioStream",AudioStreamSchema),AvatarAttach$1=e=>e.defineComponentFromSchema("core::AvatarAttach",AvatarAttachSchema),AvatarModifierArea$1=e=>e.defineComponentFromSchema("core::AvatarModifierArea",AvatarModifierAreaSchema),AvatarShape$1=e=>e.defineComponentFromSchema("core::AvatarShape",AvatarShapeSchema),Billboard$1=e=>e.defineComponentFromSchema("core::Billboard",BillboardSchema),CameraMode$1=e=>e.defineComponentFromSchema("core::CameraMode",CameraModeSchema),CameraModeArea$1=e=>e.defineComponentFromSchema("core::CameraModeArea",CameraModeAreaSchema),GltfContainer$1=e=>e.defineComponentFromSchema("core::GltfContainer",GltfContainerSchema),Material$2=e=>e.defineComponentFromSchema("core::Material",MaterialSchema),MeshCollider$2=e=>e.defineComponentFromSchema("core::MeshCollider",MeshColliderSchema),MeshRenderer$2=e=>e.defineComponentFromSchema("core::MeshRenderer",MeshRendererSchema),NftShape$1=e=>e.defineComponentFromSchema("core::NftShape",NftShapeSchema),PointerEvents$1=e=>e.defineComponentFromSchema("core::PointerEvents",PointerEventsSchema),PointerEventsResult$1=e=>e.defineComponentFromSchema("core::PointerEventsResult",PointerEventsResultSchema),PointerLock$1=e=>e.defineComponentFromSchema("core::PointerLock",PointerLockSchema),Raycast$1=e=>e.defineComponentFromSchema("core::Raycast",RaycastSchema),RaycastResult$1=e=>e.defineComponentFromSchema("core::RaycastResult",RaycastResultSchema),TextShape$1=e=>e.defineComponentFromSchema("core::TextShape",TextShapeSchema),UiBackground$1=e=>e.defineComponentFromSchema("core::UiBackground",UiBackgroundSchema),UiDropdown$1=e=>e.defineComponentFromSchema("core::UiDropdown",UiDropdownSchema),UiDropdownResult$1=e=>e.defineComponentFromSchema("core::UiDropdownResult",UiDropdownResultSchema),UiInput$1=e=>e.defineComponentFromSchema("core::UiInput",UiInputSchema),UiInputResult$1=e=>e.defineComponentFromSchema("core::UiInputResult",UiInputResultSchema),UiText$1=e=>e.defineComponentFromSchema("core::UiText",UiTextSchema),UiTransform$1=e=>e.defineComponentFromSchema("core::UiTransform",UiTransformSchema),VisibilityComponent$1=e=>e.defineComponentFromSchema("core::VisibilityComponent",VisibilityComponentSchema);function defineAnimatorComponent(e){const t=Animator$2(e);function n(e,n){const r=t.getMutableOrNull(e);if(!r)return[null,null];const o=r.states.find((e=>e.name===n||e.clip===n));return o?[r,o]:[r,null]}return{...t,getClipOrNull(e,t){const[r,o]=n(e,t);return o},getClip(e,t){const[r,o]=n(e,t);if(!r)throw new Error(`There is no Animator found in the entity ${e}`);if(!o)throw new Error(`The Animator component of ${e} has no the state ${t}`);return o},playSingleAnimation(e,t,r=!0){const[o,i]=n(e,t);if(!o||!i)return!1;for(const e of o.states)e.playing=!1,e.shouldReset=!0;return i.playing=!0,i.shouldReset=r,!0},stopAllAnimations(e,n=!0){const r=t.getMutableOrNull(e);if(!r)return!1;for(const e of r.states)e.playing=!1,e.shouldReset=n;return!0}}}const TextureHelper={Common:e=>({tex:{$case:"texture",texture:e}}),Avatar:e=>({tex:{$case:"avatarTexture",avatarTexture:e}})};function defineMaterialComponent(e){const t=Material$2(e);return{...t,Texture:TextureHelper,setBasicMaterial(e,n){t.createOrReplace(e,{material:{$case:"unlit",unlit:n}})},setPbrMaterial(e,n){t.createOrReplace(e,{material:{$case:"pbr",pbr:n}})}}}function defineMeshColliderComponent(e){const t=MeshCollider$2(e);function n(e){return Array.isArray(e)?e.map((e=>e)).reduce(((e,t)=>e|t),0):e||void 0}return{...t,setBox(e,r){t.createOrReplace(e,{mesh:{$case:"box",box:{}},collisionMask:n(r)})},setPlane(e,r){t.createOrReplace(e,{mesh:{$case:"plane",plane:{}},collisionMask:n(r)})},setCylinder(e,r,o,i){t.createOrReplace(e,{mesh:{$case:"cylinder",cylinder:{radiusBottom:r,radiusTop:o}},collisionMask:n(i)})},setSphere(e,r){t.createOrReplace(e,{mesh:{$case:"sphere",sphere:{}},collisionMask:n(r)})}}}function defineMeshRendererComponent(e){const t=MeshRenderer$2(e);return{...t,setBox(e,n){t.createOrReplace(e,{mesh:{$case:"box",box:{uvs:n||[]}}})},setPlane(e,n){t.createOrReplace(e,{mesh:{$case:"plane",plane:{uvs:n||[]}}})},setCylinder(e,n,r){t.createOrReplace(e,{mesh:{$case:"cylinder",cylinder:{radiusBottom:n,radiusTop:r}}})},setSphere(e){t.createOrReplace(e,{mesh:{$case:"sphere",sphere:{}}})}}}const TRANSFORM_LENGTH=44,TransformSchema={serialize(e,t){const n=t.incrementWriteOffset(TRANSFORM_LENGTH);t.setFloat32(n,e.position.x),t.setFloat32(n+4,e.position.y),t.setFloat32(n+8,e.position.z),t.setFloat32(n+12,e.rotation.x),t.setFloat32(n+16,e.rotation.y),t.setFloat32(n+20,e.rotation.z),t.setFloat32(n+24,e.rotation.w),t.setFloat32(n+28,e.scale.x),t.setFloat32(n+32,e.scale.y),t.setFloat32(n+36,e.scale.z),t.setUint32(n+40,e.parent||0)},deserialize(e){const t=e.incrementReadOffset(TRANSFORM_LENGTH);return{position:{x:e.getFloat32(t),y:e.getFloat32(t+4),z:e.getFloat32(t+8)},rotation:{x:e.getFloat32(t+12),y:e.getFloat32(t+16),z:e.getFloat32(t+20),w:e.getFloat32(t+24)},scale:{x:e.getFloat32(t+28),y:e.getFloat32(t+32),z:e.getFloat32(t+36)},parent:e.getUint32(t+40)}},create:()=>({position:{x:0,y:0,z:0},scale:{x:1,y:1,z:1},rotation:{x:0,y:0,z:0,w:1}}),extend:e=>({position:{x:0,y:0,z:0},scale:{x:1,y:1,z:1},rotation:{x:0,y:0,z:0,w:1},...e})};function defineTransformComponent(e){const t=e.defineComponentFromSchema("core::Transform",TransformSchema);return{...t,create:(e,n)=>t.create(e,n),createOrReplace:(e,n)=>t.createOrReplace(e,n)}}const Transform$1=e=>defineTransformComponent(e),Material$1=e=>defineMaterialComponent(e),Animator$1=e=>defineAnimatorComponent(e),MeshRenderer$1=e=>defineMeshRendererComponent(e),MeshCollider$1=e=>defineMeshColliderComponent(e);var index=Object.freeze({__proto__:null,Animator:Animator$1,AudioSource:AudioSource$1,AudioStream:AudioStream$1,get AvatarAnchorPointType(){return exports.AvatarAnchorPointType},AvatarAttach:AvatarAttach$1,AvatarModifierArea:AvatarModifierArea$1,get AvatarModifierType(){return exports.AvatarModifierType},AvatarShape:AvatarShape$1,get BackgroundTextureMode(){return exports.BackgroundTextureMode},Billboard:Billboard$1,get BillboardMode(){return exports.BillboardMode},CameraMode:CameraMode$1,CameraModeArea:CameraModeArea$1,get ColliderLayer(){return exports.ColliderLayer},GltfContainer:GltfContainer$1,Material:Material$1,get MaterialTransparencyMode(){return exports.MaterialTransparencyMode},MeshCollider:MeshCollider$1,MeshRenderer:MeshRenderer$1,get NftFrameType(){return exports.NftFrameType},NftShape:NftShape$1,PBAnimationState:PBAnimationState,PBAnimator:PBAnimator,PBAudioSource:PBAudioSource,PBAudioStream:PBAudioStream,PBAvatarAttach:PBAvatarAttach,PBAvatarModifierArea:PBAvatarModifierArea,PBAvatarShape:PBAvatarShape,PBBillboard:PBBillboard,PBCameraMode:PBCameraMode,PBCameraModeArea:PBCameraModeArea,PBGltfContainer:PBGltfContainer,PBMaterial:PBMaterial,PBMaterial_PbrMaterial:PBMaterial_PbrMaterial,PBMaterial_UnlitMaterial:PBMaterial_UnlitMaterial,PBMeshCollider:PBMeshCollider,PBMeshCollider_BoxMesh:PBMeshCollider_BoxMesh,PBMeshCollider_CylinderMesh:PBMeshCollider_CylinderMesh,PBMeshCollider_PlaneMesh:PBMeshCollider_PlaneMesh,PBMeshCollider_SphereMesh:PBMeshCollider_SphereMesh,PBMeshRenderer:PBMeshRenderer,PBMeshRenderer_BoxMesh:PBMeshRenderer_BoxMesh,PBMeshRenderer_CylinderMesh:PBMeshRenderer_CylinderMesh,PBMeshRenderer_PlaneMesh:PBMeshRenderer_PlaneMesh,PBMeshRenderer_SphereMesh:PBMeshRenderer_SphereMesh,PBNftShape:PBNftShape,PBPointerEvents:PBPointerEvents,PBPointerEventsResult:PBPointerEventsResult,PBPointerEventsResult_PointerCommand:PBPointerEventsResult_PointerCommand,PBPointerEvents_Entry:PBPointerEvents_Entry,PBPointerEvents_Info:PBPointerEvents_Info,PBPointerLock:PBPointerLock,PBRaycast:PBRaycast,PBRaycastResult:PBRaycastResult,PBTextShape:PBTextShape,PBUiBackground:PBUiBackground,PBUiDropdown:PBUiDropdown,PBUiDropdownResult:PBUiDropdownResult,PBUiInput:PBUiInput,PBUiInputResult:PBUiInputResult,PBUiText:PBUiText,PBUiTransform:PBUiTransform,PBVisibilityComponent:PBVisibilityComponent,get PointerEventType(){return exports.PointerEventType},PointerEvents:PointerEvents$1,PointerEventsResult:PointerEventsResult$1,PointerLock:PointerLock$1,Raycast:Raycast$1,RaycastHit:RaycastHit,get RaycastQueryType(){return exports.RaycastQueryType},RaycastResult:RaycastResult$1,TextShape:TextShape$1,Transform:Transform$1,UiBackground:UiBackground$1,UiDropdown:UiDropdown$1,UiDropdownResult:UiDropdownResult$1,UiInput:UiInput$1,UiInputResult:UiInputResult$1,UiText:UiText$1,UiTransform:UiTransform$1,VisibilityComponent:VisibilityComponent$1,get YGAlign(){return exports.YGAlign},get YGDisplay(){return exports.YGDisplay},get YGEdge(){return exports.YGEdge},get YGFlexDirection(){return exports.YGFlexDirection},get YGJustify(){return exports.YGJustify},get YGOverflow(){return exports.YGOverflow},get YGPositionType(){return exports.YGPositionType},get YGUnit(){return exports.YGUnit},get YGWrap(){return exports.YGWrap}});const coreComponentMappings={"core::Transform":1,"core::Animator":1042,"core::AudioSource":1020,"core::AudioStream":1021,"core::AvatarAttach":1073,"core::AvatarModifierArea":1070,"core::AvatarShape":1080,"core::Billboard":1090,"core::CameraMode":1072,"core::CameraModeArea":1071,"core::GltfContainer":1041,"core::Material":1017,"core::MeshCollider":1019,"core::MeshRenderer":1018,"core::NftShape":1040,"core::PointerEvents":1062,"core::PointerEventsResult":1063,"core::PointerLock":1074,"core::Raycast":1067,"core::RaycastResult":1068,"core::TextShape":1030,"core::UiBackground":1053,"core::UiDropdown":1094,"core::UiDropdownResult":1096,"core::UiInput":1093,"core::UiInputResult":1095,"core::UiText":1052,"core::UiTransform":1050,"core::VisibilityComponent":1081};var utf8Exports=requireUtf8();const CRC_TABLE=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function _crc32(e,t){let n=-1^~~t;for(let t=0;t<e.length;t++)n=CRC_TABLE[255&(n^e[t])]^n>>>8;return-1^n}function unsignedCRC32(e,t=0){return _crc32(e,t)>>>0}const MAX_STATIC_COMPONENT=2048;function componentNumberFromName(e){if(coreComponentMappings[e])return coreComponentMappings[e];const t=new Uint8Array(128);return utf8Exports.write(e,t,0),(unsignedCRC32(t)+MAX_STATIC_COMPONENT&4294967295)>>>0}function checkNotThenable(e,t){if(globalThis.DEBUG&&e&&"object"==typeof e&&"function"==typeof e.then)throw new Error(t);return e}const IArray=e=>({serialize(t,n){n.writeUint32(t.length);for(const r of t)e.serialize(r,n)},deserialize(t){const n=[],r=t.readUint32();for(let o=0;o<r;o++)n.push(e.deserialize(t));return n},create:()=>[]}),Bool={serialize(e,t){t.writeInt8(e?1:0)},deserialize:e=>1===e.readInt8(),create:()=>!1},IEnum=e=>({serialize(t,n){e.serialize(t,n)},deserialize:t=>e.deserialize(t),create:()=>e.create()}),Float32={serialize(e,t){t.writeFloat32(e)},deserialize:e=>e.readFloat32(),create:()=>0},Float64={serialize(e,t){t.writeFloat64(e)},deserialize:e=>e.readFloat64(),create:()=>0},Int64={serialize(e,t){t.writeInt64(BigInt(e))},deserialize:e=>Number(e.readInt64()),create:()=>0},Int32={serialize(e,t){t.writeInt32(e)},deserialize:e=>e.readInt32(),create:()=>0},Int16={serialize(e,t){t.writeInt16(e)},deserialize:e=>e.readInt16(),create:()=>0},Int8={serialize(e,t){t.writeInt8(e)},deserialize:e=>e.readInt8(),create:()=>0},FlatString={serialize(e,t){t.writeUtf8String(e)},deserialize:e=>e.readUtf8String(),create:()=>""},EcsString=FlatString,Color3Schema={serialize(e,t){t.writeFloat32(e.r),t.writeFloat32(e.g),t.writeFloat32(e.b)},deserialize:e=>({r:e.readFloat32(),g:e.readFloat32(),b:e.readFloat32()}),create:()=>({r:0,g:0,b:0})},Color4Schema={serialize(e,t){t.writeFloat32(e.r),t.writeFloat32(e.g),t.writeFloat32(e.b),t.writeFloat32(e.a)},deserialize:e=>({r:e.readFloat32(),g:e.readFloat32(),b:e.readFloat32(),a:e.readFloat32()}),create:()=>({r:0,g:0,b:0,a:0})},EntitySchema={serialize(e,t){t.writeInt32(e)},deserialize:e=>e.readInt32(),create:()=>0},QuaternionSchema={serialize(e,t){t.writeFloat32(e.x),t.writeFloat32(e.y),t.writeFloat32(e.z),t.writeFloat32(e.w)},deserialize:e=>({x:e.readFloat32(),y:e.readFloat32(),z:e.readFloat32(),w:e.readFloat32()}),create:()=>({x:0,y:0,z:0,w:0})},Vector3Schema={serialize(e,t){t.writeFloat32(e.x),t.writeFloat32(e.y),t.writeFloat32(e.z)},deserialize:e=>({x:e.readFloat32(),y:e.readFloat32(),z:e.readFloat32()}),create:()=>({x:0,y:0,z:0})},IMap=(e,t)=>({serialize(t,n){for(const r in e)e[r].serialize(t[r],n)},deserialize(t){const n={};for(const r in e)n[r]=e[r].deserialize(t);return n},create(){const n={};for(const t in e)n[t]=e[t].create();return{...n,...t}},extend:n=>{const r={};for(const t in e)r[t]=e[t].create();return{...r,...t,...n}}}),IOptional=e=>({serialize(t,n){t?(n.writeInt8(1),e.serialize(t,n)):n.writeInt8(0)},deserialize(t){if(t.readInt8())return e.deserialize(t)},create(){}});var Schemas;exports.Schemas=void 0,Schemas=exports.Schemas||(exports.Schemas={}),Schemas.Boolean=Bool,Schemas.String=EcsString,Schemas.Float=Float32,Schemas.Double=Float64,Schemas.Byte=Int8,Schemas.Short=Int16,Schemas.Int=Int32,Schemas.Int64=Int64,Schemas.Number=Float32,Schemas.Vector3=Vector3Schema,Schemas.Quaternion=QuaternionSchema,Schemas.Color3=Color3Schema,Schemas.Color4=Color4Schema,Schemas.Entity=EntitySchema,Schemas.Enum=IEnum,Schemas.Array=IArray,Schemas.Map=IMap,Schemas.Optional=IOptional;var dist={},gset={},hasRequiredGset;function requireGset(){if(hasRequiredGset)return gset;return hasRequiredGset=1,Object.defineProperty(gset,"__esModule",{value:!0}),gset.createGSet=void 0,gset.createGSet=function(){const e=new Map;return{addTo(t,n){if(n<0)return!1;const r=e.get(t);return void 0!==r&&r>=n||e.set(t,n),!0},get(){const t=[];for(const[n,r]of e)for(let e=0;e<=r;e++)t.push([n,e]);return t},has(t,n){const r=e.get(t);return void 0!==r&&r>=n},getMap:()=>e}},gset}var types={},hasRequiredTypes,hasRequiredDist;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(e){var t,n;Object.defineProperty(e,"__esModule",{value:!0}),e.ProcessMessageResultType=e.CRDTMessageType=void 0,(t=e.CRDTMessageType||(e.CRDTMessageType={}))[t.CRDTMT_PutComponentData=1]="CRDTMT_PutComponentData",t[t.CRDTMT_DeleteEntity=2]="CRDTMT_DeleteEntity",(n=e.ProcessMessageResultType||(e.ProcessMessageResultType={}))[n.StateUpdatedTimestamp=1]="StateUpdatedTimestamp",n[n.StateOutdatedTimestamp=2]="StateOutdatedTimestamp",n[n.NoChanges=3]="NoChanges",n[n.StateOutdatedData=4]="StateOutdatedData",n[n.StateUpdatedData=5]="StateUpdatedData",n[n.EntityWasDeleted=6]="EntityWasDeleted",n[n.EntityDeleted=7]="EntityDeleted"}(types)),types}function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(e){var t=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=commonjsGlobal&&commonjsGlobal.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.crdtProtocol=e.stateIterator=e.dataCompare=void 0;const r=requireGset(),o=requireTypes(),i=globalThis.Buffer;function a(e,t){if(e===t)return 0;if(null===e&&null!==t)return-1;if(null!==e&&null===t)return 1;if(e instanceof Uint8Array&&t instanceof Uint8Array){let n;const r=e.byteLength>t.byteLength?t.byteLength:e.byteLength;for(let o=0;o<r;o++)if(n=e[o]-t[o],0!==n)return n>0?1:-1;return n=e.byteLength-t.byteLength,n>0?1:n<0?-1:0}return i&&e instanceof i&&t instanceof i?e.compare(t):"string"==typeof e?e.localeCompare(t):e>t?1:-1}n(requireTypes(),e),e.dataCompare=a,e.stateIterator=function*(e){for(const[t,n]of e.components.entries())for(const[e,r]of n.entries())yield[t,e,r]},e.crdtProtocol=function(e){const t={components:new Map,deletedEntities:(0,r.createGSet)()};function n(e,n,r,o){const i=t.components.get(e),a=Math.max(o,i?.get(n)?.timestamp||0);if(i)i.set(n,{timestamp:a,data:r});else{const o=new Map;o.set(n,{timestamp:a,data:r}),t.components.set(e,o)}return{timestamp:a,data:r}}function i(r){const[i,s]=e.fromEntityId(r.entityId);if(t.deletedEntities.has(i,s))return o.ProcessMessageResultType.EntityWasDeleted;const{componentId:u,entityId:l,data:c,timestamp:f}=r,d=t.components.get(u)?.get(l);if(!d||d.timestamp<f)return n(u,l,c,f),o.ProcessMessageResultType.StateUpdatedTimestamp;if(d.timestamp>f)return o.ProcessMessageResultType.StateOutdatedData;const p=a(d.data,c);return 0===p?o.ProcessMessageResultType.NoChanges:p>0?o.ProcessMessageResultType.StateOutdatedData:(n(u,l,c,f),o.ProcessMessageResultType.StateUpdatedData)}function s(n){const{entityId:r}=n,[i,a]=e.fromEntityId(n.entityId);t.deletedEntities.addTo(i,a);for(const[,e]of t.components)e.delete(r);return o.ProcessMessageResultType.EntityDeleted}return{getElementSetState:function(e,n){return t.components.get(e)?.get(n)||null},createComponentDataEvent:function(e,n,r){const a=(t.components.get(e)?.get(n)?.timestamp||0)+1,s={type:o.CRDTMessageType.CRDTMT_PutComponentData,componentId:e,entityId:n,data:r,timestamp:a};return i(s)===o.ProcessMessageResultType.StateUpdatedTimestamp?s:null},createDeleteEntityEvent:function(e){const t={type:o.CRDTMessageType.CRDTMT_DeleteEntity,entityId:e};return s(t),t},processMessage:function(e){return e.type===o.CRDTMessageType.CRDTMT_PutComponentData?i(e):e.type===o.CRDTMessageType.CRDTMT_DeleteEntity?s(e):o.ProcessMessageResultType.NoChanges},getState:function(){return t}}}}(dist)),dist}var distExports=requireDist(),typesExports=requireTypes(),gsetExports=requireGset();const MAX_U16=65535,MASK_UPPER_16_ON_32=4294901760,AMOUNT_VERSION_AVAILABLE=MAX_U16+1,RESERVED_STATIC_ENTITIES=512,MAX_ENTITY_NUMBER=MAX_U16;var EntityUtils,EntityState;function EntityContainer(){let e=RESERVED_STATIC_ENTITIES;const t=new Set;let n=[];const r=gsetExports.createGSet();function o(){if(e>MAX_ENTITY_NUMBER-1)throw new Error(`It fails trying to generate an entity out of range ${MAX_ENTITY_NUMBER}.`);const n=e++,o=r.getMap().has(n)?r.getMap().get(n)+1:0,i=exports.EntityUtils.toEntityId(n,o);return t.add(i),i}function i(e){const[n,o]=exports.EntityUtils.fromEntityId(e);r.addTo(n,o);for(let e=0;e<=o;e++)t.delete(exports.EntityUtils.toEntityId(n,e));return!0}return{generateEntity:function(){if(t.size+RESERVED_STATIC_ENTITIES>=e)return o();for(const[e,o]of r.getMap())if(o<MAX_U16){const r=exports.EntityUtils.toEntityId(e,o+1);if(!t.has(r)&&!n.includes(r))return t.add(r),r}return o()},removeEntity:function(e){return!(e<RESERVED_STATIC_ENTITIES)&&(t.has(e)?(t.delete(e),n.push(e)):i(e),!0)},getExistingEntities:()=>new Set(t),getEntityState:function(e){const[n,o]=exports.EntityUtils.fromEntityId(e);if(n<RESERVED_STATIC_ENTITIES)return exports.EntityState.Reserved;if(t.has(e))return exports.EntityState.UsedEntity;const i=r.getMap().get(n);return void 0!==i&&i>=o?exports.EntityState.Removed:exports.EntityState.Unknown},releaseRemovedEntities:function(){const e=n;n=[];for(const t of e){const[e,n]=exports.EntityUtils.fromEntityId(t);r.addTo(e,n)}return e},updateRemovedEntity:i,updateUsedEntity:function(e){const[n,o]=exports.EntityUtils.fromEntityId(e),i=r.getMap().get(n);if(void 0!==i&&i>=o)return!1;if(o>0){for(let e=0;e<=o-1;e++)t.delete(exports.EntityUtils.toEntityId(n,e));r.addTo(n,o-1)}return t.add(e),!0}}}exports.EntityUtils=void 0,EntityUtils=exports.EntityUtils||(exports.EntityUtils={}),EntityUtils.fromEntityId=function(e){return[(e&MAX_U16)>>>0,((e&MASK_UPPER_16_ON_32)>>16&MAX_U16)>>>0]},EntityUtils.toEntityId=function(e,t){return(e&MAX_U16|(t&MAX_U16)<<16)>>>0},exports.EntityState=void 0,EntityState=exports.EntityState||(exports.EntityState={}),EntityState[EntityState.Unknown=0]="Unknown",EntityState[EntityState.UsedEntity=1]="UsedEntity",EntityState[EntityState.Removed=2]="Removed",EntityState[EntityState.Reserved=3]="Reserved";var __classPrivateFieldGet=globalThis&&globalThis.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},_ReadWriteByteBuffer_instances,_ReadWriteByteBuffer_woAdd,_ReadWriteByteBuffer_roAdd;function getNextSize(e,t){const n=Math.max(e,t)+1024;return 1024*Math.ceil(n/1024)}const defaultInitialCapacity=10240;class ReadWriteByteBuffer{constructor(e,t,n){_ReadWriteByteBuffer_instances.add(this),this._buffer=e||new Uint8Array(defaultInitialCapacity),this.view=new DataView(this._buffer.buffer,this._buffer.byteOffset),this.woffset=n??(e?this._buffer.length:null)??0,this.roffset=t??0}buffer(){return this._buffer}bufferLength(){return this._buffer.length}resetBuffer(){this.roffset=0,this.woffset=0}currentReadOffset(){return this.roffset}currentWriteOffset(){return this.woffset}incrementReadOffset(e){return __classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,e)}remainingBytes(){return this.woffset-this.roffset}readFloat32(){return this.view.getFloat32(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,4))}readFloat64(){return this.view.getFloat64(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,8))}readInt8(){return this.view.getInt8(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,1))}readInt16(){return this.view.getInt16(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,2))}readInt32(){return this.view.getInt32(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,4))}readInt64(){return this.view.getBigInt64(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,8))}readUint8(){return this.view.getUint8(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,1))}readUint16(){return this.view.getUint16(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,2))}readUint32(){return this.view.getUint32(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,4))}readUint64(){return this.view.getBigUint64(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,8))}readBuffer(){const e=this.view.getUint32(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,4));return this._buffer.subarray(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,e),__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,0))}readUtf8String(){const e=this.view.getUint32(__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,4));return utf8Exports.read(this._buffer,__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,e),__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_roAdd).call(this,0))}incrementWriteOffset(e){return __classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,e)}toBinary(){return this._buffer.subarray(0,this.woffset)}toCopiedBinary(){return new Uint8Array(this.toBinary())}writeBuffer(e,t=!0){t&&this.writeUint32(e.byteLength);const n=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,e.byteLength);this._buffer.set(e,n)}writeUtf8String(e,t=!0){const n=utf8Exports.length(e);t&&this.writeUint32(n);const r=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,n);utf8Exports.write(e,this._buffer,r)}writeFloat32(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,4);this.view.setFloat32(t,e)}writeFloat64(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,8);this.view.setFloat64(t,e)}writeInt8(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,1);this.view.setInt8(t,e)}writeInt16(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,2);this.view.setInt16(t,e)}writeInt32(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,4);this.view.setInt32(t,e)}writeInt64(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,8);this.view.setBigInt64(t,e)}writeUint8(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,1);this.view.setUint8(t,e)}writeUint16(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,2);this.view.setUint16(t,e)}writeUint32(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,4);this.view.setUint32(t,e)}writeUint64(e){const t=__classPrivateFieldGet(this,_ReadWriteByteBuffer_instances,"m",_ReadWriteByteBuffer_woAdd).call(this,8);this.view.setBigUint64(t,e)}getFloat32(e){return this.view.getFloat32(e)}getFloat64(e){return this.view.getFloat64(e)}getInt8(e){return this.view.getInt8(e)}getInt16(e){return this.view.getInt16(e)}getInt32(e){return this.view.getInt32(e)}getInt64(e){return this.view.getBigInt64(e)}getUint8(e){return this.view.getUint8(e)}getUint16(e){return this.view.getUint16(e)}getUint32(e){return this.view.getUint32(e)>>>0}getUint64(e){return this.view.getBigUint64(e)}setFloat32(e,t){this.view.setFloat32(e,t)}setFloat64(e,t){this.view.setFloat64(e,t)}setInt8(e,t){this.view.setInt8(e,t)}setInt16(e,t){this.view.setInt16(e,t)}setInt32(e,t){this.view.setInt32(e,t)}setInt64(e,t){this.view.setBigInt64(e,t)}setUint8(e,t){this.view.setUint8(e,t)}setUint16(e,t){this.view.setUint16(e,t)}setUint32(e,t){this.view.setUint32(e,t)}setUint64(e,t){this.view.setBigUint64(e,t)}}var CrdtMessageType;_ReadWriteByteBuffer_instances=new WeakSet,_ReadWriteByteBuffer_woAdd=function(e){if(this.woffset+e>this._buffer.byteLength){const t=getNextSize(this._buffer.byteLength,this.woffset+e),n=new Uint8Array(t);n.set(this._buffer);const r=this._buffer.byteOffset;this._buffer=n,this.view=new DataView(this._buffer.buffer,r)}return this.woffset+=e,this.woffset-e},_ReadWriteByteBuffer_roAdd=function(e){if(this.roffset+e>this.woffset)throw new Error("Outside of the bounds of writen data.");return this.roffset+=e,this.roffset-e},exports.CrdtMessageType=void 0,CrdtMessageType=exports.CrdtMessageType||(exports.CrdtMessageType={}),CrdtMessageType[CrdtMessageType.RESERVED=0]="RESERVED",CrdtMessageType[CrdtMessageType.PUT_COMPONENT=1]="PUT_COMPONENT",CrdtMessageType[CrdtMessageType.DELETE_COMPONENT=2]="DELETE_COMPONENT",CrdtMessageType[CrdtMessageType.DELETE_ENTITY=3]="DELETE_ENTITY",CrdtMessageType[CrdtMessageType.MAX_MESSAGE_TYPE=4]="MAX_MESSAGE_TYPE";const CRDT_MESSAGE_HEADER_LENGTH=8;var DeleteComponent,PutComponentOperation,DeleteEntity;function crdtSceneSystem(e,t){const n=[],r=distExports.crdtProtocol({toEntityId:exports.EntityUtils.toEntityId,fromEntityId:exports.EntityUtils.fromEntityId}),o=[],i=[],a=[];function s(e){return e.splice(0,e.length)}return{getCrdt:function(){return r.getState()},sendMessages:async function(e,t){const o=s(i),u=s(a),l=new ReadWriteByteBuffer;for(const[t,i]of e)for(const e of i){const{timestamp:i}=r.getState().components.get(t.componentId).get(e),a=l.currentWriteOffset(),s={type:t.has(e)?exports.CrdtMessageType.PUT_COMPONENT:exports.CrdtMessageType.DELETE_COMPONENT,entityId:e,componentId:t.componentId,timestamp:i};n.some((e=>e.filter(s)))&&(s.type===exports.CrdtMessageType.PUT_COMPONENT?exports.PutComponentOperation.write(e,i,t,l):exports.DeleteComponent.write(e,t.componentId,i,l),o.push({...s,messageBuffer:l.buffer().subarray(a,l.currentWriteOffset())}))}for(const e of t){r.createDeleteEntityEvent(e);const t=l.currentWriteOffset();exports.DeleteEntity.write(e,l),o.push({type:exports.CrdtMessageType.DELETE_ENTITY,entityId:e,messageBuffer:l.buffer().subarray(t,l.currentWriteOffset())})}const c=new ReadWriteByteBuffer;for(const e in n){const t=Number(e),r=n[t];c.resetBuffer();for(const e of u)e.transportId!==t||o.find((t=>t.entityId===e.entityId&&t.componentId&&t.componentId===e.componentId))||c.writeBuffer(e.messageBuffer,!1);for(const e of o)e.transportId!==t&&r.filter(e)&&c.writeBuffer(e.messageBuffer,!1);const i=c.currentWriteOffset()?c.toBinary():new Uint8Array([]);await r.send(i)}},receiveMessages:async function(){const n=s(o),u=new ReadWriteByteBuffer,l=[];for(const o of n)if(o.type===exports.CrdtMessageType.DELETE_ENTITY)r.processMessage({type:typesExports.CRDTMessageType.CRDTMT_DeleteEntity,entityId:o.entityId}),l.push(o.entityId);else{const n={type:typesExports.CRDTMessageType.CRDTMT_PutComponentData,entityId:o.entityId,componentId:o.componentId,data:o.type===exports.CrdtMessageType.PUT_COMPONENT?o.data:null,timestamp:o.timestamp},s=e.entityContainer.getEntityState(o.entityId);if(s===exports.EntityState.Removed)continue;s===exports.EntityState.Unknown&&e.entityContainer.updateUsedEntity(o.entityId);const l=e.getComponentOrNull(o.componentId);l?.isDirty(o.entityId)&&r.createComponentDataEvent(l.componentId,o.entityId,l.toBinaryOrNull(o.entityId)?.toBinary()||null);const c=r.processMessage(n);if(!l)continue;switch(c){case typesExports.ProcessMessageResultType.StateUpdatedTimestamp:case typesExports.ProcessMessageResultType.StateUpdatedData:if(i.push(o),o.type===exports.CrdtMessageType.DELETE_COMPONENT)l.deleteFrom(o.entityId,!1);else{const e=new ReadWriteByteBuffer(o.data);l.upsertFromBinary(o.entityId,e,!1)}t&&t(o.entityId,o.type,l);break;case typesExports.ProcessMessageResultType.StateOutdatedData:case typesExports.ProcessMessageResultType.StateOutdatedTimestamp:const e=r.getState().components.get(o.componentId)?.get(o.entityId);if(e){const t=u.currentWriteOffset(),n=e.timestamp;l.has(o.entityId)?exports.PutComponentOperation.write(o.entityId,n,l,u):exports.DeleteComponent.write(o.entityId,l.componentId,n,u),a.push({...o,messageBuffer:u.buffer().subarray(t,u.currentWriteOffset())})}case typesExports.ProcessMessageResultType.NoChanges:case typesExports.ProcessMessageResultType.EntityDeleted:case typesExports.ProcessMessageResultType.EntityWasDeleted:}}for(const n of l){for(let e=a.length-1;e>=0;e--)a[e].entityId===n&&a.splice(e,1);for(const t of e.componentsIter())t.deleteFrom(n,!1);e.entityContainer.updateRemovedEntity(n),t&&t(n,exports.CrdtMessageType.DELETE_ENTITY)}},addTransport:function(e){const t=n.push(e)-1;var r;e.onmessage=(r=t,function(e){const t=new ReadWriteByteBuffer(e);let n;for(;n=exports.CrdtMessageProtocol.getHeader(t);){const e=t.currentReadOffset();if(n.type===exports.CrdtMessageType.DELETE_COMPONENT){const i=exports.DeleteComponent.read(t);o.push({...n,...i,transportId:r,messageBuffer:t.buffer().subarray(e,t.currentReadOffset())})}else if(n.type===exports.CrdtMessageType.PUT_COMPONENT){const i=exports.PutComponentOperation.read(t);o.push({...n,...i,transportId:r,messageBuffer:t.buffer().subarray(e,t.currentReadOffset())})}else if(n.type===exports.CrdtMessageType.DELETE_ENTITY){const i=exports.DeleteEntity.read(t);o.push({...n,...i,transportId:r,messageBuffer:t.buffer().subarray(e,t.currentReadOffset())})}else t.incrementReadOffset(n.length)}})},updateState:function(){const n=new Map;for(const o of e.componentsIter()){let e=null;for(const i of o.dirtyIterator()){e||(e=[],n.set(o,e));const a=o.toBinaryOrNull(i)?.toBinary()??null;null===r.createComponentDataEvent(o.componentId,i,a)?o.deleteFrom(i,!1):(e.push(i),t&&t(i,null===a?exports.CrdtMessageType.DELETE_COMPONENT:exports.CrdtMessageType.PUT_COMPONENT,o))}}return n}}}function deepReadonly(e){return Object.freeze({...e})}function createComponentDefinitionFromSchema(e,t,n){const r=new Map,o=new Set;return{get componentId(){return t},get componentName(){return e},default:()=>n.create(),isDirty:e=>o.has(e),has:e=>r.has(e),deleteFrom(e,t=!0){const n=r.get(e);return r.delete(e),t?o.add(e):o.delete(e),n||null},getOrNull(e){const t=r.get(e);return t?deepReadonly(t):null},get(t){const n=r.get(t);if(!n)throw new Error(`[getFrom] Component ${e} for entity #${t} not found`);return deepReadonly(n)},create(t,i){if(r.get(t))throw new Error(`[create] Component ${e} for ${t} already exists`);const a=void 0===i?n.create():n.extend?n.extend(i):i;return r.set(t,a),o.add(t),a},createOrReplace(e,t){const i=void 0===t?n.create():n.extend?n.extend(t):t;return r.set(e,i),o.add(e),i},getMutableOrNull(e){const t=r.get(e);return t?(o.add(e),t):null},getMutable(t){const n=this.getMutableOrNull(t);if(null===n)throw new Error(`[mutable] Component ${e} for ${t} not found`);return n},*iterator(){for(const[e,t]of r)yield[e,t]},*dirtyIterator(){for(const e of o)yield e},toBinary(t){const o=r.get(t);if(!o)throw new Error(`[toBinary] Component ${e} for ${t} not found`);const i=new ReadWriteByteBuffer;return n.serialize(o,i),i},toBinaryOrNull(e){const t=r.get(e);if(!t)return null;const o=new ReadWriteByteBuffer;return n.serialize(t,o),o},writeToByteBuffer(t,o){const i=r.get(t);if(!i)throw new Error(`[writeToByteBuffer] Component ${e} for entity #${t} not found`);n.serialize(i,o)},updateFromBinary(t,n,o=!0){if(!r.get(t))throw new Error(`[updateFromBinary] Component ${e} for ${t} not found`);return this.upsertFromBinary(t,n,o)},upsertFromBinary(e,t,i=!0){const a=n.deserialize(t);return r.set(e,a),i?o.add(e):o.delete(e),a},deserialize:e=>n.deserialize(e),clearDirty(){o.clear()}}}exports.DeleteComponent=void 0,DeleteComponent=exports.DeleteComponent||(exports.DeleteComponent={}),DeleteComponent.MESSAGE_HEADER_LENGTH=20,DeleteComponent.write=function(e,t,n,r){const o=CRDT_MESSAGE_HEADER_LENGTH+DeleteComponent.MESSAGE_HEADER_LENGTH,i=r.incrementWriteOffset(o);r.setUint32(i,o),r.setUint32(i+4,exports.CrdtMessageType.DELETE_COMPONENT),r.setUint32(i+8,e),r.setUint32(i+12,t),r.setUint64(i+16,BigInt(n)),r.setUint32(i+24,0)},DeleteComponent.read=function(e){const t=exports.CrdtMessageProtocol.readHeader(e);if(!t)return null;if(t.type!==exports.CrdtMessageType.DELETE_COMPONENT)throw new Error("DeleteComponentOperation tried to read another message type.");const n={...t,entityId:e.readUint32(),componentId:e.readUint32(),timestamp:Number(e.readUint64())};return e.incrementReadOffset(4),n},exports.PutComponentOperation=void 0,PutComponentOperation=exports.PutComponentOperation||(exports.PutComponentOperation={}),PutComponentOperation.MESSAGE_HEADER_LENGTH=20,PutComponentOperation.write=function(e,t,n,r){const o=r.incrementWriteOffset(CRDT_MESSAGE_HEADER_LENGTH+PutComponentOperation.MESSAGE_HEADER_LENGTH);n.writeToByteBuffer(e,r);const i=r.currentWriteOffset()-o;r.setUint32(o,i),r.setUint32(o+4,exports.CrdtMessageType.PUT_COMPONENT),r.setUint32(o+8,e),r.setUint32(o+12,n.componentId),r.setUint64(o+16,BigInt(t));const a=i-PutComponentOperation.MESSAGE_HEADER_LENGTH-CRDT_MESSAGE_HEADER_LENGTH;r.setUint32(o+24,a)},PutComponentOperation.read=function(e){const t=exports.CrdtMessageProtocol.readHeader(e);if(!t)return null;if(t.type!==exports.CrdtMessageType.PUT_COMPONENT)throw new Error("PutComponentOperation tried to read another message type.");return{...t,entityId:e.readUint32(),componentId:e.readUint32(),timestamp:Number(e.readUint64()),data:e.readBuffer()}},exports.DeleteEntity=void 0,DeleteEntity=exports.DeleteEntity||(exports.DeleteEntity={}),DeleteEntity.MESSAGE_HEADER_LENGTH=4,DeleteEntity.write=function(e,t){t.writeUint32(CRDT_MESSAGE_HEADER_LENGTH+4),t.writeUint32(exports.CrdtMessageType.DELETE_ENTITY),t.writeUint32(e)},DeleteEntity.read=function(e){const t=exports.CrdtMessageProtocol.readHeader(e);if(!t)return null;if(t.type!==exports.CrdtMessageType.DELETE_ENTITY)throw new Error("DeleteComponentOperation tried to read another message type.");return{...t,entityId:e.readUint32()}},exports.CrdtMessageProtocol=void 0,function(e){function t(e){const t=e.remainingBytes();if(t<CRDT_MESSAGE_HEADER_LENGTH)return!1;return!(t<e.getUint32(e.currentReadOffset()))}function n(e){if(!t(e))return null;const n=e.currentReadOffset();return{length:e.getUint32(n),type:e.getUint32(n+4)}}e.validate=t,e.readHeader=function(e){return t(e)?{length:e.readUint32(),type:e.readUint32()}:null},e.getHeader=n,e.consumeMessage=function(e){const t=n(e);return!!t&&(e.incrementReadOffset(t.length),!0)}}(exports.CrdtMessageProtocol||(exports.CrdtMessageProtocol={}));const SYSTEMS_REGULAR_PRIORITY=1e5;function SystemContainer(){const e=[];function t(){e.sort(((e,t)=>t.priority-e.priority))}return{add:function(n,r,o){const i=o??n.name;if(e.find((e=>e.fn===n)))throw new Error(`System ${JSON.stringify(i)} already added to the engine`);e.push({fn:n,priority:r,name:i}),t()},remove:function(n){let r=-1;return r="string"==typeof n?e.findIndex((e=>e.name===n)):e.findIndex((e=>e.fn===n)),-1!==r&&(e.splice(r,1),t(),!0)},getSystems:()=>e}}const InputCommands=[0,1,2,4,5,6,7,8,9,10,11,12,13],InternalInputStateSchema={timestampLastUpdate:exports.Schemas.Number,currentTimestamp:exports.Schemas.Number,buttonState:exports.Schemas.Array(exports.Schemas.Map({value:exports.Schemas.Boolean,ts:exports.Schemas.Number}))},TimestampUpdateSystemPriority=1<<20,ButtonStateUpdateSystemPriority=0;function createInputSystem(e){const t=PointerEventsResult$1(e),n=e.defineComponent("@dcl/sdk/InternalInputStateSchema",InternalInputStateSchema);function r(e,t){if(3!==e)return o(e,t);for(const e of InputCommands){const n=o(e,t);if(n)return n}return null}function o(r,o){const i=t.getOrNull(e.RootEntity);if(!i)return null;const a=i.commands,s=findLastAction(a,1,r,o);if(!s)return null;const u=findLastAction(a,0,r,o);if(!u)return null;const l=n.get(e.RootEntity);return s.timestamp<u.timestamp&&u.timestamp>l.timestampLastUpdate?(n.getMutable(e.RootEntity).currentTimestamp=Math.max(u.timestamp,l.currentTimestamp),{up:u,down:s}):null}function i(e,t,n){if(3!==e)return a(e,t,n);for(const e of InputCommands){const r=a(e,t,n);if(r)return r}return null}function a(r,o,i){const a=t.getOrNull(e.RootEntity);if(!a)return null;const s=findLastAction(a.commands,o,r,i);if(!s)return null;const u=n.get(e.RootEntity);return s.timestamp>u.timestampLastUpdate?(n.getMutable(e.RootEntity).currentTimestamp=Math.max(s.timestamp,u.currentTimestamp),s):null}return n.create(e.RootEntity,{buttonState:Array.from({length:InputCommands.length},(()=>({ts:0,value:!1})))}),e.addSystem((function(){const r=t.getOrNull(e.RootEntity);if(!r)return;const o=n.getMutable(e.RootEntity);for(const e of r.commands)e.timestamp>o.buttonState[e.button].ts&&(1===e.state?o.buttonState[e.button].value=!0:0===e.state&&(o.buttonState[e.button].value=!1))}),ButtonStateUpdateSystemPriority,"@dcl/ecs#buttonStateUpdateSystem"),e.addSystem((function(){const t=n.get(e.RootEntity);t.currentTimestamp>t.timestampLastUpdate&&(n.getMutable(e.RootEntity).timestampLastUpdate=t.currentTimestamp)}),TimestampUpdateSystemPriority,"@dcl/ecs#timestampUpdateSystem"),{isPressed:function(t){return n.get(e.RootEntity).buttonState[t].value},getClick:r,getInputCommand:i,isClicked:function(e,t){return null!==r(e,t)},isTriggered:function(e,t,n){return null!==i(e,t,n)}}}function findLastAction(e,t,n,r){let o;for(const i of e)i.button===n&&i.state===t&&(!r||i.hit&&r===i.hit.entityId)&&(!o||i.timestamp>=o.timestamp)&&(o=i);return o}function preEngine(){const e=EntityContainer(),t=new Map,n=SystemContainer();let r=!1;function o(n){for(const[,e]of t)e.has(n)&&e.deleteFrom(n);return e.removeEntity(n)}function i(e,n){if(r)throw new Error("Engine is already sealed. No components can be added at this stage");const o=componentNumberFromName(e),i=t.get(o);if(i)return i;const a=createComponentDefinitionFromSchema(e,o,n);return t.set(o,a),a}function*a(...e){for(const[t,...n]of function*(...e){const[t,...n]=e;for(const[r]of t.iterator()){let t=!0;for(const e of n)if(!e.has(r)){t=!1;break}t&&(yield[r,...e])}}(...e))yield[t,...n.map((e=>e.get(t)))]}const s=Transform$1({defineComponentFromSchema:i});function*u(e,t){if(!t.find((t=>e===t))){t.push(e);for(const[n,r]of a(s))r.parent===e&&(yield*u(n,t));yield e}}return{addEntity:function(){return e.generateEntity()},removeEntity:o,addSystem:function(e,t=SYSTEMS_REGULAR_PRIORITY,r){n.add(e,t,r)},getSystems:function(){return n.getSystems()},removeSystem:function(e){return n.remove(e)},defineComponent:function(e,n,o){if(r)throw new Error("Engine is already sealed. No components can be added at this stage");const i=componentNumberFromName(e),a=t.get(i);if(a)return a;const s=createComponentDefinitionFromSchema(e,i,exports.Schemas.Map(n,o)),u={...s,create:(e,t)=>s.create(e,t),createOrReplace:(e,t)=>s.createOrReplace(e,t)};return t.set(i,u),u},defineComponentFromSchema:i,getEntitiesWith:a,getComponent:function(e){const n=t.get(e);if(!n)throw new Error(`Component ${e} not found. You need to declare the components at the beginnig of the engine declaration`);return n},getComponentOrNull:function(e){return t.get(e)??null},removeComponentDefinition:function(e){t.delete(e)},removeEntityWithChildren:function(e){for(const t of u(e,[]))o(t)},registerComponentDefinition:function(e,n){if(r)throw new Error("Engine is already sealed. No components can be added at this stage");const o=componentNumberFromName(e);if(t.get(o))throw new Error(`Component number ${o} was already registered.`);if(n.componentName!==e)throw new Error(`Component name doesn't match componentDefinition.componentName ${e} != ${n.componentName}`);if(n.componentId!==o)throw new Error(`Component number doesn't match componentDefinition.componentId ${o} != ${n.componentId}`);return t.set(o,n),n},entityContainer:e,componentsIter:function(){return t.values()},seal:function(){r||(r=!0)}}}function Engine(e){const t=preEngine(),n=crdtSceneSystem(t,e?.onChangeFunction||null);return{addEntity:t.addEntity,removeEntity:t.removeEntity,removeEntityWithChildren:t.removeEntityWithChildren,addSystem:t.addSystem,removeSystem:t.removeSystem,defineComponent:t.defineComponent,defineComponentFromSchema:t.defineComponentFromSchema,registerComponentDefinition:t.registerComponentDefinition,getEntitiesWith:t.getEntitiesWith,getComponent:t.getComponent,getComponentOrNull:t.getComponentOrNull,removeComponentDefinition:t.removeComponentDefinition,componentsIter:t.componentsIter,seal:t.seal,update:async function(e){await n.receiveMessages();for(const n of t.getSystems()){checkNotThenable(n.fn(e),`A system (${n.name||"anonymous"}) returned a thenable. Systems cannot be async functions. Documentation: https://dcl.gg/sdk/sync-systems`)}const r=n.updateState(),o=t.entityContainer.releaseRemovedEntities();await n.sendMessages(r,o);for(const e of t.componentsIter())e.clearDirty()},RootEntity:0,PlayerEntity:1,CameraEntity:2,getEntityState:t.entityContainer.getEntityState,addTransport:n.addTransport,getCrdtState:n.getCrdt,entityContainer:t.entityContainer}}function getAndClean(e){const t=Array.from(e);return e.length=0,t}function createTaskSystem(e){const t=[];async function n(e){try{return await e()}catch(e){console.error(e)}}return e.addSystem((function(){for(const e of getAndClean(t))n(e).catch(console.error)})),{executeTask(e){t.push(e)}}}function createPointerEventSystem(e,t){const n=PointerEvents$1(e);let r;!function(e){e[e.Click=0]="Click",e[e.Down=1]="Down",e[e.Up=2]="Up"}(r||(r={}));const o=(e={})=>({button:3,...e}),i=new Map;function a(e){return i.get(e)||i.set(e,new Map).get(e)}function s(e,t,r){if(r.hoverText||r.showFeedback){(n.getMutableOrNull(e)||n.create(e)).pointerEvents.push({eventType:t,eventInfo:{button:r.button,showFeedback:r.showFeedback,hoverText:r.hoverText,maxDistance:r.maxDistance}})}}function u(e){return e===r.Up?0:1}function l(e,t){const r=a(e),o=r.get(t);o?.opts.hoverText&&function(e,t,r){const o=n.getMutableOrNull(e);o&&(o.pointerEvents=o.pointerEvents.filter((e=>!(e.eventInfo?.button===r&&e.eventType===t))))}(e,u(t),o.opts.button),r.delete(t)}return e.addSystem((function(){for(const[n,o]of i)if(e.getEntityState(n)!==exports.EntityState.Removed)for(const[e,{cb:i,opts:a}]of o){if(e===r.Click){const e=t.getClick(a.button,n);e&&checkNotThenable(i(e.up),"Click event returned a thenable. Only synchronous functions are allowed")}if(e===r.Down||e===r.Up){const r=t.getInputCommand(a.button,u(e),n);r&&checkNotThenable(i(r),"Event handler returned a thenable. Only synchronous functions are allowed")}}else i.delete(n)})),{removeOnClick(e){l(e,r.Click)},removeOnPointerDown(e){l(e,r.Down)},removeOnPointerUp(e){l(e,r.Up)},onClick(e,t,n){const i=o(n);l(e,r.Click),a(e).set(r.Click,{cb:t,opts:i}),s(e,1,i)},onPointerDown(e,t,n){const i=o(n);l(e,r.Down),a(e).set(r.Down,{cb:t,opts:i}),s(e,1,i)},onPointerUp(e,t,n){const i=o(n);l(e,r.Up),a(e).set(r.Up,{cb:t,opts:i}),s(e,0,i)}}}const engine=Engine(),inputSystem=createInputSystem(engine),pointerEventsSystem=createPointerEventSystem(engine,inputSystem),executeTask=createTaskSystem(engine).executeTask;function cyclicParentingChecker(e){const t=Transform$1(e);return()=>{for(const e of t.dirtyIterator()){let n=t.getOrNull(e);for(;n&&n.parent;){if(n.parent===e){console.error(`There is a cyclic parent with entity ${e}`);break}n=t.getOrNull(n.parent)}}}}const AudioSource=AudioSource$1(engine),AudioStream=AudioStream$1(engine),AvatarAttach=AvatarAttach$1(engine),AvatarModifierArea=AvatarModifierArea$1(engine),AvatarShape=AvatarShape$1(engine),Billboard=Billboard$1(engine),CameraMode=CameraMode$1(engine),CameraModeArea=CameraModeArea$1(engine),GltfContainer=GltfContainer$1(engine),NftShape=NftShape$1(engine),PointerEvents=PointerEvents$1(engine),PointerEventsResult=PointerEventsResult$1(engine),PointerLock=PointerLock$1(engine),Raycast=Raycast$1(engine),RaycastResult=RaycastResult$1(engine),TextShape=TextShape$1(engine),UiBackground=UiBackground$1(engine),UiDropdown=UiDropdown$1(engine),UiDropdownResult=UiDropdownResult$1(engine),UiInput=UiInput$1(engine),UiInputResult=UiInputResult$1(engine),UiText=UiText$1(engine),UiTransform=UiTransform$1(engine),VisibilityComponent=VisibilityComponent$1(engine);var CameraType,InputAction,TextAlignMode,Font;exports.CameraType=void 0,CameraType=exports.CameraType||(exports.CameraType={}),CameraType[CameraType.CT_FIRST_PERSON=0]="CT_FIRST_PERSON",CameraType[CameraType.CT_THIRD_PERSON=1]="CT_THIRD_PERSON",exports.InputAction=void 0,InputAction=exports.InputAction||(exports.InputAction={}),InputAction[InputAction.IA_POINTER=0]="IA_POINTER",InputAction[InputAction.IA_PRIMARY=1]="IA_PRIMARY",InputAction[InputAction.IA_SECONDARY=2]="IA_SECONDARY",InputAction[InputAction.IA_ANY=3]="IA_ANY",InputAction[InputAction.IA_FORWARD=4]="IA_FORWARD",InputAction[InputAction.IA_BACKWARD=5]="IA_BACKWARD",InputAction[InputAction.IA_RIGHT=6]="IA_RIGHT",InputAction[InputAction.IA_LEFT=7]="IA_LEFT",InputAction[InputAction.IA_JUMP=8]="IA_JUMP",InputAction[InputAction.IA_WALK=9]="IA_WALK",InputAction[InputAction.IA_ACTION_3=10]="IA_ACTION_3",InputAction[InputAction.IA_ACTION_4=11]="IA_ACTION_4",InputAction[InputAction.IA_ACTION_5=12]="IA_ACTION_5",InputAction[InputAction.IA_ACTION_6=13]="IA_ACTION_6",exports.TextAlignMode=void 0,TextAlignMode=exports.TextAlignMode||(exports.TextAlignMode={}),TextAlignMode[TextAlignMode.TAM_TOP_LEFT=0]="TAM_TOP_LEFT",TextAlignMode[TextAlignMode.TAM_TOP_CENTER=1]="TAM_TOP_CENTER",TextAlignMode[TextAlignMode.TAM_TOP_RIGHT=2]="TAM_TOP_RIGHT",TextAlignMode[TextAlignMode.TAM_MIDDLE_LEFT=3]="TAM_MIDDLE_LEFT",TextAlignMode[TextAlignMode.TAM_MIDDLE_CENTER=4]="TAM_MIDDLE_CENTER",TextAlignMode[TextAlignMode.TAM_MIDDLE_RIGHT=5]="TAM_MIDDLE_RIGHT",TextAlignMode[TextAlignMode.TAM_BOTTOM_LEFT=6]="TAM_BOTTOM_LEFT",TextAlignMode[TextAlignMode.TAM_BOTTOM_CENTER=7]="TAM_BOTTOM_CENTER",TextAlignMode[TextAlignMode.TAM_BOTTOM_RIGHT=8]="TAM_BOTTOM_RIGHT",exports.Font=void 0,Font=exports.Font||(exports.Font={}),Font[Font.F_SANS_SERIF=0]="F_SANS_SERIF",Font[Font.F_SERIF=1]="F_SERIF",Font[Font.F_MONOSPACE=2]="F_MONOSPACE";const Transform=Transform$1(engine),Animator=Animator$1(engine),Material=Material$1(engine),MeshRenderer=MeshRenderer$1(engine),MeshCollider=MeshCollider$1(engine);var reactExports$1={},react={get exports(){return reactExports$1},set exports(e){reactExports$1=e}},react_production_min={},hasRequiredReact_production_min;function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.iterator;var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||d}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||d}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var v=g.prototype=new y;v.constructor=g,p(v,m.prototype),v.isPureReactComponent=!0;var b=Array.isArray,_=Object.prototype.hasOwnProperty,x={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function w(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)_.call(n,o)&&!S.hasOwnProperty(o)&&(i[o]=n[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(o in u=t.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:x.current}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var E=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var u=!1;if(null===n)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(n.$$typeof){case e:case t:u=!0}}if(u)return a=a(u=n),n=""===i?"."+R(u,0):i,b(a)?(o="",null!=n&&(o=n.replace(E,"$&/")+"/"),P(a,r,o,"",(function(e){return e}))):null!=a&&(T(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+n)),r.push(a)),1;if(u=0,i=""===i?".":i+":",b(n))for(var l=0;l<n.length;l++){var c=i+R(s=n[l],l);u+=P(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),l=0;!(s=n.next()).done;)u+=P(s=s.value,r,o,c=i+R(s,l++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return u}function k(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function C(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},B={transition:null},A={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:B,ReactCurrentOwner:x};return react_production_min.Children={map:k,forEach:function(e,t,n){k(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},react_production_min.Component=m,react_production_min.Fragment=n,react_production_min.Profiler=o,react_production_min.PureComponent=g,react_production_min.StrictMode=r,react_production_min.Suspense=u,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,react_production_min.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=p({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=x.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var u=t.type.defaultProps;for(l in n)_.call(n,l)&&!S.hasOwnProperty(l)&&(o[l]=void 0===n[l]&&void 0!==u?u[l]:n[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},react_production_min.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},react_production_min.createElement=w,react_production_min.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(e){return{$$typeof:s,render:e}},react_production_min.isValidElement=T,react_production_min.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:C}},react_production_min.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},react_production_min.startTransition=function(e){var t=B.transition;B.transition={};try{e()}finally{B.transition=t}},react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},react_production_min.useCallback=function(e,t){return M.current.useCallback(e,t)},react_production_min.useContext=function(e){return M.current.useContext(e)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(e){return M.current.useDeferredValue(e)},react_production_min.useEffect=function(e,t){return M.current.useEffect(e,t)},react_production_min.useId=function(){return M.current.useId()},react_production_min.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},react_production_min.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},react_production_min.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},react_production_min.useMemo=function(e,t){return M.current.useMemo(e,t)},react_production_min.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},react_production_min.useRef=function(e){return M.current.useRef(e)},react_production_min.useState=function(e){return M.current.useState(e)},react_production_min.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},react_production_min.useTransition=function(){return M.current.useTransition()},react_production_min.version="18.2.0",react_production_min}var react_developmentExports={},react_development={get exports(){return react_developmentExports},set exports(e){react_developmentExports=e}},hasRequiredReact_development,hasRequiredReact;function requireReact_development(){return hasRequiredReact_development||(hasRequiredReact_development=1,function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator;function y(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},v={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},_={current:null},x={},S=null;function w(e){S=e}x.setExtraStackFrame=function(e){S=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";S&&(e+=S);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var T={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:v,ReactCurrentOwner:_};function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];P("warn",e,n)}function R(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];P("error",e,n)}function P(e,t,n){var r=T.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}T.ReactDebugCurrentFrame=x,T.ReactCurrentActQueue=b;var k={};function C(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;k[o]||(R("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),k[o]=!0)}var M={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){C(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){C(e,"replaceState")},enqueueSetState:function(e,t,n,r){C(e,"setState")}},B=Object.assign,A={};function I(e,t,n){this.props=e,this.context=t,this.refs=A,this.updater=n||M}Object.freeze(A),I.prototype.isReactComponent={},I.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},I.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var N={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},U=function(e,t){Object.defineProperty(I.prototype,e,{get:function(){E("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var z in N)N.hasOwnProperty(z)&&U(z,N[z]);function D(){}function O(e,t,n){this.props=e,this.context=t,this.refs=A,this.updater=n||M}D.prototype=I.prototype;var L=O.prototype=new D;L.constructor=O,B(L,I.prototype),L.isPureReactComponent=!0;var F=Array.isArray;function W(e){return F(e)}function G(e){return""+e}function $(e){if(function(e){try{return G(e),!1}catch(e){return!0}}(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),G(e)}function H(e){return e.displayName||"Context"}function q(e){if(null==e)return null;if("number"==typeof e.tag&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case u:return H(e)+".Consumer";case s:return H(e._context)+".Provider";case l:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case d:var t=e.displayName||null;return null!==t?t:q(e.type)||"Memo";case p:var n=e,h=n._payload,m=n._init;try{return q(m(h))}catch(e){return null}}return null}var j,Y,V,Q=Object.prototype.hasOwnProperty,J={key:!0,ref:!0,__self:!0,__source:!0};function X(e){if(Q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Z(e){if(Q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function K(e,t){var n=function(){j||(j=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function ee(e,t){var n=function(){Y||(Y=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function te(e){if("string"==typeof e.ref&&_.current&&e.__self&&_.current.stateNode!==e.__self){var t=q(_.current.type);V[t]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),V[t]=!0)}}V={};var ne=function(e,t,r,o,i,a,s){var u={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function re(e,t,n){var r,o={},i=null,a=null,s=null,u=null;if(null!=t)for(r in X(t)&&(a=t.ref,te(t)),Z(t)&&($(t.key),i=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)Q.call(t,r)&&!J.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(l>1){for(var c=Array(l),f=0;f<l;f++)c[f]=arguments[f+2];Object.freeze&&Object.freeze(c),o.children=c}if(e&&e.defaultProps){var d=e.defaultProps;for(r in d)void 0===o[r]&&(o[r]=d[r])}if(i||a){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&K(o,p),a&&ee(o,p)}return ne(e,i,a,s,u,_.current,o)}function oe(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,i=B({},e.props),a=e.key,s=e.ref,u=e._self,l=e._source,c=e._owner;if(null!=t)for(r in X(t)&&(s=t.ref,c=_.current),Z(t)&&($(t.key),a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)Q.call(t,r)&&!J.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==o?i[r]=o[r]:i[r]=t[r]);var f=arguments.length-2;if(1===f)i.children=n;else if(f>1){for(var d=Array(f),p=0;p<f;p++)d[p]=arguments[p+2];i.children=d}return ne(e.type,a,s,u,l,c,i)}function ie(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var ae=!1,se=/\/+/g;function ue(e){return e.replace(se,"$&/")}function le(e,t){return"object"==typeof e&&null!==e&&null!=e.key?($(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function ce(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u,l,c,f=!1;if(null===e)f=!0;else switch(s){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case n:case r:f=!0}}if(f){var d=e,p=a(d),h=""===i?"."+le(d,0):i;if(W(p)){var m="";null!=h&&(m=ue(h)+"/"),ce(p,t,m,"",(function(e){return e}))}else null!=p&&(ie(p)&&(!p.key||d&&d.key===p.key||$(p.key),u=p,l=o+(!p.key||d&&d.key===p.key?"":ue(""+p.key)+"/")+h,p=ne(u.type,l,u.ref,u._self,u._source,u._owner,u.props)),t.push(p));return 1}var g=0,v=""===i?".":i+":";if(W(e))for(var b=0;b<e.length;b++)g+=ce(c=e[b],t,o,v+le(c,b),a);else{var _=y(e);if("function"==typeof _){var x=e;_===x.entries&&(ae||E("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ae=!0);for(var S,w=_.call(x),T=0;!(S=w.next()).done;)g+=ce(c=S.value,t,o,v+le(c,T++),a)}else if("object"===s){var R=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===R?"object with keys {"+Object.keys(e).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}}return g}function fe(e,t,n){if(null==e)return e;var r=[],o=0;return ce(e,r,"","",(function(e){return t.call(n,e,o++)})),r}var de;function pe(e){if(-1===e._status){var t=(0,e._result)();if(t.then((function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}}),(function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}})),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&R("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||R("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function he(e){return"string"==typeof e||"function"==typeof e||(e===o||e===a||e===i||e===c||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===s||e.$$typeof===u||e.$$typeof===l||e.$$typeof===de||void 0!==e.getModuleId))}function me(){var e=g.current;return null===e&&R("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}de=Symbol.for("react.module.reference");var ye,ge,ve,be,_e,xe,Se,we=0;function Te(){}Te.__reactDisabledLog=!0;var Ee,Re=T.ReactCurrentDispatcher;function Pe(e,t,n){if(void 0===Ee)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Ee=r&&r[1]||""}return"\n"+Ee+e}var ke,Ce=!1,Me="function"==typeof WeakMap?WeakMap:Map;function Be(e,t){if(!e||Ce)return"";var n,r=ke.get(e);if(void 0!==r)return r;Ce=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Re.current,Re.current=null,function(){if(0===we){ye=console.log,ge=console.info,ve=console.warn,be=console.error,_e=console.group,xe=console.groupCollapsed,Se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}we++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),u=n.stack.split("\n"),l=s.length-1,c=u.length-1;l>=1&&c>=0&&s[l]!==u[c];)c--;for(;l>=1&&c>=0;l--,c--)if(s[l]!==u[c]){if(1!==l||1!==c)do{if(l--,--c<0||s[l]!==u[c]){var f="\n"+s[l].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&ke.set(e,f),f}}while(l>=1&&c>=0);break}}}finally{Ce=!1,Re.current=o,function(){if(0==--we){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:B({},e,{value:ye}),info:B({},e,{value:ge}),warn:B({},e,{value:ve}),error:B({},e,{value:be}),group:B({},e,{value:_e}),groupCollapsed:B({},e,{value:xe}),groupEnd:B({},e,{value:Se})})}we<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var d=e?e.displayName||e.name:"",p=d?Pe(d):"";return"function"==typeof e&&ke.set(e,p),p}function Ae(e,t,n){if(null==e)return"";if("function"==typeof e)return Be(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Pe(e);switch(e){case c:return Pe("Suspense");case f:return Pe("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case l:return Be(e.render,!1);case d:return Ae(e.type,t,n);case p:var r=e,o=r._payload,i=r._init;try{return Ae(i(o),t,n)}catch(e){}}return""}ke=new Me;var Ie,Ne={},Ue=T.ReactDebugCurrentFrame;function ze(e){if(e){var t=e._owner,n=Ae(e.type,e._source,t?t.type:null);Ue.setExtraStackFrame(n)}else Ue.setExtraStackFrame(null)}function De(e){if(e){var t=e._owner;w(Ae(e.type,e._source,t?t.type:null))}else w(null)}function Oe(){if(_.current){var e=q(_.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Le(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Ie=!1;var Fe={};function We(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=Oe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Fe[n]){Fe[n]=!0;var r="";e&&e._owner&&e._owner!==_.current&&(r=" It was passed a child from "+q(e._owner.type)+"."),De(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),De(null)}}}function Ge(e,t){if("object"==typeof e)if(W(e))for(var n=0;n<e.length;n++){var r=e[n];ie(r)&&We(r,t)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var o=y(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ie(i.value)&&We(i.value,t)}}function $e(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==d)return;t=n.propTypes}if(t){var r=q(n);!function(e,t,n,r,o){var i=Function.call.bind(Q);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var u=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(ze(o),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),ze(null)),s instanceof Error&&!(s.message in Ne)&&(Ne[s.message]=!0,ze(o),R("Failed %s type: %s",n,s.message),ze(null))}}(t,e.props,"prop",r,e)}else if(void 0!==n.PropTypes&&!Ie){Ie=!0,R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function He(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){De(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),De(null);break}}null!==e.ref&&(De(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),De(null))}function qe(e,t,r){var i=he(e);if(!i){var a="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,u=Le(t);a+=u||Oe(),null===e?s="null":W(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+(q(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,R("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=re.apply(this,arguments);if(null==l)return l;if(i)for(var c=2;c<arguments.length;c++)Ge(arguments[c],e);return e===o?He(l):$e(l),l}var je=!1;var Ye=!1,Ve=null;var Qe=0,Je=!1;function Xe(e){e!==Qe-1&&R("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Qe=e}function Ze(t,n,r){var o=b.current;if(null!==o)try{et(o),function(t){if(null===Ve)try{var n=("require"+Math.random()).slice(0,7),r=e&&e[n];Ve=r.call(e,"timers").setImmediate}catch(e){Ve=function(e){!1===Ye&&(Ye=!0,"undefined"==typeof MessageChannel&&R("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Ve(t)}((function(){0===o.length?(b.current=null,n(t)):Ze(t,n,r)}))}catch(e){r(e)}else n(t)}var Ke=!1;function et(e){if(!Ke){Ke=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{Ke=!1}}}var tt=qe,nt=function(e,t,n){for(var r=oe.apply(this,arguments),o=2;o<arguments.length;o++)Ge(arguments[o],r.type);return $e(r),r},rt=function(e){var t=qe.bind(null,e);return t.type=e,je||(je=!0,E("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return E("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},ot={map:fe,forEach:function(e,t,n){fe(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return fe(e,(function(){t++})),t},toArray:function(e){return fe(e,(function(e){return e}))||[]},only:function(e){if(!ie(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=ot,t.Component=I,t.Fragment=o,t.Profiler=a,t.PureComponent=O,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,t.cloneElement=nt,t.createContext=function(e){var t={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,o=!1,i={$$typeof:u,_context:t};return Object.defineProperties(i,{Provider:{get:function(){return r||(r=!0,R("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,R("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(E("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=i,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=tt,t.createFactory=rt,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===d?R("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?R("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&R("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||R("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:l,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=ie,t.lazy=function(e){var t,n,r={$$typeof:p,_payload:{_status:-1,_result:e},_init:pe};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){R("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){R("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){he(e)||R("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:d,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=v.transition;v.transition={};var r=v.transition;v.transition._updatedFibers=new Set;try{e()}finally{if(v.transition=n,null===n&&r._updatedFibers)r._updatedFibers.size>10&&E("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear()}},t.unstable_act=function(e){var t=Qe;Qe++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var o=b.current;null!==o&&(b.didScheduleLegacyUpdate=!1,et(o))}}catch(e){throw Xe(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var i=n,a=!1,s={then:function(e,n){a=!0,i.then((function(r){Xe(t),0===Qe?Ze(r,e,n):e(r)}),(function(e){Xe(t),n(e)}))}};return Je||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){a||(Je=!0,R("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),s}var u=n;if(Xe(t),0===Qe){var l=b.current;return null!==l&&(et(l),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Ze(u,e,t)):e(u)}}}return{then:function(e,t){e(u)}}},t.useCallback=function(e,t){return me().useCallback(e,t)},t.useContext=function(e){var t=me();if(void 0!==e._context){var n=e._context;n.Consumer===e?R("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&R("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return me().useDebugValue(e,t)},t.useDeferredValue=function(e){return me().useDeferredValue(e)},t.useEffect=function(e,t){return me().useEffect(e,t)},t.useId=function(){return me().useId()},t.useImperativeHandle=function(e,t,n){return me().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return me().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return me().useLayoutEffect(e,t)},t.useMemo=function(e,t){return me().useMemo(e,t)},t.useReducer=function(e,t,n){return me().useReducer(e,t,n)},t.useRef=function(e){return me().useRef(e)},t.useState=function(e){return me().useState(e)},t.useSyncExternalStore=function(e,t,n){return me().useSyncExternalStore(e,t,n)},t.useTransition=function(){return me().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(react_development,react_developmentExports)),react_developmentExports}function requireReact(){return hasRequiredReact||(hasRequiredReact=1,e=react,"production"===process.env.NODE_ENV?e.exports=requireReact_production_min():e.exports=requireReact_development()),reactExports$1;var e}var reactExports=requireReact(),React=getDefaultExportFromCjs(reactExports),ReactEcs$1;(ReactEcs$1||(ReactEcs$1={})).createElement=React.createElement;var reactReconcilerExports$1={},reactReconciler={get exports(){return reactReconcilerExports$1},set exports(e){reactReconcilerExports$1=e}},schedulerExports={},scheduler={get exports(){return schedulerExports},set exports(e){schedulerExports=e}},scheduler_production_min={},hasRequiredScheduler_production_min;function requireScheduler_production_min(){return hasRequiredScheduler_production_min||(hasRequiredScheduler_production_min=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(0>o(u,n))l<i&&0>o(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(l<i&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],c=1,f=null,d=3,p=!1,h=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(l);null!==o;){if(null===o.callback)r(l);else{if(!(o.startTime<=e))break;r(l),o.sortIndex=o.expirationTime,t(u,o)}o=n(l)}}function _(e){if(m=!1,b(e),!h)if(null!==n(u))h=!0,A(x);else{var t=n(l);null!==t&&I(_,t.startTime-e)}}function x(t,o){h=!1,m&&(m=!1,g(E),E=-1),p=!0;var i=d;try{for(b(o),f=n(u);null!==f&&(!(f.expirationTime>o)||t&&!k());){var a=f.callback;if("function"==typeof a){f.callback=null,d=f.priorityLevel;var s=a(f.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?f.callback=s:f===n(u)&&r(u),b(o)}else r(u);f=n(u)}if(null!==f)var c=!0;else{var y=n(l);null!==y&&I(_,y.startTime-o),c=!1}return c}finally{f=null,d=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,w=!1,T=null,E=-1,R=5,P=-1;function k(){return!(e.unstable_now()-P<R)}function C(){if(null!==T){var t=e.unstable_now();P=t;var n=!0;try{n=T(!0,t)}finally{n?S():(w=!1,T=null)}}else w=!1}if("function"==typeof v)S=function(){v(C)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,B=M.port2;M.port1.onmessage=C,S=function(){B.postMessage(null)}}else S=function(){y(C,0)};function A(e){T=e,w||(w=!0,S())}function I(t,n){E=y((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,A(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(l,r),null===n(u)&&r===n(l)&&(m?(g(E),E=-1):m=!0,I(_,i-a))):(r.sortIndex=s,t(u,r),h||p||(h=!0,A(x))),r},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}}(scheduler_production_min)),scheduler_production_min}var scheduler_development={},hasRequiredScheduler_development,hasRequiredScheduler,reactReconciler_production_min,hasRequiredReactReconciler_production_min;function requireScheduler_development(){return hasRequiredScheduler_development||(hasRequiredScheduler_development=1,function(e){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);function t(e,t){var n=e.length;e.push(t),function(e,t,n){var r=n;for(;r>0;){var i=r-1>>>1,a=e[i];if(!(o(a,t)>0))return;e[i]=t,e[r]=a,r=i}}(e,t,n)}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();return n!==t&&(e[0]=n,function(e,t,n){var r=n,i=e.length,a=i>>>1;for(;r<a;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(o(u,t)<0)l<i&&o(c,u)<0?(e[r]=c,e[l]=t,r=l):(e[r]=u,e[s]=t,r=s);else{if(!(l<i&&o(c,t)<0))return;e[r]=c,e[l]=t,r=l}}}(e,n,0)),t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],c=1,f=null,d=3,p=!1,h=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(l);null!==o;){if(null===o.callback)r(l);else{if(!(o.startTime<=e))return;r(l),o.sortIndex=o.expirationTime,t(u,o)}o=n(l)}}function _(e){if(m=!1,b(e),!h)if(null!==n(u))h=!0,A(x);else{var t=n(l);null!==t&&I(_,t.startTime-e)}}function x(t,o){h=!1,m&&(m=!1,N()),p=!0;var i=d;try{return function(t,o){var i=o;b(i),f=n(u);for(;null!==f&&(!(f.expirationTime>i)||t&&!P());){var a=f.callback;if("function"==typeof a){f.callback=null,d=f.priorityLevel;var s=a(f.expirationTime<=i);i=e.unstable_now(),"function"==typeof s?f.callback=s:f===n(u)&&r(u),b(i)}else r(u);f=n(u)}if(null!==f)return!0;var c=n(l);return null!==c&&I(_,c.startTime-i),!1}(t,o)}finally{f=null,d=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S=!1,w=null,T=-1,E=5,R=-1;function P(){return!(e.unstable_now()-R<E)}var k,C=function(){if(null!==w){var t=e.unstable_now();R=t;var n=!0;try{n=w(!0,t)}finally{n?k():(S=!1,w=null)}}else S=!1};if("function"==typeof v)k=function(){v(C)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,B=M.port2;M.port1.onmessage=C,k=function(){B.postMessage(null)}}else k=function(){y(C,0)};function A(e){w=e,S||(S=!0,k())}function I(t,n){T=y((function(){t(e.unstable_now())}),n)}function N(){g(T),T=-1}var U=function(){};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,A(x))},e.unstable_forceFrameRate=function(e){e<0||e>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=e>0?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(e){var t;switch(d){case 1:case 2:case 3:t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=U,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},e.unstable_scheduleCallback=function(r,o,i){var a,s,f=e.unstable_now();if("object"==typeof i&&null!==i){var d=i.delay;a="number"==typeof d&&d>0?f+d:f}else a=f;switch(r){case 1:s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}var y=a+s,g={id:c++,callback:o,priorityLevel:r,startTime:a,expirationTime:y,sortIndex:-1};return a>f?(g.sortIndex=a,t(l,g),null===n(u)&&g===n(l)&&(m?N():m=!0,I(_,a-f))):(g.sortIndex=y,t(u,g),h||p||(h=!0,A(x))),g},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(scheduler_development)),scheduler_development}function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,e=scheduler,"production"===process.env.NODE_ENV?e.exports=requireScheduler_production_min():e.exports=requireScheduler_development()),schedulerExports;var e}function requireReactReconciler_production_min(){return hasRequiredReactReconciler_production_min||(hasRequiredReactReconciler_production_min=1,reactReconciler_production_min=function(e){var t={},n=requireReact(),r=requireScheduler(),o=Object.assign;function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,s=Symbol.for("react.element"),u=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),_=Symbol.iterator;function x(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=_&&e[_]||e["@@iterator"])?e:null}function S(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case l:return"Fragment";case u:return"Portal";case f:return"Profiler";case c:return"StrictMode";case m:return"Suspense";case y:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case p:return(e.displayName||"Context")+".Consumer";case d:return(e._context.displayName||"Context")+".Provider";case h:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case g:return null!==(t=e.displayName||null)?t:S(e.type)||"Memo";case v:t=e._payload,e=e._init;try{return S(e(t))}catch(e){}}return null}function w(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return S(t);case 8:return t===c?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function T(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function E(e){if(T(e)!==e)throw Error(i(188))}function R(e){var t=e.alternate;if(!t){if(null===(t=T(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return E(o),e;if(a===r)return E(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,u=o.child;u;){if(u===n){s=!0,n=o,r=a;break}if(u===r){s=!0,r=o,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=o;break}if(u===r){s=!0,r=a,n=o;break}u=u.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}function P(e){return null!==(e=R(e))?k(e):null}function k(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=k(e);if(null!==t)return t;e=e.sibling}return null}function C(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){if(4!==e.tag){var t=C(e);if(null!==t)return t}e=e.sibling}return null}var M,B=Array.isArray,A=e.getPublicInstance,I=e.getRootHostContext,N=e.getChildHostContext,U=e.prepareForCommit,z=e.resetAfterCommit,D=e.createInstance,O=e.appendInitialChild,L=e.finalizeInitialChildren,F=e.prepareUpdate,W=e.shouldSetTextContent,G=e.createTextInstance,$=e.scheduleTimeout,H=e.cancelTimeout,q=e.noTimeout,j=e.isPrimaryRenderer,Y=e.supportsMutation,V=e.supportsPersistence,Q=e.supportsHydration,J=e.getInstanceFromNode,X=e.preparePortalMount,Z=e.getCurrentEventPriority,K=e.detachDeletedInstance,ee=e.supportsMicrotasks,te=e.scheduleMicrotask,ne=e.supportsTestSelectors,re=e.findFiberRoot,oe=e.getBoundingRect,ie=e.getTextContent,ae=e.isHiddenSubtree,se=e.matchAccessibilityRole,ue=e.setFocusIfFocusable,le=e.setupIntersectionObserver,ce=e.appendChild,fe=e.appendChildToContainer,de=e.commitTextUpdate,pe=e.commitMount,he=e.commitUpdate,me=e.insertBefore,ye=e.insertInContainerBefore,ge=e.removeChild,ve=e.removeChildFromContainer,be=e.resetTextContent,_e=e.hideInstance,xe=e.hideTextInstance,Se=e.unhideInstance,we=e.unhideTextInstance,Te=e.clearContainer,Ee=e.cloneInstance,Re=e.createContainerChildSet,Pe=e.appendChildToContainerChildSet,ke=e.finalizeContainerChildren,Ce=e.replaceContainerChildren,Me=e.cloneHiddenInstance,Be=e.cloneHiddenTextInstance,Ae=e.canHydrateInstance,Ie=e.canHydrateTextInstance,Ne=e.canHydrateSuspenseInstance,Ue=e.isSuspenseInstancePending,ze=e.isSuspenseInstanceFallback,De=e.getSuspenseInstanceFallbackErrorDetails,Oe=e.registerSuspenseInstanceRetry,Le=e.getNextHydratableSibling,Fe=e.getFirstHydratableChild,We=e.getFirstHydratableChildWithinContainer,Ge=e.getFirstHydratableChildWithinSuspenseInstance,$e=e.hydrateInstance,He=e.hydrateTextInstance,qe=e.hydrateSuspenseInstance,je=e.getNextHydratableInstanceAfterSuspenseInstance,Ye=e.commitHydratedContainer,Ve=e.commitHydratedSuspenseInstance,Qe=e.clearSuspenseBoundary,Je=e.clearSuspenseBoundaryFromContainer,Xe=e.shouldDeleteUnhydratedTailInstances,Ze=e.didNotMatchHydratedContainerTextInstance,Ke=e.didNotMatchHydratedTextInstance;function et(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var tt=!1;function nt(e,t){if(!e||tt)return"";tt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var u="\n"+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=s);break}}}finally{tt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?et(e):""}var rt=Object.prototype.hasOwnProperty,ot=[],it=-1;function at(e){return{current:e}}function st(e){0>it||(e.current=ot[it],ot[it]=null,it--)}function ut(e,t){it++,ot[it]=e.current,e.current=t}var lt={},ct=at(lt),ft=at(!1),dt=lt;function pt(e,t){var n=e.type.contextTypes;if(!n)return lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ht(e){return null!=(e=e.childContextTypes)}function mt(){st(ft),st(ct)}function yt(e,t,n){if(ct.current!==lt)throw Error(i(168));ut(ct,t),ut(ft,n)}function gt(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(i(108,w(e)||"Unknown",a));return o({},n,r)}function vt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lt,dt=ct.current,ut(ct,e),ut(ft,ft.current),!0}function bt(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=gt(e,t,dt),r.__reactInternalMemoizedMergedChildContext=e,st(ft),st(ct),ut(ct,e)):st(ft),ut(ft,n)}var _t=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(xt(e)/St|0)|0},xt=Math.log,St=Math.LN2;var wt=64,Tt=4194304;function Et(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=Et(s):0!==(i&=a)&&(r=Et(i))}else 0!==(a=n&~o)?r=Et(a):0!==i&&(r=Et(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-_t(t)),r|=e[n],t&=~o;return r}function Pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function kt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ct(){var e=wt;return 0==(4194240&(wt<<=1))&&(wt=64),e}function Mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-_t(t)]=n}function At(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_t(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var It=0;function Nt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Ut=r.unstable_scheduleCallback,zt=r.unstable_cancelCallback,Dt=r.unstable_shouldYield,Ot=r.unstable_requestPaint,Lt=r.unstable_now,Ft=r.unstable_ImmediatePriority,Wt=r.unstable_UserBlockingPriority,Gt=r.unstable_NormalPriority,$t=r.unstable_IdlePriority,Ht=null,qt=null;var jt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Yt=null,Vt=!1,Qt=!1;function Jt(e){null===Yt?Yt=[e]:Yt.push(e)}function Xt(){if(!Qt&&null!==Yt){Qt=!0;var e=0,t=It;try{var n=Yt;for(It=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Yt=null,Vt=!1}catch(t){throw null!==Yt&&(Yt=Yt.slice(e+1)),Ut(Ft,Xt),t}finally{It=t,Qt=!1}}return null}var Zt=[],Kt=0,en=null,tn=0,nn=[],rn=0,on=null,an=1,sn="";function un(e,t){Zt[Kt++]=tn,Zt[Kt++]=en,en=e,tn=t}function ln(e,t,n){nn[rn++]=an,nn[rn++]=sn,nn[rn++]=on,on=e;var r=an;e=sn;var o=32-_t(r)-1;r&=~(1<<o),n+=1;var i=32-_t(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,an=1<<32-_t(t)+o|n<<o|r,sn=i+e}else an=1<<i|n<<o|r,sn=e}function cn(e){null!==e.return&&(un(e,1),ln(e,1,0))}function fn(e){for(;e===en;)en=Zt[--Kt],Zt[Kt]=null,tn=Zt[--Kt],Zt[Kt]=null;for(;e===on;)on=nn[--rn],nn[rn]=null,sn=nn[--rn],nn[rn]=null,an=nn[--rn],nn[rn]=null}var dn=null,pn=null,hn=!1,mn=!1,yn=null;function gn(e,t){var n=as(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function vn(e,t){switch(e.tag){case 5:return null!==(t=Ae(t,e.type,e.pendingProps))&&(e.stateNode=t,dn=e,pn=Fe(t),!0);case 6:return null!==(t=Ie(t,e.pendingProps))&&(e.stateNode=t,dn=e,pn=null,!0);case 13:if(null!==(t=Ne(t))){var n=null!==on?{id:an,overflow:sn}:null;return e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=as(18,null,null,0)).stateNode=t,n.return=e,e.child=n,dn=e,pn=null,!0}return!1;default:return!1}}function bn(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function _n(e){if(hn){var t=pn;if(t){var n=t;if(!vn(e,t)){if(bn(e))throw Error(i(418));t=Le(n);var r=dn;t&&vn(e,t)?gn(r,n):(e.flags=-4097&e.flags|2,hn=!1,dn=e)}}else{if(bn(e))throw Error(i(418));e.flags=-4097&e.flags|2,hn=!1,dn=e}}}function xn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;dn=e}function Sn(e){if(!Q||e!==dn)return!1;if(!hn)return xn(e),hn=!0,!1;if(3!==e.tag&&(5!==e.tag||Xe(e.type)&&!W(e.type,e.memoizedProps))){var t=pn;if(t){if(bn(e))throw wn(),Error(i(418));for(;t;)gn(e,t),t=Le(t)}}if(xn(e),13===e.tag){if(!Q)throw Error(i(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));pn=je(e)}else pn=dn?Le(e.stateNode):null;return!0}function wn(){for(var e=pn;e;)e=Le(e)}function Tn(){Q&&(pn=dn=null,mn=hn=!1)}function En(e){null===yn?yn=[e]:yn.push(e)}var Rn=a.ReactCurrentBatchConfig;function Pn(e,t){if(jt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!rt.call(t,o)||!jt(e[o],t[o]))return!1}return!0}function kn(e){switch(e.tag){case 5:return et(e.type);case 16:return et("Lazy");case 13:return et("Suspense");case 19:return et("SuspenseList");case 0:case 2:case 15:return e=nt(e.type,!1);case 11:return e=nt(e.type.render,!1);case 1:return e=nt(e.type,!0);default:return""}}function Cn(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Mn=at(null),Bn=null,An=null,In=null;function Nn(){In=An=Bn=null}function Un(e,t,n){j?(ut(Mn,t._currentValue),t._currentValue=n):(ut(Mn,t._currentValue2),t._currentValue2=n)}function zn(e){var t=Mn.current;st(Mn),j?e._currentValue=t:e._currentValue2=t}function Dn(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function On(e,t){Bn=e,In=An=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(No=!0),e.firstContext=null)}function Ln(e){var t=j?e._currentValue:e._currentValue2;if(In!==e)if(e={context:e,memoizedValue:t,next:null},null===An){if(null===Bn)throw Error(i(308));An=e,Bn.dependencies={lanes:0,firstContext:e}}else An=An.next=e;return t}var Fn=null;function Wn(e){null===Fn?Fn=[e]:Fn.push(e)}function Gn(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Wn(t)):(n.next=o.next,o.next=n),t.interleaved=n,$n(e,r)}function $n(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Hn=!1;function qn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jn(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Yn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&na)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,$n(e,n)}return null===(o=r.interleaved)?(t.next=t,Wn(r)):(t.next=o.next,o.next=t),r.interleaved=t,$n(e,n)}function Qn(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,At(e,n)}}function Jn(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xn(e,t,n,r){var i=e.updateQueue;Hn=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var l=u,c=l.next;l.next=null,null===s?a=c:s.next=c,s=l;var f=e.alternate;null!==f&&((u=(f=f.updateQueue).lastBaseUpdate)!==s&&(null===u?f.firstBaseUpdate=c:u.next=c,f.lastBaseUpdate=l))}if(null!==a){var d=i.baseState;for(s=0,f=c=l=null,u=a;;){var p=u.lane,h=u.eventTime;if((r&p)===p){null!==f&&(f=f.next={eventTime:h,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var m=e,y=u;switch(p=t,h=n,y.tag){case 1:if("function"==typeof(m=y.payload)){d=m.call(h,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=y.payload)?m.call(h,d,p):m))break e;d=o({},d,p);break e;case 2:Hn=!0}}null!==u.callback&&0!==u.lane&&(e.flags|=64,null===(p=i.effects)?i.effects=[u]:p.push(u))}else h={eventTime:h,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===f?(c=f=h,l=d):f=f.next=h,s|=p;if(null===(u=u.next)){if(null===(u=i.shared.pending))break;u=(p=u).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}if(null===f&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,null!==(t=i.shared.interleaved)){i=t;do{s|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);ca|=s,e.lanes=s,e.memoizedState=d}}function Zn(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Kn=(new n.Component).refs;function er(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var tr={isMounted:function(e){return!!(e=e._reactInternals)&&T(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ma(),o=Ba(e),i=Yn(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Vn(e,i,o))&&(Aa(t,e,o,r),Qn(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ma(),o=Ba(e),i=Yn(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Vn(e,i,o))&&(Aa(t,e,o,r),Qn(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ma(),r=Ba(e),o=Yn(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Vn(e,o,r))&&(Aa(t,e,r,n),Qn(t,e,r))}};function nr(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Pn(n,r)||!Pn(o,i))}function rr(e,t,n){var r=!1,o=lt,i=t.contextType;return"object"==typeof i&&null!==i?i=Ln(i):(o=ht(t)?dt:ct.current,i=(r=null!=(r=t.contextTypes))?pt(e,o):lt),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=tr,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function or(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&tr.enqueueReplaceState(t,t.state,null)}function ir(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Kn,qn(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ln(i):(i=ht(t)?dt:ct.current,o.context=pt(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(er(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&tr.enqueueReplaceState(o,o.state,null),Xn(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ar(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Kn&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function sr(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ur(e){return(0,e._init)(e._payload)}function lr(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=us(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function c(t){return e&&null===t.alternate&&(t.flags|=2),t}function f(e,t,n,r){return null===t||6!==t.tag?((t=ds(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n,r){var i=n.type;return i===l?h(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===v&&ur(i)===t.type)?((r=o(t,n.props)).ref=ar(e,t,n),r.return=e,r):((r=ls(n.type,n.key,n.props,null,e.mode,r)).ref=ar(e,t,n),r.return=e,r)}function p(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ps(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function h(e,t,n,r,i){return null===t||7!==t.tag?((t=cs(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function m(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ds(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case s:return(n=ls(t.type,t.key,t.props,null,e.mode,n)).ref=ar(e,null,t),n.return=e,n;case u:return(t=ps(t,e.mode,n)).return=e,t;case v:return m(e,(0,t._init)(t._payload),n)}if(B(t)||x(t))return(t=cs(t,e.mode,n,null)).return=e,t;sr(e,t)}return null}function y(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:f(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case s:return n.key===o?d(e,t,n,r):null;case u:return n.key===o?p(e,t,n,r):null;case v:return y(e,t,(o=n._init)(n._payload),r)}if(B(n)||x(n))return null!==o?null:h(e,t,n,r,null);sr(e,n)}return null}function g(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return f(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case s:return d(t,e=e.get(null===r.key?n:r.key)||null,r,o);case u:return p(t,e=e.get(null===r.key?n:r.key)||null,r,o);case v:return g(e,t,n,(0,r._init)(r._payload),o)}if(B(r)||x(r))return h(t,e=e.get(n)||null,r,o,null);sr(t,r)}return null}function b(o,i,s,u){for(var l=null,c=null,f=i,d=i=0,p=null;null!==f&&d<s.length;d++){f.index>d?(p=f,f=null):p=f.sibling;var h=y(o,f,s[d],u);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&t(o,f),i=a(h,i,d),null===c?l=h:c.sibling=h,c=h,f=p}if(d===s.length)return n(o,f),hn&&un(o,d),l;if(null===f){for(;d<s.length;d++)null!==(f=m(o,s[d],u))&&(i=a(f,i,d),null===c?l=f:c.sibling=f,c=f);return hn&&un(o,d),l}for(f=r(o,f);d<s.length;d++)null!==(p=g(f,o,d,s[d],u))&&(e&&null!==p.alternate&&f.delete(null===p.key?d:p.key),i=a(p,i,d),null===c?l=p:c.sibling=p,c=p);return e&&f.forEach((function(e){return t(o,e)})),hn&&un(o,d),l}function _(o,s,u,l){var c=x(u);if("function"!=typeof c)throw Error(i(150));if(null==(u=c.call(u)))throw Error(i(151));for(var f=c=null,d=s,p=s=0,h=null,v=u.next();null!==d&&!v.done;p++,v=u.next()){d.index>p?(h=d,d=null):h=d.sibling;var b=y(o,d,v.value,l);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(o,d),s=a(b,s,p),null===f?c=b:f.sibling=b,f=b,d=h}if(v.done)return n(o,d),hn&&un(o,p),c;if(null===d){for(;!v.done;p++,v=u.next())null!==(v=m(o,v.value,l))&&(s=a(v,s,p),null===f?c=v:f.sibling=v,f=v);return hn&&un(o,p),c}for(d=r(o,d);!v.done;p++,v=u.next())null!==(v=g(d,o,p,v.value,l))&&(e&&null!==v.alternate&&d.delete(null===v.key?p:v.key),s=a(v,s,p),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach((function(e){return t(o,e)})),hn&&un(o,p),c}return function e(r,i,a,f){if("object"==typeof a&&null!==a&&a.type===l&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case s:e:{for(var d=a.key,p=i;null!==p;){if(p.key===d){if((d=a.type)===l){if(7===p.tag){n(r,p.sibling),(i=o(p,a.props.children)).return=r,r=i;break e}}else if(p.elementType===d||"object"==typeof d&&null!==d&&d.$$typeof===v&&ur(d)===p.type){n(r,p.sibling),(i=o(p,a.props)).ref=ar(r,p,a),i.return=r,r=i;break e}n(r,p);break}t(r,p),p=p.sibling}a.type===l?((i=cs(a.props.children,r.mode,f,a.key)).return=r,r=i):((f=ls(a.type,a.key,a.props,null,r.mode,f)).ref=ar(r,i,a),f.return=r,r=f)}return c(r);case u:e:{for(p=a.key;null!==i;){if(i.key===p){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=ps(a,r.mode,f)).return=r,r=i}return c(r);case v:return e(r,i,(p=a._init)(a._payload),f)}if(B(a))return b(r,i,a,f);if(x(a))return _(r,i,a,f);sr(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=ds(a,r.mode,f)).return=r,r=i),c(r)):n(r,i)}}var cr=lr(!0),fr=lr(!1),dr={},pr=at(dr),hr=at(dr),mr=at(dr);function yr(e){if(e===dr)throw Error(i(174));return e}function gr(e,t){ut(mr,t),ut(hr,e),ut(pr,dr),e=I(t),st(pr),ut(pr,e)}function vr(){st(pr),st(hr),st(mr)}function br(e){var t=yr(mr.current),n=yr(pr.current);n!==(t=N(n,e.type,t))&&(ut(hr,e),ut(pr,t))}function _r(e){hr.current===e&&(st(pr),st(hr))}var xr=at(0);function Sr(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ue(n)||ze(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&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 wr=[];function Tr(){for(var e=0;e<wr.length;e++){var t=wr[e];j?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}wr.length=0}var Er=a.ReactCurrentDispatcher,Rr=a.ReactCurrentBatchConfig,Pr=0,kr=null,Cr=null,Mr=null,Br=!1,Ar=!1,Ir=0,Nr=0;function Ur(){throw Error(i(321))}function zr(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function Dr(e,t,n,r,o,a){if(Pr=a,kr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Er.current=null===e||null===e.memoizedState?xo:So,e=n(r,o),Ar){a=0;do{if(Ar=!1,Ir=0,25<=a)throw Error(i(301));a+=1,Mr=Cr=null,t.updateQueue=null,Er.current=wo,e=n(r,o)}while(Ar)}if(Er.current=_o,t=null!==Cr&&null!==Cr.next,Pr=0,Mr=Cr=kr=null,Br=!1,t)throw Error(i(300));return e}function Or(){var e=0!==Ir;return Ir=0,e}function Lr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Mr?kr.memoizedState=Mr=e:Mr=Mr.next=e,Mr}function Fr(){if(null===Cr){var e=kr.alternate;e=null!==e?e.memoizedState:null}else e=Cr.next;var t=null===Mr?kr.memoizedState:Mr.next;if(null!==t)Mr=t,Cr=e;else{if(null===e)throw Error(i(310));e={memoizedState:(Cr=e).memoizedState,baseState:Cr.baseState,baseQueue:Cr.baseQueue,queue:Cr.queue,next:null},null===Mr?kr.memoizedState=Mr=e:Mr=Mr.next=e}return Mr}function Wr(e,t){return"function"==typeof t?t(e):t}function Gr(e){var t=Fr(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=Cr,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var u=s=null,l=null,c=a;do{var f=c.lane;if((Pr&f)===f)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(u=l=d,s=r):l=l.next=d,kr.lanes|=f,ca|=f}c=c.next}while(null!==c&&c!==a);null===l?s=r:l.next=u,jt(r,t.memoizedState)||(No=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,kr.lanes|=a,ca|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function $r(e){var t=Fr(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);jt(a,t.memoizedState)||(No=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Hr(){}function qr(e,t){var n=kr,r=Fr(),o=t(),a=!jt(r.memoizedState,o);if(a&&(r.memoizedState=o,No=!0),r=r.queue,ro(Vr.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==Mr&&1&Mr.memoizedState.tag){if(n.flags|=2048,Zr(9,Yr.bind(null,n,r,o,t),void 0,null),null===ra)throw Error(i(349));0!=(30&Pr)||jr(n,t,o)}return o}function jr(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=kr.updateQueue)?(t={lastEffect:null,stores:null},kr.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Yr(e,t,n,r){t.value=n,t.getSnapshot=r,Qr(t)&&Jr(e)}function Vr(e,t,n){return n((function(){Qr(t)&&Jr(e)}))}function Qr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch(e){return!0}}function Jr(e){var t=$n(e,1);null!==t&&Aa(t,e,1,-1)}function Xr(e){var t=Lr();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wr,lastRenderedState:e},t.queue=e,e=e.dispatch=yo.bind(null,kr,e),[t.memoizedState,e]}function Zr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=kr.updateQueue)?(t={lastEffect:null,stores:null},kr.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Kr(){return Fr().memoizedState}function eo(e,t,n,r){var o=Lr();kr.flags|=e,o.memoizedState=Zr(1|t,n,void 0,void 0===r?null:r)}function to(e,t,n,r){var o=Fr();r=void 0===r?null:r;var i=void 0;if(null!==Cr){var a=Cr.memoizedState;if(i=a.destroy,null!==r&&zr(r,a.deps))return void(o.memoizedState=Zr(t,n,i,r))}kr.flags|=e,o.memoizedState=Zr(1|t,n,i,r)}function no(e,t){return eo(8390656,8,e,t)}function ro(e,t){return to(2048,8,e,t)}function oo(e,t){return to(4,2,e,t)}function io(e,t){return to(4,4,e,t)}function ao(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function so(e,t,n){return n=null!=n?n.concat([e]):null,to(4,4,ao.bind(null,t,e),n)}function uo(){}function lo(e,t){var n=Fr();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&zr(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function co(e,t){var n=Fr();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&zr(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fo(e,t,n){return 0==(21&Pr)?(e.baseState&&(e.baseState=!1,No=!0),e.memoizedState=n):(jt(n,t)||(n=Ct(),kr.lanes|=n,ca|=n,e.baseState=!0),t)}function po(e,t){var n=It;It=0!==n&&4>n?n:4,e(!0);var r=Rr.transition;Rr.transition={};try{e(!1),t()}finally{It=n,Rr.transition=r}}function ho(){return Fr().memoizedState}function mo(e,t,n){var r=Ba(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},go(e))vo(t,n);else if(null!==(n=Gn(e,t,n,r))){Aa(n,e,r,Ma()),bo(n,t,r)}}function yo(e,t,n){var r=Ba(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(go(e))vo(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,jt(s,a)){var u=t.interleaved;return null===u?(o.next=o,Wn(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Gn(e,t,o,r))&&(Aa(n,e,r,o=Ma()),bo(n,t,r))}}function go(e){var t=e.alternate;return e===kr||null!==t&&t===kr}function vo(e,t){Ar=Br=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bo(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,At(e,n)}}var _o={readContext:Ln,useCallback:Ur,useContext:Ur,useEffect:Ur,useImperativeHandle:Ur,useInsertionEffect:Ur,useLayoutEffect:Ur,useMemo:Ur,useReducer:Ur,useRef:Ur,useState:Ur,useDebugValue:Ur,useDeferredValue:Ur,useTransition:Ur,useMutableSource:Ur,useSyncExternalStore:Ur,useId:Ur,unstable_isNewReconciler:!1},xo={readContext:Ln,useCallback:function(e,t){return Lr().memoizedState=[e,void 0===t?null:t],e},useContext:Ln,useEffect:no,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,eo(4194308,4,ao.bind(null,t,e),n)},useLayoutEffect:function(e,t){return eo(4194308,4,e,t)},useInsertionEffect:function(e,t){return eo(4,2,e,t)},useMemo:function(e,t){var n=Lr();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lr();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mo.bind(null,kr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Lr().memoizedState=e},useState:Xr,useDebugValue:uo,useDeferredValue:function(e){return Lr().memoizedState=e},useTransition:function(){var e=Xr(!1),t=e[0];return e=po.bind(null,e[1]),Lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=kr,o=Lr();if(hn){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===ra)throw Error(i(349));0!=(30&Pr)||jr(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,no(Vr.bind(null,r,a,e),[e]),r.flags|=2048,Zr(9,Yr.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Lr(),t=ra.identifierPrefix;if(hn){var n=sn;t=":"+t+"R"+(n=(an&~(1<<32-_t(an)-1)).toString(32)+n),0<(n=Ir++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Nr++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},So={readContext:Ln,useCallback:lo,useContext:Ln,useEffect:ro,useImperativeHandle:so,useInsertionEffect:oo,useLayoutEffect:io,useMemo:co,useReducer:Gr,useRef:Kr,useState:function(){return Gr(Wr)},useDebugValue:uo,useDeferredValue:function(e){return fo(Fr(),Cr.memoizedState,e)},useTransition:function(){return[Gr(Wr)[0],Fr().memoizedState]},useMutableSource:Hr,useSyncExternalStore:qr,useId:ho,unstable_isNewReconciler:!1},wo={readContext:Ln,useCallback:lo,useContext:Ln,useEffect:ro,useImperativeHandle:so,useInsertionEffect:oo,useLayoutEffect:io,useMemo:co,useReducer:$r,useRef:Kr,useState:function(){return $r(Wr)},useDebugValue:uo,useDeferredValue:function(e){var t=Fr();return null===Cr?t.memoizedState=e:fo(t,Cr.memoizedState,e)},useTransition:function(){return[$r(Wr)[0],Fr().memoizedState]},useMutableSource:Hr,useSyncExternalStore:qr,useId:ho,unstable_isNewReconciler:!1};function To(e,t){try{var n="",r=t;do{n+=kn(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function Eo(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Ro(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Po="function"==typeof WeakMap?WeakMap:Map;function ko(e,t,n){(n=Yn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_a||(_a=!0,xa=r),Ro(0,t)},n}function Co(e,t,n){(n=Yn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ro(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){Ro(0,t),"function"!=typeof r&&(null===Sa?Sa=new Set([this]):Sa.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Mo(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Po;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=es.bind(null,e,t,n),t.then(e,e))}function Bo(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Ao(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Yn(-1,1)).tag=2,Vn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Io=a.ReactCurrentOwner,No=!1;function Uo(e,t,n,r){t.child=null===e?fr(t,null,n,r):cr(t,e.child,n,r)}function zo(e,t,n,r,o){n=n.render;var i=t.ref;return On(t,o),r=Dr(e,t,n,r,i,o),n=Or(),null===e||No?(hn&&n&&cn(t),t.flags|=1,Uo(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ii(e,t,o))}function Do(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||ss(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ls(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Oo(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Pn)(a,r)&&e.ref===t.ref)return ii(e,t,o)}return t.flags|=1,(e=us(i,r)).ref=t.ref,e.return=t,t.child=e}function Oo(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Pn(i,r)&&e.ref===t.ref){if(No=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,ii(e,t,o);0!=(131072&e.flags)&&(No=!0)}}return Wo(e,t,n,r,o)}function Lo(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut(sa,aa),aa|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ut(sa,aa),aa|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,ut(sa,aa),aa|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,ut(sa,aa),aa|=r;return Uo(e,t,o,n),t.child}function Fo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wo(e,t,n,r,o){var i=ht(n)?dt:ct.current;return i=pt(t,i),On(t,o),n=Dr(e,t,n,r,i,o),r=Or(),null===e||No?(hn&&r&&cn(t),t.flags|=1,Uo(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ii(e,t,o))}function Go(e,t,n,r,o){if(ht(n)){var i=!0;vt(t)}else i=!1;if(On(t,o),null===t.stateNode)oi(e,t),rr(t,n,r),ir(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=Ln(l):l=pt(t,l=ht(n)?dt:ct.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&or(t,a,r,l),Hn=!1;var d=t.memoizedState;a.state=d,Xn(t,r,a,o),u=t.memoizedState,s!==r||d!==u||ft.current||Hn?("function"==typeof c&&(er(t,n,c,r),u=t.memoizedState),(s=Hn||nr(t,n,s,r,d,u,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,jn(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Cn(t.type,s),a.props=l,f=t.pendingProps,d=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=Ln(u):u=pt(t,u=ht(n)?dt:ct.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==u)&&or(t,a,r,u),Hn=!1,d=t.memoizedState,a.state=d,Xn(t,r,a,o);var h=t.memoizedState;s!==f||d!==h||ft.current||Hn?("function"==typeof p&&(er(t,n,p,r),h=t.memoizedState),(l=Hn||nr(t,n,l,r,d,h,u)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return $o(e,t,n,r,i,o)}function $o(e,t,n,r,o,i){Fo(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&bt(t,n,!1),ii(e,t,i);r=t.stateNode,Io.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=cr(t,e.child,null,i),t.child=cr(t,null,s,i)):Uo(e,t,s,i),t.memoizedState=r.state,o&&bt(t,n,!0),t.child}function Ho(e){var t=e.stateNode;t.pendingContext?yt(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yt(0,t.context,!1),gr(e,t.containerInfo)}function qo(e,t,n,r,o){return Tn(),En(o),t.flags|=256,Uo(e,t,n,r),t.child}var jo,Yo,Vo,Qo,Jo={dehydrated:null,treeContext:null,retryLane:0};function Xo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zo(e,t,n){var r,o=t.pendingProps,a=xr.current,s=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ut(xr,1&a),null===e)return _n(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:ze(e)?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,s?(o=t.mode,s=t.child,u={mode:"hidden",children:u},0==(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=fs(u,o,0,null),e=cs(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Xo(n),t.memoizedState=Jo,e):Ko(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,ei(e,t,s,r=Eo(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=fs({mode:"visible",children:r.children},o,0,null),(a=cs(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&cr(t,e.child,null,s),t.child.memoizedState=Xo(s),t.memoizedState=Jo,a);if(0==(1&t.mode))return ei(e,t,s,null);if(ze(o))return r=De(o).digest,a=Error(i(419)),r=Eo(a,r,void 0),ei(e,t,s,r);if(n=0!=(s&e.childLanes),No||n){if(null!==(r=ra)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,$n(e,o),Aa(r,e,o,-1))}return Ha(),ei(e,t,s,r=Eo(Error(i(421))))}return Ue(o)?(t.flags|=128,t.child=e.child,t=ns.bind(null,e),Oe(o,t),null):(e=a.treeContext,Q&&(pn=Ge(o),dn=t,hn=!0,yn=null,mn=!1,null!==e&&(nn[rn++]=an,nn[rn++]=sn,nn[rn++]=on,an=e.id,sn=e.overflow,on=t)),(t=Ko(t,r.children)).flags|=4096,t)}(e,t,u,o,r,a,n);if(s){s=o.fallback,u=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&u)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=us(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=us(r,s):(s=cs(s,u,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,u=null===(u=e.child.memoizedState)?Xo(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=Jo,o}return e=(s=e.child).sibling,o=us(s,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ko(e,t){return(t=fs({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function ei(e,t,n,r){return null!==r&&En(r),cr(t,e.child,null,n),(e=Ko(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ti(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Dn(e.return,t,n)}function ni(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function ri(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Uo(e,t,r.children,n),0!=(2&(r=xr.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ti(e,n,t);else if(19===e.tag)ti(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ut(xr,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Sr(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ni(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Sr(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ni(t,!0,n,null,i);break;case"together":ni(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oi(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ii(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ca|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=us(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=us(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ai(e){e.flags|=4}function si(e,t){if(null!==e&&e.child===t.child)return!0;if(0!=(16&t.flags))return!1;for(e=t.child;null!==e;){if(0!=(12854&e.flags)||0!=(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}if(Y)jo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)O(e,n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}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}},Yo=function(){},Vo=function(e,t,n,r,o){if((e=e.memoizedProps)!==r){var i=t.stateNode,a=yr(pr.current);n=F(i,n,e,r,o,a),(t.updateQueue=n)&&ai(t)}},Qo=function(e,t,n,r){n!==r&&ai(t)};else if(V){jo=function(e,t,n,r){for(var o=t.child;null!==o;){if(5===o.tag){var i=o.stateNode;n&&r&&(i=Me(i,o.type,o.memoizedProps,o)),O(e,i)}else if(6===o.tag)i=o.stateNode,n&&r&&(i=Be(i,o.memoizedProps,o)),O(e,i);else if(4!==o.tag)if(22===o.tag&&null!==o.memoizedState)null!==(i=o.child)&&(i.return=o),jo(e,o,!0,!0);else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};var ui=function(e,t,n,r){for(var o=t.child;null!==o;){if(5===o.tag){var i=o.stateNode;n&&r&&(i=Me(i,o.type,o.memoizedProps,o)),Pe(e,i)}else if(6===o.tag)i=o.stateNode,n&&r&&(i=Be(i,o.memoizedProps,o)),Pe(e,i);else if(4!==o.tag)if(22===o.tag&&null!==o.memoizedState)null!==(i=o.child)&&(i.return=o),ui(e,o,!0,!0);else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};Yo=function(e,t){var n=t.stateNode;if(!si(e,t)){e=n.containerInfo;var r=Re(e);ui(r,t,!1,!1),n.pendingChildren=r,ai(t),ke(e,r)}},Vo=function(e,t,n,r,o){var i=e.stateNode,a=e.memoizedProps;if((e=si(e,t))&&a===r)t.stateNode=i;else{var s=t.stateNode,u=yr(pr.current),l=null;a!==r&&(l=F(s,n,a,r,o,u)),e&&null===l?t.stateNode=i:(i=Ee(i,l,n,a,r,t,e,s),L(i,n,r,o,u)&&ai(t),t.stateNode=i,e?ai(t):jo(i,t,!1,!1))}},Qo=function(e,t,n,r){n!==r?(e=yr(mr.current),n=yr(pr.current),t.stateNode=G(r,e,n,t),ai(t)):t.stateNode=e.stateNode}}else Yo=function(){},Vo=function(){},Qo=function(){};function li(e,t){if(!hn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ci(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function fi(e,t,n){var r=t.pendingProps;switch(fn(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ci(t),null;case 1:case 17:return ht(t.type)&&mt(),ci(t),null;case 3:return n=t.stateNode,vr(),st(ft),st(ct),Tr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Sn(t)?ai(t):null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==yn&&(za(yn),yn=null))),Yo(e,t),ci(t),null;case 5:_r(t),n=yr(mr.current);var o=t.type;if(null!==e&&null!=t.stateNode)Vo(e,t,o,r,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return ci(t),null}if(e=yr(pr.current),Sn(t)){if(!Q)throw Error(i(175));e=$e(t.stateNode,t.type,t.memoizedProps,n,e,t,!mn),t.updateQueue=e,null!==e&&ai(t)}else{var a=D(o,r,n,e,t);jo(a,t,!1,!1),t.stateNode=a,L(a,o,r,n,e)&&ai(t)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ci(t),null;case 6:if(e&&null!=t.stateNode)Qo(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=yr(mr.current),n=yr(pr.current),Sn(t)){if(!Q)throw Error(i(176));if(e=t.stateNode,n=t.memoizedProps,(r=He(e,n,t,!mn))&&null!==(o=dn))switch(o.tag){case 3:Ze(o.stateNode.containerInfo,e,n,0!=(1&o.mode));break;case 5:Ke(o.type,o.memoizedProps,o.stateNode,e,n,0!=(1&o.mode))}r&&ai(t)}else t.stateNode=G(r,e,n,t)}return ci(t),null;case 13:if(st(xr),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(hn&&null!==pn&&0!=(1&t.mode)&&0==(128&t.flags))wn(),Tn(),t.flags|=98560,o=!1;else if(o=Sn(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!Q)throw Error(i(344));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));qe(o,t)}else Tn(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ci(t),o=!1}else null!==yn&&(za(yn),yn=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((n=null!==r)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&xr.current)?0===ua&&(ua=3):Ha())),null!==t.updateQueue&&(t.flags|=4),ci(t),null);case 4:return vr(),Yo(e,t),null===e&&X(t.stateNode.containerInfo),ci(t),null;case 10:return zn(t.type._context),ci(t),null;case 19:if(st(xr),null===(o=t.memoizedState))return ci(t),null;if(r=0!=(128&t.flags),null===(a=o.rendering))if(r)li(o,!1);else{if(0!==ua||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=Sr(e))){for(t.flags|=128,li(o,!1),null!==(e=a.updateQueue)&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=n,n=t.child;null!==n;)o=e,(r=n).flags&=14680066,null===(a=r.alternate)?(r.childLanes=0,r.lanes=o,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=a.childLanes,r.lanes=a.lanes,r.child=a.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=a.memoizedProps,r.memoizedState=a.memoizedState,r.updateQueue=a.updateQueue,r.type=a.type,o=a.dependencies,r.dependencies=null===o?null:{lanes:o.lanes,firstContext:o.firstContext}),n=n.sibling;return ut(xr,1&xr.current|2),t.child}e=e.sibling}null!==o.tail&&Lt()>ya&&(t.flags|=128,r=!0,li(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Sr(a))){if(t.flags|=128,r=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),li(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!hn)return ci(t),null}else 2*Lt()-o.renderingStartTime>ya&&1073741824!==n&&(t.flags|=128,r=!0,li(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=o.last)?e.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Lt(),t.sibling=null,e=xr.current,ut(xr,r?1&e|2:1&e),t):(ci(t),null);case 22:case 23:return Fa(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&aa)&&(ci(t),Y&&6&t.subtreeFlags&&(t.flags|=8192)):ci(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function di(e,t){switch(fn(t),t.tag){case 1:return ht(t.type)&&mt(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vr(),st(ft),st(ct),Tr(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return _r(t),null;case 13:if(st(xr),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));Tn()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return st(xr),null;case 4:return vr(),null;case 10:return zn(t.type._context),null;case 22:case 23:return Fa(),null;default:return null}}var pi=!1,hi=!1,mi="function"==typeof WeakSet?WeakSet:Set,yi=null;function gi(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ka(e,t,n)}else n.current=null}function vi(e,t,n){try{n()}catch(n){Ka(e,t,n)}}var bi=!1;function _i(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&vi(t,n,i)}o=o.next}while(o!==r)}}function xi(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.create;n.destroy=r()}n=n.next}while(n!==t)}}function Si(e){var t=e.ref;if(null!==t){var n=e.stateNode;if(5===e.tag)e=A(n);else e=n;"function"==typeof t?t(e):t.current=e}}function wi(e){var t=e.alternate;null!==t&&(e.alternate=null,wi(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&K(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ti(e){return 5===e.tag||3===e.tag||4===e.tag}function Ei(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ti(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ri(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?ye(n,e,t):fe(n,e);else if(4!==r&&null!==(e=e.child))for(Ri(e,t,n),e=e.sibling;null!==e;)Ri(e,t,n),e=e.sibling}function Pi(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?me(n,e,t):ce(n,e);else if(4!==r&&null!==(e=e.child))for(Pi(e,t,n),e=e.sibling;null!==e;)Pi(e,t,n),e=e.sibling}var ki=null,Ci=!1;function Mi(e,t,n){for(n=n.child;null!==n;)Bi(e,t,n),n=n.sibling}function Bi(e,t,n){if(qt&&"function"==typeof qt.onCommitFiberUnmount)try{qt.onCommitFiberUnmount(Ht,n)}catch(e){}switch(n.tag){case 5:hi||gi(n,t);case 6:if(Y){var r=ki,o=Ci;ki=null,Mi(e,t,n),Ci=o,null!==(ki=r)&&(Ci?ve(ki,n.stateNode):ge(ki,n.stateNode))}else Mi(e,t,n);break;case 18:Y&&null!==ki&&(Ci?Je(ki,n.stateNode):Qe(ki,n.stateNode));break;case 4:Y?(r=ki,o=Ci,ki=n.stateNode.containerInfo,Ci=!0,Mi(e,t,n),ki=r,Ci=o):(V&&(r=n.stateNode.containerInfo,o=Re(r),Ce(r,o)),Mi(e,t,n));break;case 0:case 11:case 14:case 15:if(!hi&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&vi(n,t,a),o=o.next}while(o!==r)}Mi(e,t,n);break;case 1:if(!hi&&(gi(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Ka(n,t,e)}Mi(e,t,n);break;case 21:Mi(e,t,n);break;case 22:1&n.mode?(hi=(r=hi)||null!==n.memoizedState,Mi(e,t,n),hi=r):Mi(e,t,n);break;default:Mi(e,t,n)}}function Ai(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new mi),t.forEach((function(t){var r=rs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ii(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t;if(Y){var u=s;e:for(;null!==u;){switch(u.tag){case 5:ki=u.stateNode,Ci=!1;break e;case 3:case 4:ki=u.stateNode.containerInfo,Ci=!0;break e}u=u.return}if(null===ki)throw Error(i(160));Bi(a,s,o),ki=null,Ci=!1}else Bi(a,s,o);var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){Ka(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Ni(t,e),t=t.sibling}function Ni(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ii(t,e),Ui(e),4&r){try{_i(3,e,e.return),xi(3,e)}catch(t){Ka(e,e.return,t)}try{_i(5,e,e.return)}catch(t){Ka(e,e.return,t)}}break;case 1:Ii(t,e),Ui(e),512&r&&null!==n&&gi(n,n.return);break;case 5:if(Ii(t,e),Ui(e),512&r&&null!==n&&gi(n,n.return),Y){if(32&e.flags){var o=e.stateNode;try{be(o)}catch(t){Ka(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps;if(n=null!==n?n.memoizedProps:a,r=e.type,t=e.updateQueue,e.updateQueue=null,null!==t)try{he(o,t,r,n,a,e)}catch(t){Ka(e,e.return,t)}}}break;case 6:if(Ii(t,e),Ui(e),4&r&&Y){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps,n=null!==n?n.memoizedProps:a;try{de(o,n,a)}catch(t){Ka(e,e.return,t)}}break;case 3:if(Ii(t,e),Ui(e),4&r){if(Y&&Q&&null!==n&&n.memoizedState.isDehydrated)try{Ye(t.containerInfo)}catch(t){Ka(e,e.return,t)}if(V){o=t.containerInfo,a=t.pendingChildren;try{Ce(o,a)}catch(t){Ka(e,e.return,t)}}}break;case 4:if(Ii(t,e),Ui(e),4&r&&V){o=(a=e.stateNode).containerInfo,a=a.pendingChildren;try{Ce(o,a)}catch(t){Ka(e,e.return,t)}}break;case 13:Ii(t,e),Ui(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(ma=Lt())),4&r&&Ai(e);break;case 22:var s=null!==n&&null!==n.memoizedState;if(1&e.mode?(hi=(n=hi)||s,Ii(t,e),hi=n):Ii(t,e),Ui(e),8192&r){if(n=null!==e.memoizedState,(e.stateNode.isHidden=n)&&!s&&0!=(1&e.mode))for(yi=e,r=e.child;null!==r;){for(t=yi=r;null!==yi;){var u=(s=yi).child;switch(s.tag){case 0:case 11:case 14:case 15:_i(4,s,s.return);break;case 1:gi(s,s.return);var l=s.stateNode;if("function"==typeof l.componentWillUnmount){var c=s,f=s.return;try{var d=c;l.props=d.memoizedProps,l.state=d.memoizedState,l.componentWillUnmount()}catch(e){Ka(c,f,e)}}break;case 5:gi(s,s.return);break;case 22:if(null!==s.memoizedState){Li(t);continue}}null!==u?(u.return=s,yi=u):Li(t)}r=r.sibling}if(Y)e:if(r=null,Y)for(t=e;;){if(5===t.tag){if(null===r){r=t;try{o=t.stateNode,n?_e(o):Se(t.stateNode,t.memoizedProps)}catch(t){Ka(e,e.return,t)}}}else if(6===t.tag){if(null===r)try{a=t.stateNode,n?xe(a):we(a,t.memoizedProps)}catch(t){Ka(e,e.return,t)}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}}break;case 19:Ii(t,e),Ui(e),4&r&&Ai(e);break;case 21:break;default:Ii(t,e),Ui(e)}}function Ui(e){var t=e.flags;if(2&t){try{if(Y){e:{for(var n=e.return;null!==n;){if(Ti(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(be(o),r.flags&=-33),Pi(e,Ei(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;Ri(e,Ei(e),a);break;default:throw Error(i(161))}}}catch(t){Ka(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function zi(e,t,n){yi=e,Di(e)}function Di(e,t,n){for(var r=0!=(1&e.mode);null!==yi;){var o=yi,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||pi;if(!a){var s=o.alternate,u=null!==s&&null!==s.memoizedState||hi;s=pi;var l=hi;if(pi=a,(hi=u)&&!l)for(yi=o;null!==yi;)u=(a=yi).child,22===a.tag&&null!==a.memoizedState?Fi(o):null!==u?(u.return=a,yi=u):Fi(o);for(;null!==i;)yi=i,Di(i),i=i.sibling;yi=o,pi=s,hi=l}Oi(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,yi=i):Oi(e)}}function Oi(e){for(;null!==yi;){var t=yi;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:hi||xi(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!hi)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Cn(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Zn(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:n=A(t.child.stateNode);break;case 1:n=t.child.stateNode}Zn(t,s,n)}break;case 5:var u=t.stateNode;null===n&&4&t.flags&&pe(u,t.type,t.memoizedProps,t);break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(Q&&null===t.memoizedState){var l=t.alternate;if(null!==l){var c=l.memoizedState;if(null!==c){var f=c.dehydrated;null!==f&&Ve(f)}}}break;default:throw Error(i(163))}hi||512&t.flags&&Si(t)}catch(e){Ka(t,t.return,e)}}if(t===e){yi=null;break}if(null!==(n=t.sibling)){n.return=t.return,yi=n;break}yi=t.return}}function Li(e){for(;null!==yi;){var t=yi;if(t===e){yi=null;break}var n=t.sibling;if(null!==n){n.return=t.return,yi=n;break}yi=t.return}}function Fi(e){for(;null!==yi;){var t=yi;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xi(4,t)}catch(e){Ka(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Ka(t,o,e)}}var i=t.return;try{Si(t)}catch(e){Ka(t,i,e)}break;case 5:var a=t.return;try{Si(t)}catch(e){Ka(t,a,e)}}}catch(e){Ka(t,t.return,e)}if(t===e){yi=null;break}var s=t.sibling;if(null!==s){s.return=t.return,yi=s;break}yi=t.return}}var Wi=0,Gi=1,$i=2,Hi=3,qi=4;if("function"==typeof Symbol&&Symbol.for){var ji=Symbol.for;Wi=ji("selector.component"),Gi=ji("selector.has_pseudo_class"),$i=ji("selector.role"),Hi=ji("selector.test_id"),qi=ji("selector.text")}function Yi(e){var t=J(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(i(364));return t}if(null===(e=re(e)))throw Error(i(362));return e.stateNode.current}function Vi(e,t){switch(t.$$typeof){case Wi:if(e.type===t.value)return!0;break;case Gi:e:{t=t.value,e=[e,0];for(var n=0;n<e.length;){var r=e[n++],o=e[n++],a=t[o];if(5!==r.tag||!ae(r)){for(;null!=a&&Vi(r,a);)a=t[++o];if(o===t.length){t=!0;break e}for(r=r.child;null!==r;)e.push(r,o),r=r.sibling}}t=!1}return t;case $i:if(5===e.tag&&se(e.stateNode,t.value))return!0;break;case qi:if((5===e.tag||6===e.tag)&&(null!==(e=ie(e))&&0<=e.indexOf(t.value)))return!0;break;case Hi:if(5===e.tag&&("string"==typeof(e=e.memoizedProps["data-testname"])&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(i(365))}return!1}function Qi(e){switch(e.$$typeof){case Wi:return"<"+(S(e.value)||"Unknown")+">";case Gi:return":has("+(Qi(e)||"")+")";case $i:return'[role="'+e.value+'"]';case qi:return'"'+e.value+'"';case Hi:return'[data-testname="'+e.value+'"]';default:throw Error(i(365))}}function Ji(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var o=e[r++],i=e[r++],a=t[i];if(5!==o.tag||!ae(o)){for(;null!=a&&Vi(o,a);)a=t[++i];if(i===t.length)n.push(o);else for(o=o.child;null!==o;)e.push(o,i),o=o.sibling}}return n}function Xi(e,t){if(!ne)throw Error(i(363));e=Ji(e=Yi(e),t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var r=e[n++];if(5===r.tag)ae(r)||t.push(r.stateNode);else for(r=r.child;null!==r;)e.push(r),r=r.sibling}return t}var Zi=Math.ceil,Ki=a.ReactCurrentDispatcher,ea=a.ReactCurrentOwner,ta=a.ReactCurrentBatchConfig,na=0,ra=null,oa=null,ia=0,aa=0,sa=at(0),ua=0,la=null,ca=0,fa=0,da=0,pa=null,ha=null,ma=0,ya=1/0,ga=null;function va(){ya=Lt()+500}var ba,_a=!1,xa=null,Sa=null,wa=!1,Ta=null,Ea=0,Ra=0,Pa=null,ka=-1,Ca=0;function Ma(){return 0!=(6&na)?Lt():-1!==ka?ka:ka=Lt()}function Ba(e){return 0==(1&e.mode)?1:0!=(2&na)&&0!==ia?ia&-ia:null!==Rn.transition?(0===Ca&&(Ca=Ct()),Ca):0!==(e=It)?e:Z()}function Aa(e,t,n,r){if(50<Ra)throw Ra=0,Pa=null,Error(i(185));Bt(e,n,r),0!=(2&na)&&e===ra||(e===ra&&(0==(2&na)&&(fa|=n),4===ua&&Da(e,ia)),Ia(e,r),1===n&&0===na&&0==(1&t.mode)&&(va(),Vt&&Xt()))}function Ia(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-_t(i),s=1<<a,u=o[a];-1===u?0!=(s&n)&&0==(s&r)||(o[a]=Pt(s,t)):u<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=Rt(e,e===ra?ia:0);if(0===r)null!==n&&zt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&zt(n),1===t)0===e.tag?function(e){Vt=!0,Jt(e)}(Oa.bind(null,e)):Jt(Oa.bind(null,e)),ee?te((function(){0==(6&na)&&Xt()})):Ut(Ft,Xt),n=null;else{switch(Nt(r)){case 1:n=Ft;break;case 4:n=Wt;break;case 16:default:n=Gt;break;case 536870912:n=$t}n=os(n,Na.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Na(e,t){if(ka=-1,Ca=0,0!=(6&na))throw Error(i(327));var n=e.callbackNode;if(Xa()&&e.callbackNode!==n)return null;var r=Rt(e,e===ra?ia:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=qa(e,r);else{t=r;var o=na;na|=2;var a=$a();for(ra===e&&ia===t||(ga=null,va(),Wa(e,t));;)try{Ya();break}catch(t){Ga(e,t)}Nn(),Ki.current=a,na=o,null!==oa?t=0:(ra=null,ia=0,t=ua)}if(0!==t){if(2===t&&(0!==(o=kt(e))&&(r=o,t=Ua(e,o))),1===t)throw n=la,Wa(e,0),Da(e,r),Ia(e,Lt()),n;if(6===t)Da(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!jt(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=qa(e,r))&&(0!==(a=kt(e))&&(r=a,t=Ua(e,a))),1===t))throw n=la,Wa(e,0),Da(e,r),Ia(e,Lt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Ja(e,ha,ga);break;case 3:if(Da(e,r),(130023424&r)===r&&10<(t=ma+500-Lt())){if(0!==Rt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Ma(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=$(Ja.bind(null,e,ha,ga),t);break}Ja(e,ha,ga);break;case 4:if(Da(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-_t(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Lt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zi(r/1960))-r)){e.timeoutHandle=$(Ja.bind(null,e,ha,ga),r);break}Ja(e,ha,ga);break;default:throw Error(i(329))}}}return Ia(e,Lt()),e.callbackNode===n?Na.bind(null,e):null}function Ua(e,t){var n=pa;return e.current.memoizedState.isDehydrated&&(Wa(e,t).flags|=256),2!==(e=qa(e,t))&&(t=ha,ha=n,null!==t&&za(t)),e}function za(e){null===ha?ha=e:ha.push.apply(ha,e)}function Da(e,t){for(t&=~da,t&=~fa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),r=1<<n;e[n]=-1,t&=~r}}function Oa(e){if(0!=(6&na))throw Error(i(327));Xa();var t=Rt(e,0);if(0==(1&t))return Ia(e,Lt()),null;var n=qa(e,t);if(0!==e.tag&&2===n){var r=kt(e);0!==r&&(t=r,n=Ua(e,r))}if(1===n)throw n=la,Wa(e,0),Da(e,t),Ia(e,Lt()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ja(e,ha,ga),Ia(e,Lt()),null}function La(e){null!==Ta&&0===Ta.tag&&0==(6&na)&&Xa();var t=na;na|=1;var n=ta.transition,r=It;try{if(ta.transition=null,It=1,e)return e()}finally{It=r,ta.transition=n,0==(6&(na=t))&&Xt()}}function Fa(){aa=sa.current,st(sa)}function Wa(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==q&&(e.timeoutHandle=q,H(n)),null!==oa)for(n=oa.return;null!==n;){var r=n;switch(fn(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&mt();break;case 3:vr(),st(ft),st(ct),Tr();break;case 5:_r(r);break;case 4:vr();break;case 13:case 19:st(xr);break;case 10:zn(r.type._context);break;case 22:case 23:Fa()}n=n.return}if(ra=e,oa=e=us(e.current,null),ia=aa=t,ua=0,la=null,da=fa=ca=0,ha=pa=null,null!==Fn){for(t=0;t<Fn.length;t++)if(null!==(r=(n=Fn[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Fn=null}return e}function Ga(e,t){for(;;){var n=oa;try{if(Nn(),Er.current=_o,Br){for(var r=kr.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Br=!1}if(Pr=0,Mr=Cr=kr=null,Ar=!1,Ir=0,ea.current=null,null===n||null===n.return){ua=1,la=t,oa=null;break}e:{var a=e,s=n.return,u=n,l=t;if(t=ia,u.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,f=u,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=Bo(s);if(null!==h){h.flags&=-257,Ao(h,s,u,0,t),1&h.mode&&Mo(a,c,t),l=c;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}if(0==(1&t)){Mo(a,c,t),Ha();break e}l=Error(i(426))}else if(hn&&1&u.mode){var g=Bo(s);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Ao(g,s,u,0,t),En(To(l,u));break e}}a=l=To(l,u),4!==ua&&(ua=2),null===pa?pa=[a]:pa.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Jn(a,ko(0,l,t));break e;case 1:u=l;var v=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Sa||!Sa.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Jn(a,Co(a,u,t));break e}}a=a.return}while(null!==a)}Qa(n)}catch(e){t=e,oa===n&&null!==n&&(oa=n=n.return);continue}break}}function $a(){var e=Ki.current;return Ki.current=_o,null===e?_o:e}function Ha(){0!==ua&&3!==ua&&2!==ua||(ua=4),null===ra||0==(268435455&ca)&&0==(268435455&fa)||Da(ra,ia)}function qa(e,t){var n=na;na|=2;var r=$a();for(ra===e&&ia===t||(ga=null,Wa(e,t));;)try{ja();break}catch(t){Ga(e,t)}if(Nn(),na=n,Ki.current=r,null!==oa)throw Error(i(261));return ra=null,ia=0,ua}function ja(){for(;null!==oa;)Va(oa)}function Ya(){for(;null!==oa&&!Dt();)Va(oa)}function Va(e){var t=ba(e.alternate,e,aa);e.memoizedProps=e.pendingProps,null===t?Qa(e):oa=t,ea.current=null}function Qa(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=fi(n,t,aa)))return void(oa=n)}else{if(null!==(n=di(n,t)))return n.flags&=32767,void(oa=n);if(null===e)return ua=6,void(oa=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(oa=t);oa=t=e}while(null!==t);0===ua&&(ua=5)}function Ja(e,t,n){var r=It,o=ta.transition;try{ta.transition=null,It=1,function(e,t,n,r){do{Xa()}while(null!==Ta);if(0!=(6&na))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-_t(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===ra&&(oa=ra=null,ia=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||wa||(wa=!0,os(Gt,(function(){return Xa(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=ta.transition,ta.transition=null;var s=It;It=1;var u=na;na|=4,ea.current=null,function(e,t){for(U(e.containerInfo),yi=t;null!==yi;)if(t=(e=yi).child,0!=(1028&e.subtreeFlags)&&null!==t)t.return=e,yi=t;else for(;null!==yi;){e=yi;try{var n=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==n){var r=n.memoizedProps,o=n.memoizedState,a=e.stateNode,s=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:Cn(e.type,r),o);a.__reactInternalSnapshotBeforeUpdate=s}break;case 3:Y&&Te(e.stateNode.containerInfo);break;default:throw Error(i(163))}}catch(t){Ka(e,e.return,t)}if(null!==(t=e.sibling)){t.return=e.return,yi=t;break}yi=e.return}n=bi,bi=!1}(e,n),Ni(n,e),z(e.containerInfo),e.current=n,zi(n),Ot(),na=u,It=s,ta.transition=a}else e.current=n;if(wa&&(wa=!1,Ta=e,Ea=o),0===(a=e.pendingLanes)&&(Sa=null),function(e){if(qt&&"function"==typeof qt.onCommitFiberRoot)try{qt.onCommitFiberRoot(Ht,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),Ia(e,Lt()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(_a)throw _a=!1,e=xa,xa=null,e;0!=(1&Ea)&&0!==e.tag&&Xa(),0!=(1&(a=e.pendingLanes))?e===Pa?Ra++:(Ra=0,Pa=e):Ra=0,Xt()}(e,t,n,r)}finally{ta.transition=o,It=r}return null}function Xa(){if(null!==Ta){var e=Nt(Ea),t=ta.transition,n=It;try{if(ta.transition=null,It=16>e?16:e,null===Ta)var r=!1;else{if(e=Ta,Ta=null,Ea=0,0!=(6&na))throw Error(i(331));var o=na;for(na|=4,yi=e.current;null!==yi;){var a=yi,s=a.child;if(0!=(16&yi.flags)){var u=a.deletions;if(null!==u){for(var l=0;l<u.length;l++){var c=u[l];for(yi=c;null!==yi;){var f=yi;switch(f.tag){case 0:case 11:case 15:_i(8,f,a)}var d=f.child;if(null!==d)d.return=f,yi=d;else for(;null!==yi;){var p=(f=yi).sibling,h=f.return;if(wi(f),f===c){yi=null;break}if(null!==p){p.return=h,yi=p;break}yi=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var g=y.sibling;y.sibling=null,y=g}while(null!==y)}}yi=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,yi=s;else e:for(;null!==yi;){if(0!=(2048&(a=yi).flags))switch(a.tag){case 0:case 11:case 15:_i(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,yi=v;break e}yi=a.return}}var b=e.current;for(yi=b;null!==yi;){var _=(s=yi).child;if(0!=(2064&s.subtreeFlags)&&null!==_)_.return=s,yi=_;else e:for(s=b;null!==yi;){if(0!=(2048&(u=yi).flags))try{switch(u.tag){case 0:case 11:case 15:xi(9,u)}}catch(e){Ka(u,u.return,e)}if(u===s){yi=null;break e}var x=u.sibling;if(null!==x){x.return=u.return,yi=x;break e}yi=u.return}}if(na=o,Xt(),qt&&"function"==typeof qt.onPostCommitFiberRoot)try{qt.onPostCommitFiberRoot(Ht,e)}catch(e){}r=!0}return r}finally{It=n,ta.transition=t}}return!1}function Za(e,t,n){e=Vn(e,t=ko(0,t=To(n,t),1),1),t=Ma(),null!==e&&(Bt(e,1,t),Ia(e,t))}function Ka(e,t,n){if(3===e.tag)Za(e,e,n);else for(;null!==t;){if(3===t.tag){Za(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Sa||!Sa.has(r))){t=Vn(t,e=Co(t,e=To(n,e),1),1),e=Ma(),null!==t&&(Bt(t,1,e),Ia(t,e));break}}t=t.return}}function es(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Ma(),e.pingedLanes|=e.suspendedLanes&n,ra===e&&(ia&n)===n&&(4===ua||3===ua&&(130023424&ia)===ia&&500>Lt()-ma?Wa(e,0):da|=n),Ia(e,t)}function ts(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Tt,0==(130023424&(Tt<<=1))&&(Tt=4194304)));var n=Ma();null!==(e=$n(e,t))&&(Bt(e,t,n),Ia(e,n))}function ns(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ts(e,n)}function rs(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),ts(e,n)}function os(e,t){return Ut(e,t)}function is(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function as(e,t,n,r){return new is(e,t,n,r)}function ss(e){return!(!(e=e.prototype)||!e.isReactComponent)}function us(e,t){var n=e.alternate;return null===n?((n=as(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ls(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)ss(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case l:return cs(n.children,o,a,t);case c:s=8,o|=8;break;case f:return(e=as(12,n,t,2|o)).elementType=f,e.lanes=a,e;case m:return(e=as(13,n,t,o)).elementType=m,e.lanes=a,e;case y:return(e=as(19,n,t,o)).elementType=y,e.lanes=a,e;case b:return fs(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case d:s=10;break e;case p:s=9;break e;case h:s=11;break e;case g:s=14;break e;case v:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=as(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function cs(e,t,n,r){return(e=as(7,e,r,t)).lanes=n,e}function fs(e,t,n,r){return(e=as(22,e,r,t)).elementType=b,e.lanes=n,e.stateNode={isHidden:!1},e}function ds(e,t,n){return(e=as(6,e,null,t)).lanes=n,e}function ps(e,t,n){return(t=as(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hs(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=q,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mt(0),this.expirationTimes=Mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mt(0),this.identifierPrefix=r,this.onRecoverableError=o,Q&&(this.mutableSourceEagerHydrationData=null)}function ms(e,t,n,r,o,i,a,s,u){return e=new hs(e,t,n,s,u),1===t?(t=1,!0===i&&(t|=8)):t=0,i=as(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qn(i),e}function ys(e){if(!e)return lt;e:{if(T(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ht(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(ht(n))return gt(e,n,t)}return t}function gs(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=P(t))?null:e.stateNode}function vs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function bs(e,t){vs(e,t),(e=e.alternate)&&vs(e,t)}function _s(e){return null===(e=P(e))?null:e.stateNode}function xs(){return null}return ba=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||ft.current)No=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return No=!1,function(e,t,n){switch(t.tag){case 3:Ho(t),Tn();break;case 5:br(t);break;case 1:ht(t.type)&&vt(t);break;case 4:gr(t,t.stateNode.containerInfo);break;case 10:Un(0,t.type._context,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(ut(xr,1&xr.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Zo(e,t,n):(ut(xr,1&xr.current),null!==(e=ii(e,t,n))?e.sibling:null);ut(xr,1&xr.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return ri(e,t,n);t.flags|=128}var o=t.memoizedState;if(null!==o&&(o.rendering=null,o.tail=null,o.lastEffect=null),ut(xr,xr.current),r)break;return null;case 22:case 23:return t.lanes=0,Lo(e,t,n)}return ii(e,t,n)}(e,t,n);No=0!=(131072&e.flags)}else No=!1,hn&&0!=(1048576&t.flags)&&ln(t,tn,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;oi(e,t),e=t.pendingProps;var o=pt(t,ct.current);On(t,n),o=Dr(null,t,r,e,o,n);var a=Or();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ht(r)?(a=!0,vt(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,qn(t),o.updater=tr,t.stateNode=o,o._reactInternals=t,ir(t,r,e,n),t=$o(null,t,r,!0,a,n)):(t.tag=0,hn&&a&&cn(t),Uo(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(oi(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return ss(e)?1:0;if(null!=e){if((e=e.$$typeof)===h)return 11;if(e===g)return 14}return 2}(r),e=Cn(r,e),o){case 0:t=Wo(null,t,r,e,n);break e;case 1:t=Go(null,t,r,e,n);break e;case 11:t=zo(null,t,r,e,n);break e;case 14:t=Do(null,t,r,Cn(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Wo(e,t,r,o=t.elementType===r?o:Cn(r,o),n);case 1:return r=t.type,o=t.pendingProps,Go(e,t,r,o=t.elementType===r?o:Cn(r,o),n);case 3:e:{if(Ho(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,jn(e,t),Xn(t,r,null,n);var s=t.memoizedState;if(r=s.element,Q&&a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=qo(e,t,r,n,o=To(Error(i(423)),t));break e}if(r!==o){t=qo(e,t,r,n,o=To(Error(i(424)),t));break e}for(Q&&(pn=We(t.stateNode.containerInfo),dn=t,hn=!0,yn=null,mn=!1),n=fr(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Tn(),r===o){t=ii(e,t,n);break e}Uo(e,t,r,n)}t=t.child}return t;case 5:return br(t),null===e&&_n(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,W(r,o)?s=null:null!==a&&W(r,a)&&(t.flags|=32),Fo(e,t),Uo(e,t,s,n),t.child;case 6:return null===e&&_n(t),null;case 13:return Zo(e,t,n);case 4:return gr(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=cr(t,null,r,n):Uo(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,zo(e,t,r,o=t.elementType===r?o:Cn(r,o),n);case 7:return Uo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Uo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,Un(0,r,s=o.value),null!==a)if(jt(a.value,s)){if(a.children===o.children&&!ft.current){t=ii(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){s=a.child;for(var l=u.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=Yn(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Dn(a.return,n,t),u.lanes|=n;break}l=l.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Dn(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}Uo(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,On(t,n),r=r(o=Ln(o)),t.flags|=1,Uo(e,t,r,n),t.child;case 14:return o=Cn(r=t.type,t.pendingProps),Do(e,t,r,o=Cn(r.type,o),n);case 15:return Oo(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Cn(r,o),oi(e,t),t.tag=1,ht(r)?(e=!0,vt(t)):e=!1,On(t,n),rr(t,r,o),ir(t,r,o,n),$o(null,t,r,!0,e,n);case 19:return ri(e,t,n);case 22:return Lo(e,t,n)}throw Error(i(156,t.tag))},t.attemptContinuousHydration=function(e){if(13===e.tag){var t=$n(e,134217728);if(null!==t)Aa(t,e,134217728,Ma());bs(e,134217728)}},t.attemptDiscreteHydration=function(e){if(13===e.tag){var t=$n(e,1);if(null!==t)Aa(t,e,1,Ma());bs(e,1)}},t.attemptHydrationAtCurrentPriority=function(e){if(13===e.tag){var t=Ba(e),n=$n(e,t);if(null!==n)Aa(n,e,t,Ma());bs(e,t)}},t.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Et(t.pendingLanes);0!==n&&(At(t,1|n),Ia(t,Lt()),0==(6&na)&&(va(),Xt()))}break;case 13:La((function(){var t=$n(e,1);if(null!==t){var n=Ma();Aa(t,e,1,n)}})),bs(e,1)}},t.batchedUpdates=function(e,t){var n=na;na|=1;try{return e(t)}finally{0===(na=n)&&(va(),Vt&&Xt())}},t.createComponentSelector=function(e){return{$$typeof:Wi,value:e}},t.createContainer=function(e,t,n,r,o,i,a){return ms(e,t,!1,null,0,r,0,i,a)},t.createHasPseudoClassSelector=function(e){return{$$typeof:Gi,value:e}},t.createHydrationContainer=function(e,t,n,r,o,i,a,s,u){return(e=ms(n,r,!0,e,0,i,0,s,u)).context=ys(null),n=e.current,(i=Yn(r=Ma(),o=Ba(n))).callback=null!=t?t:null,Vn(n,i,o),e.current.lanes=o,Bt(e,o,r),Ia(e,r),e},t.createPortal=function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:u,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}},t.createRoleSelector=function(e){return{$$typeof:$i,value:e}},t.createTestNameSelector=function(e){return{$$typeof:Hi,value:e}},t.createTextSelector=function(e){return{$$typeof:qi,value:e}},t.deferredUpdates=function(e){var t=It,n=ta.transition;try{return ta.transition=null,It=16,e()}finally{It=t,ta.transition=n}},t.discreteUpdates=function(e,t,n,r,o){var i=It,a=ta.transition;try{return ta.transition=null,It=1,e(t,n,r,o)}finally{It=i,ta.transition=a,0===na&&va()}},t.findAllNodes=Xi,t.findBoundingRects=function(e,t){if(!ne)throw Error(i(363));t=Xi(e,t),e=[];for(var n=0;n<t.length;n++)e.push(oe(t[n]));for(t=e.length-1;0<t;t--)for(var r=(n=e[t]).x,o=r+n.width,a=n.y,s=a+n.height,u=t-1;0<=u;u--)if(t!==u){var l=e[u],c=l.x,f=c+l.width,d=l.y,p=d+l.height;if(r>=c&&a>=d&&o<=f&&s<=p){e.splice(t,1);break}if(!(r!==c||n.width!==l.width||p<a||d>s)){d>a&&(l.height+=d-a,l.y=a),p<s&&(l.height=s-d),e.splice(t,1);break}if(!(a!==d||n.height!==l.height||f<r||c>o)){c>r&&(l.width+=c-r,l.x=r),f<o&&(l.width=o-c),e.splice(t,1);break}}return e},t.findHostInstance=gs,t.findHostInstanceWithNoPortals=function(e){return null===(e=null!==(e=R(e))?C(e):null)?null:e.stateNode},t.findHostInstanceWithWarning=function(e){return gs(e)},t.flushControlled=function(e){var t=na;na|=1;var n=ta.transition,r=It;try{ta.transition=null,It=1,e()}finally{It=r,ta.transition=n,0===(na=t)&&(va(),Xt())}},t.flushPassiveEffects=Xa,t.flushSync=La,t.focusWithin=function(e,t){if(!ne)throw Error(i(363));for(t=Ji(e=Yi(e),t),t=Array.from(t),e=0;e<t.length;){var n=t[e++];if(!ae(n)){if(5===n.tag&&ue(n.stateNode))return!0;for(n=n.child;null!==n;)t.push(n),n=n.sibling}}return!1},t.getCurrentUpdatePriority=function(){return It},t.getFindAllNodesFailureDescription=function(e,t){if(!ne)throw Error(i(363));var n=0,r=[];e=[Yi(e),0];for(var o=0;o<e.length;){var a=e[o++],s=e[o++],u=t[s];if((5!==a.tag||!ae(a))&&(Vi(a,u)&&(r.push(Qi(u)),++s>n&&(n=s)),s<t.length))for(a=a.child;null!==a;)e.push(a,s),a=a.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(Qi(t[n]));return"findAllNodes was able to match part of the selector:\n "+r.join(" > ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},t.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?A(e.child.stateNode):e.child.stateNode:null},t.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,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:a.ReactCurrentDispatcher,findHostInstanceByFiber:_s,findFiberByHostInstance:e.findFiberByHostInstance||xs,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{Ht=t.inject(e),qt=t}catch(e){}e=!!t.checkDCE}}return e},t.isAlreadyRendering=function(){return!1},t.observeVisibleRects=function(e,t,n,r){if(!ne)throw Error(i(363));e=Xi(e,t);var o=le(e,n,r).disconnect;return{disconnect:function(){o()}}},t.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},t.runWithPriority=function(e,t){var n=It;try{return It=e,t()}finally{It=n}},t.shouldError=function(){return null},t.shouldSuspend=function(){return!1},t.updateContainer=function(e,t,n,r){var o=t.current,i=Ma(),a=Ba(o);return n=ys(n),null===t.context?t.context=n:t.pendingContext=n,(t=Yn(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Vn(o,t,a))&&(Aa(e,o,a,i),Qn(e,o,a)),a},t}),reactReconciler_production_min}var reactReconciler_developmentExports={},reactReconciler_development={get exports(){return reactReconciler_developmentExports},set exports(e){reactReconciler_developmentExports=e}},hasRequiredReactReconciler_development,hasRequiredReactReconciler;function requireReactReconciler_development(){return hasRequiredReactReconciler_development||(hasRequiredReactReconciler_development=1,"production"!==process.env.NODE_ENV&&(reactReconciler_development.exports=function(e){var t={},n=requireReact(),r=requireScheduler(),o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function a(e){if(!i){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u("warn",e,n)}}function s(e){if(!i){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u("error",e,n)}}function u(e,t,n){var r=o.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}var l=Object.assign;function c(e){return e._reactInternals}var f=!1,d=10,p=11,h=12,m=13,y=14,g=15,v=17,b=18,_=19,x=21,S=22,w=23,T=Symbol.for("react.element"),E=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),M=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),z=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen")),D=(Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker"),Symbol.iterator);function O(e){if(null===e||"object"!=typeof e)return null;var t=D&&e[D]||e["@@iterator"];return"function"==typeof t?t:null}function L(e){return e.displayName||"Context"}function F(e){if(null==e)return null;if("number"==typeof e.tag&&s("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case R:return"Fragment";case E:return"Portal";case k:return"Profiler";case P:return"StrictMode";case A:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case M:return L(e)+".Consumer";case C:return L(e._context)+".Provider";case B:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case N:var t=e.displayName||null;return null!==t?t:F(e.type)||"Memo";case U:var n=e,r=n._payload,o=n._init;try{return F(o(r))}catch(e){return null}}return null}function W(e){return e.displayName||"Context"}function G(e){var t,n,r,o,i=e.tag,a=e.type;switch(i){case 24:return"Cache";case 9:return W(a)+".Consumer";case d:return W(a._context)+".Provider";case 18:return"DehydratedFragment";case p:return t=a,n=a.render,r="ForwardRef",o=n.displayName||n.name||"",t.displayName||(""!==o?r+"("+o+")":r);case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(a);case 8:return a===P?"StrictMode":"Mode";case S:return"Offscreen";case h:return"Profiler";case x:return"Scope";case m:return"Suspense";case _:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case v:case 2:case y:case g:if("function"==typeof a)return a.displayName||a.name||null;if("string"==typeof a)return a}return null}var $=16,H=128,q=256,j=512,Y=1024,V=2048,Q=4096,J=8192,X=16384,Z=32768,K=65536,ee=131072,te=1048576,ne=2097152,re=4194304,oe=16777216,ie=33554432,ae=1028,se=12854,ue=8772,le=2064,ce=14680064,fe=o.ReactCurrentOwner;function de(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var r=t;do{0!=(4098&(t=r).flags)&&(n=t.return),r=t.return}while(r)}return 3===t.tag?n:null}function pe(e){if(de(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function he(e){var t=e.alternate;if(!t){var n=de(e);if(null===n)throw new Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){var s=i.return;if(null!==s){r=o=s;continue}break}if(i.child===a.child){for(var u=i.child;u;){if(u===r)return pe(i),e;if(u===o)return pe(i),t;u=u.sibling}throw new Error("Unable to find node on an unmounted component.")}if(r.return!==o.return)r=i,o=a;else{for(var l=!1,c=i.child;c;){if(c===r){l=!0,r=i,o=a;break}if(c===o){l=!0,o=i,r=a;break}c=c.sibling}if(!l){for(c=a.child;c;){if(c===r){l=!0,r=a,o=i;break}if(c===o){l=!0,o=a,r=i;break}c=c.sibling}if(!l)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==o)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==r.tag)throw new Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function me(e){var t=he(e);return null!==t?ye(t):null}function ye(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){var n=ye(t);if(null!==n)return n;t=t.sibling}return null}function ge(e){var t=he(e);return null!==t?ve(t):null}function ve(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){if(4!==t.tag){var n=ve(t);if(null!==n)return n}t=t.sibling}return null}var be=Array.isArray;function _e(e){return be(e)}var xe=e.getPublicInstance,Se=e.getRootHostContext,we=e.getChildHostContext,Te=e.prepareForCommit,Ee=e.resetAfterCommit,Re=e.createInstance,Pe=e.appendInitialChild,ke=e.finalizeInitialChildren,Ce=e.prepareUpdate,Me=e.shouldSetTextContent,Be=e.createTextInstance,Ae=e.scheduleTimeout,Ie=e.cancelTimeout,Ne=e.noTimeout,Ue=e.isPrimaryRenderer,ze=e.warnsIfNotActing,De=e.supportsMutation,Oe=e.supportsPersistence,Le=e.supportsHydration,Fe=e.getInstanceFromNode;e.beforeActiveInstanceBlur,e.afterActiveInstanceBlur;var We=e.preparePortalMount;e.prepareScopeUpdate,e.getInstanceFromScope;var Ge,$e,He,qe,je,Ye,Ve,Qe=e.getCurrentEventPriority,Je=e.detachDeletedInstance,Xe=e.supportsMicrotasks,Ze=e.scheduleMicrotask,Ke=e.supportsTestSelectors,et=e.findFiberRoot,tt=e.getBoundingRect,nt=e.getTextContent,rt=e.isHiddenSubtree,ot=e.matchAccessibilityRole,it=e.setFocusIfFocusable,at=e.setupIntersectionObserver,st=e.appendChild,ut=e.appendChildToContainer,lt=e.commitTextUpdate,ct=e.commitMount,ft=e.commitUpdate,dt=e.insertBefore,pt=e.insertInContainerBefore,ht=e.removeChild,mt=e.removeChildFromContainer,yt=e.resetTextContent,gt=e.hideInstance,vt=e.hideTextInstance,bt=e.unhideInstance,_t=e.unhideTextInstance,xt=e.clearContainer,St=e.cloneInstance,wt=e.createContainerChildSet,Tt=e.appendChildToContainerChildSet,Et=e.finalizeContainerChildren,Rt=e.replaceContainerChildren,Pt=e.cloneHiddenInstance,kt=e.cloneHiddenTextInstance,Ct=e.canHydrateInstance,Mt=e.canHydrateTextInstance,Bt=e.canHydrateSuspenseInstance,At=e.isSuspenseInstancePending,It=e.isSuspenseInstanceFallback,Nt=e.getSuspenseInstanceFallbackErrorDetails,Ut=e.registerSuspenseInstanceRetry,zt=e.getNextHydratableSibling,Dt=e.getFirstHydratableChild,Ot=e.getFirstHydratableChildWithinContainer,Lt=e.getFirstHydratableChildWithinSuspenseInstance,Ft=e.hydrateInstance,Wt=e.hydrateTextInstance,Gt=e.hydrateSuspenseInstance,$t=e.getNextHydratableInstanceAfterSuspenseInstance,Ht=e.commitHydratedContainer,qt=e.commitHydratedSuspenseInstance,jt=e.clearSuspenseBoundary,Yt=e.clearSuspenseBoundaryFromContainer,Vt=e.shouldDeleteUnhydratedTailInstances,Qt=e.didNotMatchHydratedContainerTextInstance,Jt=e.didNotMatchHydratedTextInstance,Xt=e.didNotHydrateInstanceWithinContainer,Zt=e.didNotHydrateInstanceWithinSuspenseInstance,Kt=e.didNotHydrateInstance,en=e.didNotFindHydratableInstanceWithinContainer,tn=e.didNotFindHydratableTextInstanceWithinContainer,nn=e.didNotFindHydratableSuspenseInstanceWithinContainer,rn=e.didNotFindHydratableInstanceWithinSuspenseInstance,on=e.didNotFindHydratableTextInstanceWithinSuspenseInstance,an=e.didNotFindHydratableSuspenseInstanceWithinSuspenseInstance,sn=e.didNotFindHydratableInstance,un=e.didNotFindHydratableTextInstance,ln=e.didNotFindHydratableSuspenseInstance,cn=e.errorHydratingContainer,fn=0;function dn(){}dn.__reactDisabledLog=!0;var pn,hn=o.ReactCurrentDispatcher;function mn(e,t,n){if(void 0===pn)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);pn=r&&r[1]||""}return"\n"+pn+e}var yn,gn=!1,vn="function"==typeof WeakMap?WeakMap:Map;function bn(e,t){if(!e||gn)return"";var n,r=yn.get(e);if(void 0!==r)return r;gn=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=hn.current,hn.current=null,function(){if(0===fn){Ge=console.log,$e=console.info,He=console.warn,qe=console.error,je=console.group,Ye=console.groupCollapsed,Ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:dn,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}fn++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var u=t.stack.split("\n"),c=n.stack.split("\n"),f=u.length-1,d=c.length-1;f>=1&&d>=0&&u[f]!==c[d];)d--;for(;f>=1&&d>=0;f--,d--)if(u[f]!==c[d]){if(1!==f||1!==d)do{if(f--,--d<0||u[f]!==c[d]){var p="\n"+u[f].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),"function"==typeof e&&yn.set(e,p),p}}while(f>=1&&d>=0);break}}}finally{gn=!1,hn.current=o,function(){if(0==--fn){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:l({},e,{value:Ge}),info:l({},e,{value:$e}),warn:l({},e,{value:He}),error:l({},e,{value:qe}),group:l({},e,{value:je}),groupCollapsed:l({},e,{value:Ye}),groupEnd:l({},e,{value:Ve})})}fn<0&&s("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var h=e?e.displayName||e.name:"",m=h?mn(h):"";return"function"==typeof e&&yn.set(e,m),m}function _n(e,t,n){return bn(e,!1)}function xn(e,t,n){if(null==e)return"";if("function"==typeof e)return bn(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return mn(e);switch(e){case A:return mn("Suspense");case I:return mn("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case B:return _n(e.render);case N:return xn(e.type,t,n);case U:var o=e,i=o._payload,a=o._init;try{return xn(a(i),t,n)}catch(e){}}return""}yn=new vn;var Sn=Object.prototype.hasOwnProperty,wn={},Tn=o.ReactDebugCurrentFrame;function En(e){if(e){var t=e._owner,n=xn(e.type,e._source,t?t.type:null);Tn.setExtraStackFrame(n)}else Tn.setExtraStackFrame(null)}function Rn(e,t,n,r,o){var i=Function.call.bind(Sn);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}u=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(En(o),s("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof u),En(null)),u instanceof Error&&!(u.message in wn)&&(wn[u.message]=!0,En(o),s("Failed %s type: %s",n,u.message),En(null))}}var Pn,kn=[];Pn=[];var Cn,Mn=-1;function Bn(e){return{current:e}}function An(e,t){Mn<0?s("Unexpected pop."):(t!==Pn[Mn]&&s("Unexpected Fiber popped."),e.current=kn[Mn],kn[Mn]=null,Pn[Mn]=null,Mn--)}function In(e,t,n){Mn++,kn[Mn]=e.current,Pn[Mn]=n,e.current=t}Cn={};var Nn={};Object.freeze(Nn);var Un=Bn(Nn),zn=Bn(!1),Dn=Nn;function On(e,t,n){return n&&Gn(t)?Dn:Un.current}function Ln(e,t,n){var r=e.stateNode;r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=n}function Fn(e,t){var n=e.type.contextTypes;if(!n)return Nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={};for(var i in n)o[i]=t[i];return Rn(n,o,"context",G(e)||"Unknown"),r&&Ln(e,t,o),o}function Wn(){return zn.current}function Gn(e){var t=e.childContextTypes;return null!=t}function $n(e){An(zn,e),An(Un,e)}function Hn(e){An(zn,e),An(Un,e)}function qn(e,t,n){if(Un.current!==Nn)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");In(Un,t,e),In(zn,n,e)}function jn(e,t,n){var r=e.stateNode,o=t.childContextTypes;if("function"!=typeof r.getChildContext){var i=G(e)||"Unknown";return Cn[i]||(Cn[i]=!0,s("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",i,i)),n}var a=r.getChildContext();for(var u in a)if(!(u in o))throw new Error((G(e)||"Unknown")+'.getChildContext(): key "'+u+'" is not defined in childContextTypes.');return Rn(o,a,"child context",G(e)||"Unknown"),l({},n,a)}function Yn(e){var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||Nn;return Dn=Un.current,In(Un,n,e),In(zn,zn.current,e),!0}function Vn(e,t,n){var r=e.stateNode;if(!r)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var o=jn(e,t,Dn);r.__reactInternalMemoizedMergedChildContext=o,An(zn,e),An(Un,e),In(Un,o,e),In(zn,n,e)}else An(zn,e),In(zn,n,e)}function Qn(e){if(!function(e){return de(e)===e}(e)||1!==e.tag)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case 3:return t.stateNode.context;case 1:if(Gn(t.type))return t.stateNode.__reactInternalMemoizedMergedChildContext}t=t.return}while(null!==t);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}var Jn=16,Xn=Math.clz32?Math.clz32:function(e){var t=e>>>0;if(0===t)return 32;return 31-(Zn(t)/Kn|0)|0},Zn=Math.log,Kn=Math.LN2;var er=16,tr=4194240,nr=1024,rr=2048,or=4096,ir=8192,ar=16384,sr=32768,ur=65536,lr=131072,cr=262144,fr=524288,dr=1048576,pr=2097152,hr=130023424,mr=4194304,yr=8388608,gr=16777216,vr=33554432,br=67108864,_r=mr,xr=134217728,Sr=268435455,wr=268435456,Tr=536870912,Er=1073741824;function Rr(e){return 1&e?"Sync":2&e?"InputContinuousHydration":4&e?"InputContinuous":8&e?"DefaultHydration":e&er?"Default":32&e?"TransitionHydration":e&tr?"Transition":e&hr?"Retry":e&xr?"SelectiveHydration":e&wr?"IdleHydration":e&Tr?"Idle":e&Er?"Offscreen":void 0}var Pr=-1,kr=64,Cr=mr;function Mr(e){switch(Lr(e)){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case er:return er;case 32:return 32;case 64:case 128:case 256:case 512:case nr:case rr:case or:case ir:case ar:case sr:case ur:case lr:case cr:case fr:case dr:case pr:return e&tr;case mr:case yr:case gr:case vr:case br:return e&hr;case xr:return xr;case wr:return wr;case Tr:return Tr;case Er:return Er;default:return s("Should have found matching lanes. This is a bug in React."),e}}function Br(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&Sr;if(0!==a){var s=a&~o;if(0!==s)r=Mr(s);else{var u=a&i;0!==u&&(r=Mr(u))}}else{var l=n&~o;0!==l?r=Mr(l):0!==i&&(r=Mr(i))}if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)){var c=Lr(r),f=Lr(t);if(c>=f||c===er&&0!=(f&tr))return t}0!=(4&r)&&(r|=n&er);var d=e.entangledLanes;if(0!==d)for(var p=e.entanglements,h=r&d;h>0;){var m=Wr(h),y=1<<m;r|=p[m],h&=~y}return r}function Ar(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case er:case 32:case 64:case 128:case 256:case 512:case nr:case rr:case or:case ir:case ar:case sr:case ur:case lr:case cr:case fr:case dr:case pr:return t+5e3;case mr:case yr:case gr:case vr:case br:case xr:case wr:case Tr:case Er:return Pr;default:return s("Should have found matching lanes. This is a bug in React."),Pr}}function Ir(e){var t=-1073741825&e.pendingLanes;return 0!==t?t:t&Er?Er:0}function Nr(e){return 0!=(e&Sr)}function Ur(e){return(e&hr)===e}function zr(e,t){return 0!=(30&t)}function Dr(e){return 0!=(e&tr)}function Or(){var e=kr;return 0==((kr<<=1)&tr)&&(kr=64),e}function Lr(e){return e&-e}function Fr(e){return Lr(e)}function Wr(e){return 31-Xn(e)}function Gr(e){return Wr(e)}function $r(e,t){return 0!=(e&t)}function Hr(e,t){return(e&t)===t}function qr(e,t){return e|t}function jr(e,t){return e&~t}function Yr(e,t){return e&t}function Vr(e){for(var t=[],n=0;n<31;n++)t.push(e);return t}function Qr(e,t,n){e.pendingLanes|=t,t!==Tr&&(e.suspendedLanes=0,e.pingedLanes=0),e.eventTimes[Gr(t)]=n}function Jr(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function Xr(e,t){for(var n=e.entangledLanes|=t,r=e.entanglements,o=n;o;){var i=Wr(o),a=1<<i;a&t|r[i]&t&&(r[i]|=t),o&=~a}}function Zr(e,t,n){if(So)for(var r=e.pendingUpdatersLaneMap;n>0;){var o=Gr(n),i=1<<o;r[o].add(t),n&=~i}}function Kr(e,t){if(So)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;t>0;){var o=Gr(t),i=1<<o,a=n[o];a.size>0&&(a.forEach((function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)})),a.clear()),t&=~i}}var eo=Tr,to=0;function no(){return to}function ro(e){to=e}function oo(e,t){return 0!==e&&e<t}function io(e){var t=Lr(e);return oo(1,t)?oo(4,t)?Nr(t)?16:eo:4:1}var ao=r.unstable_scheduleCallback,so=r.unstable_cancelCallback,uo=r.unstable_shouldYield,lo=r.unstable_requestPaint,co=r.unstable_now,fo=r.unstable_ImmediatePriority,po=r.unstable_UserBlockingPriority,ho=r.unstable_NormalPriority,mo=r.unstable_IdlePriority,yo=r.unstable_yieldValue,go=r.unstable_setDisableYieldValue,vo=null,bo=null,_o=null,xo=!1,So="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;function wo(e){if("function"==typeof yo&&(go(e),i=e),bo&&"function"==typeof bo.setStrictMode)try{bo.setStrictMode(vo,e)}catch(e){xo||(xo=!0,s("React instrumentation encountered an error: %s",e))}}function To(e){_o=e}function Eo(){for(var e=new Map,t=1,n=0;n<31;n++){var r=Rr(t);e.set(t,r),t*=2}return e}function Ro(){null!==_o&&"function"==typeof _o.markCommitStopped&&_o.markCommitStopped()}function Po(e){null!==_o&&"function"==typeof _o.markComponentRenderStarted&&_o.markComponentRenderStarted(e)}function ko(){null!==_o&&"function"==typeof _o.markComponentRenderStopped&&_o.markComponentRenderStopped()}function Co(e){null!==_o&&"function"==typeof _o.markComponentLayoutEffectMountStarted&&_o.markComponentLayoutEffectMountStarted(e)}function Mo(e){null!==_o&&"function"==typeof _o.markComponentLayoutEffectUnmountStarted&&_o.markComponentLayoutEffectUnmountStarted(e)}function Bo(){null!==_o&&"function"==typeof _o.markComponentLayoutEffectUnmountStopped&&_o.markComponentLayoutEffectUnmountStopped()}function Ao(e,t,n){null!==_o&&"function"==typeof _o.markComponentErrored&&_o.markComponentErrored(e,t,n)}function Io(e,t,n){null!==_o&&"function"==typeof _o.markComponentSuspended&&_o.markComponentSuspended(e,t,n)}function No(e){null!==_o&&"function"==typeof _o.markRenderStarted&&_o.markRenderStarted(e)}function Uo(){null!==_o&&"function"==typeof _o.markRenderStopped&&_o.markRenderStopped()}function zo(e,t){null!==_o&&"function"==typeof _o.markStateUpdateScheduled&&_o.markStateUpdateScheduled(e,t)}var Do="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Oo=null,Lo=!1,Fo=!1;function Wo(e){null===Oo?Oo=[e]:Oo.push(e)}function Go(){Lo&&$o()}function $o(){if(!Fo&&null!==Oo){Fo=!0;var e=0,t=no();try{var n=Oo;for(ro(1);e<n.length;e++){var r=n[e];do{r=r(true)}while(null!==r)}Oo=null,Lo=!1}catch(t){throw null!==Oo&&(Oo=Oo.slice(e+1)),ao(fo,$o),t}finally{ro(t),Fo=!1}}return null}function Ho(e){return e.current.memoizedState.isDehydrated}var qo=[],jo=0,Yo=null,Vo=0,Qo=[],Jo=0,Xo=null,Zo=1,Ko="";function ei(){var e=Ko;return(Zo&~function(e){return 1<<oi(e)-1}(Zo)).toString(32)+e}function ti(e,t){ai(),qo[jo++]=Vo,qo[jo++]=Yo,Yo=e,Vo=t}function ni(e,t,n){ai(),Qo[Jo++]=Zo,Qo[Jo++]=Ko,Qo[Jo++]=Xo,Xo=e;var r=Zo,o=Ko,i=oi(r)-1,a=r&~(1<<i),s=n+1,u=oi(t)+i;if(u>30){var l=i-i%5,c=(a&(1<<l)-1).toString(32),f=a>>l,d=i-l,p=oi(t)+d;Zo=1<<p|(s<<d|f),Ko=c+o}else{Zo=1<<u|(s<<i|a),Ko=o}}function ri(e){if(ai(),null!==e.return){ti(e,1),ni(e,1,0)}}function oi(e){return 32-Xn(e)}function ii(e){for(;e===Yo;)Yo=qo[--jo],qo[jo]=null,Vo=qo[--jo],qo[jo]=null;for(;e===Xo;)Xo=Qo[--Jo],Qo[Jo]=null,Ko=Qo[--Jo],Qo[Jo]=null,Zo=Qo[--Jo],Qo[Jo]=null}function ai(){ki()||s("Expected to be hydrating. This is a bug in React. Please file an issue.")}var si=null,ui=null,li=!1,ci=!1,fi=null;function di(){li&&s("We should not be hydrating here. This is a bug in React. Please file a bug.")}function pi(){ci=!0}function hi(e,t,n){return!!Le&&(ui=Lt(t),si=e,li=!0,fi=null,ci=!1,null!==n&&function(e,t){ai(),Qo[Jo++]=Zo,Qo[Jo++]=Ko,Qo[Jo++]=Xo,Zo=t.id,Ko=t.overflow,Xo=e}(e,n),!0)}function mi(e,t){switch(e.tag){case 3:Xt(e.stateNode.containerInfo,t);break;case 5:var n=0!=(1&e.mode);Kt(e.type,e.memoizedProps,e.stateNode,t,n);break;case m:var r=e.memoizedState;null!==r.dehydrated&&Zt(r.dehydrated,t)}}function yi(e,t){mi(e,t);var n,r=((n=xh(5,null,null,0)).elementType="DELETED",n);r.stateNode=t,r.return=e;var o=e.deletions;null===o?(e.deletions=[r],e.flags|=$):o.push(r)}function gi(e,t){if(!ci)switch(e.tag){case 3:var n=e.stateNode.containerInfo;switch(t.tag){case 5:var r=t.type,o=t.pendingProps;en(n,r,o);break;case 6:var i=t.pendingProps;tn(n,i);break;case m:nn(n)}break;case 5:var a=e.type,s=e.memoizedProps,u=e.stateNode;switch(t.tag){case 5:var l=t.type,c=t.pendingProps,f=0!=(1&e.mode);sn(a,s,u,l,c,f);break;case 6:var d=t.pendingProps,p=0!=(1&e.mode);un(a,s,u,d,p);break;case m:ln(a,s,u)}break;case m:var h=e.memoizedState.dehydrated;if(null!==h)switch(t.tag){case 5:var y=t.type,g=t.pendingProps;rn(h,y,g);break;case 6:var v=t.pendingProps;on(h,v);break;case m:an(h)}break;default:return}}function vi(e,t){t.flags=-4097&t.flags|2,gi(e,t)}function bi(e,t){switch(e.tag){case 5:var n=e.type,r=e.pendingProps,o=Ct(t,n,r);return null!==o&&(e.stateNode=o,si=e,ui=Dt(o),!0);case 6:var i=e.pendingProps,a=Mt(t,i);return null!==a&&(e.stateNode=a,si=e,ui=null,!0);case m:var s=Bt(t);if(null!==s){var u={dehydrated:s,treeContext:(ai(),null!==Xo?{id:Zo,overflow:Ko}:null),retryLane:Er};e.memoizedState=u;var l=function(e){var t=xh(b,null,null,0);return t.stateNode=e,t}(s);return l.return=e,e.child=l,si=e,ui=null,!0}return!1;default:return!1}}function _i(e){return 0!=(1&e.mode)&&0==(e.flags&H)}function xi(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Si(e){if(li){var t=ui;if(!t)return _i(e)&&(gi(si,e),xi()),vi(si,e),li=!1,void(si=e);var n=t;if(!bi(e,t)){_i(e)&&(gi(si,e),xi()),t=zt(n);var r=si;if(!t||!bi(e,t))return vi(si,e),li=!1,void(si=e);yi(r,n)}}}function wi(e){for(var t=e.return;null!==t&&5!==t.tag&&3!==t.tag&&t.tag!==m;)t=t.return;si=t}function Ti(e){if(!Le)return!1;if(e!==si)return!1;if(!li)return wi(e),li=!0,!1;if(3!==e.tag&&(5!==e.tag||Vt(e.type)&&!Me(e.type,e.memoizedProps))){var t=ui;if(t)if(_i(e))Ei(e),xi();else for(;t;)yi(e,t),t=zt(t)}return wi(e),ui=e.tag===m?function(e){if(!Le)throw new Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return $t(n)}(e):si?zt(e.stateNode):null,!0}function Ei(e){for(var t=ui;t;)mi(e,t),t=zt(t)}function Ri(){Le&&(si=null,ui=null,li=!1,ci=!1)}function Pi(){null!==fi&&(bp(fi),fi=null)}function ki(){return li}function Ci(e){null===fi?fi=[e]:fi.push(e)}var Mi=o.ReactCurrentBatchConfig;function Bi(e,t){if(Do(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!Sn.call(t,i)||!Do(e[i],t[i]))return!1}return!0}function Ai(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case 5:return mn(e.type);case 16:return mn("Lazy");case m:return mn("Suspense");case _:return mn("SuspenseList");case 0:case 2:case g:return _n(e.type);case p:return _n(e.type.render);case 1:return bn(e.type,!0);default:return""}}function Ii(e){try{var t="",n=e;do{t+=Ai(n),n=n.return}while(n);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var Ni=o.ReactDebugCurrentFrame,Ui=null,zi=!1;function Di(){return null===Ui?"":Ii(Ui)}function Oi(){Ni.getCurrentStack=null,Ui=null,zi=!1}function Li(e){Ni.getCurrentStack=null===e?null:Di,Ui=e,zi=!1}function Fi(e){zi=e}var Wi={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Gi=function(e){var t=[];return e.forEach((function(e){t.push(e)})),t.sort().join(", ")},$i=[],Hi=[],qi=[],ji=[],Yi=[],Vi=[],Qi=new Set;Wi.recordUnsafeLifecycleWarnings=function(e,t){Qi.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&$i.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillMount&&Hi.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&qi.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&ji.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&Yi.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillUpdate&&Vi.push(e))},Wi.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;$i.length>0&&($i.forEach((function(t){e.add(G(t)||"Component"),Qi.add(t.type)})),$i=[]);var t=new Set;Hi.length>0&&(Hi.forEach((function(e){t.add(G(e)||"Component"),Qi.add(e.type)})),Hi=[]);var n=new Set;qi.length>0&&(qi.forEach((function(e){n.add(G(e)||"Component"),Qi.add(e.type)})),qi=[]);var r=new Set;ji.length>0&&(ji.forEach((function(e){r.add(G(e)||"Component"),Qi.add(e.type)})),ji=[]);var o=new Set;Yi.length>0&&(Yi.forEach((function(e){o.add(G(e)||"Component"),Qi.add(e.type)})),Yi=[]);var i=new Set;(Vi.length>0&&(Vi.forEach((function(e){i.add(G(e)||"Component"),Qi.add(e.type)})),Vi=[]),t.size>0)&&s("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",Gi(t));r.size>0&&s("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s",Gi(r));i.size>0&&s("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",Gi(i));e.size>0&&a("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Gi(e));n.size>0&&a("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Gi(n));o.size>0&&a("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Gi(o))};var Ji=new Map,Xi=new Set;function Zi(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Ki(e){try{return ea(e),!1}catch(e){return!0}}function ea(e){return""+e}function ta(e){if(Ki(e))return s("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Zi(e)),ea(e)}function na(e,t){if(e&&e.defaultProps){var n=l({},t),r=e.defaultProps;for(var o in r)void 0===n[o]&&(n[o]=r[o]);return n}return t}Wi.recordLegacyContextWarning=function(e,t){var n=function(e){for(var t=null,n=e;null!==n;)8&n.mode&&(t=n),n=n.return;return t}(e);if(null!==n){if(!Xi.has(e.type)){var r=Ji.get(n);(null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],Ji.set(n,r)),r.push(e))}}else s("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.")},Wi.flushLegacyContextWarning=function(){Ji.forEach((function(e,t){if(0!==e.length){var n=e[0],r=new Set;e.forEach((function(e){r.add(G(e)||"Component"),Xi.add(e.type)}));var o=Gi(r);try{Li(n),s("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",o)}finally{Oi()}}}))},Wi.discardPendingWarnings=function(){$i=[],Hi=[],qi=[],ji=[],Yi=[],Vi=[],Ji=new Map};var ra,oa=Bn(null);ra={};var ia=null,aa=null,sa=null,ua=!1;function la(){ia=null,aa=null,sa=null,ua=!1}function ca(){ua=!0}function fa(){ua=!1}function da(e,t,n){Ue?(In(oa,t._currentValue,e),t._currentValue=n,void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==ra&&s("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=ra):(In(oa,t._currentValue2,e),t._currentValue2=n,void 0!==t._currentRenderer2&&null!==t._currentRenderer2&&t._currentRenderer2!==ra&&s("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer2=ra)}function pa(e,t){var n=oa.current;An(oa,t),Ue?e._currentValue=n:e._currentValue2=n}function ha(e,t,n){for(var r=e;null!==r;){var o=r.alternate;if(Hr(r.childLanes,t)?null===o||Hr(o.childLanes,t)||(o.childLanes=qr(o.childLanes,t)):(r.childLanes=qr(r.childLanes,t),null!==o&&(o.childLanes=qr(o.childLanes,t))),r===n)break;r=r.return}r!==n&&s("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function ma(e,t,n){!function(e,t,n){var r=e.child;null!==r&&(r.return=e);for(;null!==r;){var o=void 0,i=r.dependencies;if(null!==i){o=r.child;for(var a=i.firstContext;null!==a;){if(a.context===t){if(1===r.tag){var s=Fr(n),u=Ba(Pr,s);u.tag=Pa;var l=r.updateQueue;if(null===l);else{var c=l.shared,f=c.pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}r.lanes=qr(r.lanes,n);var p=r.alternate;null!==p&&(p.lanes=qr(p.lanes,n)),ha(r.return,n,e),i.lanes=qr(i.lanes,n);break}a=a.next}}else if(r.tag===d)o=r.type===e.type?null:r.child;else if(r.tag===b){var h=r.return;if(null===h)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");h.lanes=qr(h.lanes,n);var m=h.alternate;null!==m&&(m.lanes=qr(m.lanes,n)),ha(h,n,e),o=r.sibling}else o=r.child;if(null!==o)o.return=r;else for(o=r;null!==o;){if(o===e){o=null;break}var y=o.sibling;if(null!==y){y.return=o.return,o=y;break}o=o.return}r=o}}(e,t,n)}function ya(e,t){ia=e,aa=null,sa=null;var n=e.dependencies;null!==n&&(null!==n.firstContext&&($r(n.lanes,t)&&Dc(),n.firstContext=null))}function ga(e){ua&&s("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=Ue?e._currentValue:e._currentValue2;if(sa===e);else{var n={context:e,memoizedValue:t,next:null};if(null===aa){if(null===ia)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");aa=n,ia.dependencies={lanes:0,firstContext:n}}else aa=aa.next=n}return t}var va=null;function ba(e){null===va?va=[e]:va.push(e)}function _a(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,ba(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ta(e,r)}function xa(e,t,n,r){var o=t.interleaved;null===o?(n.next=n,ba(t)):(n.next=o.next,o.next=n),t.interleaved=n}function Sa(e,t){return Ta(e,t)}var wa=Ta;function Ta(e,t){e.lanes=qr(e.lanes,t);var n=e.alternate;null!==n&&(n.lanes=qr(n.lanes,t)),null===n&&0!=(4098&e.flags)&&Jp(e);for(var r=e,o=e.return;null!==o;)o.childLanes=qr(o.childLanes,t),null!==(n=o.alternate)?n.childLanes=qr(n.childLanes,t):0!=(4098&o.flags)&&Jp(e),r=o,o=o.return;return 3===r.tag?r.stateNode:null}var Ea,Ra,Pa=2,ka=!1;function Ca(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null};e.updateQueue=t}function Ma(e,t){var n=t.updateQueue,r=e.updateQueue;if(n===r){var o={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects};t.updateQueue=o}}function Ba(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Aa(e,t,n){var r=e.updateQueue;if(null===r)return null;var o=r.shared;if(Ra!==o||Ea||(s("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Ea=!0),0!=(2&Md)){var i=o.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),o.pending=t,wa(e,n)}return function(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,ba(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ta(e,r)}(e,o,t,n)}function Ia(e,t,n){var r=t.updateQueue;if(null!==r){var o=r.shared;if(Dr(n)){var i=o.lanes,a=qr(i=Yr(i,e.pendingLanes),n);o.lanes=a,Xr(e,a)}}}function Na(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r){var o=r.updateQueue;if(n===o){var i=null,a=null,s=n.firstBaseUpdate;if(null!==s){var u=s;do{var l={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};null===a?i=a=l:(a.next=l,a=l),u=u.next}while(null!==u);null===a?i=a=t:(a.next=t,a=t)}else i=a=t;return n={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}}var c=n.lastBaseUpdate;null===c?n.firstBaseUpdate=t:c.next=t,n.lastBaseUpdate=t}function Ua(e,t,n,r,o,i){switch(n.tag){case 1:var a=n.payload;if("function"==typeof a){ca();var s=a.call(i,r,o);if(8&e.mode){wo(!0);try{a.call(i,r,o)}finally{wo(!1)}}return fa(),s}return a;case 3:e.flags=-65537&e.flags|H;case 0:var u,c=n.payload;if("function"==typeof c){if(ca(),u=c.call(i,r,o),8&e.mode){wo(!0);try{c.call(i,r,o)}finally{wo(!1)}}fa()}else u=c;return null==u?r:l({},r,u);case Pa:return ka=!0,r}return r}function za(e,t,n,r){var o=e.updateQueue;ka=!1,Ra=o.shared;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var u=s,l=u.next;u.next=null,null===a?i=l:a.next=l,a=u;var c=e.alternate;if(null!==c){var f=c.updateQueue,d=f.lastBaseUpdate;d!==a&&(null===d?f.firstBaseUpdate=l:d.next=l,f.lastBaseUpdate=u)}}if(null!==i){for(var p=o.baseState,h=0,m=null,y=null,g=null,v=i;;){var b=v.lane,_=v.eventTime;if(Hr(r,b)){if(null!==g){var x={eventTime:_,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null};g=g.next=x}if(p=Ua(e,0,v,p,t,n),null!==v.callback&&0!==v.lane){e.flags|=64;var S=o.effects;null===S?o.effects=[v]:S.push(v)}}else{var w={eventTime:_,lane:b,tag:v.tag,payload:v.payload,callback:v.callback,next:null};null===g?(y=g=w,m=p):g=g.next=w,h=qr(h,b)}if(null===(v=v.next)){if(null===(s=o.shared.pending))break;var T=s,E=T.next;T.next=null,v=E,o.lastBaseUpdate=T,o.shared.pending=null}}null===g&&(m=p),o.baseState=m,o.firstBaseUpdate=y,o.lastBaseUpdate=g;var R=o.shared.interleaved;if(null!==R){var P=R;do{h=qr(h,P.lane),P=P.next}while(P!==R)}else null===i&&(o.shared.lanes=0);Cp(h),e.lanes=h,e.memoizedState=p}Ra=null}function Da(e,t){if("function"!=typeof e)throw new Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Oa(){ka=!1}function La(){return ka}function Fa(e,t,n){var r=t.effects;if(t.effects=null,null!==r)for(var o=0;o<r.length;o++){var i=r[o],a=i.callback;null!==a&&(i.callback=null,Da(a,n))}}Ea=!1,Ra=null;var Wa,Ga,$a,Ha,qa,ja,Ya,Va,Qa,Ja,Xa={},Za=(new n.Component).refs;Wa=new Set,Ga=new Set,$a=new Set,Ha=new Set,Va=new Set,qa=new Set,Qa=new Set,Ja=new Set;var Ka=new Set;function es(e,t,n,r){var o=e.memoizedState,i=n(r,o);if(8&e.mode){wo(!0);try{i=n(r,o)}finally{wo(!1)}}ja(t,i);var a=null==i?o:l({},o,i);(e.memoizedState=a,0===e.lanes)&&(e.updateQueue.baseState=a)}Ya=function(e,t){if(null!==e&&"function"!=typeof e){var n=t+"_"+e;Ka.has(n)||(Ka.add(n),s("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},ja=function(e,t){if(void 0===t){var n=F(e)||"Component";qa.has(n)||(qa.add(n),s("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Xa,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Xa);var ts,ns,rs,os,is,as={isMounted:function(e){var t=fe.current;if(null!==t&&1===t.tag){var n=t,r=n.stateNode;r._warnedAboutRefsInRender||s("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",G(n)||"A component"),r._warnedAboutRefsInRender=!0}var o=c(e);return!!o&&de(o)===o},enqueueSetState:function(e,t,n){var r=c(e),o=dp(),i=pp(r),a=Ba(o,i);a.payload=t,null!=n&&(Ya(n,"setState"),a.callback=n);var s=Aa(r,a,i);null!==s&&(mp(s,r,i,o),Ia(s,r,i)),zo(r,i)},enqueueReplaceState:function(e,t,n){var r=c(e),o=dp(),i=pp(r),a=Ba(o,i);a.tag=1,a.payload=t,null!=n&&(Ya(n,"replaceState"),a.callback=n);var s=Aa(r,a,i);null!==s&&(mp(s,r,i,o),Ia(s,r,i)),zo(r,i)},enqueueForceUpdate:function(e,t){var n=c(e),r=dp(),o=pp(n),i=Ba(r,o);i.tag=Pa,null!=t&&(Ya(t,"forceUpdate"),i.callback=t);var a=Aa(n,i,o);null!==a&&(mp(a,n,o,r),Ia(a,n,o)),function(e,t){null!==_o&&"function"==typeof _o.markForceUpdateScheduled&&_o.markForceUpdateScheduled(e,t)}(n,o)}};function ss(e,t,n,r,o,i,a){var u=e.stateNode;if("function"==typeof u.shouldComponentUpdate){var l=u.shouldComponentUpdate(r,i,a);if(8&e.mode){wo(!0);try{l=u.shouldComponentUpdate(r,i,a)}finally{wo(!1)}}return void 0===l&&s("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",F(t)||"Component"),l}return!t.prototype||!t.prototype.isPureReactComponent||(!Bi(n,r)||!Bi(o,i))}function us(e,t){var n;t.updater=as,e.stateNode=t,n=e,t._reactInternals=n,t._reactInternalInstance=Xa}function ls(e,t,n){var r=!1,o=Nn,i=Nn,a=t.contextType;if("contextType"in t&&(!(null===a||void 0!==a&&a.$$typeof===M&&void 0===a._context)&&!Ja.has(t))){Ja.add(t);var u="";u=void 0===a?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof a?" However, it is set to a "+typeof a+".":a.$$typeof===C?" Did you accidentally pass the Context.Provider instead?":void 0!==a._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(a).join(", ")+"}.",s("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",F(t)||"Component",u)}if("object"==typeof a&&null!==a)i=ga(a);else{o=On(0,t,!0);var l=t.contextTypes;i=(r=null!=l)?Fn(e,o):Nn}var c=new t(n,i);if(8&e.mode){wo(!0);try{c=new t(n,i)}finally{wo(!1)}}var f=e.memoizedState=null!==c.state&&void 0!==c.state?c.state:null;if(us(e,c),"function"==typeof t.getDerivedStateFromProps&&null===f){var d=F(t)||"Component";Ga.has(d)||(Ga.add(d),s("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",d,null===c.state?"null":"undefined",d))}if("function"==typeof t.getDerivedStateFromProps||"function"==typeof c.getSnapshotBeforeUpdate){var p=null,h=null,m=null;if("function"==typeof c.componentWillMount&&!0!==c.componentWillMount.__suppressDeprecationWarning?p="componentWillMount":"function"==typeof c.UNSAFE_componentWillMount&&(p="UNSAFE_componentWillMount"),"function"==typeof c.componentWillReceiveProps&&!0!==c.componentWillReceiveProps.__suppressDeprecationWarning?h="componentWillReceiveProps":"function"==typeof c.UNSAFE_componentWillReceiveProps&&(h="UNSAFE_componentWillReceiveProps"),"function"==typeof c.componentWillUpdate&&!0!==c.componentWillUpdate.__suppressDeprecationWarning?m="componentWillUpdate":"function"==typeof c.UNSAFE_componentWillUpdate&&(m="UNSAFE_componentWillUpdate"),null!==p||null!==h||null!==m){var y=F(t)||"Component",g="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ha.has(y)||(Ha.add(y),s("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles",y,g,null!==p?"\n "+p:"",null!==h?"\n "+h:"",null!==m?"\n "+m:""))}}return r&&Ln(e,o,i),c}function cs(e,t,n,r){var o=t.state;if("function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==o){var i=G(e)||"Component";Wa.has(i)||(Wa.add(i),s("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i)),as.enqueueReplaceState(t,t.state,null)}}function fs(e,t,n,r){!function(e,t,n){var r=e.stateNode,o=F(t)||"Component";r.render||(t.prototype&&"function"==typeof t.prototype.render?s("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",o):s("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",o)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||s("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",o),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&s("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",o),r.propTypes&&s("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",o),r.contextType&&s("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",o),r.contextTypes&&s("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",o),t.contextType&&t.contextTypes&&!Qa.has(t)&&(Qa.add(t),s("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",o)),"function"==typeof r.componentShouldUpdate&&s("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",o),t.prototype&&t.prototype.isPureReactComponent&&void 0!==r.shouldComponentUpdate&&s("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",F(t)||"A pure component"),"function"==typeof r.componentDidUnmount&&s("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",o),"function"==typeof r.componentDidReceiveProps&&s("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",o),"function"==typeof r.componentWillRecieveProps&&s("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",o),"function"==typeof r.UNSAFE_componentWillRecieveProps&&s("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",o);var i=r.props!==n;void 0!==r.props&&i&&s("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o,o),r.defaultProps&&s("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",o,o),"function"!=typeof r.getSnapshotBeforeUpdate||"function"==typeof r.componentDidUpdate||$a.has(t)||($a.add(t),s("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",F(t))),"function"==typeof r.getDerivedStateFromProps&&s("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof r.getDerivedStateFromError&&s("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof t.getSnapshotBeforeUpdate&&s("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",o);var a=r.state;a&&("object"!=typeof a||_e(a))&&s("%s.state: must be set to an object or null",o),"function"==typeof r.getChildContext&&"object"!=typeof t.childContextTypes&&s("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",o)}(e,t,n);var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Za,Ca(e);var i=t.contextType;if("object"==typeof i&&null!==i)o.context=ga(i);else{var a=On(0,t,!0);o.context=Fn(e,a)}if(o.state===n){var u=F(t)||"Component";Va.has(u)||(Va.add(u),s("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",u))}8&e.mode&&Wi.recordLegacyContextWarning(e,o),Wi.recordUnsafeLifecycleWarnings(e,o),o.state=e.memoizedState;var l=t.getDerivedStateFromProps;if("function"==typeof l&&(es(e,t,l,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(!function(e,t){var n=t.state;"function"==typeof t.componentWillMount&&t.componentWillMount(),"function"==typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),n!==t.state&&(s("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",G(e)||"Component"),as.enqueueReplaceState(t,t.state,null))}(e,o),za(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount){var c=4;c|=re,0!=(e.mode&Jn)&&(c|=oe),e.flags|=c}}var ds;function ps(e,t,n){var r=n.ref;if(null!==r&&"function"!=typeof r&&"object"!=typeof r){if(8&e.mode&&(!n._owner||!n._self||n._owner.stateNode===n._self)){var o=G(e)||"Component";rs[o]||(s('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r),rs[o]=!0)}if(n._owner){var i,a=n._owner;if(a){var u=a;if(1!==u.tag)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");i=u.stateNode}if(!i)throw new Error("Missing owner for string ref "+r+". This error is likely caused by a bug in React. Please file an issue.");var l=i;!function(e,t){if(Ki(e))s("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Zi(e)),ea(e)}(r,"ref");var c=""+r;if(null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===c)return t.ref;var f=function(e){var t=l.refs;t===Za&&(t=l.refs={}),null===e?delete t[c]:t[c]=e};return f._stringRef=c,f}if("string"!=typeof r)throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+r+") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information.")}return r}function hs(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function ms(e){var t=G(e)||"Component";is[t]||(is[t]=!0,s("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."))}function ys(e){var t=e._payload;return(0,e._init)(t)}function gs(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=$):r.push(n)}}function n(n,r){if(!e)return null;for(var o=r;null!==o;)t(n,o),o=o.sibling;return null}function r(e,t){for(var n=new Map,r=t;null!==r;)null!==r.key?n.set(r.key,r):n.set(r.index,r),r=r.sibling;return n}function o(e,t){var n=wh(e,t);return n.index=0,n.sibling=null,n}function i(t,n,r){if(t.index=r,!e)return t.flags|=te,n;var o=t.alternate;if(null!==o){var i=o.index;return i<n?(t.flags|=2,n):i}return t.flags|=2,n}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){if(null===t||6!==t.tag){var i=Ch(n,e.mode,r);return i.return=e,i}var a=o(t,n);return a.return=e,a}function l(e,t,n,r){var i=n.type;if(i===R)return f(e,t,n.props.children,r,n.key);if(null!==t&&(t.elementType===i||fh(t,n)||"object"==typeof i&&null!==i&&i.$$typeof===U&&ys(i)===t.type)){var a=o(t,n.props);return a.ref=ps(e,t,n),a.return=e,a._debugSource=n._source,a._debugOwner=n._owner,a}var s=Rh(n,e.mode,r);return s.ref=ps(e,t,n),s.return=e,s}function c(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var i=Mh(n,e.mode,r);return i.return=e,i}var a=o(t,n.children||[]);return a.return=e,a}function f(e,t,n,r,i){if(null===t||7!==t.tag){var a=Ph(n,e.mode,r,i);return a.return=e,a}var s=o(t,n);return s.return=e,s}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t){var r=Ch(""+t,e.mode,n);return r.return=e,r}if("object"==typeof t&&null!==t){switch(t.$$typeof){case T:var o=Rh(t,e.mode,n);return o.ref=ps(e,null,t),o.return=e,o;case E:var i=Mh(t,e.mode,n);return i.return=e,i;case U:var a=t._payload;return d(e,(0,t._init)(a),n)}if(_e(t)||O(t)){var s=Ph(t,e.mode,n,null);return s.return=e,s}hs(0,t)}return"function"==typeof t&&ms(e),null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case T:return n.key===o?l(e,t,n,r):null;case E:return n.key===o?c(e,t,n,r):null;case U:var i=n._payload;return p(e,t,(0,n._init)(i),r)}if(_e(n)||O(n))return null!==o?null:f(e,t,n,r,null);hs(0,n)}return"function"==typeof n&&ms(e),null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case T:return l(t,e.get(null===r.key?n:r.key)||null,r,o);case E:return c(t,e.get(null===r.key?n:r.key)||null,r,o);case U:var i=r._payload;return h(e,t,n,(0,r._init)(i),o)}if(_e(r)||O(r))return f(t,e.get(n)||null,r,o,null);hs(0,r)}return"function"==typeof r&&ms(t),null}function m(e,t,n){if("object"!=typeof e||null===e)return t;switch(e.$$typeof){case T:case E:ds(e,n);var r=e.key;if("string"!=typeof r)break;if(null===t){(t=new Set).add(r);break}if(!t.has(r)){t.add(r);break}s("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",r);break;case U:var o=e._payload;m((0,e._init)(o),t,n)}return t}return function u(l,c,f,y){if("object"==typeof f&&null!==f&&f.type===R&&null===f.key&&(f=f.props.children),"object"==typeof f&&null!==f){switch(f.$$typeof){case T:return a(function(e,r,i,a){for(var s=i.key,u=r;null!==u;){if(u.key===s){var l=i.type;if(l===R){if(7===u.tag){n(e,u.sibling);var c=o(u,i.props.children);return c.return=e,c._debugSource=i._source,c._debugOwner=i._owner,c}}else if(u.elementType===l||fh(u,i)||"object"==typeof l&&null!==l&&l.$$typeof===U&&ys(l)===u.type){n(e,u.sibling);var f=o(u,i.props);return f.ref=ps(e,u,i),f.return=e,f._debugSource=i._source,f._debugOwner=i._owner,f}n(e,u);break}t(e,u),u=u.sibling}if(i.type===R){var d=Ph(i.props.children,e.mode,a,i.key);return d.return=e,d}var p=Rh(i,e.mode,a);return p.ref=ps(e,r,i),p.return=e,p}(l,c,f,y));case E:return a(function(e,r,i,a){for(var s=i.key,u=r;null!==u;){if(u.key===s){if(4===u.tag&&u.stateNode.containerInfo===i.containerInfo&&u.stateNode.implementation===i.implementation){n(e,u.sibling);var l=o(u,i.children||[]);return l.return=e,l}n(e,u);break}t(e,u),u=u.sibling}var c=Mh(i,e.mode,a);return c.return=e,c}(l,c,f,y));case U:var g=f._payload;return u(l,c,(0,f._init)(g),y)}if(_e(f))return function(o,a,s,u){for(var l=null,c=0;c<s.length;c++)l=m(s[c],l,o);for(var f=null,y=null,g=a,v=0,b=0,_=null;null!==g&&b<s.length;b++){g.index>b?(_=g,g=null):_=g.sibling;var x=p(o,g,s[b],u);if(null===x){null===g&&(g=_);break}e&&g&&null===x.alternate&&t(o,g),v=i(x,v,b),null===y?f=x:y.sibling=x,y=x,g=_}if(b===s.length)return n(o,g),ki()&&ti(o,b),f;if(null===g){for(;b<s.length;b++){var S=d(o,s[b],u);null!==S&&(v=i(S,v,b),null===y?f=S:y.sibling=S,y=S)}return ki()&&ti(o,b),f}for(var w=r(0,g);b<s.length;b++){var T=h(w,o,b,s[b],u);null!==T&&(e&&null!==T.alternate&&w.delete(null===T.key?b:T.key),v=i(T,v,b),null===y?f=T:y.sibling=T,y=T)}return e&&w.forEach((function(e){return t(o,e)})),ki()&&ti(o,b),f}(l,c,f,y);if(O(f))return function(o,a,u,l){var c=O(u);if("function"!=typeof c)throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");"function"==typeof Symbol&&"Generator"===u[Symbol.toStringTag]&&(ns||s("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),ns=!0),u.entries===c&&(ts||s("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ts=!0);var f=c.call(u);if(f)for(var y=null,g=f.next();!g.done;g=f.next())y=m(g.value,y,o);var v=c.call(u);if(null==v)throw new Error("An iterable object provided no iterator.");for(var b=null,_=null,x=a,S=0,w=0,T=null,E=v.next();null!==x&&!E.done;w++,E=v.next()){x.index>w?(T=x,x=null):T=x.sibling;var R=p(o,x,E.value,l);if(null===R){null===x&&(x=T);break}e&&x&&null===R.alternate&&t(o,x),S=i(R,S,w),null===_?b=R:_.sibling=R,_=R,x=T}if(E.done)return n(o,x),ki()&&ti(o,w),b;if(null===x){for(;!E.done;w++,E=v.next()){var P=d(o,E.value,l);null!==P&&(S=i(P,S,w),null===_?b=P:_.sibling=P,_=P)}return ki()&&ti(o,w),b}for(var k=r(0,x);!E.done;w++,E=v.next()){var C=h(k,o,w,E.value,l);null!==C&&(e&&null!==C.alternate&&k.delete(null===C.key?w:C.key),S=i(C,S,w),null===_?b=C:_.sibling=C,_=C)}return e&&k.forEach((function(e){return t(o,e)})),ki()&&ti(o,w),b}(l,c,f,y);hs(0,f)}return"string"==typeof f&&""!==f||"number"==typeof f?a(function(e,t,r,i){if(null!==t&&6===t.tag){n(e,t.sibling);var a=o(t,r);return a.return=e,a}n(e,t);var s=Ch(r,e.mode,i);return s.return=e,s}(l,c,""+f,y)):("function"==typeof f&&ms(l),n(l,c))}}ts=!1,ns=!1,rs={},os={},is={},ds=function(e,t){if(null!==e&&"object"==typeof e&&e._store&&!e._store.validated&&null==e.key){if("object"!=typeof e._store)throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=G(t)||"Component";os[n]||(os[n]=!0,s('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var vs=gs(!0),bs=gs(!1);function _s(e,t){for(var n=e.child;null!==n;)Th(n,t),n=n.sibling}var xs={},Ss=Bn(xs),ws=Bn(xs),Ts=Bn(xs);function Es(e){if(e===xs)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function Rs(){return Es(Ts.current)}function Ps(e,t){In(Ts,t,e),In(ws,e,e),In(Ss,xs,e);var n=Se(t);An(Ss,e),In(Ss,n,e)}function ks(e){An(Ss,e),An(ws,e),An(Ts,e)}function Cs(){return Es(Ss.current)}function Ms(e){var t=Es(Ts.current),n=Es(Ss.current),r=we(n,e.type,t);n!==r&&(In(ws,e,e),In(Ss,r,e))}function Bs(e){ws.current===e&&(An(Ss,e),An(ws,e))}var As=Bn(0);function Is(e,t){return 0!=(e&t)}function Ns(e){return 1&e}function Us(e,t){return 1&e|t}function zs(e,t){In(As,t,e)}function Ds(e){An(As,e)}function Os(e,t){var n=e.memoizedState;return null!==n?null!==n.dehydrated:(e.memoizedProps,!0)}function Ls(e){for(var t=e;null!==t;){if(t.tag===m){var n=t.memoizedState;if(null!==n){var r=n.dehydrated;if(null===r||At(r)||It(r))return t}}else if(t.tag===_&&void 0!==t.memoizedProps.revealOrder){if(0!=(t.flags&H))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)return null;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 Fs=[];function Ws(){for(var e=0;e<Fs.length;e++){var t=Fs[e];Ue?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}Fs.length=0}var Gs,$s,Hs=o.ReactCurrentDispatcher,qs=o.ReactCurrentBatchConfig;Gs=new Set;var js=0,Ys=null,Vs=null,Qs=null,Js=!1,Xs=!1,Zs=0,Ks=0,eu=null,tu=null,nu=-1,ru=!1;function ou(){var e=eu;null===tu?tu=[e]:tu.push(e)}function iu(){var e=eu;null!==tu&&(nu++,tu[nu]!==e&&function(e){var t=G(Ys);if(!Gs.has(t)&&(Gs.add(t),null!==tu)){for(var n="",r=30,o=0;o<=nu;o++){for(var i=tu[o],a=o===nu?e:i,u=o+1+". "+i;u.length<r;)u+=" ";n+=u+=a+"\n"}s("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}(e))}function au(e){null==e||_e(e)||s("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",eu,typeof e)}function su(){throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.")}function uu(e,t){if(ru)return!1;if(null===t)return s("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",eu),!1;e.length!==t.length&&s("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",eu,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Do(e[n],t[n]))return!1;return!0}function lu(e,t,n,r,o,i){js=i,Ys=t,tu=null!==e?e._debugHookTypes:null,nu=-1,ru=null!==e&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=0,null!==e&&null!==e.memoizedState?Hs.current=ml:Hs.current=null!==tu?hl:pl;var a=n(r,o);if(Xs){var u=0;do{if(Xs=!1,Zs=0,u>=25)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");u+=1,ru=!1,Vs=null,Qs=null,t.updateQueue=null,nu=-1,Hs.current=yl,a=n(r,o)}while(Xs)}Hs.current=dl,t._debugHookTypes=tu;var l=null!==Vs&&null!==Vs.next;if(js=0,Ys=null,Vs=null,Qs=null,eu=null,tu=null,nu=-1,null!==e&&(e.flags&ce)!=(t.flags&ce)&&0!=(1&e.mode)&&s("Internal React error: Expected static flag was missing. Please notify the React team."),Js=!1,l)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return a}function cu(){var e=0!==Zs;return Zs=0,e}function fu(e,t,n){t.updateQueue=e.updateQueue,0!=(t.mode&Jn)?t.flags&=-50333701:t.flags&=-2053,e.lanes=jr(e.lanes,n)}function du(){if(Hs.current=dl,Js){for(var e=Ys.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Js=!1}js=0,Ys=null,Vs=null,Qs=null,tu=null,nu=-1,eu=null,rl=!1,Xs=!1,Zs=0}function pu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qs?Ys.memoizedState=Qs=e:Qs=Qs.next=e,Qs}function hu(){var e,t;if(null===Vs){var n=Ys.alternate;e=null!==n?n.memoizedState:null}else e=Vs.next;if(null!==(t=null===Qs?Ys.memoizedState:Qs.next))t=(Qs=t).next,Vs=e;else{if(null===e)throw new Error("Rendered more hooks than during the previous render.");var r={memoizedState:(Vs=e).memoizedState,baseState:Vs.baseState,baseQueue:Vs.baseQueue,queue:Vs.queue,next:null};null===Qs?Ys.memoizedState=Qs=r:Qs=Qs.next=r}return Qs}function mu(e,t){return"function"==typeof t?t(e):t}function yu(e,t,n){var r,o=pu();r=void 0!==n?n(t):t,o.memoizedState=o.baseState=r;var i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};o.queue=i;var a=i.dispatch=al.bind(null,Ys,i);return[o.memoizedState,a]}function gu(e,t,n){var r=hu(),o=r.queue;if(null===o)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var i=Vs,a=i.baseQueue,u=o.pending;if(null!==u){if(null!==a){var l=a.next,c=u.next;a.next=c,u.next=l}i.baseQueue!==a&&s("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=a=u,o.pending=null}if(null!==a){var f=a.next,d=i.baseState,p=null,h=null,m=null,y=f;do{var g=y.lane;if(Hr(js,g)){if(null!==m){var v={lane:0,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null};m=m.next=v}if(y.hasEagerState)d=y.eagerState;else d=e(d,y.action)}else{var b={lane:g,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null};null===m?(h=m=b,p=d):m=m.next=b,Ys.lanes=qr(Ys.lanes,g),Cp(g)}y=y.next}while(null!==y&&y!==f);null===m?p=d:m.next=h,Do(d,r.memoizedState)||Dc(),r.memoizedState=d,r.baseState=p,r.baseQueue=m,o.lastRenderedState=d}var _=o.interleaved;if(null!==_){var x=_;do{var S=x.lane;Ys.lanes=qr(Ys.lanes,S),Cp(S),x=x.next}while(x!==_)}else null===a&&(o.lanes=0);var w=o.dispatch;return[r.memoizedState,w]}function vu(e,t,n){var r=hu(),o=r.queue;if(null===o)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var i=o.dispatch,a=o.pending,s=r.memoizedState;if(null!==a){o.pending=null;var u=a.next,l=u;do{s=e(s,l.action),l=l.next}while(l!==u);Do(s,r.memoizedState)||Dc(),r.memoizedState=s,null===r.baseQueue&&(r.baseState=s),o.lastRenderedState=s}return[s,i]}function bu(e,t,n){var r,o=Ys,i=pu();if(ki()){if(void 0===n)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=n(),$s||r!==n()&&(s("The result of getServerSnapshot should be cached to avoid an infinite loop"),$s=!0)}else{if(r=t(),!$s){var a=t();Do(r,a)||(s("The result of getSnapshot should be cached to avoid an infinite loop"),$s=!0)}var u=fp();if(null===u)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");zr(0,js)||xu(o,t,r)}i.memoizedState=r;var l={value:r,getSnapshot:t};return i.queue=l,Nu(wu.bind(null,o,l,e),[e]),o.flags|=V,Cu(9,Su.bind(null,o,l,r,t),void 0,null),r}function _u(e,t,n){var r=Ys,o=hu(),i=t();if(!$s){var a=t();Do(i,a)||(s("The result of getSnapshot should be cached to avoid an infinite loop"),$s=!0)}var u=o.memoizedState,l=!Do(u,i);l&&(o.memoizedState=i,Dc());var c=o.queue;if(Uu(wu.bind(null,r,c,e),[e]),c.getSnapshot!==t||l||null!==Qs&&1&Qs.memoizedState.tag){r.flags|=V,Cu(9,Su.bind(null,r,c,i,t),void 0,null);var f=fp();if(null===f)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");zr(0,js)||xu(r,t,i)}return i}function xu(e,t,n){e.flags|=X;var r={getSnapshot:t,value:n},o=Ys.updateQueue;if(null===o)o={lastEffect:null,stores:null},Ys.updateQueue=o,o.stores=[r];else{var i=o.stores;null===i?o.stores=[r]:i.push(r)}}function Su(e,t,n,r){t.value=n,t.getSnapshot=r,Tu(t)&&Eu(e)}function wu(e,t,n){return n((function(){Tu(t)&&Eu(e)}))}function Tu(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!Do(n,r)}catch(e){return!0}}function Eu(e){var t=Sa(e,1);null!==t&&mp(t,e,1,Pr)}function Ru(e){var t=pu();"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:mu,lastRenderedState:e};t.queue=n;var r=n.dispatch=sl.bind(null,Ys,n);return[t.memoizedState,r]}function Pu(e){return gu(mu)}function ku(e){return vu(mu)}function Cu(e,t,n,r){var o={tag:e,create:t,destroy:n,deps:r,next:null},i=Ys.updateQueue;if(null===i)i={lastEffect:null,stores:null},Ys.updateQueue=i,i.lastEffect=o.next=o;else{var a=i.lastEffect;if(null===a)i.lastEffect=o.next=o;else{var s=a.next;a.next=o,o.next=s,i.lastEffect=o}}return o}function Mu(e){var t={current:e};return pu().memoizedState=t,t}function Bu(e){return hu().memoizedState}function Au(e,t,n,r){var o=pu(),i=void 0===r?null:r;Ys.flags|=e,o.memoizedState=Cu(1|t,n,void 0,i)}function Iu(e,t,n,r){var o=hu(),i=void 0===r?null:r,a=void 0;if(null!==Vs){var s=Vs.memoizedState;if(a=s.destroy,null!==i)if(uu(i,s.deps))return void(o.memoizedState=Cu(t,n,a,i))}Ys.flags|=e,o.memoizedState=Cu(1|t,n,a,i)}function Nu(e,t){return 0!=(Ys.mode&Jn)?Au(41945088,8,e,t):Au(8390656,8,e,t)}function Uu(e,t){return Iu(V,8,e,t)}function zu(e,t){return Au(4,2,e,t)}function Du(e,t){return Iu(4,2,e,t)}function Ou(e,t){var n=4;return n|=re,0!=(Ys.mode&Jn)&&(n|=oe),Au(n,4,e,t)}function Lu(e,t){return Iu(4,4,e,t)}function Fu(e,t){if("function"==typeof t){var n=t,r=e();return n(r),function(){n(null)}}if(null!=t){var o=t;o.hasOwnProperty("current")||s("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}");var i=e();return o.current=i,function(){o.current=null}}}function Wu(e,t,n){"function"!=typeof t&&s("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null,o=4;return o|=re,0!=(Ys.mode&Jn)&&(o|=oe),Au(o,4,Fu.bind(null,t,e),r)}function Gu(e,t,n){"function"!=typeof t&&s("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null;return Iu(4,4,Fu.bind(null,t,e),r)}function $u(e,t){}var Hu=$u;function qu(e,t){var n=void 0===t?null:t;return pu().memoizedState=[e,n],e}function ju(e,t){var n=hu(),r=void 0===t?null:t,o=n.memoizedState;if(null!==o&&(null!==r&&uu(r,o[1])))return o[0];return n.memoizedState=[e,r],e}function Yu(e,t){var n=pu(),r=void 0===t?null:t,o=e();return n.memoizedState=[o,r],o}function Vu(e,t){var n=hu(),r=void 0===t?null:t,o=n.memoizedState;if(null!==o&&(null!==r&&uu(r,o[1])))return o[0];var i=e();return n.memoizedState=[i,r],i}function Qu(e){return pu().memoizedState=e,e}function Ju(e){return Zu(hu(),Vs.memoizedState,e)}function Xu(e){var t=hu();return null===Vs?(t.memoizedState=e,e):Zu(t,Vs.memoizedState,e)}function Zu(e,t,n){if(!(0==(21&js))){if(!Do(n,t)){var r=Or();Ys.lanes=qr(Ys.lanes,r),Cp(r),e.baseState=!0}return t}return e.baseState&&(e.baseState=!1,Dc()),e.memoizedState=n,n}function Ku(e,t,n){var r,o,i=no();ro((o=4,0!==(r=i)&&r<o?r:o)),e(!0);var s=qs.transition;qs.transition={};var u=qs.transition;qs.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(ro(i),qs.transition=s,null===s&&u._updatedFibers)u._updatedFibers.size>10&&a("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),u._updatedFibers.clear()}}function el(){var e=Ru(!1),t=e[0],n=e[1],r=Ku.bind(null,n);return pu().memoizedState=r,[t,r]}function tl(){return[Pu()[0],hu().memoizedState]}function nl(){return[ku()[0],hu().memoizedState]}var rl=!1;function ol(){var e,t=pu(),n=fp().identifierPrefix;if(ki()){e=":"+n+"R"+ei();var r=Zs++;r>0&&(e+="H"+r.toString(32)),e+=":"}else{e=":"+n+"r"+(Ks++).toString(32)+":"}return t.memoizedState=e,e}function il(){return hu().memoizedState}function al(e,t,n){"function"==typeof arguments[3]&&s("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=pp(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ul(e))ll(t,o);else{var i=_a(e,t,o,r);if(null!==i){var a=dp();mp(i,e,r,a),cl(i,t,r)}}fl(e,r)}function sl(e,t,n){"function"==typeof arguments[3]&&s("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var r=pp(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ul(e))ll(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)){var a=t.lastRenderedReducer;if(null!==a){var u;u=Hs.current,Hs.current=vl;try{var l=t.lastRenderedState,c=a(l,n);if(o.hasEagerState=!0,o.eagerState=c,Do(c,l))return void xa(0,t,o)}catch(e){}finally{Hs.current=u}}}var f=_a(e,t,o,r);if(null!==f){var d=dp();mp(f,e,r,d),cl(f,t,r)}}fl(e,r)}function ul(e){var t=e.alternate;return e===Ys||null!==t&&t===Ys}function ll(e,t){Xs=Js=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cl(e,t,n){if(Dr(n)){var r=t.lanes,o=qr(r=Yr(r,e.pendingLanes),n);t.lanes=o,Xr(e,o)}}function fl(e,t,n){zo(e,t)}var dl={readContext:ga,useCallback:su,useContext:su,useEffect:su,useImperativeHandle:su,useInsertionEffect:su,useLayoutEffect:su,useMemo:su,useReducer:su,useRef:su,useState:su,useDebugValue:su,useDeferredValue:su,useTransition:su,useMutableSource:su,useSyncExternalStore:su,useId:su,unstable_isNewReconciler:f},pl=null,hl=null,ml=null,yl=null,gl=null,vl=null,bl=null,_l=function(){s("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},xl=function(){s("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};pl={readContext:function(e){return ga(e)},useCallback:function(e,t){return eu="useCallback",ou(),au(t),qu(e,t)},useContext:function(e){return eu="useContext",ou(),ga(e)},useEffect:function(e,t){return eu="useEffect",ou(),au(t),Nu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",ou(),au(n),Wu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",ou(),au(t),zu(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",ou(),au(t),Ou(e,t)},useMemo:function(e,t){eu="useMemo",ou(),au(t);var n=Hs.current;Hs.current=gl;try{return Yu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",ou();var r=Hs.current;Hs.current=gl;try{return yu(e,t,n)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",ou(),Mu(e)},useState:function(e){eu="useState",ou();var t=Hs.current;Hs.current=gl;try{return Ru(e)}finally{Hs.current=t}},useDebugValue:function(e,t){eu="useDebugValue",ou()},useDeferredValue:function(e){return eu="useDeferredValue",ou(),Qu(e)},useTransition:function(){return eu="useTransition",ou(),el()},useMutableSource:function(e,t,n){eu="useMutableSource",ou()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",ou(),bu(e,t,n)},useId:function(){return eu="useId",ou(),ol()},unstable_isNewReconciler:f},hl={readContext:function(e){return ga(e)},useCallback:function(e,t){return eu="useCallback",iu(),qu(e,t)},useContext:function(e){return eu="useContext",iu(),ga(e)},useEffect:function(e,t){return eu="useEffect",iu(),Nu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",iu(),Wu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",iu(),zu(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",iu(),Ou(e,t)},useMemo:function(e,t){eu="useMemo",iu();var n=Hs.current;Hs.current=gl;try{return Yu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",iu();var r=Hs.current;Hs.current=gl;try{return yu(e,t,n)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",iu(),Mu(e)},useState:function(e){eu="useState",iu();var t=Hs.current;Hs.current=gl;try{return Ru(e)}finally{Hs.current=t}},useDebugValue:function(e,t){eu="useDebugValue",iu()},useDeferredValue:function(e){return eu="useDeferredValue",iu(),Qu(e)},useTransition:function(){return eu="useTransition",iu(),el()},useMutableSource:function(e,t,n){eu="useMutableSource",iu()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",iu(),bu(e,t,n)},useId:function(){return eu="useId",iu(),ol()},unstable_isNewReconciler:f},ml={readContext:function(e){return ga(e)},useCallback:function(e,t){return eu="useCallback",iu(),ju(e,t)},useContext:function(e){return eu="useContext",iu(),ga(e)},useEffect:function(e,t){return eu="useEffect",iu(),Uu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",iu(),Gu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",iu(),Du(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",iu(),Lu(e,t)},useMemo:function(e,t){eu="useMemo",iu();var n=Hs.current;Hs.current=vl;try{return Vu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",iu();var r=Hs.current;Hs.current=vl;try{return gu(e)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",iu(),Bu()},useState:function(e){eu="useState",iu();var t=Hs.current;Hs.current=vl;try{return Pu()}finally{Hs.current=t}},useDebugValue:function(e,t){return eu="useDebugValue",iu(),Hu()},useDeferredValue:function(e){return eu="useDeferredValue",iu(),Ju(e)},useTransition:function(){return eu="useTransition",iu(),tl()},useMutableSource:function(e,t,n){eu="useMutableSource",iu()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",iu(),_u(e,t)},useId:function(){return eu="useId",iu(),il()},unstable_isNewReconciler:f},yl={readContext:function(e){return ga(e)},useCallback:function(e,t){return eu="useCallback",iu(),ju(e,t)},useContext:function(e){return eu="useContext",iu(),ga(e)},useEffect:function(e,t){return eu="useEffect",iu(),Uu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",iu(),Gu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",iu(),Du(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",iu(),Lu(e,t)},useMemo:function(e,t){eu="useMemo",iu();var n=Hs.current;Hs.current=bl;try{return Vu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",iu();var r=Hs.current;Hs.current=bl;try{return vu(e)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",iu(),Bu()},useState:function(e){eu="useState",iu();var t=Hs.current;Hs.current=bl;try{return ku()}finally{Hs.current=t}},useDebugValue:function(e,t){return eu="useDebugValue",iu(),Hu()},useDeferredValue:function(e){return eu="useDeferredValue",iu(),Xu(e)},useTransition:function(){return eu="useTransition",iu(),nl()},useMutableSource:function(e,t,n){eu="useMutableSource",iu()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",iu(),_u(e,t)},useId:function(){return eu="useId",iu(),il()},unstable_isNewReconciler:f},gl={readContext:function(e){return _l(),ga(e)},useCallback:function(e,t){return eu="useCallback",xl(),ou(),qu(e,t)},useContext:function(e){return eu="useContext",xl(),ou(),ga(e)},useEffect:function(e,t){return eu="useEffect",xl(),ou(),Nu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",xl(),ou(),Wu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",xl(),ou(),zu(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",xl(),ou(),Ou(e,t)},useMemo:function(e,t){eu="useMemo",xl(),ou();var n=Hs.current;Hs.current=gl;try{return Yu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",xl(),ou();var r=Hs.current;Hs.current=gl;try{return yu(e,t,n)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",xl(),ou(),Mu(e)},useState:function(e){eu="useState",xl(),ou();var t=Hs.current;Hs.current=gl;try{return Ru(e)}finally{Hs.current=t}},useDebugValue:function(e,t){eu="useDebugValue",xl(),ou()},useDeferredValue:function(e){return eu="useDeferredValue",xl(),ou(),Qu(e)},useTransition:function(){return eu="useTransition",xl(),ou(),el()},useMutableSource:function(e,t,n){eu="useMutableSource",xl(),ou()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",xl(),ou(),bu(e,t,n)},useId:function(){return eu="useId",xl(),ou(),ol()},unstable_isNewReconciler:f},vl={readContext:function(e){return _l(),ga(e)},useCallback:function(e,t){return eu="useCallback",xl(),iu(),ju(e,t)},useContext:function(e){return eu="useContext",xl(),iu(),ga(e)},useEffect:function(e,t){return eu="useEffect",xl(),iu(),Uu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",xl(),iu(),Gu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",xl(),iu(),Du(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",xl(),iu(),Lu(e,t)},useMemo:function(e,t){eu="useMemo",xl(),iu();var n=Hs.current;Hs.current=vl;try{return Vu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",xl(),iu();var r=Hs.current;Hs.current=vl;try{return gu(e)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",xl(),iu(),Bu()},useState:function(e){eu="useState",xl(),iu();var t=Hs.current;Hs.current=vl;try{return Pu()}finally{Hs.current=t}},useDebugValue:function(e,t){return eu="useDebugValue",xl(),iu(),Hu()},useDeferredValue:function(e){return eu="useDeferredValue",xl(),iu(),Ju(e)},useTransition:function(){return eu="useTransition",xl(),iu(),tl()},useMutableSource:function(e,t,n){eu="useMutableSource",xl(),iu()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",xl(),iu(),_u(e,t)},useId:function(){return eu="useId",xl(),iu(),il()},unstable_isNewReconciler:f},bl={readContext:function(e){return _l(),ga(e)},useCallback:function(e,t){return eu="useCallback",xl(),iu(),ju(e,t)},useContext:function(e){return eu="useContext",xl(),iu(),ga(e)},useEffect:function(e,t){return eu="useEffect",xl(),iu(),Uu(e,t)},useImperativeHandle:function(e,t,n){return eu="useImperativeHandle",xl(),iu(),Gu(e,t,n)},useInsertionEffect:function(e,t){return eu="useInsertionEffect",xl(),iu(),Du(e,t)},useLayoutEffect:function(e,t){return eu="useLayoutEffect",xl(),iu(),Lu(e,t)},useMemo:function(e,t){eu="useMemo",xl(),iu();var n=Hs.current;Hs.current=vl;try{return Vu(e,t)}finally{Hs.current=n}},useReducer:function(e,t,n){eu="useReducer",xl(),iu();var r=Hs.current;Hs.current=vl;try{return vu(e)}finally{Hs.current=r}},useRef:function(e){return eu="useRef",xl(),iu(),Bu()},useState:function(e){eu="useState",xl(),iu();var t=Hs.current;Hs.current=vl;try{return ku()}finally{Hs.current=t}},useDebugValue:function(e,t){return eu="useDebugValue",xl(),iu(),Hu()},useDeferredValue:function(e){return eu="useDeferredValue",xl(),iu(),Xu(e)},useTransition:function(){return eu="useTransition",xl(),iu(),nl()},useMutableSource:function(e,t,n){eu="useMutableSource",xl(),iu()},useSyncExternalStore:function(e,t,n){return eu="useSyncExternalStore",xl(),iu(),_u(e,t)},useId:function(){return eu="useId",xl(),iu(),il()},unstable_isNewReconciler:f};var Sl=r.unstable_now,wl=0,Tl=-1,El=-1,Rl=-1,Pl=!1,kl=!1;function Cl(){return Pl}function Ml(){return wl}function Bl(){wl=Sl()}function Al(e){El=Sl(),e.actualStartTime<0&&(e.actualStartTime=Sl())}function Il(e){El=-1}function Nl(e,t){if(El>=0){var n=Sl()-El;e.actualDuration+=n,t&&(e.selfBaseDuration=n),El=-1}}function Ul(e){if(Tl>=0){var t=Sl()-Tl;Tl=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:return void(n.stateNode.effectDuration+=t);case h:return void(n.stateNode.effectDuration+=t)}n=n.return}}}function zl(e){if(Rl>=0){var t=Sl()-Rl;Rl=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:var r=n.stateNode;return void(null!==r&&(r.passiveEffectDuration+=t));case h:var o=n.stateNode;return void(null!==o&&(o.passiveEffectDuration+=t))}n=n.return}}}function Dl(){Tl=Sl()}function Ol(){Rl=Sl()}function Ll(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Fl(e,t){return{value:e,source:t,stack:Ii(t),digest:null}}function Wl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Gl(e,t){try{0;var n=t.value,r=t.source,o=t.stack,i=null!==o?o:"";if(null!=n&&n._suppressLogging){if(1===e.tag)return;console.error(n)}var a=r?G(r):null,s=(a?"The above error occurred in the <"+a+"> component:":"The above error occurred in one of your React components:")+"\n"+i+"\n\n"+(3===e.tag?"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries.":"React will try to recreate this component tree from scratch using the error boundary you provided, "+(G(e)||"Anonymous")+".");console.error(s)}catch(e){setTimeout((function(){throw e}))}}var $l="function"==typeof WeakMap?WeakMap:Map;function Hl(e,t,n){var r=Ba(Pr,n);r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){Lp(o),Gl(e,t)},r}function ql(e,t,n){var r=Ba(Pr,n);r.tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var i=t.value;r.payload=function(){return o(i)},r.callback=function(){dh(e),Gl(e,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){var n;dh(e),Gl(e,t),"function"!=typeof o&&(n=this,null===Jd?Jd=new Set([n]):Jd.add(n));var r=t.value,i=t.stack;this.componentDidCatch(r,{componentStack:null!==i?i:""}),"function"!=typeof o&&($r(e.lanes,1)||s("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",G(e)||"Unknown"))}),r}function jl(e,t,n){var r,o=e.pingCache;if(null===o?(o=e.pingCache=new $l,r=new Set,o.set(t,r)):void 0===(r=o.get(t))&&(r=new Set,o.set(t,r)),!r.has(n)){r.add(n);var i=Gp.bind(null,e,t,n);So&&Kp(e,n),t.then(i,i)}}function Yl(e){var t=e;do{if(t.tag===m&&Os(t))return t;t=t.return}while(null!==t);return null}function Vl(e,t,n,r,o){if(0==(1&e.mode)){if(e===t)e.flags|=K;else{if(e.flags|=H,n.flags|=ee,n.flags&=-52805,1===n.tag)if(null===n.alternate)n.tag=v;else{var i=Ba(Pr,1);i.tag=Pa,Aa(n,i,1)}n.lanes=qr(n.lanes,1)}return e}return e.flags|=K,e.lanes=o,e}function Ql(e,t,n,r,o){if(n.flags|=Z,So&&Kp(e,o),null!==r&&"object"==typeof r&&"function"==typeof r.then){var i=r;!function(e,t){var n=e.tag;if(0==(1&e.mode)&&(0===n||n===p||n===g)){var r=e.alternate;r?(e.updateQueue=r.updateQueue,e.memoizedState=r.memoizedState,e.lanes=r.lanes):(e.updateQueue=null,e.memoizedState=null)}}(n),ki()&&1&n.mode&&pi();var a=Yl(t);if(null!==a)return a.flags&=-257,Vl(a,t,n,0,o),1&a.mode&&jl(e,i,o),void function(e,t,n,r){var o=e.updateQueue;if(null===o){var i=new Set;i.add(n),e.updateQueue=i}else o.add(n)}(a,0,i);if(0==(1&o))return jl(e,i,o),void Mp();r=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.")}else if(ki()&&1&n.mode){pi();var s=Yl(t);if(null!==s)return 0==(s.flags&K)&&(s.flags|=q),Vl(s,t,n,0,o),void Ci(Fl(r,n))}!function(e){4!==zd&&(zd=2);null===Wd?Wd=[e]:Wd.push(e)}(r=Fl(r,n));var u=t;do{switch(u.tag){case 3:var l=r;u.flags|=K;var c=Fr(o);return u.lanes=qr(u.lanes,c),void Na(u,Hl(u,l,c));case 1:var f=r,d=u.type,h=u.stateNode;if(0==(u.flags&H)&&("function"==typeof d.getDerivedStateFromError||null!==h&&"function"==typeof h.componentDidCatch&&!Op(h))){u.flags|=K;var m=Fr(o);return u.lanes=qr(u.lanes,m),void Na(u,ql(u,f,m))}}u=u.return}while(null!==u)}var Jl,Xl,Zl,Kl,ec,tc,nc,rc,oc=o.ReactCurrentOwner,ic=!1;function ac(e,t,n,r){t.child=null===e?bs(t,null,n,r):vs(t,e.child,n,r)}function sc(e,t,n,r,o){if(t.type!==t.elementType){var i=n.propTypes;i&&Rn(i,r,"prop",F(n))}var a,s,u=n.render,l=t.ref;if(ya(t,o),Po(t),oc.current=t,Fi(!0),a=lu(e,t,u,r,l,o),s=cu(),8&t.mode){wo(!0);try{a=lu(e,t,u,r,l,o),s=cu()}finally{wo(!1)}}return Fi(!1),ko(),null===e||ic?(ki()&&s&&ri(t),t.flags|=1,ac(e,t,a,o),t.child):(fu(e,t,o),Lc(e,t,o))}function uc(e,t,n,r,o){if(null===e){var i=n.type;if(function(e){return"function"==typeof e&&!Sh(e)&&void 0===e.defaultProps}(i)&&null===n.compare&&void 0===n.defaultProps){var a;return a=uh(i),t.tag=g,t.type=a,bc(t,i),lc(e,t,a,r,o)}var s=i.propTypes;s&&Rn(s,r,"prop",F(i));var u=Eh(n.type,null,r,t,t.mode,o);return u.ref=t.ref,u.return=t,t.child=u,u}var l=n.type,c=l.propTypes;c&&Rn(c,r,"prop",F(l));var f=e.child;if(!Fc(e,o)){var d=f.memoizedProps,p=n.compare;if((p=null!==p?p:Bi)(d,r)&&e.ref===t.ref)return Lc(e,t,o)}t.flags|=1;var h=wh(f,r);return h.ref=t.ref,h.return=t,t.child=h,h}function lc(e,t,n,r,o){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===U){var a=i,s=a._payload,u=a._init;try{i=u(s)}catch(e){i=null}var l=i&&i.propTypes;l&&Rn(l,r,"prop",F(i))}}if(null!==e){var c=e.memoizedProps;if(Bi(c,r)&&e.ref===t.ref&&t.type===e.type){if(ic=!1,t.pendingProps=r=c,!Fc(e,o))return t.lanes=e.lanes,Lc(e,t,o);0!=(e.flags&ee)&&(ic=!0)}}return dc(e,t,n,r,o)}function cc(e,t,n){var r,o=t.pendingProps,i=o.children,a=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(0==(1&t.mode)){var s={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=s,wp(t,n)}else{if(!$r(n,Er)){var u;if(null!==a)u=qr(a.baseLanes,n);else u=n;t.lanes=t.childLanes=Er;var l={baseLanes:u,cachePool:null,transitions:null};return t.memoizedState=l,t.updateQueue=null,wp(t,u),null}var c={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=c,wp(t,null!==a?a.baseLanes:n)}else null!==a?(r=qr(a.baseLanes,n),t.memoizedState=null):r=n,wp(t,r);return ac(e,t,i,n),t.child}function fc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=j,t.flags|=ne)}function dc(e,t,n,r,o){if(t.type!==t.elementType){var i=n.propTypes;i&&Rn(i,r,"prop",F(n))}var a,s,u;if(a=Fn(t,On(0,n,!0)),ya(t,o),Po(t),oc.current=t,Fi(!0),s=lu(e,t,n,r,a,o),u=cu(),8&t.mode){wo(!0);try{s=lu(e,t,n,r,a,o),u=cu()}finally{wo(!1)}}return Fi(!1),ko(),null===e||ic?(ki()&&u&&ri(t),t.flags|=1,ac(e,t,s,o),t.child):(fu(e,t,o),Lc(e,t,o))}function pc(e,t,n,r,o){switch(Wh(t)){case!1:var i=t.stateNode,a=new(0,t.type)(t.memoizedProps,i.context).state;i.updater.enqueueSetState(i,a,null);break;case!0:t.flags|=H,t.flags|=K;var u=new Error("Simulated error coming from DevTools"),l=Fr(o);t.lanes=qr(t.lanes,l),Na(t,ql(t,Fl(u,t),l))}if(t.type!==t.elementType){var c=n.propTypes;c&&Rn(c,r,"prop",F(n))}var f,d;Gn(n)?(f=!0,Yn(t)):f=!1,ya(t,o),null===t.stateNode?(Oc(e,t),ls(t,n,r),fs(t,n,r,o),d=!0):d=null===e?function(e,t,n,r){var o=e.stateNode,i=e.memoizedProps;o.props=i;var a=o.context,s=t.contextType,u=Nn;u="object"==typeof s&&null!==s?ga(s):Fn(e,On(0,t,!0));var l=t.getDerivedStateFromProps,c="function"==typeof l||"function"==typeof o.getSnapshotBeforeUpdate;c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||i===n&&a===u||cs(e,o,n,u),Oa();var f=e.memoizedState,d=o.state=f;if(za(e,n,o,r),d=e.memoizedState,i===n&&f===d&&!Wn()&&!La()){if("function"==typeof o.componentDidMount){var p=4;p|=re,0!=(e.mode&Jn)&&(p|=oe),e.flags|=p}return!1}"function"==typeof l&&(es(e,t,l,n),d=e.memoizedState);var h=La()||ss(e,t,i,n,f,d,u);if(h){if(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount){var m=4;m|=re,0!=(e.mode&Jn)&&(m|=oe),e.flags|=m}}else{if("function"==typeof o.componentDidMount){var y=4;y|=re,0!=(e.mode&Jn)&&(y|=oe),e.flags|=y}e.memoizedProps=n,e.memoizedState=d}return o.props=n,o.state=d,o.context=u,h}(t,n,r,o):function(e,t,n,r,o){var i=t.stateNode;Ma(e,t);var a=t.memoizedProps,s=t.type===t.elementType?a:na(t.type,a);i.props=s;var u=t.pendingProps,l=i.context,c=n.contextType,f=Nn;f="object"==typeof c&&null!==c?ga(c):Fn(t,On(0,n,!0));var d=n.getDerivedStateFromProps,p="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate;p||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||a===u&&l===f||cs(t,i,r,f),Oa();var h=t.memoizedState,m=i.state=h;if(za(t,r,i,o),m=t.memoizedState,a===u&&h===m&&!Wn()&&!La())return"function"==typeof i.componentDidUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof i.getSnapshotBeforeUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=Y)),!1;"function"==typeof d&&(es(t,n,d,r),m=t.memoizedState);var y=La()||ss(t,n,s,r,h,m,f)||!1;return y?(p||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,f),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,f)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=Y)):("function"==typeof i.componentDidUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof i.getSnapshotBeforeUpdate&&(a===e.memoizedProps&&h===e.memoizedState||(t.flags|=Y)),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=f,y}(e,t,n,r,o);var p=hc(e,t,n,d,f,o),h=t.stateNode;return d&&h.props!==r&&(tc||s("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",G(t)||"a component"),tc=!0),p}function hc(e,t,n,r,o,i){fc(e,t);var a=0!=(t.flags&H);if(!r&&!a)return o&&Vn(t,n,!1),Lc(e,t,i);var s,u=t.stateNode;if(oc.current=t,a&&"function"!=typeof n.getDerivedStateFromError)s=null,Il();else{if(Po(t),Fi(!0),s=u.render(),8&t.mode){wo(!0);try{u.render()}finally{wo(!1)}}Fi(!1),ko()}return t.flags|=1,null!==e&&a?function(e,t,n,r){t.child=vs(t,e.child,null,r),t.child=vs(t,null,n,r)}(e,t,s,i):ac(e,t,s,i),t.memoizedState=u.state,o&&Vn(t,n,!0),t.child}function mc(e){var t=e.stateNode;t.pendingContext?qn(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qn(e,t.context,!1),Ps(e,t.containerInfo)}function yc(e,t,n){if(mc(t),null===e)throw new Error("Should have a current fiber. This is a bug in React.");var r=t.pendingProps,o=t.memoizedState,i=o.element;Ma(e,t),za(t,r,null,n);var a=t.memoizedState;t.stateNode;var s=a.element;if(Le&&o.isDehydrated){var u={element:s,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions};if(t.updateQueue.baseState=u,t.memoizedState=u,t.flags&q)return gc(e,t,s,n,Fl(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t));if(s!==i)return gc(e,t,s,n,Fl(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t));!function(e){if(!Le)return!1;var t=e.stateNode.containerInfo;ui=Ot(t),si=e,li=!0,fi=null,ci=!1}(t);var l=bs(t,null,s,n);t.child=l;for(var c=l;c;)c.flags=-3&c.flags|Q,c=c.sibling}else{if(Ri(),s===i)return Lc(e,t,n);ac(e,t,s,n)}return t.child}function gc(e,t,n,r,o){return Ri(),Ci(o),t.flags|=q,ac(e,t,n,r),t.child}function vc(e,t,n,r){Oc(e,t);var o=t.pendingProps,i=n,a=i._payload,s=(0,i._init)(a);t.type=s;var u=t.tag=function(e){if("function"==typeof e)return Sh(e)?1:0;if(null!=e){var t=e.$$typeof;if(t===B)return p;if(t===N)return y}return 2}(s),l=na(s,o);switch(u){case 0:return bc(t,s),t.type=s=uh(s),dc(null,t,s,l,r);case 1:return t.type=s=lh(s),pc(null,t,s,l,r);case p:return t.type=s=ch(s),sc(null,t,s,l,r);case y:if(t.type!==t.elementType){var c=s.propTypes;c&&Rn(c,l,"prop",F(s))}return uc(null,t,s,na(s.type,l),r)}var f="";throw null!==s&&"object"==typeof s&&s.$$typeof===U&&(f=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+s+". Lazy element type must resolve to a class or function."+f)}function bc(e,t){if(t&&t.childContextTypes&&s("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),null!==e.ref){var n="",r=function(){if(null===Ui)return null;var e=Ui._debugOwner;return null!=e?G(e):null}();r&&(n+="\n\nCheck the render method of `"+r+"`.");var o=r||"",i=e._debugSource;i&&(o=i.fileName+":"+i.lineNumber),ec[o]||(ec[o]=!0,s("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if("function"==typeof t.getDerivedStateFromProps){var a=F(t)||"Unknown";Kl[a]||(s("%s: Function components do not support getDerivedStateFromProps.",a),Kl[a]=!0)}if("object"==typeof t.contextType&&null!==t.contextType){var u=F(t)||"Unknown";Zl[u]||(s("%s: Function components do not support contextType.",u),Zl[u]=!0)}}Jl={},Xl={},Zl={},Kl={},ec={},tc=!1,nc={},rc={};var _c={dehydrated:null,treeContext:null,retryLane:0};function xc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sc(e,t,n){var r=t.pendingProps;$h(t)&&(t.flags|=H);var o=As.current,i=!1,a=0!=(t.flags&H);if(a||function(e,t,n,r){return(null===t||null!==t.memoizedState)&&Is(e,2)}(o,e)?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o=o|1),zs(t,o=Ns(o)),null===e){Si(t);var u=t.memoizedState;if(null!==u){var l=u.dehydrated;if(null!==l)return function(e,t,n){0==(1&e.mode)?(s("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=1):It(t)?e.lanes=8:e.lanes=Er;return null}(t,l)}var c=r.children,f=r.fallback;if(i){var d=function(e,t,n,r){var o,i,a=e.mode,s=e.child,u={mode:"hidden",children:t};0==(1&a)&&null!==s?((o=s).childLanes=0,o.pendingProps=u,2&e.mode&&(o.actualDuration=0,o.actualStartTime=-1,o.selfBaseDuration=0,o.treeBaseDuration=0),i=Ph(n,a,r,null)):(o=Tc(u,a),i=Ph(n,a,r,null));return o.return=e,i.return=e,o.sibling=i,e.child=o,i}(t,c,f,n);return t.child.memoizedState=xc(n),t.memoizedState=_c,d}return wc(t,c)}var p=e.memoizedState;if(null!==p){var h=p.dehydrated;if(null!==h)return function(e,t,n,r,o,i,a){if(n){if(t.flags&q)return t.flags&=-257,Rc(e,t,a,Wl(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")));if(null!==t.memoizedState)return t.child=e.child,t.flags|=H,null;var s=function(e,t,n,r,o){var i=t.mode,a=Tc({mode:"visible",children:n},i),s=Ph(r,i,o,null);s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,0!=(1&t.mode)&&vs(t,e.child,null,o);return s}(e,t,r.children,r.fallback,a);return t.child.memoizedState=xc(a),t.memoizedState=_c,s}if(di(),0==(1&t.mode))return Rc(e,t,a,null);if(It(o)){var u,l,c,f=Nt(o);return u=f.digest,l=f.message,c=f.stack,Rc(e,t,a,Wl(l?new Error(l):new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),u,c))}var d=$r(a,e.childLanes);if(ic||d){var p=fp();if(null!==p){var h=function(e,t){var n;switch(Lr(t)){case 4:n=2;break;case er:n=8;break;case 64:case 128:case 256:case 512:case nr:case rr:case or:case ir:case ar:case sr:case ur:case lr:case cr:case fr:case dr:case pr:case mr:case yr:case gr:case vr:case br:n=32;break;case Tr:n=wr;break;default:n=0}return 0!=(n&(e.suspendedLanes|t))?0:n}(p,a);if(0!==h&&h!==i.retryLane){i.retryLane=h;var m=Pr;Sa(e,h),mp(p,e,h,m)}}return Mp(),Rc(e,t,a,Wl(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}if(At(o)){t.flags|=H,t.child=e.child;var y=Hp.bind(null,e);return Ut(o,y),null}hi(t,o,i.treeContext);var g=wc(t,r.children);return g.flags|=Q,g}(e,t,a,r,h,p,n)}if(i){var m=r.fallback,y=function(e,t,n,r,o){var i,a,s=t.mode,u=e.child,l=u.sibling,c={mode:"hidden",children:n};if(0==(1&s)&&t.child!==u){(i=t.child).childLanes=0,i.pendingProps=c,2&t.mode&&(i.actualDuration=0,i.actualStartTime=-1,i.selfBaseDuration=u.selfBaseDuration,i.treeBaseDuration=u.treeBaseDuration),t.deletions=null}else(i=Ec(u,c)).subtreeFlags=u.subtreeFlags&ce;null!==l?a=wh(l,r):(a=Ph(r,s,o,null)).flags|=2;return a.return=t,i.return=t,i.sibling=a,t.child=i,a}(e,t,r.children,m,n),g=t.child,v=e.child.memoizedState;return g.memoizedState=null===v?xc(n):function(e,t){return{baseLanes:qr(e.baseLanes,t),cachePool:null,transitions:e.transitions}}(v,n),g.childLanes=function(e,t){return jr(e.childLanes,t)}(e,n),t.memoizedState=_c,y}var b=function(e,t,n,r){var o=e.child,i=o.sibling,a=Ec(o,{mode:"visible",children:n});0==(1&t.mode)&&(a.lanes=r);if(a.return=t,a.sibling=null,null!==i){var s=t.deletions;null===s?(t.deletions=[i],t.flags|=$):s.push(i)}return t.child=a,a}(e,t,r.children,n);return t.memoizedState=null,b}function wc(e,t,n){var r=Tc({mode:"visible",children:t},e.mode);return r.return=e,e.child=r,r}function Tc(e,t,n){return kh(e,t,0,null)}function Ec(e,t){return wh(e,t)}function Rc(e,t,n,r){null!==r&&Ci(r),vs(t,e.child,null,n);var o=wc(t,t.pendingProps.children);return o.flags|=2,t.memoizedState=null,o}function Pc(e,t,n){e.lanes=qr(e.lanes,t);var r=e.alternate;null!==r&&(r.lanes=qr(r.lanes,t)),ha(e.return,t,n)}function kc(e,t){var n=_e(e),r=!n&&"function"==typeof O(e);if(n||r){var o=n?"array":"iterable";return s("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",o,t,o),!1}return!0}function Cc(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Mc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail,a=r.children;!function(e){if(void 0!==e&&"forwards"!==e&&"backwards"!==e&&"together"!==e&&!nc[e])if(nc[e]=!0,"string"==typeof e)switch(e.toLowerCase()){case"together":case"forwards":case"backwards":s('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break;case"forward":case"backward":s('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break;default:s('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}else s('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}(o),function(e,t){void 0===e||rc[e]||("collapsed"!==e&&"hidden"!==e?(rc[e]=!0,s('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):"forwards"!==t&&"backwards"!==t&&(rc[e]=!0,s('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}(i,o),function(e,t){if(("forwards"===t||"backwards"===t)&&null!=e&&!1!==e)if(_e(e)){for(var n=0;n<e.length;n++)if(!kc(e[n],n))return}else{var r=O(e);if("function"==typeof r){var o=r.call(e);if(o)for(var i=o.next(),a=0;!i.done;i=o.next()){if(!kc(i.value,a))return;a++}}else s('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}(a,o),ac(e,t,a,n);var u=As.current;Is(u,2)?(u=Us(u,2),t.flags|=H):(null!==e&&0!=(e.flags&H)&&function(e,t,n){for(var r=t;null!==r;){if(r.tag===m)null!==r.memoizedState&&Pc(r,n,e);else if(r.tag===_)Pc(r,n,e);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}(t,t.child,n),u=Ns(u));if(zs(t,u),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":var l,c=function(e){for(var t=e,n=null;null!==t;){var r=t.alternate;null!==r&&null===Ls(r)&&(n=t),t=t.sibling}return n}(t.child);null===c?(l=t.child,t.child=null):(l=c.sibling,c.sibling=null),Cc(t,!1,l,c,i);break;case"backwards":var f=null,d=t.child;for(t.child=null;null!==d;){var p=d.alternate;if(null!==p&&null===Ls(p)){t.child=d;break}var h=d.sibling;d.sibling=f,f=d,d=h}Cc(t,!0,f,null,i);break;case"together":Cc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}var Bc=!1;var Ac,Ic,Nc,Uc,zc=!1;function Dc(){ic=!0}function Oc(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lc(e,t,n){return null!==e&&(t.dependencies=e.dependencies),Il(),Cp(t.lanes),$r(n,t.childLanes)?(function(e,t){if(null!==e&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(null!==t.child){var n=t.child,r=wh(n,n.pendingProps);for(t.child=r,r.return=t;null!==n.sibling;)n=n.sibling,(r=r.sibling=wh(n,n.pendingProps)).return=t;r.sibling=null}}(e,t),t.child):null}function Fc(e,t){return!!$r(e.lanes,t)}function Wc(e,t,n){if(t._debugNeedsRemount&&null!==e)return function(e,t,n){var r=t.return;if(null===r)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===r.child)r.child=n;else{var o=r.child;if(null===o)throw new Error("Expected parent to have a child.");for(;o.sibling!==t;)if(null===(o=o.sibling))throw new Error("Expected to find the previous sibling.");o.sibling=n}var i=r.deletions;return null===i?(r.deletions=[e],r.flags|=$):i.push(e),n.flags|=2,n}(e,t,Eh(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(null!==e)if(e.memoizedProps!==t.pendingProps||Wn()||t.type!==e.type)ic=!0;else{if(!Fc(e,n)&&0==(t.flags&H))return ic=!1,function(e,t,n){switch(t.tag){case 3:mc(t),t.stateNode,Ri();break;case 5:Ms(t);break;case 1:Gn(t.type)&&Yn(t);break;case 4:Ps(t,t.stateNode.containerInfo);break;case d:var r=t.memoizedProps.value;da(t,t.type._context,r);break;case h:$r(n,t.childLanes)&&(t.flags|=4);var o=t.stateNode;o.effectDuration=0,o.passiveEffectDuration=0;break;case m:var i=t.memoizedState;if(null!==i){if(null!==i.dehydrated)return zs(t,Ns(As.current)),t.flags|=H,null;if($r(n,t.child.childLanes))return Sc(e,t,n);zs(t,Ns(As.current));var a=Lc(e,t,n);return null!==a?a.sibling:null}zs(t,Ns(As.current));break;case _:var s=0!=(e.flags&H),u=$r(n,t.childLanes);if(s){if(u)return Mc(e,t,n);t.flags|=H}var l=t.memoizedState;if(null!==l&&(l.rendering=null,l.tail=null,l.lastEffect=null),zs(t,As.current),u)break;return null;case S:case w:return t.lanes=0,cc(e,t,n)}return Lc(e,t,n)}(e,t,n);ic=0!=(e.flags&ee)}else if(ic=!1,ki()&&function(e){return ai(),0!=(e.flags&te)}(t)){var r=t.index;ni(t,(ai(),Vo),r)}switch(t.lanes=0,t.tag){case 2:return function(e,t,n,r){Oc(e,t);var o,i,a,u=t.pendingProps;if(o=Fn(t,On(0,n,!1)),ya(t,r),Po(t),n.prototype&&"function"==typeof n.prototype.render){var l=F(n)||"Unknown";Jl[l]||(s("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",l,l),Jl[l]=!0)}if(8&t.mode&&Wi.recordLegacyContextWarning(t,null),Fi(!0),oc.current=t,i=lu(null,t,n,u,o,r),a=cu(),Fi(!1),ko(),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var c=F(n)||"Unknown";Xl[c]||(s("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",c,c,c),Xl[c]=!0)}if("object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){var f=F(n)||"Unknown";Xl[f]||(s("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",f,f,f),Xl[f]=!0),t.tag=1,t.memoizedState=null,t.updateQueue=null;var d=!1;return Gn(n)?(d=!0,Yn(t)):d=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ca(t),us(t,i),fs(t,n,u,r),hc(null,t,n,!0,d,r)}if(t.tag=0,8&t.mode){wo(!0);try{i=lu(null,t,n,u,o,r),a=cu()}finally{wo(!1)}}return ki()&&a&&ri(t),ac(null,t,i,r),bc(t,n),t.child}(e,t,t.type,n);case 16:return vc(e,t,t.elementType,n);case 0:var o=t.type,i=t.pendingProps;return dc(e,t,o,t.elementType===o?i:na(o,i),n);case 1:var a=t.type,u=t.pendingProps;return pc(e,t,a,t.elementType===a?u:na(a,u),n);case 3:return yc(e,t,n);case 5:return function(e,t,n){Ms(t),null===e&&Si(t);var r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children;return Me(r,o)?a=null:null!==i&&Me(r,i)&&(t.flags|=32),fc(e,t),ac(e,t,a,n),t.child}(e,t,n);case 6:return function(e,t){return null===e&&Si(t),null}(e,t);case m:return Sc(e,t,n);case 4:return function(e,t,n){Ps(t,t.stateNode.containerInfo);var r=t.pendingProps;return null===e?t.child=vs(t,null,r,n):ac(e,t,r,n),t.child}(e,t,n);case p:var l=t.type,c=t.pendingProps;return sc(e,t,l,t.elementType===l?c:na(l,c),n);case 7:return function(e,t,n){return ac(e,t,t.pendingProps,n),t.child}(e,t,n);case 8:return function(e,t,n){return ac(e,t,t.pendingProps.children,n),t.child}(e,t,n);case h:return function(e,t,n){t.flags|=4;var r=t.stateNode;return r.effectDuration=0,r.passiveEffectDuration=0,ac(e,t,t.pendingProps.children,n),t.child}(e,t,n);case d:return function(e,t,n){var r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value;"value"in o||Bc||(Bc=!0,s("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var u=t.type.propTypes;if(u&&Rn(u,o,"prop","Context.Provider"),da(t,r,a),null!==i){var l=i.value;if(Do(l,a)){if(i.children===o.children&&!Wn())return Lc(e,t,n)}else ma(t,r,n)}return ac(e,t,o.children,n),t.child}(e,t,n);case 9:return function(e,t,n){var r=t.type;void 0===r._context?r!==r.Consumer&&(zc||(zc=!0,s("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var o=t.pendingProps.children;"function"!=typeof o&&s("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),ya(t,n);var i,a=ga(r);return Po(t),oc.current=t,Fi(!0),i=o(a),Fi(!1),ko(),t.flags|=1,ac(e,t,i,n),t.child}(e,t,n);case y:var f=t.type,b=na(f,t.pendingProps);if(t.type!==t.elementType){var T=f.propTypes;T&&Rn(T,b,"prop",F(f))}return uc(e,t,f,b=na(f.type,b),n);case g:return lc(e,t,t.type,t.pendingProps,n);case v:var E=t.type,R=t.pendingProps;return function(e,t,n,r,o){var i;return Oc(e,t),t.tag=1,Gn(n)?(i=!0,Yn(t)):i=!1,ya(t,o),ls(t,n,r),fs(t,n,r,o),hc(null,t,n,!0,i,o)}(e,t,E,t.elementType===E?R:na(E,R),n);case _:return Mc(e,t,n);case x:break;case S:return cc(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Gc(e){e.flags|=4}function $c(e){e.flags|=j,e.flags|=ne}function Hc(e,t){if(null!==e&&e.child===t.child)return!0;if(0!=(t.flags&$))return!1;for(var n=t.child;null!==n;){if(0!=(n.flags&se)||0!=(n.subtreeFlags&se))return!1;n=n.sibling}return!0}if(De)Ac=function(e,t,n,r){for(var o=t.child;null!==o;){if(5===o.tag||6===o.tag)Pe(e,o.stateNode);else if(4===o.tag);else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)return;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Ic=function(e,t){},Nc=function(e,t,n,r,o){var i=e.memoizedProps;if(i!==r){var a=t.stateNode,s=Cs(),u=Ce(a,n,i,r,o,s);t.updateQueue=u,u&&Gc(t)}},Uc=function(e,t,n,r){n!==r&&Gc(t)};else if(Oe){Ac=function(e,t,n,r){for(var o=t.child;null!==o;){if(5===o.tag){var i=o.stateNode;if(n&&r){var a=o.memoizedProps,s=o.type;i=Pt(i,s,a,o)}Pe(e,i)}else if(6===o.tag){var u=o.stateNode;if(n&&r){var l=o.memoizedProps;u=kt(u,l,o)}Pe(e,u)}else if(4===o.tag);else if(o.tag===S&&null!==o.memoizedState){var c=o.child;null!==c&&(c.return=o),Ac(e,o,!0,!0)}else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)return;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};var qc=function(e,t,n,r){for(var o=t.child;null!==o;){if(5===o.tag){var i=o.stateNode;if(n&&r){var a=o.memoizedProps,s=o.type;i=Pt(i,s,a,o)}Tt(e,i)}else if(6===o.tag){var u=o.stateNode;if(n&&r){var l=o.memoizedProps;u=kt(u,l,o)}Tt(e,u)}else if(4===o.tag);else if(o.tag===S&&null!==o.memoizedState){var c=o.child;null!==c&&(c.return=o),qc(e,o,!0,!0)}else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)return;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};Ic=function(e,t){var n=t.stateNode;if(Hc(e,t));else{var r=n.containerInfo,o=wt(r);qc(o,t,!1,!1),n.pendingChildren=o,Gc(t),Et(r,o)}},Nc=function(e,t,n,r,o){var i=e.stateNode,a=e.memoizedProps,s=Hc(e,t);if(s&&a===r)t.stateNode=i;else{var u=t.stateNode,l=Cs(),c=null;if(a!==r&&(c=Ce(u,n,a,r,o,l)),s&&null===c)t.stateNode=i;else{var f=St(i,c,n,a,r,t,s,u);ke(f,n,r,o,l)&&Gc(t),t.stateNode=f,s?Gc(t):Ac(f,t,!1,!1)}}},Uc=function(e,t,n,r){if(n!==r){var o=Rs(),i=Cs();t.stateNode=Be(r,o,i,t),Gc(t)}else t.stateNode=e.stateNode}}else Ic=function(e,t){},Nc=function(e,t,n,r,o){},Uc=function(e,t,n,r){};function jc(e,t){if(!ki())switch(e.tailMode){case"hidden":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":for(var o=e.tail,i=null;null!==o;)null!==o.alternate&&(i=o),o=o.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Yc(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t){if(0!=(2&e.mode)){for(var o=e.selfBaseDuration,i=e.child;null!==i;)n=qr(n,qr(i.lanes,i.childLanes)),r|=i.subtreeFlags&ce,r|=i.flags&ce,o+=i.treeBaseDuration,i=i.sibling;e.treeBaseDuration=o}else for(var a=e.child;null!==a;)n=qr(n,qr(a.lanes,a.childLanes)),r|=a.subtreeFlags&ce,r|=a.flags&ce,a.return=e,a=a.sibling;e.subtreeFlags|=r}else{if(0!=(2&e.mode)){for(var s=e.actualDuration,u=e.selfBaseDuration,l=e.child;null!==l;)n=qr(n,qr(l.lanes,l.childLanes)),r|=l.subtreeFlags,r|=l.flags,s+=l.actualDuration,u+=l.treeBaseDuration,l=l.sibling;e.actualDuration=s,e.treeBaseDuration=u}else for(var c=e.child;null!==c;)n=qr(n,qr(c.lanes,c.childLanes)),r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;e.subtreeFlags|=r}return e.childLanes=n,t}function Vc(e,t,n){if(li&&null!==ui&&0!=(1&t.mode)&&0==(t.flags&H))return Ei(t),Ri(),t.flags|=98560,!1;var r=Ti(t);if(null!==n&&null!==n.dehydrated){if(null===e){if(!r)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(function(e){if(!Le)throw new Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Gt(n,e)}(t),Yc(t),0!=(2&t.mode))if(null!==n){var o=t.child;null!==o&&(t.treeBaseDuration-=o.treeBaseDuration)}return!1}if(Ri(),0==(t.flags&H)&&(t.memoizedState=null),t.flags|=4,Yc(t),0!=(2&t.mode)&&null!==n){var i=t.child;null!==i&&(t.treeBaseDuration-=i.treeBaseDuration)}return!1}return Pi(),!0}function Qc(e,t,n){var r=t.pendingProps;switch(ii(t),t.tag){case 2:case 16:case g:case 0:case p:case 7:case 8:case h:case 9:case y:return Yc(t),null;case 1:return Gn(t.type)&&$n(t),Yc(t),null;case 3:var o=t.stateNode;if(ks(t),Hn(t),Ws(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null===e||null===e.child)if(Ti(t))Gc(t);else if(null!==e)e.memoizedState.isDehydrated&&0==(t.flags&q)||(t.flags|=Y,Pi());return Ic(e,t),Yc(t),null;case 5:Bs(t);var i=Rs(),a=t.type;if(null!==e&&null!=t.stateNode)Nc(e,t,a,r,i),e.ref!==t.ref&&$c(t);else{if(!r){if(null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Yc(t),null}var s=Cs();if(Ti(t))(function(e,t,n){if(!Le)throw new Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var r=e.stateNode,o=!ci,i=Ft(r,e.type,e.memoizedProps,t,n,e,o);return e.updateQueue=i,null!==i})(t,i,s)&&Gc(t);else{var u=Re(a,r,i,s,t);Ac(u,t,!1,!1),t.stateNode=u,ke(u,a,r,i,s)&&Gc(t)}null!==t.ref&&$c(t)}return Yc(t),null;case 6:var l=r;if(e&&null!=t.stateNode){var c=e.memoizedProps;Uc(e,t,c,l)}else{if("string"!=typeof l&&null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var f=Rs(),b=Cs();Ti(t)?function(e){if(!Le)throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var t=e.stateNode,n=e.memoizedProps,r=Wt(t,n,e,!ci);if(r){var o=si;if(null!==o)switch(o.tag){case 3:var i=o.stateNode.containerInfo,a=0!=(1&o.mode);Qt(i,t,n,a);break;case 5:var s=o.type,u=o.memoizedProps,l=o.stateNode,c=0!=(1&o.mode);Jt(s,u,l,t,n,c)}}return r}(t)&&Gc(t):t.stateNode=Be(l,f,b,t)}return Yc(t),null;case m:Ds(t);var T=t.memoizedState;if(null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated)if(!Vc(e,t,T))return t.flags&K?t:null;if(0!=(t.flags&H))return t.lanes=n,0!=(2&t.mode)&&Ll(t),t;var E=null!==T;if(E!==(null!==e&&null!==e.memoizedState))if(E)if(t.child.flags|=J,0!=(1&t.mode))null===e&&(!0!==t.memoizedProps.unstable_avoidThisFallback||!0)||Is(As.current,1)?0===zd&&(zd=3):Mp();if(null!==t.updateQueue&&(t.flags|=4),Yc(t),0!=(2&t.mode)&&E){var R=t.child;null!==R&&(t.treeBaseDuration-=R.treeBaseDuration)}return null;case 4:return ks(t),Ic(e,t),null===e&&We(t.stateNode.containerInfo),Yc(t),null;case d:return pa(t.type._context,t),Yc(t),null;case v:return Gn(t.type)&&$n(t),Yc(t),null;case _:Ds(t);var P=t.memoizedState;if(null===P)return Yc(t),null;var k=0!=(t.flags&H),C=P.rendering;if(null===C)if(k)jc(P,!1);else{if(!(0===zd&&(null===e||0==(e.flags&H))))for(var M=t.child;null!==M;){var B=Ls(M);if(null!==B){k=!0,t.flags|=H,jc(P,!1);var A=B.updateQueue;return null!==A&&(t.updateQueue=A,t.flags|=4),t.subtreeFlags=0,_s(t,n),zs(t,Us(As.current,2)),t.child}M=M.sibling}null!==P.tail&&co()>Yd()&&(t.flags|=H,k=!0,jc(P,!1),t.lanes=_r)}else{if(!k){var I=Ls(C);if(null!==I){t.flags|=H,k=!0;var N=I.updateQueue;if(null!==N&&(t.updateQueue=N,t.flags|=4),jc(P,!0),null===P.tail&&"hidden"===P.tailMode&&!C.alternate&&!ki())return Yc(t),null}else 2*co()-P.renderingStartTime>Yd()&&n!==Er&&(t.flags|=H,k=!0,jc(P,!1),t.lanes=_r)}if(P.isBackwards)C.sibling=t.child,t.child=C;else{var U=P.last;null!==U?U.sibling=C:t.child=C,P.last=C}}if(null!==P.tail){var z=P.tail;P.rendering=z,P.tail=z.sibling,P.renderingStartTime=co(),z.sibling=null;var D=As.current;return zs(t,D=k?Us(D,2):Ns(D)),z}return Yc(t),null;case x:break;case S:case w:Tp(t);var O=null!==t.memoizedState;if(null!==e)null!==e.memoizedState!==O&&(t.flags|=J);return O&&0!=(1&t.mode)?$r(Nd,Er)&&(Yc(t),De&&6&t.subtreeFlags&&(t.flags|=J)):Yc(t),null;case 24:case 25:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Jc(e,t,n){switch(ii(t),t.tag){case 1:Gn(t.type)&&$n(t);var r=t.flags;return r&K?(t.flags=-65537&r|H,0!=(2&t.mode)&&Ll(t),t):null;case 3:t.stateNode,ks(t),Hn(t),Ws();var o=t.flags;return 0!=(o&K)&&0==(o&H)?(t.flags=-65537&o|H,t):null;case 5:return Bs(t),null;case m:Ds(t);var i=t.memoizedState;if(null!==i&&null!==i.dehydrated){if(null===t.alternate)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Ri()}var a=t.flags;return a&K?(t.flags=-65537&a|H,0!=(2&t.mode)&&Ll(t),t):null;case _:return Ds(t),null;case 4:return ks(t),null;case d:return pa(t.type._context,t),null;case S:case w:return Tp(t),null;default:return null}}function Xc(e,t,n){switch(ii(t),t.tag){case 1:var r=t.type.childContextTypes;null!=r&&$n(t);break;case 3:t.stateNode,ks(t),Hn(t),Ws();break;case 5:Bs(t);break;case 4:ks(t);break;case m:case _:Ds(t);break;case d:pa(t.type._context,t);break;case S:case w:Tp(t)}}function Zc(e,t,n,r,o,i,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Kc=Zc;if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var ef=document.createElement("react");Kc=function(e,t,n,r,o,i,a,s,u){if("undefined"==typeof document||null===document)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var l=document.createEvent("Event"),c=!1,f=!0,d=window.event,p=Object.getOwnPropertyDescriptor(window,"event");function h(){ef.removeEventListener(x,g,!1),void 0!==window.event&&window.hasOwnProperty("event")&&(window.event=d)}var m,y=Array.prototype.slice.call(arguments,3);function g(){c=!0,h(),t.apply(n,y),f=!1}var v=!1,b=!1;function _(e){if(m=e.error,v=!0,null===m&&0===e.colno&&0===e.lineno&&(b=!0),e.defaultPrevented&&null!=m&&"object"==typeof m)try{m._suppressLogging=!0}catch(e){}}var x="react-"+(e||"invokeguardedcallback");if(window.addEventListener("error",_),ef.addEventListener(x,g,!1),l.initEvent(x,!1,!1),ef.dispatchEvent(l),p&&Object.defineProperty(window,"event",p),c&&f&&(v?b&&(m=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):m=new Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."),this.onError(m)),window.removeEventListener("error",_),!c)return h(),Zc.apply(this,arguments)}}var tf=Kc,nf=!1,rf=null,of={onError:function(e){nf=!0,rf=e}};function af(e,t,n,r,o,i,a,s,u){nf=!1,rf=null,tf.apply(of,arguments)}function sf(){if(nf){var e=rf;return nf=!1,rf=null,e}throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}var uf;uf=new Set;var lf=!1,cf=!1,ff="function"==typeof WeakSet?WeakSet:Set,df=null,pf=null,hf=null;function mf(e,t){try{Ef(4,e)}catch(n){Wp(e,t,n)}}function yf(e,t,n){try{!function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,2&e.mode)try{Dl(),t.componentWillUnmount()}finally{Ul(e)}else t.componentWillUnmount()}(e,n)}catch(n){Wp(e,t,n)}}function gf(e,t){try{Cf(e)}catch(n){Wp(e,t,n)}}function vf(e,t){var n=e.ref;if(null!==n)if("function"==typeof n){var r;try{if(2&e.mode)try{Dl(),r=n(null)}finally{Ul(e)}else r=n(null)}catch(n){Wp(e,t,n)}"function"==typeof r&&s("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",G(e))}else n.current=null}function bf(e,t,n){try{n()}catch(n){Wp(e,t,n)}}var _f=!1;function xf(e,t){Te(e.containerInfo),df=t,function(){for(;null!==df;){var e=df,t=e.child;0!=(e.subtreeFlags&ae)&&null!==t?(t.return=e,df=t):Sf()}}();var n=_f;return _f=!1,n}function Sf(){for(;null!==df;){var e=df;Li(e);try{wf(e)}catch(t){Wp(e,e.return,t)}Oi();var t=e.sibling;if(null!==t)return t.return=e.return,void(df=t);df=e.return}}function wf(e){var t=e.alternate;if(0!=(e.flags&Y)){switch(Li(e),e.tag){case 0:case p:case g:break;case 1:if(null!==t){var n=t.memoizedProps,r=t.memoizedState,o=e.stateNode;e.type!==e.elementType||tc||(o.props!==e.memoizedProps&&s("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(e)||"instance"),o.state!==e.memoizedState&&s("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(e)||"instance"));var i=o.getSnapshotBeforeUpdate(e.elementType===e.type?n:na(e.type,n),r),a=uf;void 0!==i||a.has(e.type)||(a.add(e.type),s("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",G(e))),o.__reactInternalSnapshotBeforeUpdate=i}break;case 3:if(De){var u=e.stateNode;xt(u.containerInfo)}break;case 5:case 6:case 4:case v:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Oi()}}function Tf(e,t,n){var r,o=t.updateQueue,i=null!==o?o.lastEffect:null;if(null!==i){var a=i.next,s=a;do{if((s.tag&e)===e){var u=s.destroy;s.destroy=void 0,void 0!==u&&(0!=(8&e)?(r=t,null!==_o&&"function"==typeof _o.markComponentPassiveEffectUnmountStarted&&_o.markComponentPassiveEffectUnmountStarted(r)):0!=(4&e)&&Mo(t),0!=(2&e)&&oh(!0),bf(t,n,u),0!=(2&e)&&oh(!1),0!=(8&e)?null!==_o&&"function"==typeof _o.markComponentPassiveEffectUnmountStopped&&_o.markComponentPassiveEffectUnmountStopped():0!=(4&e)&&Bo())}s=s.next}while(s!==a)}}function Ef(e,t){var n,r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next,a=i;do{if((a.tag&e)===e){0!=(8&e)?(n=t,null!==_o&&"function"==typeof _o.markComponentPassiveEffectMountStarted&&_o.markComponentPassiveEffectMountStarted(n)):0!=(4&e)&&Co(t);var u=a.create;0!=(2&e)&&oh(!0),a.destroy=u(),0!=(2&e)&&oh(!1),0!=(8&e)?null!==_o&&"function"==typeof _o.markComponentPassiveEffectMountStopped&&_o.markComponentPassiveEffectMountStopped():0!=(4&e)&&null!==_o&&"function"==typeof _o.markComponentLayoutEffectMountStopped&&_o.markComponentLayoutEffectMountStopped();var l=a.destroy;if(void 0!==l&&"function"!=typeof l){var c=void 0;s("%s must not return anything besides a function, which is used for clean-up.%s",c=0!=(4&a.tag)?"useLayoutEffect":0!=(2&a.tag)?"useInsertionEffect":"useEffect",null===l?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof l.then?"\n\nIt looks like you wrote "+c+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+c+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching":" You returned: "+l)}}a=a.next}while(a!==i)}}function Rf(e,t){if(0!=(4&t.flags)&&t.tag===h){var n=t.stateNode.passiveEffectDuration,r=t.memoizedProps,o=r.id,i=r.onPostCommit,a=Ml(),s=null===t.alternate?"mount":"update";Cl()&&(s="nested-update"),"function"==typeof i&&i(o,s,n,a);var u=t.return;e:for(;null!==u;){switch(u.tag){case 3:u.stateNode.passiveEffectDuration+=n;break e;case h:u.stateNode.passiveEffectDuration+=n;break e}u=u.return}}}function Pf(e,t,n,r){if(0!=(n.flags&ue))switch(n.tag){case 0:case p:case g:if(!cf)if(2&n.mode)try{Dl(),Ef(5,n)}finally{Ul(n)}else Ef(5,n);break;case 1:var o=n.stateNode;if(4&n.flags&&!cf)if(null===t)if(n.type!==n.elementType||tc||(o.props!==n.memoizedProps&&s("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(n)||"instance"),o.state!==n.memoizedState&&s("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(n)||"instance")),2&n.mode)try{Dl(),o.componentDidMount()}finally{Ul(n)}else o.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:na(n.type,t.memoizedProps),a=t.memoizedState;if(n.type!==n.elementType||tc||(o.props!==n.memoizedProps&&s("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(n)||"instance"),o.state!==n.memoizedState&&s("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(n)||"instance")),2&n.mode)try{Dl(),o.componentDidUpdate(i,a,o.__reactInternalSnapshotBeforeUpdate)}finally{Ul(n)}else o.componentDidUpdate(i,a,o.__reactInternalSnapshotBeforeUpdate)}var u=n.updateQueue;null!==u&&(n.type!==n.elementType||tc||(o.props!==n.memoizedProps&&s("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",G(n)||"instance"),o.state!==n.memoizedState&&s("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",G(n)||"instance")),Fa(0,u,o));break;case 3:var l=n.updateQueue;if(null!==l){var c=null;if(null!==n.child)switch(n.child.tag){case 5:c=xe(n.child.stateNode);break;case 1:c=n.child.stateNode}Fa(0,l,c)}break;case 5:var f=n.stateNode;if(null===t&&4&n.flags){var d=n.type,y=n.memoizedProps;ct(f,d,y,n)}break;case 6:case 4:break;case h:var b=n.memoizedProps,T=b.onCommit,E=b.onRender,R=n.stateNode.effectDuration,P=Ml(),k=null===t?"mount":"update";Cl()&&(k="nested-update"),"function"==typeof E&&E(n.memoizedProps.id,k,n.actualDuration,n.treeBaseDuration,n.actualStartTime,P),"function"==typeof T&&T(n.memoizedProps.id,k,R,P),M=n,ep.push(M),Xd||(Xd=!0,th(ho,(function(){return Dp(),null})));var C=n.return;e:for(;null!==C;){switch(C.tag){case 3:C.stateNode.effectDuration+=R;break e;case h:C.stateNode.effectDuration+=R;break e}C=C.return}break;case m:!function(e,t){if(!Le)return;if(null===t.memoizedState){var n=t.alternate;if(null!==n){var r=n.memoizedState;if(null!==r){var o=r.dehydrated;null!==o&&qt(o)}}}}(0,n);break;case _:case v:case x:case S:case w:case 25:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}var M;cf||n.flags&j&&Cf(n)}function kf(e){switch(e.tag){case 0:case p:case g:if(2&e.mode)try{Dl(),mf(e,e.return)}finally{Ul(e)}else mf(e,e.return);break;case 1:var t=e.stateNode;"function"==typeof t.componentDidMount&&function(e,t,n){try{n.componentDidMount()}catch(n){Wp(e,t,n)}}(e,e.return,t),gf(e,e.return);break;case 5:gf(e,e.return)}}function Cf(e){var t=e.ref;if(null!==t){var n,r=e.stateNode;if(5===e.tag)n=xe(r);else n=r;if("function"==typeof t){var o;if(2&e.mode)try{Dl(),o=t(n)}finally{Ul(e)}else o=t(n);"function"==typeof o&&s("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",G(e))}else t.hasOwnProperty("current")||s("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",G(e)),t.current=n}}function Mf(e){var t=e.alternate;if(null!==t&&(e.alternate=null,Mf(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag){var n=e.stateNode;null!==n&&Je(n)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Bf(e){return 5===e.tag||3===e.tag||4===e.tag}function Af(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||Bf(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&t.tag!==b;){if(2&t.flags)continue e;if(null===t.child||4===t.tag)continue e;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function If(e){if(De){var t=function(e){for(var t=e.return;null!==t;){if(Bf(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}(e);switch(t.tag){case 5:var n=t.stateNode;32&t.flags&&(yt(n),t.flags&=-33),Uf(e,Af(e),n);break;case 3:case 4:var r=t.stateNode.containerInfo;Nf(e,Af(e),r);break;default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}}function Nf(e,t,n){var r=e.tag;if(5===r||6===r){var o=e.stateNode;t?pt(n,o,t):ut(n,o)}else if(4===r);else{var i=e.child;if(null!==i){Nf(i,t,n);for(var a=i.sibling;null!==a;)Nf(a,t,n),a=a.sibling}}}function Uf(e,t,n){var r=e.tag;if(5===r||6===r){var o=e.stateNode;t?dt(n,o,t):st(n,o)}else if(4===r);else{var i=e.child;if(null!==i){Uf(i,t,n);for(var a=i.sibling;null!==a;)Uf(a,t,n),a=a.sibling}}}var zf=null,Df=!1;function Of(e,t,n){if(De){var r=t;e:for(;null!==r;){switch(r.tag){case 5:zf=r.stateNode,Df=!1;break e;case 3:case 4:zf=r.stateNode.containerInfo,Df=!0;break e}r=r.return}if(null===zf)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Ff(e,t,n),zf=null,Df=!1}else Ff(e,t,n);var o,i;null!==(i=(o=n).alternate)&&(i.return=null),o.return=null}function Lf(e,t,n){for(var r=n.child;null!==r;)Ff(e,t,r),r=r.sibling}function Ff(e,t,n){switch(function(e){if(bo&&"function"==typeof bo.onCommitFiberUnmount)try{bo.onCommitFiberUnmount(vo,e)}catch(e){xo||(xo=!0,s("React instrumentation encountered an error: %s",e))}}(n),n.tag){case 5:cf||vf(n,t);case 6:if(De){var r=zf,o=Df;zf=null,Lf(e,t,n),Df=o,null!==(zf=r)&&(Df?mt(zf,n.stateNode):ht(zf,n.stateNode))}else Lf(e,t,n);return;case b:return void(De&&null!==zf&&(Df?Yt(zf,n.stateNode):jt(zf,n.stateNode)));case 4:if(De){var i=zf,a=Df;zf=n.stateNode.containerInfo,Df=!0,Lf(e,t,n),zf=i,Df=a}else!function(e){if(Oe){var t=e.stateNode.containerInfo,n=wt(t);Rt(t,n)}}(n),Lf(e,t,n);return;case 0:case p:case y:case g:if(!cf){var u=n.updateQueue;if(null!==u){var l=u.lastEffect;if(null!==l){var c=l.next,f=c;do{var d=f,h=d.destroy,m=d.tag;void 0!==h&&(0!=(2&m)?bf(n,t,h):0!=(4&m)&&(Mo(n),2&n.mode?(Dl(),bf(n,t,h),Ul(n)):bf(n,t,h),Bo())),f=f.next}while(f!==c)}}}return void Lf(e,t,n);case 1:if(!cf){vf(n,t);var v=n.stateNode;"function"==typeof v.componentWillUnmount&&yf(n,t,v)}return void Lf(e,t,n);case x:return void Lf(e,t,n);case S:if(1&n.mode){var _=cf;cf=_||null!==n.memoizedState,Lf(e,t,n),cf=_}else Lf(e,t,n);break;default:return void Lf(e,t,n)}}function Wf(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ff),t.forEach((function(t){var r=qp.bind(null,e,t);if(!n.has(t)){if(n.add(t),So){if(null===pf||null===hf)throw Error("Expected finished root and lanes to be set. This is a bug in React.");Kp(hf,pf)}t.then(r,r)}}))}}function Gf(e,t,n){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{Of(e,t,i)}catch(e){Wp(i,t,e)}}var a=Ui;if(t.subtreeFlags&se)for(var s=t.child;null!==s;)Li(s),$f(s,e),s=s.sibling;Li(a)}function $f(e,t,n){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case p:case y:case g:if(Gf(t,e),Hf(e),4&o){try{Tf(3,e,e.return),Ef(3,e)}catch(t){Wp(e,e.return,t)}if(2&e.mode){try{Dl(),Tf(5,e,e.return)}catch(t){Wp(e,e.return,t)}Ul(e)}else try{Tf(5,e,e.return)}catch(t){Wp(e,e.return,t)}}return;case 1:return Gf(t,e),Hf(e),void(o&j&&null!==r&&vf(r,r.return));case 5:if(Gf(t,e),Hf(e),o&j&&null!==r&&vf(r,r.return),De){if(32&e.flags){var i=e.stateNode;try{yt(i)}catch(t){Wp(e,e.return,t)}}if(4&o){var a=e.stateNode;if(null!=a){var s=e.memoizedProps,u=null!==r?r.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{ft(a,c,l,u,s,e)}catch(t){Wp(e,e.return,t)}}}}return;case 6:if(Gf(t,e),Hf(e),4&o&&De){if(null===e.stateNode)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var f=e.stateNode,d=e.memoizedProps,h=null!==r?r.memoizedProps:d;try{lt(f,h,d)}catch(t){Wp(e,e.return,t)}}return;case 3:if(Gf(t,e),Hf(e),4&o){if(De&&Le)if(null!==r)if(r.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Wp(e,e.return,t)}if(Oe){var v=t.containerInfo,b=t.pendingChildren;try{Rt(v,b)}catch(t){Wp(e,e.return,t)}}}return;case 4:if(Gf(t,e),Hf(e),4&o&&Oe){var T=e.stateNode,E=T.containerInfo,R=T.pendingChildren;try{Rt(E,R)}catch(t){Wp(e,e.return,t)}}return;case m:Gf(t,e),Hf(e);var P=e.child;if(P.flags&J){var k=P.stateNode,C=null!==P.memoizedState;if(k.isHidden=C,C)null!==P.alternate&&null!==P.alternate.memoizedState||($d=co())}if(4&o){try{!function(e){e.memoizedState}(e)}catch(t){Wp(e,e.return,t)}Wf(e)}return;case S:var M=null!==r&&null!==r.memoizedState;if(1&e.mode){var B=cf;cf=B||M,Gf(t,e),cf=B}else Gf(t,e);if(Hf(e),o&J){var A=e.stateNode,I=null!==e.memoizedState,N=e;if(A.isHidden=I,I&&!M&&0!=(1&N.mode)){df=N;for(var U=N.child;null!==U;)df=U,Vf(U),U=U.sibling}De&&function(e,t){var n=null;if(De)for(var r=e;;){if(5===r.tag){if(null===n){n=r;try{var o=r.stateNode;t?gt(o):bt(r.stateNode,r.memoizedProps)}catch(t){Wp(e,e.return,t)}}}else if(6===r.tag){if(null===n)try{var i=r.stateNode;t?vt(i):_t(i,r.memoizedProps)}catch(t){Wp(e,e.return,t)}}else if((r.tag!==S&&r.tag!==w||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;n===r&&(n=null),r=r.return}n===r&&(n=null),r.sibling.return=r.return,r=r.sibling}}(N,I)}return;case _:return Gf(t,e),Hf(e),void(4&o&&Wf(e));case x:return;default:return Gf(t,e),void Hf(e)}}function Hf(e){var t=e.flags;if(2&t){try{If(e)}catch(t){Wp(e,e.return,t)}e.flags&=-3}t&Q&&(e.flags&=-4097)}function qf(e,t,n){pf=n,hf=t,df=e,jf(e,t,n),pf=null,hf=null}function jf(e,t,n){for(var r=0!=(1&e.mode);null!==df;){var o=df,i=o.child;if(o.tag===S&&r){var a=null!==o.memoizedState||lf;if(a){Yf(e,t,n);continue}var s=o.alternate,u=null!==s&&null!==s.memoizedState,l=lf,c=cf;lf=a,(cf=u||cf)&&!c&&(df=o,Jf(o));for(var f=i;null!==f;)df=f,jf(f,t,n),f=f.sibling;df=o,lf=l,cf=c,Yf(e,t,n)}else 0!=(o.subtreeFlags&ue)&&null!==i?(i.return=o,df=i):Yf(e,t,n)}}function Yf(e,t,n){for(;null!==df;){var r=df;if(0!=(r.flags&ue)){var o=r.alternate;Li(r);try{Pf(0,o,r)}catch(e){Wp(r,r.return,e)}Oi()}if(r===e)return void(df=null);var i=r.sibling;if(null!==i)return i.return=r.return,void(df=i);df=r.return}}function Vf(e){for(;null!==df;){var t=df,n=t.child;switch(t.tag){case 0:case p:case y:case g:if(2&t.mode)try{Dl(),Tf(4,t,t.return)}finally{Ul(t)}else Tf(4,t,t.return);break;case 1:vf(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&yf(t,t.return,r);break;case 5:vf(t,t.return);break;case S:if(null!==t.memoizedState){Qf(e);continue}}null!==n?(n.return=t,df=n):Qf(e)}}function Qf(e){for(;null!==df;){var t=df;if(t===e)return void(df=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(df=n);df=t.return}}function Jf(e){for(;null!==df;){var t=df,n=t.child;if(t.tag===S)if(null!==t.memoizedState){Xf(e);continue}null!==n?(n.return=t,df=n):Xf(e)}}function Xf(e){for(;null!==df;){var t=df;Li(t);try{kf(t)}catch(e){Wp(t,t.return,e)}if(Oi(),t===e)return void(df=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(df=n);df=t.return}}function Zf(e,t,n,r){df=t,function(e,t,n,r){for(;null!==df;){var o=df,i=o.child;0!=(o.subtreeFlags&le)&&null!==i?(i.return=o,df=i):Kf(e,t,n,r)}}(t,e,n,r)}function Kf(e,t,n,r){for(;null!==df;){var o=df;if(0!=(o.flags&V)){Li(o);try{ed(t,o,n,r)}catch(e){Wp(o,o.return,e)}Oi()}if(o===e)return void(df=null);var i=o.sibling;if(null!==i)return i.return=o.return,void(df=i);df=o.return}}function ed(e,t,n,r){switch(t.tag){case 0:case p:case g:if(2&t.mode){Ol();try{Ef(9,t)}finally{zl(t)}}else Ef(9,t)}}function td(e){df=e,function(){for(;null!==df;){var e=df,t=e.child;if(0!=(df.flags&$)){var n=e.deletions;if(null!==n){for(var r=0;r<n.length;r++){var o=n[r];df=o,od(o,e)}var i=e.alternate;if(null!==i){var a=i.child;if(null!==a){i.child=null;do{var s=a.sibling;a.sibling=null,a=s}while(null!==a)}}df=e}}0!=(e.subtreeFlags&le)&&null!==t?(t.return=e,df=t):nd()}}()}function nd(){for(;null!==df;){var e=df;0!=(e.flags&V)&&(Li(e),rd(e),Oi());var t=e.sibling;if(null!==t)return t.return=e.return,void(df=t);df=e.return}}function rd(e){switch(e.tag){case 0:case p:case g:2&e.mode?(Ol(),Tf(9,e,e.return),zl(e)):Tf(9,e,e.return)}}function od(e,t){for(;null!==df;){var n=df;Li(n),ad(n,t),Oi();var r=n.child;null!==r?(r.return=n,df=r):id(e)}}function id(e){for(;null!==df;){var t=df,n=t.sibling,r=t.return;if(Mf(t),t===e)return void(df=null);if(null!==n)return n.return=r,void(df=n);df=r}}function ad(e,t){switch(e.tag){case 0:case p:case g:2&e.mode?(Ol(),Tf(8,e,t),zl(e)):Tf(8,e,t)}}function sd(e){switch(e.tag){case 0:case p:case g:try{Ef(5,e)}catch(t){Wp(e,e.return,t)}break;case 1:var t=e.stateNode;try{t.componentDidMount()}catch(t){Wp(e,e.return,t)}}}function ud(e){switch(e.tag){case 0:case p:case g:try{Ef(9,e)}catch(t){Wp(e,e.return,t)}}}function ld(e){switch(e.tag){case 0:case p:case g:try{Tf(5,e,e.return)}catch(t){Wp(e,e.return,t)}break;case 1:var t=e.stateNode;"function"==typeof t.componentWillUnmount&&yf(e,e.return,t)}}function cd(e){switch(e.tag){case 0:case p:case g:try{Tf(9,e,e.return)}catch(t){Wp(e,e.return,t)}}}var fd=0,dd=1,pd=2,hd=3,md=4;if("function"==typeof Symbol&&Symbol.for){var yd=Symbol.for;fd=yd("selector.component"),dd=yd("selector.has_pseudo_class"),pd=yd("selector.role"),hd=yd("selector.test_id"),md=yd("selector.text")}function gd(e){var t=Fe(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw new Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");return t}var n=et(e);if(null===n)throw new Error("Could not find React container within specified host subtree.");return n.stateNode.current}function vd(e,t){switch(t.$$typeof){case fd:if(e.type===t.value)return!0;break;case dd:return function(e,t){var n=[e,0],r=0;for(;r<n.length;){var o=n[r++],i=n[r++],a=t[i];if(5!==o.tag||!rt(o)){for(;null!=a&&vd(o,a);)a=t[++i];if(i===t.length)return!0;for(var s=o.child;null!==s;)n.push(s,i),s=s.sibling}}return!1}(e,t.value);case pd:if(5===e.tag){var n=e.stateNode;if(ot(n,t.value))return!0}break;case md:if(5===e.tag||6===e.tag){var r=nt(e);if(null!==r&&r.indexOf(t.value)>=0)return!0}break;case hd:if(5===e.tag){var o=e.memoizedProps["data-testname"];if("string"==typeof o&&o.toLowerCase()===t.value.toLowerCase())return!0}break;default:throw new Error("Invalid selector type specified.")}return!1}function bd(e){switch(e.$$typeof){case fd:return"<"+(F(e.value)||"Unknown")+">";case dd:return":has("+(bd(e)||"")+")";case pd:return'[role="'+e.value+'"]';case md:return'"'+e.value+'"';case hd:return'[data-testname="'+e.value+'"]';default:throw new Error("Invalid selector type specified.")}}function _d(e,t){for(var n=[],r=[e,0],o=0;o<r.length;){var i=r[o++],a=r[o++],s=t[a];if(5!==i.tag||!rt(i)){for(;null!=s&&vd(i,s);)s=t[++a];if(a===t.length)n.push(i);else for(var u=i.child;null!==u;)r.push(u,a),u=u.sibling}}return n}function xd(e,t){if(!Ke)throw new Error("Test selector API is not supported by this renderer.");for(var n=_d(gd(e),t),r=[],o=Array.from(n),i=0;i<o.length;){var a=o[i++];if(5===a.tag){if(rt(a))continue;r.push(a.stateNode)}else for(var s=a.child;null!==s;)o.push(s),s=s.sibling}return r}var Sd=[];var wd=o.ReactCurrentActQueue;function Td(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===wd.current||s("The current testing environment is not configured to support act(...)"),e}var Ed=Math.ceil,Rd=o.ReactCurrentDispatcher,Pd=o.ReactCurrentOwner,kd=o.ReactCurrentBatchConfig,Cd=o.ReactCurrentActQueue,Md=0,Bd=null,Ad=null,Id=0,Nd=0,Ud=Bn(0),zd=0,Dd=null,Od=0,Ld=0,Fd=0,Wd=null,Gd=null,$d=0,Hd=1/0,qd=null;function jd(){Hd=co()+500}function Yd(){return Hd}var Vd=!1,Qd=null,Jd=null,Xd=!1,Zd=null,Kd=0,ep=[],tp=null,np=0,rp=null,op=!1,ip=!1,ap=0,sp=null,up=Pr,lp=0,cp=!1;function fp(){return Bd}function dp(){return 0!=(6&Md)?co():up!==Pr?up:up=co()}function pp(e){if(0==(1&e.mode))return 1;if(0!=(2&Md)&&0!==Id)return Fr(Id);if(null!==Mi.transition){if(null!==kd.transition){var t=kd.transition;t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e)}return 0===lp&&(lp=Or()),lp}var n=no();return 0!==n?n:Qe()}function hp(e){var t;return 0==(1&e.mode)?1:(t=Cr,0==((Cr<<=1)&hr)&&(Cr=mr),t)}function mp(e,t,n,r){!function(){if(np>50)throw np=0,rp=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");ap>50&&(ap=0,sp=null,s("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}(),cp&&s("useInsertionEffect must not schedule updates."),op&&(ip=!0),Qr(e,n,r),0!=(2&Md)&&e===Bd?function(e){if(zi&&!rl)switch(e.tag){case 0:case p:case g:var t=Ad&&G(Ad)||"Unknown",n=t;if(!Xp.has(n))Xp.add(n),s("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",G(e)||"Unknown",t,t);break;case 1:Zp||(s("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Zp=!0)}}(t):(So&&Zr(e,t,n),function(e){if(1&e.mode){if(!Td())return}else{if(t="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0,n="undefined"!=typeof jest,!ze||!n||!1===t)return;if(0!==Md)return;if(0!==e.tag&&e.tag!==p&&e.tag!==g)return}var t,n;if(null===Cd.current){var r=Ui;try{Li(e),s("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act",G(e))}finally{r?Li(e):Oi()}}}(t),e===Bd&&(0==(2&Md)&&(Ld=qr(Ld,n)),4===zd&&_p(e,Id)),yp(e,r),1!==n||0!==Md||0!=(1&t.mode)||Cd.isBatchingLegacy||(jd(),Go()))}function yp(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.pendingLanes,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,a=n;a>0;){var s=Wr(a),u=1<<s,l=i[s];l===Pr?0!=(u&r)&&0==(u&o)||(i[s]=Ar(u,t)):l<=t&&(e.expiredLanes|=u),a&=~u}}(e,t);var r=Br(e,e===Bd?Id:0);if(0===r)return null!==n&&nh(n),e.callbackNode=null,void(e.callbackPriority=0);var o=Lr(r),i=e.callbackPriority;if(i!==o||null!==Cd.current&&n!==eh){var a,u;if(null!=n&&nh(n),1===o)0===e.tag?(null!==Cd.isBatchingLegacy&&(Cd.didScheduleLegacyUpdate=!0),u=xp.bind(null,e),Lo=!0,Wo(u)):Wo(xp.bind(null,e)),Xe?null!==Cd.current?Cd.current.push($o):Ze((function(){0==(6&Md)&&$o()})):th(fo,$o),a=null;else{var l;switch(io(r)){case 1:l=fo;break;case 4:l=po;break;case 16:l=ho;break;case eo:l=mo;break;default:l=ho}a=th(l,gp.bind(null,e))}e.callbackPriority=o,e.callbackNode=a}else null==n&&1!==i&&s("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.")}function gp(e,t){if(Pl=!1,kl=!1,up=Pr,lp=0,0!=(6&Md))throw new Error("Should not already be working.");var n=e.callbackNode;if(Dp()&&e.callbackNode!==n)return null;var r=Br(e,e===Bd?Id:0);if(0===r)return null;var o=!zr(0,r)&&!function(e,t){return 0!=(t&e.expiredLanes)}(e,r)&&!t,i=o?function(e,t){var n=Md;Md|=2;var r=Pp();if(Bd!==e||Id!==t){if(So){var o=e.memoizedUpdaters;o.size>0&&(Kp(e,Id),o.clear()),Kr(e,t)}qd=null,jd(),Ep(e,t)}No(t);for(;;)try{Ip();break}catch(t){Rp(e,t)}return la(),kp(r),Md=n,null!==Ad?(null!==_o&&"function"==typeof _o.markRenderYielded&&_o.markRenderYielded(),0):(Uo(),Bd=null,Id=0,zd)}(e,r):Bp(e,r);if(0!==i){if(2===i){var a=Ir(e);0!==a&&(r=a,i=vp(e,a))}if(1===i){var s=Dd;throw Ep(e,0),_p(e,r),yp(e,co()),s}if(6===i)_p(e,r);else{var u=!zr(0,r),l=e.current.alternate;if(u&&!function(e){var t=e;for(;;){if(t.flags&X){var n=t.updateQueue;if(null!==n){var r=n.stores;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o],a=i.getSnapshot,s=i.value;try{if(!Do(a(),s))return!1}catch(e){return!1}}}}var u=t.child;if(t.subtreeFlags&X&&null!==u)u.return=t,t=u;else{if(t===e)return!0;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(l)){if(2===(i=Bp(e,r))){var c=Ir(e);0!==c&&(r=c,i=vp(e,c))}if(1===i){var f=Dd;throw Ep(e,0),_p(e,r),yp(e,co()),f}}e.finishedWork=l,e.finishedLanes=r,function(e,t,n){switch(t){case 0:case 1:throw new Error("Root did not complete. This is a bug in React.");case 2:case 5:zp(e,Gd,qd);break;case 3:if(_p(e,n),Ur(n)&&!rh()){var r=$d+500-co();if(r>10){if(0!==Br(e,0))break;var o=e.suspendedLanes;if(!Hr(o,n)){dp(),Jr(e,o);break}e.timeoutHandle=Ae(zp.bind(null,e,Gd,qd),r);break}}zp(e,Gd,qd);break;case 4:if(_p(e,n),function(e){return(e&tr)===e}(n))break;if(!rh()){var i=function(e,t){for(var n=e.eventTimes,r=Pr;t>0;){var o=Wr(t),i=1<<o,a=n[o];a>r&&(r=a),t&=~i}return r}(e,n),a=i,s=co()-a,u=((l=s)<120?120:l<480?480:l<1080?1080:l<1920?1920:l<3e3?3e3:l<4320?4320:1960*Ed(l/1960))-s;if(u>10){e.timeoutHandle=Ae(zp.bind(null,e,Gd,qd),u);break}}zp(e,Gd,qd);break;default:throw new Error("Unknown root exit status.")}var l}(e,i,r)}}return yp(e,co()),e.callbackNode===n?gp.bind(null,e):null}function vp(e,t){var n=Wd;Ho(e)&&(Ep(e,t).flags|=q,cn(e.containerInfo));var r=Bp(e,t);if(2!==r){var o=Gd;Gd=n,null!==o&&bp(o)}return r}function bp(e){null===Gd?Gd=e:Gd.push.apply(Gd,e)}function _p(e,t){t=jr(t,Fd),function(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var o=Wr(r),i=1<<o;n[o]=Pr,r&=~i}}(e,t=jr(t,Ld))}function xp(e){if(Pl=kl,kl=!1,0!=(6&Md))throw new Error("Should not already be working.");Dp();var t=Br(e,0);if(!$r(t,1))return yp(e,co()),null;var n=Bp(e,t);if(0!==e.tag&&2===n){var r=Ir(e);0!==r&&(t=r,n=vp(e,r))}if(1===n){var o=Dd;throw Ep(e,0),_p(e,t),yp(e,co()),o}if(6===n)throw new Error("Root did not complete. This is a bug in React.");var i=e.current.alternate;return e.finishedWork=i,e.finishedLanes=t,zp(e,Gd,qd),yp(e,co()),null}function Sp(e){null!==Zd&&0===Zd.tag&&0==(6&Md)&&Dp();var t=Md;Md|=1;var n=kd.transition,r=no();try{return kd.transition=null,ro(1),e?e():void 0}finally{ro(r),kd.transition=n,0==(6&(Md=t))&&$o()}}function wp(e,t){In(Ud,Nd,e),Nd=qr(Nd,t)}function Tp(e){Nd=Ud.current,An(Ud,e)}function Ep(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==Ne&&(e.timeoutHandle=Ne,Ie(n)),null!==Ad)for(var r=Ad.return;null!==r;){r.alternate;Xc(0,r),r=r.return}Bd=e;var o=wh(e.current,null);return Ad=o,Id=Nd=t,zd=0,Dd=null,Od=0,Ld=0,Fd=0,Wd=null,Gd=null,function(){if(null!==va){for(var e=0;e<va.length;e++){var t=va[e],n=t.interleaved;if(null!==n){t.interleaved=null;var r=n.next,o=t.pending;if(null!==o){var i=o.next;o.next=r,n.next=i}t.pending=n}}va=null}}(),Wi.discardPendingWarnings(),o}function Rp(e,t){for(;;){var n=Ad;try{if(la(),du(),Oi(),Pd.current=null,null===n||null===n.return)return zd=1,Dd=t,void(Ad=null);2&n.mode&&Nl(n,!0),ko(),null!==t&&"object"==typeof t&&"function"==typeof t.then?Io(n,t,Id):Ao(n,t,Id),Ql(e,n.return,n,t,Id),Up(n)}catch(e){t=e,Ad===n&&null!==n?(n=n.return,Ad=n):n=Ad;continue}return}}function Pp(){var e=Rd.current;return Rd.current=dl,null===e?dl:e}function kp(e){Rd.current=e}function Cp(e){Od=qr(e,Od)}function Mp(){0!==zd&&3!==zd&&2!==zd||(zd=4),null!==Bd&&(Nr(Od)||Nr(Ld))&&_p(Bd,Id)}function Bp(e,t){var n=Md;Md|=2;var r=Pp();if(Bd!==e||Id!==t){if(So){var o=e.memoizedUpdaters;o.size>0&&(Kp(e,Id),o.clear()),Kr(e,t)}qd=null,Ep(e,t)}for(No(t);;)try{Ap();break}catch(t){Rp(e,t)}if(la(),Md=n,kp(r),null!==Ad)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Uo(),Bd=null,Id=0,zd}function Ap(){for(;null!==Ad;)Np(Ad)}function Ip(){for(;null!==Ad&&!uo();)Np(Ad)}function Np(e){var t,n=e.alternate;Li(e),0!=(2&e.mode)?(Al(e),t=Vp(n,e,Nd),Nl(e,!0)):t=Vp(n,e,Nd),Oi(),e.memoizedProps=e.pendingProps,null===t?Up(e):Ad=t,Pd.current=null}function Up(e){var t=e;do{var n=t.alternate,r=t.return;if(0==(t.flags&Z)){Li(t);var o=void 0;if(0==(2&t.mode)?o=Qc(n,t,Nd):(Al(t),o=Qc(n,t,Nd),Nl(t,!1)),Oi(),null!==o)return void(Ad=o)}else{var i=Jc(0,t);if(null!==i)return i.flags&=32767,void(Ad=i);if(0!=(2&t.mode)){Nl(t,!1);for(var a=t.actualDuration,s=t.child;null!==s;)a+=s.actualDuration,s=s.sibling;t.actualDuration=a}if(null===r)return zd=6,void(Ad=null);r.flags|=Z,r.subtreeFlags=0,r.deletions=null}var u=t.sibling;if(null!==u)return void(Ad=u);Ad=t=r}while(null!==t);0===zd&&(zd=5)}function zp(e,t,n){var r=no(),o=kd.transition;try{kd.transition=null,ro(1),function(e,t,n,r){do{Dp()}while(null!==Zd);if(function(){Wi.flushLegacyContextWarning(),Wi.flushPendingUnsafeLifecycleWarnings()}(),0!=(6&Md))throw new Error("Should not already be working.");var o=e.finishedWork,i=e.finishedLanes;if(function(e){null!==_o&&"function"==typeof _o.markCommitStarted&&_o.markCommitStarted(e)}(i),null===o)return Ro(),null;0===i&&s("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var a=qr(o.lanes,o.childLanes);(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var r=e.entanglements,o=e.eventTimes,i=e.expirationTimes,a=n;a>0;){var s=Wr(a),u=1<<s;r[s]=0,o[s]=Pr,i[s]=Pr,a&=~u}})(e,a),e===Bd&&(Bd=null,Ad=null,Id=0);0==(o.subtreeFlags&le)&&0==(o.flags&le)||Xd||(Xd=!0,tp=n,th(ho,(function(){return Dp(),null})));var u=0!=(15990&o.subtreeFlags),l=0!=(15990&o.flags);if(u||l){var c=kd.transition;kd.transition=null;var f=no();ro(1);var d=Md;Md|=4,Pd.current=null,xf(e,o),Bl(),function(e,t,n){pf=n,hf=e,Li(t),$f(t,e),Li(t),pf=null,hf=null}(e,o,i),Ee(e.containerInfo),e.current=o,function(e){null!==_o&&"function"==typeof _o.markLayoutEffectsStarted&&_o.markLayoutEffectsStarted(e)}(i),qf(o,e,i),null!==_o&&"function"==typeof _o.markLayoutEffectsStopped&&_o.markLayoutEffectsStopped(),lo(),Md=d,ro(f),kd.transition=c}else e.current=o,Bl();var p=Xd;Xd?(Xd=!1,Zd=e,Kd=i):(ap=0,sp=null);0===(a=e.pendingLanes)&&(Jd=null);p||jp(e.current,!1);(function(e,t){if(bo&&"function"==typeof bo.onCommitFiberRoot)try{var n,r=(e.current.flags&H)===H;switch(t){case 1:n=fo;break;case 4:n=po;break;case 16:n=ho;break;case eo:n=mo;break;default:n=ho}bo.onCommitFiberRoot(vo,e,n,r)}catch(e){xo||(xo=!0,s("React instrumentation encountered an error: %s",e))}})(o.stateNode,r),So&&e.memoizedUpdaters.clear();if(function(){Ke&&Sd.forEach((function(e){return e()}))}(),yp(e,co()),null!==t)for(var h=e.onRecoverableError,m=0;m<t.length;m++){var y=t[m],g=y.stack,v=y.digest;h(y.value,{componentStack:g,digest:v})}if(Vd){Vd=!1;var b=Qd;throw Qd=null,b}$r(Kd,1)&&0!==e.tag&&Dp();$r(a=e.pendingLanes,1)?(kl=!0,e===rp?np++:(np=0,rp=e)):np=0;$o(),Ro()}(e,t,n,r)}finally{kd.transition=o,ro(r)}return null}function Dp(){if(null!==Zd){var e=io(Kd),t=(i=e,0===(o=16)||o>i?o:i),n=kd.transition,r=no();try{return kd.transition=null,ro(t),function(){if(null===Zd)return!1;var e=tp;tp=null;var t=Zd,n=Kd;if(Zd=null,Kd=0,0!=(6&Md))throw new Error("Cannot flush passive effects while already rendering.");op=!0,ip=!1,function(e){null!==_o&&"function"==typeof _o.markPassiveEffectsStarted&&_o.markPassiveEffectsStarted(e)}(n);var r=Md;Md|=4,td(t.current),Zf(t,t.current,n,e);var o=ep;ep=[];for(var i=0;i<o.length;i++){Rf(0,o[i])}void(null!==_o&&"function"==typeof _o.markPassiveEffectsStopped&&_o.markPassiveEffectsStopped()),jp(t.current,!0),Md=r,$o(),ip?t===sp?ap++:(ap=0,sp=t):ap=0;op=!1,ip=!1,function(e){if(bo&&"function"==typeof bo.onPostCommitFiberRoot)try{bo.onPostCommitFiberRoot(vo,e)}catch(e){xo||(xo=!0,s("React instrumentation encountered an error: %s",e))}}(t);var a=t.current.stateNode;return a.effectDuration=0,a.passiveEffectDuration=0,!0}()}finally{ro(r),kd.transition=n}}var o,i;return!1}function Op(e){return null!==Jd&&Jd.has(e)}var Lp=function(e){Vd||(Vd=!0,Qd=e)};function Fp(e,t,n){var r=Aa(e,Hl(e,Fl(n,t),1),1),o=dp();null!==r&&(Qr(r,1,o),yp(r,o))}function Wp(e,t,n){if(function(e){af(null,(function(){throw e})),sf()}(n),oh(!1),3!==e.tag){var r=null;for(r=t;null!==r;){if(3===r.tag)return void Fp(r,e,n);if(1===r.tag){var o=r.type,i=r.stateNode;if("function"==typeof o.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&!Op(i)){var a=Aa(r,ql(r,Fl(n,e),1),1),u=dp();return void(null!==a&&(Qr(a,1,u),yp(a,u)))}}r=r.return}s("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}else Fp(e,e,n)}function Gp(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);var o=dp();Jr(e,n),function(e){0!==e.tag&&Td()&&null===Cd.current&&s("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act")}(e),Bd===e&&Hr(Id,n)&&(4===zd||3===zd&&Ur(Id)&&co()-$d<500?Ep(e,0):Fd=qr(Fd,n)),yp(e,o)}function $p(e,t){0===t&&(t=hp(e));var n=dp(),r=Sa(e,t);null!==r&&(Qr(r,t,n),yp(r,n))}function Hp(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),$p(e,n)}function qp(e,t){var n,r=0;switch(e.tag){case m:n=e.stateNode;var o=e.memoizedState;null!==o&&(r=o.retryLane);break;case _:n=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==n&&n.delete(t),$p(e,r)}function jp(e,t){Li(e),Yp(e,oe,ld),t&&Yp(e,ie,cd),Yp(e,oe,sd),t&&Yp(e,ie,ud),Oi()}function Yp(e,t,n){for(var r=e,o=null;null!==r;){var i=r.subtreeFlags&t;r!==o&&null!==r.child&&0!==i?r=r.child:(0!=(r.flags&t)&&n(r),r=null!==r.sibling?r.sibling:o=r.return)}}var Vp,Qp=null;function Jp(e){if(0==(2&Md)&&1&e.mode){var t=e.tag;if(2===t||3===t||1===t||0===t||t===p||t===y||t===g){var n=G(e)||"ReactComponent";if(null!==Qp){if(Qp.has(n))return;Qp.add(n)}else Qp=new Set([n]);var r=Ui;try{Li(e),s("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{r?Li(e):Oi()}}}}Vp=function(e,t,n){var r=Bh(null,t);try{return Wc(e,t,n)}catch(i){if(ci||null!==i&&"object"==typeof i&&"function"==typeof i.then)throw i;if(la(),du(),Xc(0,t),Bh(t,r),2&t.mode&&Al(t),af(null,Wc,null,e,t,n),nf){var o=sf();"object"==typeof o&&null!==o&&o._suppressLogging&&"object"==typeof i&&null!==i&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}};var Xp,Zp=!1;function Kp(e,t){So&&e.memoizedUpdaters.forEach((function(n){Zr(e,n,t)}))}Xp=new Set;var eh={};function th(e,t){var n=Cd.current;return null!==n?(n.push(t),eh):ao(e,t)}function nh(e){if(e!==eh)return so(e)}function rh(){return null!==Cd.current}function oh(e){cp=e}var ih=null,ah=null,sh=function(e){ih=e};function uh(e){if(null===ih)return e;var t=ih(e);return void 0===t?e:t.current}function lh(e){return uh(e)}function ch(e){if(null===ih)return e;var t=ih(e);if(void 0===t){if(null!=e&&"function"==typeof e.render){var n=uh(e.render);if(e.render!==n){var r={$$typeof:B,render:n};return void 0!==e.displayName&&(r.displayName=e.displayName),r}}return e}return t.current}function fh(e,t){if(null===ih)return!1;var n=e.elementType,r=t.type,o=!1,i="object"==typeof r&&null!==r?r.$$typeof:null;switch(e.tag){case 1:"function"==typeof r&&(o=!0);break;case 0:("function"==typeof r||i===U)&&(o=!0);break;case p:(i===B||i===U)&&(o=!0);break;case y:case g:(i===N||i===U)&&(o=!0);break;default:return!1}if(o){var a=ih(n);if(void 0!==a&&a===ih(r))return!0}return!1}function dh(e){null!==ih&&"function"==typeof WeakSet&&(null===ah&&(ah=new WeakSet),ah.add(e))}var ph=function(e,t){if(null!==ih){var n=t.staleFamilies,r=t.updatedFamilies;Dp(),Sp((function(){mh(e.current,r,n)}))}},hh=function(e,t){e.context===Nn&&(Dp(),Sp((function(){Dh(t,e,null,null)})))};function mh(e,t,n){var r=e.alternate,o=e.child,i=e.sibling,a=e.tag,s=e.type,u=null;switch(a){case 0:case g:case 1:u=s;break;case p:u=s.render}if(null===ih)throw new Error("Expected resolveFamily to be set during hot reload.");var l=!1,c=!1;if(null!==u){var f=ih(u);void 0!==f&&(n.has(f)?c=!0:t.has(f)&&(1===a?c=!0:l=!0))}if(null!==ah&&(ah.has(e)||null!==r&&ah.has(r))&&(c=!0),c&&(e._debugNeedsRemount=!0),c||l){var d=Sa(e,1);null!==d&&mp(d,e,1,Pr)}null===o||c||mh(o,t,n),null!==i&&mh(i,t,n)}var yh,gh=function(e,t){var n=new Set,r=new Set(t.map((function(e){return e.current})));return vh(e.current,r,n),n};function vh(e,t,n){var r=e.child,o=e.sibling,i=e.tag,a=e.type,s=null;switch(i){case 0:case g:case 1:s=a;break;case p:s=a.render}var u=!1;null!==s&&t.has(s)&&(u=!0),u?function(e,t){if(function(e,t){var n=e,r=!1;for(;;){if(5===n.tag)r=!0,t.add(n.stateNode);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)return r;for(;null===n.sibling;){if(null===n.return||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}(e,t))return;var n=e;for(;;){switch(n.tag){case 5:return void t.add(n.stateNode);case 4:case 3:return void t.add(n.stateNode.containerInfo)}if(null===n.return)throw new Error("Expected to reach root first.");n=n.return}}(e,n):null!==r&&vh(r,t,n),null!==o&&vh(o,t,n)}yh=!1;try{var bh=Object.preventExtensions({});new Map([[bh,null]]),new Set([bh])}catch(e){yh=!0}function _h(e,t,n,r){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=r,this.flags=0,this.subtreeFlags=0,this.deletions=null,this.lanes=0,this.childLanes=0,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,yh||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}var xh=function(e,t,n,r){return new _h(e,t,n,r)};function Sh(e){var t=e.prototype;return!(!t||!t.isReactComponent)}function wh(e,t){var n=e.alternate;null===n?((n=xh(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&ce,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var r=e.dependencies;switch(n.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 2:case 0:case g:n.type=uh(e.type);break;case 1:n.type=lh(e.type);break;case p:n.type=ch(e.type)}return n}function Th(e,t){e.flags&=14680066;var n=e.alternate;if(null===n)e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var r=n.dependencies;e.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function Eh(e,t,n,r,o,i){var a=2,u=e;if("function"==typeof e)Sh(e)?(a=1,u=lh(u)):u=uh(u);else if("string"==typeof e)a=5;else e:switch(e){case R:return Ph(n.children,o,i,t);case P:a=8,0!=(1&(o|=8))&&(o|=Jn);break;case k:return function(e,t,n,r){"string"!=typeof e.id&&s('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var o=xh(h,e,r,2|t);return o.elementType=k,o.lanes=n,o.stateNode={effectDuration:0,passiveEffectDuration:0},o}(n,o,i,t);case A:return function(e,t,n,r){var o=xh(m,e,r,t);return o.elementType=A,o.lanes=n,o}(n,o,i,t);case I:return function(e,t,n,r){var o=xh(_,e,r,t);return o.elementType=I,o.lanes=n,o}(n,o,i,t);case z:return kh(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:a=d;break e;case M:a=9;break e;case B:a=p,u=ch(u);break e;case N:a=y;break e;case U:a=16,u=null;break e}var l="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var c=r?G(r):null;throw c&&(l+="\n\nCheck the render method of `"+c+"`."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+"."+l)}var f=xh(a,n,t,o);return f.elementType=e,f.type=u,f.lanes=i,f._debugOwner=r,f}function Rh(e,t,n){var r;r=e._owner;var o=Eh(e.type,e.key,e.props,r,t,n);return o._debugSource=e._source,o._debugOwner=e._owner,o}function Ph(e,t,n,r){var o=xh(7,e,r,t);return o.lanes=n,o}function kh(e,t,n,r){var o=xh(S,e,r,t);o.elementType=z,o.lanes=n;return o.stateNode={isHidden:!1},o}function Ch(e,t,n){var r=xh(6,e,null,t);return r.lanes=n,r}function Mh(e,t,n){var r=null!==e.children?e.children:[],o=xh(4,r,e.key,t);return o.lanes=n,o.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},o}function Bh(e,t){return null===e&&(e=xh(2,null,null,0)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function Ah(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Ne,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vr(0),this.expirationTimes=Vr(Pr),this.pendingLanes=0,this.suspendedLanes=0,this.pingedLanes=0,this.expiredLanes=0,this.mutableReadLanes=0,this.finishedLanes=0,this.entangledLanes=0,this.entanglements=Vr(0),this.identifierPrefix=r,this.onRecoverableError=o,Le&&(this.mutableSourceEagerHydrationData=null),this.effectDuration=0,this.passiveEffectDuration=0,this.memoizedUpdaters=new Set;for(var i=this.pendingUpdatersLaneMap=[],a=0;a<31;a++)i.push(new Set);switch(t){case 1:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case 0:this._debugRootType=n?"hydrate()":"render()"}}function Ih(e,t,n,r,o,i,a,s,u,l){var c=new Ah(e,t,n,s,u),f=function(e,t,n){var r;return 1===e?(r=1,!0===t&&(r|=8,r|=Jn)):r=0,So&&(r|=2),xh(3,null,null,r)}(t,i);c.current=f,f.stateNode=c;var d={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};return f.memoizedState=d,Ca(f),c}var Nh,Uh;function zh(e){if(!e)return Nn;var t=c(e),n=Qn(t);if(1===t.tag){var r=t.type;if(Gn(r))return jn(t,r,n)}return n}function Dh(e,t,n,r){!function(e,t){if(bo&&"function"==typeof bo.onScheduleFiberRoot)try{bo.onScheduleFiberRoot(vo,e,t)}catch(e){xo||(xo=!0,s("React instrumentation encountered an error: %s",e))}}(t,e);var o=t.current,i=dp(),a=pp(o);!function(e){null!==_o&&"function"==typeof _o.markRenderScheduled&&_o.markRenderScheduled(e)}(a);var u=zh(n);null===t.context?t.context=u:t.pendingContext=u,zi&&null!==Ui&&!Nh&&(Nh=!0,s("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",G(Ui)||"Unknown"));var l=Ba(i,a);l.payload={element:e},null!==(r=void 0===r?null:r)&&("function"!=typeof r&&s("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r),l.callback=r);var c=Aa(o,l,a);return null!==c&&(mp(c,o,a,i),Ia(c,o,a)),a}function Oh(e,t){var n,r,o=e.memoizedState;null!==o&&null!==o.dehydrated&&(o.retryLane=(n=o.retryLane,r=t,0!==n&&n<r?n:r))}function Lh(e,t){Oh(e,t);var n=e.alternate;n&&Oh(n,t)}Nh=!1,Uh={};var Fh=function(e){return null};function Wh(e){return Fh(e)}var Gh=function(e){return!1};function $h(e){return Gh(e)}var Hh,qh,jh,Yh,Vh,Qh,Jh,Xh,Zh,Kh=function(e,t,n){var r=t[n],o=_e(e)?e.slice():l({},e);return n+1===t.length?(_e(o)?o.splice(r,1):delete o[r],o):(o[r]=Kh(e[r],t,n+1),o)},em=function(e,t){return Kh(e,t,0)},tm=function(e,t,n,r){var o=t[r],i=_e(e)?e.slice():l({},e);r+1===t.length?(i[n[r]]=i[o],_e(i)?i.splice(o,1):delete i[o]):i[o]=tm(e[o],t,n,r+1);return i},nm=function(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void a("copyWithRename() expects paths to be the same except for the deepest key");return tm(e,t,n,0)}a("copyWithRename() expects paths of the same length")},rm=function(e,t,n,r){if(n>=t.length)return r;var o=t[n],i=_e(e)?e.slice():l({},e);return i[o]=rm(e[o],t,n+1,r),i},om=function(e,t,n){return rm(e,t,0,n)},im=function(e,t){for(var n=e.memoizedState;null!==n&&t>0;)n=n.next,t--;return n};function am(e){var t=me(e);return null===t?null:t.stateNode}function sm(e){return null}function um(){return Ui}return Hh=function(e,t,n,r){var o=im(e,t);if(null!==o){var i=om(o.memoizedState,n,r);o.memoizedState=i,o.baseState=i,e.memoizedProps=l({},e.memoizedProps);var a=Sa(e,1);null!==a&&mp(a,e,1,Pr)}},qh=function(e,t,n){var r=im(e,t);if(null!==r){var o=em(r.memoizedState,n);r.memoizedState=o,r.baseState=o,e.memoizedProps=l({},e.memoizedProps);var i=Sa(e,1);null!==i&&mp(i,e,1,Pr)}},jh=function(e,t,n,r){var o=im(e,t);if(null!==o){var i=nm(o.memoizedState,n,r);o.memoizedState=i,o.baseState=i,e.memoizedProps=l({},e.memoizedProps);var a=Sa(e,1);null!==a&&mp(a,e,1,Pr)}},Yh=function(e,t,n){e.pendingProps=om(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Sa(e,1);null!==r&&mp(r,e,1,Pr)},Vh=function(e,t){e.pendingProps=em(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=Sa(e,1);null!==n&&mp(n,e,1,Pr)},Qh=function(e,t,n){e.pendingProps=nm(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Sa(e,1);null!==r&&mp(r,e,1,Pr)},Jh=function(e){var t=Sa(e,1);null!==t&&mp(t,e,1,Pr)},Xh=function(e){Fh=e},Zh=function(e){Gh=e},t.attemptContinuousHydration=function(e){if(e.tag===m){var t=xr,n=Sa(e,t);if(null!==n)mp(n,e,t,dp());Lh(e,t)}},t.attemptDiscreteHydration=function(e){if(e.tag===m){var t=Sa(e,1);if(null!==t)mp(t,e,1,dp());Lh(e,1)}},t.attemptHydrationAtCurrentPriority=function(e){if(e.tag===m){var t=pp(e),n=Sa(e,t);if(null!==n)mp(n,e,t,dp());Lh(e,t)}},t.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(Ho(t)){var n=function(e){return Mr(e.pendingLanes)}(t);!function(e,t){0!==t&&(Xr(e,qr(t,1)),yp(e,co()),0==(6&Md)&&(jd(),$o()))}(t,n)}break;case m:Sp((function(){var t=Sa(e,1);if(null!==t){var n=dp();mp(t,e,1,n)}}));Lh(e,1)}},t.batchedUpdates=function(e,t){var n=Md;Md|=1;try{return e(t)}finally{0!==(Md=n)||Cd.isBatchingLegacy||(jd(),Go())}},t.createComponentSelector=function(e){return{$$typeof:fd,value:e}},t.createContainer=function(e,t,n,r,o,i,a,s){return Ih(e,t,!1,null,0,r,0,i,a)},t.createHasPseudoClassSelector=function(e){return{$$typeof:dd,value:e}},t.createHydrationContainer=function(e,t,n,r,o,i,a,s,u,l){var c=Ih(n,r,!0,e,0,i,0,s,u);c.context=zh(null);var f=c.current,d=dp(),p=pp(f),h=Ba(d,p);return h.callback=null!=t?t:null,Aa(f,h,p),function(e,t,n){e.current.lanes=t,Qr(e,t,n),yp(e,n)}(c,p,d),c},t.createPortal=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return ta(r),{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}},t.createRoleSelector=function(e){return{$$typeof:pd,value:e}},t.createTestNameSelector=function(e){return{$$typeof:hd,value:e}},t.createTextSelector=function(e){return{$$typeof:md,value:e}},t.deferredUpdates=function(e){var t=no(),n=kd.transition;try{return kd.transition=null,ro(16),e()}finally{ro(t),kd.transition=n}},t.discreteUpdates=function(e,t,n,r,o){var i=no(),a=kd.transition;try{return kd.transition=null,ro(1),e(t,n,r,o)}finally{ro(i),kd.transition=a,0===Md&&jd()}},t.findAllNodes=xd,t.findBoundingRects=function(e,t){if(!Ke)throw new Error("Test selector API is not supported by this renderer.");for(var n=xd(e,t),r=[],o=0;o<n.length;o++)r.push(tt(n[o]));for(var i=r.length-1;i>0;i--)for(var a=r[i],s=a.x,u=s+a.width,l=a.y,c=l+a.height,f=i-1;f>=0;f--)if(i!==f){var d=r[f],p=d.x,h=p+d.width,m=d.y,y=m+d.height;if(s>=p&&l>=m&&u<=h&&c<=y){r.splice(i,1);break}if(!(s!==p||a.width!==d.width||y<l||m>c)){m>l&&(d.height+=m-l,d.y=l),y<c&&(d.height=c-m),r.splice(i,1);break}if(!(l!==m||a.height!==d.height||h<s||p>u)){p>s&&(d.width+=p-s,d.x=s),h<u&&(d.width=u-p),r.splice(i,1);break}}return r},t.findHostInstance=function(e){var t=c(e);if(void 0===t){if("function"==typeof e.render)throw new Error("Unable to find node on an unmounted component.");var n=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+n)}var r=me(t);return null===r?null:r.stateNode},t.findHostInstanceWithNoPortals=function(e){var t=ge(e);return null===t?null:t.stateNode},t.findHostInstanceWithWarning=function(e,t){var n=c(e);if(void 0===n){if("function"==typeof e.render)throw new Error("Unable to find node on an unmounted component.");var r=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+r)}var o=me(n);if(null===o)return null;if(8&o.mode){var i=G(n)||"Component";if(!Uh[i]){Uh[i]=!0;var a=Ui;try{Li(o),8&n.mode?s("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i):s("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i)}finally{a?Li(a):Oi()}}}return o.stateNode},t.flushControlled=function(e){var t=Md;Md|=1;var n=kd.transition,r=no();try{kd.transition=null,ro(1),e()}finally{ro(r),kd.transition=n,0===(Md=t)&&(jd(),$o())}},t.flushPassiveEffects=Dp,t.flushSync=Sp,t.focusWithin=function(e,t){if(!Ke)throw new Error("Test selector API is not supported by this renderer.");for(var n=_d(gd(e),t),r=Array.from(n),o=0;o<r.length;){var i=r[o++];if(!rt(i)){if(5===i.tag){var a=i.stateNode;if(it(a))return!0}for(var s=i.child;null!==s;)r.push(s),s=s.sibling}}return!1},t.getCurrentUpdatePriority=no,t.getFindAllNodesFailureDescription=function(e,t){if(!Ke)throw new Error("Test selector API is not supported by this renderer.");for(var n=0,r=[],o=[gd(e),0],i=0;i<o.length;){var a=o[i++],s=o[i++],u=t[s];if((5!==a.tag||!rt(a))&&(vd(a,u)&&(r.push(bd(u)),++s>n&&(n=s)),s<t.length))for(var l=a.child;null!==l;)o.push(l,s),l=l.sibling}if(n<t.length){for(var c=[],f=n;f<t.length;f++)c.push(bd(t[f]));return"findAllNodes was able to match part of the selector:\n "+r.join(" > ")+"\n\nNo matching component was found for:\n "+c.join(" > ")}return null},t.getPublicRootInstance=function(e){var t=e.current;return t.child?5===t.child.tag?xe(t.child.stateNode):t.child.stateNode:null},t.injectIntoDevTools=function(e){var t=e.findFiberByHostInstance,n=o.ReactCurrentDispatcher;return function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return s("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{e=l({},e,{getLaneLabelMap:Eo,injectProfilingHooks:To}),vo=t.inject(e),bo=t}catch(e){s("React instrumentation encountered an error: %s.",e)}return!!t.checkDCE}({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:Hh,overrideHookStateDeletePath:qh,overrideHookStateRenamePath:jh,overrideProps:Yh,overridePropsDeletePath:Vh,overridePropsRenamePath:Qh,setErrorHandler:Xh,setSuspenseHandler:Zh,scheduleUpdate:Jh,currentDispatcherRef:n,findHostInstanceByFiber:am,findFiberByHostInstance:t||sm,findHostInstancesForRefresh:gh,scheduleRefresh:ph,scheduleRoot:hh,setRefreshHandler:sh,getCurrentFiber:um,reconcilerVersion:"18.2.0"})},t.isAlreadyRendering=function(){return 0!=(6&Md)},t.observeVisibleRects=function(e,t,n,r){if(!Ke)throw new Error("Test selector API is not supported by this renderer.");var o=xd(e,t),i=at(o,n,r),a=i.disconnect,s=i.observe,u=i.unobserve,l=function(){var n=xd(e,t);o.forEach((function(e){n.indexOf(e)<0&&u(e)})),n.forEach((function(e){o.indexOf(e)<0&&s(e)}))};return Sd.push(l),{disconnect:function(){var e=Sd.indexOf(l);e>=0&&Sd.splice(e,1),a()}}},t.registerMutableSourceForHydration=function(e,t){var n=(0,t._getVersion)(t._source);null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},t.runWithPriority=function(e,t){var n=to;try{return to=e,t()}finally{to=n}},t.shouldError=Wh,t.shouldSuspend=$h,t.updateContainer=Dh,t})),reactReconciler_developmentExports}function requireReactReconciler(){return hasRequiredReactReconciler||(hasRequiredReactReconciler=1,e=reactReconciler,"production"===process.env.NODE_ENV?e.exports=requireReactReconciler_production_min():e.exports=requireReactReconciler_development()),reactReconcilerExports$1;var e}var reactReconcilerExports=requireReactReconciler(),Reconciler=getDefaultExportFromCjs(reactReconcilerExports);const parseTextureMode={"nine-slices":0,center:1,stretch:2};function getTextureMode(e){return{textureMode:e?parseTextureMode[e]:1}}function getTexture(e){return e.texture?{tex:{$case:"texture",texture:parseTexture(e.texture)}}:e.avatarTexture?{tex:{$case:"avatarTexture",avatarTexture:parseTexture(e.avatarTexture)}}:void 0}function parseTexture(e){return{...e,wrapMode:e.wrapMode?parseWrap[e.wrapMode]:void 0,filterMode:e.filterMode?parseFilter[e.filterMode]:void 0}}const parseWrap={repeat:0,clamp:1,mirror:2,"mirror-once":3},parseFilter={point:0,"bi-linear":1,"tri-linear":2};function parseUiBackground(e){if(!e||!Object.keys(e).length)return;const t=getTexture(e);return{...e,...getTextureMode(e.textureMode),uvs:e.uvs??[],texture:t}}function capitalize(e){return`${e[0].toUpperCase()}${e.slice(1,e.length)}`}function isPercent(e){return"string"==typeof e&&e.endsWith("%")}function isPoint(e){return"string"==typeof e&&e.endsWith("px")}function parsePositionUnit(e){function t(e,t){return Number(t.slice(0,t.indexOf(e)))}return null==e?[void 0,0]:"number"==typeof e?[Number(e),1]:isPercent(e)?[t("%",e),2]:isPoint(e)?[t("px",e),1]:[void 0,0]}function parsePosition(e={},t){const n={};for(const r in e){const o=r,i=`${t}${capitalize(o)}`,a=`${t}${capitalize(o)}Unit`,[s,u]=parsePositionUnit(e[o]);void 0!==s&&(n[a]=u,n[i]=s)}return n}function parseSize(e,t){const n=`${t}Unit`,[r,o]=parsePositionUnit(e);return void 0===r?{}:{[t]:r,[n]:o}}function getDisplay(e){return{display:e?parseDisplay[e]:0}}const parseDisplay={flex:0,none:1};function getJustify(e){return{justifyContent:e?parseJustify[e]:0}}const parseJustify={center:1,"flex-end":2,"flex-start":0,"space-around":4,"space-between":3,"space-evenly":5};function getAlign(e,t,n){return{[e]:t?parseAligns[t]:n}}const parseAligns={auto:0,baseline:5,center:2,"flex-end":3,"flex-start":1,stretch:4,"space-between":6,"space-around":7};function getFlexDirection(e){return{flexDirection:e?parseFlexDirection[e]:0}}const parseFlexDirection={row:0,column:1,"row-reverse":3,"column-reverse":2};function getFlexWrap(e){return{flexWrap:e?parseFlexWrap[e]:1}}const parseFlexWrap={wrap:1,nowrap:0,"wrap-reverse":2};function getOverflow(e){return{overflow:e?parseOverflow[e]:0}}const parseOverflow={visible:0,scroll:2,hidden:1};function getPoistionType(e){return{positionType:e?parsePositionType[e]:0}}const parsePositionType={relative:0,absolute:1},CANVAS_ROOT_ENTITY=0,defaultUiTransform={parent:CANVAS_ROOT_ENTITY,rightOf:0,flexBasis:0,width:0,height:0,minWidth:0,minHeight:0,maxWidth:0,maxHeight:0,flexGrow:0,marginBottom:0,marginBottomUnit:0,marginLeft:0,marginLeftUnit:0,marginRight:0,marginRightUnit:0,marginTop:0,marginTopUnit:0,maxHeightUnit:0,maxWidthUnit:0,minHeightUnit:0,minWidthUnit:0,paddingBottom:0,paddingBottomUnit:0,paddingLeft:0,paddingLeftUnit:0,paddingTopUnit:0,paddingRight:0,paddingRightUnit:0,paddingTop:0,positionBottom:0,positionBottomUnit:0,positionLeft:0,positionLeftUnit:0,positionRight:0,positionRightUnit:0,positionTop:0,positionTopUnit:0,flexBasisUnit:0,widthUnit:0,heightUnit:0};function parseUiTransform(e={}){const{height:t,minHeight:n,maxHeight:r,width:o,minWidth:i,maxWidth:a,...s}=e;return{...defaultUiTransform,...s,...parsePosition(e.position,"position"),...parsePosition(e.margin,"margin"),...parsePosition(e.padding,"padding"),...parseSize(e.height,"height"),...parseSize(e.minHeight,"minHeight"),...parseSize(e.maxHeight,"maxHeight"),...parseSize(e.width,"width"),...parseSize(e.minWidth,"minWidth"),...parseSize(e.maxWidth,"maxWidth"),...getDisplay(e.display),...getAlign("alignContent",e.alignContent,1),...getAlign("alignSelf",e.alignSelf,1),...getAlign("alignItems",e.alignItems,1),...getJustify(e.justifyContent),...getFlexDirection(e.flexDirection),...getFlexWrap(e.flexWrap),...getOverflow(e.overflow),...getPoistionType(e.positionType)}}function parseProps(e){const{uiTransform:t,uiBackground:n,...r}=e;return{...r,uiTransform:parseUiTransform(t),...n?{uiBackground:parseUiBackground(n)}:void 0}}const listeners={onMouseDown:void 0,onMouseUp:void 0},listenersKey=Object.keys(listeners),isListener=e=>listenersKey.includes(e),parseFont={"sans-serif":0,serif:1,monospace:2};function getFont(e){if(e)return{font:parseFont[e]}}const parseTextAlign={"top-left":0,"top-center":1,"top-right":2,"middle-left":3,"middle-center":4,"middle-right":5,"bottom-left":6,"bottom-center":7,"bottom-right":8};function getTextAlign(e){if(e)return{textAlign:parseTextAlign[e]}}function parseUiDropdown(e){const{textAlign:t,font:n,...r}=e;return{acceptEmpty:!1,options:[],selectedIndex:e.acceptEmpty?-1:0,disabled:!1,...r,...getTextAlign(t),...getFont(n)}}function Dropdown(e){const{uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o,...i}=e,a=parseUiDropdown(i),s=parseProps({uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o});return ReactEcs$1.createElement("entity",{...s,uiDropdown:a})}function parseUiInput(e){const{textAlign:t,font:n,...r}=e;return{disabled:!1,placeholder:"",...r,...getTextAlign(t),...getFont(n)}}function Input(e){const{uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o,...i}=e,a=parseUiInput(i),s=parseProps({uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o});return ReactEcs$1.createElement("entity",{...s,uiInput:a})}function Label(e){const{uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o,...i}=e,a=parseProps({uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o}),{font:s,textAlign:u,...l}=i,c={...l,...getFont(s),...getTextAlign(u)};return ReactEcs$1.createElement("entity",{...a,uiText:c})}function getButtonProps(e){return"primary"===e.variant?{uiBackground:{color:{r:.98,g:.17,b:.33,a:1}},uiText:{color:{r:1,g:1,b:1,a:1}}}:"secondary"===e.variant?{uiBackground:{color:{r:1,g:1,b:1,a:1}},uiText:{color:{r:.98,g:.17,b:.33,a:1}}}:{}}function Button(e){const{uiTransform:t,uiBackground:n,onMouseDown:r,onMouseUp:o,...i}=e,a=getButtonProps(e),s=parseUiBackground({...a.uiBackground,...n}),{font:u,textAlign:l,...c}=i,f={...a.uiText,...c,...getFont(u),...getTextAlign(l)},d=parseUiTransform({height:36,...t});return ReactEcs$1.createElement("entity",{onMouseDown:r,onMouseUp:o,uiTransform:d,uiText:f,uiBackground:s})}function UiEntity(e){return ReactEcs$1.createElement("entity",{...parseProps(e)})}function propsChanged(e,t,n){if(t&&!n)return{type:"delete",component:e};if(!n)return;if(!t&&n)return{type:"add",props:n,component:e};if(isListener(e)&&!isEqual(t,n))return{type:"put",component:e,props:n};const r={};for(const e in t){const o=e;isEqual(t[o],n[o])||(r[o]=n[o])}return Object.keys(r).length?{type:"put",props:r,component:e}:void 0}const entityComponent={uiText:void 0,uiBackground:void 0,uiTransform:void 0,onMouseDown:void 0,onMouseUp:void 0,uiInput:void 0,uiDropdown:void 0},componentKeys=Object.keys(entityComponent);function isEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return e===t;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return e===t;if(Array.isArray(e)&&Array.isArray(t)&&e.length!==t.length)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;if(JSON.stringify(e)===JSON.stringify(t))return!0;for(const n in e)if(!isEqual(e[n],t[n]))return!1;return!0}const isNotUndefined=e=>!!e,noopConfig={supportsMutation:!0,supportsPersistence:!1,noTimeout:-1,isPrimaryRenderer:!0,supportsHydration:!1,insertInContainerBefore(e,t,n){},detachDeletedInstance(e){},hideInstance(e){},hideTextInstance(e){},unhideInstance(e,t){},unhideTextInstance(e,t){},clearContainer(e){},getCurrentEventPriority:()=>0,getInstanceFromNode:e=>null,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},prepareScopeUpdate(){},getInstanceFromScope:()=>null,commitMount(e,t,n,r){},resetTextContent(e){},commitTextUpdate(e,t,n){},prepareForCommit:e=>null,resetAfterCommit(e){},preparePortalMount(e){},createTextInstance:(e,t,n,r)=>({}),scheduleTimeout(e,t){},cancelTimeout(e){},shouldSetTextContent:(e,t)=>!1,getRootHostContext:e=>null,getChildHostContext:(e,t,n)=>null,getPublicInstance:e=>e,finalizeInitialChildren:(e,t,n,r,o)=>!1};function createReconciler(e,t){const n=new Set,r=new Map,o=UiTransform$1(e),i=UiText$1(e),a=UiBackground$1(e),s=UiInput$1(e),u=UiInputResult$1(e),l=UiDropdown$1(e),c=UiDropdownResult$1(e),f={uiTransform:o.componentId,uiText:i.componentId,uiBackground:a.componentId,uiInput:s.componentId,uiDropdown:l.componentId};function d(e,t){m(e,t,"uiTransform")}function p(e,n){if("delete"!==n.type&&n.props){if(n.props){("onMouseDown"===n.component?t.onPointerDown:t.onPointerUp)(e.entity,n.props,{button:0,showFeedback:!0})}}else"onMouseDown"===n.component?t.removeOnPointerDown(e.entity):"onMouseUp"===n.component&&t.removeOnPointerUp(e.entity)}function h(t,n){const r=f[n];e.getComponent(r).deleteFrom(t.entity)}function m(t,n,r){const o=f[r],i=e.getComponent(o),a=i.getMutableOrNull(t.entity)||i.create(t.entity);for(const e in n){const r=e;if("onChange"===e){const e=n[r];v(t.entity,o,{fn:e})}else a[r]=n[r]}}function y(t){r.delete(t.entity),e.removeEntity(t.entity);for(const e of t._child)y(e)}function g(e,t){if(!t||!Object.keys(e).length)return;if(e._child.find((e=>e.entity===t.entity))){const n=e._child.find((e=>e.rightOf===t.entity));n&&(n.rightOf=t.rightOf,e._child=e._child.filter((e=>e.entity!==t.entity)),e._child.push(t),d(n,{rightOf:n.rightOf})),t.rightOf=e._child[e._child.length-2]?.entity}else t.rightOf=e._child[e._child.length-1]?.entity,e._child.push(t);t.parent=e.entity,d(t,{rightOf:t.rightOf,parent:e.entity})}function v(e,t,n){const o=r.get(e)||r.set(e,new Map).get(e),i=o.get(t),a=n?.fn,s=n?.value??i?.value;o.set(t,{fn:a,value:s})}const b={...noopConfig,createInstance(t,r){const o=e.addEntity();n.add(o);const i={entity:o,_child:[],parent:CANVAS_ROOT_ENTITY,rightOf:void 0};for(const e in r){const t=e;"children"!==t&&"key"!==t&&(isListener(t)?p(i,{type:"add",props:r[t],component:t}):m(i,r[t],t))}return i},appendChild:g,appendChildToContainer:g,appendInitialChild:g,removeChild:function(e,t){const n=e._child.findIndex((e=>e.entity===t.entity)),r=e._child[n+1];r&&(r.rightOf=t.rightOf,d(r,{rightOf:t.rightOf})),e._child.splice(n,1),y(t)},prepareUpdate:(e,t,n,r)=>componentKeys.map((e=>propsChanged(e,n[e],r[e]))).filter(isNotUndefined),commitUpdate(e,t,n,r,o,i){for(const n of t)isListener(n.component)?p(e,n):"delete"===n.type?h(e,n.component):m(e,n.props,n.component)},insertBefore(e,t,n){const r=e._child.findIndex((e=>e.entity===n.entity));e._child=[...e._child.slice(0,r),t,...e._child.slice(r)],t.rightOf=n.rightOf,n.rightOf=t.entity,t.parent=e.entity,d(t,{rightOf:t.rightOf,parent:t.parent}),d(n,{rightOf:n.rightOf})},removeChildFromContainer(e,t){y(t)}},_=Reconciler(b),x=_.createContainer({},0,null,!1,null,"",(function(){}),null);function S(t,n){for(const[o,i]of e.getEntitiesWith(n)){const e=r.get(o)?.get(t);e?.fn&&i.value!==e.value&&(e.fn(i.value),v(o,t,{fn:e.fn,value:i.value}))}}return{update:function(e){return r.size&&(S(s.componentId,u),S(l.componentId,c)),_.updateContainer(e,x,null)},getEntities:()=>Array.from(n)}}function createReactBasedUiSystem(e,t){const n=createReconciler(e,t);let r;function o(){r&&n.update(r())}return e.addSystem(o,1e5,"@dcl/react-ecs"),{destroy(){e.removeSystem(o);for(const t of n.getEntities())e.removeEntity(t)},setUiRenderer(e){r=e}}}const ReactEcsRenderer=createReactBasedUiSystem(engine,pointerEventsSystem);var ReactEcs=ReactEcs$1;class ObserverEventState{constructor(e,t=!1,n,r){this.initalize(e,t,n,r)}initalize(e,t=!1,n,r){return this.mask=e,this.skipNextObservers=t,this.target=n,this.currentTarget=r,this}}class Observer{constructor(e,t,n=null){this.callback=e,this.mask=t,this.scope=n,this.unregisterOnNextCall=!1,this._willBeUnregistered=!1}}class Observable{constructor(e){this._observers=new Array,this._onObserverAdded=null,this._eventState=new ObserverEventState(0),e&&(this._onObserverAdded=e)}add(e,t=-1,n=!1,r=null,o=!1){if(!e)return null;const i=new Observer(e,t,r);return i.unregisterOnNextCall=o,n?this._observers.unshift(i):this._observers.push(i),this._onObserverAdded&&this._onObserverAdded(i),i}addOnce(e){return this.add(e,void 0,void 0,void 0,!0)}remove(e){if(!e)return!1;return-1!==this._observers.indexOf(e)&&(this._deferUnregister(e),!0)}removeCallback(e,t){for(let n=0;n<this._observers.length;n++)if(this._observers[n].callback===e&&(!t||t===this._observers[n].scope))return this._deferUnregister(this._observers[n]),!0;return!1}notifyObservers(e,t=-1,n,r){if(!this._observers.length)return!0;const o=this._eventState;o.mask=t,o.target=n,o.currentTarget=r,o.skipNextObservers=!1,o.lastReturnValue=e;for(const n of this._observers)if(!n._willBeUnregistered&&(n.mask&t&&(n.scope?o.lastReturnValue=n.callback.apply(n.scope,[e,o]):o.lastReturnValue=n.callback(e,o),n.unregisterOnNextCall&&this._deferUnregister(n)),o.skipNextObservers))return!1;return!0}notifyObserversWithPromise(e,t=-1,n,r){let o=Promise.resolve(e);if(!this._observers.length)return o;const i=this._eventState;return i.mask=t,i.target=n,i.currentTarget=r,i.skipNextObservers=!1,this._observers.forEach((n=>{i.skipNextObservers||n._willBeUnregistered||n.mask&t&&(o=n.scope?o.then((t=>(i.lastReturnValue=t,n.callback.apply(n.scope,[e,i])))):o.then((t=>(i.lastReturnValue=t,n.callback(e,i)))),n.unregisterOnNextCall&&this._deferUnregister(n))})),o.then((()=>e))}notifyObserver(e,t,n=-1){const r=this._eventState;r.mask=n,r.skipNextObservers=!1,e.callback(t,r)}hasObservers(){return this._observers.length>0}clear(){this._observers=new Array,this._onObserverAdded=null}clone(){const e=new Observable;return e._observers=this._observers.slice(0),e}hasSpecificMask(e=-1){for(const t of this._observers)if(t.mask&e||t.mask===e)return!0;return!1}_deferUnregister(e){e.unregisterOnNextCall=!1,e._willBeUnregistered=!0,Promise.resolve().then.bind(Promise.resolve())((async()=>this._remove(e))).catch(console.error)}_remove(e){if(!e)return!1;const t=this._observers.indexOf(e);return-1!==t&&(this._observers.splice(t,1),!0)}}let subscribeFunction=async()=>{};function createSubscriber(e){return()=>{subscribeFunction({eventId:e}).catch(console.error)}}const onEnterSceneObservable=new Observable(createSubscriber("onEnterScene")),onEnterScene=onEnterSceneObservable,onLeaveSceneObservable=new Observable(createSubscriber("onLeaveScene")),onLeaveScene=onLeaveSceneObservable,onSceneReadyObservable=new Observable(createSubscriber("sceneStart")),onPlayerExpressionObservable=new Observable(createSubscriber("playerExpression")),onVideoEvent=new Observable(createSubscriber("videoEvent")),onProfileChanged=new Observable(createSubscriber("profileChanged")),onPlayerConnectedObservable=new Observable(createSubscriber("playerConnected")),onPlayerDisconnectedObservable=new Observable(createSubscriber("playerDisconnected")),onRealmChangedObservable=new Observable(createSubscriber("onRealmChanged")),onPlayerClickedObservable=new Observable(createSubscriber("playerClicked")),onCommsMessage=new Observable(createSubscriber("comms"));function setSubscribeFunction(e){subscribeFunction=e}async function pollEvents(e){const{events:t}=await e({actions:[]});for(const e of t)if(e.generic){const t=JSON.parse(e.generic.eventData);switch(e.generic.eventId){case"onEnterScene":onEnterSceneObservable.notifyObservers(t);break;case"onLeaveScene":onLeaveSceneObservable.notifyObservers(t);break;case"sceneStart":onSceneReadyObservable.notifyObservers(t);break;case"playerExpression":onPlayerExpressionObservable.notifyObservers(t);break;case"videoEvent":{const e=t;onVideoEvent.notifyObservers(e);break}case"profileChanged":onProfileChanged.notifyObservers(t);break;case"playerConnected":onPlayerConnectedObservable.notifyObservers(t);break;case"playerDisconnected":onPlayerDisconnectedObservable.notifyObservers(t);break;case"onRealmChanged":onRealmChangedObservable.notifyObservers(t);break;case"playerClicked":onPlayerClickedObservable.notifyObservers(t)}}}class MessageBus{constructor(){this.messageQueue=[],this.flushing=!1}on(e,t){return onCommsMessage.add((n=>{const r=JSON.parse(n.message);r.message===e&&t(r.payload,n.sender)}))}sendRaw(e){this.messageQueue.push(e),this.flush()}emit(e,t){const n=JSON.stringify({message:e,payload:t});this.sendRaw(n),onCommsMessage.notifyObservers({message:n,sender:"self"})}flush(){if(0===this.messageQueue.length)return;if(this.flushing)return;const e=this.messageQueue.shift();this.flushing=!0,communicationsController__namespace.send({message:e}).then((e=>{this.flushing=!1,this.flush()}),(e=>{this.flushing=!1}))}}function getEthereumProvider(e){async function t(t){const n=await e({id:t.id,method:t.method,jsonParams:JSON.stringify(t.params)});return JSON.parse(n.jsonAnyResponse)}return{send(e,n){if(!(e&&n&&n instanceof Function))throw new Error("Decentraland provider only allows async calls");t(e).then((e=>n(null,e))).catch(n)},sendAsync(e,n){t(e).then((e=>n(null,e))).catch(n)}}}function createEthereumProvider(){return getEthereumProvider(EthereumController.sendAsync)}function createRendererTransport(e){const t={async send(n){try{await async function(n){const r=await e.crdtSendToRenderer({data:new Uint8Array(n)});if(r&&r.data&&r.data.length&&t.onmessage)for(const e of r.data)t.onmessage(e)}(n)}catch(e){console.error(e)}},filter:e=>(e.type!==exports.CrdtMessageType.PUT_COMPONENT&&e.type!==exports.CrdtMessageType.DELETE_COMPONENT||!(e.componentId>MAX_STATIC_COMPONENT))&&!!e};return t}const rendererTransport=createRendererTransport({crdtSendToRenderer:EngineApi.crdtSendToRenderer});async function onUpdate(e){await engine.update(e),await pollEvents(EngineApi.sendBatch)}async function onStart(){await engine.seal();const e=await EngineApi.crdtGetState({data:new Uint8Array});if(rendererTransport.onmessage&&e&&e.data&&e.data.length)for(const t of e.data)rendererTransport.onmessage(t)}engine.addTransport(rendererTransport),setSubscribeFunction(EngineApi.subscribe),exports.AMOUNT_VERSION_AVAILABLE=AMOUNT_VERSION_AVAILABLE,exports.Animator=Animator,exports.AudioSource=AudioSource,exports.AudioStream=AudioStream,exports.AvatarAttach=AvatarAttach,exports.AvatarModifierArea=AvatarModifierArea,exports.AvatarShape=AvatarShape,exports.AvatarTexture=AvatarTexture,exports.Billboard=Billboard,exports.BorderRect=BorderRect,exports.Button=Button,exports.CRDT_MESSAGE_HEADER_LENGTH=CRDT_MESSAGE_HEADER_LENGTH,exports.CameraMode=CameraMode,exports.CameraModeArea=CameraModeArea,exports.DEG2RAD=DEG2RAD,exports.Dropdown=Dropdown,exports.Engine=Engine,exports.EntityContainer=EntityContainer,exports.Epsilon=Epsilon,exports.GltfContainer=GltfContainer,exports.Input=Input,exports.Label=Label,exports.MAX_ENTITY_NUMBER=MAX_ENTITY_NUMBER,exports.MAX_U16=MAX_U16,exports.Material=Material,exports.MeshCollider=MeshCollider,exports.MeshRenderer=MeshRenderer,exports.MessageBus=MessageBus,exports.NftShape=NftShape,exports.Observable=Observable,exports.Observer=Observer,exports.ObserverEventState=ObserverEventState,exports.PBAnimationState=PBAnimationState,exports.PBAnimator=PBAnimator,exports.PBAudioSource=PBAudioSource,exports.PBAudioStream=PBAudioStream,exports.PBAvatarAttach=PBAvatarAttach,exports.PBAvatarModifierArea=PBAvatarModifierArea,exports.PBAvatarShape=PBAvatarShape,exports.PBBillboard=PBBillboard,exports.PBCameraMode=PBCameraMode,exports.PBCameraModeArea=PBCameraModeArea,exports.PBGltfContainer=PBGltfContainer,exports.PBMaterial=PBMaterial,exports.PBMaterial_PbrMaterial=PBMaterial_PbrMaterial,exports.PBMaterial_UnlitMaterial=PBMaterial_UnlitMaterial,exports.PBMeshCollider=PBMeshCollider,exports.PBMeshCollider_BoxMesh=PBMeshCollider_BoxMesh,exports.PBMeshCollider_CylinderMesh=PBMeshCollider_CylinderMesh,exports.PBMeshCollider_PlaneMesh=PBMeshCollider_PlaneMesh,exports.PBMeshCollider_SphereMesh=PBMeshCollider_SphereMesh,exports.PBMeshRenderer=PBMeshRenderer,exports.PBMeshRenderer_BoxMesh=PBMeshRenderer_BoxMesh,exports.PBMeshRenderer_CylinderMesh=PBMeshRenderer_CylinderMesh,exports.PBMeshRenderer_PlaneMesh=PBMeshRenderer_PlaneMesh,exports.PBMeshRenderer_SphereMesh=PBMeshRenderer_SphereMesh,exports.PBNftShape=PBNftShape,exports.PBPointerEvents=PBPointerEvents,exports.PBPointerEventsResult=PBPointerEventsResult,exports.PBPointerEventsResult_PointerCommand=PBPointerEventsResult_PointerCommand,exports.PBPointerEvents_Entry=PBPointerEvents_Entry,exports.PBPointerEvents_Info=PBPointerEvents_Info,exports.PBPointerLock=PBPointerLock,exports.PBRaycast=PBRaycast,exports.PBRaycastResult=PBRaycastResult,exports.PBTextShape=PBTextShape,exports.PBUiBackground=PBUiBackground,exports.PBUiDropdown=PBUiDropdown,exports.PBUiDropdownResult=PBUiDropdownResult,exports.PBUiInput=PBUiInput,exports.PBUiInputResult=PBUiInputResult,exports.PBUiText=PBUiText,exports.PBUiTransform=PBUiTransform,exports.PBVisibilityComponent=PBVisibilityComponent,exports.PointerEvents=PointerEvents,exports.PointerEventsResult=PointerEventsResult,exports.PointerLock=PointerLock,exports.RAD2DEG=RAD2DEG,exports.RESERVED_STATIC_ENTITIES=RESERVED_STATIC_ENTITIES,exports.Raycast=Raycast,exports.RaycastHit=RaycastHit,exports.RaycastResult=RaycastResult,exports.ReactEcs=ReactEcs,exports.ReactEcsRenderer=ReactEcsRenderer,exports.TextShape=TextShape,exports.Texture=Texture,exports.TextureUnion=TextureUnion,exports.ToGammaSpace=ToGammaSpace,exports.ToLinearSpace=ToLinearSpace,exports.Transform=Transform,exports.UiBackground=UiBackground,exports.UiDropdown=UiDropdown,exports.UiDropdownResult=UiDropdownResult,exports.UiEntity=UiEntity,exports.UiInput=UiInput,exports.UiInputResult=UiInputResult,exports.UiText=UiText,exports.UiTransform=UiTransform,exports.VisibilityComponent=VisibilityComponent,exports.components=index,exports.createComponentDefinitionFromSchema=createComponentDefinitionFromSchema,exports.createEthereumProvider=createEthereumProvider,exports.createInputSystem=createInputSystem,exports.createPointerEventSystem=createPointerEventSystem,exports.createReactBasedUiSystem=createReactBasedUiSystem,exports.createTaskSystem=createTaskSystem,exports.cyclicParentingChecker=cyclicParentingChecker,exports.deepReadonly=deepReadonly,exports.engine=engine,exports.executeTask=executeTask,exports.inputSystem=inputSystem,exports.isListener=isListener,exports.onCommsMessage=onCommsMessage,exports.onEnterScene=onEnterScene,exports.onEnterSceneObservable=onEnterSceneObservable,exports.onLeaveScene=onLeaveScene,exports.onLeaveSceneObservable=onLeaveSceneObservable,exports.onPlayerClickedObservable=onPlayerClickedObservable,exports.onPlayerConnectedObservable=onPlayerConnectedObservable,exports.onPlayerDisconnectedObservable=onPlayerDisconnectedObservable,exports.onPlayerExpressionObservable=onPlayerExpressionObservable,exports.onProfileChanged=onProfileChanged,exports.onRealmChangedObservable=onRealmChangedObservable,exports.onSceneReadyObservable=onSceneReadyObservable,exports.onStart=onStart,exports.onUpdate=onUpdate,exports.onVideoEvent=onVideoEvent,exports.pointerEventsSystem=pointerEventsSystem,exports.pollEvents=pollEvents,exports.setSubscribeFunction=setSubscribeFunction;
|