@3dverse/ui-lib 0.1.0 → 0.1.1

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/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
- var X={container:"t",inner:"o",innerShape:"i",shape:"a",shapeAlt:"n"};import{jsx as be,jsxs as Rt}from"react/jsx-runtime";var ve=["#EDB5FB","#FBB5B5","#F4D35B","#B5FBF7","#B5DDFB","#B5C2FB","#CBB5FB","#189AB4","#75E6DA","#D4F1F4","#EF7C8E","#FAE8E0","#B6E2D3","#D8A7B1","#F6EEE0","#E4B7A0","#C38370","#94DFE6","#EBDCC7","#B5EECB","#DCC5C3","#D6E1EB","#ADC4D7","#FACB80","#FBD8B0","#feb191","#a2f9c6"],ae=[{},{borderWidth:"2px",borderStyle:"solid",borderColor:"currentColor",backgroundColor:"transparent"},{scale:"0.75"},{scale:"0.5"},{borderRadius:"9999px"},{borderRadius:"9999px",borderWidth:"2px",borderStyle:"solid",borderColor:"currentColor",backgroundColor:"transparent"},{borderRadius:"9999px",height:"50%",translate:"0 50%"},{borderRadius:"9999px",scale:"0.5"},{borderTopLeftRadius:"9999px",borderTopRightRadius:"9999px"},{borderTopRightRadius:"9999px",borderBottomRightRadius:"9999px"},{borderBottomRightRadius:"9999px",borderBottomLeftRadius:"9999px"},{borderTopLeftRadius:"9999px",borderBottomLeftRadius:"9999px"},{borderTopLeftRadius:"9999px",borderTopRightRadius:"9999px",height:"50%"},{borderTopRightRadius:"9999px",borderBottomRightRadius:"9999px",width:"50%"},{borderBottomRightRadius:"9999px",borderBottomLeftRadius:"9999px",height:"50%"},{borderTopLeftRadius:"9999px",borderBottomLeftRadius:"9999px",width:"50%"},{borderBottomRightRadius:"9999px",borderTopLeftRadius:"9999px"},{borderBottomLeftRadius:"9999px",borderTopRightRadius:"9999px"},{},{},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"rotate(180deg)"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"rotate(180deg) scaleY(-1)"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"scaleY(-1)"},{clipPath:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)"},{clipPath:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)"},{clipPath:'path("M12 4.248c-3.148-5.402-12-3.825-12 2.944 0 4.661 5.571 9.427 12 15.808 6.43-6.381 12-11.147 12-15.808 0-6.792-8.875-8.306-12-2.944z")'},{clipPath:"polygon(0 0, 0% 100%, 100% 100%)"},{clipPath:"polygon(61% 50%, 100% 0, 100% 100%, 0% 100%)"}],Re=ae.length,De=ve.length,je=[0,180,270],Se=101,Ge=200,He=301,Ct=({id:e,shape:t,colors:i,className:r,style:a})=>{let n=Number(e?.replace(/\D/g,"").replace(/-/g,"")),s=[ve[i?.[0]??Math.floor(n%Se%De)],ve[i?.[1]??Math.floor(n%Ge%De)],ve[i?.[2]??Math.floor(n%He%De)]],p=t||[Math.floor(n%Se%Re),Math.floor(n%Ge%Re),Math.floor(n%He%Re)],v=je[n%Se%je.length];return be("div",{role:"img","aria-label":"Project icon",className:`${X.container} ${r}`,style:{"--gradient-from":s[1],"--gradient-to":s[2],"--gradient-stops":"var(--gradient-from), var(--gradient-to)",...a},children:Rt("div",{className:X.innerShape,style:{color:s[0],rotate:`${v}deg`},children:[be("span",{className:X.shape,style:{...ae[p[0]],boxShadow:"5px 0px 0px 6px color-mix(in srgb, currentColor 40%, transparent), 4px 0px 0px 32px color-mix(in srgb, currentColor 30%, transparent)"}}),be("span",{className:`${X.shape} ${X.shapeAlt}`,style:ae[p[1]]}),be("span",{className:X.shape,style:ae[p[2]]})]})})};import{entityComponents as Lt}from"@3dverse/design-tokens";import{clsx as Dt}from"clsx";import{twMerge as St}from"tailwind-merge";function o(...e){return St(Dt(e))}import{entityComponents as Ze}from"@3dverse/design-tokens";import{jsx as ke}from"react/jsx-runtime";var kt={ar:"fal fa-camera-viewfinder",vr:"fal fa-head-vr"},Nt="relative inline-flex items-center justify-center after:content-[''] after:absolute after:left-1/2 after:top-1/2 after:w-[125%] after:h-0.5 after:rounded-[1px] after:bg-accent after:-translate-x-1/2 after:-translate-y-1/2 after:-rotate-45 after:origin-center after:pointer-events-none";function I({className:e,icon:t,weight:i,crossed:r,style:a}){function n({className:p,icon:v}){return p??(v?kt[v]??`fa ${v}`:"")}let s=n({className:e,icon:t});return r?ke("span",{className:Nt,style:a,"aria-hidden":!0,children:ke("i",{"data-slot":"icon",className:s})}):ke("i",{"data-slot":"icon",className:s,style:a,"aria-hidden":!0})}import{Fragment as We,jsx as Ne}from"react/jsx-runtime";var Te=({componentId:e,variant:t="default",style:i,className:r=""})=>{if(!Ze[e])return Ne(We,{children:e});let{color:a,fontAwesome:n}=Ze[e];return n?Ne(I,{icon:n,style:{color:a,boxShadow:t==="others"?"0 0 10px color-mix(in srgb, var(--entity-component-color), var(--color-bg-underground) 100%), 20px 0 0px -11px color-mix(in srgb, currentcolor, transparent 85%), -20px 0 0px -11px color-mix(in srgb, currentcolor, transparent 85%)":void 0,...i},className:o("flex! justify-center items-center h-[2.5em] w-auto! aspect-square shrink-0 text-base text-current bg-current/20 rounded-full",r)}):Ne(We,{children:e})};var Xe={properties:{animation_controller:{description:"Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set.",properties:{animationGraphRef:{description:"Referenced Animation Graph (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Graph Ref",type:"string","x-asset-ref":"animation_graph","x-display-type":"UUID"},animationSetRef:{description:"Referenced Animation Set (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Set Ref",type:"string","x-asset-ref":"animation_set","x-display-type":"UUID"},dataJSON:{description:"Animation Graph input parameters in JSON format.",title:"Data Json",type:"object","x-display-type":"JSON"},rootBoneEntityRef:{description:"Entity containing the Bone component for the skeleton's root bone.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Root Bone Entity Ref",type:"object","x-display-type":"Entity Reference"},rootMotionEnabled:{default:!1,description:"Enable root motion extraction and application to the entity transform.",title:"Root Motion Enabled",type:"boolean","x-display-type":"Boolean"}},title:"Animation Controller",type:"object","x-category":"animation"},animation_sequence_controller:{description:"Controls playback of an Animation Sequence; assigns tracks to entities.",properties:{animationSequenceRef:{description:"Referenced Animation Sequence (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Sequence Ref",type:"string","x-asset-ref":"animation_sequence","x-display-type":"UUID"},entities:{additionalProperties:{properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],type:"object","x-display-type":"Entity Reference"},description:"Map from track UUID to assigned entity.",title:"Entities",type:"object"},loop:{default:!1,description:"Loop playback when reaching the stop offset.",title:"Loop",type:"boolean","x-display-type":"Boolean"},playbackSpeed:{default:1,description:"Playback speed multiplier. Negative values play in reverse.",format:"float",title:"Playback Speed",type:"number","x-display-type":"Float"},startOffset:{default:0,description:"Normalized start offset [0, 1].",format:"float",maximum:1,minimum:0,title:"Start Offset",type:"number","x-display-type":"Float"},stopOffset:{default:1,description:"Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point.",format:"float",maximum:1,minimum:0,title:"Stop Offset",type:"number","x-display-type":"Float"}},title:"Animation Sequence Controller",type:"object","x-category":"animation"},bone:{description:"Associates this entity with a bone in a skeleton (for attachments and transforms).",properties:{boneIndex:{description:"Zero-based index of this bone within the bound skeleton.",format:"int32",minimum:0,title:"Bone Index",type:"integer","x-display-type":"Unsigned Integer"}},title:"Bone",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"]}},box_geometry:{description:"Box geometry.",properties:{dimension:{default:[1,1,1],description:"Box dimensions (width, height, depth) in meters.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Dimension",type:"array","x-display-type":"Vector3","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"}},title:"Box Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},camera:{description:"Virtual camera.",properties:{dataJSON:{description:"Render Graph input parameters in JSON; schema defined by renderGraphRef.",title:"Data Json",type:"object","x-display-type":"JSON"},renderGraphRef:{description:"Referenced render graph to use for rendering from this camera.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Render Graph Ref",type:"string","x-asset-ref":"render_graph","x-display-type":"UUID"},renderTargetIndex:{default:-1,description:"Index of the render target to blit/output to. -1 indicates the default target.",format:"int32",title:"Render Target Index",type:"integer","x-display-type":"Integer"}},title:"Camera",type:"object","x-category":"camera","x-requires":{allOf:["local_transform"],oneOf:["orthographic_lens","perspective_lens","custom_lens"]}},capsule_geometry:{description:"Capsule geometry.",properties:{axis:{default:1,description:"Alignment axis of the capsule: 0=X, 1=Y, 2=Z.",format:"int32",oneOf:[{const:0,description:"Capsule is aligned with the X Axis.",title:"X-Axis"},{const:1,description:"Capsule is aligned with the Y Axis.",title:"Y-Axis"},{const:2,description:"Capsule is aligned with the Z Axis.",title:"Z-Axis"}],title:"Axis",type:"integer","x-display-type":"Integer"},height:{default:1,description:"Height of the cylindrical mid-section (meters).",format:"float",title:"Height",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the hemispherical ends (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Capsule Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},character_controller:{description:"Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control.",properties:{skinWidth:{default:0,description:"Collision skin width (meters).",format:"float",title:"Skin Width",type:"number","x-display-type":"Float","x-unit":"m"},slopeLimit:{default:45,description:"Maximum walkable slope (degrees). Slopes steeper than this are not walkable.",format:"float",title:"Slope Limit",type:"number","x-display-type":"Float","x-unit":"deg"},stepOffset:{default:0,description:"Maximum climbable step height. Steps higher than this cannot be climbed automatically.",format:"float",title:"Step Offset",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Character Controller",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"],oneOf:["box_geometry","capsule_geometry"]}},collision_geometry_ref:{description:"Reference to a collision geometry asset used by physics.",properties:{collisionGeometryRef:{description:"Referenced collision geometry (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Collision Geometry Ref",type:"string","x-asset-ref":"collision_geometry","x-display-type":"UUID"}},title:"Collision Geometry Reference",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"]}},constraint:{description:"6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs.",properties:{motionLimitSpringDamping:{default:[0,0,0],description:"Linear limit spring damping per axis (N\xB7s/m).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Limit Spring Damping",type:"array","x-display-type":"Vector3","x-unit":"N.s/m"},motionLimitSpringStiffness:{default:[0,0,0],description:"Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Limit Spring Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N/m"},motionLowerLimit:{default:[0,0,0],description:"Lower linear limit per axis (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Lower Limit",type:"array","x-display-type":"Vector3","x-unit":"m"},motionUpperLimit:{default:[0,0,0],description:"Upper linear limit per axis (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Upper Limit",type:"array","x-display-type":"Vector3","x-unit":"m"},swingLimitAngle:{default:[0,0],description:"Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Swing Limit Angle",type:"array","x-display-type":"Vector2","x-unit":"deg"},swingSpringDamping:{default:0,description:"Swing limit spring damping (N\xB7m\xB7s/rad).",format:"float",title:"Swing Spring Damping",type:"number","x-display-type":"Float","x-unit":"N.m.s/rad"},swingSpringStiffness:{default:0,description:"Swing limit spring stiffness (N\xB7m/rad). >0 makes the limit soft.",format:"float",title:"Swing Spring Stiffness",type:"number","x-display-type":"Float","x-unit":"N.m/rad"},twistLimitAngle:{default:[0,0],description:"Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360).",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Twist Limit Angle",type:"array","x-display-type":"Vector2","x-unit":"deg"},twistSpringDamping:{default:0,description:"Twist limit spring damping (N\xB7m\xB7s/rad).",format:"float",title:"Twist Spring Damping",type:"number","x-display-type":"Float","x-unit":"N.m.s/rad"},twistSpringStiffness:{default:0,description:"Twist limit spring stiffness (N\xB7m/rad). >0 makes the limit soft.",format:"float",title:"Twist Spring Stiffness",type:"number","x-display-type":"Float","x-unit":"N.m/rad"},unlockedMotion:{default:0,description:"Unlock motion along/around the specified axes.",format:"int32",minimum:0,title:"Unlocked Motion",type:"integer","x-bitFlags":[{description:"Unlock motion along the X axis.",name:"Along X",value:1},{description:"Unlock motion along the Y axis.",name:"Along Y",value:2},{description:"Unlock motion along the Z axis.",name:"Along Z",value:4},{description:"Unlock motion around the X axis.",name:"Around X",value:8},{description:"Unlock motion around the Y axis.",name:"Around Y",value:16},{description:"Unlock motion around the Z axis.",name:"Around Z",value:32}],"x-display-type":"Unsigned Integer"}},title:"Constraint",type:"object","x-category":"physics","x-requires":{allOf:["joint"]}},constraint_actuator:{description:"Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits.",properties:{angularDamping:{default:[0,0,0],description:"Angular drive damping per axis (N\xB7m\xB7s/rad).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Damping",type:"array","x-display-type":"Vector3","x-unit":"N.m.s/rad"},angularForceLimit:{default:[-1,-1,-1],description:"Max angular drive torque/impulse per axis (N\xB7m). \u22121 = unlimited.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Force Limit",type:"array","x-display-type":"Vector3","x-unit":"N.m"},angularStiffness:{default:[0,0,0],description:"Angular drive stiffness per axis (N\xB7m/rad). >0 applies spring torque toward the goal.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N.m/rad"},angularVelocity:{default:[0,0,0],description:"Target angular velocity (rad/s).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Velocity",type:"array","x-display-type":"Vector3","x-unit":"rad/s"},goalOrientation:{default:[0,0,0,1],description:"Target angular orientation.",items:{format:"float",type:"number"},maxItems:4,minItems:4,title:"Goal Orientation",type:"array","x-display-type":"Quaternion"},goalPosition:{default:[0,0,0],description:"Target linear position offset (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Goal Position",type:"array","x-display-type":"Vector3","x-unit":"m"},linearDamping:{default:[0,0,0],description:"Linear drive damping per axis (N\xB7s/m).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Damping",type:"array","x-display-type":"Vector3","x-unit":"N.s/m"},linearForceLimit:{default:[-1,-1,-1],description:"Max linear drive force/impulse per axis (N). \u22121 = unlimited.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Force Limit",type:"array","x-display-type":"Vector3","x-unit":"N"},linearStiffness:{default:[0,0,0],description:"Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N/m"},linearVelocity:{default:[0,0,0],description:"Target linear velocity (m/s).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Velocity",type:"array","x-display-type":"Vector3","x-unit":"m/s"},type:{default:1,description:"Drive type: apply as force or as acceleration.",format:"int32",oneOf:[{const:0,title:"FORCE"},{const:1,title:"ACCELERATION"}],title:"Type",type:"integer","x-display-type":"Integer"}},title:"Constraint Actuator",type:"object","x-category":"physics","x-requires":{allOf:["constraint"]}},culling_geometry:{description:"Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere).",properties:{isAdditive:{default:!0,description:"Additive: show elements inside the geometry. Subtractive: show elements outside the geometry.",title:"Is Additive",type:"boolean","x-display-type":"Boolean"}},title:"Culling Geometry",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform"],oneOf:["box_geometry","cylinder_geometry","plane_geometry","sphere_geometry"]}},custom_lens:{description:"Custom projection lens using an explicit projection matrix.",properties:{cs_from_vs:{description:"Projection matrix mapping view-space to clip-space (cs_from_vs).",items:{format:"float",type:"number"},maxItems:16,minItems:16,title:"Cs From Vs",type:"array","x-display-type":"Matrix4"}},title:"Custom Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},cylinder_geometry:{description:"Cylinder geometry.",properties:{axis:{default:1,description:"Alignment axis of the cylinder: 0=X, 1=Y, 2=Z.",format:"int32",oneOf:[{const:0,description:"Cylinder is aligned with the X Axis.",title:"X-Axis"},{const:1,description:"Cylinder is aligned with the Y Axis.",title:"Y-Axis"},{const:2,description:"Cylinder is aligned with the Z Axis.",title:"Z-Axis"}],title:"Axis",type:"integer","x-display-type":"Integer"},height:{default:1,description:"Height of the cylinder (meters).",format:"float",title:"Height",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the cylinder (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Cylinder Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},debug_name:{description:"Human-readable name of the entity.",properties:{value:{description:"Entity name.",title:"Value",type:"string","x-display-type":"String"}},title:"Name",type:"object","x-category":"core"},decal_projector:{description:"Projects a material onto scene surfaces within the projector's box volume.",properties:{zIndex:{default:0,description:"Z-index ordering for decal rendering; higher values render on top of lower ones.",format:"int32",title:"Z Index",type:"integer","x-display-type":"Integer"}},title:"Decal Projector",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform","material_ref","box_geometry"]}},environment:{description:"Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes.",properties:{irradianceUUID:{description:"Diffuse irradiance cubemap used for ambient PBR lighting.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Irradiance Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"},radianceUUID:{description:"Specular radiance cubemap (prefiltered) used for PBR reflections.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Radiance Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"},skyboxUUID:{description:"Skybox cubemap used as the scene background (no lighting effect).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Skybox Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"}},title:"Environment",type:"object","x-category":"lighting"},euid:{description:"Unique identifier for the entity.",properties:{value:{description:"Unique identifier value.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",title:"Value",type:"string","x-display-type":"Entity Unique Identifier"}},readOnly:!0,required:["value"],title:"Entity UID",type:"object","x-category":"core"},joint:{description:"Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee.",properties:{breakForce:{default:1e16,description:"Break force threshold (Newtons).",format:"float",title:"Break Force",type:"number","x-display-type":"Float","x-unit":"N"},breakTorque:{default:1e16,description:"Break torque threshold (N\xB7m).",format:"float",title:"Break Torque",type:"number","x-display-type":"Float","x-unit":"N.m"},constrainee:{description:"Entity with a Rigid Body to be constrained.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Constrainee",type:"object","x-display-type":"Entity Reference","x-required-components":["rigid_body"]},constrainer:{description:"Entity acting as constrainer (rigid/static) or null to constrain to world origin.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Constrainer",type:"object","x-display-type":"Entity Reference"},enableCollision:{default:!1,description:"Enable collision between constrainer and constrainee bodies.",title:"Enable Collision",type:"boolean","x-display-type":"Boolean"}},title:"Joint",type:"object","x-category":"physics","x-requires":{allOf:["local_transform"]}},label:{description:"Displays an editor-only label in the 3D view.",properties:{camera:{default:[0,0,0,0,0,0,1],description:"Camera framing parameters for navigating to the label.",items:{format:"float",type:"number","x-display-type":"Float"},title:"Camera",type:"array"},description:{description:"Label description text.",title:"Description",type:"string","x-display-type":"String"},speed:{default:15,description:"Camera travel speed (meters/second).",format:"float",title:"Speed",type:"number","x-display-type":"Float"},title:{description:"Label title text.",title:"Title",type:"string","x-display-type":"String"}},title:"Label",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},lineage:{description:"Records the entity's lineage through linkers and parentage.",properties:{ordinal:{default:0,description:"Ordinal index among siblings (editor-only).",format:"int32",title:"Ordinal",type:"integer","x-display-type":"Integer"},parentUUID:{description:"UUID of this entity's parent (default is root).",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",title:"Parent Uuid",type:"string","x-display-type":"Entity Unique Identifier"}},title:"Lineage",type:"object","x-category":"core"},local_aabb:{description:"Local-space axis-aligned bounding box.",properties:{max:{description:"Local AABB maximum corner (x,y,z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Max",type:"array","x-display-type":"Vector3"},min:{description:"Local AABB minimum corner (x,y,z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Min",type:"array","x-display-type":"Vector3"}},title:"Local AABB",type:"object","x-category":"core"},local_transform:{description:"Local transform of the entity (position, orientation, scale).",properties:{eulerOrientation:{default:[0,0,0],description:"Local orientation as Euler angles (editor-only).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Orientation",type:"array","x-display-type":"Vector3","x-unit":"deg"},globalEulerOrientation:{default:[0,0,0],description:"Last global orientation entered by a user as Euler angles (may be invalid; editor-only).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Global Euler Orientation",type:"array","x-display-type":"Vector3","x-unit":"deg"},orientation:{default:[0,0,0,1],description:"Local orientation as a quaternion.",items:{format:"float",type:"number"},maxItems:4,minItems:4,title:"Orientation",type:"array","x-display-type":"Quaternion"},position:{default:[0,0,0],description:"Local position (x, y, z) in meters.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Position",type:"array","x-display-type":"Vector3","x-unit":"m"},scale:{default:[1,1,1],description:"Local non-uniform scale (x, y, z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Scale",type:"array","x-display-type":"Vector3"}},title:"Transform",type:"object","x-category":"core"},material:{description:"Assigns a shader to the entity's mesh and provides its input values and specialization constants.",properties:{constantsJSON:{description:"Specialization constants (JSON); schema defined by shaderRef.",title:"Constants Json",type:"object","x-display-type":"JSON"},dataJSON:{description:"Shader input values (JSON); schema defined by shaderRef.",title:"Data Json",type:"object","x-display-type":"JSON"},isDoubleSided:{default:!1,description:"Render both front and back faces (double-sided).",title:"Is Double Sided",type:"boolean","x-display-type":"Boolean"},shaderRef:{description:"Referenced shader (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Shader Ref",type:"string","x-asset-ref":"shader","x-display-type":"UUID"}},title:"Material",type:"object","x-category":"rendering","x-requires":{allOf:["mesh_ref"]}},material_ref:{description:"Reference to a material to use for rendering.",properties:{faceCulling:{default:0,description:"Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided.",format:"int32",oneOf:[{const:0,title:"Inherit from material"},{const:1,title:"Single Sided"},{const:2,title:"Double Sided"}],title:"Face Culling",type:"integer","x-display-type":"Integer"},value:{description:"Referenced material (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"material","x-display-type":"UUID"}},title:"Material Reference",type:"object","x-category":"rendering","x-requires":{oneOf:["mesh_ref","decal_projector"]}},measure:{description:"Displays editor-only measurement annotations in the 3D view.",properties:{color:{default:[1,1,1],description:"Display color for the measurement.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},type:{default:0,description:"Measurement type to display.",format:"int32",minimum:0,oneOf:[{const:0,title:"Linear"},{const:1,title:"Angle"},{const:2,title:"Area"},{const:3,title:"Volume"}],title:"Type",type:"integer","x-display-type":"Unsigned Integer"}},title:"Measure",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},mesh_ref:{description:"Reference to a mesh to render (with submesh selection).",properties:{shadowCastingMode:{default:1,description:"Shadow casting mode for this mesh.",format:"int8",minimum:0,oneOf:[{const:0,description:"Shadow casting is disabled for this entity.",title:"Off"},{const:1,description:"Shadow casting is enabled for this entity.",title:"On"}],title:"Shadow Casting Mode",type:"integer","x-display-type":"Unsigned Byte"},submeshIndex:{default:0,description:"Index of the submesh within the mesh's submesh array.",format:"int32",title:"Submesh Index",type:"integer","x-display-type":"Integer"},value:{description:"Referenced mesh (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"mesh","x-display-type":"UUID"}},title:"Mesh Reference",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform"],oneOf:["material","material_ref"]}},morph_targets:{description:"Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref.",properties:{weights:{additionalProperties:{format:"float",type:"number","x-display-type":"Float"},description:"Map from morph target name to weight (commonly 0..1).",title:"Weights",type:"object"}},title:"Morph Targets",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"]}},orthographic_lens:{description:"Orthographic projection lens with configurable zoom and depth range.",properties:{zFar:{default:100,description:"Far clipping plane distance (meters).",format:"float",title:"Z Far",type:"number","x-display-type":"Float","x-unit":"m"},zNear:{default:0,description:"Near clipping plane distance (meters).",format:"float",title:"Z Near",type:"number","x-display-type":"Float","x-unit":"m"},zoomFactor:{default:[1,1],description:"Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Zoom Factor",type:"array","x-display-type":"Vector2"}},title:"Orthographic Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},overrider:{description:"Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components.",properties:{componentsToDetach:{description:"Hashes of components to detach from the overridden entity.",items:{format:"int32",type:"integer","x-display-type":"Integer"},title:"Components to Detach",type:"array"},deleter:{default:!1,description:"Mark the overridden entity as deleted in the composed scene.",title:"Deleter",type:"boolean","x-display-type":"Boolean"},entityRef:{description:"Target entity to override.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Entity Ref",type:"object","x-display-type":"Entity Reference"}},title:"Overrider",type:"object","x-category":"linker"},perspective_lens:{description:"Perspective projection lens with vertical field of view and near/far clipping planes.",properties:{farPlane:{default:0,description:"Far clipping plane distance (meters). Set to 0 for an infinite far plane.",format:"float",title:"Far Plane",type:"number","x-display-type":"Float","x-unit":"m"},fovy:{default:60,description:"Vertical field of view angle in degrees.",format:"float",title:"Vertical Field of View",type:"number","x-display-type":"Float","x-unit":"deg"},nearPlane:{default:.01,description:"Near clipping plane distance (meters).",format:"float",title:"Near Plane",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0],description:"Projection center offset for stereoscopic rendering (meters).",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Offset",type:"array","x-display-type":"Vector2","x-unit":"m"}},title:"Perspective Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},physics_material:{description:"Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode.",properties:{contactVelocity:{default:[0,0,0],description:"Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Contact Velocity",type:"array","x-display-type":"Vector3","x-unit":"m/s"},dynamicFriction:{default:.5,description:"Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface.",format:"float",title:"Dynamic Friction",type:"number","x-display-type":"Float"},isTrigger:{default:!1,description:"Treat associated geometry as a trigger (generates events but no physical response).",title:"Is Trigger",type:"boolean","x-display-type":"Boolean"},modifyContact:{default:!1,description:"Enable contact modification (applies contactVelocity on collisions).",title:"Modify Contact",type:"boolean","x-display-type":"Boolean"},restitution:{default:0,description:"Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface.",format:"float",title:"Restitution",type:"number","x-display-type":"Float"},staticFriction:{default:.5,description:"Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface.",format:"float",title:"Static Friction",type:"number","x-display-type":"Float"}},title:"Physics Material",type:"object","x-category":"physics","x-requires":{oneOf:["box_geometry","capsule_geometry","cylinder_geometry","plane_geometry","sphere_geometry","collision_geometry_ref"]}},plane_geometry:{description:"Infinite plane geometry.",properties:{distance:{default:0,description:"Signed distance from the origin along the plane normal (meters).",format:"float",title:"Distance",type:"number","x-display-type":"Float","x-unit":"m"},normal:{default:[0,1,0],description:"Unit normal vector of the plane (in local space).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Normal",type:"array","x-display-type":"Vector3"}},title:"Plane Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},point_cloud_ref:{description:"Reference to a point cloud.",properties:{value:{description:"Referenced point cloud (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"point_cloud","x-display-type":"UUID"}},title:"Point Cloud Reference",type:"object","x-category":"point cloud","x-requires":{allOf:["local_transform"]}},point_light:{description:"Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction.",properties:{color:{default:[1,1,1],description:"RGB light color in linear space [0\u20131]. Multiplies intensity.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},intensity:{default:1,description:"Radiant intensity (W/sr). Controls brightness for physically based shading (inverse-square falloff).",format:"float",title:"Intensity",type:"number","x-display-type":"Float","x-unit":"W/sr"},isDirectional:{default:!1,description:"Treat this as a directional light using the entity's orientation; position is ignored.",title:"Is Directional",type:"boolean","x-display-type":"Boolean"},isSun:{default:!1,description:"Use this light's direction to control the atmosphere sun direction. Only one light should be marked as the sun; multiple are undefined.",title:"Is Sun",type:"boolean","x-display-type":"Boolean"},range:{default:0,description:"Hard cutoff distance for light influence and culling (meters). Set to 0 for no hard cutoff and physically correct inverse-square attenuation.",format:"float",title:"Range",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Light",type:"object","x-category":"lighting","x-requires":{allOf:["local_transform"]}},reflection_probe:{description:"Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL).",properties:{farDist:{default:100,description:"Capture far clip distance (meters).",format:"float",title:"Far Dist",type:"number","x-display-type":"Float","x-unit":"m"},nearDist:{default:.1,description:"Capture near clip distance (meters).",format:"float",title:"Near Dist",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Offset of the probe capture origin relative to the entity position (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},quality:{default:128,description:"Reflection cubemap resolution (pixels per face). Higher values increase detail and cost.",format:"int32",title:"Quality",type:"integer","x-display-type":"Integer"}},title:"Reflection probe",type:"object","x-category":"lighting","x-requires":{allOf:["local_transform","box_geometry"]}},rigid_body:{description:"Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior).",properties:{angularDamping:{default:.05,description:"Angular damping coefficient (s^-1). 0 = no damping; must be non-negative.",format:"float",minimum:0,title:"Angular Damping",type:"number","x-display-type":"Float","x-unit":"s^-1"},centerOfMass:{default:[0,0,0],description:"Center of mass relative to the entity's local transform (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Center of Mass",type:"array","x-display-type":"Vector3","x-unit":"m"},collisionDetection:{default:0,description:"Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD.",format:"int8",minimum:0,oneOf:[{const:0,description:"Discrete collision detection.",title:"Discrete"},{const:1,description:"Linear, or sweep-based, CCD. This prevents the affected rigid bodies from going through other physics bodies at high velocities (a problem also known as tunnelling). Not functional with kinematic rigid bodies.",title:"LinearContinuous"},{const:2,description:"Angular, or speculative, CCD is better at catching missed contacts generated by fast angular motions but not as good with fast linear motions. Angular CCD is cheaper but less robust compared to linear CCD.",title:"AngularContinuous"},{const:3,description:"Linear and angular CCD are enabled. This often results in best-of-both-worlds behavior. Not functional with kinematic rigid bodies.",title:"Continuous"}],title:"Collision Detection",type:"integer","x-display-type":"Unsigned Byte"},isKinematic:{default:!1,description:"Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic).",title:"Is Kinematic",type:"boolean","x-display-type":"Boolean"},linearDamping:{default:0,description:"Linear damping coefficient (s^-1). 0 = no damping; must be non-negative.",format:"float",minimum:0,title:"Linear Damping",type:"number","x-display-type":"Float","x-unit":"s^-1"},lockedAxis:{default:0,description:"Lock motion along/around the specified axes.",format:"int8",minimum:0,title:"Locked Axis",type:"integer","x-bitFlags":[{description:"Locks motion along the X axis.",name:"Linear X",value:1},{description:"Locks motion along the Y axis.",name:"Linear Y",value:2},{description:"Locks motion along the Z axis.",name:"Linear Z",value:4},{description:"Locks motion around the X axis.",name:"Angular X",value:8},{description:"Locks motion around the Y axis.",name:"Angular Y",value:16},{description:"Locks motion around the Z axis.",name:"Angular Z",value:32}],"x-display-type":"Unsigned Byte"},mass:{default:1,description:"Mass (kg). A value of 0 is treated as infinite mass (static).",format:"float",title:"Mass",type:"number","x-display-type":"Float","x-unit":"kg"},maxAngularVelocity:{default:100,description:"Maximum angular velocity (rad/s). Must be non-negative.",format:"float",minimum:0,title:"Max Angular Velocity",type:"number","x-display-type":"Float","x-unit":"rad/s"},maxLinearVelocity:{default:1e16,description:"Maximum linear velocity (m/s). Must be non-negative.",format:"float",minimum:0,title:"Max Linear Velocity",type:"number","x-display-type":"Float","x-unit":"m/s"},useGravity:{default:!0,description:"Whether the rigid body is affected by gravity.",title:"Use Gravity",type:"boolean","x-display-type":"Boolean"}},title:"Rigid Body",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"]}},scene_ref:{description:"Reference to a subscene (linker); used to compose scenes.",properties:{maxRecursionCount:{default:1,description:"Maximum recursion depth when a scene references itself.",format:"int32",minimum:0,title:"Max Recursion Count",type:"integer","x-display-type":"Unsigned Integer"},value:{description:"Referenced scene (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"scene","x-display-type":"UUID"}},title:"Scene Reference",type:"object","x-category":"linker","x-requires":{allOf:["local_transform"]}},script_element:{description:"References a script and supplies its input values.",properties:{dataJSON:{description:"Script input values in JSON; schema defined by scriptRef.",title:"Data Json",type:"object","x-display-type":"JSON"},scriptRef:{description:"Referenced script (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Script Ref",type:"string","x-asset-ref":"script","x-display-type":"UUID"}},title:"Script Element",type:"object","x-category":"scripting"},script_map:{description:"Holds a set of script elements keyed by UUID.",properties:{elements:{additionalProperties:{description:"References a script and supplies its input values.",properties:{dataJSON:{description:"Script input values in JSON; schema defined by scriptRef.",title:"Data Json",type:"object","x-display-type":"JSON"},scriptRef:{description:"Referenced script (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Script Ref",type:"string","x-asset-ref":"script","x-display-type":"UUID"}},title:"Script Element",type:"object","x-category":"scripting"},description:"Map of script UUID to script element.",title:"Elements",type:"object"}},title:"Script Map",type:"object","x-category":"scripting"},shadow_caster:{description:"Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades.",properties:{accumulateShadowCascades:{default:!0,description:"Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits.",title:"Accumulate Shadow Cascades",type:"boolean","x-display-type":"Boolean"},bias:{default:.004,description:"Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning.",format:"float",title:"Bias",type:"number","x-display-type":"Float"},cascadeCount:{default:4,description:"Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count.",format:"int8",oneOf:[{const:0,description:"A single, precomputed shadow map that does not depend on the camera's view. Provides consistent shadows across the scene but lacks adaptability for dynamic perspectives or varying levels of detail.",title:"Static Shadow Map"},{const:1,description:"One shadow layer for the entire view. Provides consistent but basic coverage, suitable for simple scenes or performance-critical applications.",title:"Single Cascade"},{const:2,description:"Two layers of shadow refinement enhance detail near the viewer while managing distant shadows more efficiently.",title:"Dual Cascade"},{const:3,description:"Three shadow regions create a balanced depth, offering clarity across close and mid-range distances.",title:"Triple Cascade"},{const:4,description:"Four layers provide precise and adaptive shadow detail, ensuring realistic depth and smooth transitions across a wide range of distances.",title:"Quad Cascade"}],title:"Cascade Count",type:"integer","x-display-type":"Byte"},cascadeSplitLambda:{default:.94,description:"Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two.",format:"float",title:"Cascade Split Lambda",type:"number","x-display-type":"Float"},farDist:{default:100,description:"Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers.",format:"float",title:"Far Dist",type:"number","x-display-type":"Float","x-unit":"m"},nearDist:{default:.1,description:"Shadow camera near clip distance (meters). Tighten to improve depth precision.",format:"float",title:"Near Dist",type:"number","x-display-type":"Float","x-unit":"m"},quality:{default:1024,description:"Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance.",format:"int32",oneOf:[{const:256,description:"Shadows are vague and blocky, providing just enough to indicate their general presence.",title:"Ultra-Low (256x256)"},{const:512,description:"Shadows appear soft and blurry, offering a basic sense of shape with little detail.",title:"Very Low (512x512)"},{const:1024,description:"Shadows are smoother and moderately clear but lack sharpness, giving a gentle impression of depth.",title:"Low (1024x1024)"},{const:2048,description:"Standard quality with adequate clarity for most scenes. Shadows are defined but not overly sharp.",title:"Medium-Low (2048x2048)"},{const:3072,description:"*RECOMMENDED* Shadows have clean edges and are crisp enough to make fine details noticeable in most environments.",title:"Medium (3072x3072)"},{const:4096,description:"High-quality shadows with detailed edges and accurate representation of shape and form.",title:"Medium High (4096x4096)"},{const:6144,description:"Sharp and precise shadows that maintain clarity even for intricate details. Suitable for premium visual fidelity.",title:"High (6144x6144)"},{const:8192,description:"Hyper-realistic shadows with razor-sharp detail and unparalleled depth, delivering cinematic-level quality.",title:"Ultra High (8192x8192)"}],title:"Quality",type:"integer","x-display-type":"Integer"}},title:"Shadow caster",type:"object","x-category":"lighting","x-requires":{allOf:["point_light"]}},skeleton_ref:{description:"Reference to a skeleton asset for skinning and animation.",properties:{value:{description:"Referenced skeleton (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"skeleton","x-display-type":"UUID"}},title:"Skeleton Reference",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"],oneOf:["mesh_ref","bone"]}},sound_ref:{description:"Reference to a sound asset with playback and spatialization controls.",properties:{attenuationModel:{default:0,description:"Distance attenuation model.",format:"int8",minimum:0,oneOf:[{const:0,description:"No attenuation.",title:"No Attenuation"},{const:1,description:"Inverse distance attenuation model.",title:"Inverse Distance"},{const:2,description:"Linear distance attenuation model.",title:"Linear Distance"},{const:3,description:"Exponential distance attenuation model.",title:"Exponential Distance"}],title:"Attenuation Model",type:"integer","x-display-type":"Unsigned Byte"},attenuationRolloffFactor:{default:1,description:"Rolloff factor for distance attenuation.",format:"float",minimum:0,title:"Attenuation Rolloff Factor",type:"number","x-display-type":"Float"},autoPlayOnStart:{default:!1,description:"Autoplay when the simulation starts.",title:"Auto Play on Start",type:"boolean","x-display-type":"Boolean"},dopplerFactor:{default:1,description:"Scale factor for the Doppler effect.",format:"float",minimum:0,title:"Doppler Factor",type:"number","x-display-type":"Float"},inaudibleBehavior:{default:0,description:"Behavior when the sound becomes inaudible.",format:"int8",minimum:0,oneOf:[{const:0,description:"Continue updating while inaudible.",title:"Tick"},{const:1,description:"Suspend updates while inaudible.",title:"Don't Tick"},{const:2,description:"Stop playback and release resources when inaudible.",title:"Kill"}],title:"Inaudible Behavior",type:"integer","x-display-type":"Unsigned Byte"},looping:{default:!1,description:"Whether the sound loops.",title:"Looping",type:"boolean","x-display-type":"Boolean"},maxDistance:{default:50,description:"Distance beyond which the sound is inaudible (meters).",format:"float",minimum:0,title:"Max Distance",type:"number","x-display-type":"Float","x-unit":"m"},minDistance:{default:5,description:"Distance at which the sound stays at max volume (meters).",format:"float",minimum:0,title:"Min Distance",type:"number","x-display-type":"Float","x-unit":"m"},pan:{default:0,description:"Stereo pan. \u22121 = left, 1 = right.",format:"float",maximum:1,minimum:-1,title:"Pan",type:"number","x-display-type":"Float"},playSpeed:{default:1,description:"Playback speed multiplier (1.0 = normal).",format:"float",title:"Play Speed",type:"number","x-display-type":"Float"},value:{description:"Referenced sound (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"sound","x-display-type":"UUID"},volume:{default:1,description:"Playback volume [0..1].",format:"float",maximum:1,minimum:0,title:"Volume",type:"number","x-display-type":"Float"}},title:"Sound Reference",type:"object","x-category":"sound","x-requires":{allOf:["local_transform"]}},sphere_geometry:{description:"Sphere geometry.",properties:{offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the sphere (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Sphere Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},spline:{description:"Displays an editor-only spline in the 3D view.",properties:{color:{default:[1,1,1],description:"Display color of the curve.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},tension:{default:.5,description:"Catmull-Rom tension (only when type is Catmull-Rom).",format:"float",title:"Tension",type:"number","x-display-type":"Float"},type:{default:0,description:"Spline interpolation type.",format:"int32",minimum:0,oneOf:[{const:0,title:"Centripetal"},{const:1,title:"Chordal "},{const:2,title:"Catmullrom"}],title:"Type",type:"integer","x-display-type":"Unsigned Integer"}},title:"Spline",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},spot_light:{description:"Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff.",properties:{IESProfile:{description:"Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Ies Profile",type:"string","x-asset-ref":"texture","x-display-type":"UUID"},cutoff:{default:30,description:"Outer cone half-angle in degrees. Light intensity falls to zero outside this angle.",format:"float",title:"Cutoff",type:"number","x-display-type":"Float","x-unit":"deg"}},title:"Spot Light",type:"object","x-category":"lighting","x-requires":{allOf:["point_light"]}},tags:{description:"Free-form tags used to group and filter entities.",properties:{value:{description:"List of tags applied to this entity.",items:{type:"string","x-display-type":"String"},title:"Value",type:"array"}},title:"Tags",type:"object","x-category":"core"},vehicle_controller:{description:"Vehicle Controller parameters.",properties:{chassis:{description:"The chassis.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Chassis",type:"object","x-display-type":"Entity Reference"},frontLeftWheel:{description:"The front left wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Front Left Wheel",type:"object","x-display-type":"Entity Reference"},frontRightWheel:{description:"The front right wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Front Right Wheel",type:"object","x-display-type":"Entity Reference"},rearLeftWheel:{description:"The rear left wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Rear Left Wheel",type:"object","x-display-type":"Entity Reference"},rearRightWheel:{description:"The rear right wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Rear Right Wheel",type:"object","x-display-type":"Entity Reference"}},title:"Vehicle Controller",type:"object","x-category":"physics","x-requires":{allOf:["local_transform"]}},volume_filter:{description:"View filtering and display controls applied to the referenced volume.",properties:{applyGaussianFiltering:{default:!1,description:"Apply Gaussian smoothing when sampling voxels.",title:"Apply Gaussian Filtering",type:"boolean","x-display-type":"Boolean"},enable3D:{default:!0,description:"Whether this volume is visible in the 3D view.",title:"Enable3 D",type:"boolean","x-display-type":"Boolean"},enableMPR:{default:!0,description:"Whether this volume is visible in the MPR (multi-planar reconstruction) view.",title:"Enable Mpr",type:"boolean","x-display-type":"Boolean"},mprColor:{default:[1,1,1],description:"Tint applied to this volume's MPR/projection output.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Mpr Color",type:"array","x-display-type":"Vector3"},range:{default:[0,1],description:"Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Range",type:"array","x-display-type":"Vector2"},sampleUnfiltered:{default:!1,description:"Sample texels without hardware filtering (nearest).",title:"Sample Unfiltered",type:"boolean","x-display-type":"Boolean"}},title:"Volume Filter",type:"object","x-category":"rendering","x-requires":{allOf:["volume_ref"]}},volume_material_ref:{description:"Reference to the volume material used for shading and transfer functions.",properties:{value:{description:"Referenced volume material (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"volume_material","x-display-type":"UUID"}},title:"Volume Material Reference",type:"object","x-category":"rendering","x-requires":{allOf:["volume_ref"]}},volume_ref:{description:"Reference to a volumetric dataset stored as a 3D texture (voxels).",properties:{texture3dRef:{description:"Referenced 3D texture (UUID) containing the volume voxels.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Texture3d Ref",type:"string","x-asset-ref":"texture_3d","x-display-type":"UUID"}},title:"Volume Reference",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform","volume_material_ref"]}}},required:["euid"],type:"object"};import{jsx as ne,jsxs as _t}from"react/jsx-runtime";var se=({name:e,hasLinkToReference:t=!1,className:i})=>{let r=Xe.properties[e],a=Lt[e],n=e==="*_geometry"?"box_geometry; capsule_geometry; cylinder_geometry; plane_geometry; sphere_geometry":e;if(!r||!a)return ne("span",{children:e});let{color:s}=a,p=e==="*_geometry"?"/references/entity-components#box_geometry":`/references/entity-components#${e}`;return _t("span",{className:o("no-underline! inline-flex items-baseline gap-2 w-fit my-0 me-1","text-[90%] font-medium tracking-wide rounded-full whitespace-nowrap cursor-default","bg-current/10 border border-transparent has-[.link-to-ref:hover]:border-current/20 transition-colors",!t&&"pr-3",i),style:{color:s},children:[ne(Te,{componentId:e,className:"h-5 text-4xs"}),ne("span",{className:"text-primary",children:r?.title}),t&&ne("a",{href:p,className:"link-to-ref px-1 mr-0.5 h-full text-xs text-current! rounded-full opacity-70 hover:opacity-100 hover:bg-ground/50 transition-all",children:ne(I,{icon:"fal fa-external-link-square",className:"text-sm"})})]})};import{entityComponents as Mt}from"@3dverse/design-tokens";import{jsx as _,jsxs as K}from"react/jsx-runtime";function Et({allOf:e,oneOf:t,withAttributes:i,className:r}){return K("article",{className:o("relative w-fit flex flex-col flex-wrap my-4 border border-primary-alpha rounded-[1.5rem]",r),children:[_("div",{className:"absolute [writing-mode:vertical-rl] rotate-180 top-1/2 -left-3 -translate-x-1/2 -translate-y-1/2 text-[.6rem] font-medium text-tertiary tracking-wider opacity-60 uppercase",children:"Entity"}),_("div",{className:"flex flex-wrap gap-2 p-2",children:e?.map(a=>_(At,{name:a,withAttributes:i}))}),t&&K("div",{className:"flex gap-3 pl-4 p-2 border-t border-secondary-alpha",children:[K("div",{className:"shrink-0 mt-px text-3xs text-tertiary font-medium",children:[_("i",{className:"fal fa-plus mr-1"})," One of"]}),_("div",{className:"flex flex-wrap gap-2",children:t.map(a=>_(se,{name:a}))})]})]})}var At=({name:e,withAttributes:t})=>{if(t&&Object.keys(t).includes(e)){let{color:i}=Mt[e];return K("div",{className:"flex flex-col bg-(--entity-component-color)/5 rounded-[14px]",style:{"--entity-component-color":i},children:[_(se,{name:e,className:"w-full"}),_(Ut,{attributes:t[e]})]})}return _(se,{name:e})},Ut=({attributes:e})=>_("div",{className:"flex flex-col flex-wrap gap-1 p-2 pr-4 text-xs text-tertiary",children:Object.entries(e).map(([t,i])=>K("div",{className:"flex gap-1",children:[K("span",{className:"font-mono",children:[t,":"]}),_("span",{className:"font-mono",children:JSON.stringify(i)})]},t))});var Le={glowEffect:"d",glowEffectWide:"l"};import{jsx as qt}from"react/jsx-runtime";var Bt=({children:e,variant:t="default",className:i})=>qt("div",{className:o(Le.glowEffect,t==="wide"&&Le.glowEffectWide,i),children:e});import{Fragment as Ye,jsx as l,jsxs as T}from"react/jsx-runtime";var Vt=({items:e=[],connections:t=[],gridSize:i=40,cellSize:r=70,containerWidth:a=800,containerHeight:n=400,caption:s,animateOnScroll:p=!0,className:v})=>{let U=y=>({animationFillMode:"both",...p?{animationTimeline:"view(block)",animationRange:"entry 25% entry 100%"}:{animationDelay:y}}),g=(y,f)=>{let m=(y-f)*(r/2),u=(y+f)*(r/4);return{x:m,y:u}},b=a/2,x=n/2,d=()=>{let y=[],f=i/2;for(let m=-f;m<=f;m++){let u=g(-f,m),R=g(f,m);y.push(l("line",{x1:b+u.x,y1:x+u.y,x2:b+R.x,y2:x+R.y,stroke:"rgba(100, 150, 200, 0.4)",strokeWidth:"1"},`h-${m}`))}for(let m=-f;m<=f;m++){let u=g(m,-f),R=g(m,f);y.push(l("line",{x1:b+u.x,y1:x+u.y,x2:b+R.x,y2:x+R.y,stroke:"rgba(100, 150, 200, 0.4)",strokeWidth:"1"},`v-${m}`))}return y},w=(y,f,m)=>{let R=`arrow-${y}-${m}`;return l("marker",{id:R,markerWidth:10,markerHeight:10,refX:y==="end"?6:4,refY:10/2,orient:"auto",markerUnits:"userSpaceOnUse",children:l("polygon",{points:y==="end"?`0,0 10,${10/2} 0,10`:`10,0 0,${10/2} 10,10`,fill:f})})},h=()=>t.map((y,f)=>{let{from_x:m,from_y:u,to_x:R,to_y:F,via_x:G=m,via_y:H=u,arrow_start:me,arrow_end:ie,color:B="#fbbf24",name:oe,showDebug:fe,isAnimated:ue=!1,animationDirection:ye="end"}=y,k=[],O=[],P=m,N=u;if(k.push(g(P,N)),P!==G){let c=G;O.push({from:{x:P,y:N},to:{x:c,y:N}}),P=c,k.push(g(P,N))}if(N!==H){let c=H;O.push({from:{x:P,y:N},to:{x:P,y:c}}),N=c,k.push(g(P,N))}if(P!==R){let c=R;O.push({from:{x:P,y:N},to:{x:c,y:N}}),P=c,k.push(g(P,N))}if(N!==F){let c=F;O.push({from:{x:P,y:N},to:{x:P,y:c}}),N=c,k.push(g(P,N))}let re=O[0],Ve=0;O.forEach(c=>{let D=c.to.x-c.from.x,Z=c.to.y-c.from.y,W=Math.hypot(D,Z);W>Ve&&(Ve=W,re=c)});let ge=g(re.from.x,re.from.y),xe=g(re.to.x,re.to.y),ct=b+(ge.x+xe.x)/2,mt=x+(ge.y+xe.y)/2,ft=Math.atan2(xe.y-ge.y,xe.x-ge.x)*(180/Math.PI),ut=(c=>{let D=(c+180)%360-180;return D>90&&(D-=180),D<-90&&(D+=180),D})(ft),yt=k.map((c,D)=>{let Z=b+c.x,W=x+c.y;return D===0?`M ${Z},${W}`:`L ${Z},${W}`}).join(" "),Fe=0;for(let c=1;c<k.length;c++){let D=k[c-1],Z=k[c],W=b+D.x,vt=x+D.y,wt=b+Z.x,Pt=x+Z.y;Fe+=Math.hypot(wt-W,Pt-vt)}let ze=Math.max(1.2,Fe/150),$e=`conn-path-${f}`,gt=`arrow-start-${f*2}`,xt=`arrow-end-${f*2+1}`,ht=()=>T("defs",{children:[me&&w("start",B,f*2),ie&&w("end",B,f*2+1)]}),he=({reverse:c=!1,begin:D="0s"})=>T("g",{filter:"url(#conn-glow)",children:[l("ellipse",{cx:"5",cy:"0",rx:"4",ry:"2",fill:B,opacity:"0.8"}),l("animateMotion",{dur:`${ze}s`,repeatCount:"indefinite",begin:D,keyPoints:c?"1;0":"0;1",keyTimes:"0;1",calcMode:"linear",rotate:"auto",children:l("mpath",{xlinkHref:`#${$e}`})})]}),bt=()=>ue?ye==="both"?T(Ye,{children:[l(he,{reverse:!1,begin:"0s"}),l(he,{reverse:!0,begin:`${ze/2}s`})]}):ye==="start"?l(he,{reverse:!0}):l(he,{reverse:!1}):null;return T("g",{className:"animate-appear-top cursor-default",style:U(".2s"),children:[l(ht,{}),l("path",{id:$e,d:yt,stroke:B,strokeWidth:"2",strokeLinecap:"round",fill:"none",markerStart:me?`url(#${gt})`:void 0,markerEnd:ie?`url(#${xt})`:void 0,style:y.style}),bt(),oe&&l("g",{transform:`translate(${ct}, ${mt}) rotate(${ut})`,children:l("text",{x:"12",y:"12",textAnchor:"middle",dominantBaseline:"middle",className:"text-sm font-bold fill-accent",children:oe})}),fe&&l(Ye,{children:k.map((c,D)=>l("circle",{cx:b+c.x,cy:x+c.y,r:"3",fill:D===0?"red":D===k.length-1?"green":"blue"},D))})]},f)}),S=()=>e.map((y,f)=>{let{x:m,y:u,width:R,height:F,color:G="#52548B",name:H,showDebug:me,image:ie}=y,B=g(m,u),oe=g(m+R,u),fe=g(m+R,u-F),ue=g(m,u-F),ye=[[b+B.x,x+B.y],[b+oe.x,x+oe.y],[b+fe.x,x+fe.y],[b+ue.x,x+ue.y]].map(([O,P])=>`${O},${P}`).join(" "),k=g(m+R/2,u-F/2);return l("g",{className:"group animate-appear-top cursor-default",style:U(),children:T("g",{className:"drop-shadow-[0_9px_7px_var(--shadow-color)] hover:drop-shadow-[0_12px_10px_var(--shadow-color)] hover:[--translate:-8px] transition-transform duration-300",style:{"--shadow-color":`color-mix(in srgb, ${G} 10%, var(--color-bg-ground))`,translate:"0 var(--translate, -4px)"},children:[l("polygon",{points:ye,fill:G,strokeLinejoin:"round",className:"opacity-80 group-hover:opacity-100 transition-opacity duration-all duration-300"}),ie&&(()=>{let O=b+B.x+5,P=x+B.y-80;return l("image",{href:ie,x:O,y:P,width:"128px"})})(),H&&T("g",{transform:`translate(${b+k.x}, ${x+k.y})`,children:[l("rect",{x:-(H.length*4+8),y:-12,width:H.length*8+16,height:24,fill:"#181a59",fillOpacity:"0.8",rx:"4"}),l("text",{x:0,y:0,textAnchor:"middle",dominantBaseline:"middle",className:"text-base",fill:"white",children:H})]}),me&&T("text",{x:b+k.x,y:x+k.y+20,textAnchor:"middle",fill:"white",fontSize:"10",opacity:"0.7",children:["(",m,", ",u,")"]})]})},f)});return T("figure",{className:o("m-0 w-full",v),role:"img","aria-label":s,children:[T("svg",{viewBox:`0 0 ${a} ${n}`,preserveAspectRatio:"xMidYMid meet",className:"w-full",children:[T("defs",{children:[T("filter",{id:"conn-glow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[l("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"}),T("feMerge",{children:[l("feMergeNode",{in:"blur"}),l("feMergeNode",{in:"SourceGraphic"})]})]}),T("mask",{id:"fadeMask",maskUnits:"objectBoundingBox",children:[T("radialGradient",{id:"fadeGradient",children:[l("stop",{offset:"40%",stopColor:"white"}),l("stop",{offset:"90%",stopColor:"black"})]}),l("rect",{width:"100%",height:"100%",fill:"url(#fadeGradient)"})]}),T("filter",{id:"text-backdrop-blur",x:"-200%",y:"-200%",width:"500%",height:"500%",children:[l("feGaussianBlur",{in:"BackgroundImage",stdDeviation:"20",result:"blurredBg"}),l("feFlood",{floodColor:"black",floodOpacity:"0.8",result:"bgColor"}),l("feComposite",{in:"bgColor",in2:"blurredBg",operator:"in",result:"coloredBlur"}),l("feComposite",{in:"coloredBlur",in2:"SourceGraphic",operator:"over",result:"final"})]})]}),l("rect",{width:a,height:n,fill:"transparent"}),l("g",{mask:"url(#fadeMask)",children:d()}),h(),S()]}),s&&l("figcaption",{className:"-translate-y-6 text-center text-sm text-tertiary text-balance",children:s})]})};import{jsx as z,jsxs as _e}from"react/jsx-runtime";var Ft=({style:e,className:t=""})=>_e("svg",{viewBox:"0 0 99 20",xmlns:"http://www.w3.org/2000/svg",style:e,className:t,children:[z("path",{fill:"var(--color-wordmark-prefix, var(--color-brand))",d:"M6.059 19.351c-.92733 0-1.79833-.1733-2.613-.52-.81467-.3553-1.521-.858-2.119-1.508-.589333-.65-1.018333-1.417-1.2869999-2.301L2.666 14.294c.25133.806.689 1.4257 1.313 1.859.624.4247 1.31733.6327 2.08.624.68467-.0087 1.287-.169 1.807-.481.52-.312.92733-.7323 1.222-1.261.29467-.5373.442-1.1527.442-1.846 0-1.04-.325-1.898-.975-2.574-.64133-.676-1.482-1.014-2.522-1.014-.29467 0-.598.04333-.91.13-.30333.08667-.58933.19933-.858.338L2.991 7.924l6.604-5.837.286.78h-9.1V.279999h11.258V2.867L6.553 8.145l-.026-.884c1.17867 0 2.20133.26433 3.068.793.8667.52 1.534 1.23067 2.002 2.132.4767.8927.715 1.8937.715 3.003 0 1.196-.2817 2.2577-.845 3.185-.5547.9273-1.3043 1.6553-2.249 2.184-.936.5287-1.989.793-3.159.793Zm15.4769.039c-1.3087 0-2.4397-.325-3.393-.975-.9447-.65-1.677-1.534-2.197-2.652-.5113-1.1267-.767-2.392-.767-3.796 0-1.4127.26-2.67367.78-3.783.52-1.118 1.2567-1.99767 2.21-2.639.962-.65 2.1017-.975 3.419-.975 1.326 0 2.4397.325 3.341.975.91.64133 1.5947 1.521 2.054 2.639.468 1.118.702 2.379.702 3.783s-.234 2.665-.702 3.783c-.468 1.118-1.157 2.0063-2.067 2.665-.91.65-2.0367.975-3.38.975Zm.377-2.457c.8927 0 1.6207-.2123 2.184-.637.5633-.4247.975-1.0097 1.235-1.755.26-.7453.39-1.6033.39-2.574 0-.9707-.1343-1.8287-.403-2.574-.26-.74533-.6673-1.326-1.222-1.742-.546-.416-1.2437-.624-2.093-.624-.9013 0-1.6423.221-2.223.663-.5807.442-1.014 1.03567-1.3 1.781-.2773.7453-.416 1.5773-.416 2.496 0 .9273.1387 1.768.416 2.522.286.7453.7107 1.339 1.274 1.781.572.442 1.2913.663 2.158.663ZM25.7219 19V8.899h-.312V.279999h2.73V19h-2.418Z"}),z("path",{fill:"var(--color-wordmark, var(--color-content-secondary))",d:"m35.8333 19-5.096-14.04h2.743l3.731 10.634 3.731-10.634h2.743L38.5893 19h-2.756Zm16.1734.39c-1.3953 0-2.6217-.3033-3.679-.91-1.0487-.6153-1.8677-1.469-2.457-2.561-.5807-1.1007-.871-2.3747-.871-3.822 0-1.534.286-2.86433.858-3.991.5807-1.12667 1.3867-1.99767 2.418-2.613 1.0313-.61533 2.2317-.923 3.601-.923 1.43 0 2.6477.33367 3.653 1.001 1.0053.65867 1.755 1.599 2.249 2.821.5027 1.222.702 2.6737.598 4.355h-2.717v-.988c-.0173-1.6293-.3293-2.834-.936-3.614-.598-.78-1.5123-1.17-2.743-1.17-1.3607 0-2.3833.429-3.068 1.287-.6847.858-1.027 2.0973-1.027 3.718 0 1.5427.3423 2.7387 1.027 3.588.6847.8407 1.6727 1.261 2.964 1.261.8493 0 1.5817-.1907 2.197-.572.624-.39 1.1093-.9447 1.456-1.664l2.665.845c-.546 1.2567-1.3737 2.2317-2.483 2.925-1.1093.6847-2.3443 1.027-3.705 1.027Zm-5.005-6.643v-2.119h10.023v2.119h-10.023ZM61.5534 19V4.96h2.418v3.406l-.338-.442c.1733-.45067.3986-.86233.676-1.235.2773-.38133.598-.69333.962-.936.3553-.26.7496-.45933 1.183-.598.442-.14733.8926-.234 1.352-.26.4593-.03467.9013-.013 1.326.065v2.548c-.4594-.12133-.9707-.156-1.534-.104-.5547.052-1.066.22967-1.534.533-.442.286-.793.63267-1.053 1.04-.2514.40733-.4334.86233-.546 1.365-.1127.494-.169 1.0183-.169 1.573V19h-2.743Zm15.1758.377c-1.7073 0-3.0983-.377-4.173-1.131-1.0746-.754-1.7333-1.8157-1.976-3.185l2.782-.429c.1734.728.572 1.3043 1.196 1.729.6327.416 1.417.624 2.353.624.8494 0 1.5124-.1733 1.989-.52.4854-.3467.728-.8233.728-1.43 0-.3553-.0866-.6413-.26-.858-.1646-.2253-.5156-.4377-1.053-.637-.5373-.1993-1.3563-.4463-2.457-.741-1.2046-.312-2.1623-.6457-2.873-1.001-.702-.364-1.2046-.7843-1.508-1.261-.2946-.4853-.442-1.07033-.442-1.755 0-.84933.2254-1.59033.676-2.223.4507-.63267 1.0834-1.12233 1.898-1.469.8234-.34667 1.7854-.52 2.886-.52 1.0747 0 2.0324.169 2.873.507.8407.338 1.521.819 2.041 1.443.52.61533.832 1.339.936 2.171l-2.782.507c-.0953-.676-.4116-1.209-.949-1.599-.5373-.39-1.235-.60233-2.093-.637-.8233-.03467-1.4906.104-2.002.416-.5113.30333-.767.72367-.767 1.261 0 .312.0954.57633.286.793.1994.21667.5807.42467 1.144.624.5634.1993 1.3954.4377 2.496.715 1.1787.3033 2.1147.6413 2.808 1.014.6934.364 1.1874.8017 1.482 1.313.3034.5027.455 1.1137.455 1.833 0 1.3867-.507 2.4743-1.521 3.263-1.0053.7887-2.3963 1.183-4.173 1.183Zm15.0575.013c-1.3953 0-2.6217-.3033-3.679-.91-1.0487-.6153-1.8677-1.469-2.457-2.561-.5807-1.1007-.871-2.3747-.871-3.822 0-1.534.286-2.86433.858-3.991.5807-1.12667 1.3867-1.99767 2.418-2.613 1.0313-.61533 2.2317-.923 3.601-.923 1.43 0 2.6477.33367 3.653 1.001 1.0053.65867 1.755 1.599 2.249 2.821.5027 1.222.702 2.6737.598 4.355h-2.717v-.988c-.0173-1.6293-.3293-2.834-.936-3.614-.598-.78-1.5123-1.17-2.743-1.17-1.3607 0-2.3833.429-3.068 1.287-.6847.858-1.027 2.0973-1.027 3.718 0 1.5427.3423 2.7387 1.027 3.588.6847.8407 1.6727 1.261 2.964 1.261.8493 0 1.5817-.1907 2.197-.572.624-.39 1.1093-.9447 1.456-1.664l2.665.845c-.546 1.2567-1.3737 2.2317-2.483 2.925-1.1093.6847-2.3443 1.027-3.705 1.027Zm-5.005-6.643v-2.119h10.023v2.119h-10.023Z"})]}),Me=({style:e,className:t=""})=>_e("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e,className:t,children:[z("path",{d:"M5.28808 19.7527L14.1837 28.4509L14.1837 39.9995L5.28302 31.294L5.28808 19.7527Z",fill:"var(--logo-color, #8d670b)"}),z("path",{d:"M33.9949 19.7527L25.0993 28.4509L25.0993 39.9995L34 31.294L33.9949 19.7527Z",fill:"var(--logo-color, #8d670b)"}),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M29.3294 13.2721L34.2049 19.747V31.294L24.9911 19.747V24.8481H24.9904V24.8488L14.4968 24.8488V19.7477H14.4968V19.747L5.28302 31.294L5.28302 19.7527L10.1585 13.28V9.17384C10.1585 3.05795 14.9512 0 19.744 0C22.106 0 24.468 0.742731 26.2563 2.22819C28.0966 3.75685 29.3294 6.07206 29.3294 9.17384L29.3294 13.2721L29.3294 13.2721ZM19.744 5.75545C21.2537 5.75545 22.7634 6.83514 22.7634 8.99452L22.7634 13.2748L16.7245 13.2773V8.99452C16.7245 7.40326 17.5444 6.3983 18.5799 5.97965C18.9496 5.83019 19.3468 5.75545 19.744 5.75545ZM16.7245 13.2773V13.28L22.7634 13.28L16.7245 13.28V13.2773H16.7245ZM19.7439 29.9788L14.4968 24.8488L24.9911 24.8488L19.7439 29.9788Z",fill:"url(#logo-rocket-gradient)"}),z("defs",{children:_e("linearGradient",{id:"logo-rocket-gradient",x1:"12.0755",y1:"1.88679",x2:"31.3208",y2:"32.4528",gradientUnits:"userSpaceOnUse",children:[z("stop",{"stop-color":"var(--logo-top-color, #f0c732)"}),z("stop",{offset:"1","stop-color":"var(--logo-bottom-color, #ffc800)"})]})})]});var Ee={spinnerLogo:"s",circle:"e",loaderRotate:"r"};import{jsx as Je,jsxs as jt}from"react/jsx-runtime";var $t=()=>jt("div",{className:Ee.spinnerLogo,children:[Je(Me,{}),Je("span",{className:Ee.circle})]});import{assets as Ht}from"@3dverse/design-tokens";import{jsx as Ae,jsxs as Gt}from"react/jsx-runtime";var we=({icon:e,variant:t,weight:i,color:r,className:a="",style:n})=>t==="shadowCast"?Gt("div",{role:"img",style:{position:"relative",...n,color:r??"var(--color-content-tertiary)"},children:[Ae(we,{icon:e,weight:i,className:a,style:{position:"relative",zIndex:10}}),Ae(we,{icon:e,weight:i,className:a,color:"color-mix(in oklab, var(--color-bg-underground) 80%, transparent)",style:{position:"absolute",top:"0",left:"0",translate:"40% 15%",scale:"0.94",filter:"drop-shadow(3px 6px 30px color-mix(in oklab, var(--color-content-tertiary) 80%, transparent))"}})]}):Ae("i",{className:`fa-${i??"solid"} ${e} ${a}`,role:"img",style:{...n,color:r}});import{Fragment as Xt,jsx as le}from"react/jsx-runtime";var Zt=({assetId:e,variant:t,weight:i,className:r=""})=>{let{color:a,fontAwesome:n}=Ht[e],s=t==="file"?`
1
+ var X={container:"t",inner:"o",innerShape:"i",shape:"a",shapeAlt:"n"};import{jsx as ve,jsxs as It}from"react/jsx-runtime";var we=["#EDB5FB","#FBB5B5","#F4D35B","#B5FBF7","#B5DDFB","#B5C2FB","#CBB5FB","#189AB4","#75E6DA","#D4F1F4","#EF7C8E","#FAE8E0","#B6E2D3","#D8A7B1","#F6EEE0","#E4B7A0","#C38370","#94DFE6","#EBDCC7","#B5EECB","#DCC5C3","#D6E1EB","#ADC4D7","#FACB80","#FBD8B0","#feb191","#a2f9c6"],re=[{},{borderWidth:"2px",borderStyle:"solid",borderColor:"currentColor",backgroundColor:"transparent"},{scale:"0.75"},{scale:"0.5"},{borderRadius:"9999px"},{borderRadius:"9999px",borderWidth:"2px",borderStyle:"solid",borderColor:"currentColor",backgroundColor:"transparent"},{borderRadius:"9999px",height:"50%",translate:"0 50%"},{borderRadius:"9999px",scale:"0.5"},{borderTopLeftRadius:"9999px",borderTopRightRadius:"9999px"},{borderTopRightRadius:"9999px",borderBottomRightRadius:"9999px"},{borderBottomRightRadius:"9999px",borderBottomLeftRadius:"9999px"},{borderTopLeftRadius:"9999px",borderBottomLeftRadius:"9999px"},{borderTopLeftRadius:"9999px",borderTopRightRadius:"9999px",height:"50%"},{borderTopRightRadius:"9999px",borderBottomRightRadius:"9999px",width:"50%"},{borderBottomRightRadius:"9999px",borderBottomLeftRadius:"9999px",height:"50%"},{borderTopLeftRadius:"9999px",borderBottomLeftRadius:"9999px",width:"50%"},{borderBottomRightRadius:"9999px",borderTopLeftRadius:"9999px"},{borderBottomLeftRadius:"9999px",borderTopRightRadius:"9999px"},{},{},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"rotate(180deg)"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"rotate(180deg) scaleY(-1)"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"scaleY(-1)"},{clipPath:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)"},{clipPath:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)"},{clipPath:'path("M12 4.248c-3.148-5.402-12-3.825-12 2.944 0 4.661 5.571 9.427 12 15.808 6.43-6.381 12-11.147 12-15.808 0-6.792-8.875-8.306-12-2.944z")'},{clipPath:"polygon(0 0, 0% 100%, 100% 100%)"},{clipPath:"polygon(61% 50%, 100% 0, 100% 100%, 0% 100%)"}],Re=re.length,De=we.length,ze=[0,180,270],Se=101,$e=200,je=301,Pt=({id:e,shape:t,colors:i,className:a,style:r})=>{let n=Number(e?.replace(/\D/g,"").replace(/-/g,"")),s=[we[i?.[0]??Math.floor(n%Se%De)],we[i?.[1]??Math.floor(n%$e%De)],we[i?.[2]??Math.floor(n%je%De)]],c=t||[Math.floor(n%Se%Re),Math.floor(n%$e%Re),Math.floor(n%je%Re)],D=ze[n%Se%ze.length];return ve("div",{role:"img","aria-label":"Project icon",className:`${X.container} ${a}`,style:{"--gradient-from":s[1],"--gradient-to":s[2],"--gradient-stops":"var(--gradient-from), var(--gradient-to)",...r},children:It("div",{className:X.innerShape,style:{color:s[0],rotate:`${D}deg`},children:[ve("span",{className:X.shape,style:{...re[c[0]],boxShadow:"5px 0px 0px 6px color-mix(in srgb, currentColor 40%, transparent), 4px 0px 0px 32px color-mix(in srgb, currentColor 30%, transparent)"}}),ve("span",{className:`${X.shape} ${X.shapeAlt}`,style:re[c[1]]}),ve("span",{className:X.shape,style:re[c[2]]})]})})};import{entityComponents as St}from"@3dverse/design-tokens";import{Icon as kt,cn as Nt}from"@3dverse/ui-lib";import{entityComponents as Ge}from"@3dverse/design-tokens";import{Icon as Ct,cn as Rt}from"@3dverse/ui-lib";import{Fragment as He,jsx as ke}from"react/jsx-runtime";var Ne=({componentId:e,variant:t="default",style:i,className:a=""})=>{if(!Ge[e])return ke(He,{children:e});let{color:r,fontAwesome:n}=Ge[e];return n?ke(Ct,{className:Rt("flex! justify-center items-center h-[2.5em] w-auto! aspect-square shrink-0 text-base text-current bg-current/20 rounded-full","fal",n,a),style:{color:r,boxShadow:t==="special"?"0 0 10px color-mix(in srgb, var(--entity-component-color), var(--color-bg-underground) 100%), 20px 0 0px -11px color-mix(in srgb, currentcolor, transparent 85%), -20px 0 0px -11px color-mix(in srgb, currentcolor, transparent 85%)":void 0,...i}}):ke(He,{children:e})};var Ze={properties:{animation_controller:{description:"Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set.",properties:{animationGraphRef:{description:"Referenced Animation Graph (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Graph Ref",type:"string","x-asset-ref":"animation_graph","x-display-type":"UUID"},animationSetRef:{description:"Referenced Animation Set (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Set Ref",type:"string","x-asset-ref":"animation_set","x-display-type":"UUID"},dataJSON:{description:"Animation Graph input parameters in JSON format.",title:"Data Json",type:"object","x-display-type":"JSON"},rootBoneEntityRef:{description:"Entity containing the Bone component for the skeleton's root bone.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Root Bone Entity Ref",type:"object","x-display-type":"Entity Reference"},rootMotionEnabled:{default:!1,description:"Enable root motion extraction and application to the entity transform.",title:"Root Motion Enabled",type:"boolean","x-display-type":"Boolean"}},title:"Animation Controller",type:"object","x-category":"animation"},animation_sequence_controller:{description:"Controls playback of an Animation Sequence; assigns tracks to entities.",properties:{animationSequenceRef:{description:"Referenced Animation Sequence (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Sequence Ref",type:"string","x-asset-ref":"animation_sequence","x-display-type":"UUID"},entities:{additionalProperties:{properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],type:"object","x-display-type":"Entity Reference"},description:"Map from track UUID to assigned entity.",title:"Entities",type:"object"},loop:{default:!1,description:"Loop playback when reaching the stop offset.",title:"Loop",type:"boolean","x-display-type":"Boolean"},playbackSpeed:{default:1,description:"Playback speed multiplier. Negative values play in reverse.",format:"float",title:"Playback Speed",type:"number","x-display-type":"Float"},startOffset:{default:0,description:"Normalized start offset [0, 1].",format:"float",maximum:1,minimum:0,title:"Start Offset",type:"number","x-display-type":"Float"},stopOffset:{default:1,description:"Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point.",format:"float",maximum:1,minimum:0,title:"Stop Offset",type:"number","x-display-type":"Float"}},title:"Animation Sequence Controller",type:"object","x-category":"animation"},bone:{description:"Associates this entity with a bone in a skeleton (for attachments and transforms).",properties:{boneIndex:{description:"Zero-based index of this bone within the bound skeleton.",format:"int32",minimum:0,title:"Bone Index",type:"integer","x-display-type":"Unsigned Integer"}},title:"Bone",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"]}},box_geometry:{description:"Box geometry.",properties:{dimension:{default:[1,1,1],description:"Box dimensions (width, height, depth) in meters.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Dimension",type:"array","x-display-type":"Vector3","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"}},title:"Box Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},camera:{description:"Virtual camera.",properties:{dataJSON:{description:"Render Graph input parameters in JSON; schema defined by renderGraphRef.",title:"Data Json",type:"object","x-display-type":"JSON"},renderGraphRef:{description:"Referenced render graph to use for rendering from this camera.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Render Graph Ref",type:"string","x-asset-ref":"render_graph","x-display-type":"UUID"},renderTargetIndex:{default:-1,description:"Index of the render target to blit/output to. -1 indicates the default target.",format:"int32",title:"Render Target Index",type:"integer","x-display-type":"Integer"}},title:"Camera",type:"object","x-category":"camera","x-requires":{allOf:["local_transform"],oneOf:["orthographic_lens","perspective_lens","custom_lens"]}},capsule_geometry:{description:"Capsule geometry.",properties:{axis:{default:1,description:"Alignment axis of the capsule: 0=X, 1=Y, 2=Z.",format:"int32",oneOf:[{const:0,description:"Capsule is aligned with the X Axis.",title:"X-Axis"},{const:1,description:"Capsule is aligned with the Y Axis.",title:"Y-Axis"},{const:2,description:"Capsule is aligned with the Z Axis.",title:"Z-Axis"}],title:"Axis",type:"integer","x-display-type":"Integer"},height:{default:1,description:"Height of the cylindrical mid-section (meters).",format:"float",title:"Height",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the hemispherical ends (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Capsule Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},character_controller:{description:"Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control.",properties:{skinWidth:{default:0,description:"Collision skin width (meters).",format:"float",title:"Skin Width",type:"number","x-display-type":"Float","x-unit":"m"},slopeLimit:{default:45,description:"Maximum walkable slope (degrees). Slopes steeper than this are not walkable.",format:"float",title:"Slope Limit",type:"number","x-display-type":"Float","x-unit":"deg"},stepOffset:{default:0,description:"Maximum climbable step height. Steps higher than this cannot be climbed automatically.",format:"float",title:"Step Offset",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Character Controller",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"],oneOf:["box_geometry","capsule_geometry"]}},collision_geometry_ref:{description:"Reference to a collision geometry asset used by physics.",properties:{collisionGeometryRef:{description:"Referenced collision geometry (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Collision Geometry Ref",type:"string","x-asset-ref":"collision_geometry","x-display-type":"UUID"}},title:"Collision Geometry Reference",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"]}},constraint:{description:"6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs.",properties:{motionLimitSpringDamping:{default:[0,0,0],description:"Linear limit spring damping per axis (N\xB7s/m).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Limit Spring Damping",type:"array","x-display-type":"Vector3","x-unit":"N.s/m"},motionLimitSpringStiffness:{default:[0,0,0],description:"Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Limit Spring Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N/m"},motionLowerLimit:{default:[0,0,0],description:"Lower linear limit per axis (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Lower Limit",type:"array","x-display-type":"Vector3","x-unit":"m"},motionUpperLimit:{default:[0,0,0],description:"Upper linear limit per axis (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Upper Limit",type:"array","x-display-type":"Vector3","x-unit":"m"},swingLimitAngle:{default:[0,0],description:"Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Swing Limit Angle",type:"array","x-display-type":"Vector2","x-unit":"deg"},swingSpringDamping:{default:0,description:"Swing limit spring damping (N\xB7m\xB7s/rad).",format:"float",title:"Swing Spring Damping",type:"number","x-display-type":"Float","x-unit":"N.m.s/rad"},swingSpringStiffness:{default:0,description:"Swing limit spring stiffness (N\xB7m/rad). >0 makes the limit soft.",format:"float",title:"Swing Spring Stiffness",type:"number","x-display-type":"Float","x-unit":"N.m/rad"},twistLimitAngle:{default:[0,0],description:"Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360).",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Twist Limit Angle",type:"array","x-display-type":"Vector2","x-unit":"deg"},twistSpringDamping:{default:0,description:"Twist limit spring damping (N\xB7m\xB7s/rad).",format:"float",title:"Twist Spring Damping",type:"number","x-display-type":"Float","x-unit":"N.m.s/rad"},twistSpringStiffness:{default:0,description:"Twist limit spring stiffness (N\xB7m/rad). >0 makes the limit soft.",format:"float",title:"Twist Spring Stiffness",type:"number","x-display-type":"Float","x-unit":"N.m/rad"},unlockedMotion:{default:0,description:"Unlock motion along/around the specified axes.",format:"int32",minimum:0,title:"Unlocked Motion",type:"integer","x-bitFlags":[{description:"Unlock motion along the X axis.",name:"Along X",value:1},{description:"Unlock motion along the Y axis.",name:"Along Y",value:2},{description:"Unlock motion along the Z axis.",name:"Along Z",value:4},{description:"Unlock motion around the X axis.",name:"Around X",value:8},{description:"Unlock motion around the Y axis.",name:"Around Y",value:16},{description:"Unlock motion around the Z axis.",name:"Around Z",value:32}],"x-display-type":"Unsigned Integer"}},title:"Constraint",type:"object","x-category":"physics","x-requires":{allOf:["joint"]}},constraint_actuator:{description:"Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits.",properties:{angularDamping:{default:[0,0,0],description:"Angular drive damping per axis (N\xB7m\xB7s/rad).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Damping",type:"array","x-display-type":"Vector3","x-unit":"N.m.s/rad"},angularForceLimit:{default:[-1,-1,-1],description:"Max angular drive torque/impulse per axis (N\xB7m). \u22121 = unlimited.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Force Limit",type:"array","x-display-type":"Vector3","x-unit":"N.m"},angularStiffness:{default:[0,0,0],description:"Angular drive stiffness per axis (N\xB7m/rad). >0 applies spring torque toward the goal.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N.m/rad"},angularVelocity:{default:[0,0,0],description:"Target angular velocity (rad/s).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Velocity",type:"array","x-display-type":"Vector3","x-unit":"rad/s"},goalOrientation:{default:[0,0,0,1],description:"Target angular orientation.",items:{format:"float",type:"number"},maxItems:4,minItems:4,title:"Goal Orientation",type:"array","x-display-type":"Quaternion"},goalPosition:{default:[0,0,0],description:"Target linear position offset (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Goal Position",type:"array","x-display-type":"Vector3","x-unit":"m"},linearDamping:{default:[0,0,0],description:"Linear drive damping per axis (N\xB7s/m).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Damping",type:"array","x-display-type":"Vector3","x-unit":"N.s/m"},linearForceLimit:{default:[-1,-1,-1],description:"Max linear drive force/impulse per axis (N). \u22121 = unlimited.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Force Limit",type:"array","x-display-type":"Vector3","x-unit":"N"},linearStiffness:{default:[0,0,0],description:"Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N/m"},linearVelocity:{default:[0,0,0],description:"Target linear velocity (m/s).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Velocity",type:"array","x-display-type":"Vector3","x-unit":"m/s"},type:{default:1,description:"Drive type: apply as force or as acceleration.",format:"int32",oneOf:[{const:0,title:"FORCE"},{const:1,title:"ACCELERATION"}],title:"Type",type:"integer","x-display-type":"Integer"}},title:"Constraint Actuator",type:"object","x-category":"physics","x-requires":{allOf:["constraint"]}},culling_geometry:{description:"Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere).",properties:{isAdditive:{default:!0,description:"Additive: show elements inside the geometry. Subtractive: show elements outside the geometry.",title:"Is Additive",type:"boolean","x-display-type":"Boolean"}},title:"Culling Geometry",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform"],oneOf:["box_geometry","cylinder_geometry","plane_geometry","sphere_geometry"]}},custom_lens:{description:"Custom projection lens using an explicit projection matrix.",properties:{cs_from_vs:{description:"Projection matrix mapping view-space to clip-space (cs_from_vs).",items:{format:"float",type:"number"},maxItems:16,minItems:16,title:"Cs From Vs",type:"array","x-display-type":"Matrix4"}},title:"Custom Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},cylinder_geometry:{description:"Cylinder geometry.",properties:{axis:{default:1,description:"Alignment axis of the cylinder: 0=X, 1=Y, 2=Z.",format:"int32",oneOf:[{const:0,description:"Cylinder is aligned with the X Axis.",title:"X-Axis"},{const:1,description:"Cylinder is aligned with the Y Axis.",title:"Y-Axis"},{const:2,description:"Cylinder is aligned with the Z Axis.",title:"Z-Axis"}],title:"Axis",type:"integer","x-display-type":"Integer"},height:{default:1,description:"Height of the cylinder (meters).",format:"float",title:"Height",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the cylinder (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Cylinder Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},debug_name:{description:"Human-readable name of the entity.",properties:{value:{description:"Entity name.",title:"Value",type:"string","x-display-type":"String"}},title:"Name",type:"object","x-category":"core"},decal_projector:{description:"Projects a material onto scene surfaces within the projector's box volume.",properties:{zIndex:{default:0,description:"Z-index ordering for decal rendering; higher values render on top of lower ones.",format:"int32",title:"Z Index",type:"integer","x-display-type":"Integer"}},title:"Decal Projector",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform","material_ref","box_geometry"]}},environment:{description:"Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes.",properties:{irradianceUUID:{description:"Diffuse irradiance cubemap used for ambient PBR lighting.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Irradiance Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"},radianceUUID:{description:"Specular radiance cubemap (prefiltered) used for PBR reflections.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Radiance Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"},skyboxUUID:{description:"Skybox cubemap used as the scene background (no lighting effect).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Skybox Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"}},title:"Environment",type:"object","x-category":"lighting"},euid:{description:"Unique identifier for the entity.",properties:{value:{description:"Unique identifier value.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",title:"Value",type:"string","x-display-type":"Entity Unique Identifier"}},readOnly:!0,required:["value"],title:"Entity UID",type:"object","x-category":"core"},joint:{description:"Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee.",properties:{breakForce:{default:1e16,description:"Break force threshold (Newtons).",format:"float",title:"Break Force",type:"number","x-display-type":"Float","x-unit":"N"},breakTorque:{default:1e16,description:"Break torque threshold (N\xB7m).",format:"float",title:"Break Torque",type:"number","x-display-type":"Float","x-unit":"N.m"},constrainee:{description:"Entity with a Rigid Body to be constrained.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Constrainee",type:"object","x-display-type":"Entity Reference","x-required-components":["rigid_body"]},constrainer:{description:"Entity acting as constrainer (rigid/static) or null to constrain to world origin.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Constrainer",type:"object","x-display-type":"Entity Reference"},enableCollision:{default:!1,description:"Enable collision between constrainer and constrainee bodies.",title:"Enable Collision",type:"boolean","x-display-type":"Boolean"}},title:"Joint",type:"object","x-category":"physics","x-requires":{allOf:["local_transform"]}},label:{description:"Displays an editor-only label in the 3D view.",properties:{camera:{default:[0,0,0,0,0,0,1],description:"Camera framing parameters for navigating to the label.",items:{format:"float",type:"number","x-display-type":"Float"},title:"Camera",type:"array"},description:{description:"Label description text.",title:"Description",type:"string","x-display-type":"String"},speed:{default:15,description:"Camera travel speed (meters/second).",format:"float",title:"Speed",type:"number","x-display-type":"Float"},title:{description:"Label title text.",title:"Title",type:"string","x-display-type":"String"}},title:"Label",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},lineage:{description:"Records the entity's lineage through linkers and parentage.",properties:{ordinal:{default:0,description:"Ordinal index among siblings (editor-only).",format:"int32",title:"Ordinal",type:"integer","x-display-type":"Integer"},parentUUID:{description:"UUID of this entity's parent (default is root).",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",title:"Parent Uuid",type:"string","x-display-type":"Entity Unique Identifier"}},title:"Lineage",type:"object","x-category":"core"},local_aabb:{description:"Local-space axis-aligned bounding box.",properties:{max:{description:"Local AABB maximum corner (x,y,z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Max",type:"array","x-display-type":"Vector3"},min:{description:"Local AABB minimum corner (x,y,z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Min",type:"array","x-display-type":"Vector3"}},title:"Local AABB",type:"object","x-category":"core"},local_transform:{description:"Local transform of the entity (position, orientation, scale).",properties:{eulerOrientation:{default:[0,0,0],description:"Local orientation as Euler angles (editor-only).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Orientation",type:"array","x-display-type":"Vector3","x-unit":"deg"},globalEulerOrientation:{default:[0,0,0],description:"Last global orientation entered by a user as Euler angles (may be invalid; editor-only).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Global Euler Orientation",type:"array","x-display-type":"Vector3","x-unit":"deg"},orientation:{default:[0,0,0,1],description:"Local orientation as a quaternion.",items:{format:"float",type:"number"},maxItems:4,minItems:4,title:"Orientation",type:"array","x-display-type":"Quaternion"},position:{default:[0,0,0],description:"Local position (x, y, z) in meters.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Position",type:"array","x-display-type":"Vector3","x-unit":"m"},scale:{default:[1,1,1],description:"Local non-uniform scale (x, y, z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Scale",type:"array","x-display-type":"Vector3"}},title:"Transform",type:"object","x-category":"core"},material:{description:"Assigns a shader to the entity's mesh and provides its input values and specialization constants.",properties:{constantsJSON:{description:"Specialization constants (JSON); schema defined by shaderRef.",title:"Constants Json",type:"object","x-display-type":"JSON"},dataJSON:{description:"Shader input values (JSON); schema defined by shaderRef.",title:"Data Json",type:"object","x-display-type":"JSON"},isDoubleSided:{default:!1,description:"Render both front and back faces (double-sided).",title:"Is Double Sided",type:"boolean","x-display-type":"Boolean"},shaderRef:{description:"Referenced shader (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Shader Ref",type:"string","x-asset-ref":"shader","x-display-type":"UUID"}},title:"Material",type:"object","x-category":"rendering","x-requires":{allOf:["mesh_ref"]}},material_ref:{description:"Reference to a material to use for rendering.",properties:{faceCulling:{default:0,description:"Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided.",format:"int32",oneOf:[{const:0,title:"Inherit from material"},{const:1,title:"Single Sided"},{const:2,title:"Double Sided"}],title:"Face Culling",type:"integer","x-display-type":"Integer"},value:{description:"Referenced material (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"material","x-display-type":"UUID"}},title:"Material Reference",type:"object","x-category":"rendering","x-requires":{oneOf:["mesh_ref","decal_projector"]}},measure:{description:"Displays editor-only measurement annotations in the 3D view.",properties:{color:{default:[1,1,1],description:"Display color for the measurement.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},type:{default:0,description:"Measurement type to display.",format:"int32",minimum:0,oneOf:[{const:0,title:"Linear"},{const:1,title:"Angle"},{const:2,title:"Area"},{const:3,title:"Volume"}],title:"Type",type:"integer","x-display-type":"Unsigned Integer"}},title:"Measure",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},mesh_ref:{description:"Reference to a mesh to render (with submesh selection).",properties:{shadowCastingMode:{default:1,description:"Shadow casting mode for this mesh.",format:"int8",minimum:0,oneOf:[{const:0,description:"Shadow casting is disabled for this entity.",title:"Off"},{const:1,description:"Shadow casting is enabled for this entity.",title:"On"}],title:"Shadow Casting Mode",type:"integer","x-display-type":"Unsigned Byte"},submeshIndex:{default:0,description:"Index of the submesh within the mesh's submesh array.",format:"int32",title:"Submesh Index",type:"integer","x-display-type":"Integer"},value:{description:"Referenced mesh (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"mesh","x-display-type":"UUID"}},title:"Mesh Reference",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform"],oneOf:["material","material_ref"]}},morph_targets:{description:"Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref.",properties:{weights:{additionalProperties:{format:"float",type:"number","x-display-type":"Float"},description:"Map from morph target name to weight (commonly 0..1).",title:"Weights",type:"object"}},title:"Morph Targets",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"]}},orthographic_lens:{description:"Orthographic projection lens with configurable zoom and depth range.",properties:{zFar:{default:100,description:"Far clipping plane distance (meters).",format:"float",title:"Z Far",type:"number","x-display-type":"Float","x-unit":"m"},zNear:{default:0,description:"Near clipping plane distance (meters).",format:"float",title:"Z Near",type:"number","x-display-type":"Float","x-unit":"m"},zoomFactor:{default:[1,1],description:"Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Zoom Factor",type:"array","x-display-type":"Vector2"}},title:"Orthographic Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},overrider:{description:"Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components.",properties:{componentsToDetach:{description:"Hashes of components to detach from the overridden entity.",items:{format:"int32",type:"integer","x-display-type":"Integer"},title:"Components to Detach",type:"array"},deleter:{default:!1,description:"Mark the overridden entity as deleted in the composed scene.",title:"Deleter",type:"boolean","x-display-type":"Boolean"},entityRef:{description:"Target entity to override.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Entity Ref",type:"object","x-display-type":"Entity Reference"}},title:"Overrider",type:"object","x-category":"linker"},perspective_lens:{description:"Perspective projection lens with vertical field of view and near/far clipping planes.",properties:{farPlane:{default:0,description:"Far clipping plane distance (meters). Set to 0 for an infinite far plane.",format:"float",title:"Far Plane",type:"number","x-display-type":"Float","x-unit":"m"},fovy:{default:60,description:"Vertical field of view angle in degrees.",format:"float",title:"Vertical Field of View",type:"number","x-display-type":"Float","x-unit":"deg"},nearPlane:{default:.01,description:"Near clipping plane distance (meters).",format:"float",title:"Near Plane",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0],description:"Projection center offset for stereoscopic rendering (meters).",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Offset",type:"array","x-display-type":"Vector2","x-unit":"m"}},title:"Perspective Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},physics_material:{description:"Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode.",properties:{contactVelocity:{default:[0,0,0],description:"Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Contact Velocity",type:"array","x-display-type":"Vector3","x-unit":"m/s"},dynamicFriction:{default:.5,description:"Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface.",format:"float",title:"Dynamic Friction",type:"number","x-display-type":"Float"},isTrigger:{default:!1,description:"Treat associated geometry as a trigger (generates events but no physical response).",title:"Is Trigger",type:"boolean","x-display-type":"Boolean"},modifyContact:{default:!1,description:"Enable contact modification (applies contactVelocity on collisions).",title:"Modify Contact",type:"boolean","x-display-type":"Boolean"},restitution:{default:0,description:"Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface.",format:"float",title:"Restitution",type:"number","x-display-type":"Float"},staticFriction:{default:.5,description:"Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface.",format:"float",title:"Static Friction",type:"number","x-display-type":"Float"}},title:"Physics Material",type:"object","x-category":"physics","x-requires":{oneOf:["box_geometry","capsule_geometry","cylinder_geometry","plane_geometry","sphere_geometry","collision_geometry_ref"]}},plane_geometry:{description:"Infinite plane geometry.",properties:{distance:{default:0,description:"Signed distance from the origin along the plane normal (meters).",format:"float",title:"Distance",type:"number","x-display-type":"Float","x-unit":"m"},normal:{default:[0,1,0],description:"Unit normal vector of the plane (in local space).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Normal",type:"array","x-display-type":"Vector3"}},title:"Plane Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},point_cloud_ref:{description:"Reference to a point cloud.",properties:{value:{description:"Referenced point cloud (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"point_cloud","x-display-type":"UUID"}},title:"Point Cloud Reference",type:"object","x-category":"point cloud","x-requires":{allOf:["local_transform"]}},point_light:{description:"Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction.",properties:{color:{default:[1,1,1],description:"RGB light color in linear space [0\u20131]. Multiplies intensity.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},intensity:{default:1,description:"Radiant intensity (W/sr). Controls brightness for physically based shading (inverse-square falloff).",format:"float",title:"Intensity",type:"number","x-display-type":"Float","x-unit":"W/sr"},isDirectional:{default:!1,description:"Treat this as a directional light using the entity's orientation; position is ignored.",title:"Is Directional",type:"boolean","x-display-type":"Boolean"},isSun:{default:!1,description:"Use this light's direction to control the atmosphere sun direction. Only one light should be marked as the sun; multiple are undefined.",title:"Is Sun",type:"boolean","x-display-type":"Boolean"},range:{default:0,description:"Hard cutoff distance for light influence and culling (meters). Set to 0 for no hard cutoff and physically correct inverse-square attenuation.",format:"float",title:"Range",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Light",type:"object","x-category":"lighting","x-requires":{allOf:["local_transform"]}},reflection_probe:{description:"Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL).",properties:{farDist:{default:100,description:"Capture far clip distance (meters).",format:"float",title:"Far Dist",type:"number","x-display-type":"Float","x-unit":"m"},nearDist:{default:.1,description:"Capture near clip distance (meters).",format:"float",title:"Near Dist",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Offset of the probe capture origin relative to the entity position (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},quality:{default:128,description:"Reflection cubemap resolution (pixels per face). Higher values increase detail and cost.",format:"int32",title:"Quality",type:"integer","x-display-type":"Integer"}},title:"Reflection probe",type:"object","x-category":"lighting","x-requires":{allOf:["local_transform","box_geometry"]}},rigid_body:{description:"Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior).",properties:{angularDamping:{default:.05,description:"Angular damping coefficient (s^-1). 0 = no damping; must be non-negative.",format:"float",minimum:0,title:"Angular Damping",type:"number","x-display-type":"Float","x-unit":"s^-1"},centerOfMass:{default:[0,0,0],description:"Center of mass relative to the entity's local transform (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Center of Mass",type:"array","x-display-type":"Vector3","x-unit":"m"},collisionDetection:{default:0,description:"Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD.",format:"int8",minimum:0,oneOf:[{const:0,description:"Discrete collision detection.",title:"Discrete"},{const:1,description:"Linear, or sweep-based, CCD. This prevents the affected rigid bodies from going through other physics bodies at high velocities (a problem also known as tunnelling). Not functional with kinematic rigid bodies.",title:"LinearContinuous"},{const:2,description:"Angular, or speculative, CCD is better at catching missed contacts generated by fast angular motions but not as good with fast linear motions. Angular CCD is cheaper but less robust compared to linear CCD.",title:"AngularContinuous"},{const:3,description:"Linear and angular CCD are enabled. This often results in best-of-both-worlds behavior. Not functional with kinematic rigid bodies.",title:"Continuous"}],title:"Collision Detection",type:"integer","x-display-type":"Unsigned Byte"},isKinematic:{default:!1,description:"Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic).",title:"Is Kinematic",type:"boolean","x-display-type":"Boolean"},linearDamping:{default:0,description:"Linear damping coefficient (s^-1). 0 = no damping; must be non-negative.",format:"float",minimum:0,title:"Linear Damping",type:"number","x-display-type":"Float","x-unit":"s^-1"},lockedAxis:{default:0,description:"Lock motion along/around the specified axes.",format:"int8",minimum:0,title:"Locked Axis",type:"integer","x-bitFlags":[{description:"Locks motion along the X axis.",name:"Linear X",value:1},{description:"Locks motion along the Y axis.",name:"Linear Y",value:2},{description:"Locks motion along the Z axis.",name:"Linear Z",value:4},{description:"Locks motion around the X axis.",name:"Angular X",value:8},{description:"Locks motion around the Y axis.",name:"Angular Y",value:16},{description:"Locks motion around the Z axis.",name:"Angular Z",value:32}],"x-display-type":"Unsigned Byte"},mass:{default:1,description:"Mass (kg). A value of 0 is treated as infinite mass (static).",format:"float",title:"Mass",type:"number","x-display-type":"Float","x-unit":"kg"},maxAngularVelocity:{default:100,description:"Maximum angular velocity (rad/s). Must be non-negative.",format:"float",minimum:0,title:"Max Angular Velocity",type:"number","x-display-type":"Float","x-unit":"rad/s"},maxLinearVelocity:{default:1e16,description:"Maximum linear velocity (m/s). Must be non-negative.",format:"float",minimum:0,title:"Max Linear Velocity",type:"number","x-display-type":"Float","x-unit":"m/s"},useGravity:{default:!0,description:"Whether the rigid body is affected by gravity.",title:"Use Gravity",type:"boolean","x-display-type":"Boolean"}},title:"Rigid Body",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"]}},scene_ref:{description:"Reference to a subscene (linker); used to compose scenes.",properties:{maxRecursionCount:{default:1,description:"Maximum recursion depth when a scene references itself.",format:"int32",minimum:0,title:"Max Recursion Count",type:"integer","x-display-type":"Unsigned Integer"},value:{description:"Referenced scene (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"scene","x-display-type":"UUID"}},title:"Scene Reference",type:"object","x-category":"linker","x-requires":{allOf:["local_transform"]}},script_element:{description:"References a script and supplies its input values.",properties:{dataJSON:{description:"Script input values in JSON; schema defined by scriptRef.",title:"Data Json",type:"object","x-display-type":"JSON"},scriptRef:{description:"Referenced script (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Script Ref",type:"string","x-asset-ref":"script","x-display-type":"UUID"}},title:"Script Element",type:"object","x-category":"scripting"},script_map:{description:"Holds a set of script elements keyed by UUID.",properties:{elements:{additionalProperties:{description:"References a script and supplies its input values.",properties:{dataJSON:{description:"Script input values in JSON; schema defined by scriptRef.",title:"Data Json",type:"object","x-display-type":"JSON"},scriptRef:{description:"Referenced script (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Script Ref",type:"string","x-asset-ref":"script","x-display-type":"UUID"}},title:"Script Element",type:"object","x-category":"scripting"},description:"Map of script UUID to script element.",title:"Elements",type:"object"}},title:"Script Map",type:"object","x-category":"scripting"},shadow_caster:{description:"Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades.",properties:{accumulateShadowCascades:{default:!0,description:"Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits.",title:"Accumulate Shadow Cascades",type:"boolean","x-display-type":"Boolean"},bias:{default:.004,description:"Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning.",format:"float",title:"Bias",type:"number","x-display-type":"Float"},cascadeCount:{default:4,description:"Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count.",format:"int8",oneOf:[{const:0,description:"A single, precomputed shadow map that does not depend on the camera's view. Provides consistent shadows across the scene but lacks adaptability for dynamic perspectives or varying levels of detail.",title:"Static Shadow Map"},{const:1,description:"One shadow layer for the entire view. Provides consistent but basic coverage, suitable for simple scenes or performance-critical applications.",title:"Single Cascade"},{const:2,description:"Two layers of shadow refinement enhance detail near the viewer while managing distant shadows more efficiently.",title:"Dual Cascade"},{const:3,description:"Three shadow regions create a balanced depth, offering clarity across close and mid-range distances.",title:"Triple Cascade"},{const:4,description:"Four layers provide precise and adaptive shadow detail, ensuring realistic depth and smooth transitions across a wide range of distances.",title:"Quad Cascade"}],title:"Cascade Count",type:"integer","x-display-type":"Byte"},cascadeSplitLambda:{default:.94,description:"Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two.",format:"float",title:"Cascade Split Lambda",type:"number","x-display-type":"Float"},farDist:{default:100,description:"Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers.",format:"float",title:"Far Dist",type:"number","x-display-type":"Float","x-unit":"m"},nearDist:{default:.1,description:"Shadow camera near clip distance (meters). Tighten to improve depth precision.",format:"float",title:"Near Dist",type:"number","x-display-type":"Float","x-unit":"m"},quality:{default:1024,description:"Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance.",format:"int32",oneOf:[{const:256,description:"Shadows are vague and blocky, providing just enough to indicate their general presence.",title:"Ultra-Low (256x256)"},{const:512,description:"Shadows appear soft and blurry, offering a basic sense of shape with little detail.",title:"Very Low (512x512)"},{const:1024,description:"Shadows are smoother and moderately clear but lack sharpness, giving a gentle impression of depth.",title:"Low (1024x1024)"},{const:2048,description:"Standard quality with adequate clarity for most scenes. Shadows are defined but not overly sharp.",title:"Medium-Low (2048x2048)"},{const:3072,description:"*RECOMMENDED* Shadows have clean edges and are crisp enough to make fine details noticeable in most environments.",title:"Medium (3072x3072)"},{const:4096,description:"High-quality shadows with detailed edges and accurate representation of shape and form.",title:"Medium High (4096x4096)"},{const:6144,description:"Sharp and precise shadows that maintain clarity even for intricate details. Suitable for premium visual fidelity.",title:"High (6144x6144)"},{const:8192,description:"Hyper-realistic shadows with razor-sharp detail and unparalleled depth, delivering cinematic-level quality.",title:"Ultra High (8192x8192)"}],title:"Quality",type:"integer","x-display-type":"Integer"}},title:"Shadow caster",type:"object","x-category":"lighting","x-requires":{allOf:["point_light"]}},skeleton_ref:{description:"Reference to a skeleton asset for skinning and animation.",properties:{value:{description:"Referenced skeleton (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"skeleton","x-display-type":"UUID"}},title:"Skeleton Reference",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"],oneOf:["mesh_ref","bone"]}},sound_ref:{description:"Reference to a sound asset with playback and spatialization controls.",properties:{attenuationModel:{default:0,description:"Distance attenuation model.",format:"int8",minimum:0,oneOf:[{const:0,description:"No attenuation.",title:"No Attenuation"},{const:1,description:"Inverse distance attenuation model.",title:"Inverse Distance"},{const:2,description:"Linear distance attenuation model.",title:"Linear Distance"},{const:3,description:"Exponential distance attenuation model.",title:"Exponential Distance"}],title:"Attenuation Model",type:"integer","x-display-type":"Unsigned Byte"},attenuationRolloffFactor:{default:1,description:"Rolloff factor for distance attenuation.",format:"float",minimum:0,title:"Attenuation Rolloff Factor",type:"number","x-display-type":"Float"},autoPlayOnStart:{default:!1,description:"Autoplay when the simulation starts.",title:"Auto Play on Start",type:"boolean","x-display-type":"Boolean"},dopplerFactor:{default:1,description:"Scale factor for the Doppler effect.",format:"float",minimum:0,title:"Doppler Factor",type:"number","x-display-type":"Float"},inaudibleBehavior:{default:0,description:"Behavior when the sound becomes inaudible.",format:"int8",minimum:0,oneOf:[{const:0,description:"Continue updating while inaudible.",title:"Tick"},{const:1,description:"Suspend updates while inaudible.",title:"Don't Tick"},{const:2,description:"Stop playback and release resources when inaudible.",title:"Kill"}],title:"Inaudible Behavior",type:"integer","x-display-type":"Unsigned Byte"},looping:{default:!1,description:"Whether the sound loops.",title:"Looping",type:"boolean","x-display-type":"Boolean"},maxDistance:{default:50,description:"Distance beyond which the sound is inaudible (meters).",format:"float",minimum:0,title:"Max Distance",type:"number","x-display-type":"Float","x-unit":"m"},minDistance:{default:5,description:"Distance at which the sound stays at max volume (meters).",format:"float",minimum:0,title:"Min Distance",type:"number","x-display-type":"Float","x-unit":"m"},pan:{default:0,description:"Stereo pan. \u22121 = left, 1 = right.",format:"float",maximum:1,minimum:-1,title:"Pan",type:"number","x-display-type":"Float"},playSpeed:{default:1,description:"Playback speed multiplier (1.0 = normal).",format:"float",title:"Play Speed",type:"number","x-display-type":"Float"},value:{description:"Referenced sound (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"sound","x-display-type":"UUID"},volume:{default:1,description:"Playback volume [0..1].",format:"float",maximum:1,minimum:0,title:"Volume",type:"number","x-display-type":"Float"}},title:"Sound Reference",type:"object","x-category":"sound","x-requires":{allOf:["local_transform"]}},sphere_geometry:{description:"Sphere geometry.",properties:{offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the sphere (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Sphere Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},spline:{description:"Displays an editor-only spline in the 3D view.",properties:{color:{default:[1,1,1],description:"Display color of the curve.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},tension:{default:.5,description:"Catmull-Rom tension (only when type is Catmull-Rom).",format:"float",title:"Tension",type:"number","x-display-type":"Float"},type:{default:0,description:"Spline interpolation type.",format:"int32",minimum:0,oneOf:[{const:0,title:"Centripetal"},{const:1,title:"Chordal "},{const:2,title:"Catmullrom"}],title:"Type",type:"integer","x-display-type":"Unsigned Integer"}},title:"Spline",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},spot_light:{description:"Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff.",properties:{IESProfile:{description:"Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Ies Profile",type:"string","x-asset-ref":"texture","x-display-type":"UUID"},cutoff:{default:30,description:"Outer cone half-angle in degrees. Light intensity falls to zero outside this angle.",format:"float",title:"Cutoff",type:"number","x-display-type":"Float","x-unit":"deg"}},title:"Spot Light",type:"object","x-category":"lighting","x-requires":{allOf:["point_light"]}},tags:{description:"Free-form tags used to group and filter entities.",properties:{value:{description:"List of tags applied to this entity.",items:{type:"string","x-display-type":"String"},title:"Value",type:"array"}},title:"Tags",type:"object","x-category":"core"},vehicle_controller:{description:"Vehicle Controller parameters.",properties:{chassis:{description:"The chassis.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Chassis",type:"object","x-display-type":"Entity Reference"},frontLeftWheel:{description:"The front left wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Front Left Wheel",type:"object","x-display-type":"Entity Reference"},frontRightWheel:{description:"The front right wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Front Right Wheel",type:"object","x-display-type":"Entity Reference"},rearLeftWheel:{description:"The rear left wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Rear Left Wheel",type:"object","x-display-type":"Entity Reference"},rearRightWheel:{description:"The rear right wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Rear Right Wheel",type:"object","x-display-type":"Entity Reference"}},title:"Vehicle Controller",type:"object","x-category":"physics","x-requires":{allOf:["local_transform"]}},volume_filter:{description:"View filtering and display controls applied to the referenced volume.",properties:{applyGaussianFiltering:{default:!1,description:"Apply Gaussian smoothing when sampling voxels.",title:"Apply Gaussian Filtering",type:"boolean","x-display-type":"Boolean"},enable3D:{default:!0,description:"Whether this volume is visible in the 3D view.",title:"Enable3 D",type:"boolean","x-display-type":"Boolean"},enableMPR:{default:!0,description:"Whether this volume is visible in the MPR (multi-planar reconstruction) view.",title:"Enable Mpr",type:"boolean","x-display-type":"Boolean"},mprColor:{default:[1,1,1],description:"Tint applied to this volume's MPR/projection output.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Mpr Color",type:"array","x-display-type":"Vector3"},range:{default:[0,1],description:"Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Range",type:"array","x-display-type":"Vector2"},sampleUnfiltered:{default:!1,description:"Sample texels without hardware filtering (nearest).",title:"Sample Unfiltered",type:"boolean","x-display-type":"Boolean"}},title:"Volume Filter",type:"object","x-category":"rendering","x-requires":{allOf:["volume_ref"]}},volume_material_ref:{description:"Reference to the volume material used for shading and transfer functions.",properties:{value:{description:"Referenced volume material (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"volume_material","x-display-type":"UUID"}},title:"Volume Material Reference",type:"object","x-category":"rendering","x-requires":{allOf:["volume_ref"]}},volume_ref:{description:"Reference to a volumetric dataset stored as a 3D texture (voxels).",properties:{texture3dRef:{description:"Referenced 3D texture (UUID) containing the volume voxels.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Texture3d Ref",type:"string","x-asset-ref":"texture_3d","x-display-type":"UUID"}},title:"Volume Reference",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform","volume_material_ref"]}}},required:["euid"],type:"object"};import{jsx as ne,jsxs as Tt}from"react/jsx-runtime";var se=({name:e,hasLinkToReference:t=!1,className:i})=>{let a=Ze.properties[e],r=St[e],n=e==="*_geometry"?"box_geometry; capsule_geometry; cylinder_geometry; plane_geometry; sphere_geometry":e;if(!a||!r)return ne("span",{children:e});let{color:s}=r,c=e==="*_geometry"?"/references/entity-components#box_geometry":`/references/entity-components#${e}`;return Tt("span",{className:Nt("no-underline! inline-flex items-baseline gap-2 w-fit my-0 me-1","text-[90%] font-medium tracking-wide rounded-full whitespace-nowrap cursor-default","bg-current/10 border border-transparent has-[.link-to-ref:hover]:border-current/20 transition-colors",!t&&"pr-3",i),style:{color:s},children:[ne(Ne,{componentId:e,className:"h-5 text-4xs"}),ne("span",{className:"text-primary",children:a?.title}),t&&ne("a",{href:c,className:"link-to-ref px-1 mr-0.5 h-full text-xs text-current! rounded-full opacity-70 hover:opacity-100 hover:bg-ground/50 transition-all",children:ne(kt,{className:"fal fa-external-link-square text-sm"})})]})};import{entityComponents as Mt}from"@3dverse/design-tokens";import{clsx as Lt}from"clsx";import{twMerge as _t}from"tailwind-merge";function o(...e){return _t(Lt(e))}import{jsx as _,jsxs as K}from"react/jsx-runtime";function Et({allOf:e,oneOf:t,withAttributes:i,className:a}){return K("article",{className:o("relative w-fit flex flex-col flex-wrap my-4 border border-primary-alpha rounded-[1.5rem]",a),children:[_("div",{className:"absolute [writing-mode:vertical-rl] rotate-180 top-1/2 -left-3 -translate-x-1/2 -translate-y-1/2 text-[.6rem] font-medium text-tertiary tracking-wider opacity-60 uppercase",children:"Entity"}),_("div",{className:"flex flex-wrap gap-2 p-2",children:e?.map(r=>_(At,{name:r,withAttributes:i}))}),t&&K("div",{className:"flex gap-3 pl-4 p-2 border-t border-secondary-alpha",children:[K("div",{className:"shrink-0 mt-px text-3xs text-tertiary font-medium",children:[_("i",{className:"fal fa-plus mr-1"})," One of"]}),_("div",{className:"flex flex-wrap gap-2",children:t.map(r=>_(se,{name:r}))})]})]})}var At=({name:e,withAttributes:t})=>{if(t&&Object.keys(t).includes(e)){let{color:i}=Mt[e];return K("div",{className:"flex flex-col bg-(--entity-component-color)/5 rounded-[14px]",style:{"--entity-component-color":i},children:[_(se,{name:e,className:"w-full"}),_(Ut,{attributes:t[e]})]})}return _(se,{name:e})},Ut=({attributes:e})=>_("div",{className:"flex flex-col flex-wrap gap-1 p-2 pr-4 text-xs text-tertiary",children:Object.entries(e).map(([t,i])=>K("div",{className:"flex gap-1",children:[K("span",{className:"font-mono",children:[t,":"]}),_("span",{className:"font-mono",children:JSON.stringify(i)})]},t))});var Te={glowEffect:"d",glowEffectWide:"l"};import{jsx as qt}from"react/jsx-runtime";var Ot=({children:e,variant:t="default",className:i})=>qt("div",{className:o(Te.glowEffect,t==="wide"&&Te.glowEffectWide,i),children:e});import{Fragment as We,jsx as l,jsxs as T}from"react/jsx-runtime";var Vt=({items:e=[],connections:t=[],gridSize:i=40,cellSize:a=70,containerWidth:r=800,containerHeight:n=400,caption:s,animateOnScroll:c=!0,className:D})=>{let U=y=>({animationFillMode:"both",...c?{animationTimeline:"view(block)",animationRange:"entry 25% entry 100%"}:{animationDelay:y}}),g=(y,f)=>{let m=(y-f)*(a/2),u=(y+f)*(a/4);return{x:m,y:u}},b=r/2,x=n/2,p=()=>{let y=[],f=i/2;for(let m=-f;m<=f;m++){let u=g(-f,m),C=g(f,m);y.push(l("line",{x1:b+u.x,y1:x+u.y,x2:b+C.x,y2:x+C.y,stroke:"rgba(100, 150, 200, 0.4)",strokeWidth:"1"},`h-${m}`))}for(let m=-f;m<=f;m++){let u=g(m,-f),C=g(m,f);y.push(l("line",{x1:b+u.x,y1:x+u.y,x2:b+C.x,y2:x+C.y,stroke:"rgba(100, 150, 200, 0.4)",strokeWidth:"1"},`v-${m}`))}return y},v=(y,f,m)=>{let C=`arrow-${y}-${m}`;return l("marker",{id:C,markerWidth:10,markerHeight:10,refX:y==="end"?6:4,refY:10/2,orient:"auto",markerUnits:"userSpaceOnUse",children:l("polygon",{points:y==="end"?`0,0 10,${10/2} 0,10`:`10,0 0,${10/2} 10,10`,fill:f})})},h=()=>t.map((y,f)=>{let{from_x:m,from_y:u,to_x:C,to_y:F,via_x:G=m,via_y:H=u,arrow_start:fe,arrow_end:ie,color:O="#fbbf24",name:oe,showDebug:ue,isAnimated:ye=!1,animationDirection:ge="end"}=y,k=[],B=[],w=m,N=u;if(k.push(g(w,N)),w!==G){let d=G;B.push({from:{x:w,y:N},to:{x:d,y:N}}),w=d,k.push(g(w,N))}if(N!==H){let d=H;B.push({from:{x:w,y:N},to:{x:w,y:d}}),N=d,k.push(g(w,N))}if(w!==C){let d=C;B.push({from:{x:w,y:N},to:{x:d,y:N}}),w=d,k.push(g(w,N))}if(N!==F){let d=F;B.push({from:{x:w,y:N},to:{x:w,y:d}}),N=d,k.push(g(w,N))}let ae=B[0],Oe=0;B.forEach(d=>{let R=d.to.x-d.from.x,Z=d.to.y-d.from.y,W=Math.hypot(R,Z);W>Oe&&(Oe=W,ae=d)});let xe=g(ae.from.x,ae.from.y),he=g(ae.to.x,ae.to.y),pt=b+(xe.x+he.x)/2,dt=x+(xe.y+he.y)/2,ct=Math.atan2(he.y-xe.y,he.x-xe.x)*(180/Math.PI),mt=(d=>{let R=(d+180)%360-180;return R>90&&(R-=180),R<-90&&(R+=180),R})(ct),ft=k.map((d,R)=>{let Z=b+d.x,W=x+d.y;return R===0?`M ${Z},${W}`:`L ${Z},${W}`}).join(" "),qe=0;for(let d=1;d<k.length;d++){let R=k[d-1],Z=k[d],W=b+R.x,ht=x+R.y,bt=b+Z.x,vt=x+Z.y;qe+=Math.hypot(bt-W,vt-ht)}let Ve=Math.max(1.2,qe/150),Fe=`conn-path-${f}`,ut=`arrow-start-${f*2}`,yt=`arrow-end-${f*2+1}`,gt=()=>T("defs",{children:[fe&&v("start",O,f*2),ie&&v("end",O,f*2+1)]}),be=({reverse:d=!1,begin:R="0s"})=>T("g",{filter:"url(#conn-glow)",children:[l("ellipse",{cx:"5",cy:"0",rx:"4",ry:"2",fill:O,opacity:"0.8"}),l("animateMotion",{dur:`${Ve}s`,repeatCount:"indefinite",begin:R,keyPoints:d?"1;0":"0;1",keyTimes:"0;1",calcMode:"linear",rotate:"auto",children:l("mpath",{xlinkHref:`#${Fe}`})})]}),xt=()=>ye?ge==="both"?T(We,{children:[l(be,{reverse:!1,begin:"0s"}),l(be,{reverse:!0,begin:`${Ve/2}s`})]}):ge==="start"?l(be,{reverse:!0}):l(be,{reverse:!1}):null;return T("g",{className:"animate-appear-top cursor-default",style:U(".2s"),children:[l(gt,{}),l("path",{id:Fe,d:ft,stroke:O,strokeWidth:"2",strokeLinecap:"round",fill:"none",markerStart:fe?`url(#${ut})`:void 0,markerEnd:ie?`url(#${yt})`:void 0,style:y.style}),xt(),oe&&l("g",{transform:`translate(${pt}, ${dt}) rotate(${mt})`,children:l("text",{x:"12",y:"12",textAnchor:"middle",dominantBaseline:"middle",className:"text-sm font-bold fill-accent",children:oe})}),ue&&l(We,{children:k.map((d,R)=>l("circle",{cx:b+d.x,cy:x+d.y,r:"3",fill:R===0?"red":R===k.length-1?"green":"blue"},R))})]},f)}),S=()=>e.map((y,f)=>{let{x:m,y:u,width:C,height:F,color:G="#52548B",name:H,showDebug:fe,image:ie}=y,O=g(m,u),oe=g(m+C,u),ue=g(m+C,u-F),ye=g(m,u-F),ge=[[b+O.x,x+O.y],[b+oe.x,x+oe.y],[b+ue.x,x+ue.y],[b+ye.x,x+ye.y]].map(([B,w])=>`${B},${w}`).join(" "),k=g(m+C/2,u-F/2);return l("g",{className:"group animate-appear-top cursor-default",style:U(),children:T("g",{className:"drop-shadow-[0_9px_7px_var(--shadow-color)] hover:drop-shadow-[0_12px_10px_var(--shadow-color)] hover:[--translate:-8px] transition-transform duration-300",style:{"--shadow-color":`color-mix(in srgb, ${G} 10%, var(--color-bg-ground))`,translate:"0 var(--translate, -4px)"},children:[l("polygon",{points:ge,fill:G,strokeLinejoin:"round",className:"opacity-80 group-hover:opacity-100 transition-opacity duration-all duration-300"}),ie&&(()=>{let B=b+O.x+5,w=x+O.y-80;return l("image",{href:ie,x:B,y:w,width:"128px"})})(),H&&T("g",{transform:`translate(${b+k.x}, ${x+k.y})`,children:[l("rect",{x:-(H.length*4+8),y:-12,width:H.length*8+16,height:24,fill:"#181a59",fillOpacity:"0.8",rx:"4"}),l("text",{x:0,y:0,textAnchor:"middle",dominantBaseline:"middle",className:"text-base",fill:"white",children:H})]}),fe&&T("text",{x:b+k.x,y:x+k.y+20,textAnchor:"middle",fill:"white",fontSize:"10",opacity:"0.7",children:["(",m,", ",u,")"]})]})},f)});return T("figure",{className:o("m-0 w-full",D),role:"img","aria-label":s,children:[T("svg",{viewBox:`0 0 ${r} ${n}`,preserveAspectRatio:"xMidYMid meet",className:"w-full",children:[T("defs",{children:[T("filter",{id:"conn-glow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[l("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"}),T("feMerge",{children:[l("feMergeNode",{in:"blur"}),l("feMergeNode",{in:"SourceGraphic"})]})]}),T("mask",{id:"fadeMask",maskUnits:"objectBoundingBox",children:[T("radialGradient",{id:"fadeGradient",children:[l("stop",{offset:"40%",stopColor:"white"}),l("stop",{offset:"90%",stopColor:"black"})]}),l("rect",{width:"100%",height:"100%",fill:"url(#fadeGradient)"})]}),T("filter",{id:"text-backdrop-blur",x:"-200%",y:"-200%",width:"500%",height:"500%",children:[l("feGaussianBlur",{in:"BackgroundImage",stdDeviation:"20",result:"blurredBg"}),l("feFlood",{floodColor:"black",floodOpacity:"0.8",result:"bgColor"}),l("feComposite",{in:"bgColor",in2:"blurredBg",operator:"in",result:"coloredBlur"}),l("feComposite",{in:"coloredBlur",in2:"SourceGraphic",operator:"over",result:"final"})]})]}),l("rect",{width:r,height:n,fill:"transparent"}),l("g",{mask:"url(#fadeMask)",children:p()}),h(),S()]}),s&&l("figcaption",{className:"-translate-y-6 text-center text-sm text-tertiary text-balance",children:s})]})};import{jsx as z,jsxs as Le}from"react/jsx-runtime";var Ft=({style:e,className:t=""})=>Le("svg",{viewBox:"0 0 99 20",xmlns:"http://www.w3.org/2000/svg",style:e,className:t,children:[z("path",{fill:"var(--color-wordmark-prefix, var(--color-brand))",d:"M6.059 19.351c-.92733 0-1.79833-.1733-2.613-.52-.81467-.3553-1.521-.858-2.119-1.508-.589333-.65-1.018333-1.417-1.2869999-2.301L2.666 14.294c.25133.806.689 1.4257 1.313 1.859.624.4247 1.31733.6327 2.08.624.68467-.0087 1.287-.169 1.807-.481.52-.312.92733-.7323 1.222-1.261.29467-.5373.442-1.1527.442-1.846 0-1.04-.325-1.898-.975-2.574-.64133-.676-1.482-1.014-2.522-1.014-.29467 0-.598.04333-.91.13-.30333.08667-.58933.19933-.858.338L2.991 7.924l6.604-5.837.286.78h-9.1V.279999h11.258V2.867L6.553 8.145l-.026-.884c1.17867 0 2.20133.26433 3.068.793.8667.52 1.534 1.23067 2.002 2.132.4767.8927.715 1.8937.715 3.003 0 1.196-.2817 2.2577-.845 3.185-.5547.9273-1.3043 1.6553-2.249 2.184-.936.5287-1.989.793-3.159.793Zm15.4769.039c-1.3087 0-2.4397-.325-3.393-.975-.9447-.65-1.677-1.534-2.197-2.652-.5113-1.1267-.767-2.392-.767-3.796 0-1.4127.26-2.67367.78-3.783.52-1.118 1.2567-1.99767 2.21-2.639.962-.65 2.1017-.975 3.419-.975 1.326 0 2.4397.325 3.341.975.91.64133 1.5947 1.521 2.054 2.639.468 1.118.702 2.379.702 3.783s-.234 2.665-.702 3.783c-.468 1.118-1.157 2.0063-2.067 2.665-.91.65-2.0367.975-3.38.975Zm.377-2.457c.8927 0 1.6207-.2123 2.184-.637.5633-.4247.975-1.0097 1.235-1.755.26-.7453.39-1.6033.39-2.574 0-.9707-.1343-1.8287-.403-2.574-.26-.74533-.6673-1.326-1.222-1.742-.546-.416-1.2437-.624-2.093-.624-.9013 0-1.6423.221-2.223.663-.5807.442-1.014 1.03567-1.3 1.781-.2773.7453-.416 1.5773-.416 2.496 0 .9273.1387 1.768.416 2.522.286.7453.7107 1.339 1.274 1.781.572.442 1.2913.663 2.158.663ZM25.7219 19V8.899h-.312V.279999h2.73V19h-2.418Z"}),z("path",{fill:"var(--color-wordmark, var(--color-content-secondary))",d:"m35.8333 19-5.096-14.04h2.743l3.731 10.634 3.731-10.634h2.743L38.5893 19h-2.756Zm16.1734.39c-1.3953 0-2.6217-.3033-3.679-.91-1.0487-.6153-1.8677-1.469-2.457-2.561-.5807-1.1007-.871-2.3747-.871-3.822 0-1.534.286-2.86433.858-3.991.5807-1.12667 1.3867-1.99767 2.418-2.613 1.0313-.61533 2.2317-.923 3.601-.923 1.43 0 2.6477.33367 3.653 1.001 1.0053.65867 1.755 1.599 2.249 2.821.5027 1.222.702 2.6737.598 4.355h-2.717v-.988c-.0173-1.6293-.3293-2.834-.936-3.614-.598-.78-1.5123-1.17-2.743-1.17-1.3607 0-2.3833.429-3.068 1.287-.6847.858-1.027 2.0973-1.027 3.718 0 1.5427.3423 2.7387 1.027 3.588.6847.8407 1.6727 1.261 2.964 1.261.8493 0 1.5817-.1907 2.197-.572.624-.39 1.1093-.9447 1.456-1.664l2.665.845c-.546 1.2567-1.3737 2.2317-2.483 2.925-1.1093.6847-2.3443 1.027-3.705 1.027Zm-5.005-6.643v-2.119h10.023v2.119h-10.023ZM61.5534 19V4.96h2.418v3.406l-.338-.442c.1733-.45067.3986-.86233.676-1.235.2773-.38133.598-.69333.962-.936.3553-.26.7496-.45933 1.183-.598.442-.14733.8926-.234 1.352-.26.4593-.03467.9013-.013 1.326.065v2.548c-.4594-.12133-.9707-.156-1.534-.104-.5547.052-1.066.22967-1.534.533-.442.286-.793.63267-1.053 1.04-.2514.40733-.4334.86233-.546 1.365-.1127.494-.169 1.0183-.169 1.573V19h-2.743Zm15.1758.377c-1.7073 0-3.0983-.377-4.173-1.131-1.0746-.754-1.7333-1.8157-1.976-3.185l2.782-.429c.1734.728.572 1.3043 1.196 1.729.6327.416 1.417.624 2.353.624.8494 0 1.5124-.1733 1.989-.52.4854-.3467.728-.8233.728-1.43 0-.3553-.0866-.6413-.26-.858-.1646-.2253-.5156-.4377-1.053-.637-.5373-.1993-1.3563-.4463-2.457-.741-1.2046-.312-2.1623-.6457-2.873-1.001-.702-.364-1.2046-.7843-1.508-1.261-.2946-.4853-.442-1.07033-.442-1.755 0-.84933.2254-1.59033.676-2.223.4507-.63267 1.0834-1.12233 1.898-1.469.8234-.34667 1.7854-.52 2.886-.52 1.0747 0 2.0324.169 2.873.507.8407.338 1.521.819 2.041 1.443.52.61533.832 1.339.936 2.171l-2.782.507c-.0953-.676-.4116-1.209-.949-1.599-.5373-.39-1.235-.60233-2.093-.637-.8233-.03467-1.4906.104-2.002.416-.5113.30333-.767.72367-.767 1.261 0 .312.0954.57633.286.793.1994.21667.5807.42467 1.144.624.5634.1993 1.3954.4377 2.496.715 1.1787.3033 2.1147.6413 2.808 1.014.6934.364 1.1874.8017 1.482 1.313.3034.5027.455 1.1137.455 1.833 0 1.3867-.507 2.4743-1.521 3.263-1.0053.7887-2.3963 1.183-4.173 1.183Zm15.0575.013c-1.3953 0-2.6217-.3033-3.679-.91-1.0487-.6153-1.8677-1.469-2.457-2.561-.5807-1.1007-.871-2.3747-.871-3.822 0-1.534.286-2.86433.858-3.991.5807-1.12667 1.3867-1.99767 2.418-2.613 1.0313-.61533 2.2317-.923 3.601-.923 1.43 0 2.6477.33367 3.653 1.001 1.0053.65867 1.755 1.599 2.249 2.821.5027 1.222.702 2.6737.598 4.355h-2.717v-.988c-.0173-1.6293-.3293-2.834-.936-3.614-.598-.78-1.5123-1.17-2.743-1.17-1.3607 0-2.3833.429-3.068 1.287-.6847.858-1.027 2.0973-1.027 3.718 0 1.5427.3423 2.7387 1.027 3.588.6847.8407 1.6727 1.261 2.964 1.261.8493 0 1.5817-.1907 2.197-.572.624-.39 1.1093-.9447 1.456-1.664l2.665.845c-.546 1.2567-1.3737 2.2317-2.483 2.925-1.1093.6847-2.3443 1.027-3.705 1.027Zm-5.005-6.643v-2.119h10.023v2.119h-10.023Z"})]}),_e=({style:e,className:t=""})=>Le("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e,className:t,children:[z("path",{d:"M5.28808 19.7527L14.1837 28.4509L14.1837 39.9995L5.28302 31.294L5.28808 19.7527Z",fill:"var(--logo-color, #8d670b)"}),z("path",{d:"M33.9949 19.7527L25.0993 28.4509L25.0993 39.9995L34 31.294L33.9949 19.7527Z",fill:"var(--logo-color, #8d670b)"}),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M29.3294 13.2721L34.2049 19.747V31.294L24.9911 19.747V24.8481H24.9904V24.8488L14.4968 24.8488V19.7477H14.4968V19.747L5.28302 31.294L5.28302 19.7527L10.1585 13.28V9.17384C10.1585 3.05795 14.9512 0 19.744 0C22.106 0 24.468 0.742731 26.2563 2.22819C28.0966 3.75685 29.3294 6.07206 29.3294 9.17384L29.3294 13.2721L29.3294 13.2721ZM19.744 5.75545C21.2537 5.75545 22.7634 6.83514 22.7634 8.99452L22.7634 13.2748L16.7245 13.2773V8.99452C16.7245 7.40326 17.5444 6.3983 18.5799 5.97965C18.9496 5.83019 19.3468 5.75545 19.744 5.75545ZM16.7245 13.2773V13.28L22.7634 13.28L16.7245 13.28V13.2773H16.7245ZM19.7439 29.9788L14.4968 24.8488L24.9911 24.8488L19.7439 29.9788Z",fill:"url(#logo-rocket-gradient)"}),z("defs",{children:Le("linearGradient",{id:"logo-rocket-gradient",x1:"12.0755",y1:"1.88679",x2:"31.3208",y2:"32.4528",gradientUnits:"userSpaceOnUse",children:[z("stop",{"stop-color":"var(--logo-top-color, #f0c732)"}),z("stop",{offset:"1","stop-color":"var(--logo-bottom-color, #ffc800)"})]})})]});var Me={spinnerLogo:"s",circle:"e",loaderRotate:"r"};import{jsx as Xe,jsxs as jt}from"react/jsx-runtime";var $t=()=>jt("div",{className:Me.spinnerLogo,children:[Xe(_e,{}),Xe("span",{className:Me.circle})]});import{assets as Zt}from"@3dverse/design-tokens";import{jsx as le,jsxs as Ht}from"react/jsx-runtime";var Gt="relative inline-flex items-center justify-center after:content-[''] after:absolute after:left-1/2 after:top-1/2 after:w-[125%] after:h-0.5 after:rounded-[1px] after:bg-accent after:-translate-x-1/2 after:-translate-y-1/2 after:-rotate-45 after:origin-center after:pointer-events-none";function P({variant:e,crossed:t,className:i,style:a}){return e==="shadowCast"?Ht("div",{role:"img",className:"relative text-tertiary",style:a,children:[le(P,{className:o("relative z-10",i)}),le(P,{className:o("absolute top-0 left-0 translate-x-[40%] translate-y-[15%] scale-94 text-underground/80",i),style:{filter:"drop-shadow(3px 6px 30px color-mix(in oklab, var(--color-content-tertiary) 80%, transparent))"}})]}):t?le("span",{className:Gt,style:a,"aria-hidden":!0,children:le("i",{"data-slot":"icon",className:i})}):le("i",{"data-slot":"icon",className:i,style:a,"aria-hidden":!0})}import{Fragment as Yt,jsx as pe}from"react/jsx-runtime";var Wt=({assetId:e,variant:t,weight:i,className:a=""})=>{let{color:r,fontAwesome:n}=Zt[e],s=t==="file"?`
2
2
  fa-fw
3
3
  relative inline-block aspect-[1/1.15] px-[.9em] pt-[.3em] inline-flex justify-center items-center rounded-sm rounded-tr-[20%] [corner-top-right-shape:bevel] overflow-hidden
4
4
  bg-radial-[at_50%_65%] from-(--asset-color)/30 via-(--asset-color)/15 to-(--asset-color)/25 to-90%
5
5
  border border-(--asset-color)/15
6
6
  after:content-[''] after:absolute after:top-0 after:right-0 after:w-[20%] after:h-[20%] after:bg-(--asset-color) after:opacity-50
7
- ${r}
8
- `:r;return n?e==="scene"?le(Wt,{variant:t,className:s,style:{color:a,"--asset-color":a}}):le(we,{icon:n,weight:i,className:s,style:{color:a,"--asset-color":a}}):le(Xt,{children:e})},Wt=({variant:e,className:t="",style:i})=>le("svg",{viewBox:"0 0 16 16",className:`inline-block self-center align-middle box-content ${e==="file"?"w-[1em] px-[.4em]! h-[calc(1em*2.1)]":"w-[1em] h-[1em]"} ${t}`,fill:"currentColor",style:i,"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",children:le("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.89258 3.68555C7.96094 3.66016 8.03711 3.66016 8.10742 3.68555L12.1387 5.16406L8 6.78906L3.86133 5.16211L7.89258 3.68555ZM12.1699 10.8262L8.3125 12.2402V12.2383V7.33594L12.375 5.74023V10.5332C12.375 10.6641 12.293 10.7812 12.1699 10.8262ZM8.32227 3.09766C8.11523 3.02148 7.88672 3.02148 7.67773 3.09766L3.61523 4.58789C3.24609 4.72461 3 5.07617 3 5.46875V10.5332C3 10.9258 3.24609 11.2773 3.61523 11.4121L7.67773 12.9023C7.88477 12.9785 8.11328 12.9785 8.32227 12.9023L12.3848 11.4141C12.7539 11.2773 13 10.9258 13 10.5332V5.46875C13 5.07422 12.7539 4.72266 12.3848 4.58789L8.32227 3.09766Z"})});import{jsx as Ke}from"react/jsx-runtime";var Yt=({size:e,className:t})=>{let i=e?`fa-${e}`:void 0;return Ke("svg",{viewBox:"0 0 16 16",height:"1em",className:`svg-inline--fa ${i??""} ${t??""}`,fill:"currentColor",color:"var(--asset-color-scene)","aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",children:Ke("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.89258 3.68555C7.96094 3.66016 8.03711 3.66016 8.10742 3.68555L12.1387 5.16406L8 6.78906L3.86133 5.16211L7.89258 3.68555ZM12.1699 10.8262L8.3125 12.2402V12.2383V7.33594L12.375 5.74023V10.5332C12.375 10.6641 12.293 10.7812 12.1699 10.8262ZM8.32227 3.09766C8.11523 3.02148 7.88672 3.02148 7.67773 3.09766L3.61523 4.58789C3.24609 4.72461 3 5.07617 3 5.46875V10.5332C3 10.9258 3.24609 11.2773 3.61523 11.4121L7.67773 12.9023C7.88477 12.9785 8.11328 12.9785 8.32227 12.9023L12.3848 11.4141C12.7539 11.2773 13 10.9258 13 10.5332V5.46875C13 5.07422 12.7539 4.72266 12.3848 4.58789L8.32227 3.09766Z"})})};import{Accordion as pe}from"@base-ui/react/accordion";import{jsx as Q}from"react/jsx-runtime";function Jt({...e}){return Q(pe.Root,{"data-slot":"accordion",...e})}function Kt({className:e,...t}){return Q(pe.Item,{"data-slot":"accordion-item",className:o("group/accordion-item",e),...t})}function Qt({className:e,children:t,...i}){return Q(pe.Header,{className:"flex",children:Q(pe.Trigger,{"data-slot":"accordion-trigger",className:o("flex flex-1 items-center justify-between gap-3 py-2 text-left text-sm outline-none transition-colors cursor-pointer","text-secondary hover:text-primary","focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring","disabled:pointer-events-none disabled:opacity-50",e),...i,children:t})})}function ei({className:e,children:t,...i}){return Q(pe.Panel,{"data-slot":"accordion-content",className:o("h-(--accordion-panel-height) overflow-hidden text-sm transition-[height] duration-200 ease-out","data-starting-style:h-0 data-ending-style:h-0"),...i,children:Q("div",{className:o("pb-3",e),children:t})})}import{Drawer as E}from"@base-ui/react/drawer";import{Button as ti}from"@base-ui/react/button";import{cva as ii}from"class-variance-authority";import{jsx as ri}from"react/jsx-runtime";var oi=ii(`
7
+ ${a}
8
+ `:a;return n?e==="scene"?pe(Xt,{variant:t,className:s,style:{color:r,"--asset-color":r}}):pe(P,{className:o(n,s),style:{color:r,"--asset-color":r}}):pe(Yt,{children:e})},Xt=({variant:e,className:t="",style:i})=>pe("svg",{viewBox:"0 0 16 16",className:`inline-block self-center align-middle box-content ${e==="file"?"w-[1em] px-[.4em]! h-[calc(1em*2.1)]":"w-[1em] h-[1em]"} ${t}`,fill:"currentColor",style:i,"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",children:pe("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.89258 3.68555C7.96094 3.66016 8.03711 3.66016 8.10742 3.68555L12.1387 5.16406L8 6.78906L3.86133 5.16211L7.89258 3.68555ZM12.1699 10.8262L8.3125 12.2402V12.2383V7.33594L12.375 5.74023V10.5332C12.375 10.6641 12.293 10.7812 12.1699 10.8262ZM8.32227 3.09766C8.11523 3.02148 7.88672 3.02148 7.67773 3.09766L3.61523 4.58789C3.24609 4.72461 3 5.07617 3 5.46875V10.5332C3 10.9258 3.24609 11.2773 3.61523 11.4121L7.67773 12.9023C7.88477 12.9785 8.11328 12.9785 8.32227 12.9023L12.3848 11.4141C12.7539 11.2773 13 10.9258 13 10.5332V5.46875C13 5.07422 12.7539 4.72266 12.3848 4.58789L8.32227 3.09766Z"})});import{jsx as Ye}from"react/jsx-runtime";var Jt=({size:e,className:t})=>{let i=e?`fa-${e}`:void 0;return Ye("svg",{viewBox:"0 0 16 16",height:"1em",className:`svg-inline--fa ${i??""} ${t??""}`,fill:"currentColor",color:"var(--asset-color-scene)","aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",children:Ye("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.89258 3.68555C7.96094 3.66016 8.03711 3.66016 8.10742 3.68555L12.1387 5.16406L8 6.78906L3.86133 5.16211L7.89258 3.68555ZM12.1699 10.8262L8.3125 12.2402V12.2383V7.33594L12.375 5.74023V10.5332C12.375 10.6641 12.293 10.7812 12.1699 10.8262ZM8.32227 3.09766C8.11523 3.02148 7.88672 3.02148 7.67773 3.09766L3.61523 4.58789C3.24609 4.72461 3 5.07617 3 5.46875V10.5332C3 10.9258 3.24609 11.2773 3.61523 11.4121L7.67773 12.9023C7.88477 12.9785 8.11328 12.9785 8.32227 12.9023L12.3848 11.4141C12.7539 11.2773 13 10.9258 13 10.5332V5.46875C13 5.07422 12.7539 4.72266 12.3848 4.58789L8.32227 3.09766Z"})})};import{Accordion as de}from"@base-ui/react/accordion";import{jsx as Q}from"react/jsx-runtime";function Kt({...e}){return Q(de.Root,{"data-slot":"accordion",...e})}function Qt({className:e,...t}){return Q(de.Item,{"data-slot":"accordion-item",className:o("group/accordion-item",e),...t})}function ei({className:e,children:t,...i}){return Q(de.Header,{className:"flex",children:Q(de.Trigger,{"data-slot":"accordion-trigger",className:o("flex flex-1 items-center justify-between gap-3 py-2 text-left text-sm outline-none transition-colors cursor-pointer","text-secondary hover:text-primary","focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring","disabled:pointer-events-none disabled:opacity-50",e),...i,children:t})})}function ti({className:e,children:t,...i}){return Q(de.Panel,{"data-slot":"accordion-content",className:o("h-(--accordion-panel-height) overflow-hidden text-sm transition-[height] duration-200 ease-out","data-starting-style:h-0 data-ending-style:h-0"),...i,children:Q("div",{className:o("pb-3",e),children:t})})}import{Drawer as E}from"@base-ui/react/drawer";import{Button as ii}from"@base-ui/react/button";import{cva as oi}from"class-variance-authority";import{jsx as ri}from"react/jsx-runtime";var ai=oi(`
9
9
  group/button inline-flex shrink-0 items-center justify-center
10
10
  text-sm font-normal whitespace-nowrap select-none
11
11
  bg-clip-padding outline-none transition-all
@@ -13,5 +13,5 @@ var X={container:"t",inner:"o",innerShape:"i",shape:"a",shapeAlt:"n"};import{jsx
13
13
  aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40
14
14
  [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 cursor-pointer
15
15
 
16
- `,{variants:{variant:{default:"bg-primary text-(--color-bg-ground) hover:bg-primary/80",accent:"bg-accent text-black hover:text-black hover:bg-accent/90",outline:"text-primary border border-(--color-content-primary)/60 hover:border-(--color-content-primary)/80","outline-accent":"text-accent border border-accent/60 hover:border-accent/80",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",ghost:"text-secondary hover:text-primary active:text-primary","ghost-shadow":"relative text-white/80 before:content-[''] before:absolute before:inset-0 before:scale-150 before:bg-black before:opacity-50 before:rounded-full before:blur-lg before:z-[-1] [text-shadow:0_0_1px_black/40]",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline",overlay:o("relative text-white hover:text-white/90","before:absolute before:inset-y-0.5 before:inset-x-0.5 before:rounded-full before:z-[-1]","before:bg-black/25 before:opacity-0 before:transition-opacity before:duration-500 before:ease-out"),"overlay-outline":o("border border-white/40","relative text-white hover:text-white/90","before:absolute before:inset-y-0.5 before:inset-x-0.5 before:rounded-full before:z-[-1]","before:bg-black/25 before:opacity-0 before:transition-opacity before:duration-500 before:ease-out")},size:{"3xs":"min-h-4 gap-1 px-1 text-4xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3","2xs":"min-h-5 gap-1 px-1 text-3xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",xs:"min-h-6 gap-1 px-2 text-2xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"min-h-7 gap-1 px-2.5 text-xs rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",md:"min-h-8 gap-1.5 px-3 text-sm **:data-[slot=icon]:text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",lg:"min-h-9 text-md gap-1.5 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xl:"min-h-12 text-lg gap-1.5 px-2.5 font-medium tracking-wide has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2","icon-xs":"text-3xs size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-md":"text-base size-8","icon-lg":"text-xl size-9","icon-xl":"text-xl size-10"},round:{true:"rounded-full",false:"rounded-xl [corner-shape:squircle]"},active:{true:"text-accent hover:text-accent",false:""}},defaultVariants:{variant:"default",size:"md"}});function M({as:e,className:t,variant:i="default",size:r="md",round:a=!1,active:n=!1,children:s,...p}){return ri(!e||e==="button"?ti:e,{"data-slot":"button",className:o(oi({variant:i,size:r,round:a,active:n}),t),"data-active":n,...p,children:s})}import{jsx as C,jsxs as Pe}from"react/jsx-runtime";function ai({swipeDirection:e="down",closeOnBlur:t=!0,...i}){return C(E.Root,{"data-slot":"bottom-sheet",swipeDirection:e,disablePointerDismissal:!t,...i})}function ni({...e}){return C(E.Trigger,{"data-slot":"bottom-sheet-trigger",...e})}function si({...e}){return C(E.Portal,{"data-slot":"bottom-sheet-portal",...e})}function li({...e}){return C(E.Close,{"data-slot":"bottom-sheet-close",...e})}function pi({className:e,...t}){return C(E.Backdrop,{"data-slot":"bottom-sheet-overlay",className:o("fixed inset-0 isolate z-10100 bg-ground/40 backdrop-blur-xs transition-opacity duration-100 ease-out data-swiping:transition-none","data-open:animate-in data-open:fade-in-0 data-open:duration-100","data-closed:not-data-swipe-dismiss:animate-out data-closed:not-data-swipe-dismiss:fade-out-0 data-closed:not-data-swipe-dismiss:duration-100 data-closed:not-data-swipe-dismiss:fill-mode-forwards",e),...t,style:{opacity:"calc(1 - var(--drawer-swipe-progress, 0))"}})}function di({className:e,...t}){return C(E.Viewport,{"data-slot":"bottom-sheet-viewport",className:o("fixed inset-x-0 bottom-0 z-10110 flex justify-center outline-none",e),...t})}function ci({className:e,children:t,showHandle:i=!0,showCloseButton:r=!1,showOverlay:a=!0,...n}){return Pe(si,{children:[a&&C(pi,{}),C(di,{children:Pe(E.Popup,{"data-slot":"bottom-sheet-content",className:o("relative flex w-full flex-col rounded-t-2xl bg-ground/80 backdrop-blur-lg p-4 pt-2 pb-[calc(1rem+env(safe-area-inset-bottom))] text-sm text-popover-foreground ring-1 ring-foreground/10 outline-none","data-open:animate-in data-open:slide-in-from-bottom data-open:duration-200 data-closed:animate-out data-closed:slide-out-to-bottom data-closed:duration-150 data-closed:fill-mode-forwards",e),...n,children:[i&&C("div",{className:"-mt-px mb-px flex shrink-0 justify-center touch-none select-none","aria-hidden":!0,children:C("div",{className:"h-1 w-8 rounded-full bg-(--color-content-secondary)/50"})}),t,r&&Pe(E.Close,{"data-slot":"bottom-sheet-close",render:C(M,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[C(I,{className:"fas fa-xmark"}),C("span",{className:"sr-only",children:"Close"})]}),C("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-full h-[30vh] bg-ground/50 backdrop-blur-lg"})]})})]})}function mi({className:e,...t}){return C("div",{"data-slot":"bottom-sheet-header",className:o("flex flex-col gap-2",e),...t})}function fi({className:e,showCloseButton:t=!1,children:i,...r}){return Pe("div",{"data-slot":"bottom-sheet-footer",className:o("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 pb-[calc(1rem+env(safe-area-inset-bottom))] sm:flex-row sm:justify-end",e),...r,children:[i,t&&C(E.Close,{render:C(M,{variant:"outline"}),children:"Close"})]})}function ui({className:e,...t}){return C(E.Title,{"data-slot":"bottom-sheet-title",className:o("font-heading uppercase text-4xs leading-none font-medium text-tertiary pl-3 mt-1",e),...t})}function yi({className:e,...t}){return C(E.Description,{"data-slot":"bottom-sheet-description",className:o("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}import{jsx as xi,jsxs as Qe}from"react/jsx-runtime";function gi({as:e,className:t,variant:i="ghost",size:r="md",orientation:a="vertical",round:n=!1,icon:s,rightComponent:p,isEnabled:v=!0,children:U,...g}){return Qe(M,{...g,as:e,variant:i,size:r,round:n,className:o(t,v?"":"opacity-75"),children:[Qe("div",{className:o("grow flex py-2",a==="inline"?"items-center gap-2":"gap-1.5 flex-col justify-between items-start"),children:[s&&xi(I,{className:s,crossed:!v}),U]}),p]})}import{jsx as Ue,jsxs as wi}from"react/jsx-runtime";var hi=({children:e,size:t="sm",className:i})=>{let r=t==="2xs"?"text-2xs":t==="3xs"?"text-3xs":"text-sm",a=["3xs","2xs"].includes(t)&&"**:data-[slot=data-item-label]:py-1.5";return Ue("fieldset",{className:o("flex gap-1 items-center justify-center w-full px-2.5","text-secondary",r,a,i),children:e})},bi=({children:e,icon:t,className:i})=>wi("div",{"data-slot":"data-item-label",className:o("grow flex py-2 items-center gap-2",i),children:[t&&Ue(I,{className:o("text-4xs text-tertiary",t)}),e]}),vi=({children:e,className:t})=>Ue("div",{className:o("",t),children:e});import{Dialog as q}from"@base-ui/react/dialog";import{jsx as L,jsxs as Ie}from"react/jsx-runtime";function Pi({...e}){return L(q.Root,{"data-slot":"dialog",...e})}function Ii({...e}){return L(q.Trigger,{"data-slot":"dialog-trigger",...e})}function Ci({...e}){return L(q.Portal,{"data-slot":"dialog-portal",...e})}function Ri({className:e,...t}){return L(q.Backdrop,{"data-slot":"dialog-overlay",className:o("fixed inset-0 isolate z-10100 bg-ground/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function Di({className:e,children:t,showCloseButton:i=!1,...r}){return Ie(Ci,{children:[L(Ri,{}),Ie(q.Popup,{"data-slot":"dialog-content",className:o("fixed top-1/2 left-1/2 z-10110 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r,children:[t,i&&Ie(q.Close,{"data-slot":"dialog-close",render:L(M,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[L(I,{className:"fal fa-xmark"}),L("span",{className:"sr-only",children:"Close"})]})]})]})}function Si({className:e,...t}){return L("div",{"data-slot":"dialog-header",className:o("flex flex-col gap-2",e),...t})}function ki({className:e,showCloseButton:t=!1,children:i,...r}){return Ie("div",{"data-slot":"dialog-footer",className:o("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...r,children:[i,t&&L(q.Close,{render:L(M,{variant:"outline"}),children:"Close"})]})}function Ni({className:e,...t}){return L(q.Title,{"data-slot":"dialog-title",className:o("font-heading text-base leading-none font-medium",e),...t})}function Ti({className:e,...t}){return L(q.Description,{"data-slot":"dialog-description",className:o("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}import{jsx as _i}from"react/jsx-runtime";var Li=({className:e,isActive:t})=>_i("span",{className:o("relative block w-2 h-2 rounded-full bg-current z-1 pointer-events-none","before:content-[''] before:block before:w-4 before:h-4 before:absolute before:-inset-1 before:rounded-full before:bg-inherit before:opacity-10",t?"text-positive before:animate-pulse":"text-white/40 before:animate-none",e)});import{jsx as Ce,jsxs as et}from"react/jsx-runtime";var Mi=({icon:e,title:t,description:i,variant:r="default",className:a})=>et("div",{className:o("flex flex-col items-center gap-4 text-center px-3 py-7 text-balance",r==="glow"&&"glow-effect",a),children:[e&&Ce("div",{className:"flex shrink-0 items-center justify-center",children:Ce(I,{className:o(e,"text-2xl text-tertiary",r==="glow"&&"drop-shadow-[0_12px_6px_var(--color-bg-underground)]")})}),et("div",{className:"flex flex-col gap-0.5",children:[t&&Ce("span",{className:"text-md",children:t}),i&&Ce("span",{className:"mt-px text-3xs text-tertiary font-normal",children:i})]})]});import{jsx as Ai}from"react/jsx-runtime";var Ei=({children:e,shadow:t="none",className:i,as:r,...a})=>Ai(r||"div",{className:o("flex items-center bg-ground/50 backdrop-blur-sm border border-white/20 rounded-full","pointer-events-auto",t==="lg"&&"shadow-[0_20px_15px_-12px_rgba(0,0,0,.35)]",i),...a,children:e});import{jsx as Oi}from"react/jsx-runtime";var Ui=({children:e,className:t})=>Oi("kbd",{className:o("inline-flex items-center justify-center min-w-4 h-4 px-1 rounded border border-current/30 text-[0.65rem] leading-none font-normal uppercase opacity-70",t),children:e});import{jsx as qi}from"react/jsx-runtime";function Bi({className:e,...t}){return qi(I,{className:o("fal fa-spinner size-6 animate-spin text-primary",e),...t})}import{Menu as V}from"@base-ui/react/menu";import{jsx as A}from"react/jsx-runtime";function Vi({...e}){return A(V.Root,{"data-slot":"menu",...e})}function Fi({...e}){return A(V.Trigger,{"data-slot":"menu-trigger",...e})}function tt({...e}){return A(V.Portal,{"data-slot":"menu-portal",...e})}function it({className:e,sideOffset:t=8,align:i="end",...r}){return A(V.Positioner,{"data-slot":"menu-positioner",sideOffset:t,align:i,className:o("z-10110 outline-none",e),...r})}function zi({className:e,children:t,...i}){return A(tt,{children:A(it,{children:A(V.Popup,{"data-slot":"menu-content",className:o("min-w-40 origin-(--transform-origin) bg-ground/80 backdrop-blur-lg p-1 text-xs outline-none","rounded-xl [corner-shape:squircle]","data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:t})})})}function $i({className:e,...t}){return A(V.Item,{"data-slot":"menu-item",className:o("flex cursor-pointer items-center gap-3 rounded-sm px-2 py-1 text-sm outline-none select-none","data-highlighted:bg-primary/10 data-highlighted:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50","transition-colors duration-200 ease-in-out","[&_svg]:pointer-events-none [&_svg]:shrink-0 **:data-[slot=icon]:text-3xs **:data-[slot=icon]:w-3",e),...t})}function ji({className:e,...t}){return A(V.Separator,{"data-slot":"menu-separator",className:o("-mx-1 my-1 h-px bg-foreground/10",e),...t})}function Gi({...e}){return A(V.Group,{"data-slot":"menu-group",...e})}function Hi({className:e,...t}){return A(V.GroupLabel,{"data-slot":"menu-group-label",className:o("px-2.5 py-1.5 text-xs text-tertiary",e),...t})}import{Dialog as de}from"@base-ui/react/dialog";import{jsx as ce,jsxs as ot}from"react/jsx-runtime";function Zi({open:e,onClose:t,closeIcon:i,fullScreen:r,disableBackdropClick:a,disableEscapeKeyDown:n,backdropBg:s="var(--color-underground)",className:p,style:v,children:U,...g}){return ce(de.Root,{open:e,modal:!0,disablePointerDismissal:a,onOpenChange:(b,x)=>{b||n&&x.reason==="escape-key"||t?.()},children:ot(de.Portal,{container:document.getElementById("app-container"),children:[ce(de.Backdrop,{className:"fixed inset-0",style:{background:s,opacity:.9,zIndex:v?.zIndex}}),ot(de.Popup,{className:o("fixed inset-0 flex items-center justify-center",!r&&"p-4",p),style:{...v,width:r?"100%":void 0,height:r?"100%":void 0},"aria-labelledby":g["aria-labelledby"],children:[i&&ce(de.Close,{render:ce(M,{"aria-label":"Close",variant:"ghost",size:"icon-md",className:"absolute top-4 right-4"}),children:ce(I,{className:"fal fa-xmark"})}),U]})]})})}import{jsx as Oe}from"react/jsx-runtime";var Wi=({children:e,className:t,ref:i,...r})=>Oe("aside",{ref:i,"data-slot":"panel",className:o("border border-primary/50 bg-ground/80 backdrop-blur-sm shadow-[0_10px_20px_-8px_rgba(0,0,0,.6)]","rounded-[1rem] [corner-shape:squircle]","starting:opacity-0 starting:translate-y-4 starting:scale-95 transition-all duration-350 ease-in-out","pointer-events-auto",t),...r,children:e}),Xi=({children:e,className:t,...i})=>Oe("header",{className:o("flex px-3 py-2",t),...i,children:e}),Yi=({children:e,className:t,...i})=>Oe("h2",{className:o("text-[.7rem] text-secondary font-normal tracking-wider uppercase",t),...i,children:e});import{Popover as Y}from"@base-ui/react/popover";import{jsx as $}from"react/jsx-runtime";function Ji({...e}){return $(Y.Root,{"data-slot":"popover",...e})}function Ki({...e}){return $(Y.Trigger,{"data-slot":"popover-trigger",...e})}function Qi({className:e,align:t="center",alignOffset:i=0,side:r="bottom",sideOffset:a=4,shadow:n,anchor:s,...p}){return $(Y.Portal,{children:$(Y.Positioner,{align:t,alignOffset:i,side:r,sideOffset:a,anchor:s,className:"z-10110",children:$(Y.Popup,{"data-slot":"popover-content",className:o("border border-primary/50 bg-ground/80 backdrop-blur-sm ","rounded-[1rem] [corner-shape:squircle]","flex w-72 origin-(--transform-origin) flex-col gap-2.5 p-2.5 text-sm text-popover-foreground outline-hidden duration-100","data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n==="lg"?"shadow-[0_20px_15px_-12px_rgba(0,0,0,.35)]":"shadow-[0_10px_20px_-8px_rgba(0,0,0,.6)]",e),...p})})})}function eo({className:e,...t}){return $("div",{"data-slot":"popover-header",className:o("flex flex-col gap-0.5 text-sm",e),...t})}function to({className:e,...t}){return $(Y.Title,{"data-slot":"popover-title",className:o("font-medium",e),...t})}function io({className:e,...t}){return $(Y.Description,{"data-slot":"popover-description",className:o("text-muted-foreground",e),...t})}import{jsx as ro}from"react/jsx-runtime";var oo=({direction:e="horizontal",children:t,className:i,ref:r})=>ro("div",{ref:r,className:o(e==="horizontal"?"overflow-x-auto":"overflow-y-auto",e==="horizontal"?"[-webkit-mask-image:linear-gradient(to_right,transparent,black_16px,black_calc(100%-16px),transparent)]":"[-webkit-mask-image:linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)]",e==="horizontal"?"mask-[linear-gradient(to_right,transparent,black_16px,black_calc(100%-16px),transparent)]":"mask-[linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)]",i),children:t});import{Switch as rt}from"@base-ui/react/switch";import{jsx as at}from"react/jsx-runtime";function ao({className:e,...t}){return at(rt.Root,{"data-slot":"switch",className:o("inline-flex h-5 w-8 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-white/20 p-0.5 transition-colors outline-none","focus-visible:ring-[3px] focus-visible:ring-ring/50","disabled:pointer-events-none disabled:opacity-50","data-checked:bg-accent",e),...t,children:at(rt.Thumb,{"data-slot":"switch-thumb",className:"block size-4 rounded-full bg-white shadow-sm transition-transform data-checked:translate-x-3"})})}import{jsx as so}from"react/jsx-runtime";var no=({children:e,className:t,as:i})=>so(i||"div",{className:o("flex rounded-full bg-black/10 backdrop-blur-sm filter-[drop-shadow(2px_4px_8px_rgb(0_0_0/0.6))]",t),children:e});import{forwardRef as lo}from"react";import{jsx as co}from"react/jsx-runtime";var po=lo(function({fullWidth:t,fullHeight:i,vertical:r,vCenter:a,hCenter:n,opposite:s,gapRight:p,gapBottom:v,className:U,style:g,...b},x){let d=!!r,w=p??v,h=d?n?"center":void 0:a?"center":void 0,S=s?"space-between":d?a?"center":void 0:n?"center":void 0;return co("div",{ref:x,className:o("flex",d?"flex-col":"flex-row",t&&"w-full",i&&"h-full",U),style:{alignItems:h,justifyContent:S,gap:w!==void 0?`${w}rem`:void 0,...g},...b})});import{useRef as Be}from"react";import{Tabs as ee}from"@base-ui/react/tabs";import{cva as mo}from"class-variance-authority";import{jsx as j,jsxs as dt}from"react/jsx-runtime";function fo({className:e,orientation:t="horizontal",...i}){return j(ee.Root,{"data-slot":"tabs","data-orientation":t,className:o("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...i})}var pt=mo("group/tabs-list relative inline-flex w-fit items-center justify-center rounded-lg text-secondary group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",segment:"text-white/85 border border-white/40 rounded-full",line:"gap-1 bg-transparent"},size:{"2xs":"p-[2px] text-2xs group-data-[orientation=horizontal]/tabs:h-6",xs:"p-[2px] text-xs group-data-[orientation=horizontal]/tabs:h-6",sm:"p-[2px] text-sm group-data-[orientation=horizontal]/tabs:h-7",md:"p-[2px] text-md group-data-[orientation=horizontal]/tabs:h-8"}},defaultVariants:{variant:"default",size:"md"}}),uo=6;function yo(e){let t=e.getBoundingClientRect();return Array.from(e.querySelectorAll('[data-slot="tabs-trigger"]')).map(i=>{let r=i.getBoundingClientRect();return{el:i,left:r.left-t.left,width:r.width}})}function nt(e,t){let i=t[0],r=t[t.length-1],a=Math.min(Math.max(e,i.left),r.left);for(let n=0;n<t.length-1;n++){let s=t[n],p=t[n+1];if(a>=s.left&&a<=p.left){let v=(a-s.left)/(p.left-s.left||1);return{left:a,width:s.width+v*(p.width-s.width)}}}return{left:a,width:a===i.left?i.width:r.width}}function go(e,t){return t.reduce((i,r)=>{let a=r.left+r.width/2,n=i.left+i.width/2;return Math.abs(e-a)<Math.abs(e-n)?r:i})}var xo=[255,255,255,.85],ho=[0,0,0,1];function bo(e){let t=Math.min(Math.max(e,0),1),[i,r,a,n]=xo.map((s,p)=>s+(ho[p]-s)*t);return`rgba(${i}, ${r}, ${a}, ${n})`}function vo(e,t,i){let r=Math.min(e+t,i.left+i.width)-Math.max(e,i.left);return Math.max(0,r)/i.width}function st(e,t,i){for(let r of i)r.el.style.color=bo(vo(e,t,r))}function lt(e){for(let t of e)t.el.style.transition="",t.el.style.color=""}function wo({swipeable:e=!1,variant:t="default",...i}){return e&&t==="segment"?j(Io,{...i}):j(Po,{variant:t,...i})}function Po({className:e,variant:t="default",size:i="md",children:r,...a}){return dt(ee.List,{"data-slot":"tabs-list","data-variant":t,"data-size":i,className:o(pt({variant:t,size:i}),e),...a,children:[r,t==="segment"&&j(qe,{})]})}function Io({className:e,size:t="md",children:i,...r}){let a=Be(null),n=Be(null),s=Be(null),p=()=>a.current?.querySelector('[data-slot="tabs-indicator"]'),v=()=>{let d=p();d&&(d.style.transition="",d.style.translate="",d.style.width="")},U=()=>{let d=s.current;d&&(d.indicator.removeEventListener("transitionend",d.handler),clearTimeout(d.timeoutId),s.current=null)},g=d=>{if(d.pointerType!=="touch")return;U();let w=a.current,h=w?.querySelector('[data-slot="tabs-trigger"][data-active]');if(!w||!h)return;let S=yo(w),y=S.find(f=>f.el===h);y&&(n.current={pointerId:d.pointerId,startX:d.clientX,isDragging:!1,activeLeft:y.left,activeEl:h,triggers:S})},b=d=>{let w=n.current;if(!w||d.pointerId!==w.pointerId)return;let h=d.clientX-w.startX;if(!w.isDragging){if(Math.abs(h)<uo)return;w.isDragging=!0,a.current?.setPointerCapture(d.pointerId);let m=p();m&&(m.style.transition="none");for(let u of w.triggers)u.el.style.transition="none"}d.preventDefault();let S=p();if(!S)return;let{left:y,width:f}=nt(w.activeLeft+h,w.triggers);S.style.translate=`${y}px`,S.style.width=`${f}px`,st(y,f,w.triggers)},x=(d,w)=>{let h=n.current;if(!h||d.pointerId!==h.pointerId||(n.current=null,!h.isDragging))return;a.current?.releasePointerCapture(d.pointerId);let S=p();if(!w||!S){v(),lt(h.triggers);return}let y=d.clientX-h.startX,{left:f,width:m}=nt(h.activeLeft+y,h.triggers),u=go(f+m/2,h.triggers);S.style.transition="",S.style.translate=`${u.left}px`,S.style.width=`${u.width}px`;for(let G of h.triggers)G.el.style.transition="";st(u.left,u.width,h.triggers),u.el!==h.activeEl&&u.el.click();let R=()=>{v(),lt(h.triggers)};S.addEventListener("transitionend",R,{once:!0});let F=window.setTimeout(()=>{s.current=null,R()},200);s.current={indicator:S,handler:R,timeoutId:F}};return dt(ee.List,{ref:a,"data-slot":"tabs-list","data-variant":"segment","data-size":t,className:o(pt({variant:"segment",size:t}),"touch-pan-y",e),onPointerDown:g,onPointerMove:b,onPointerUp:d=>x(d,!0),onPointerCancel:d=>x(d,!1),...r,children:[i,j(qe,{})]})}function qe({className:e,...t}){return j(ee.Indicator,{"data-slot":"tabs-indicator",className:o("absolute z-[-1] h-[calc(100%-4px)]! rounded-full bg-white transition-[translate,width] duration-200 ease-in-out","group-data-[orientation=horizontal]/tabs:top-0.5 group-data-[orientation=horizontal]/tabs:left-0 group-data-[orientation=horizontal]/tabs:h-full group-data-[orientation=horizontal]/tabs:w-(--active-tab-width) group-data-[orientation=horizontal]/tabs:translate-x-(--active-tab-left)","group-data-[orientation=vertical]/tabs:top-0.5 group-data-[orientation=vertical]/tabs:left-0 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:h-(--active-tab-height) group-data-[orientation=vertical]/tabs:translate-y-(--active-tab-top)",e),...t})}function Co({className:e,...t}){return j(ee.Tab,{"data-slot":"tabs-trigger",className:o("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 px-1.5 py-0.5","text-inherit rounded-md border border-transparent whitespace-nowrap transition-all","group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start","hover:text-primary focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring","disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-data-[variant=default]/tabs-list:text-tertiary [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","cursor-pointer","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:text-primary","group-data-[variant=default]/tabs-list:data-active:bg-background","group-data-[variant=segment]/tabs-list:data-active:bg-transparent group-data-[variant=segment]/tabs-list:data-active:text-black","group-data-[size=sm]/tabs-list:gap-1 group-data-[size=sm]/tabs-list:px-1.5 group-data-[size=sm]/tabs-list:py-0 group-data-[size=sm]/tabs-list:text-xs","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}function Ro({className:e,...t}){return j(ee.Panel,{"data-slot":"tabs-content",className:o("flex-1 text-sm outline-none",e),...t})}import{jsx as ko}from"react/jsx-runtime";var Do={title1:{className:"text-2xl font-semibold",as:"h1"},title2:{className:"text-xl font-semibold",as:"h2"},body1:{className:"text-base",as:"p"},body2:{className:"text-sm",as:"p"},body3:{className:"text-xs",as:"p"}};function So({as:e,format:t,color:i,align:r,className:a,...n}){let s=t?Do[t]:void 0,p=e??s?.as??"p";return ko(p,{className:o(s?.className,i==="secondary"&&"text-tertiary",r==="left"&&"text-left",r==="center"&&"text-center",r==="right"&&"text-right",a),...n})}import{Tooltip as J}from"@base-ui/react/tooltip";import{jsx as te,jsxs as Mo}from"react/jsx-runtime";function No({delay:e=0,...t}){return te(J.Provider,{"data-slot":"tooltip-provider",delay:e,...t})}function To({...e}){return te(J.Root,{"data-slot":"tooltip",...e})}function Lo({...e}){return te(J.Trigger,{"data-slot":"tooltip-trigger",...e})}function _o({className:e,side:t="top",sideOffset:i=4,align:r="center",alignOffset:a=0,children:n,...s}){return te(J.Portal,{children:te(J.Positioner,{align:r,alignOffset:a,side:t,sideOffset:i,className:"isolate z-50",children:Mo(J.Popup,{"data-slot":"tooltip-content",className:o("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s,children:[n,te(J.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}export{Jt as Accordion,ei as AccordionContent,Kt as AccordionItem,Qt as AccordionTrigger,Ct as AppIcon,Zt as AssetIcon,ai as BottomSheet,li as BottomSheetClose,ci as BottomSheetContent,yi as BottomSheetDescription,fi as BottomSheetFooter,mi as BottomSheetHeader,ui as BottomSheetTitle,ni as BottomSheetTrigger,M as Button,gi as ButtonTile,hi as DataItem,bi as DataItemLabel,vi as DataItemValue,Pi as Dialog,Di as DialogContent,Ti as DialogDescription,ki as DialogFooter,Si as DialogHeader,Ni as DialogTitle,Ii as DialogTrigger,Li as DotPing,Mi as EmptyState,se as EntityComponentBadge,Te as EntityComponentIcon,Et as EntityRecipe,Bt as GlowEffect,I as Icon,Yt as IconAssetScene,Ei as IslandPanel,Vt as IsometricSchema,Ui as Kbd,Bi as Loader,Ft as Logo3dverse,Me as Logo3dverseRocket,Vi as Menu,zi as MenuContent,Gi as MenuGroup,Hi as MenuGroupLabel,$i as MenuItem,tt as MenuPortal,it as MenuPositioner,ji as MenuSeparator,Fi as MenuTrigger,Zi as Modal,no as OverlayContainer,Wi as Panel,Xi as PanelHeader,Yi as PanelTitle,Ji as Popover,Qi as PopoverContent,io as PopoverDescription,eo as PopoverHeader,to as PopoverTitle,Ki as PopoverTrigger,oo as ScrollableArea,$t as Spinner,po as Stack,ao as Switch,fo as Tabs,Ro as TabsContent,qe as TabsIndicator,wo as TabsList,Co as TabsTrigger,So as Text,To as Tooltip,_o as TooltipContent,No as TooltipProvider,Lo as TooltipTrigger,ae as appIconShapes,o as cn};
16
+ `,{variants:{variant:{default:"bg-primary text-(--color-bg-ground) hover:bg-primary/80",accent:"bg-accent text-black hover:text-black hover:bg-accent/90",outline:"text-primary border border-(--color-content-primary)/60 hover:border-(--color-content-primary)/80","outline-accent":"text-accent border border-accent/60 hover:border-accent/80",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",ghost:"text-secondary hover:text-primary active:text-primary","ghost-shadow":"relative text-white/80 before:content-[''] before:absolute before:inset-0 before:scale-150 before:bg-black before:opacity-50 before:rounded-full before:blur-lg before:z-[-1] [text-shadow:0_0_1px_black/40]",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline",overlay:o("relative text-white hover:text-white/90","before:absolute before:inset-y-0.5 before:inset-x-0.5 before:rounded-full before:z-[-1]","before:bg-black/25 before:opacity-0 before:transition-opacity before:duration-500 before:ease-out"),"overlay-outline":o("border border-white/40","relative text-white hover:text-white/90","before:absolute before:inset-y-0.5 before:inset-x-0.5 before:rounded-full before:z-[-1]","before:bg-black/25 before:opacity-0 before:transition-opacity before:duration-500 before:ease-out")},size:{"3xs":"min-h-4 gap-1 px-1 text-4xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3","2xs":"min-h-5 gap-1 px-1 text-3xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",xs:"min-h-6 gap-1 px-2 text-2xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"min-h-7 gap-1 px-2.5 text-xs rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",md:"min-h-8 gap-1.5 px-3 text-sm **:data-[slot=icon]:text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",lg:"min-h-9 text-md gap-1.5 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xl:"min-h-12 text-lg gap-1.5 px-2.5 font-medium tracking-wide has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2","icon-xs":"text-3xs size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-md":"text-base size-8","icon-lg":"text-xl size-9","icon-xl":"text-xl size-10"},round:{true:"rounded-full",false:"rounded-xl [corner-shape:squircle]"},active:{true:"text-accent hover:text-accent",false:""}},defaultVariants:{variant:"default",size:"md"}});function M({as:e,className:t,variant:i="default",size:a="md",round:r=!1,active:n=!1,children:s,...c}){return ri(!e||e==="button"?ii:e,{"data-slot":"button",className:o(ai({variant:i,size:a,round:r,active:n}),t),"data-active":n,...c,children:s})}import{jsx as I,jsxs as Pe}from"react/jsx-runtime";function ni({swipeDirection:e="down",closeOnBlur:t=!0,...i}){return I(E.Root,{"data-slot":"bottom-sheet",swipeDirection:e,disablePointerDismissal:!t,...i})}function si({...e}){return I(E.Trigger,{"data-slot":"bottom-sheet-trigger",...e})}function li({...e}){return I(E.Portal,{"data-slot":"bottom-sheet-portal",...e})}function pi({...e}){return I(E.Close,{"data-slot":"bottom-sheet-close",...e})}function di({className:e,...t}){return I(E.Backdrop,{"data-slot":"bottom-sheet-overlay",className:o("fixed inset-0 isolate z-10100 bg-ground/40 backdrop-blur-xs transition-opacity duration-100 ease-out data-swiping:transition-none","data-open:animate-in data-open:fade-in-0 data-open:duration-100","data-closed:not-data-swipe-dismiss:animate-out data-closed:not-data-swipe-dismiss:fade-out-0 data-closed:not-data-swipe-dismiss:duration-100 data-closed:not-data-swipe-dismiss:fill-mode-forwards",e),...t,style:{opacity:"calc(1 - var(--drawer-swipe-progress, 0))"}})}function ci({className:e,...t}){return I(E.Viewport,{"data-slot":"bottom-sheet-viewport",className:o("fixed inset-x-0 bottom-0 z-10110 flex justify-center outline-none",e),...t})}function mi({className:e,children:t,showHandle:i=!0,showCloseButton:a=!1,showOverlay:r=!0,...n}){return Pe(li,{children:[r&&I(di,{}),I(ci,{children:Pe(E.Popup,{"data-slot":"bottom-sheet-content",className:o("relative flex w-full flex-col rounded-t-2xl bg-ground/80 backdrop-blur-lg p-4 pt-2 pb-[calc(1rem+env(safe-area-inset-bottom))] text-sm text-popover-foreground ring-1 ring-foreground/10 outline-none","data-open:animate-in data-open:slide-in-from-bottom data-open:duration-200 data-closed:animate-out data-closed:slide-out-to-bottom data-closed:duration-150 data-closed:fill-mode-forwards",e),...n,children:[i&&I("div",{className:"-mt-px mb-px flex shrink-0 justify-center touch-none select-none","aria-hidden":!0,children:I("div",{className:"h-1 w-8 rounded-full bg-(--color-content-secondary)/50"})}),t,a&&Pe(E.Close,{"data-slot":"bottom-sheet-close",render:I(M,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[I(P,{className:"fas fa-xmark"}),I("span",{className:"sr-only",children:"Close"})]}),I("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-full h-[30vh] bg-ground/50 backdrop-blur-lg"})]})})]})}function fi({className:e,...t}){return I("div",{"data-slot":"bottom-sheet-header",className:o("flex flex-col gap-2",e),...t})}function ui({className:e,showCloseButton:t=!1,children:i,...a}){return Pe("div",{"data-slot":"bottom-sheet-footer",className:o("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 pb-[calc(1rem+env(safe-area-inset-bottom))] sm:flex-row sm:justify-end",e),...a,children:[i,t&&I(E.Close,{render:I(M,{variant:"outline"}),children:"Close"})]})}function yi({className:e,...t}){return I(E.Title,{"data-slot":"bottom-sheet-title",className:o("font-heading uppercase text-4xs leading-none font-medium text-tertiary pl-3 mt-1",e),...t})}function gi({className:e,...t}){return I(E.Description,{"data-slot":"bottom-sheet-description",className:o("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}import{jsx as hi,jsxs as Je}from"react/jsx-runtime";function xi({as:e,className:t,variant:i="ghost",size:a="md",orientation:r="vertical",round:n=!1,icon:s,rightComponent:c,isEnabled:D=!0,children:U,...g}){return Je(M,{...g,as:e,variant:i,size:a,round:n,className:o(t,D?"":"opacity-75"),children:[Je("div",{className:o("grow flex py-2",r==="inline"?"items-center gap-2":"gap-1.5 flex-col justify-between items-start"),children:[s&&hi(P,{className:s,crossed:!D}),U]}),c]})}import{jsx as Ee,jsxs as Pi}from"react/jsx-runtime";var bi=({children:e,size:t="sm",className:i})=>{let a=t==="2xs"?"text-2xs":t==="3xs"?"text-3xs":"text-sm",r=["3xs","2xs"].includes(t)&&"**:data-[slot=data-item-label]:py-1.5";return Ee("fieldset",{className:o("flex gap-1 items-center justify-center w-full px-2.5","text-secondary",a,r,i),children:e})},vi=({children:e,icon:t,className:i})=>Pi("div",{"data-slot":"data-item-label",className:o("grow flex py-2 items-center gap-2",i),children:[t&&Ee(P,{className:o("text-4xs text-tertiary",t)}),e]}),wi=({children:e,className:t})=>Ee("div",{className:o("",t),children:e});import{Dialog as q}from"@base-ui/react/dialog";import{jsx as L,jsxs as Ie}from"react/jsx-runtime";function Ii({...e}){return L(q.Root,{"data-slot":"dialog",...e})}function Ci({...e}){return L(q.Trigger,{"data-slot":"dialog-trigger",...e})}function Ri({...e}){return L(q.Portal,{"data-slot":"dialog-portal",...e})}function Di({className:e,...t}){return L(q.Backdrop,{"data-slot":"dialog-overlay",className:o("fixed inset-0 isolate z-10100 bg-ground/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function Si({className:e,children:t,showCloseButton:i=!1,...a}){return Ie(Ri,{children:[L(Di,{}),Ie(q.Popup,{"data-slot":"dialog-content",className:o("fixed top-1/2 left-1/2 z-10110 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...a,children:[t,i&&Ie(q.Close,{"data-slot":"dialog-close",render:L(M,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[L(P,{className:"fal fa-xmark"}),L("span",{className:"sr-only",children:"Close"})]})]})]})}function ki({className:e,...t}){return L("div",{"data-slot":"dialog-header",className:o("flex flex-col gap-2",e),...t})}function Ni({className:e,showCloseButton:t=!1,children:i,...a}){return Ie("div",{"data-slot":"dialog-footer",className:o("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...a,children:[i,t&&L(q.Close,{render:L(M,{variant:"outline"}),children:"Close"})]})}function Ti({className:e,...t}){return L(q.Title,{"data-slot":"dialog-title",className:o("font-heading text-base leading-none font-medium",e),...t})}function Li({className:e,...t}){return L(q.Description,{"data-slot":"dialog-description",className:o("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}import{jsx as Mi}from"react/jsx-runtime";var _i=({className:e,isActive:t})=>Mi("span",{className:o("relative block w-2 h-2 rounded-full bg-current z-1 pointer-events-none","before:content-[''] before:block before:w-4 before:h-4 before:absolute before:-inset-1 before:rounded-full before:bg-inherit before:opacity-10",t?"text-positive before:animate-pulse":"text-white/40 before:animate-none",e)});import{jsx as Ce,jsxs as Ke}from"react/jsx-runtime";var Ei=({icon:e,title:t,description:i,variant:a="default",className:r})=>Ke("div",{className:o("flex flex-col items-center gap-4 text-center px-3 py-7 text-balance",a==="glow"&&"glow-effect",r),children:[e&&Ce("div",{className:"flex shrink-0 items-center justify-center",children:Ce(P,{className:o(e,"text-2xl text-tertiary",a==="glow"&&"drop-shadow-[0_12px_6px_var(--color-bg-underground)]")})}),Ke("div",{className:"flex flex-col gap-0.5",children:[t&&Ce("span",{className:"text-md",children:t}),i&&Ce("span",{className:"mt-px text-3xs text-tertiary font-normal",children:i})]})]});import{jsx as Ui}from"react/jsx-runtime";var Ai=({children:e,shadow:t="none",className:i,as:a,...r})=>Ui(a||"div",{className:o("flex items-center bg-ground/50 backdrop-blur-sm border border-white/20 rounded-full","pointer-events-auto",t==="lg"&&"shadow-[0_20px_15px_-12px_rgba(0,0,0,.35)]",i),...r,children:e});import{jsx as Oi}from"react/jsx-runtime";var Bi=({children:e,className:t})=>Oi("kbd",{className:o("inline-flex items-center justify-center min-w-4 h-4 px-1 rounded border border-current/30 text-[0.65rem] leading-none font-normal uppercase opacity-70",t),children:e});import{jsx as Vi}from"react/jsx-runtime";function qi({className:e,...t}){return Vi(P,{className:o("fal fa-spinner size-6 animate-spin text-primary",e),...t})}import{Menu as V}from"@base-ui/react/menu";import{jsx as A}from"react/jsx-runtime";function Fi({...e}){return A(V.Root,{"data-slot":"menu",...e})}function zi({...e}){return A(V.Trigger,{"data-slot":"menu-trigger",...e})}function Qe({...e}){return A(V.Portal,{"data-slot":"menu-portal",...e})}function et({className:e,sideOffset:t=8,align:i="end",...a}){return A(V.Positioner,{"data-slot":"menu-positioner",sideOffset:t,align:i,className:o("z-10110 outline-none",e),...a})}function $i({className:e,children:t,...i}){return A(Qe,{children:A(et,{children:A(V.Popup,{"data-slot":"menu-content",className:o("min-w-40 origin-(--transform-origin) bg-ground/80 backdrop-blur-lg p-1 text-xs outline-none","rounded-xl [corner-shape:squircle]","data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:t})})})}function ji({className:e,...t}){return A(V.Item,{"data-slot":"menu-item",className:o("flex cursor-pointer items-center gap-3 rounded-sm px-2 py-1 text-sm outline-none select-none","data-highlighted:bg-primary/10 data-highlighted:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50","transition-colors duration-200 ease-in-out","[&_svg]:pointer-events-none [&_svg]:shrink-0 **:data-[slot=icon]:text-3xs **:data-[slot=icon]:w-3",e),...t})}function Gi({className:e,...t}){return A(V.Separator,{"data-slot":"menu-separator",className:o("-mx-1 my-1 h-px bg-foreground/10",e),...t})}function Hi({...e}){return A(V.Group,{"data-slot":"menu-group",...e})}function Zi({className:e,...t}){return A(V.GroupLabel,{"data-slot":"menu-group-label",className:o("px-2.5 py-1.5 text-xs text-tertiary",e),...t})}import{Dialog as ce}from"@base-ui/react/dialog";import{jsx as me,jsxs as tt}from"react/jsx-runtime";function Wi({open:e,onClose:t,closeIcon:i,fullScreen:a,disableBackdropClick:r,disableEscapeKeyDown:n,backdropBg:s="var(--color-underground)",className:c,style:D,children:U,...g}){return me(ce.Root,{open:e,modal:!0,disablePointerDismissal:r,onOpenChange:(b,x)=>{b||n&&x.reason==="escape-key"||t?.()},children:tt(ce.Portal,{container:document.getElementById("app-container"),children:[me(ce.Backdrop,{className:"fixed inset-0",style:{background:s,opacity:.9,zIndex:D?.zIndex}}),tt(ce.Popup,{className:o("fixed inset-0 flex items-center justify-center",!a&&"p-4",c),style:{...D,width:a?"100%":void 0,height:a?"100%":void 0},"aria-labelledby":g["aria-labelledby"],children:[i&&me(ce.Close,{render:me(M,{"aria-label":"Close",variant:"ghost",size:"icon-md",className:"absolute top-4 right-4"}),children:me(P,{className:"fal fa-xmark"})}),U]})]})})}import{jsx as Ae}from"react/jsx-runtime";var Xi=({children:e,className:t,ref:i,...a})=>Ae("aside",{ref:i,"data-slot":"panel",className:o("border border-primary/50 bg-ground/80 backdrop-blur-sm shadow-[0_10px_20px_-8px_rgba(0,0,0,.6)]","rounded-[1rem] [corner-shape:squircle]","starting:opacity-0 starting:translate-y-4 starting:scale-95 transition-all duration-350 ease-in-out","pointer-events-auto",t),...a,children:e}),Yi=({children:e,className:t,...i})=>Ae("header",{className:o("flex px-3 py-2",t),...i,children:e}),Ji=({children:e,className:t,...i})=>Ae("h2",{className:o("text-[.7rem] text-secondary font-normal tracking-wider uppercase",t),...i,children:e});import{Popover as Y}from"@base-ui/react/popover";import{jsx as $}from"react/jsx-runtime";function Ki({...e}){return $(Y.Root,{"data-slot":"popover",...e})}function Qi({...e}){return $(Y.Trigger,{"data-slot":"popover-trigger",...e})}function eo({className:e,align:t="center",alignOffset:i=0,side:a="bottom",sideOffset:r=4,shadow:n,anchor:s,...c}){return $(Y.Portal,{children:$(Y.Positioner,{align:t,alignOffset:i,side:a,sideOffset:r,anchor:s,className:"z-10110",children:$(Y.Popup,{"data-slot":"popover-content",className:o("border border-primary/50 bg-ground/80 backdrop-blur-sm ","rounded-[1rem] [corner-shape:squircle]","flex w-72 origin-(--transform-origin) flex-col gap-2.5 p-2.5 text-sm text-popover-foreground outline-hidden duration-100","data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n==="lg"?"shadow-[0_20px_15px_-12px_rgba(0,0,0,.35)]":"shadow-[0_10px_20px_-8px_rgba(0,0,0,.6)]",e),...c})})})}function to({className:e,...t}){return $("div",{"data-slot":"popover-header",className:o("flex flex-col gap-0.5 text-sm",e),...t})}function io({className:e,...t}){return $(Y.Title,{"data-slot":"popover-title",className:o("font-medium",e),...t})}function oo({className:e,...t}){return $(Y.Description,{"data-slot":"popover-description",className:o("text-muted-foreground",e),...t})}import{jsx as ro}from"react/jsx-runtime";var ao=({direction:e="horizontal",children:t,className:i,ref:a})=>ro("div",{ref:a,className:o(e==="horizontal"?"overflow-x-auto":"overflow-y-auto",e==="horizontal"?"[-webkit-mask-image:linear-gradient(to_right,transparent,black_16px,black_calc(100%-16px),transparent)]":"[-webkit-mask-image:linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)]",e==="horizontal"?"mask-[linear-gradient(to_right,transparent,black_16px,black_calc(100%-16px),transparent)]":"mask-[linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)]",i),children:t});import{Switch as it}from"@base-ui/react/switch";import{jsx as ot}from"react/jsx-runtime";function no({className:e,...t}){return ot(it.Root,{"data-slot":"switch",className:o("inline-flex h-5 w-8 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-white/20 p-0.5 transition-colors outline-none","focus-visible:ring-[3px] focus-visible:ring-ring/50","disabled:pointer-events-none disabled:opacity-50","data-checked:bg-accent",e),...t,children:ot(it.Thumb,{"data-slot":"switch-thumb",className:"block size-4 rounded-full bg-white shadow-sm transition-transform data-checked:translate-x-3"})})}import{jsx as lo}from"react/jsx-runtime";var so=({children:e,className:t,as:i})=>lo(i||"div",{className:o("flex rounded-full bg-black/10 backdrop-blur-sm filter-[drop-shadow(2px_4px_8px_rgb(0_0_0/0.6))]",t),children:e});import{forwardRef as po}from"react";import{jsx as mo}from"react/jsx-runtime";var co=po(function({fullWidth:t,fullHeight:i,vertical:a,vCenter:r,hCenter:n,opposite:s,gapRight:c,gapBottom:D,className:U,style:g,...b},x){let p=!!a,v=c??D,h=p?n?"center":void 0:r?"center":void 0,S=s?"space-between":p?r?"center":void 0:n?"center":void 0;return mo("div",{ref:x,className:o("flex",p?"flex-col":"flex-row",t&&"w-full",i&&"h-full",U),style:{alignItems:h,justifyContent:S,gap:v!==void 0?`${v}rem`:void 0,...g},...b})});import{useRef as Ue}from"react";import{Tabs as ee}from"@base-ui/react/tabs";import{cva as fo}from"class-variance-authority";import{jsx as j,jsxs as lt}from"react/jsx-runtime";function uo({className:e,orientation:t="horizontal",...i}){return j(ee.Root,{"data-slot":"tabs","data-orientation":t,className:o("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...i})}var st=fo("group/tabs-list relative inline-flex w-fit items-center justify-center rounded-lg text-secondary group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",segment:"text-white/85 border border-white/40 rounded-full",line:"gap-1 bg-transparent"},size:{"2xs":"p-[2px] text-2xs group-data-[orientation=horizontal]/tabs:h-6",xs:"p-[2px] text-xs group-data-[orientation=horizontal]/tabs:h-6",sm:"p-[2px] text-sm group-data-[orientation=horizontal]/tabs:h-7",md:"p-[2px] text-md group-data-[orientation=horizontal]/tabs:h-8"}},defaultVariants:{variant:"default",size:"md"}}),yo=6;function go(e){let t=e.getBoundingClientRect();return Array.from(e.querySelectorAll('[data-slot="tabs-trigger"]')).map(i=>{let a=i.getBoundingClientRect();return{el:i,left:a.left-t.left,width:a.width}})}function at(e,t){let i=t[0],a=t[t.length-1],r=Math.min(Math.max(e,i.left),a.left);for(let n=0;n<t.length-1;n++){let s=t[n],c=t[n+1];if(r>=s.left&&r<=c.left){let D=(r-s.left)/(c.left-s.left||1);return{left:r,width:s.width+D*(c.width-s.width)}}}return{left:r,width:r===i.left?i.width:a.width}}function xo(e,t){return t.reduce((i,a)=>{let r=a.left+a.width/2,n=i.left+i.width/2;return Math.abs(e-r)<Math.abs(e-n)?a:i})}var ho=[255,255,255,.85],bo=[0,0,0,1];function vo(e){let t=Math.min(Math.max(e,0),1),[i,a,r,n]=ho.map((s,c)=>s+(bo[c]-s)*t);return`rgba(${i}, ${a}, ${r}, ${n})`}function wo(e,t,i){let a=Math.min(e+t,i.left+i.width)-Math.max(e,i.left);return Math.max(0,a)/i.width}function rt(e,t,i){for(let a of i)a.el.style.color=vo(wo(e,t,a))}function nt(e){for(let t of e)t.el.style.transition="",t.el.style.color=""}function Po({swipeable:e=!1,variant:t="default",...i}){return e&&t==="segment"?j(Co,{...i}):j(Io,{variant:t,...i})}function Io({className:e,variant:t="default",size:i="md",children:a,...r}){return lt(ee.List,{"data-slot":"tabs-list","data-variant":t,"data-size":i,className:o(st({variant:t,size:i}),e),...r,children:[a,t==="segment"&&j(Be,{})]})}function Co({className:e,size:t="md",children:i,...a}){let r=Ue(null),n=Ue(null),s=Ue(null),c=()=>r.current?.querySelector('[data-slot="tabs-indicator"]'),D=()=>{let p=c();p&&(p.style.transition="",p.style.translate="",p.style.width="")},U=()=>{let p=s.current;p&&(p.indicator.removeEventListener("transitionend",p.handler),clearTimeout(p.timeoutId),s.current=null)},g=p=>{if(p.pointerType!=="touch")return;U();let v=r.current,h=v?.querySelector('[data-slot="tabs-trigger"][data-active]');if(!v||!h)return;let S=go(v),y=S.find(f=>f.el===h);y&&(n.current={pointerId:p.pointerId,startX:p.clientX,isDragging:!1,activeLeft:y.left,activeEl:h,triggers:S})},b=p=>{let v=n.current;if(!v||p.pointerId!==v.pointerId)return;let h=p.clientX-v.startX;if(!v.isDragging){if(Math.abs(h)<yo)return;v.isDragging=!0,r.current?.setPointerCapture(p.pointerId);let m=c();m&&(m.style.transition="none");for(let u of v.triggers)u.el.style.transition="none"}p.preventDefault();let S=c();if(!S)return;let{left:y,width:f}=at(v.activeLeft+h,v.triggers);S.style.translate=`${y}px`,S.style.width=`${f}px`,rt(y,f,v.triggers)},x=(p,v)=>{let h=n.current;if(!h||p.pointerId!==h.pointerId||(n.current=null,!h.isDragging))return;r.current?.releasePointerCapture(p.pointerId);let S=c();if(!v||!S){D(),nt(h.triggers);return}let y=p.clientX-h.startX,{left:f,width:m}=at(h.activeLeft+y,h.triggers),u=xo(f+m/2,h.triggers);S.style.transition="",S.style.translate=`${u.left}px`,S.style.width=`${u.width}px`;for(let G of h.triggers)G.el.style.transition="";rt(u.left,u.width,h.triggers),u.el!==h.activeEl&&u.el.click();let C=()=>{D(),nt(h.triggers)};S.addEventListener("transitionend",C,{once:!0});let F=window.setTimeout(()=>{s.current=null,C()},200);s.current={indicator:S,handler:C,timeoutId:F}};return lt(ee.List,{ref:r,"data-slot":"tabs-list","data-variant":"segment","data-size":t,className:o(st({variant:"segment",size:t}),"touch-pan-y",e),onPointerDown:g,onPointerMove:b,onPointerUp:p=>x(p,!0),onPointerCancel:p=>x(p,!1),...a,children:[i,j(Be,{})]})}function Be({className:e,...t}){return j(ee.Indicator,{"data-slot":"tabs-indicator",className:o("absolute z-[-1] h-[calc(100%-4px)]! rounded-full bg-white transition-[translate,width] duration-200 ease-in-out","group-data-[orientation=horizontal]/tabs:top-0.5 group-data-[orientation=horizontal]/tabs:left-0 group-data-[orientation=horizontal]/tabs:h-full group-data-[orientation=horizontal]/tabs:w-(--active-tab-width) group-data-[orientation=horizontal]/tabs:translate-x-(--active-tab-left)","group-data-[orientation=vertical]/tabs:top-0.5 group-data-[orientation=vertical]/tabs:left-0 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:h-(--active-tab-height) group-data-[orientation=vertical]/tabs:translate-y-(--active-tab-top)",e),...t})}function Ro({className:e,...t}){return j(ee.Tab,{"data-slot":"tabs-trigger",className:o("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 px-1.5 py-0.5","text-inherit rounded-md border border-transparent whitespace-nowrap transition-all","group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start","hover:text-primary focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring","disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-data-[variant=default]/tabs-list:text-tertiary [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","cursor-pointer","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:text-primary","group-data-[variant=default]/tabs-list:data-active:bg-background","group-data-[variant=segment]/tabs-list:data-active:bg-transparent group-data-[variant=segment]/tabs-list:data-active:text-black","group-data-[size=sm]/tabs-list:gap-1 group-data-[size=sm]/tabs-list:px-1.5 group-data-[size=sm]/tabs-list:py-0 group-data-[size=sm]/tabs-list:text-xs","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}function Do({className:e,...t}){return j(ee.Panel,{"data-slot":"tabs-content",className:o("flex-1 text-sm outline-none",e),...t})}import{jsx as No}from"react/jsx-runtime";var So={title1:{className:"text-2xl font-semibold",as:"h1"},title2:{className:"text-xl font-semibold",as:"h2"},body1:{className:"text-base",as:"p"},body2:{className:"text-sm",as:"p"},body3:{className:"text-xs",as:"p"}};function ko({as:e,format:t,color:i,align:a,className:r,...n}){let s=t?So[t]:void 0,c=e??s?.as??"p";return No(c,{className:o(s?.className,i==="secondary"&&"text-tertiary",a==="left"&&"text-left",a==="center"&&"text-center",a==="right"&&"text-right",r),...n})}import{Tooltip as J}from"@base-ui/react/tooltip";import{jsx as te,jsxs as Eo}from"react/jsx-runtime";function To({delay:e=0,...t}){return te(J.Provider,{"data-slot":"tooltip-provider",delay:e,...t})}function Lo({...e}){return te(J.Root,{"data-slot":"tooltip",...e})}function _o({...e}){return te(J.Trigger,{"data-slot":"tooltip-trigger",...e})}function Mo({className:e,side:t="top",sideOffset:i=4,align:a="center",alignOffset:r=0,children:n,...s}){return te(J.Portal,{children:te(J.Positioner,{align:a,alignOffset:r,side:t,sideOffset:i,className:"isolate z-50",children:Eo(J.Popup,{"data-slot":"tooltip-content",className:o("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s,children:[n,te(J.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}export{Kt as Accordion,ti as AccordionContent,Qt as AccordionItem,ei as AccordionTrigger,Pt as AppIcon,Wt as AssetIcon,ni as BottomSheet,pi as BottomSheetClose,mi as BottomSheetContent,gi as BottomSheetDescription,ui as BottomSheetFooter,fi as BottomSheetHeader,yi as BottomSheetTitle,si as BottomSheetTrigger,M as Button,xi as ButtonTile,bi as DataItem,vi as DataItemLabel,wi as DataItemValue,Ii as Dialog,Si as DialogContent,Li as DialogDescription,Ni as DialogFooter,ki as DialogHeader,Ti as DialogTitle,Ci as DialogTrigger,_i as DotPing,Ei as EmptyState,se as EntityComponentBadge,Ne as EntityComponentIcon,Et as EntityRecipe,Ot as GlowEffect,P as Icon,Jt as IconAssetScene,Ai as IslandPanel,Vt as IsometricSchema,Bi as Kbd,qi as Loader,Ft as Logo3dverse,_e as Logo3dverseRocket,Fi as Menu,$i as MenuContent,Hi as MenuGroup,Zi as MenuGroupLabel,ji as MenuItem,Qe as MenuPortal,et as MenuPositioner,Gi as MenuSeparator,zi as MenuTrigger,Wi as Modal,so as OverlayContainer,Xi as Panel,Yi as PanelHeader,Ji as PanelTitle,Ki as Popover,eo as PopoverContent,oo as PopoverDescription,to as PopoverHeader,io as PopoverTitle,Qi as PopoverTrigger,ao as ScrollableArea,$t as Spinner,co as Stack,no as Switch,uo as Tabs,Do as TabsContent,Be as TabsIndicator,Po as TabsList,Ro as TabsTrigger,ko as Text,Lo as Tooltip,Mo as TooltipContent,To as TooltipProvider,_o as TooltipTrigger,re as appIconShapes,o as cn};
17
17
  //# sourceMappingURL=index.mjs.map