@galacean/cli 2.0.0-alpha.26 → 2.0.0-alpha.27
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/cli.bundle.cjs +671 -777
- package/dist/preview-client/_static/{Accordion-2cd014f1.js → Accordion-4afac60c.js} +1 -1
- package/dist/preview-client/_static/{AmbientLightAsset-be9e872c.js → AmbientLightAsset-3825f3bf.js} +2 -2
- package/dist/preview-client/_static/{AnimationClipAsset-d7b37af0.js → AnimationClipAsset-660ecb36.js} +1 -1
- package/dist/preview-client/_static/{AnimatorControllerAsset-2716497a.js → AnimatorControllerAsset-dcf11a9d.js} +1 -1
- package/dist/preview-client/_static/{AnimatorStore-883a28ad.js → AnimatorStore-aa58d85c.js} +1 -1
- package/dist/preview-client/_static/{AssetViewer-3847c058.js → AssetViewer-8338dfe1.js} +1 -1
- package/dist/preview-client/_static/{AudioAsset-c28f33ab.js → AudioAsset-6e607154.js} +1 -1
- package/dist/preview-client/_static/{AudioComponent-3d6c73ce.js → AudioComponent-b70cc31e.js} +1 -1
- package/dist/preview-client/_static/{Callout-e2a89f6f.js → Callout-155c30df.js} +1 -1
- package/dist/preview-client/_static/{CameraComponent-3dc63451.js → CameraComponent-76bc9102.js} +1 -1
- package/dist/preview-client/_static/{Component-0f881fc1.js → Component-398551a0.js} +1 -1
- package/dist/preview-client/_static/{DirectLight-96dbba47.js → DirectLight-50653e81.js} +1 -1
- package/dist/preview-client/_static/{FontAsset-d34b5378.js → FontAsset-dc385d41.js} +1 -1
- package/dist/preview-client/_static/{FormItemArray-b8cda1d2.js → FormItemArray-9ca61884.js} +1 -1
- package/dist/preview-client/_static/{GlTFAsset-5970e707.js → GlTFAsset-d2ee4f95.js} +1 -1
- package/dist/preview-client/_static/{IconPlus-def01e2b.js → IconPlus-b3ed4c04.js} +1 -1
- package/dist/preview-client/_static/{IconPointFilled-62d3c3b2.js → IconPointFilled-3ba6d082.js} +1 -1
- package/dist/preview-client/_static/{LightBaseComponent-d651a276.js → LightBaseComponent-4cfc9f48.js} +1 -1
- package/dist/preview-client/_static/{LottieAnimationComponent-f10dc558.js → LottieAnimationComponent-aeb555ea.js} +1 -1
- package/dist/preview-client/_static/{MarkdownAsset-b2a3fad5.js → MarkdownAsset-02477e7c.js} +1 -1
- package/dist/preview-client/_static/{MaterialAsset-5353c4cb.js → MaterialAsset-8f3b3302.js} +1 -1
- package/dist/preview-client/_static/{MaterialInspector-8d466d59.js → MaterialInspector-3fb471d9.js} +1 -1
- package/dist/preview-client/_static/{Menu-c8e6194b.js → Menu-36c201c0.js} +1 -1
- package/dist/preview-client/_static/{MeshAsset-c2bf60c5.js → MeshAsset-3ddf1ac6.js} +1 -1
- package/dist/preview-client/_static/{MeshRendererBaseComponent-fde6b6a5.js → MeshRendererBaseComponent-cd8b743b.js} +1 -1
- package/dist/preview-client/_static/{MeshRendererComponent-430774ef.js → MeshRendererComponent-17a7fc72.js} +1 -1
- package/dist/preview-client/_static/{MeshThumbnail-07ffa076.js → MeshThumbnail-8c20ee92.js} +1 -1
- package/dist/preview-client/_static/{ParticleRendererComponent-e106bd8c.js → ParticleRendererComponent-1834a159.js} +3 -3
- package/dist/preview-client/_static/{PhysicsMaterialAsset-a2f73b5c.js → PhysicsMaterialAsset-e0491877.js} +1 -1
- package/dist/preview-client/_static/{PhysicsStore-818c2f61.js → PhysicsStore-ab32886e.js} +1 -1
- package/dist/preview-client/_static/{PointLight-add790ea.js → PointLight-97975350.js} +1 -1
- package/dist/preview-client/_static/{PostProcessComponent-af270a77.js → PostProcessComponent-9590ec29.js} +1 -1
- package/dist/preview-client/_static/PrefabAsset-2f94de73.js +1 -0
- package/dist/preview-client/_static/{PrimitiveMesh-075dda8a.js → PrimitiveMesh-0492d482.js} +1 -1
- package/dist/preview-client/_static/{ReferencedMaterial-d11151b5.js → ReferencedMaterial-49a7cbcc.js} +1 -1
- package/dist/preview-client/_static/{RenderTargetAsset-b3cd1c49.js → RenderTargetAsset-dc1f9494.js} +1 -1
- package/dist/preview-client/_static/{SceneAsset-08752701.js → SceneAsset-c3bb667f.js} +1 -1
- package/dist/preview-client/_static/{ShaderAsset-a9d667f5.js → ShaderAsset-f4eead79.js} +12 -12
- package/dist/preview-client/_static/{ShaderChunkAsset-e43dde8a.js → ShaderChunkAsset-4bea2733.js} +2 -2
- package/dist/preview-client/_static/{ShaderUIScriptAsset-e1cd0b8b.js → ShaderUIScriptAsset-3c731f3b.js} +2 -2
- package/dist/preview-client/_static/{SkinnedMeshRendererComponent-9756bd5f.js → SkinnedMeshRendererComponent-e0f9b133.js} +1 -1
- package/dist/preview-client/_static/{SpineAnimationComponent-f3e0ff44.js → SpineAnimationComponent-1e1655fd.js} +1 -1
- package/dist/preview-client/_static/{SpineSkeletonDataAsset-43b731f1.js → SpineSkeletonDataAsset-afb4afae.js} +1 -1
- package/dist/preview-client/_static/{SpotLight-649b0e21.js → SpotLight-69f361c9.js} +1 -1
- package/dist/preview-client/_static/{SpriteBaseComponent-d2a7ab4c.js → SpriteBaseComponent-2c2454ea.js} +1 -1
- package/dist/preview-client/_static/{SpriteMaskComponent-2c1cef5e.js → SpriteMaskComponent-a7ebcc50.js} +1 -1
- package/dist/preview-client/_static/{SpriteRendererComponent-33b71997.js → SpriteRendererComponent-f7604c68.js} +1 -1
- package/dist/preview-client/_static/{TextBaseComponent-9310e0c6.js → TextBaseComponent-cd7ad9f7.js} +1 -1
- package/dist/preview-client/_static/{TextRendererComponent-8dc0d7fb.js → TextRendererComponent-a5357d52.js} +1 -1
- package/dist/preview-client/_static/{TextureAsset-a7ff39b1.js → TextureAsset-ff089b5a.js} +1 -1
- package/dist/preview-client/_static/{Tooltip-b5be390f.js → Tooltip-1bcb87b5.js} +1 -1
- package/dist/preview-client/_static/{TrailRendererComponent-c4635fab.js → TrailRendererComponent-cdefa368.js} +1 -1
- package/dist/preview-client/_static/{TransformBaseComponent-1473deaa.js → TransformBaseComponent-d26ff236.js} +1 -1
- package/dist/preview-client/_static/{TransformComponent-e544f7ac.js → TransformComponent-4ec4b7b5.js} +1 -1
- package/dist/preview-client/_static/{XRReferenceImageAsset-96f516ba.js → XRReferenceImageAsset-ff82ab30.js} +1 -1
- package/dist/preview-client/_static/{audio-b5fbde34.js → audio-0a013eb6.js} +1 -1
- package/dist/preview-client/_static/{createOnModelChange-370b83da.js → createOnModelChange-89f572a6.js} +1 -1
- package/dist/preview-client/_static/{createReactComponent-58d9f0dd.js → createReactComponent-baa41397.js} +1 -1
- package/dist/preview-client/_static/index-0086cabc.js +1 -0
- package/dist/preview-client/_static/index-253f9e13.js +1 -0
- package/dist/preview-client/_static/{index-da16047f.js → index-29916a80.js} +1 -1
- package/dist/preview-client/_static/{index-ab8556cb.js → index-4845b67c.js} +3 -3
- package/dist/preview-client/_static/{index-dd0763bf.js → index-5e4dedda.js} +1 -1
- package/dist/preview-client/_static/{index-0dd5bb36.js → index-70967035.js} +1 -1
- package/dist/preview-client/_static/index-8234e4e2.js +1 -0
- package/dist/preview-client/_static/{index-88650db7.js → index-8784a43a.js} +1 -1
- package/dist/preview-client/_static/index-94594d06.js +1 -0
- package/dist/preview-client/_static/{index-74bcfad9.js → index-a0afef01.js} +1 -1
- package/dist/preview-client/_static/index-ad57c6c8.js +1 -0
- package/dist/preview-client/_static/{index-c3dec278.js → index-b126bb6b.js} +72 -72
- package/dist/preview-client/_static/{index-cdbb2f4d.js → index-c8ed2a45.js} +1 -1
- package/dist/preview-client/_static/{index-05b76766.js → index-cd09e78a.js} +1 -1
- package/dist/preview-client/_static/index-d1484803.js +1 -0
- package/dist/preview-client/_static/index-f7fcda86.js +1 -0
- package/dist/preview-client/_static/{ktx2-encoder-db93524f.js → ktx2-encoder-8498815e.js} +1 -1
- package/dist/preview-client/_static/{module-ada3dced.js → module-113ac03a.js} +1 -1
- package/dist/preview-client/_static/{module-ec094ef6.js → module-83a57161.js} +1 -1
- package/dist/preview-client/_static/{module-de7ee724.js → module-8efda49c.js} +1 -1
- package/dist/preview-client/_static/{postmen-2853c0e6.js → postmen-3b48c572.js} +2 -2
- package/dist/preview-client/_static/{shader-data-utils-f0e4f5a3.js → shader-data-utils-c90e48b8.js} +1 -1
- package/dist/preview-client/index.html +1 -1
- package/package.json +29 -24
- package/dist/preview-client/_static/PrefabAsset-59743dbb.js +0 -1
- package/dist/preview-client/_static/index-29c59aff.js +0 -1
- package/dist/preview-client/_static/index-3680d0e0.js +0 -1
- package/dist/preview-client/_static/index-42aa3a49.js +0 -1
- package/dist/preview-client/_static/index-496f331d.js +0 -1
- package/dist/preview-client/_static/index-9f0122f0.js +0 -1
- package/dist/preview-client/_static/index-c6b7045c.js +0 -1
- package/dist/preview-client/_static/index-dddcae01.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var x=Object.defineProperty;var M=(i,t,e)=>t in i?x(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var l=(i,t,e)=>(M(i,typeof t!="symbol"?t+"":t,e),e);import{aH as _,aI as C,aJ as N,aK as w,av as p,bj as P,aM as g,aO as y,aN as v,aB as u,aA as m,C as o,p as f,s as h,l as O,g as I,f as j}from"./index-
|
|
1
|
+
var x=Object.defineProperty;var M=(i,t,e)=>t in i?x(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var l=(i,t,e)=>(M(i,typeof t!="symbol"?t+"":t,e),e);import{aH as _,aI as C,aJ as N,aK as w,av as p,bj as P,aM as g,aO as y,aN as v,aB as u,aA as m,C as o,p as f,s as h,l as O,g as I,f as j}from"./index-b126bb6b.js";import{u as R}from"./index-c8ed2a45.js";import{c as B}from"./Component-398551a0.js";import"./postmen-3b48c572.js";import{c as b}from"./createOnModelChange-89f572a6.js";import{S as H}from"./SpriteBaseComponent-2c2454ea.js";const k=_("div",{marginLeft:"5px"}),E=_(C,{border:"1px solid $gray6",borderRadius:"$2",padding:"$0_5",color:"$gray11",cursor:"pointer"}),X=N(function(i){const t=i.data,{t:e}=w();return p.jsxs(E,{align:"v",children:[t.loadingStatus==="loading"&&p.jsx(P,{size:"xs"}),t.loadingStatus==="success"&&p.jsx("img",{src:t.thumbnailUrl,alt:e("sprite.inspector.thumbnail"),width:"20px",height:"20px"}),p.jsxs(k,{children:[e("sprite.inspector.title"),"(",t.name,")"]})]})}),Y=N(function(i){const[t,e]=g.useState(null),r=i.data,{assetStore:s,inspectorFacade:n}=R();return g.useEffect(()=>{s.getAssetByRef(r.sprite).then(c=>{e(c)})},[r.sprite]),p.jsxs(p.Fragment,{children:[p.jsx(y.List,{model:r,configs:r.formSchema.items,onModelChange:b("component",r.id,n,r)}),t?p.jsx(v,{nesting:!0,title:p.jsx(X,{data:t}),defaultOpen:!1,children:p.jsx(y.List,{model:t,configs:t.formSchema.items,onModelChange:b("asset",t.id,n,t)})}):null]})});var S=Object.defineProperty,L=Object.getOwnPropertyDescriptor,W=(i,t,e)=>t in i?S(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,d=(i,t,e,r)=>{for(var s=r>1?void 0:r?L(t,e):t,n=i.length-1,c;n>=0;n--)(c=i[n])&&(s=(r?c(t,e,s):c(s))||s);return r&&s&&S(t,e,s),s},z=(i,t,e)=>(W(i,typeof t!="symbol"?t+"":t,e),e);let a=class extends H{constructor(t,e){super(t,e);l(this,"width",0);l(this,"height",0);l(this,"flip",[]);l(this,"maskInteraction",u.None);l(this,"maskLayer",[m.Everything]);l(this,"material",{refId:a._internalSpriteMaterialRefId});l(this,"priority",0);l(this,"_customWidth");l(this,"_customHeight");this.on("propertychange",(r,s)=>{if(r==="sprite"){const n=this.engineObject;isNaN(this._customWidth)?this.width=n.width:(this.width=this._customWidth,this.applyBoundPathChange("width",o.Number,this._customWidth)),isNaN(this._customHeight)?this.height=n.height:(this.height=this._customHeight,this.applyBoundPathChange("height",o.Number,this._customHeight))}})}async applyBoundPathChange(t,e,r){if(t==="flip"){const s=Array.isArray(r)?r:[];await super.applyBoundPathChange("flipX",o.Toggle,s.includes("flipX")),await super.applyBoundPathChange("flipY",o.Toggle,s.includes("flipY"));return}await super.applyBoundPathChange(t,e,r)}deserializeByEngineObject(t){var r;super.deserializeByEngineObject(t);const e=[];t.flipX&&e.push("flipX"),t.flipY&&e.push("flipY"),this.flip=e,(r=this._originValueMap)==null||r.set("flip",[...e])}deserialize(t){super.deserialize(t);const{props:e}=t;e!=null&&e.flipX&&this.flip.push("flipX"),e!=null&&e.flipY&&this.flip.push("flipY"),isNaN(e==null?void 0:e.width)||(this._customWidth=e.width),isNaN(e==null?void 0:e.height)||(this._customHeight=e.height)}toJSON(){const t=super.toJSON(),e=this.flip;return e&&(t.props.flipX=e.indexOf("flipX")!==-1,t.props.flipY=e.indexOf("flipY")!==-1),isNaN(this._customWidth)||(t.props.width=this._customWidth),isNaN(this._customHeight)||(t.props.height=this._customHeight),t}};z(a,"_internalSpriteMaterialRefId","0000203");d([f({label:"sprite.renderer.width.label",info:"sprite.renderer.width.info",type:o.Number,bindPath:"width",triggerAfterInit:!1,onChange(i,t,e){isNaN(e)||(i._customWidth=e)}}),h()],a.prototype,"width",2);d([f({label:"sprite.renderer.height.label",info:"sprite.renderer.height.info",type:o.Number,bindPath:"height",triggerAfterInit:!1,onChange(i,t,e){isNaN(e)||(i._customHeight=e)}}),h()],a.prototype,"height",2);d([f({label:"sprite.renderer.flip.label",info:"sprite.renderer.flip.info",type:o.ToggleGroup,bindPath:"flip",multiple:!0,options:[{label:"sprite.renderer.flip.x",value:"flipX"},{label:"sprite.renderer.flip.y",value:"flipY"}]}),h()],a.prototype,"flip",2);d([f({label:"sprite.renderer.mask-interaction.label",info:"sprite.renderer.mask-interaction.info",type:o.Select,bindPath:"maskInteraction",value:u.None,options:[{label:"sprite.renderer.mask-interaction.none",value:u.None},{label:"sprite.renderer.mask-interaction.visible-inside",value:u.VisibleInsideMask},{label:"sprite.renderer.mask-interaction.visible-outside",value:u.VisibleOutsideMask}]}),h()],a.prototype,"maskInteraction",2);d([h(O()),f({label:"sprite.renderer.mask-layer.label",info:"sprite.renderer.mask-layer.info",type:o.Select,...I([m.Nothing,m.Everything]),bindPath:"maskLayer"}),h()],a.prototype,"maskLayer",2);d([f({label:"sprite.renderer.material.label",info:"sprite.renderer.material.info",type:o.AssetPicker,assetType:"Material",customFilter:i=>{var t;return((t=i.engineObject.shader)==null?void 0:t.name)!=="Effect/Particle"},onChange:async(i,t,e)=>{const{material:r}=i,s=i.engineObject;if(!r){s.setMaterial(null);return}const{refId:n}=r;n===a._internalSpriteMaterialRefId?s.setMaterial(s.engine._basicResources.spriteDefaultMaterial):e?i.engineObject.setMaterial(e.engineObject):console.error(`Material asset not found: ${r.refId}`)}}),j({engineKey:"setMaterial",getEngineValue:i=>i.getMaterial()}),h()],a.prototype,"material",2);d([f({label:"sprite.renderer.priority.label",info:"sprite.renderer.priority.info",type:o.Number,bindPath:"priority"}),h()],a.prototype,"priority",2);a=d([B({type:"SpriteRenderer",componentsMenu:{group:"2D",label:"component.renderer.sprite.title"},customInspector:Y})],a);export{a as SpriteRendererComponent};
|
package/dist/preview-client/_static/{TextBaseComponent-9310e0c6.js → TextBaseComponent-cd7ad9f7.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var m=Object.defineProperty;var w=(e,n,t)=>n in e?m(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var l=(e,n,t)=>(w(e,typeof n!="symbol"?n+"":n,t),t);import{
|
|
1
|
+
var m=Object.defineProperty;var w=(e,n,t)=>n in e?m(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var l=(e,n,t)=>(w(e,typeof n!="symbol"?n+"":n,t),t);import{ci as h,av as o,cj as g,p as c,C as i,s as f,ck as s,f as v,aE as y,bL as b,cl as d,e as C,E as A}from"./index-b126bb6b.js";import"./index-c8ed2a45.js";import"./postmen-3b48c572.js";import{c as u}from"./createReactComponent-baa41397.js";/**
|
|
2
2
|
* @license @tabler/icons-react v3.24.0 - MIT
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=Object.defineProperty;var x=(r,e,t)=>e in r?c(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var a=(r,e,t)=>(x(r,typeof e!="symbol"?e+"":e,t),t);import{aB as l,aA as h,p,C as s,s as m,g as f,l as u}from"./index-
|
|
1
|
+
var c=Object.defineProperty;var x=(r,e,t)=>e in r?c(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var a=(r,e,t)=>(x(r,typeof e!="symbol"?e+"":e,t),t);import{aB as l,aA as h,p,C as s,s as m,g as f,l as u}from"./index-b126bb6b.js";import"./index-c8ed2a45.js";import{c as v}from"./Component-398551a0.js";import"./postmen-3b48c572.js";import{T as k}from"./TextBaseComponent-cd7ad9f7.js";import"./createReactComponent-baa41397.js";var g=Object.defineProperty,P=Object.getOwnPropertyDescriptor,o=(r,e,t,d)=>{for(var i=d>1?void 0:d?P(e,t):e,b=r.length-1,y;b>=0;b--)(y=r[b])&&(i=(d?y(e,t,i):y(i))||i);return d&&i&&g(e,t,i),i};let n=class extends k{constructor(e,t){super(e,t);a(this,"width",0);a(this,"height",0);a(this,"maskInteraction",l.None);a(this,"maskLayer",[h.Layer0]);a(this,"priority",0)}};o([p({label:"text-renderer.width.label",info:"text-renderer.width.info",type:s.Number,bindPath:"width"}),m()],n.prototype,"width",2);o([p({label:"text-renderer.height.label",info:"text-renderer.height.info",type:s.Number,bindPath:"height"}),m()],n.prototype,"height",2);o([p({label:"text-renderer.mask-interaction.label",info:"text-renderer.mask-interaction.info",type:s.Select,bindPath:"maskInteraction",value:l.None,options:[{label:"text-renderer.mask-interaction.none",value:l.None},{label:"text-renderer.mask-interaction.visible-inside",value:l.VisibleInsideMask},{label:"text-renderer.mask-interaction.visible-outside",value:l.VisibleOutsideMask}]}),m()],n.prototype,"maskInteraction",2);o([p({label:"text-renderer.mask-layer.label",info:"text-renderer.mask-layer.info",type:s.Select,bindPath:"maskLayer",...f([h.Nothing,h.Everything])}),m(u())],n.prototype,"maskLayer",2);o([p({label:"text-renderer.priority.label",info:"text-renderer.priority.info",type:s.Number,bindPath:"priority"}),m()],n.prototype,"priority",2);n=o([v({type:"TextRenderer",componentsMenu:{group:"2D",label:"component.text-renderer.title"}})],n);export{n as TextRendererComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var me=Object.defineProperty;var fe=(n,e,t)=>e in n?me(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var v=(n,e,t)=>(fe(n,typeof e!="symbol"?e+"":e,t),t);import{ae as V,b1 as Y,N as J,$ as Z,y as Q,bD as ee,ah as te,aJ as q,aK as be,av as w,bk as ne,aI as N,ay as H,bz as ye,
|
|
1
|
+
var me=Object.defineProperty;var fe=(n,e,t)=>e in n?me(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var v=(n,e,t)=>(fe(n,typeof e!="symbol"?e+"":e,t),t);import{ae as V,b1 as Y,N as J,$ as Z,y as Q,bD as ee,ah as te,aJ as q,aK as be,av as w,bk as ne,aI as N,ay as H,bz as ye,cn as ge,aN as we,e as P,ds as xe,aM as ve,aO as Me,K as Se,j as Ce,ad as I,T as S,p as A,C as j,aT as T,x as _e,n as Re,o as Te,bR as De,b3 as Oe,q as Be,a_ as K,a$ as ie,eA as Ae,eB as ae,eC as je}from"./index-b126bb6b.js";import{k,H as re}from"./ktx2-encoder-8498815e.js";import{u as Ee}from"./index-c8ed2a45.js";import"./postmen-3b48c572.js";import{e as se}from"./encode-ac4bb64e.js";import"./meshopt_simplifier.module-cd99529d.js";import{T as Ie}from"./Tooltip-1bcb87b5.js";import{c as Ue}from"./createReactComponent-baa41397.js";import{A as Pe}from"./AssetViewer-8338dfe1.js";const X=function(n,e,t){return n>=t?t:n<=e?e:n};function Le(n,e,t,i,a){const r=new Uint8Array(n);i=X(i,0,255),a=X(a,0,255);const s=(d,p)=>(p*e+d)*4,c=[[-1,0],[1,0],[0,-1],[0,1]],o=[];for(let d=0;d<t;d++)for(let p=0;p<e;p++)if(r[s(p,d)+3]!==0)for(const[y,b]of c){const h=p+y,m=d+b;if(h>=0&&h<e&&m>=0&&m<t&&r[s(h,m)+3]===0){o.push([p,d]);break}}const l=new Set,u=[];for(;o.length>0;){const d=[];for(const[p,y]of o)for(const[b,h]of c){const m=p+b,f=y+h;if(m<0||m>=e||f<0||f>=t)continue;const x=s(m,f);if(r[x+3]>i)continue;const g=f*e+m;if(l.has(g))continue;l.add(g);const C=s(p,y);r[x]=r[C],r[x+1]=r[C+1],r[x+2]=r[C+2],r[x+3]=255,d.push([m,f]),u.push(x)}o.length=0;for(let p=0;p<d.length;p++)o.push(d[p])}for(const d of u)r[d+3]=a;return r}function L(n){const e=n instanceof Uint8Array?n:new Uint8Array(n);return e[0]===35&&e[1]===63}function z(n,e){const t=new Float32Array(1),i=new Uint32Array(t.buffer);for(let a=0;a<n.length;a++){t[0]=n[a];const r=i[0],s=r>>16&32768,c=(r>>23&255)-127+15,o=r&8388607;c<=0?e[a]=s:c>=31?e[a]=s|31744:e[a]=s|c<<10|o>>13}}function F(n){const e=Ge(n),{width:t,height:i,dataPosition:a}=e,r=He(n.subarray(a),t,i),s=Fe(r,t,i);return{width:t,height:i,pixels:s}}function Fe(n,e,t){const i=e*t,a=new Float32Array(i*4);for(let r=0;r<i;r++){const s=r*4,c=r*4,o=Math.pow(2,n[s+3]-128-8);a[c]=Math.min(n[s]*o,65504),a[c+1]=Math.min(n[s+1]*o,65504),a[c+2]=Math.min(n[s+2]*o,65504),a[c+3]=1}return a}function Ge(n){let e=$(n,0);if(e[0]!=="#"||e[1]!=="?")throw new Error("HDR: invalid header");let t=0,i=!1,a=!1;do t+=e.length+1,e=$(n,t),e==="FORMAT=32-bit_rle_rgbe"?i=!0:e.length===0&&(a=!0);while(!a);if(!i)throw new Error("HDR: unsupported format");t+=e.length+1,e=$(n,t);const r=/^\-Y (.*) \+X (.*)$/g.exec(e);if(!r||r.length<3)throw new Error("HDR: missing size");return{width:parseInt(r[2]),height:parseInt(r[1]),dataPosition:t+e.length+1}}function He(n,e,t){const i=n.byteLength,a=new Uint8Array(4*e*t);let r=0,s=0;const c=4*e,o=new Uint8Array(c);let l=t;for(;l>0&&s<i;){const u=n[s++],d=n[s++],p=n[s++],y=n[s++];if(u!==2||d!==2||p&128||e<8||e>32767)return n;if((p<<8|y)!==e)throw new Error("HDR: wrong scanline width");let b=0;for(;b<c&&s<i;){let h=n[s++];const m=h>128;if(m&&(h-=128),h===0||b+h>c)throw new Error("HDR: bad scanline");if(m){const f=n[s++];for(let x=0;x<h;x++)o[b++]=f}else o.set(n.subarray(s,s+h),b),b+=h,s+=h}for(let h=0;h<e;h++,r+=4)a[r]=o[h],a[r+1]=o[h+e],a[r+2]=o[h+e*2],a[r+3]=o[h+e*3];l--}return a}function $(n,e){let t="";for(let i=e;i<n.length;i++){const a=String.fromCharCode(n[i]);if(a===`
|
|
2
2
|
`)break;t+=a}return t}function Ve(n,e,t){if(n.length!==e*t*4)throw new Error(`HDREncoder: pixel count mismatch (expected ${e*t*4}, got ${n.length})`);const i=ke(e,t),a=ze(n,e,t),r=new Uint8Array(i.length+a.length);return r.set(i,0),r.set(a,i.length),r.buffer}function ke(n,e){const t=`#?RADIANCE
|
|
3
3
|
# Written by Galacean HDREncoder
|
|
4
4
|
FORMAT=32-bit_rle_rgbe
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aM as s,b9 as _,d2 as le,av as f,bc as D,bb as g,d3 as G,d4 as ce,d5 as ue,d6 as de,d7 as fe,b5 as pe,d8 as Y,d9 as ve,da as z,db as he,dc as ye,bd as xe,b8 as Ee,dd as be,bh as me,aH as Ce}from"./index-c3dec278.js";var ge="DismissableLayer",I="dismissableLayer.update",Te="dismissableLayer.pointerDownOutside",Pe="dismissableLayer.focusOutside",V,X=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),q=s.forwardRef((e,n)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:u,...c}=e,d=s.useContext(X),[l,h]=s.useState(null),v=(l==null?void 0:l.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=s.useState({}),x=_(n,p=>h(p)),E=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=E.indexOf(b),m=l?E.indexOf(l):-1,P=d.layersWithOutsidePointerEventsDisabled.size>0,T=m>=C,w=Oe(p=>{const A=p.target,$=[...d.branches].some(k=>k.contains(A));!T||$||(o==null||o(p),i==null||i(p),p.defaultPrevented||u==null||u())},v),O=De(p=>{const A=p.target;[...d.branches].some(k=>k.contains(A))||(a==null||a(p),i==null||i(p),p.defaultPrevented||u==null||u())},v);return le(p=>{m===d.layers.size-1&&(r==null||r(p),!p.defaultPrevented&&u&&(p.preventDefault(),u()))},v),s.useEffect(()=>{if(l)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(V=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(l)),d.layers.add(l),U(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=V)}},[l,v,t,d]),s.useEffect(()=>()=>{l&&(d.layers.delete(l),d.layersWithOutsidePointerEventsDisabled.delete(l),U())},[l,d]),s.useEffect(()=>{const p=()=>y({});return document.addEventListener(I,p),()=>document.removeEventListener(I,p)},[]),f.jsx(D.div,{...c,ref:x,style:{pointerEvents:P?T?"auto":"none":void 0,...e.style},onFocusCapture:g(e.onFocusCapture,O.onFocusCapture),onBlurCapture:g(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:g(e.onPointerDownCapture,w.onPointerDownCapture)})});q.displayName=ge;var we="DismissableLayerBranch",Re=s.forwardRef((e,n)=>{const t=s.useContext(X),r=s.useRef(null),o=_(n,r);return s.useEffect(()=>{const a=r.current;if(a)return t.branches.add(a),()=>{t.branches.delete(a)}},[t.branches]),f.jsx(D.div,{...e,ref:o})});Re.displayName=we;function Oe(e,n=globalThis==null?void 0:globalThis.document){const t=G(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const a=u=>{if(u.target&&!r.current){let c=function(){K(Te,t,d,{discrete:!0})};const d={originalEvent:u};u.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=c,n.addEventListener("click",o.current,{once:!0})):c()}else n.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),n.removeEventListener("pointerdown",a),n.removeEventListener("click",o.current)}},[n,t]),{onPointerDownCapture:()=>r.current=!0}}function De(e,n=globalThis==null?void 0:globalThis.document){const t=G(e),r=s.useRef(!1);return s.useEffect(()=>{const o=a=>{a.target&&!r.current&&K(Pe,t,{originalEvent:a},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function U(){const e=new CustomEvent(I);document.dispatchEvent(e)}function K(e,n,t,{discrete:r}){const o=t.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});n&&o.addEventListener(e,n,{once:!0}),r?ce(o,a):o.dispatchEvent(a)}var Le="Portal",Z=s.forwardRef((e,n)=>{var u;const{container:t,...r}=e,[o,a]=s.useState(!1);ue(()=>a(!0),[]);const i=t||o&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return i?de.createPortal(f.jsx(D.div,{...r,ref:n}),i):null});Z.displayName=Le;var Ae=s.forwardRef((e,n)=>{const{children:t,...r}=e,o=s.Children.toArray(t),a=o.find(_e);if(a){const i=a.props.children,u=o.map(c=>c===a?s.Children.count(i)>1?s.Children.only(null):s.isValidElement(i)?i.props.children:null:c);return f.jsx(M,{...r,ref:n,children:s.isValidElement(i)?s.cloneElement(i,void 0,u):null})}return f.jsx(M,{...r,ref:n,children:t})});Ae.displayName="Slot";var M=s.forwardRef((e,n)=>{const{children:t,...r}=e;if(s.isValidElement(t)){const o=Se(t);return s.cloneElement(t,{...je(r,t.props),ref:n?fe(n,o):o})}return s.Children.count(t)>1?s.Children.only(null):null});M.displayName="SlotClone";var J=({children:e})=>f.jsx(f.Fragment,{children:e});function _e(e){return s.isValidElement(e)&&e.type===J}function je(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...u)=>{a(...u),o(...u)}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function Se(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Ne="VisuallyHidden",Q=s.forwardRef((e,n)=>f.jsx(D.span,{...e,ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Q.displayName=Ne;var ke=Q,[j,ot]=pe("Tooltip",[Y]),S=Y(),ee="TooltipProvider",Ie=700,H="tooltip.open",[Me,W]=j(ee),te=e=>{const{__scopeTooltip:n,delayDuration:t=Ie,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,u]=s.useState(!0),c=s.useRef(!1),d=s.useRef(0);return s.useEffect(()=>{const l=d.current;return()=>window.clearTimeout(l)},[]),f.jsx(Me,{scope:n,isOpenDelayed:i,delayDuration:t,onOpen:s.useCallback(()=>{window.clearTimeout(d.current),u(!1)},[]),onClose:s.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>u(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:s.useCallback(l=>{c.current=l},[]),disableHoverableContent:o,children:a})};te.displayName=ee;var N="Tooltip",[He,L]=j(N),ne=e=>{const{__scopeTooltip:n,children:t,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:u}=e,c=W(N,e.__scopeTooltip),d=S(n),[l,h]=s.useState(null),v=xe(),y=s.useRef(0),x=i??c.disableHoverableContent,E=u??c.delayDuration,b=s.useRef(!1),[C=!1,m]=Ee({prop:r,defaultProp:o,onChange:p=>{p?(c.onOpen(),document.dispatchEvent(new CustomEvent(H))):c.onClose(),a==null||a(p)}}),P=s.useMemo(()=>C?b.current?"delayed-open":"instant-open":"closed",[C]),T=s.useCallback(()=>{window.clearTimeout(y.current),b.current=!1,m(!0)},[m]),w=s.useCallback(()=>{window.clearTimeout(y.current),m(!1)},[m]),O=s.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{b.current=!0,m(!0)},E)},[E,m]);return s.useEffect(()=>()=>window.clearTimeout(y.current),[]),f.jsx(be,{...d,children:f.jsx(He,{scope:n,contentId:v,open:C,stateAttribute:P,trigger:l,onTriggerChange:h,onTriggerEnter:s.useCallback(()=>{c.isOpenDelayed?O():T()},[c.isOpenDelayed,O,T]),onTriggerLeave:s.useCallback(()=>{x?w():window.clearTimeout(y.current)},[w,x]),onOpen:T,onClose:w,disableHoverableContent:x,children:t})})};ne.displayName=N;var B="TooltipTrigger",re=s.forwardRef((e,n)=>{const{__scopeTooltip:t,...r}=e,o=L(B,t),a=W(B,t),i=S(t),u=s.useRef(null),c=_(n,u,o.onTriggerChange),d=s.useRef(!1),l=s.useRef(!1),h=s.useCallback(()=>d.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),f.jsx(ve,{asChild:!0,...i,children:f.jsx(D.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:g(e.onPointerMove,v=>{v.pointerType!=="touch"&&!l.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),l.current=!0)}),onPointerLeave:g(e.onPointerLeave,()=>{o.onTriggerLeave(),l.current=!1}),onPointerDown:g(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:g(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:g(e.onBlur,o.onClose),onClick:g(e.onClick,o.onClose)})})});re.displayName=B;var F="TooltipPortal",[Be,We]=j(F,{forceMount:void 0}),oe=e=>{const{__scopeTooltip:n,forceMount:t,children:r,container:o}=e,a=L(F,n);return f.jsx(Be,{scope:n,forceMount:t,children:f.jsx(z,{present:t||a.open,children:f.jsx(Z,{asChild:!0,container:o,children:r})})})};oe.displayName=F;var R="TooltipContent",se=s.forwardRef((e,n)=>{const t=We(R,e.__scopeTooltip),{forceMount:r=t.forceMount,side:o="top",...a}=e,i=L(R,e.__scopeTooltip);return f.jsx(z,{present:r||i.open,children:i.disableHoverableContent?f.jsx(ae,{side:o,...a,ref:n}):f.jsx(Fe,{side:o,...a,ref:n})})}),Fe=s.forwardRef((e,n)=>{const t=L(R,e.__scopeTooltip),r=W(R,e.__scopeTooltip),o=s.useRef(null),a=_(n,o),[i,u]=s.useState(null),{trigger:c,onClose:d}=t,l=o.current,{onPointerInTransitChange:h}=r,v=s.useCallback(()=>{u(null),h(!1)},[h]),y=s.useCallback((x,E)=>{const b=x.currentTarget,C={x:x.clientX,y:x.clientY},m=Ge(C,b.getBoundingClientRect()),P=Ye(C,m),T=ze(E.getBoundingClientRect()),w=qe([...P,...T]);u(w),h(!0)},[h]);return s.useEffect(()=>()=>v(),[v]),s.useEffect(()=>{if(c&&l){const x=b=>y(b,l),E=b=>y(b,c);return c.addEventListener("pointerleave",x),l.addEventListener("pointerleave",E),()=>{c.removeEventListener("pointerleave",x),l.removeEventListener("pointerleave",E)}}},[c,l,y,v]),s.useEffect(()=>{if(i){const x=E=>{const b=E.target,C={x:E.clientX,y:E.clientY},m=(c==null?void 0:c.contains(b))||(l==null?void 0:l.contains(b)),P=!Xe(C,i);m?v():P&&(v(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,l,i,d,v]),f.jsx(ae,{...e,ref:a})}),[$e,Ve]=j(N,{isInside:!1}),ae=s.forwardRef((e,n)=>{const{__scopeTooltip:t,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...u}=e,c=L(R,t),d=S(t),{onClose:l}=c;return s.useEffect(()=>(document.addEventListener(H,l),()=>document.removeEventListener(H,l)),[l]),s.useEffect(()=>{if(c.trigger){const h=v=>{const y=v.target;y!=null&&y.contains(c.trigger)&&l()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,l]),f.jsx(q,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:l,children:f.jsxs(he,{"data-state":c.stateAttribute,...d,...u,ref:n,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[f.jsx(J,{children:r}),f.jsx($e,{scope:t,isInside:!0,children:f.jsx(ke,{id:c.contentId,role:"tooltip",children:o||r})})]})})});se.displayName=R;var ie="TooltipArrow",Ue=s.forwardRef((e,n)=>{const{__scopeTooltip:t,...r}=e,o=S(t);return Ve(ie,t).isInside?null:f.jsx(ye,{...o,...r,ref:n})});Ue.displayName=ie;function Ge(e,n){const t=Math.abs(n.top-e.y),r=Math.abs(n.bottom-e.y),o=Math.abs(n.right-e.x),a=Math.abs(n.left-e.x);switch(Math.min(t,r,o,a)){case a:return"left";case o:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ye(e,n,t=5){const r=[];switch(n){case"top":r.push({x:e.x-t,y:e.y+t},{x:e.x+t,y:e.y+t});break;case"bottom":r.push({x:e.x-t,y:e.y-t},{x:e.x+t,y:e.y-t});break;case"left":r.push({x:e.x+t,y:e.y-t},{x:e.x+t,y:e.y+t});break;case"right":r.push({x:e.x-t,y:e.y-t},{x:e.x-t,y:e.y+t});break}return r}function ze(e){const{top:n,right:t,bottom:r,left:o}=e;return[{x:o,y:n},{x:t,y:n},{x:t,y:r},{x:o,y:r}]}function Xe(e,n){const{x:t,y:r}=e;let o=!1;for(let a=0,i=n.length-1;a<n.length;i=a++){const u=n[a].x,c=n[a].y,d=n[i].x,l=n[i].y;c>r!=l>r&&t<(d-u)*(r-c)/(l-c)+u&&(o=!o)}return o}function qe(e){const n=e.slice();return n.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Ke(n)}function Ke(e){if(e.length<=1)return e.slice();const n=[];for(let r=0;r<e.length;r++){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}n.pop();const t=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}return t.pop(),n.length===1&&t.length===1&&n[0].x===t[0].x&&n[0].y===t[0].y?n:n.concat(t)}var Ze=ne,Je=re,Qe=oe,et=se;const tt=me({"0%":{opacity:0,transform:"scale(0) translateY(-4px)"},"100%":{opacity:1,transform:"scale(1) translateY(0px)"}}),nt=Ce(et,{display:"flex",alignItems:"center",fontSize:"13px",padding:"$2 $3",backgroundColor:"$gray2",borderRadius:"$4",color:"$gray12",boxShadow:"inset 0 0 0 1px $colors$grayA4",transformOrigin:"var(--radix-tooltip-content-transform-origin)",animation:`${tt} 0.2s ease forwards`});function st(e){const{children:n,content:t,side:r="bottom",sideOffset:o=6,delayDuration:a=0,...i}=e;return f.jsx(te,{children:f.jsxs(Ze,{delayDuration:a,...i,children:[f.jsx(Je,{asChild:!0,children:n}),f.jsx(Qe,{children:f.jsx(nt,{sideOffset:o,side:r,children:t})})]})})}export{st as T};
|
|
1
|
+
import{aM as s,b9 as _,d3 as le,av as f,bc as D,bb as g,d4 as G,d5 as ce,d6 as ue,d7 as de,d8 as fe,b5 as pe,d9 as Y,da as ve,db as z,dc as he,dd as ye,bd as xe,b8 as Ee,de as be,bh as me,aH as Ce}from"./index-b126bb6b.js";var ge="DismissableLayer",I="dismissableLayer.update",Te="dismissableLayer.pointerDownOutside",Pe="dismissableLayer.focusOutside",V,X=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),q=s.forwardRef((e,n)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:u,...c}=e,d=s.useContext(X),[l,h]=s.useState(null),v=(l==null?void 0:l.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=s.useState({}),x=_(n,p=>h(p)),E=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=E.indexOf(b),m=l?E.indexOf(l):-1,P=d.layersWithOutsidePointerEventsDisabled.size>0,T=m>=C,w=Oe(p=>{const A=p.target,$=[...d.branches].some(k=>k.contains(A));!T||$||(o==null||o(p),i==null||i(p),p.defaultPrevented||u==null||u())},v),O=De(p=>{const A=p.target;[...d.branches].some(k=>k.contains(A))||(a==null||a(p),i==null||i(p),p.defaultPrevented||u==null||u())},v);return le(p=>{m===d.layers.size-1&&(r==null||r(p),!p.defaultPrevented&&u&&(p.preventDefault(),u()))},v),s.useEffect(()=>{if(l)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(V=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(l)),d.layers.add(l),U(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=V)}},[l,v,t,d]),s.useEffect(()=>()=>{l&&(d.layers.delete(l),d.layersWithOutsidePointerEventsDisabled.delete(l),U())},[l,d]),s.useEffect(()=>{const p=()=>y({});return document.addEventListener(I,p),()=>document.removeEventListener(I,p)},[]),f.jsx(D.div,{...c,ref:x,style:{pointerEvents:P?T?"auto":"none":void 0,...e.style},onFocusCapture:g(e.onFocusCapture,O.onFocusCapture),onBlurCapture:g(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:g(e.onPointerDownCapture,w.onPointerDownCapture)})});q.displayName=ge;var we="DismissableLayerBranch",Re=s.forwardRef((e,n)=>{const t=s.useContext(X),r=s.useRef(null),o=_(n,r);return s.useEffect(()=>{const a=r.current;if(a)return t.branches.add(a),()=>{t.branches.delete(a)}},[t.branches]),f.jsx(D.div,{...e,ref:o})});Re.displayName=we;function Oe(e,n=globalThis==null?void 0:globalThis.document){const t=G(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const a=u=>{if(u.target&&!r.current){let c=function(){K(Te,t,d,{discrete:!0})};const d={originalEvent:u};u.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=c,n.addEventListener("click",o.current,{once:!0})):c()}else n.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),n.removeEventListener("pointerdown",a),n.removeEventListener("click",o.current)}},[n,t]),{onPointerDownCapture:()=>r.current=!0}}function De(e,n=globalThis==null?void 0:globalThis.document){const t=G(e),r=s.useRef(!1);return s.useEffect(()=>{const o=a=>{a.target&&!r.current&&K(Pe,t,{originalEvent:a},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function U(){const e=new CustomEvent(I);document.dispatchEvent(e)}function K(e,n,t,{discrete:r}){const o=t.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});n&&o.addEventListener(e,n,{once:!0}),r?ce(o,a):o.dispatchEvent(a)}var Le="Portal",Z=s.forwardRef((e,n)=>{var u;const{container:t,...r}=e,[o,a]=s.useState(!1);ue(()=>a(!0),[]);const i=t||o&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return i?de.createPortal(f.jsx(D.div,{...r,ref:n}),i):null});Z.displayName=Le;var Ae=s.forwardRef((e,n)=>{const{children:t,...r}=e,o=s.Children.toArray(t),a=o.find(_e);if(a){const i=a.props.children,u=o.map(c=>c===a?s.Children.count(i)>1?s.Children.only(null):s.isValidElement(i)?i.props.children:null:c);return f.jsx(M,{...r,ref:n,children:s.isValidElement(i)?s.cloneElement(i,void 0,u):null})}return f.jsx(M,{...r,ref:n,children:t})});Ae.displayName="Slot";var M=s.forwardRef((e,n)=>{const{children:t,...r}=e;if(s.isValidElement(t)){const o=Se(t);return s.cloneElement(t,{...je(r,t.props),ref:n?fe(n,o):o})}return s.Children.count(t)>1?s.Children.only(null):null});M.displayName="SlotClone";var J=({children:e})=>f.jsx(f.Fragment,{children:e});function _e(e){return s.isValidElement(e)&&e.type===J}function je(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...u)=>{a(...u),o(...u)}:o&&(t[r]=o):r==="style"?t[r]={...o,...a}:r==="className"&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function Se(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Ne="VisuallyHidden",Q=s.forwardRef((e,n)=>f.jsx(D.span,{...e,ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Q.displayName=Ne;var ke=Q,[j,ot]=pe("Tooltip",[Y]),S=Y(),ee="TooltipProvider",Ie=700,H="tooltip.open",[Me,W]=j(ee),te=e=>{const{__scopeTooltip:n,delayDuration:t=Ie,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,u]=s.useState(!0),c=s.useRef(!1),d=s.useRef(0);return s.useEffect(()=>{const l=d.current;return()=>window.clearTimeout(l)},[]),f.jsx(Me,{scope:n,isOpenDelayed:i,delayDuration:t,onOpen:s.useCallback(()=>{window.clearTimeout(d.current),u(!1)},[]),onClose:s.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>u(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:s.useCallback(l=>{c.current=l},[]),disableHoverableContent:o,children:a})};te.displayName=ee;var N="Tooltip",[He,L]=j(N),ne=e=>{const{__scopeTooltip:n,children:t,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:u}=e,c=W(N,e.__scopeTooltip),d=S(n),[l,h]=s.useState(null),v=xe(),y=s.useRef(0),x=i??c.disableHoverableContent,E=u??c.delayDuration,b=s.useRef(!1),[C=!1,m]=Ee({prop:r,defaultProp:o,onChange:p=>{p?(c.onOpen(),document.dispatchEvent(new CustomEvent(H))):c.onClose(),a==null||a(p)}}),P=s.useMemo(()=>C?b.current?"delayed-open":"instant-open":"closed",[C]),T=s.useCallback(()=>{window.clearTimeout(y.current),b.current=!1,m(!0)},[m]),w=s.useCallback(()=>{window.clearTimeout(y.current),m(!1)},[m]),O=s.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{b.current=!0,m(!0)},E)},[E,m]);return s.useEffect(()=>()=>window.clearTimeout(y.current),[]),f.jsx(be,{...d,children:f.jsx(He,{scope:n,contentId:v,open:C,stateAttribute:P,trigger:l,onTriggerChange:h,onTriggerEnter:s.useCallback(()=>{c.isOpenDelayed?O():T()},[c.isOpenDelayed,O,T]),onTriggerLeave:s.useCallback(()=>{x?w():window.clearTimeout(y.current)},[w,x]),onOpen:T,onClose:w,disableHoverableContent:x,children:t})})};ne.displayName=N;var B="TooltipTrigger",re=s.forwardRef((e,n)=>{const{__scopeTooltip:t,...r}=e,o=L(B,t),a=W(B,t),i=S(t),u=s.useRef(null),c=_(n,u,o.onTriggerChange),d=s.useRef(!1),l=s.useRef(!1),h=s.useCallback(()=>d.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),f.jsx(ve,{asChild:!0,...i,children:f.jsx(D.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:g(e.onPointerMove,v=>{v.pointerType!=="touch"&&!l.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),l.current=!0)}),onPointerLeave:g(e.onPointerLeave,()=>{o.onTriggerLeave(),l.current=!1}),onPointerDown:g(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:g(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:g(e.onBlur,o.onClose),onClick:g(e.onClick,o.onClose)})})});re.displayName=B;var F="TooltipPortal",[Be,We]=j(F,{forceMount:void 0}),oe=e=>{const{__scopeTooltip:n,forceMount:t,children:r,container:o}=e,a=L(F,n);return f.jsx(Be,{scope:n,forceMount:t,children:f.jsx(z,{present:t||a.open,children:f.jsx(Z,{asChild:!0,container:o,children:r})})})};oe.displayName=F;var R="TooltipContent",se=s.forwardRef((e,n)=>{const t=We(R,e.__scopeTooltip),{forceMount:r=t.forceMount,side:o="top",...a}=e,i=L(R,e.__scopeTooltip);return f.jsx(z,{present:r||i.open,children:i.disableHoverableContent?f.jsx(ae,{side:o,...a,ref:n}):f.jsx(Fe,{side:o,...a,ref:n})})}),Fe=s.forwardRef((e,n)=>{const t=L(R,e.__scopeTooltip),r=W(R,e.__scopeTooltip),o=s.useRef(null),a=_(n,o),[i,u]=s.useState(null),{trigger:c,onClose:d}=t,l=o.current,{onPointerInTransitChange:h}=r,v=s.useCallback(()=>{u(null),h(!1)},[h]),y=s.useCallback((x,E)=>{const b=x.currentTarget,C={x:x.clientX,y:x.clientY},m=Ge(C,b.getBoundingClientRect()),P=Ye(C,m),T=ze(E.getBoundingClientRect()),w=qe([...P,...T]);u(w),h(!0)},[h]);return s.useEffect(()=>()=>v(),[v]),s.useEffect(()=>{if(c&&l){const x=b=>y(b,l),E=b=>y(b,c);return c.addEventListener("pointerleave",x),l.addEventListener("pointerleave",E),()=>{c.removeEventListener("pointerleave",x),l.removeEventListener("pointerleave",E)}}},[c,l,y,v]),s.useEffect(()=>{if(i){const x=E=>{const b=E.target,C={x:E.clientX,y:E.clientY},m=(c==null?void 0:c.contains(b))||(l==null?void 0:l.contains(b)),P=!Xe(C,i);m?v():P&&(v(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,l,i,d,v]),f.jsx(ae,{...e,ref:a})}),[$e,Ve]=j(N,{isInside:!1}),ae=s.forwardRef((e,n)=>{const{__scopeTooltip:t,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...u}=e,c=L(R,t),d=S(t),{onClose:l}=c;return s.useEffect(()=>(document.addEventListener(H,l),()=>document.removeEventListener(H,l)),[l]),s.useEffect(()=>{if(c.trigger){const h=v=>{const y=v.target;y!=null&&y.contains(c.trigger)&&l()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,l]),f.jsx(q,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:l,children:f.jsxs(he,{"data-state":c.stateAttribute,...d,...u,ref:n,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[f.jsx(J,{children:r}),f.jsx($e,{scope:t,isInside:!0,children:f.jsx(ke,{id:c.contentId,role:"tooltip",children:o||r})})]})})});se.displayName=R;var ie="TooltipArrow",Ue=s.forwardRef((e,n)=>{const{__scopeTooltip:t,...r}=e,o=S(t);return Ve(ie,t).isInside?null:f.jsx(ye,{...o,...r,ref:n})});Ue.displayName=ie;function Ge(e,n){const t=Math.abs(n.top-e.y),r=Math.abs(n.bottom-e.y),o=Math.abs(n.right-e.x),a=Math.abs(n.left-e.x);switch(Math.min(t,r,o,a)){case a:return"left";case o:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ye(e,n,t=5){const r=[];switch(n){case"top":r.push({x:e.x-t,y:e.y+t},{x:e.x+t,y:e.y+t});break;case"bottom":r.push({x:e.x-t,y:e.y-t},{x:e.x+t,y:e.y-t});break;case"left":r.push({x:e.x+t,y:e.y-t},{x:e.x+t,y:e.y+t});break;case"right":r.push({x:e.x-t,y:e.y-t},{x:e.x-t,y:e.y+t});break}return r}function ze(e){const{top:n,right:t,bottom:r,left:o}=e;return[{x:o,y:n},{x:t,y:n},{x:t,y:r},{x:o,y:r}]}function Xe(e,n){const{x:t,y:r}=e;let o=!1;for(let a=0,i=n.length-1;a<n.length;i=a++){const u=n[a].x,c=n[a].y,d=n[i].x,l=n[i].y;c>r!=l>r&&t<(d-u)*(r-c)/(l-c)+u&&(o=!o)}return o}function qe(e){const n=e.slice();return n.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Ke(n)}function Ke(e){if(e.length<=1)return e.slice();const n=[];for(let r=0;r<e.length;r++){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}n.pop();const t=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}return t.pop(),n.length===1&&t.length===1&&n[0].x===t[0].x&&n[0].y===t[0].y?n:n.concat(t)}var Ze=ne,Je=re,Qe=oe,et=se;const tt=me({"0%":{opacity:0,transform:"scale(0) translateY(-4px)"},"100%":{opacity:1,transform:"scale(1) translateY(0px)"}}),nt=Ce(et,{display:"flex",alignItems:"center",fontSize:"13px",padding:"$2 $3",backgroundColor:"$gray2",borderRadius:"$4",color:"$gray12",boxShadow:"inset 0 0 0 1px $colors$grayA4",transformOrigin:"var(--radix-tooltip-content-transform-origin)",animation:`${tt} 0.2s ease forwards`});function st(e){const{children:n,content:t,side:r="bottom",sideOffset:o=6,delayDuration:a=0,...i}=e;return f.jsx(te,{children:f.jsxs(Ze,{delayDuration:a,...i,children:[f.jsx(Je,{asChild:!0,children:n}),f.jsx(Qe,{children:f.jsx(nt,{sideOffset:o,side:r,children:t})})]})})}export{st as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var j=Object.defineProperty;var F=(t,e,r)=>e in t?j(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var u=(t,e,r)=>(F(t,typeof e!="symbol"?e+"":e,r),r);import{aJ as O,aK as I,aM as S,av as p,aw as A,
|
|
1
|
+
var j=Object.defineProperty;var F=(t,e,r)=>e in t?j(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var u=(t,e,r)=>(F(t,typeof e!="symbol"?e+"":e,r),r);import{aJ as O,aK as I,aM as S,av as p,aw as A,c9 as L,ca as K,cb as Y,cc as z,cd as N,ce as B,cf as M,b3 as U,cg as H,aO as J,E as W,ch as D,p as P,C as f,s as h,f as E,t as $,e as q,aE as Q}from"./index-b126bb6b.js";import{u as X}from"./index-c8ed2a45.js";import{c as Z}from"./Component-398551a0.js";import"./postmen-3b48c572.js";import{B as k}from"./index-5e4dedda.js";import{c as tt}from"./createOnModelChange-89f572a6.js";import{R as et}from"./ReferencedMaterial-49a7cbcc.js";import"./Menu-36c201c0.js";import"./MaterialInspector-3fb471d9.js";import"./IconPointFilled-3ba6d082.js";import"./createReactComponent-baa41397.js";const v=(t=[[0,1],[1,1]])=>({class:"ParticleCurve",constructParams:t.map(([e,r])=>({class:"CurveKey",constructParams:[e,r]}))}),w=t=>({class:"ParticleCurve",constructParams:t.constructParams.map(e=>({class:"CurveKey",constructParams:[e.constructParams[0],e.constructParams[1]]})),editorYTickScale:t.editorYTickScale}),G=(t,e=v())=>{var r;return(r=t==null?void 0:t.constructParams)!=null&&r.length?w(t):w(e)},rt=(t,e=v())=>{const r=new L;return G(t,e).constructParams.forEach(a=>{r.addKey(new K(a.constructParams[0],a.constructParams[1]))}),r},at=(t,e=v())=>(r,i,a)=>{const c=G(a,e);t(r,rt(c,e)),r[i]=c},it=O(({model:t,inspectorConfig:e,onModelChange:r})=>{const{t:i}=I(),a=e.property,c=e.defaultCurve??v(),n=G(t[a],c),b=n.editorYTickScale??e.yTickScale??1;S.useEffect(()=>{t[a]||(n.editorYTickScale=b,t[a]=n)},[]);const T=s=>{const l=t[a],V=s/b;t[a]={...l,constructParams:l.constructParams.map(x=>({...x,constructParams:[x.constructParams[0],x.constructParams[1]*V]})),editorYTickScale:s},r==null||r(a)},o=s=>{!s||s.length>4||(t[a]={class:"ParticleCurve",constructParams:s.map(l=>({class:"CurveKey",constructParams:[l.x,l.y*b]})),editorYTickScale:b},r==null||r(a))};return p.jsx(A,{label:i(e.label||a),info:i(e.info),children:p.jsx(k,{algo:"linear",yRangeMode:e.yRangeMode,yTickScale:b,yTickScaleMin:e.yTickScaleMin,yTickScaleMax:e.yTickScaleMax,onYTickScaleChange:T,onYTickScaleCommit:()=>r==null?void 0:r(a),value:n.constructParams.map(s=>({x:s.constructParams[0],y:s.constructParams[1]/b})),onChange:o})})}),g=(t=[{time:0,color:{r:1,g:1,b:1,a:1}},{time:1,color:{r:1,g:1,b:1,a:1}}],e=[{time:0,alpha:1},{time:1,alpha:1}])=>({class:"ParticleGradient",constructParams:[t.map(r=>({time:r.time,color:{r:r.color.r,g:r.color.g,b:r.color.b,a:r.color.a}})),e.map(r=>({time:r.time,alpha:r.alpha}))]}),_=t=>g(t.constructParams[0],t.constructParams[1]),R=(t,e=g())=>{var r,i,a;return!((i=(r=t==null?void 0:t.constructParams)==null?void 0:r[0])!=null&&i.length)||!((a=t.constructParams[1])!=null&&a.length)?_(e):_(t)},ct=(t,e=g())=>{const r=R(t,e);return new B(r.constructParams[0].map(i=>new M(i.time,new U(i.color.r,i.color.g,i.color.b,i.color.a))),r.constructParams[1].map(i=>new H(i.time,i.alpha)))},nt=(t,e=g())=>(r,i,a)=>{const c=R(a,e);t(r,ct(c,e)),r[i]=c},ot=O(({model:t,inspectorConfig:e,onModelChange:r})=>{const{t:i}=I(),a=e.property,c=e.defaultGradient??g(),n=R(t[a],c);S.useEffect(()=>{t[a]||(t[a]=n)},[]);const b={color:n.constructParams[0].map(o=>({value:Y(o.color),position:o.time})),alpha:n.constructParams[1].map(o=>({value:{r:255,g:255,b:255,a:o.alpha},position:o.time}))},T=o=>{if(!o||o.color.length>4||o.alpha.length>4)return;const s={class:"ParticleGradient",constructParams:[o.color.map(l=>({time:l.position,color:N(l.value)})),o.alpha.map(l=>({time:l.position,alpha:l.value.a}))]};t[a]=s,r==null||r(a)};return p.jsx(A,{label:i(e.label||a),info:i(e.info),children:p.jsx(z,{fullsize:!0,mode:"particle",value:b,onValueChange:T})})}),st=O(function(t){const[e,r]=S.useState(null),i=t.data,{assetStore:a,inspectorFacade:c}=X();return S.useEffect(()=>{a.getAssetByRef(i.material).then(n=>{r(n)})},[i.material]),p.jsxs(p.Fragment,{children:[p.jsx(J.List,{model:i,configs:i.formSchema.items,onModelChange:tt("component",i.id,c,i)}),e&&p.jsx(p.Fragment,{children:p.jsx(et,{materialAsset:e})})]})});var lt=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,d=(t,e,r,i)=>{for(var a=i>1?void 0:i?mt(e,r):e,c=t.length-1,n;c>=0;c--)(n=t[c])&&(a=(i?n(e,r,a):n(a))||a);return i&&a&<(e,r,a),a};const ut="0000205",y=v([[0,1],[1,1]]),C=g([{time:0,color:{r:1,g:1,b:1,a:1}},{time:1,color:{r:1,g:1,b:1,a:1}}],[{time:0,alpha:1},{time:1,alpha:1}]);let m=class extends W{constructor(){super(...arguments);u(this,"emitting",!0);u(this,"time",5);u(this,"minVertexDistance",.1);u(this,"widthCurve",y);u(this,"colorGradient",C);u(this,"textureMode",D.Stretch);u(this,"textureScale",{x:1,y:1});u(this,"material",{refId:ut});u(this,"priority",0)}};d([P({type:f.Toggle,bindPath:"emitting",label:"trail.emitting.label",info:"trail.emitting.info"}),h()],m.prototype,"emitting",2);d([P({type:f.Number,bindPath:"time",min:0,dragStep:.1,label:"trail.time.label",info:"trail.time.info"}),h()],m.prototype,"time",2);d([P({type:f.Number,bindPath:"minVertexDistance",min:0,dragStep:.01,label:"trail.min-vertex-distance.label",info:"trail.min-vertex-distance.info"}),h()],m.prototype,"minVertexDistance",2);d([E({getPath:"widthCurve",setPath:"widthCurve"}),P({customComponent:it,label:"trail.width-curve.label",info:"trail.width-curve.info",defaultCurve:y,yRangeMode:"positive",onChange:at((t,e)=>{t.setBoundPathValue("widthCurve",f.Input,e)},y)}),h()],m.prototype,"widthCurve",2);d([E({getPath:"colorGradient",setPath:"colorGradient"}),P({customComponent:ot,label:"trail.color-gradient.label",info:"trail.color-gradient.info",defaultGradient:C,onChange:nt((t,e)=>{t.setBoundPathValue("colorGradient",f.Input,e)},C)}),h()],m.prototype,"colorGradient",2);d([P({type:f.Select,bindPath:"textureMode",label:"trail.texture-mode.label",info:"trail.texture-mode.info",options:$(D,void 0,t=>q(`trail.texture-mode.${t.toLowerCase()}`))}),h()],m.prototype,"textureMode",2);d([P({type:f.Vector2,bindPath:"textureScale",min:.01,dragStep:.1,label:"trail.texture-scale.label",info:"trail.texture-scale.info"}),h()],m.prototype,"textureScale",2);d([E({engineKey:"setMaterial",setPath:"setMaterial()",getPath:"getMaterial()",valueType:Q.ReferResource,getEngineValue:t=>t.getMaterial()}),P({type:f.AssetPicker,assetType:"Material",label:"trail.material.label",info:"trail.material.info",customFilter:t=>{var e;return((e=t.engineObject.shader)==null?void 0:e.name)==="Effect/Trail"}}),h()],m.prototype,"material",2);d([P({type:f.Number,bindPath:"priority",min:0,dragStep:1,label:"trail.priority.label",info:"trail.priority.info"}),h()],m.prototype,"priority",2);m=d([Z({type:"TrailRenderer",customInspector:st,componentsMenu:{group:"effects",label:"component.trail-renderer.title"}})],m);export{m as TrailRendererComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var w=Object.defineProperty;var C=(n,e,t)=>e in n?w(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var c=(n,e,t)=>(C(n,typeof e!="symbol"?e+"":e,t),t);import{aJ as V,bm as P,aK as D,av as l,bn as O,aL as A,bo as B,p as f,e as p,C as T,s as u,E as M}from"./index-
|
|
1
|
+
var w=Object.defineProperty;var C=(n,e,t)=>e in n?w(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var c=(n,e,t)=>(C(n,typeof e!="symbol"?e+"":e,t),t);import{aJ as V,bm as P,aK as D,av as l,bn as O,aL as A,bo as B,p as f,e as p,C as T,s as u,E as M}from"./index-b126bb6b.js";import"./index-c8ed2a45.js";import"./postmen-3b48c572.js";function F(n){return l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",...n,children:l.jsx("path",{fill:"currentColor",d:"M3 9a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h3a1 1 0 0 0 0-2H5a3 3 0 0 0-3 3v3a1 1 0 0 0 1 1m5 11H5a1 1 0 0 1-1-1v-3a1 1 0 0 0-2 0v3a3 3 0 0 0 3 3h3a1 1 0 0 0 0-2m9-7a1 1 0 0 0 0-2h-1.14A4 4 0 0 0 13 8.14V7a1 1 0 0 0-2 0v1.14A4 4 0 0 0 8.14 11H7a1 1 0 0 0 0 2h1.14A4 4 0 0 0 11 15.86V17a1 1 0 0 0 2 0v-1.14A4 4 0 0 0 15.86 13Zm-5 1a2 2 0 1 1 2-2a2 2 0 0 1-2 2m9 1a1 1 0 0 0-1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 0 0 2h3a3 3 0 0 0 3-3v-3a1 1 0 0 0-1-1M19 2h-3a1 1 0 0 0 0 2h3a1 1 0 0 1 1 1v3a1 1 0 0 0 2 0V5a3 3 0 0 0-3-3"})})}const I=V(P),S=V(({inspectorConfig:n,models:e,onModelChange:t,model:o})=>{const{label:r,property:a,disabled:h}=n,{t:v}=D(),g=!o;e=e||[o];const d=e[0],E=o.root.sceneStore.rootEntity.children,z=e.map(i=>i.id);function _(i){const b=d.engineObject,y=o.root.sceneStore.getEntityModel(i);if(!y)return;const j=y.engineObject.getComponent(B);b.lookAt(j.worldPosition),d.syncRotation()}return l.jsx(I,{disabled:h,label:v(r),value:g?{x:null,y:null,z:null}:o[a],onChange:(i,b)=>{e.forEach(y=>y[a]=i),t&&t(a,i)},formEndSlot:l.jsx(O,{trigger:l.jsx(A,{variant:"subtle",corner:!0,children:l.jsx(F,{style:{width:"13px",height:"13px"}})}),disabledEntities:z,entities:E,label:r,onSelect:_})})});var H=Object.defineProperty,R=Object.getOwnPropertyDescriptor,x=(n,e,t,o)=>{for(var r=o>1?void 0:o?R(e,t):e,a=n.length-1,h;a>=0;a--)(h=n[a])&&(r=(o?h(e,t,r):h(r))||r);return o&&r&&H(e,t,r),r},s;const m=(s=class extends M{constructor(){super(...arguments);c(this,"position",{x:0,y:0,z:0});c(this,"rotation",{x:0,y:0,z:0});c(this,"scale",{x:1,y:1,z:1})}static equalVector3(t,o){return t.x===o.x&&t.y===o.y&&t.z===o.z}static roundToThreeDecimal(t){return Math.round(t*1e3)/1e3}static roundVector2(t,o){return o.x=this.roundToThreeDecimal(t.x),o.y=this.roundToThreeDecimal(t.y),o}static copyVector2(t,o){o.x=t.x,o.y=t.y}static roundVector3(t,o){return o.x=this.roundToThreeDecimal(t.x),o.y=this.roundToThreeDecimal(t.y),o.z=this.roundToThreeDecimal(t.z),o}static copyVector3(t,o){o.x=t.x,o.y=t.y,o.z=t.z}syncTransformToEditor(t){this._syncTransformToEditor("position",t.position),this._syncTransformToEditor("rotation",t.rotation),this._syncTransformToEditor("scale",t.scale)}_syncTransformToEditor(t,o){const r=this[t],a=s.roundVector3(o,s._tempVector3);s.equalVector3(a,r)||(s.copyVector3(a,r),this.notifyPropertyChange(t,!1))}},c(s,"_tempVector2",{x:0,y:0}),c(s,"_tempVector3",{x:0,y:0,z:0}),s);x([f({label:p("transform.position.title"),info:p("transform.position.info"),type:T.Vector3,bindPath:"position"}),u()],m.prototype,"position",2);x([f({label:p("transform.rotation.title"),info:p("transform.rotation.info"),customComponent:S,type:T.Vector3,bindPath:"rotation"}),u()],m.prototype,"rotation",2);x([f({label:p("transform.scale.title"),info:p("transform.scale.info"),type:T.Vector3,constrainable:!0,bindPath:"scale"}),u()],m.prototype,"scale",2);let Z=m;export{Z as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var p=Object.defineProperty;var h=(r,t,n)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var m=(r,t,n)=>(h(r,typeof t!="symbol"?t+"":t,n),n);import{aC as l,e as s}from"./index-
|
|
1
|
+
var p=Object.defineProperty;var h=(r,t,n)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var m=(r,t,n)=>(h(r,typeof t!="symbol"?t+"":t,n),n);import{aC as l,e as s}from"./index-b126bb6b.js";import"./index-c8ed2a45.js";import{c as u}from"./Component-398551a0.js";import"./postmen-3b48c572.js";import{T}from"./TransformBaseComponent-d26ff236.js";var d=Object.defineProperty,g=Object.getOwnPropertyDescriptor,f=(r,t,n,o)=>{for(var e=o>1?void 0:o?g(t,n):t,i=r.length-1,a;i>=0;i--)(a=r[i])&&(e=(o?a(t,n,e):a(e))||e);return o&&e&&d(t,n,e),e};let c=class extends T{constructor(t,n){super(t,n);m(this,"syncEngineToEditor",l(()=>{const{position:t,rotation:n,scale:o}=this.engineObject;this._syncTransformToEditor("position",t),this._syncTransformToEditor("rotation",n),this._syncTransformToEditor("scale",o)}))}syncRotation(){this._syncTransformToEditor("rotation",this.engineObject.rotation)}checkCanDisable(){return{code:1,msg:s("transform.error.cant-disable")}}checkCanDeletable(){return{code:1,msg:s("transform.error.cant-delete")}}get ignoreToJSON(){return!0}onAddToEntity(t){for(let n=0;n<t.components.length;n++){const o=t.components[n];(o.type==="Transform"||o.type==="UITransform")&&o!==this&&t.removeComponent(o)}t.setComponentIndex(this,0)}getAnimatableProperties(){let t=[];const n=o=>{if(!(o!=null&&o.length))return t;o.filter(e=>!e.when||e.when(this)).forEach(e=>{e.type==="Group"?n(e.children):t.push({property:e.property,label:s(e.label),type:e.type})})};return n(this.formSchema.items),t=t.concat(this._additionAnimatableProperties),t}};f([l],c.prototype,"syncRotation",1);c=f([u({type:"Transform",componentsMenu:{hide:!0,label:s("component.transform.title")}})],c);export{c as TransformComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var f=Object.defineProperty;var d=(s,e,t)=>e in s?f(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var p=(s,e,t)=>(d(s,typeof e!="symbol"?e+"":e,t),t);import{N as y,j as R,$ as u,a_ as w,a$ as b,aT as U,p as _,e as c,C as j,n as x,o as I}from"./index-
|
|
1
|
+
var f=Object.defineProperty;var d=(s,e,t)=>e in s?f(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var p=(s,e,t)=>(d(s,typeof e!="symbol"?e+"":e,t),t);import{N as y,j as R,$ as u,a_ as w,a$ as b,aT as U,p as _,e as c,C as j,n as x,o as I}from"./index-b126bb6b.js";import{X as O}from"./module-8efda49c.js";import"./index-c8ed2a45.js";import"./postmen-3b48c572.js";import{A as v}from"./AssetViewer-8338dfe1.js";import{e as W}from"./encode-ac4bb64e.js";import"./meshopt_simplifier.module-cd99529d.js";class X extends v{constructor(){super()}setViewAsset(e,t){const a=t.createChild("sprite_entity"),r=a.addComponent(y);r.sprite=e._sprite,this._entity=a}}var A=Object.defineProperty,B=Object.getOwnPropertyDescriptor,g=(s,e,t,a)=>{for(var r=a>1?void 0:a?B(e,t):e,i=s.length-1,n;i>=0;i--)(n=s[i])&&(r=(a?n(e,t,r):n(r))||r);return a&&r&&A(e,t,r),r};let h=class extends R{constructor(e){super(e);p(this,"imgUrl");p(this,"_sprite");p(this,"physicalWidth",.1);this._sprite=new u(this.engine)}async initByMain(e){this.imgUrl&&(URL.revokeObjectURL(this.imgUrl),this.imgUrl=""),await new Promise((t,a)=>{const{_sprite:r}=this,i=new Image;i.crossOrigin="*";const n=URL.createObjectURL(e),m=()=>{URL.revokeObjectURL(n),this.imgUrl===n&&(this.imgUrl="")};this.imgUrl=i.src=n,i.onload=()=>{try{const o=new O("reference",i,i.width/100),l=new w(this.engine,i.width,i.height,b.R8G8B8A8,!1);l.setImageSource(i),r.texture=l,r.width=i.width/100,r.height=i.height/100,this.physicalWidth=o.physicalWidth=this.meta.physicalWidth,this.bindEngineObject(o),t(this)}catch(o){a(o)}finally{m()}},i.onerror=o=>{m(),a(o)}})}initByEngineObject(e){this.bindEngineObject(e),this.physicalWidth=e.physicalWidth}};g([U(),_({label:c("xr.image.width.label"),info:c("xr.image.width.info"),type:j.Number})],h.prototype,"physicalWidth",2);h=g([x({type:"XRReferenceImage",label:c("asset.xr-reference-image.title"),loaderType:"XRReferenceImage",importMenuConfig:{type:I.Upload,tooltip:"支持多选",accept:".png,.jpg,.jpeg,.webp",multiple:!0},viewer:X,defaultName:"ReferenceImage",extname:"bin",async bundle({content:s,meta:e,name:t}){const a=await s.arrayBuffer();return{type:"XRReferenceImage",content:new Blob([W([a],{type:"XRReferenceImage",name:t,physicalWidth:e.physicalWidth})])}}})],h);export{h as XRReferenceImageAsset};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var l=Object.defineProperty;var u=(r,e,o)=>e in r?l(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o;var n=(r,e,o)=>(u(r,typeof e!="symbol"?e+"":e,o),o);import{E as c,s as v,p as d,C as f}from"./index-
|
|
1
|
+
var l=Object.defineProperty;var u=(r,e,o)=>e in r?l(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o;var n=(r,e,o)=>(u(r,typeof e!="symbol"?e+"":e,o),o);import{E as c,s as v,p as d,C as f}from"./index-b126bb6b.js";import"./index-c8ed2a45.js";import{c as _}from"./Component-398551a0.js";import"./postmen-3b48c572.js";var y=Object.defineProperty,C=Object.getOwnPropertyDescriptor,a=(r,e,o,t)=>{for(var p=t>1?void 0:t?C(e,o):e,s=r.length-1,m;s>=0;s--)(m=r[s])&&(p=(t?m(e,o,p):m(p))||p);return t&&p&&y(e,o,p),p};let i=class extends c{constructor(e,o){super(e,o);n(this,"volume",0)}};a([v(),d({type:f.Slider,min:0,max:10,dragStep:.01,bindPath:"volume"})],i.prototype,"volume",2);i=a([_({type:"Audio",class:"AudioSource"})],i);export{i as AudioComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aG as g}from"./index-
|
|
1
|
+
import{aG as g}from"./index-b126bb6b.js";function C(h,c,a,t,o){return(n,s)=>{switch(h){case"scene":{const e=g(t,n,s);a.sceneChange(e.path,e.value);break}case"entity":{const e=s===void 0?t[n]:s;a.entityChange(c,n,e);break}case"component":{const e=s===void 0?t[n]:s;a.componentChange(c,n,e);break}case"asset":{const e=s===void 0?t[n]:s;a.assetChange(c,n,e,o);break}}}}export{C as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as d,c as h,b as y,a as T,S as f}from"./ShaderAsset-f4eead79.js";import{S as E}from"./ShaderUIScriptAsset-3c731f3b.js";import"./index-b126bb6b.js";import"./index-c8ed2a45.js";import"./postmen-3b48c572.js";import"./meshopt_simplifier.module-cd99529d.js";import"./shader-data-utils-c90e48b8.js";import"./IconPointFilled-3ba6d082.js";import"./createReactComponent-baa41397.js";import"./index-cd09e78a.js";export{d as EShaderPropertyType,h as ShaderAsset,y as ShaderPropertyEnumType,T as ShaderPropertyRangeType,f as ShaderTemplateConfigs,E as ShaderUIScript};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as a,D as C,F as s,H as l,P as c,a as S,S as d}from"./PhysicsStore-ab32886e.js";import"./index-b126bb6b.js";import"./index-c8ed2a45.js";import"./Component-398551a0.js";import"./postmen-3b48c572.js";import"./FormItemArray-9ca61884.js";import"./Accordion-4afac60c.js";export{a as CharacterControllerComponent,C as DynamicColliderComponent,s as FixedJointComponent,l as HingeJointComponent,c as PhysicsStore,S as SpringJointComponent,d as StaticColliderComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty;var f=(r,e,t)=>e in r?m(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var S=(r,e,t)=>(f(r,typeof e!="symbol"?e+"":e,t),t);import{a as s,E as o,b as u}from"./ShaderUIScriptAsset-
|
|
1
|
+
var m=Object.defineProperty;var f=(r,e,t)=>e in r?m(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var S=(r,e,t)=>(f(r,typeof e!="symbol"?e+"":e,t),t);import{a as s,E as o,b as u}from"./ShaderUIScriptAsset-3c731f3b.js";import{t as P}from"./ShaderUIScriptAsset-3c731f3b.js";import{q as g,aT as h}from"./index-b126bb6b.js";import"./index-c8ed2a45.js";import"./postmen-3b48c572.js";var l=Object.defineProperty,M=Object.getOwnPropertyDescriptor,b=(r,e,t,p)=>{for(var a=p>1?void 0:p?M(e,t):e,i=r.length-1,c;i>=0;i--)(c=r[i])&&(a=(p?c(e,t,a):c(a))||a);return p&&a&&l(e,t,a),a};class n extends s{constructor(){super(...arguments);S(this,"subType",o.StateMachine)}getMetaConfig(){let t=s.getRegisteredAssetMeta(s);return t={...t,defaultName:"StateMachineScript.ts",dragLayer:g.StateMachineScript},t}}b([h()],n.prototype,"subType",2);s.registerScriptConstruct(o.ShaderUI,u);s.registerScriptConstruct(o.StateMachine,n);export{o as EScriptSubType,s as ScriptAsset,u as ShaderUIScriptAsset,n as StateMachineScript,P as scriptTemplates};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{f2 as A,av as e,aM as d,b5 as ce,bc as Y,aH as m,f8 as he,aI as fe,ay as ue,eX as Q,ft as pe,b7 as V,fu as ge,b8 as me,bi as xe,fv as ve,fw as Ce,fx as we,fy as be,fz as ye,fA as $e,fB as q,fC as J,fD as je,fE as Re,fF as Se,fG as Ie,fH as ke,f4 as U,f3 as k,fI as Me,fJ as Pe}from"./index-b126bb6b.js";import{aL as C0,f5 as w0,gh as b0,gi as y0,fK as $0,g9 as j0,fM as R0,fL as S0,aP as I0,fN as k0,df as M0,aN as P0,cc as L0,gr as T0,gs as E0,f$ as V0,fY as Z0,f_ as H0,gj as F0,g1 as A0,g0 as D0,eY as B0,ga as z0,fZ as N0,f6 as O0,g2 as _0,g3 as U0,g4 as G0,bT as W0,bU as K0,bz as X0,g5 as Y0,bj as Q0,g6 as q0,gb as J0,g7 as e1,g8 as t1,gg as o1,gd as n1,ge as r1,gf as i1,gc as s1,gq as l1,fS as a1,fP as d1,go as c1,cb as h1,fU as f1,fT as u1,fV as p1,gn as g1,gl as m1,fR as x1,bh as v1,fX as C1,cd as w1,gp as b1,gk as y1,es as $1,fW as j1,gm as R1,fQ as S1,bX as I1,fO as k1,gt as M1}from"./index-b126bb6b.js";import{B as L1}from"./index-5e4dedda.js";import{A as E1,a as V1}from"./Accordion-4afac60c.js";import{S as H1}from"./Callout-155c30df.js";import{C as A1,D as D1,K as B1,d as z1,h as N1,j as O1,M as _1,i as U1,g as G1,e as W1,f as K1,a as X1,b as Y1,c as Q1,k as q1,S as J1}from"./Menu-36c201c0.js";import{T as to}from"./Tooltip-1bcb87b5.js";/**
|
|
2
2
|
* @license @tabler/icons-react v3.24.0 - MIT
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license.
|
|
@@ -13,9 +13,9 @@ import{f0 as A,av as e,aM as d,b5 as ce,bc as Y,aH as m,f6 as he,aI as fe,ay as
|
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the MIT license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/var Ve=A("outline","edit","IconEdit",[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]]);const Bt=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:t.size||100,height:t.size||100,viewBox:"0 0 446.39 458.52",version:"1.1",fill:"CurrentColor",...t,children:[e.jsx("defs",{children:e.jsx("clipPath",{id:"clip1",children:e.jsx("path",{d:"M 0 0 L 446.390625 0 L 446.390625 458.519531 L 0 458.519531 Z M 0 0 "})})}),e.jsxs("g",{id:"surface1",children:[e.jsx("path",{d:"M 328.820313 194.449219 C 328.820313 203.382813 321.578125 210.628906 312.644531 210.628906 C 303.710938 210.628906 296.464844 203.382813 296.464844 194.449219 C 296.464844 185.515625 303.710938 178.273438 312.644531 178.273438 C 321.578125 178.273438 328.820313 185.515625 328.820313 194.449219 "}),e.jsx("g",{clipPath:"url(#clip1)",clipRule:"nonzero",children:e.jsx("path",{d:"M 364.691406 171.390625 C 364.691406 129.925781 331.078125 96.3125 289.613281 96.3125 C 248.148438 96.3125 214.535156 129.925781 214.535156 171.390625 C 214.535156 212.855469 248.148438 246.46875 289.613281 246.46875 C 331.078125 246.46875 364.691406 212.855469 364.691406 171.390625 M 0 269.007813 C 0 147.867188 98.203125 49.664063 219.339844 49.664063 C 223.683594 49.664063 227.988281 49.804688 232.269531 50.054688 L 232.269531 0.00390625 C 350.523438 0.00390625 446.386719 96.714844 446.386719 214.96875 C 446.386719 233.636719 443.992188 251.742188 439.503906 269.007813 L 74.363281 269.007813 L 60.765625 269.089844 C 60.765625 339.925781 118.191406 397.355469 189.03125 397.355469 C 208.363281 397.355469 226.695313 393.070313 243.136719 385.410156 L 245.71875 397.683594 C 246.828125 402.972656 253.519531 404.691406 257.042969 400.589844 L 265.667969 390.546875 C 267.066406 388.921875 269.175781 388.085938 271.308594 388.3125 L 284.472656 389.726563 C 289.84375 390.304688 293.546875 384.46875 290.734375 379.855469 L 283.851563 368.546875 C 282.734375 366.714844 282.59375 364.449219 283.46875 362.492188 L 288.878906 350.410156 C 291.089844 345.476563 286.683594 340.152344 281.425781 341.402344 L 268.542969 344.457031 C 266.457031 344.949219 264.257813 344.386719 262.667969 342.945313 L 252.847656 334.066406 C 248.839844 330.441406 242.417969 332.988281 241.976563 338.371094 C 241.976563 338.371094 240.914063 351.425781 240.902344 351.566406 C 213.523438 349.976563 198.492188 325.605469 201.597656 305.414063 L 322.5625 305.414063 C 354.328125 305.414063 368.726563 337.375 355.578125 359.457031 C 323.035156 416.488281 267.324219 457.410156 189.199219 458.5 C 84.8125 459.960938 0 373.488281 0 269.089844 "})})]})]}),Ee=d.forwardRef(function(o,r){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:100,height:120,viewBox:"0 0 100 120",fill:"none",ref:r,...o,children:[e.jsx("path",{fill:"#0071CC",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("g",{mask:"url(#a)",children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M25.08 69.969a44.033 44.033 0 0 1-.71-.728 6.842 6.842 0 0 1-.677-.832 4.595 4.595 0 0 1-.502-.936 2.82 2.82 0 0 1-.191-1.04c0-.67.208-1.277.624-1.82.416-.544.925-1.116 1.525-1.716L36.035 52.08a15.75 15.75 0 0 1 1.647-1.439 3.06 3.06 0 0 1 1.89-.641c.461 0 .935.127 1.42.381.486.255 1.006.659 1.56 1.214.532.531.908 1.022 1.127 1.473.22.45.33.907.33 1.37 0 .693-.202 1.334-.607 1.924-.404.589-.872 1.15-1.404 1.681l-8.528 8.459 8.459 8.32c.554.555 1.04 1.115 1.456 1.682.416.566.624 1.184.624 1.854 0 .463-.116.936-.347 1.422-.231.485-.647 1.028-1.248 1.63-.532.53-1.023.906-1.473 1.126-.451.22-.908.33-1.37.33-.67 0-1.3-.209-1.89-.625a13.194 13.194 0 0 1-1.715-1.456L25.08 69.97Zm38.204 10.816a13.194 13.194 0 0 1-1.716 1.456c-.59.416-1.219.624-1.89.624-.461 0-.918-.11-1.369-.33-.45-.219-.941-.594-1.473-1.126-.601-.6-1.017-1.144-1.248-1.63-.231-.485-.347-.958-.347-1.42 0-.67.208-1.29.624-1.855.416-.567.902-1.127 1.456-1.682l8.46-8.32-8.529-8.459c-.532-.532-1-1.092-1.404-1.681a3.331 3.331 0 0 1-.607-1.925c0-.462.11-.918.33-1.369.22-.45.595-.942 1.126-1.473.555-.555 1.075-.96 1.56-1.214.486-.254.96-.381 1.422-.381a3.06 3.06 0 0 1 1.89.641 15.75 15.75 0 0 1 1.646 1.44L74.1 62.896c.6.6 1.109 1.172 1.525 1.715a2.92 2.92 0 0 1 .624 1.82c0 .37-.064.717-.19 1.04a4.595 4.595 0 0 1-.503.937c-.208.3-.434.578-.676.832-.243.254-.48.497-.711.728L63.284 80.785Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#005EA9",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"})]})}),zt=Ee,Ze=d.forwardRef(function(o,r){return e.jsxs("svg",{width:100,height:120,viewBox:"0 0 100 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,ref:r,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 0L100 40V106C100 113.732 93.732 120 86 120H14C6.26801 120 0 113.732 0 106V14C0 6.26801 6.26801 0 14 0H60Z",fill:"#D6409F"}),e.jsx("mask",{id:"mask0_14_251",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:100,height:120,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 0L100 40V106C100 113.732 93.732 120 86 120H14C6.26801 120 0 113.732 0 106V14C0 6.26801 6.26801 0 14 0H60Z",fill:"white"})}),e.jsx("g",{mask:"url(#mask0_14_251)"}),e.jsx("path",{d:"M57.4 72.66C55.3693 72.66 53.6284 73.8696 52.8304 75.6H45.85C45.0146 75.6 44.2133 75.2681 43.6226 74.6774C43.0319 74.0866 42.7 73.2854 42.7 72.45V64.365C43.6576 64.8228 44.7181 65.1 45.85 65.1H52.8304C53.3075 66.1463 54.1287 66.9976 55.1571 67.5121C56.1855 68.0266 57.3592 68.1733 58.4826 67.9278C59.6061 67.6823 60.6115 67.0594 61.3315 66.1628C62.0516 65.2662 62.4428 64.1499 62.44 63C62.4406 61.8512 62.0482 60.7368 61.328 59.8418C60.6079 58.9468 59.6032 58.325 58.4809 58.0798C57.3587 57.8345 56.1862 57.9805 55.1584 58.4935C54.1305 59.0066 53.3091 59.8557 52.8304 60.9H45.85C45.0146 60.9 44.2133 60.5681 43.6226 59.9774C43.0319 59.3866 42.7 58.5854 42.7 57.75V52.8696C43.7463 52.3924 44.5975 51.5713 45.1121 50.5429C45.6266 49.5144 45.7733 48.3408 45.5278 47.2174C45.2823 46.0939 44.6594 45.0885 43.7628 44.3684C42.8661 43.6484 41.7499 43.2572 40.6 43.26C39.4512 43.2594 38.3368 43.6518 37.4418 44.3719C36.5468 45.0921 35.925 46.0967 35.6798 47.219C35.4345 48.3413 35.5805 49.5137 36.0935 50.5416C36.6065 51.5695 37.4557 52.3909 38.5 52.8696V72.45C38.5 74.3993 39.2744 76.2688 40.6527 77.6472C42.0311 79.0256 43.9006 79.8 45.85 79.8H52.8304C53.3075 80.8463 54.1287 81.6976 55.1571 82.2121C56.1855 82.7266 57.3592 82.8733 58.4826 82.6278C59.6061 82.3823 60.6115 81.7594 61.3315 80.8628C62.0516 79.9662 62.4428 78.8499 62.44 77.7C62.44 76.3633 61.909 75.0814 60.9638 74.1362C60.0186 73.191 58.7367 72.66 57.4 72.66ZM57.4 60.0915C58.1708 60.0915 58.9101 60.3977 59.4551 60.9428C60.0002 61.4878 60.3064 62.2271 60.3064 62.9979C60.3064 63.7687 60.0002 64.508 59.4551 65.053C58.9101 65.5981 58.1708 65.9043 57.4 65.9043C56.6292 65.9043 55.8899 65.5981 55.3448 65.053C54.7998 64.508 54.4936 63.7687 54.4936 62.9979C54.4936 62.2271 54.7998 61.4878 55.3448 60.9428C55.8899 60.3977 56.6292 60.0915 57.4 60.0915ZM40.6 45.3915C41.3708 45.3915 42.1101 45.6977 42.6551 46.2428C43.2002 46.7878 43.5064 47.5271 43.5064 48.2979C43.5064 49.0687 43.2002 49.808 42.6551 50.353C42.1101 50.8981 41.3708 51.2043 40.6 51.2043C39.8292 51.2043 39.0899 50.8981 38.5448 50.353C37.9998 49.808 37.6936 49.0687 37.6936 48.2979C37.6936 47.5271 37.9998 46.7878 38.5448 46.2428C39.0899 45.6977 39.8292 45.3915 40.6 45.3915ZM57.4 80.6085C57.018 80.6085 56.6398 80.5333 56.2869 80.3871C55.9341 80.2409 55.6134 80.0267 55.3434 79.7566C55.0733 79.4865 54.859 79.1659 54.7129 78.813C54.5667 78.4602 54.4915 78.0819 54.4915 77.7C54.4915 77.318 54.5667 76.9398 54.7129 76.587C54.859 76.2341 55.0733 75.9135 55.3434 75.6434C55.6134 75.3733 55.9341 75.1591 56.2869 75.0129C56.6398 74.8667 57.018 74.7915 57.4 74.7915C58.1714 74.7915 58.9112 75.0979 59.4566 75.6434C60.0021 76.1888 60.3085 76.9286 60.3085 77.7C60.3085 78.4714 60.0021 79.2112 59.4566 79.7566C58.9112 80.3021 58.1714 80.6085 57.4 80.6085Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100 40H74.7071C66.9751 40 60 33.0249 60 25.2929V0L100 40Z",fill:"#C2298A"})]})}),Nt=Ze,He=d.forwardRef((t,o)=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:100,height:120,viewBox:"0 0 100 120",fill:"none",...t,ref:o,children:[e.jsx("path",{fill:"#6E56CF",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#6550B9",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M66.02 77.178 54.635 54.924c-1.483-2.897-5.62-2.906-7.115-.015L36.017 77.163C34.64 79.826 36.573 83 39.57 83h22.89c2.99 0 4.923-3.16 3.56-5.822Z"}),e.jsx("mask",{id:"b",width:47,height:45,x:2,y:46,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:e.jsx("path",{fill:"#6550B9",d:"m2 46 23.382 45L49 46H2Z"})}),e.jsxs("g",{fill:"#6550B9",mask:"url(#b)",children:[e.jsx("rect",{width:40,height:5,x:27,y:53,rx:2.5}),e.jsx("rect",{width:40,height:5,x:26,y:61,rx:2.5}),e.jsx("rect",{width:40,height:5,x:26,y:69,rx:2.5})]})]})),Ot=He,Fe=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#424242",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#2C2929",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M36 56.659V52h30v4.659M51 52v34m-7.5 0h15"})]}),_t=Fe,Ae=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#12A594",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#0D9B8A",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#F3FBF9",d:"M65.121 51c-10.009 0-13.718 7.347-16.7 13.25l-1.949 3.775c-3.157 6.26-5.517 10.064-11.598 10.064-.377 0-.751.076-1.1.225a2.868 2.868 0 0 0-.933.64c-.267.275-.478.601-.623.96a3.025 3.025 0 0 0 .001 2.26c.145.36.356.685.623.96a2.84 2.84 0 0 0 2.032.866c10.013 0 13.722-7.347 16.705-13.25l1.944-3.775c3.162-6.26 5.522-10.064 11.598-10.064.378 0 .752-.076 1.102-.224.349-.148.666-.366.934-.64.267-.275.48-.601.624-.96a3.003 3.003 0 0 0-.626-3.221A2.84 2.84 0 0 0 65.12 51Z"})]}),Ut=Ae,De=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#0090FF",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#0D74CE",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"m49.696 51.41 5.58 2.088-5.78 2.194-5.778-2.194 5.58-2.088c.127-.05.27-.05.405 0h-.007Zm-11.017 3.087v7.888c-.093.028-.185.056-.278.092l-6.832 2.559A3.937 3.937 0 0 0 29 68.713v8.38a3.94 3.94 0 0 0 2.384 3.608l6.832 2.967a4.043 4.043 0 0 0 3.21 0l8.07-3.509 8.078 3.509a4.043 4.043 0 0 0 3.21 0l6.832-2.967A3.943 3.943 0 0 0 70 77.094V68.72c0-1.638-1.025-3.1-2.57-3.684l-6.831-2.56c-.093-.035-.185-.063-.278-.09v-7.89c0-1.638-1.025-3.1-2.569-3.684l-6.832-2.559a4.069 4.069 0 0 0-2.826 0l-6.832 2.56c-1.558.583-2.583 2.052-2.583 3.684ZM56.898 62.8l-5.864 2.194v-6.272l5.864-2.222v6.3Zm-16.881 2.834 5.58 2.088-5.78 2.186-5.778-2.186 5.58-2.088c.127-.05.27-.05.405 0h-.007Zm1.338 14.37V72.94l5.864-2.222v6.743l-5.864 2.545Zm17.621-14.37c.128-.05.27-.05.406 0l5.58 2.088-5.787 2.186-5.778-2.186 5.579-2.088Zm7.26 11.973-5.523 2.398v-7.066l5.864-2.222v6.377a.561.561 0 0 1-.342.513Z"})]}),Wt=De,Be=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#82827C",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#63635E",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M56.918 52h-3.759l-3.614 7.273h-6.014L47.145 52h-3.759l-3.613 7.273h-6.014L37.373 52H34a4 4 0 0 0-4 4v22a4 4 0 0 0 4 4h31.09a4 4 0 0 0 4-4V56a4 4 0 0 0-4-4h-2.158l-3.614 7.273h-6.014L56.918 52Z",clipRule:"evenodd"})]}),Gt=Be,ze=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#424242",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#2C2929",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M50.3 63.94c1.62.28 3.065.624 4.336 1.035 1.291.41 2.378.849 3.26 1.315.88.448 1.64.97 2.275 1.567s1.127 1.176 1.476 1.736c.369.56.656 1.203.861 1.93.205.728.338 1.4.4 2.016.061.597.092 1.296.092 2.099 0 1.492-.307 2.92-.923 4.281-.615 1.362-1.383 2.491-2.306 3.387-.902.877-1.845 1.576-2.83 2.099-.983.522-1.875.783-2.675.783-.43 0-.645-.186-.645-.56 0-.242.164-.512.492-.81a8.195 8.195 0 0 0 2.306-3.331c.492-1.306.738-2.491.738-3.555 0-.634-.01-1.128-.03-1.483-.021-.354-.093-.84-.216-1.455-.102-.616-.266-1.11-.492-1.483-.205-.392-.523-.83-.953-1.316a5.133 5.133 0 0 0-1.569-1.231c-.614-.336-1.404-.644-2.367-.924-.943-.298-2.03-.532-3.26-.7-1.558-.205-2.963-.475-4.213-.811-1.23-.355-2.255-.728-3.075-1.12a9.44 9.44 0 0 1-2.091-1.37c-.574-.523-1.015-1.008-1.323-1.456a5.606 5.606 0 0 1-.707-1.567c-.164-.579-.267-1.054-.307-1.428a12.73 12.73 0 0 1-.062-1.315c0-.56.092-1.091.277-1.595.287-.802.943-1.567 1.968-2.295s1.917-1.092 2.675-1.092c.37 0 .646.075.83.224.206.131.308.42.308.868 0 1.418.092 2.537.277 3.358.205.821.625 1.512 1.26 2.071.636.56 1.405.98 2.307 1.26.902.28 2.204.569 3.906.867ZM45.287 87c-1.558 0-2.932-.187-4.12-.56-1.17-.354-2.45-1.11-3.845-2.267-.676-.56-1.015-1.147-1.015-1.763 0-.504.226-.96.677-1.371 1.353-1.231 2.573-1.847 3.66-1.847.697 0 1.476.326 2.337.98 1.189.932 2.173 1.539 2.952 1.818.8.28 1.732.42 2.798.42.902 0 1.733-.158 2.491-.475.78-.318 1.24-.476 1.384-.476.512 0 .769.298.769.895 0 .299-.133.681-.4 1.148-.267.466-.687.98-1.26 1.539-.554.541-1.405.998-2.553 1.371-1.128.392-2.42.588-3.875.588Zm15.314-37.67c0 .728-.533 1.456-1.599 2.183-1.045.728-1.958 1.092-2.737 1.092-.492 0-1.158-.168-1.998-.504a40.837 40.837 0 0 0-2.86-1.008 10.023 10.023 0 0 0-3.076-.503c-1.722 0-3.331.298-4.828.895-1.476.579-3.054 1.502-4.735 2.771-1.107.84-1.804 1.26-2.092 1.26-.45 0-.676-.224-.676-.672 0-.299.195-.756.584-1.372.39-.615.759-1.12 1.107-1.51C41.3 47.986 46.087 46 52.052 46c1.128 0 2.337.13 3.63.392 1.29.242 2.428.634 3.412 1.175 1.005.523 1.507 1.11 1.507 1.763Z"})]}),Kt=ze,Ne=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#E54D2E",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#D13415",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M30.59 82.138a5.145 5.145 0 0 0 7.272 0 5.143 5.143 0 1 0 7.275 7.272c1.517-1.517 2.303-4.161 1.731-6.231-.304-1.095-.353-2.422.45-3.224l9.089-9.09-6.186 1.8v-2.888l-4.329 1.444-.028-4.357-5.819 5.819c-.804.802-2.13.753-3.226.449-2.068-.572-4.712.214-6.229 1.731a5.145 5.145 0 0 0 0 7.275Z"}),e.jsx("path",{fill:"#fff",d:"M53.863 51.59c-1.517 1.517-2.303 4.161-1.731 6.231.304 1.095.353 2.42-.45 3.224l-5.818 5.819.026 4.359 4.33-1.446v2.89l6.187-1.802 2.548-2.547c.802-.803 2.13-.754 3.226-.45 2.068.572 4.712-.214 6.229-1.731a5.143 5.143 0 0 0-7.272-7.275 5.143 5.143 0 0 0-7.275-7.272Z",opacity:.8})]}),Xt=Ne,Oe=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#E54D2E",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#D13415",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M40.008 52.325c.129 3.93 2.849 6.111 8.274 6.959 4.596.721 8.742.355 10.096-3.584 2.636-7.68-3.622-5.77-9.044-6.622-5.425-.853-9.534-3.065-9.327 3.247ZM41.638 68.46c.503 2.933 3.237 4.614 7.421 4.501 4.184-.115 7.306-1.749 7.74-4.913.8-5.858-3.814-3.592-7.998-3.48-4.187.116-8.156-1.864-7.163 3.892ZM47.082 81.89c.831 2.19 3.11 3.115 6.19 2.456 3.08-.656 5.208-1.677 5.035-4.174-.312-4.62-3.355-3.167-6.433-2.507-3.081.653-6.415-.075-4.792 4.224ZM49.724 92.125c.242 1.849 1.84 2.938 4.343 2.92 2.507-.022 4.404-1.01 4.727-2.99.603-3.668-2.2-2.303-4.706-2.282-2.508.02-4.84-1.275-4.364 2.352Z"})]}),Yt=Oe,_e=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#30A46C",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#218358",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M67.125 80.042V54.958c0-1.97-1.763-3.583-3.917-3.583H35.792c-2.154 0-3.917 1.612-3.917 3.583v25.084c0 1.97 1.763 3.583 3.917 3.583h27.416c2.154 0 3.917-1.612 3.917-3.583Zm-23.696-8.995 4.113 4.533 6.07-7.148c.392-.466 1.175-.466 1.567.018l6.874 8.385a.831.831 0 0 1 .093.938.93.93 0 0 1-.362.361 1.048 1.048 0 0 1-.514.134H37.79c-.823 0-1.274-.86-.765-1.451l4.877-5.734c.372-.465 1.116-.483 1.527-.035Z"})]}),qt=_e,Ue=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#30A46C",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("rect",{width:35.25,height:32.25,x:36,y:52,fill:"#8ECEAA",rx:3}),e.jsx("path",{fill:"#218358",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("g",{filter:"url(#a)",children:e.jsx("path",{fill:"#fff",d:"M66.25 75.667V50.583c0-1.97-1.763-3.583-3.917-3.583H34.917C32.763 47 31 48.612 31 50.583v25.084c0 1.97 1.763 3.583 3.917 3.583h27.416c2.154 0 3.917-1.612 3.917-3.583Zm-23.696-8.995 4.113 4.533 6.07-7.148c.392-.466 1.175-.466 1.567.018l6.874 8.385a.831.831 0 0 1 .093.938.93.93 0 0 1-.362.361 1.048 1.048 0 0 1-.514.134h-23.48c-.823 0-1.274-.86-.765-1.451l4.877-5.734c.372-.465 1.116-.483 1.527-.035Z"})}),e.jsx("defs",{children:e.jsxs("filter",{id:"a",width:43.25,height:40.25,x:29,y:46,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[e.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),e.jsx("feOffset",{dx:2,dy:3}),e.jsx("feGaussianBlur",{stdDeviation:2}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_18_316"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_18_316",result:"shape"})]})})]}),Qt=Ue,We=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#A3B0BF",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#758B9F",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"})]}),Jt=We,Ge=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#00A2C7",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#107D98",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M67.4 51.177c-4 1.397-9.6 2.794-17.4 2.794-7.8 0-13.8-1.596-17.4-2.794-1.2-.599-2.6.4-2.6 1.797v27.941c0 1.398 1.4 2.395 2.6 1.996 4.2-1.397 9.6-2.993 17.4-2.993 7.8 0 13.4 1.596 17.4 2.993 1.4.4 2.6-.598 2.6-1.996V52.973c0-1.397-1.4-2.395-2.6-1.796ZM50 72.932c-4.6 0-9 .2-13 .798l7.4-8.781 4 4.79 5.6-6.786 9 10.777c-4-.598-8.4-.798-13-.798Z"})]}),e0=Ge;var D="Progress",B=100,[Ke,t0]=ce(D),[Xe,Ye]=Ke(D),ee=d.forwardRef((t,o)=>{const{__scopeProgress:r,value:s=null,max:n,getValueLabel:i=qe,...l}=t;(n||n===0)&&!W(n)&&console.error(Qe(`${n}`,"Progress"));const a=W(n)?n:B;s!==null&&!G(s,a)&&console.error(Je(`${s}`,"Progress"));const c=G(s,a)?s:null,h=P(c)?i(c,a):void 0;return e.jsx(Xe,{scope:r,value:c,max:a,children:e.jsx(Y.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":P(c)?c:void 0,"aria-valuetext":h,role:"progressbar","data-state":ne(c,a),"data-value":c??void 0,"data-max":a,...l,ref:o})})});ee.displayName=D;var te="ProgressIndicator",oe=d.forwardRef((t,o)=>{const{__scopeProgress:r,...s}=t,n=Ye(te,r);return e.jsx(Y.div,{"data-state":ne(n.value,n.max),"data-value":n.value??void 0,"data-max":n.max,...s,ref:o})});oe.displayName=te;function qe(t,o){return`${Math.round(t/o*100)}%`}function ne(t,o){return t==null?"indeterminate":t===o?"complete":"loading"}function P(t){return typeof t=="number"}function W(t){return P(t)&&!isNaN(t)&&t>0}function G(t,o){return P(t)&&!isNaN(t)&&t<=o&&t>=0}function Qe(t,o){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${o}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${B}\`.`}function Je(t,o){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${o}\`. The \`value\` prop must be:
|
|
16
|
+
*/var Ee=A("outline","edit","IconEdit",[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]]);const Bt=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:t.size||100,height:t.size||100,viewBox:"0 0 446.39 458.52",version:"1.1",fill:"CurrentColor",...t,children:[e.jsx("defs",{children:e.jsx("clipPath",{id:"clip1",children:e.jsx("path",{d:"M 0 0 L 446.390625 0 L 446.390625 458.519531 L 0 458.519531 Z M 0 0 "})})}),e.jsxs("g",{id:"surface1",children:[e.jsx("path",{d:"M 328.820313 194.449219 C 328.820313 203.382813 321.578125 210.628906 312.644531 210.628906 C 303.710938 210.628906 296.464844 203.382813 296.464844 194.449219 C 296.464844 185.515625 303.710938 178.273438 312.644531 178.273438 C 321.578125 178.273438 328.820313 185.515625 328.820313 194.449219 "}),e.jsx("g",{clipPath:"url(#clip1)",clipRule:"nonzero",children:e.jsx("path",{d:"M 364.691406 171.390625 C 364.691406 129.925781 331.078125 96.3125 289.613281 96.3125 C 248.148438 96.3125 214.535156 129.925781 214.535156 171.390625 C 214.535156 212.855469 248.148438 246.46875 289.613281 246.46875 C 331.078125 246.46875 364.691406 212.855469 364.691406 171.390625 M 0 269.007813 C 0 147.867188 98.203125 49.664063 219.339844 49.664063 C 223.683594 49.664063 227.988281 49.804688 232.269531 50.054688 L 232.269531 0.00390625 C 350.523438 0.00390625 446.386719 96.714844 446.386719 214.96875 C 446.386719 233.636719 443.992188 251.742188 439.503906 269.007813 L 74.363281 269.007813 L 60.765625 269.089844 C 60.765625 339.925781 118.191406 397.355469 189.03125 397.355469 C 208.363281 397.355469 226.695313 393.070313 243.136719 385.410156 L 245.71875 397.683594 C 246.828125 402.972656 253.519531 404.691406 257.042969 400.589844 L 265.667969 390.546875 C 267.066406 388.921875 269.175781 388.085938 271.308594 388.3125 L 284.472656 389.726563 C 289.84375 390.304688 293.546875 384.46875 290.734375 379.855469 L 283.851563 368.546875 C 282.734375 366.714844 282.59375 364.449219 283.46875 362.492188 L 288.878906 350.410156 C 291.089844 345.476563 286.683594 340.152344 281.425781 341.402344 L 268.542969 344.457031 C 266.457031 344.949219 264.257813 344.386719 262.667969 342.945313 L 252.847656 334.066406 C 248.839844 330.441406 242.417969 332.988281 241.976563 338.371094 C 241.976563 338.371094 240.914063 351.425781 240.902344 351.566406 C 213.523438 349.976563 198.492188 325.605469 201.597656 305.414063 L 322.5625 305.414063 C 354.328125 305.414063 368.726563 337.375 355.578125 359.457031 C 323.035156 416.488281 267.324219 457.410156 189.199219 458.5 C 84.8125 459.960938 0 373.488281 0 269.089844 "})})]})]}),Ve=d.forwardRef(function(o,r){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:100,height:120,viewBox:"0 0 100 120",fill:"none",ref:r,...o,children:[e.jsx("path",{fill:"#0071CC",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("g",{mask:"url(#a)",children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M25.08 69.969a44.033 44.033 0 0 1-.71-.728 6.842 6.842 0 0 1-.677-.832 4.595 4.595 0 0 1-.502-.936 2.82 2.82 0 0 1-.191-1.04c0-.67.208-1.277.624-1.82.416-.544.925-1.116 1.525-1.716L36.035 52.08a15.75 15.75 0 0 1 1.647-1.439 3.06 3.06 0 0 1 1.89-.641c.461 0 .935.127 1.42.381.486.255 1.006.659 1.56 1.214.532.531.908 1.022 1.127 1.473.22.45.33.907.33 1.37 0 .693-.202 1.334-.607 1.924-.404.589-.872 1.15-1.404 1.681l-8.528 8.459 8.459 8.32c.554.555 1.04 1.115 1.456 1.682.416.566.624 1.184.624 1.854 0 .463-.116.936-.347 1.422-.231.485-.647 1.028-1.248 1.63-.532.53-1.023.906-1.473 1.126-.451.22-.908.33-1.37.33-.67 0-1.3-.209-1.89-.625a13.194 13.194 0 0 1-1.715-1.456L25.08 69.97Zm38.204 10.816a13.194 13.194 0 0 1-1.716 1.456c-.59.416-1.219.624-1.89.624-.461 0-.918-.11-1.369-.33-.45-.219-.941-.594-1.473-1.126-.601-.6-1.017-1.144-1.248-1.63-.231-.485-.347-.958-.347-1.42 0-.67.208-1.29.624-1.855.416-.567.902-1.127 1.456-1.682l8.46-8.32-8.529-8.459c-.532-.532-1-1.092-1.404-1.681a3.331 3.331 0 0 1-.607-1.925c0-.462.11-.918.33-1.369.22-.45.595-.942 1.126-1.473.555-.555 1.075-.96 1.56-1.214.486-.254.96-.381 1.422-.381a3.06 3.06 0 0 1 1.89.641 15.75 15.75 0 0 1 1.646 1.44L74.1 62.896c.6.6 1.109 1.172 1.525 1.715a2.92 2.92 0 0 1 .624 1.82c0 .37-.064.717-.19 1.04a4.595 4.595 0 0 1-.503.937c-.208.3-.434.578-.676.832-.243.254-.48.497-.711.728L63.284 80.785Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#005EA9",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"})]})}),zt=Ve,Ze=d.forwardRef(function(o,r){return e.jsxs("svg",{width:100,height:120,viewBox:"0 0 100 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,ref:r,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 0L100 40V106C100 113.732 93.732 120 86 120H14C6.26801 120 0 113.732 0 106V14C0 6.26801 6.26801 0 14 0H60Z",fill:"#D6409F"}),e.jsx("mask",{id:"mask0_14_251",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:100,height:120,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60 0L100 40V106C100 113.732 93.732 120 86 120H14C6.26801 120 0 113.732 0 106V14C0 6.26801 6.26801 0 14 0H60Z",fill:"white"})}),e.jsx("g",{mask:"url(#mask0_14_251)"}),e.jsx("path",{d:"M57.4 72.66C55.3693 72.66 53.6284 73.8696 52.8304 75.6H45.85C45.0146 75.6 44.2133 75.2681 43.6226 74.6774C43.0319 74.0866 42.7 73.2854 42.7 72.45V64.365C43.6576 64.8228 44.7181 65.1 45.85 65.1H52.8304C53.3075 66.1463 54.1287 66.9976 55.1571 67.5121C56.1855 68.0266 57.3592 68.1733 58.4826 67.9278C59.6061 67.6823 60.6115 67.0594 61.3315 66.1628C62.0516 65.2662 62.4428 64.1499 62.44 63C62.4406 61.8512 62.0482 60.7368 61.328 59.8418C60.6079 58.9468 59.6032 58.325 58.4809 58.0798C57.3587 57.8345 56.1862 57.9805 55.1584 58.4935C54.1305 59.0066 53.3091 59.8557 52.8304 60.9H45.85C45.0146 60.9 44.2133 60.5681 43.6226 59.9774C43.0319 59.3866 42.7 58.5854 42.7 57.75V52.8696C43.7463 52.3924 44.5975 51.5713 45.1121 50.5429C45.6266 49.5144 45.7733 48.3408 45.5278 47.2174C45.2823 46.0939 44.6594 45.0885 43.7628 44.3684C42.8661 43.6484 41.7499 43.2572 40.6 43.26C39.4512 43.2594 38.3368 43.6518 37.4418 44.3719C36.5468 45.0921 35.925 46.0967 35.6798 47.219C35.4345 48.3413 35.5805 49.5137 36.0935 50.5416C36.6065 51.5695 37.4557 52.3909 38.5 52.8696V72.45C38.5 74.3993 39.2744 76.2688 40.6527 77.6472C42.0311 79.0256 43.9006 79.8 45.85 79.8H52.8304C53.3075 80.8463 54.1287 81.6976 55.1571 82.2121C56.1855 82.7266 57.3592 82.8733 58.4826 82.6278C59.6061 82.3823 60.6115 81.7594 61.3315 80.8628C62.0516 79.9662 62.4428 78.8499 62.44 77.7C62.44 76.3633 61.909 75.0814 60.9638 74.1362C60.0186 73.191 58.7367 72.66 57.4 72.66ZM57.4 60.0915C58.1708 60.0915 58.9101 60.3977 59.4551 60.9428C60.0002 61.4878 60.3064 62.2271 60.3064 62.9979C60.3064 63.7687 60.0002 64.508 59.4551 65.053C58.9101 65.5981 58.1708 65.9043 57.4 65.9043C56.6292 65.9043 55.8899 65.5981 55.3448 65.053C54.7998 64.508 54.4936 63.7687 54.4936 62.9979C54.4936 62.2271 54.7998 61.4878 55.3448 60.9428C55.8899 60.3977 56.6292 60.0915 57.4 60.0915ZM40.6 45.3915C41.3708 45.3915 42.1101 45.6977 42.6551 46.2428C43.2002 46.7878 43.5064 47.5271 43.5064 48.2979C43.5064 49.0687 43.2002 49.808 42.6551 50.353C42.1101 50.8981 41.3708 51.2043 40.6 51.2043C39.8292 51.2043 39.0899 50.8981 38.5448 50.353C37.9998 49.808 37.6936 49.0687 37.6936 48.2979C37.6936 47.5271 37.9998 46.7878 38.5448 46.2428C39.0899 45.6977 39.8292 45.3915 40.6 45.3915ZM57.4 80.6085C57.018 80.6085 56.6398 80.5333 56.2869 80.3871C55.9341 80.2409 55.6134 80.0267 55.3434 79.7566C55.0733 79.4865 54.859 79.1659 54.7129 78.813C54.5667 78.4602 54.4915 78.0819 54.4915 77.7C54.4915 77.318 54.5667 76.9398 54.7129 76.587C54.859 76.2341 55.0733 75.9135 55.3434 75.6434C55.6134 75.3733 55.9341 75.1591 56.2869 75.0129C56.6398 74.8667 57.018 74.7915 57.4 74.7915C58.1714 74.7915 58.9112 75.0979 59.4566 75.6434C60.0021 76.1888 60.3085 76.9286 60.3085 77.7C60.3085 78.4714 60.0021 79.2112 59.4566 79.7566C58.9112 80.3021 58.1714 80.6085 57.4 80.6085Z",fill:"white"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M100 40H74.7071C66.9751 40 60 33.0249 60 25.2929V0L100 40Z",fill:"#C2298A"})]})}),Nt=Ze,He=d.forwardRef((t,o)=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:100,height:120,viewBox:"0 0 100 120",fill:"none",...t,ref:o,children:[e.jsx("path",{fill:"#6E56CF",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#6550B9",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M66.02 77.178 54.635 54.924c-1.483-2.897-5.62-2.906-7.115-.015L36.017 77.163C34.64 79.826 36.573 83 39.57 83h22.89c2.99 0 4.923-3.16 3.56-5.822Z"}),e.jsx("mask",{id:"b",width:47,height:45,x:2,y:46,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:e.jsx("path",{fill:"#6550B9",d:"m2 46 23.382 45L49 46H2Z"})}),e.jsxs("g",{fill:"#6550B9",mask:"url(#b)",children:[e.jsx("rect",{width:40,height:5,x:27,y:53,rx:2.5}),e.jsx("rect",{width:40,height:5,x:26,y:61,rx:2.5}),e.jsx("rect",{width:40,height:5,x:26,y:69,rx:2.5})]})]})),Ot=He,Fe=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#424242",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#2C2929",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:4,d:"M36 56.659V52h30v4.659M51 52v34m-7.5 0h15"})]}),_t=Fe,Ae=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#12A594",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#0D9B8A",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#F3FBF9",d:"M65.121 51c-10.009 0-13.718 7.347-16.7 13.25l-1.949 3.775c-3.157 6.26-5.517 10.064-11.598 10.064-.377 0-.751.076-1.1.225a2.868 2.868 0 0 0-.933.64c-.267.275-.478.601-.623.96a3.025 3.025 0 0 0 .001 2.26c.145.36.356.685.623.96a2.84 2.84 0 0 0 2.032.866c10.013 0 13.722-7.347 16.705-13.25l1.944-3.775c3.162-6.26 5.522-10.064 11.598-10.064.378 0 .752-.076 1.102-.224.349-.148.666-.366.934-.64.267-.275.48-.601.624-.96a3.003 3.003 0 0 0-.626-3.221A2.84 2.84 0 0 0 65.12 51Z"})]}),Ut=Ae,De=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#0090FF",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#0D74CE",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"m49.696 51.41 5.58 2.088-5.78 2.194-5.778-2.194 5.58-2.088c.127-.05.27-.05.405 0h-.007Zm-11.017 3.087v7.888c-.093.028-.185.056-.278.092l-6.832 2.559A3.937 3.937 0 0 0 29 68.713v8.38a3.94 3.94 0 0 0 2.384 3.608l6.832 2.967a4.043 4.043 0 0 0 3.21 0l8.07-3.509 8.078 3.509a4.043 4.043 0 0 0 3.21 0l6.832-2.967A3.943 3.943 0 0 0 70 77.094V68.72c0-1.638-1.025-3.1-2.57-3.684l-6.831-2.56c-.093-.035-.185-.063-.278-.09v-7.89c0-1.638-1.025-3.1-2.569-3.684l-6.832-2.559a4.069 4.069 0 0 0-2.826 0l-6.832 2.56c-1.558.583-2.583 2.052-2.583 3.684ZM56.898 62.8l-5.864 2.194v-6.272l5.864-2.222v6.3Zm-16.881 2.834 5.58 2.088-5.78 2.186-5.778-2.186 5.58-2.088c.127-.05.27-.05.405 0h-.007Zm1.338 14.37V72.94l5.864-2.222v6.743l-5.864 2.545Zm17.621-14.37c.128-.05.27-.05.406 0l5.58 2.088-5.787 2.186-5.778-2.186 5.579-2.088Zm7.26 11.973-5.523 2.398v-7.066l5.864-2.222v6.377a.561.561 0 0 1-.342.513Z"})]}),Gt=De,Be=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#82827C",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#63635E",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M56.918 52h-3.759l-3.614 7.273h-6.014L47.145 52h-3.759l-3.613 7.273h-6.014L37.373 52H34a4 4 0 0 0-4 4v22a4 4 0 0 0 4 4h31.09a4 4 0 0 0 4-4V56a4 4 0 0 0-4-4h-2.158l-3.614 7.273h-6.014L56.918 52Z",clipRule:"evenodd"})]}),Wt=Be,ze=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#424242",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#2C2929",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M50.3 63.94c1.62.28 3.065.624 4.336 1.035 1.291.41 2.378.849 3.26 1.315.88.448 1.64.97 2.275 1.567s1.127 1.176 1.476 1.736c.369.56.656 1.203.861 1.93.205.728.338 1.4.4 2.016.061.597.092 1.296.092 2.099 0 1.492-.307 2.92-.923 4.281-.615 1.362-1.383 2.491-2.306 3.387-.902.877-1.845 1.576-2.83 2.099-.983.522-1.875.783-2.675.783-.43 0-.645-.186-.645-.56 0-.242.164-.512.492-.81a8.195 8.195 0 0 0 2.306-3.331c.492-1.306.738-2.491.738-3.555 0-.634-.01-1.128-.03-1.483-.021-.354-.093-.84-.216-1.455-.102-.616-.266-1.11-.492-1.483-.205-.392-.523-.83-.953-1.316a5.133 5.133 0 0 0-1.569-1.231c-.614-.336-1.404-.644-2.367-.924-.943-.298-2.03-.532-3.26-.7-1.558-.205-2.963-.475-4.213-.811-1.23-.355-2.255-.728-3.075-1.12a9.44 9.44 0 0 1-2.091-1.37c-.574-.523-1.015-1.008-1.323-1.456a5.606 5.606 0 0 1-.707-1.567c-.164-.579-.267-1.054-.307-1.428a12.73 12.73 0 0 1-.062-1.315c0-.56.092-1.091.277-1.595.287-.802.943-1.567 1.968-2.295s1.917-1.092 2.675-1.092c.37 0 .646.075.83.224.206.131.308.42.308.868 0 1.418.092 2.537.277 3.358.205.821.625 1.512 1.26 2.071.636.56 1.405.98 2.307 1.26.902.28 2.204.569 3.906.867ZM45.287 87c-1.558 0-2.932-.187-4.12-.56-1.17-.354-2.45-1.11-3.845-2.267-.676-.56-1.015-1.147-1.015-1.763 0-.504.226-.96.677-1.371 1.353-1.231 2.573-1.847 3.66-1.847.697 0 1.476.326 2.337.98 1.189.932 2.173 1.539 2.952 1.818.8.28 1.732.42 2.798.42.902 0 1.733-.158 2.491-.475.78-.318 1.24-.476 1.384-.476.512 0 .769.298.769.895 0 .299-.133.681-.4 1.148-.267.466-.687.98-1.26 1.539-.554.541-1.405.998-2.553 1.371-1.128.392-2.42.588-3.875.588Zm15.314-37.67c0 .728-.533 1.456-1.599 2.183-1.045.728-1.958 1.092-2.737 1.092-.492 0-1.158-.168-1.998-.504a40.837 40.837 0 0 0-2.86-1.008 10.023 10.023 0 0 0-3.076-.503c-1.722 0-3.331.298-4.828.895-1.476.579-3.054 1.502-4.735 2.771-1.107.84-1.804 1.26-2.092 1.26-.45 0-.676-.224-.676-.672 0-.299.195-.756.584-1.372.39-.615.759-1.12 1.107-1.51C41.3 47.986 46.087 46 52.052 46c1.128 0 2.337.13 3.63.392 1.29.242 2.428.634 3.412 1.175 1.005.523 1.507 1.11 1.507 1.763Z"})]}),Kt=ze,Ne=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#E54D2E",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#D13415",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M30.59 82.138a5.145 5.145 0 0 0 7.272 0 5.143 5.143 0 1 0 7.275 7.272c1.517-1.517 2.303-4.161 1.731-6.231-.304-1.095-.353-2.422.45-3.224l9.089-9.09-6.186 1.8v-2.888l-4.329 1.444-.028-4.357-5.819 5.819c-.804.802-2.13.753-3.226.449-2.068-.572-4.712.214-6.229 1.731a5.145 5.145 0 0 0 0 7.275Z"}),e.jsx("path",{fill:"#fff",d:"M53.863 51.59c-1.517 1.517-2.303 4.161-1.731 6.231.304 1.095.353 2.42-.45 3.224l-5.818 5.819.026 4.359 4.33-1.446v2.89l6.187-1.802 2.548-2.547c.802-.803 2.13-.754 3.226-.45 2.068.572 4.712-.214 6.229-1.731a5.143 5.143 0 0 0-7.272-7.275 5.143 5.143 0 0 0-7.275-7.272Z",opacity:.8})]}),Xt=Ne,Oe=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#E54D2E",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#D13415",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M40.008 52.325c.129 3.93 2.849 6.111 8.274 6.959 4.596.721 8.742.355 10.096-3.584 2.636-7.68-3.622-5.77-9.044-6.622-5.425-.853-9.534-3.065-9.327 3.247ZM41.638 68.46c.503 2.933 3.237 4.614 7.421 4.501 4.184-.115 7.306-1.749 7.74-4.913.8-5.858-3.814-3.592-7.998-3.48-4.187.116-8.156-1.864-7.163 3.892ZM47.082 81.89c.831 2.19 3.11 3.115 6.19 2.456 3.08-.656 5.208-1.677 5.035-4.174-.312-4.62-3.355-3.167-6.433-2.507-3.081.653-6.415-.075-4.792 4.224ZM49.724 92.125c.242 1.849 1.84 2.938 4.343 2.92 2.507-.022 4.404-1.01 4.727-2.99.603-3.668-2.2-2.303-4.706-2.282-2.508.02-4.84-1.275-4.364 2.352Z"})]}),Yt=Oe,_e=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#30A46C",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#218358",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M67.125 80.042V54.958c0-1.97-1.763-3.583-3.917-3.583H35.792c-2.154 0-3.917 1.612-3.917 3.583v25.084c0 1.97 1.763 3.583 3.917 3.583h27.416c2.154 0 3.917-1.612 3.917-3.583Zm-23.696-8.995 4.113 4.533 6.07-7.148c.392-.466 1.175-.466 1.567.018l6.874 8.385a.831.831 0 0 1 .093.938.93.93 0 0 1-.362.361 1.048 1.048 0 0 1-.514.134H37.79c-.823 0-1.274-.86-.765-1.451l4.877-5.734c.372-.465 1.116-.483 1.527-.035Z"})]}),Qt=_e,Ue=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#30A46C",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("rect",{width:35.25,height:32.25,x:36,y:52,fill:"#8ECEAA",rx:3}),e.jsx("path",{fill:"#218358",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("g",{filter:"url(#a)",children:e.jsx("path",{fill:"#fff",d:"M66.25 75.667V50.583c0-1.97-1.763-3.583-3.917-3.583H34.917C32.763 47 31 48.612 31 50.583v25.084c0 1.97 1.763 3.583 3.917 3.583h27.416c2.154 0 3.917-1.612 3.917-3.583Zm-23.696-8.995 4.113 4.533 6.07-7.148c.392-.466 1.175-.466 1.567.018l6.874 8.385a.831.831 0 0 1 .093.938.93.93 0 0 1-.362.361 1.048 1.048 0 0 1-.514.134h-23.48c-.823 0-1.274-.86-.765-1.451l4.877-5.734c.372-.465 1.116-.483 1.527-.035Z"})}),e.jsx("defs",{children:e.jsxs("filter",{id:"a",width:43.25,height:40.25,x:29,y:46,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[e.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),e.jsx("feOffset",{dx:2,dy:3}),e.jsx("feGaussianBlur",{stdDeviation:2}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_18_316"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_18_316",result:"shape"})]})})]}),qt=Ue,Ge=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#A3B0BF",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#758B9F",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"})]}),Jt=Ge,We=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 120",width:100,height:120,fill:"none",...t,children:[e.jsx("path",{fill:"#00A2C7",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"}),e.jsx("mask",{id:"a",width:100,height:120,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:e.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m60 0 40 40v66c0 7.732-6.268 14-14 14H14c-7.732 0-14-6.268-14-14V14C0 6.268 6.268 0 14 0h46Z",clipRule:"evenodd"})}),e.jsx("path",{fill:"#107D98",fillRule:"evenodd",d:"M100 40H74.707C66.975 40 60 33.025 60 25.293V0l40 40Z",clipRule:"evenodd"}),e.jsx("path",{fill:"#fff",d:"M67.4 51.177c-4 1.397-9.6 2.794-17.4 2.794-7.8 0-13.8-1.596-17.4-2.794-1.2-.599-2.6.4-2.6 1.797v27.941c0 1.398 1.4 2.395 2.6 1.996 4.2-1.397 9.6-2.993 17.4-2.993 7.8 0 13.4 1.596 17.4 2.993 1.4.4 2.6-.598 2.6-1.996V52.973c0-1.397-1.4-2.395-2.6-1.796ZM50 72.932c-4.6 0-9 .2-13 .798l7.4-8.781 4 4.79 5.6-6.786 9 10.777c-4-.598-8.4-.798-13-.798Z"})]}),e0=We;var D="Progress",B=100,[Ke,t0]=ce(D),[Xe,Ye]=Ke(D),ee=d.forwardRef((t,o)=>{const{__scopeProgress:r,value:s=null,max:n,getValueLabel:i=Qe,...l}=t;(n||n===0)&&!G(n)&&console.error(qe(`${n}`,"Progress"));const a=G(n)?n:B;s!==null&&!W(s,a)&&console.error(Je(`${s}`,"Progress"));const c=W(s,a)?s:null,h=P(c)?i(c,a):void 0;return e.jsx(Xe,{scope:r,value:c,max:a,children:e.jsx(Y.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":P(c)?c:void 0,"aria-valuetext":h,role:"progressbar","data-state":ne(c,a),"data-value":c??void 0,"data-max":a,...l,ref:o})})});ee.displayName=D;var te="ProgressIndicator",oe=d.forwardRef((t,o)=>{const{__scopeProgress:r,...s}=t,n=Ye(te,r);return e.jsx(Y.div,{"data-state":ne(n.value,n.max),"data-value":n.value??void 0,"data-max":n.max,...s,ref:o})});oe.displayName=te;function Qe(t,o){return`${Math.round(t/o*100)}%`}function ne(t,o){return t==null?"indeterminate":t===o?"complete":"loading"}function P(t){return typeof t=="number"}function G(t){return P(t)&&!isNaN(t)&&t>0}function W(t,o){return P(t)&&!isNaN(t)&&t<=o&&t>=0}function qe(t,o){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${o}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${B}\`.`}function Je(t,o){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${o}\`. The \`value\` prop must be:
|
|
17
17
|
- a positive number
|
|
18
18
|
- less than the value passed to \`max\` (or ${B} if no \`max\` prop is set)
|
|
19
19
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
20
20
|
|
|
21
|
-
Defaulting to \`null\`.`}var et=ee,tt=oe;const ot=m(et,{position:"relative",width:"100%",backgroundColor:"$softBg",borderRadius:"$round",overflow:"hidden",boxSizing:"border-box",border:"1px solid transparent",variants:{size:{sm:{height:"$1"},md:{height:"$1_5"},lg:{height:"$2"}}},defaultVariants:{size:"md"}}),nt=m(tt,{width:"100%",height:"100%",borderRadius:"$round",backgroundColor:"$selectionBg",transition:"transform .2s ease-out, background-color .2s ease-out"});function o0(t){const o=Math.max(0,Math.min(100,t.value??0));return e.jsx(ot,{...t,children:e.jsx(nt,{style:{transform:`translateX(-${100-o}%)`}})})}const n0=m("div",{position:"relative",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderRadius:"2px",borderTop:"6px solid CurrentColor",transformOrigin:"center",variants:{animate:{true:{transition:"transform .2s"}},size:{xs:{borderLeftWidth:"4px",borderRightWidth:"4px",borderTopWidth:"4px"}},direction:{rightbottom:{transform:"rotate(-45deg)"},leftbottom:{transform:"rotate(45deg)"},righttop:{transform:"rotate(135deg)"},lefttop:{transform:"rotate(-135deg)"},right:{transform:"rotate(90deg)"},left:{transform:"rotate(-90deg)"},top:{transform:"rotate(180deg)"},bottom:{transform:"rotate(0deg)"}}}}),re=m("span",{visibility:"hidden",position:"relative",cursor:"pointer",color:"$gray10","& > svg":{height:"14px",width:"14px",strokeWidth:1.8}}),rt=m("div",{maxWidth:"100%",display:"inline-block","&:hover":{[`${re}`]:{visibility:"visible"}},variants:{focused:{true:{backgroundColor:"$gray1"}}}});function r0(t){const{value:o,onBlur:r,showIcon:s,css:n,onEdit:i}=t,l=d.useRef(null),[a,c]=d.useState(o),[h,u]=d.useState(!1),[f,v]=d.useState(!1);d.useEffect(()=>{c(o)},[o]);const C=async()=>{v(!0),r&&typeof r=="function"&&await r(a),u(!1),v(!1)},p=()=>{u(!0),i&&i(),setTimeout(()=>{var g;(g=l.current)==null||g.focus()},0)},b=g=>{g.stopPropagation(),g.key==="Enter"&&C(),g.key==="Escape"&&(c(o),C())};return e.jsx(rt,{focused:h,css:n,children:h?e.jsx(he,{disabled:f,ref:l,value:a,onKeyDown:b,onChange:g=>{g.preventDefault(),g.stopPropagation(),c(g.target.value)},onKeyUp:g=>{g.preventDefault(),g.stopPropagation(),g.key==="Enter"&&C()},onBlur:()=>{C()}}):e.jsxs(fe,{align:"v",onClick:g=>{g.stopPropagation(),!s&&p()},gap:"xs",wrap:"false",css:n,children:[e.jsx(ue,{ellipsis:!0,size:1,css:n,children:a}),s&&e.jsx(re,{onClick:p,children:e.jsx(Ve,{})})]})})}const ie=q({color:"$grayA11","& > div:first-child":{marginRight:"$2"},"div[role=status]":{margin:0}})(),it=q({[`& .${ie}`]:{minHeight:"$7",padding:"$1_5 $2",borderRadius:"$3",border:"1px solid $gray6",backgroundColor:"$toasterBg",color:"$grayA11",fontSize:"$1",boxShadow:"0 5px 10px rgba(0,0,0,0.08)"}})();function i0(t){const{toastOptions:o,containerStyle:r,...s}=t;return e.jsx(pe,{containerStyle:{inset:38,...r},toastOptions:{...o,className:ie,success:{iconTheme:{primary:"var(--colors-green10)",secondary:"var(--colors-white)"}},error:{iconTheme:{primary:"var(--colors-red9)",secondary:"var(--colors-white)"}}},containerClassName:it,...s})}const Z=m("tr",{color:"$gray11"}),z=m("th",{fontWeight:"unset",textAlign:"start",fontSize:"$2",padding:"$2",borderBottom:"1px solid $gray3",userSelect:"none","&:nth-child(1)":{paddingLeft:"$2"},variants:{align:{start:{textAlign:"start"},center:{textAlign:"center"},end:{textAlign:"end"}},border:{solid:{borderBottom:"1px solid $gray3"},dashed:{borderBottom:"1px dashed $gray8"}}},defaultVariants:{align:"start",border:"solid"}}),L=m("td",{py:"$2",borderBottom:"1px solid $gray3",fontSize:"$2",padding:"$2",verticalAlign:"middle",userSelect:"none",variants:{align:{start:{textAlign:"start"},center:{textAlign:"center"},end:{textAlign:"end"}},border:{solid:{borderBottom:"1px solid $gray3"},dashed:{borderBottom:"1px dashed $gray8"}}},defaultVariants:{align:"start",border:"solid"}}),st=m("thead",{[`& ${z}`]:{fontSize:"$1",color:"$gray9"},[`& ${L}`]:{fontSize:"$1",color:"$gray9"}}),lt=m("tbody",{width:"100%",[`& ${Z}`]:{"&:hover":{backgroundColor:"$gray2"}}}),at=m("table",{width:"100%",tableLayout:"fixed",borderSpacing:0,variants:{compact:{true:{[`& ${z}`]:{padding:"$2 $0_5","&:nth-child(1)":{paddingLeft:"$2"}},[`& ${L}`]:{padding:"$0_5",fontSize:"$1"}}}}});function s0(t){const{columns:o=[],dataSource:r=[],rowKey:s,compact:n,onClickRow:i}=t;return e.jsxs(at,{compact:n,children:[e.jsx("colgroup",{children:o.map(l=>e.jsx("col",{span:1,style:{width:l.width||"auto"}},l.key))}),e.jsx(st,{children:e.jsx(Z,{children:o.map(l=>e.jsx(z,{children:l.title},l.key))})}),e.jsx(lt,{children:r.map((l,a)=>{const c=[];return o.forEach(h=>{if(h.render){c.push(e.jsx(L,{children:h.render(l[h.dataIndex],l)},h.key));return}c.push(e.jsx(L,{children:l[h.dataIndex]},h.key))}),e.jsx(Z,{onClick:h=>{i&&(h.stopPropagation(),i(l))},children:c},a)})})]})}const dt=m("div",{position:"relative",display:"flex",alignItems:"center",width:"300px",height:"$7",fontSize:"$1",boxSizing:"border-box",justifyContent:"space-between",padding:"0 $2",color:"white",backgroundColor:"$blue9",borderRadius:"$1","& > span:nth-child(2)":{display:"flex",alignItems:"center",height:"$5",fontSize:"$xs",padding:"0 $2",borderRadius:"$round",backgroundColor:"white",color:"$blue9"}});function l0(t){const{text:o,size:r}=t;return e.jsxs(dt,{children:[e.jsx("span",{children:o}),r>1&&e.jsx("span",{children:r})]})}const ct=m("div",{display:"flex",position:"absolute",width:"calc(100% - $sizes$8)",height:"$1",alignItems:"center",marginLeft:"$3",marginTop:"-$0_5",outline:"none",flexDirection:"row-reverse"}),ht=m("div",{position:"relative",height:1,outline:"none",pointerEvents:"none",flexDirection:"row-reverse",'&[data-drop-target="true"]':{backgroundColor:"#fff","&::after":{content:'""',position:"absolute",top:-4,left:-8,width:6,height:6,borderRadius:"$round",border:"1px solid white",zIndex:1}}});function a0(t){const{item:o,position:r,dropLayer:s,level:n,onDrop:i}=t,[l,a]=E.useState(!1),c=ge({accept:s??0,onEnter(u,f){f&&a(!0)},onLeave(){a(!1)},onDrop:(u,f)=>{a(!1),i(u,f,r)}}),h={width:`calc(100% - ${n*12}px)`};return e.jsx(ct,{ref:c,role:"option","aria-selected":"false","data-key":`${o}-${r}`,"aria-level":n,children:e.jsx(ht,{style:h,"data-drop-target":l})})}const j="...",R=(t,o)=>{const r=o-t+1;return Array.from({length:r},(s,n)=>n+t)},ft=t=>{const{totalCount:o,pageSize:r,siblingCount:s=1,currentPage:n}=t;return d.useMemo(()=>{const l=Math.ceil(o/r);if(s+5>=l)return R(1,l);const c=Math.max(n-s,1),h=Math.min(n+s,l),u=c>3,f=h<l-3,v=1,C=l;if(!u&&f){const p=3+2*s;return[...R(1,p),j,l]}if(u&&!f){const p=3+2*s,b=R(l-p+1,l);return[v,j,...b]}if(u&&f){const p=R(c,h);return[v,j,...p,j,C]}return R(1,l)},[o,r,s,n])},ut=m("ul",{display:"flex",alignItems:"center"}),M=m("li",{display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid $border",color:"$text",userSelect:"none",cursor:"pointer",marginRight:"$2",transition:"$borderColor, $backgroundColor, $color, $shadow","&:last-child":{marginRight:0},"&:hover":{borderColor:"$borderStrong",backgroundColor:"$surfaceSubtle"},"&:focus-visible":{borderColor:"$borderStrong",boxShadow:"$focus"},variants:{active:{true:{backgroundColor:"$selectionBg",borderColor:"$selectionBorder",color:"$selectionText","&:hover":{borderColor:"$selectionBorder",backgroundColor:"$selectionBgHover",color:"$selectionText"}}},disabled:{true:{backgroundColor:"$surface",color:"$textMuted",cursor:"initial","&:hover":{borderColor:"$border",backgroundColor:"$surface"}}},size:{sm:{height:"$sm",width:"$sm",fontSize:"$1",borderRadius:"$sm","& > svg":{width:"$iconSm",height:"$iconSm"}},md:{height:"$md",width:"$md",fontSize:"$2",borderRadius:"$md","& > svg":{width:"$iconMd",height:"$iconMd"}}}},defaultVariants:{size:"sm"}});function d0(t){const{totalCount:o,onPageChange:r,currentPage:s,pageSize:n,siblingCount:i=1,size:l}=t,[a=1,c]=me({prop:s,onChange:r,defaultProp:t.currentPage}),h=ft({currentPage:a,totalCount:o,siblingCount:i,pageSize:n}),u=h[h.length-1];if(a===0||h.length<2)return null;const f=()=>{a>=u||c(a+1)},v=()=>{a!==1&&c(a-1)},C=p=>{c(p)};return e.jsxs(ut,{children:[e.jsx(M,{size:l,onClick:v,disabled:a===1,children:e.jsx(Le,{})}),h.map((p,b)=>p===j?e.jsx(M,{size:l,children:e.jsx(Te,{})},`${j}_${b}`):e.jsx(M,{onClick:()=>C(p),active:p===a,size:l,children:p},p)),e.jsx(M,{size:l,onClick:f,disabled:a===u,children:e.jsx(xe,{})})]})}function K(t,o){if(typeof t=="function")return t(o);t!=null&&(t.current=o)}function pt(...t){return o=>{let r=!1;const s=t.map(n=>{const i=K(n,o);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let n=0;n<s.length;n++){const i=s[n];typeof i=="function"?i():K(t[n],null)}}}}function gt(...t){return d.useCallback(pt(...t),t)}function mt(t){const o=xt(t),r=d.forwardRef((s,n)=>{const{children:i,...l}=s,a=d.Children.toArray(i),c=a.find(Ct);if(c){const h=c.props.children,u=a.map(f=>f===c?d.Children.count(h)>1?d.Children.only(null):d.isValidElement(h)?h.props.children:null:f);return e.jsx(o,{...l,ref:n,children:d.isValidElement(h)?d.cloneElement(h,void 0,u):null})}return e.jsx(o,{...l,ref:n,children:i})});return r.displayName=`${t}.Slot`,r}function xt(t){const o=d.forwardRef((r,s)=>{const{children:n,...i}=r,l=d.isValidElement(n)?bt(n):void 0,a=gt(l,s);if(d.isValidElement(n)){const c=wt(i,n.props);return n.type!==d.Fragment&&(c.ref=a),d.cloneElement(n,c)}return d.Children.count(n)>1?d.Children.only(null):null});return o.displayName=`${t}.SlotClone`,o}var vt=Symbol("radix.slottable");function Ct(t){return d.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===vt}function wt(t,o){const r={...o};for(const s in o){const n=t[s],i=o[s];/^on[A-Z]/.test(s)?n&&i?r[s]=(...a)=>{const c=i(...a);return n(...a),c}:n&&(r[s]=n):s==="style"?r[s]={...n,...i}:s==="className"&&(r[s]=[n,i].filter(Boolean).join(" "))}return{...t,...r}}function bt(t){var s,n;let o=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?t.ref:(o=(n=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:n.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var yt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$t=yt.reduce((t,o)=>{const r=mt(`Primitive.${o}`),s=d.forwardRef((n,i)=>{const{asChild:l,...a}=n,c=l?r:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(c,{...a,ref:i})});return s.displayName=`Primitive.${o}`,{...t,[o]:s}},{}),jt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Rt="VisuallyHidden",se=d.forwardRef((t,o)=>e.jsx($t.span,{...t,ref:o,style:{...jt,...t.style}}));se.displayName=Rt;var St=se;const It=m(null,{all:"unset",display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:1,border:"1px solid transparent",boxSizing:"border-box",cursor:"pointer","&:focus-visible":{boxShadow:"0 0 0 2px $colors$blueA7"},"&:disabled":{backgroundColor:"$grayA3",color:"$grayA8",cursor:"not-allowed"}}),kt=m(ve,{position:"fixed",inset:0,animation:`${Ce} 150ms cubic-bezier(0.16, 1, 0.3, 1)`}),Mt=m(we,{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",minWidth:"440px",maxHeight:"85vh",padding:"$3",borderRadius:"$5",overflow:"hidden",backgroundColor:"$subbg",boxShadow:"$popContainer",animation:`${be} 150ms cubic-bezier(0.16, 1, 0.3, 1)`,"&:focus":{outline:"none"},"&[data-state=open]":{animation:`${ye} 250ms ease`},"&[data-state=closed]":{animation:`${$e} 250ms ease`}}),Pt=m(Q,It,{position:"absolute",appearance:"none",height:"$6",width:"$6",top:"$2",right:"$2",alignItems:"center",justifyContent:"center",border:"none",borderRadius:"$3",color:"$gray10",zIndex:2,backgroundColor:"transparent","& > svg":{height:"18px",width:"18px"},"&:hover":{color:"$gray12",backgroundColor:"$gray4"},"&:focus":{boxShadow:"0 0 0 3px $colors$grayA7"},"&:focus-visble":{boxShadow:"0 0 0 3px $colors$grayA7"}});function Lt({children:t,zIndex:o,css:r,...s}){return e.jsxs(ke,{children:[e.jsx(kt,{className:"DialogOverlay",style:{zIndex:o}}),e.jsx(Mt,{className:"DialogContent",...s,css:{...r,zIndex:o},children:t})]})}const Tt=Ie,Vt=Lt,c0=Q;function h0(t){return e.jsx(J,{asChild:!0,children:t.children})}function f0(t){const{trigger:o,children:r,closable:s,onOpenChange:n,disabled:i,css:l,zIndex:a,className:c,id:h,modal:u=!0,...f}=t;return e.jsxs(Tt,{onOpenChange:n,modal:u,...f,children:[o&&e.jsx(J,{asChild:!0,disabled:i,children:o}),e.jsxs(Vt,{id:h,css:l,zIndex:a,className:c,children:[e.jsxs(St,{children:[e.jsx(je,{}),e.jsx(Re,{})]}),r,s&&e.jsx(Pt,{children:e.jsx(Se,{})})]})]})}const X=m("div",{"&:after":{content:'""',position:"absolute"},variants:{variant:{solid:{borderColor:"$border","&:hover":{"&::after":{borderColor:"$blue10"}}},transparent:{"&::after":{borderColor:"transparent"},"&:hover":{"&::after":{borderColor:"$blue10"}}}},needPosition:{true:{position:"absolute"}},direction:{horizontal:{height:"100%",width:"4px",position:"absolute",cursor:"col-resize","&::after":{width:"4px",height:"100%",borderLeftWidth:"4px",borderLeftStyle:"solid",transition:"all .2s ease"}},vertical:{position:"absolute",height:"4px",width:"100%",cursor:"row-resize","&:after":{width:"100%",height:"4px",borderBottom:"4px solid $border",borderLeft:"none",transition:"all .2s ease"}}},position:{left:{top:0,left:0},right:{top:0,right:0},top:{top:0,left:0},bottom:{bottom:0,left:0}}},defaultVariants:{needPosition:!0,direction:"horizontal",position:"right",variant:"solid"}}),u0=d.forwardRef(function(o,r){const{children:s,range:n,direction:i="horizontal",handlerPosition:l="right",asChild:a=!1,variant:c="transparent",reverse:h=!1}=o,u=d.useRef(null),f=d.useRef(null),[v,C]=d.useState(n||{max:0,min:0}),[p,b]=d.useState({x:0,y:0}),[g,N]=d.useState({width:0,height:0}),[V,O]=d.useState(!1),S=({clientX:x,clientY:w})=>{if(!V)return;let y,$;h?(i==="horizontal"&&(y=k(g.width-(x-p.x),v.min,v.max)),i==="vertical"&&($=k(g.height-(w-p.y),v.min,v.max))):(i==="horizontal"&&(y=k(g.width+(x-p.x),v.min,v.max)),i==="vertical"&&($=k(g.height+(w-p.y),v.min,v.max))),i==="horizontal"&&(f.current.style.width=`${y}px`),i==="vertical"&&(f.current.style.height=`${$}px`)},I=d.useCallback(()=>{O(!1),N(x=>({...x,width:f.current.offsetWidth,height:f.current.offsetHeight}))},[]),_=x=>{x.preventDefault(),O(!0),b({x:x.clientX,y:x.clientY})};if(d.useEffect(()=>{const{offsetWidth:x,offsetHeight:w}=f.current;if(N({width:x,height:w}),!o.range){let y,$;i==="horizontal"&&(y=x-50,$=x+50,f.current.style.width=`${x}px`),i==="vertical"&&(y=w-50,$=w+50,f.current.style.height=`${w}px`),C({min:y,max:$})}f.current.style.flexGrow="initial"},[]),d.useEffect(()=>(u.current&&u.current.addEventListener("mousedown",_),V?(window.addEventListener("mousemove",S),window.addEventListener("mouseup",I)):(window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)),()=>{u.current&&u.current.removeEventListener("mousedown",_),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)}),[V,i,S,I]),a){const x=E.Children.only(s),w=e.jsx(X,{variant:c,needPosition:!1,ref:u,direction:i,position:l},"resize-handler");return E.cloneElement(x,{...x.props,ref:U([r,f,x.props.ref]),style:{...x.props.style||{},position:"relative"}},[x.props.children,w])}return e.jsxs("div",{ref:U([r,f]),style:{position:"relative"},children:[s,e.jsx(X,{variant:c,ref:u,direction:i,position:l})]})}),le="galacean-editor-theme",T=new Set,ae=()=>typeof window<"u",de=()=>!ae(),H={light:Me.className,dark:Pe.className,system:"system"},F="dark",Et=()=>{if(de())return F;try{const t=window.localStorage.getItem(le);return typeof t=="string"?t:F}catch(t){return console.warn(t),null}},Zt=()=>de()?F:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";function Ht(){if(!ae())return"dark";const t=document.documentElement;let o=Et();return o==null&&(o=Zt()),t.classList.add(H[o]),o}function p0(t){T.add(t)}function g0(t){T.delete(t)}const Ft=()=>{const[t,o]=d.useState(""),r=i=>{const l=document.documentElement;l.classList.remove(H[t]),l.classList.add(H[i]),o(i)},s=i=>{try{typeof i=="string"&&window.localStorage.setItem(le,i)}catch(l){console.warn(l)}};d.useEffect(()=>{const i=Ht();n(i)},[]),d.useEffect(()=>{function i(a){r(a.matches?"dark":"light")}function l(a){r(a.matches?"light":"dark")}return t==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",i),window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",l)),()=>{window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",i),window.matchMedia("(prefers-color-scheme: light)").removeEventListener("change",l)}},[t]);const n=i=>{r(i),s(i),i&&T.size&&T.forEach(l=>{l(i)})};return{theme:t,setTheme:n}},At=d.createContext(null),m0=({children:t})=>{const{theme:o,setTheme:r}=Ft();return e.jsx(At.Provider,{value:{theme:o,setTheme:r},children:t})};export{V1 as Accordion,E1 as AccordionItem,C0 as ActionButton,w0 as ActionButtonGroup,b0 as AlertDialog,y0 as AssetItem,$0 as Badge,L1 as BezierCurveEditor,j0 as Bold,R0 as BreadcrumbItem,S0 as Breadcrumbs,I0 as Button,H1 as Callout,k0 as CascadeSlider,M0 as Checkbox,P0 as Collapsible,L0 as ColorPicker,A1 as ContextMenu,f0 as Dialog,c0 as DialogCloseTrigger,h0 as DialogTrigger,T0 as DragContext,V0 as DragDropContextProvider,l0 as DragPreview,D1 as DropdownMenu,r0 as EditableText,E0 as EyeDropperIcon,fe as Flex,Bt as GalaceanLogo,Z0 as GradientSlider,H0 as HDRSlider,F0 as HoverCard,Nt as IconAnimationControllerFile,Ot as IconAnimatorClipFile,zt as IconCodeFile,_t as IconFontFile,Ut as IconLottieFile,A0 as IconPendingFile,Wt as IconPrefabFile,D0 as IconRightBottomCorner,Gt as IconSceneFile,Kt as IconShaderFile,Yt as IconSpineFile,Xt as IconSpineSkeletonFile,Qt as IconSpriteAltasFile,qt as IconSpriteFile,Jt as IconUnknownFile,e0 as IconVrReferenceImageFile,he as Input,B0 as InputNumber,a0 as InsertionIndicator,B1 as Kbd,z1 as KbdGroup,z0 as Link,N1 as MenuCheckboxItem,O1 as MenuGroup,_1 as MenuItem,U1 as MenuRadioGroup,W1 as MenuSeparator,G1 as Menubar,K1 as MenubarItem,X1 as MouseDoubleDownIcon,Y1 as MouseLeftDownIcon,q1 as MouseRightDownIcon,d0 as Pagination,N0 as ParticleSlider,O0 as Popover,_0 as PopoverCloseTrigger,o0 as Progress,u0 as ResizablePanel,Q1 as ScrollArea,U0 as SegmentControl,W0 as SegmentControlItem,G0 as Select,K0 as SelectItem,X0 as Separator,Y0 as Slider,q0 as Spin,J1 as SubMenuItem,s0 as Table,ue as Text,Q0 as Textarea,At as ThemeContext,m0 as ThemeProvider,J0 as Title,i0 as Toaster,e1 as ToggleGroup,t1 as ToggleGroupItem,to as Tooltip,o1 as TreeGroup,n1 as TreeItemContent,r1 as TreeItemIcon,i1 as TreeItemPreview,s1 as TreeItemRoot,n0 as Triangle,p0 as addThemeChangeListener,l1 as animations,a1 as blendParticleStops,k as clamp,d1 as createDisplayColorSpaceToggle,c1 as createTheme,q as css,Pe as darkTheme,H as defaultThemes,h1 as denormalizeColor,f1 as generateHDR,u1 as generateLinearGradient,p1 as generatePreviewColor,g1 as getCssText,m1 as globalCss,x1 as isEqual,v1 as keyframes,Me as lightTheme,C1 as linearColorToSRGB,U as mergeRefs,w1 as normalizeColor,b1 as recipes,g0 as removeThemeChangeListener,y1 as resetStyle,$1 as showAlert,j1 as srgbColorToLinear,m as styled,R1 as theme,S1 as toNormalizeHexStr,I1 as toast,k1 as useColorSpaceConversion,M1 as useDrag,ge as useDrop,Ft as useTheme};
|
|
21
|
+
Defaulting to \`null\`.`}var et=ee,tt=oe;const ot=m(et,{position:"relative",width:"100%",backgroundColor:"$softBg",borderRadius:"$round",overflow:"hidden",boxSizing:"border-box",border:"1px solid transparent",variants:{size:{sm:{height:"$1"},md:{height:"$1_5"},lg:{height:"$2"}}},defaultVariants:{size:"md"}}),nt=m(tt,{width:"100%",height:"100%",borderRadius:"$round",backgroundColor:"$selectionBg",transition:"transform .2s ease-out, background-color .2s ease-out"});function o0(t){const o=Math.max(0,Math.min(100,t.value??0));return e.jsx(ot,{...t,children:e.jsx(nt,{style:{transform:`translateX(-${100-o}%)`}})})}const n0=m("div",{position:"relative",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderRadius:"2px",borderTop:"6px solid CurrentColor",transformOrigin:"center",variants:{animate:{true:{transition:"transform .2s"}},size:{xs:{borderLeftWidth:"4px",borderRightWidth:"4px",borderTopWidth:"4px"}},direction:{rightbottom:{transform:"rotate(-45deg)"},leftbottom:{transform:"rotate(45deg)"},righttop:{transform:"rotate(135deg)"},lefttop:{transform:"rotate(-135deg)"},right:{transform:"rotate(90deg)"},left:{transform:"rotate(-90deg)"},top:{transform:"rotate(180deg)"},bottom:{transform:"rotate(0deg)"}}}}),re=m("span",{visibility:"hidden",position:"relative",cursor:"pointer",color:"$gray10","& > svg":{height:"14px",width:"14px",strokeWidth:1.8}}),rt=m("div",{maxWidth:"100%",display:"inline-block","&:hover":{[`${re}`]:{visibility:"visible"}},variants:{focused:{true:{backgroundColor:"$gray1"}}}});function r0(t){const{value:o,onBlur:r,showIcon:s,css:n,onEdit:i}=t,l=d.useRef(null),[a,c]=d.useState(o),[h,u]=d.useState(!1),[f,v]=d.useState(!1);d.useEffect(()=>{c(o)},[o]);const C=async()=>{v(!0),r&&typeof r=="function"&&await r(a),u(!1),v(!1)},p=()=>{u(!0),i&&i(),setTimeout(()=>{var g;(g=l.current)==null||g.focus()},0)},b=g=>{g.stopPropagation(),g.key==="Enter"&&C(),g.key==="Escape"&&(c(o),C())};return e.jsx(rt,{focused:h,css:n,children:h?e.jsx(he,{disabled:f,ref:l,value:a,onKeyDown:b,onChange:g=>{g.preventDefault(),g.stopPropagation(),c(g.target.value)},onKeyUp:g=>{g.preventDefault(),g.stopPropagation(),g.key==="Enter"&&C()},onBlur:()=>{C()}}):e.jsxs(fe,{align:"v",onClick:g=>{g.stopPropagation(),!s&&p()},gap:"xs",wrap:"false",css:n,children:[e.jsx(ue,{ellipsis:!0,size:1,css:n,children:a}),s&&e.jsx(re,{onClick:p,children:e.jsx(Ee,{})})]})})}const ie=Q({color:"$grayA11","& > div:first-child":{marginRight:"$2"},"div[role=status]":{margin:0}})(),it=Q({[`& .${ie}`]:{minHeight:"$7",padding:"$1_5 $2",borderRadius:"$3",border:"1px solid $gray6",backgroundColor:"$toasterBg",color:"$grayA11",fontSize:"$1",boxShadow:"0 5px 10px rgba(0,0,0,0.08)"}})();function i0(t){const{toastOptions:o,containerStyle:r,...s}=t;return e.jsx(pe,{containerStyle:{inset:38,...r},toastOptions:{...o,className:ie,success:{iconTheme:{primary:"var(--colors-green10)",secondary:"var(--colors-white)"}},error:{iconTheme:{primary:"var(--colors-red9)",secondary:"var(--colors-white)"}}},containerClassName:it,...s})}const Z=m("tr",{color:"$gray11"}),z=m("th",{fontWeight:"unset",textAlign:"start",fontSize:"$2",padding:"$2",borderBottom:"1px solid $gray3",userSelect:"none","&:nth-child(1)":{paddingLeft:"$2"},variants:{align:{start:{textAlign:"start"},center:{textAlign:"center"},end:{textAlign:"end"}},border:{solid:{borderBottom:"1px solid $gray3"},dashed:{borderBottom:"1px dashed $gray8"}}},defaultVariants:{align:"start",border:"solid"}}),L=m("td",{py:"$2",borderBottom:"1px solid $gray3",fontSize:"$2",padding:"$2",verticalAlign:"middle",userSelect:"none",variants:{align:{start:{textAlign:"start"},center:{textAlign:"center"},end:{textAlign:"end"}},border:{solid:{borderBottom:"1px solid $gray3"},dashed:{borderBottom:"1px dashed $gray8"}}},defaultVariants:{align:"start",border:"solid"}}),st=m("thead",{[`& ${z}`]:{fontSize:"$1",color:"$gray9"},[`& ${L}`]:{fontSize:"$1",color:"$gray9"}}),lt=m("tbody",{width:"100%",[`& ${Z}`]:{"&:hover":{backgroundColor:"$gray2"}}}),at=m("table",{width:"100%",tableLayout:"fixed",borderSpacing:0,variants:{compact:{true:{[`& ${z}`]:{padding:"$2 $0_5","&:nth-child(1)":{paddingLeft:"$2"}},[`& ${L}`]:{padding:"$0_5",fontSize:"$1"}}}}});function s0(t){const{columns:o=[],dataSource:r=[],rowKey:s,compact:n,onClickRow:i}=t;return e.jsxs(at,{compact:n,children:[e.jsx("colgroup",{children:o.map(l=>e.jsx("col",{span:1,style:{width:l.width||"auto"}},l.key))}),e.jsx(st,{children:e.jsx(Z,{children:o.map(l=>e.jsx(z,{children:l.title},l.key))})}),e.jsx(lt,{children:r.map((l,a)=>{const c=[];return o.forEach(h=>{if(h.render){c.push(e.jsx(L,{children:h.render(l[h.dataIndex],l)},h.key));return}c.push(e.jsx(L,{children:l[h.dataIndex]},h.key))}),e.jsx(Z,{onClick:h=>{i&&(h.stopPropagation(),i(l))},children:c},a)})})]})}const dt=m("div",{position:"relative",display:"flex",alignItems:"center",width:"300px",height:"$7",fontSize:"$1",boxSizing:"border-box",justifyContent:"space-between",padding:"0 $2",color:"white",backgroundColor:"$blue9",borderRadius:"$1","& > span:nth-child(2)":{display:"flex",alignItems:"center",height:"$5",fontSize:"$xs",padding:"0 $2",borderRadius:"$round",backgroundColor:"white",color:"$blue9"}});function l0(t){const{text:o,size:r}=t;return e.jsxs(dt,{children:[e.jsx("span",{children:o}),r>1&&e.jsx("span",{children:r})]})}const ct=m("div",{display:"flex",position:"absolute",width:"calc(100% - $sizes$8)",height:"$1",alignItems:"center",marginLeft:"$3",marginTop:"-$0_5",outline:"none",flexDirection:"row-reverse"}),ht=m("div",{position:"relative",height:1,outline:"none",pointerEvents:"none",flexDirection:"row-reverse",'&[data-drop-target="true"]':{backgroundColor:"#fff","&::after":{content:'""',position:"absolute",top:-4,left:-8,width:6,height:6,borderRadius:"$round",border:"1px solid white",zIndex:1}}});function a0(t){const{item:o,position:r,dropLayer:s,level:n,onDrop:i}=t,[l,a]=V.useState(!1),c=ge({accept:s??0,onEnter(u,f){f&&a(!0)},onLeave(){a(!1)},onDrop:(u,f)=>{a(!1),i(u,f,r)}}),h={width:`calc(100% - ${n*12}px)`};return e.jsx(ct,{ref:c,role:"option","aria-selected":"false","data-key":`${o}-${r}`,"aria-level":n,children:e.jsx(ht,{style:h,"data-drop-target":l})})}const j="...",R=(t,o)=>{const r=o-t+1;return Array.from({length:r},(s,n)=>n+t)},ft=t=>{const{totalCount:o,pageSize:r,siblingCount:s=1,currentPage:n}=t;return d.useMemo(()=>{const l=Math.ceil(o/r);if(s+5>=l)return R(1,l);const c=Math.max(n-s,1),h=Math.min(n+s,l),u=c>3,f=h<l-3,v=1,C=l;if(!u&&f){const p=3+2*s;return[...R(1,p),j,l]}if(u&&!f){const p=3+2*s,b=R(l-p+1,l);return[v,j,...b]}if(u&&f){const p=R(c,h);return[v,j,...p,j,C]}return R(1,l)},[o,r,s,n])},ut=m("ul",{display:"flex",alignItems:"center"}),M=m("li",{display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid $border",color:"$text",userSelect:"none",cursor:"pointer",marginRight:"$2",transition:"$borderColor, $backgroundColor, $color, $shadow","&:last-child":{marginRight:0},"&:hover":{borderColor:"$borderStrong",backgroundColor:"$surfaceSubtle"},"&:focus-visible":{borderColor:"$borderStrong",boxShadow:"$focus"},variants:{active:{true:{backgroundColor:"$selectionBg",borderColor:"$selectionBorder",color:"$selectionText","&:hover":{borderColor:"$selectionBorder",backgroundColor:"$selectionBgHover",color:"$selectionText"}}},disabled:{true:{backgroundColor:"$surface",color:"$textMuted",cursor:"initial","&:hover":{borderColor:"$border",backgroundColor:"$surface"}}},size:{sm:{height:"$sm",width:"$sm",fontSize:"$1",borderRadius:"$sm","& > svg":{width:"$iconSm",height:"$iconSm"}},md:{height:"$md",width:"$md",fontSize:"$2",borderRadius:"$md","& > svg":{width:"$iconMd",height:"$iconMd"}}}},defaultVariants:{size:"sm"}});function d0(t){const{totalCount:o,onPageChange:r,currentPage:s,pageSize:n,siblingCount:i=1,size:l}=t,[a=1,c]=me({prop:s,onChange:r,defaultProp:t.currentPage}),h=ft({currentPage:a,totalCount:o,siblingCount:i,pageSize:n}),u=h[h.length-1];if(a===0||h.length<2)return null;const f=()=>{a>=u||c(a+1)},v=()=>{a!==1&&c(a-1)},C=p=>{c(p)};return e.jsxs(ut,{children:[e.jsx(M,{size:l,onClick:v,disabled:a===1,children:e.jsx(Le,{})}),h.map((p,b)=>p===j?e.jsx(M,{size:l,children:e.jsx(Te,{})},`${j}_${b}`):e.jsx(M,{onClick:()=>C(p),active:p===a,size:l,children:p},p)),e.jsx(M,{size:l,onClick:f,disabled:a===u,children:e.jsx(xe,{})})]})}function K(t,o){if(typeof t=="function")return t(o);t!=null&&(t.current=o)}function pt(...t){return o=>{let r=!1;const s=t.map(n=>{const i=K(n,o);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let n=0;n<s.length;n++){const i=s[n];typeof i=="function"?i():K(t[n],null)}}}}function gt(...t){return d.useCallback(pt(...t),t)}function mt(t){const o=xt(t),r=d.forwardRef((s,n)=>{const{children:i,...l}=s,a=d.Children.toArray(i),c=a.find(Ct);if(c){const h=c.props.children,u=a.map(f=>f===c?d.Children.count(h)>1?d.Children.only(null):d.isValidElement(h)?h.props.children:null:f);return e.jsx(o,{...l,ref:n,children:d.isValidElement(h)?d.cloneElement(h,void 0,u):null})}return e.jsx(o,{...l,ref:n,children:i})});return r.displayName=`${t}.Slot`,r}function xt(t){const o=d.forwardRef((r,s)=>{const{children:n,...i}=r,l=d.isValidElement(n)?bt(n):void 0,a=gt(l,s);if(d.isValidElement(n)){const c=wt(i,n.props);return n.type!==d.Fragment&&(c.ref=a),d.cloneElement(n,c)}return d.Children.count(n)>1?d.Children.only(null):null});return o.displayName=`${t}.SlotClone`,o}var vt=Symbol("radix.slottable");function Ct(t){return d.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===vt}function wt(t,o){const r={...o};for(const s in o){const n=t[s],i=o[s];/^on[A-Z]/.test(s)?n&&i?r[s]=(...a)=>{const c=i(...a);return n(...a),c}:n&&(r[s]=n):s==="style"?r[s]={...n,...i}:s==="className"&&(r[s]=[n,i].filter(Boolean).join(" "))}return{...t,...r}}function bt(t){var s,n;let o=(s=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:s.get,r=o&&"isReactWarning"in o&&o.isReactWarning;return r?t.ref:(o=(n=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:n.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var yt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$t=yt.reduce((t,o)=>{const r=mt(`Primitive.${o}`),s=d.forwardRef((n,i)=>{const{asChild:l,...a}=n,c=l?r:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(c,{...a,ref:i})});return s.displayName=`Primitive.${o}`,{...t,[o]:s}},{}),jt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Rt="VisuallyHidden",se=d.forwardRef((t,o)=>e.jsx($t.span,{...t,ref:o,style:{...jt,...t.style}}));se.displayName=Rt;var St=se;const It=m(null,{all:"unset",display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:1,border:"1px solid transparent",boxSizing:"border-box",cursor:"pointer","&:focus-visible":{boxShadow:"0 0 0 2px $colors$blueA7"},"&:disabled":{backgroundColor:"$grayA3",color:"$grayA8",cursor:"not-allowed"}}),kt=m(ve,{position:"fixed",inset:0,animation:`${Ce} 150ms cubic-bezier(0.16, 1, 0.3, 1)`}),Mt=m(we,{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",minWidth:"440px",maxHeight:"85vh",padding:"$3",borderRadius:"$5",overflow:"hidden",backgroundColor:"$subbg",boxShadow:"$popContainer",animation:`${be} 150ms cubic-bezier(0.16, 1, 0.3, 1)`,"&:focus":{outline:"none"},"&[data-state=open]":{animation:`${ye} 250ms ease`},"&[data-state=closed]":{animation:`${$e} 250ms ease`}}),Pt=m(q,It,{position:"absolute",appearance:"none",height:"$6",width:"$6",top:"$2",right:"$2",alignItems:"center",justifyContent:"center",border:"none",borderRadius:"$3",color:"$gray10",zIndex:2,backgroundColor:"transparent","& > svg":{height:"18px",width:"18px"},"&:hover":{color:"$gray12",backgroundColor:"$gray4"},"&:focus":{boxShadow:"0 0 0 3px $colors$grayA7"},"&:focus-visble":{boxShadow:"0 0 0 3px $colors$grayA7"}});function Lt({children:t,zIndex:o,css:r,...s}){return e.jsxs(ke,{children:[e.jsx(kt,{className:"DialogOverlay",style:{zIndex:o}}),e.jsx(Mt,{className:"DialogContent",...s,css:{...r,zIndex:o},children:t})]})}const Tt=Ie,Et=Lt,c0=q;function h0(t){return e.jsx(J,{asChild:!0,children:t.children})}function f0(t){const{trigger:o,children:r,closable:s,onOpenChange:n,disabled:i,css:l,zIndex:a,className:c,id:h,modal:u=!0,...f}=t;return e.jsxs(Tt,{onOpenChange:n,modal:u,...f,children:[o&&e.jsx(J,{asChild:!0,disabled:i,children:o}),e.jsxs(Et,{id:h,css:l,zIndex:a,className:c,children:[e.jsxs(St,{children:[e.jsx(je,{}),e.jsx(Re,{})]}),r,s&&e.jsx(Pt,{children:e.jsx(Se,{})})]})]})}const X=m("div",{"&:after":{content:'""',position:"absolute"},variants:{variant:{solid:{borderColor:"$border","&:hover":{"&::after":{borderColor:"$blue10"}}},transparent:{"&::after":{borderColor:"transparent"},"&:hover":{"&::after":{borderColor:"$blue10"}}}},needPosition:{true:{position:"absolute"}},direction:{horizontal:{height:"100%",width:"4px",position:"absolute",cursor:"col-resize","&::after":{width:"4px",height:"100%",borderLeftWidth:"4px",borderLeftStyle:"solid",transition:"all .2s ease"}},vertical:{position:"absolute",height:"4px",width:"100%",cursor:"row-resize","&:after":{width:"100%",height:"4px",borderBottom:"4px solid $border",borderLeft:"none",transition:"all .2s ease"}}},position:{left:{top:0,left:0},right:{top:0,right:0},top:{top:0,left:0},bottom:{bottom:0,left:0}}},defaultVariants:{needPosition:!0,direction:"horizontal",position:"right",variant:"solid"}}),u0=d.forwardRef(function(o,r){const{children:s,range:n,direction:i="horizontal",handlerPosition:l="right",asChild:a=!1,variant:c="transparent",reverse:h=!1}=o,u=d.useRef(null),f=d.useRef(null),[v,C]=d.useState(n||{max:0,min:0}),[p,b]=d.useState({x:0,y:0}),[g,N]=d.useState({width:0,height:0}),[E,O]=d.useState(!1),S=({clientX:x,clientY:w})=>{if(!E)return;let y,$;h?(i==="horizontal"&&(y=k(g.width-(x-p.x),v.min,v.max)),i==="vertical"&&($=k(g.height-(w-p.y),v.min,v.max))):(i==="horizontal"&&(y=k(g.width+(x-p.x),v.min,v.max)),i==="vertical"&&($=k(g.height+(w-p.y),v.min,v.max))),i==="horizontal"&&(f.current.style.width=`${y}px`),i==="vertical"&&(f.current.style.height=`${$}px`)},I=d.useCallback(()=>{O(!1),N(x=>({...x,width:f.current.offsetWidth,height:f.current.offsetHeight}))},[]),_=x=>{x.preventDefault(),O(!0),b({x:x.clientX,y:x.clientY})};if(d.useEffect(()=>{const{offsetWidth:x,offsetHeight:w}=f.current;if(N({width:x,height:w}),!o.range){let y,$;i==="horizontal"&&(y=x-50,$=x+50,f.current.style.width=`${x}px`),i==="vertical"&&(y=w-50,$=w+50,f.current.style.height=`${w}px`),C({min:y,max:$})}f.current.style.flexGrow="initial"},[]),d.useEffect(()=>(u.current&&u.current.addEventListener("mousedown",_),E?(window.addEventListener("mousemove",S),window.addEventListener("mouseup",I)):(window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)),()=>{u.current&&u.current.removeEventListener("mousedown",_),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)}),[E,i,S,I]),a){const x=V.Children.only(s),w=e.jsx(X,{variant:c,needPosition:!1,ref:u,direction:i,position:l},"resize-handler");return V.cloneElement(x,{...x.props,ref:U([r,f,x.props.ref]),style:{...x.props.style||{},position:"relative"}},[x.props.children,w])}return e.jsxs("div",{ref:U([r,f]),style:{position:"relative"},children:[s,e.jsx(X,{variant:c,ref:u,direction:i,position:l})]})}),le="galacean-editor-theme",T=new Set,ae=()=>typeof window<"u",de=()=>!ae(),H={light:Me.className,dark:Pe.className,system:"system"},F="dark",Vt=()=>{if(de())return F;try{const t=window.localStorage.getItem(le);return typeof t=="string"?t:F}catch(t){return console.warn(t),null}},Zt=()=>de()?F:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";function Ht(){if(!ae())return"dark";const t=document.documentElement;let o=Vt();return o==null&&(o=Zt()),t.classList.add(H[o]),o}function p0(t){T.add(t)}function g0(t){T.delete(t)}const Ft=()=>{const[t,o]=d.useState(""),r=i=>{const l=document.documentElement;l.classList.remove(H[t]),l.classList.add(H[i]),o(i)},s=i=>{try{typeof i=="string"&&window.localStorage.setItem(le,i)}catch(l){console.warn(l)}};d.useEffect(()=>{const i=Ht();n(i)},[]),d.useEffect(()=>{function i(a){r(a.matches?"dark":"light")}function l(a){r(a.matches?"light":"dark")}return t==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",i),window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",l)),()=>{window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",i),window.matchMedia("(prefers-color-scheme: light)").removeEventListener("change",l)}},[t]);const n=i=>{r(i),s(i),i&&T.size&&T.forEach(l=>{l(i)})};return{theme:t,setTheme:n}},At=d.createContext(null),m0=({children:t})=>{const{theme:o,setTheme:r}=Ft();return e.jsx(At.Provider,{value:{theme:o,setTheme:r},children:t})};export{E1 as Accordion,V1 as AccordionItem,C0 as ActionButton,w0 as ActionButtonGroup,b0 as AlertDialog,y0 as AssetItem,$0 as Badge,L1 as BezierCurveEditor,j0 as Bold,R0 as BreadcrumbItem,S0 as Breadcrumbs,I0 as Button,H1 as Callout,k0 as CascadeSlider,M0 as Checkbox,P0 as Collapsible,L0 as ColorPicker,A1 as ContextMenu,f0 as Dialog,c0 as DialogCloseTrigger,h0 as DialogTrigger,T0 as DragContext,E0 as DragDropContextProvider,l0 as DragPreview,D1 as DropdownMenu,r0 as EditableText,V0 as EyeDropperIcon,fe as Flex,Bt as GalaceanLogo,Z0 as GradientSlider,H0 as HDRSlider,F0 as HoverCard,Nt as IconAnimationControllerFile,Ot as IconAnimatorClipFile,zt as IconCodeFile,_t as IconFontFile,Ut as IconLottieFile,A0 as IconPendingFile,Gt as IconPrefabFile,D0 as IconRightBottomCorner,Wt as IconSceneFile,Kt as IconShaderFile,Yt as IconSpineFile,Xt as IconSpineSkeletonFile,qt as IconSpriteAltasFile,Qt as IconSpriteFile,Jt as IconUnknownFile,e0 as IconVrReferenceImageFile,he as Input,B0 as InputNumber,a0 as InsertionIndicator,B1 as Kbd,z1 as KbdGroup,z0 as Link,N1 as MenuCheckboxItem,O1 as MenuGroup,_1 as MenuItem,U1 as MenuRadioGroup,G1 as MenuSeparator,W1 as Menubar,K1 as MenubarItem,X1 as MouseDoubleDownIcon,Y1 as MouseLeftDownIcon,Q1 as MouseRightDownIcon,d0 as Pagination,N0 as ParticleSlider,O0 as Popover,_0 as PopoverCloseTrigger,o0 as Progress,u0 as ResizablePanel,q1 as ScrollArea,U0 as SegmentControl,G0 as SegmentControlItem,W0 as Select,K0 as SelectItem,X0 as Separator,Y0 as Slider,Q0 as Spin,J1 as SubMenuItem,s0 as Table,ue as Text,q0 as Textarea,At as ThemeContext,m0 as ThemeProvider,J0 as Title,i0 as Toaster,e1 as ToggleGroup,t1 as ToggleGroupItem,to as Tooltip,o1 as TreeGroup,n1 as TreeItemContent,r1 as TreeItemIcon,i1 as TreeItemPreview,s1 as TreeItemRoot,n0 as Triangle,p0 as addThemeChangeListener,l1 as animations,a1 as blendParticleStops,k as clamp,d1 as createDisplayColorSpaceToggle,c1 as createTheme,Q as css,Pe as darkTheme,H as defaultThemes,h1 as denormalizeColor,f1 as generateHDR,u1 as generateLinearGradient,p1 as generatePreviewColor,g1 as getCssText,m1 as globalCss,x1 as isEqual,v1 as keyframes,Me as lightTheme,C1 as linearColorToSRGB,U as mergeRefs,w1 as normalizeColor,b1 as recipes,g0 as removeThemeChangeListener,y1 as resetStyle,$1 as showAlert,j1 as srgbColorToLinear,m as styled,R1 as theme,S1 as toNormalizeHexStr,I1 as toast,k1 as useColorSpaceConversion,M1 as useDrag,ge as useDrop,Ft as useTheme};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{f2 as q,aH as b,aM as S,av as n,b7 as w,b8 as De,f3 as G,f4 as Oe,aI as Ye,f5 as it,aL as se,aP as st,f6 as at}from"./index-b126bb6b.js";import{C as lt,M as ct}from"./Menu-36c201c0.js";/**
|
|
2
2
|
* @license @tabler/icons-react v3.24.0 - MIT
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the MIT license.
|