@galacean/cli 2.0.0-alpha.22 → 2.0.0-alpha.24
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 +32922 -32372
- package/dist/preview-client/_static/{Accordion-b106eaf3.js → Accordion-f938dadf.js} +1 -1
- package/dist/preview-client/_static/{AmbientLightAsset-6b2d168c.js → AmbientLightAsset-e34de607.js} +1 -1
- package/dist/preview-client/_static/{AnimationClipAsset-a5d290cc.js → AnimationClipAsset-b084da2a.js} +1 -1
- package/dist/preview-client/_static/{AnimatorControllerAsset-616578b4.js → AnimatorControllerAsset-6cc04274.js} +1 -1
- package/dist/preview-client/_static/{AnimatorStore-bc865a7e.js → AnimatorStore-0bc90c37.js} +1 -1
- package/dist/preview-client/_static/{AssetViewer-1a9f3cad.js → AssetViewer-d2c63b00.js} +1 -1
- package/dist/preview-client/_static/{AudioAsset-24b03bc3.js → AudioAsset-9c715952.js} +1 -1
- package/dist/preview-client/_static/{AudioComponent-060f13a6.js → AudioComponent-80d06ef4.js} +1 -1
- package/dist/preview-client/_static/{Callout-c8b9b055.js → Callout-48e71f13.js} +1 -1
- package/dist/preview-client/_static/{CameraComponent-33b1918d.js → CameraComponent-9c9db3fb.js} +1 -1
- package/dist/preview-client/_static/{Component-3cb422ab.js → Component-b95aa2af.js} +1 -1
- package/dist/preview-client/_static/{DirectLight-072d3047.js → DirectLight-b0490ef7.js} +1 -1
- package/dist/preview-client/_static/{FontAsset-1e1118c1.js → FontAsset-6e9c0549.js} +1 -1
- package/dist/preview-client/_static/{FormItemArray-f1283fce.js → FormItemArray-b2a3d249.js} +1 -1
- package/dist/preview-client/_static/{GlTFAsset-dc68541e.js → GlTFAsset-83e8190e.js} +1 -1
- package/dist/preview-client/_static/{IconPlus-99d7bb90.js → IconPlus-172c6c17.js} +1 -1
- package/dist/preview-client/_static/{IconPointFilled-f8224625.js → IconPointFilled-bad94cf1.js} +1 -1
- package/dist/preview-client/_static/{LightBaseComponent-b610e42a.js → LightBaseComponent-b4854e8a.js} +1 -1
- package/dist/preview-client/_static/{LottieAnimationComponent-b70c2426.js → LottieAnimationComponent-efd5da2b.js} +1 -1
- package/dist/preview-client/_static/{MarkdownAsset-2a4a1d10.js → MarkdownAsset-b42846c0.js} +1 -1
- package/dist/preview-client/_static/{MaterialAsset-dfaa82d9.js → MaterialAsset-0b9d7eba.js} +1 -1
- package/dist/preview-client/_static/{MaterialInspector-21fc5b67.js → MaterialInspector-23ea0240.js} +1 -1
- package/dist/preview-client/_static/{Menu-62cee67e.js → Menu-05c1f0a4.js} +1 -1
- package/dist/preview-client/_static/{MeshAsset-07529e4e.js → MeshAsset-85e99837.js} +1 -1
- package/dist/preview-client/_static/{MeshRendererBaseComponent-2af8db12.js → MeshRendererBaseComponent-5621d663.js} +1 -1
- package/dist/preview-client/_static/{MeshRendererComponent-d9df7d58.js → MeshRendererComponent-c3c3c683.js} +1 -1
- package/dist/preview-client/_static/{MeshThumbnail-bd30617c.js → MeshThumbnail-b1283749.js} +1 -1
- package/dist/preview-client/_static/{ParticleRendererComponent-8729cfbf.js → ParticleRendererComponent-94656239.js} +1 -1
- package/dist/preview-client/_static/{PhysicsMaterialAsset-e9abb944.js → PhysicsMaterialAsset-cb9afb6e.js} +1 -1
- package/dist/preview-client/_static/{PhysicsStore-96164e4e.js → PhysicsStore-0a751fa0.js} +1 -1
- package/dist/preview-client/_static/{PointLight-76172b61.js → PointLight-a2bfed75.js} +1 -1
- package/dist/preview-client/_static/{PostProcessComponent-83f23ced.js → PostProcessComponent-040cf521.js} +1 -1
- package/dist/preview-client/_static/{PrefabAsset-4bac196b.js → PrefabAsset-265f6f48.js} +1 -1
- package/dist/preview-client/_static/{PrimitiveMesh-9ff7dbc1.js → PrimitiveMesh-70c93e7e.js} +1 -1
- package/dist/preview-client/_static/{ReferencedMaterial-27ba90e2.js → ReferencedMaterial-831d0583.js} +1 -1
- package/dist/preview-client/_static/{RenderTargetAsset-e112b8ca.js → RenderTargetAsset-b810caf3.js} +1 -1
- package/dist/preview-client/_static/{SceneAsset-a39f097a.js → SceneAsset-d05b1a79.js} +1 -1
- package/dist/preview-client/_static/{ShaderAsset-068b4b97.js → ShaderAsset-370b6f1c.js} +1 -1
- package/dist/preview-client/_static/{ShaderChunkAsset-bdb39acc.js → ShaderChunkAsset-e3487bd1.js} +1 -1
- package/dist/preview-client/_static/{ShaderUIScriptAsset-0c11d0ed.js → ShaderUIScriptAsset-ebf57ceb.js} +1 -1
- package/dist/preview-client/_static/{SkinnedMeshRendererComponent-5e58927a.js → SkinnedMeshRendererComponent-ee33da25.js} +1 -1
- package/dist/preview-client/_static/{SpineAnimationComponent-1ae4feaa.js → SpineAnimationComponent-12e694e8.js} +1 -1
- package/dist/preview-client/_static/{SpineSkeletonDataAsset-284f5f4d.js → SpineSkeletonDataAsset-0dffbb4d.js} +1 -1
- package/dist/preview-client/_static/{SpotLight-1a8af1d4.js → SpotLight-ada565f2.js} +1 -1
- package/dist/preview-client/_static/{SpriteBaseComponent-fd82e43b.js → SpriteBaseComponent-3156cb3b.js} +1 -1
- package/dist/preview-client/_static/{SpriteMaskComponent-eab0faf7.js → SpriteMaskComponent-a32024e1.js} +1 -1
- package/dist/preview-client/_static/{SpriteRendererComponent-1496fc43.js → SpriteRendererComponent-489486e0.js} +1 -1
- package/dist/preview-client/_static/{TextBaseComponent-7d2db29c.js → TextBaseComponent-520dea39.js} +1 -1
- package/dist/preview-client/_static/{TextRendererComponent-88494abb.js → TextRendererComponent-6be5f80c.js} +1 -1
- package/dist/preview-client/_static/{TextureAsset-7172cc65.js → TextureAsset-9cd94531.js} +1 -1
- package/dist/preview-client/_static/{Tooltip-9ce2e9d6.js → Tooltip-71e5a4e7.js} +1 -1
- package/dist/preview-client/_static/{TrailRendererComponent-4443baab.js → TrailRendererComponent-74bf88c0.js} +1 -1
- package/dist/preview-client/_static/{TransformBaseComponent-ca2fa45d.js → TransformBaseComponent-0d241199.js} +1 -1
- package/dist/preview-client/_static/{TransformComponent-683b5e9c.js → TransformComponent-49d279f5.js} +1 -1
- package/dist/preview-client/_static/{XRReferenceImageAsset-823e47cd.js → XRReferenceImageAsset-79e78558.js} +1 -1
- package/dist/preview-client/_static/{audio-10d03160.js → audio-5d0ddf55.js} +1 -1
- package/dist/preview-client/_static/{createOnModelChange-73358d10.js → createOnModelChange-e65da908.js} +1 -1
- package/dist/preview-client/_static/{createReactComponent-fcd6848b.js → createReactComponent-cb70ea50.js} +1 -1
- package/dist/preview-client/_static/index-0fef73f8.js +1 -0
- package/dist/preview-client/_static/index-1e036622.js +1 -0
- package/dist/preview-client/_static/index-1fd4207a.js +1 -0
- package/dist/preview-client/_static/{index-2202e8e4.js → index-46c87b46.js} +1 -1
- package/dist/preview-client/_static/index-6649d404.js +1 -0
- package/dist/preview-client/_static/{index-8d2f0997.js → index-788e8750.js} +1 -1
- package/dist/preview-client/_static/{index-2274eaf1.js → index-7e414715.js} +1 -1
- package/dist/preview-client/_static/index-87ef1c72.js +1 -0
- package/dist/preview-client/_static/{index-4ac10da2.js → index-b13216a9.js} +1 -1
- package/dist/preview-client/_static/{index-5392907c.js → index-b4bde36a.js} +3 -3
- package/dist/preview-client/_static/{index-4cde6efd.js → index-d00c8bc3.js} +1 -1
- package/dist/preview-client/_static/index-d9ee84ce.js +1 -0
- package/dist/preview-client/_static/{index-0a53aaef.js → index-debbe073.js} +1 -1
- package/dist/preview-client/_static/{index-03b6134d.js → index-e44b357e.js} +6 -6
- package/dist/preview-client/_static/{index-19f5510d.js → index-ea7fe254.js} +1 -1
- package/dist/preview-client/_static/{index-7e5ce9d9.js → index-f7bd6fef.js} +1 -1
- package/dist/preview-client/_static/{ktx2-encoder-4cac07f2.js → ktx2-encoder-522fc017.js} +1 -1
- package/dist/preview-client/_static/{module-101126a2.js → module-5547be1c.js} +1 -1
- package/dist/preview-client/_static/{module-5fa1eae0.js → module-57b6e417.js} +1 -1
- package/dist/preview-client/_static/{module-03df665c.js → module-5906e0d4.js} +1 -1
- package/dist/preview-client/_static/postmen-443b3e5f.js +2 -0
- package/dist/preview-client/_static/{shader-data-utils-d59bc4f5.js → shader-data-utils-000170ae.js} +1 -1
- package/dist/preview-client/index.html +1 -1
- package/package.json +1 -1
- package/dist/preview-client/_static/index-0a683358.js +0 -1
- package/dist/preview-client/_static/index-6f3c991c.js +0 -1
- package/dist/preview-client/_static/index-a2c9fc83.js +0 -1
- package/dist/preview-client/_static/index-c216bbcf.js +0 -1
- package/dist/preview-client/_static/index-f06b751f.js +0 -1
- package/dist/preview-client/_static/index-f4a0b8dd.js +0 -1
- package/dist/preview-client/_static/postmen-9e6354af.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var vt=Object.defineProperty;var yt=(t,e,r)=>e in t?vt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var D=(t,e,r)=>(yt(t,typeof e!="symbol"?e+"":e,r),r);import{gr as gt,gs as S,f5 as St,e as bt,bX as H,gt as wt,gu as Rt,c_ as Ct,C as Et,j as At,gv as Ae,dL as xt}from"./index-e44b357e.js";import{r as h}from"./index-debbe073.js";const xe="https://editor-local-redirect.invalid";function Ot(t){const e=t.hostname,r=e.split(".").filter(Boolean);return r.length>=2?r.slice(-2).join("."):e}function Pt(t,e="/editor"){if(t.startsWith("/")&&!t.startsWith("//"))try{if(new URL(t,xe).origin===xe)return t}catch{}try{const r=new URL(t.startsWith("http")?t:`https://${t}`),s=Ot(r);if(gt.some(a=>s===a))return t}catch{console.warn("Invalid redirect URL format:",t)}return e}function et(){const t=window.location.host;return t.includes("local.dev.alipay.net")?S.local_test:t.includes("local.alipay.net")||t.includes("localhost")?S.local:/dev\.alipay\.net/.test(t)||/site-dev-\w+\.alipay\.net/.test(t)?S.dev:/test\.alipay\.net/.test(t)?S.test:/oasiseditorshell-pre/.test(t)||t.includes("local.alipay.com")?S.pre:S.prod}function It(t=""){t.startsWith("?")?window.location.href=`/editor/signin${t}`:window.location.href=`/editor/signin${t?`?${t}`:""}`}var ye={exports:{}},tt=function(e,r){return function(){for(var n=new Array(arguments.length),a=0;a<n.length;a++)n[a]=arguments[a];return e.apply(r,n)}},qt=tt,T=Object.prototype.toString;function ge(t){return Array.isArray(t)}function he(t){return typeof t>"u"}function Tt(t){return t!==null&&!he(t)&&t.constructor!==null&&!he(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function rt(t){return T.call(t)==="[object ArrayBuffer]"}function Ut(t){return T.call(t)==="[object FormData]"}function Dt(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&rt(t.buffer),e}function Nt(t){return typeof t=="string"}function kt(t){return typeof t=="number"}function nt(t){return t!==null&&typeof t=="object"}function J(t){if(T.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Lt(t){return T.call(t)==="[object Date]"}function $t(t){return T.call(t)==="[object File]"}function Bt(t){return T.call(t)==="[object Blob]"}function st(t){return T.call(t)==="[object Function]"}function Ft(t){return nt(t)&&st(t.pipe)}function jt(t){return T.call(t)==="[object URLSearchParams]"}function _t(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Mt(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Se(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),ge(t))for(var r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(null,t[n],n,t)}function me(){var t={};function e(n,a){J(t[a])&&J(n)?t[a]=me(t[a],n):J(n)?t[a]=me({},n):ge(n)?t[a]=n.slice():t[a]=n}for(var r=0,s=arguments.length;r<s;r++)Se(arguments[r],e);return t}function Ht(t,e,r){return Se(e,function(n,a){r&&typeof n=="function"?t[a]=qt(n,r):t[a]=n}),t}function Jt(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var b={isArray:ge,isArrayBuffer:rt,isBuffer:Tt,isFormData:Ut,isArrayBufferView:Dt,isString:Nt,isNumber:kt,isObject:nt,isPlainObject:J,isUndefined:he,isDate:Lt,isFile:$t,isBlob:Bt,isFunction:st,isStream:Ft,isURLSearchParams:jt,isStandardBrowserEnv:Mt,forEach:Se,merge:me,extend:Ht,trim:_t,stripBOM:Jt},k=b;function Oe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var at=function(e,r,s){if(!r)return e;var n;if(s)n=s(r);else if(k.isURLSearchParams(r))n=r.toString();else{var a=[];k.forEach(r,function(c,f){c===null||typeof c>"u"||(k.isArray(c)?f=f+"[]":c=[c],k.forEach(c,function(u){k.isDate(u)?u=u.toISOString():k.isObject(u)&&(u=JSON.stringify(u)),a.push(Oe(f)+"="+Oe(u))}))}),n=a.join("&")}if(n){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e},Vt=b;function z(){this.handlers=[]}z.prototype.use=function(e,r,s){return this.handlers.push({fulfilled:e,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1};z.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};z.prototype.forEach=function(e){Vt.forEach(this.handlers,function(s){s!==null&&e(s)})};var zt=z,Xt=b,Wt=function(e,r){Xt.forEach(e,function(n,a){a!==r&&a.toUpperCase()===r.toUpperCase()&&(e[r]=n,delete e[a])})},ot=function(e,r,s,n,a){return e.config=r,s&&(e.code=s),e.request=n,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},it={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Y,Pe;function ut(){if(Pe)return Y;Pe=1;var t=ot;return Y=function(r,s,n,a,o){var i=new Error(r);return t(i,s,n,a,o)},Y}var Z,Ie;function Gt(){if(Ie)return Z;Ie=1;var t=ut();return Z=function(r,s,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?r(n):s(t("Request failed with status code "+n.status,n.config,null,n.request,n))},Z}var Q,qe;function Kt(){if(qe)return Q;qe=1;var t=b;return Q=t.isStandardBrowserEnv()?function(){return{write:function(s,n,a,o,i,c){var f=[];f.push(s+"="+encodeURIComponent(n)),t.isNumber(a)&&f.push("expires="+new Date(a).toGMTString()),t.isString(o)&&f.push("path="+o),t.isString(i)&&f.push("domain="+i),c===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(s){var n=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Q}var ee,Te;function Yt(){return Te||(Te=1,ee=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}),ee}var te,Ue;function Zt(){return Ue||(Ue=1,te=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}),te}var re,De;function Qt(){if(De)return re;De=1;var t=Yt(),e=Zt();return re=function(s,n){return s&&!t(n)?e(s,n):n},re}var ne,Ne;function er(){if(Ne)return ne;Ne=1;var t=b,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return ne=function(s){var n={},a,o,i;return s&&t.forEach(s.split(`
|
|
2
|
+
`),function(f){if(i=f.indexOf(":"),a=t.trim(f.substr(0,i)).toLowerCase(),o=t.trim(f.substr(i+1)),a){if(n[a]&&e.indexOf(a)>=0)return;a==="set-cookie"?n[a]=(n[a]?n[a]:[]).concat([o]):n[a]=n[a]?n[a]+", "+o:o}}),n},ne}var se,ke;function tr(){if(ke)return se;ke=1;var t=b;return se=t.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a"),n;function a(o){var i=o;return r&&(s.setAttribute("href",i),i=s.href),s.setAttribute("href",i),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return n=a(window.location.href),function(i){var c=t.isString(i)?a(i):i;return c.protocol===n.protocol&&c.host===n.host}}():function(){return function(){return!0}}(),se}var ae,Le;function X(){if(Le)return ae;Le=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,ae=t,ae}var oe,$e;function Be(){if($e)return oe;$e=1;var t=b,e=Gt(),r=Kt(),s=at,n=Qt(),a=er(),o=tr(),i=ut(),c=it,f=X();return oe=function(u){return new Promise(function(v,m){var y=u.data,C=u.headers,P=u.responseType,x;function B(){u.cancelToken&&u.cancelToken.unsubscribe(x),u.signal&&u.signal.removeEventListener("abort",x)}t.isFormData(y)&&delete C["Content-Type"];var d=new XMLHttpRequest;if(u.auth){var j=u.auth.username||"",I=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";C.Authorization="Basic "+btoa(j+":"+I)}var Re=n(u.baseURL,u.url);d.open(u.method.toUpperCase(),s(Re,u.params,u.paramsSerializer),!0),d.timeout=u.timeout;function Ce(){if(d){var E="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,N=!P||P==="text"||P==="json"?d.responseText:d.response,U={data:N,status:d.status,statusText:d.statusText,headers:E,config:u,request:d};e(function(K){v(K),B()},function(K){m(K),B()},U),d=null}}if("onloadend"in d?d.onloadend=Ce:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(Ce)},d.onabort=function(){d&&(m(i("Request aborted",u,"ECONNABORTED",d)),d=null)},d.onerror=function(){m(i("Network Error",u,null,d)),d=null},d.ontimeout=function(){var N=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",U=u.transitional||c;u.timeoutErrorMessage&&(N=u.timeoutErrorMessage),m(i(N,u,U.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",d)),d=null},t.isStandardBrowserEnv()){var Ee=(u.withCredentials||o(Re))&&u.xsrfCookieName?r.read(u.xsrfCookieName):void 0;Ee&&(C[u.xsrfHeaderName]=Ee)}"setRequestHeader"in d&&t.forEach(C,function(N,U){typeof y>"u"&&U.toLowerCase()==="content-type"?delete C[U]:d.setRequestHeader(U,N)}),t.isUndefined(u.withCredentials)||(d.withCredentials=!!u.withCredentials),P&&P!=="json"&&(d.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&d.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",u.onUploadProgress),(u.cancelToken||u.signal)&&(x=function(E){d&&(m(!E||E&&E.type?new f("canceled"):E),d.abort(),d=null)},u.cancelToken&&u.cancelToken.subscribe(x),u.signal&&(u.signal.aborted?x():u.signal.addEventListener("abort",x))),y||(y=null),d.send(y)})},oe}var g=b,Fe=Wt,rr=ot,nr=it,sr={"Content-Type":"application/x-www-form-urlencoded"};function je(t,e){!g.isUndefined(t)&&g.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function ar(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=Be()),t}function or(t,e,r){if(g.isString(t))try{return(e||JSON.parse)(t),g.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(t)}var W={transitional:nr,adapter:ar(),transformRequest:[function(e,r){return Fe(r,"Accept"),Fe(r,"Content-Type"),g.isFormData(e)||g.isArrayBuffer(e)||g.isBuffer(e)||g.isStream(e)||g.isFile(e)||g.isBlob(e)?e:g.isArrayBufferView(e)?e.buffer:g.isURLSearchParams(e)?(je(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):g.isObject(e)||r&&r["Content-Type"]==="application/json"?(je(r,"application/json"),or(e)):e}],transformResponse:[function(e){var r=this.transitional||W.transitional,s=r&&r.silentJSONParsing,n=r&&r.forcedJSONParsing,a=!s&&this.responseType==="json";if(a||n&&g.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?rr(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};g.forEach(["delete","get","head"],function(e){W.headers[e]={}});g.forEach(["post","put","patch"],function(e){W.headers[e]=g.merge(sr)});var be=W,ir=b,ur=be,cr=function(e,r,s){var n=this||ur;return ir.forEach(s,function(o){e=o.call(n,e,r)}),e},ie,_e;function ct(){return _e||(_e=1,ie=function(e){return!!(e&&e.__CANCEL__)}),ie}var Me=b,ue=cr,lr=ct(),dr=be,fr=X();function ce(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new fr("canceled")}var pr=function(e){ce(e),e.headers=e.headers||{},e.data=ue.call(e,e.data,e.headers,e.transformRequest),e.headers=Me.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Me.forEach(["delete","get","head","post","put","patch","common"],function(n){delete e.headers[n]});var r=e.adapter||dr.adapter;return r(e).then(function(n){return ce(e),n.data=ue.call(e,n.data,n.headers,e.transformResponse),n},function(n){return lr(n)||(ce(e),n&&n.response&&(n.response.data=ue.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)})},w=b,lt=function(e,r){r=r||{};var s={};function n(l,u){return w.isPlainObject(l)&&w.isPlainObject(u)?w.merge(l,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function a(l){if(w.isUndefined(r[l])){if(!w.isUndefined(e[l]))return n(void 0,e[l])}else return n(e[l],r[l])}function o(l){if(!w.isUndefined(r[l]))return n(void 0,r[l])}function i(l){if(w.isUndefined(r[l])){if(!w.isUndefined(e[l]))return n(void 0,e[l])}else return n(void 0,r[l])}function c(l){if(l in r)return n(e[l],r[l]);if(l in e)return n(void 0,e[l])}var f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c};return w.forEach(Object.keys(e).concat(Object.keys(r)),function(u){var p=f[u]||a,v=p(u);w.isUndefined(v)&&p!==c||(s[u]=v)}),s},le,He;function dt(){return He||(He=1,le={version:"0.26.1"}),le}var hr=dt().version,we={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){we[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});var Je={};we.transitional=function(e,r,s){function n(a,o){return"[Axios v"+hr+"] Transitional option '"+a+"'"+o+(s?". "+s:"")}return function(a,o,i){if(e===!1)throw new Error(n(o," has been removed"+(r?" in "+r:"")));return r&&!Je[o]&&(Je[o]=!0,console.warn(n(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,i):!0}};function mr(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var s=Object.keys(t),n=s.length;n-- >0;){var a=s[n],o=e[a];if(o){var i=t[a],c=i===void 0||o(i,a,t);if(c!==!0)throw new TypeError("option "+a+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+a)}}var vr={assertOptions:mr,validators:we},ft=b,yr=at,Ve=zt,ze=pr,G=lt,pt=vr,L=pt.validators;function F(t){this.defaults=t,this.interceptors={request:new Ve,response:new Ve}}F.prototype.request=function(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=G(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var s=r.transitional;s!==void 0&&pt.assertOptions(s,{silentJSONParsing:L.transitional(L.boolean),forcedJSONParsing:L.transitional(L.boolean),clarifyTimeoutError:L.transitional(L.boolean)},!1);var n=[],a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(a=a&&v.synchronous,n.unshift(v.fulfilled,v.rejected))});var o=[];this.interceptors.response.forEach(function(v){o.push(v.fulfilled,v.rejected)});var i;if(!a){var c=[ze,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(o),i=Promise.resolve(r);c.length;)i=i.then(c.shift(),c.shift());return i}for(var f=r;n.length;){var l=n.shift(),u=n.shift();try{f=l(f)}catch(p){u(p);break}}try{i=ze(f)}catch(p){return Promise.reject(p)}for(;o.length;)i=i.then(o.shift(),o.shift());return i};F.prototype.getUri=function(e){return e=G(this.defaults,e),yr(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};ft.forEach(["delete","get","head","options"],function(e){F.prototype[e]=function(r,s){return this.request(G(s||{},{method:e,url:r,data:(s||{}).data}))}});ft.forEach(["post","put","patch"],function(e){F.prototype[e]=function(r,s,n){return this.request(G(n||{},{method:e,url:r,data:s}))}});var gr=F,de,Xe;function Sr(){if(Xe)return de;Xe=1;var t=X();function e(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var s;this.promise=new Promise(function(o){s=o});var n=this;this.promise.then(function(a){if(n._listeners){var o,i=n._listeners.length;for(o=0;o<i;o++)n._listeners[o](a);n._listeners=null}}),this.promise.then=function(a){var o,i=new Promise(function(c){n.subscribe(c),o=c}).then(a);return i.cancel=function(){n.unsubscribe(o)},i},r(function(o){n.reason||(n.reason=new t(o),s(n.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]},e.prototype.unsubscribe=function(s){if(this._listeners){var n=this._listeners.indexOf(s);n!==-1&&this._listeners.splice(n,1)}},e.source=function(){var s,n=new e(function(o){s=o});return{token:n,cancel:s}},de=e,de}var fe,We;function br(){return We||(We=1,fe=function(e){return function(s){return e.apply(null,s)}}),fe}var pe,Ge;function wr(){if(Ge)return pe;Ge=1;var t=b;return pe=function(r){return t.isObject(r)&&r.isAxiosError===!0},pe}var Ke=b,Rr=tt,V=gr,Cr=lt,Er=be;function ht(t){var e=new V(t),r=Rr(V.prototype.request,e);return Ke.extend(r,V.prototype,e),Ke.extend(r,e),r.create=function(n){return ht(Cr(t,n))},r}var A=ht(Er);A.Axios=V;A.Cancel=X();A.CancelToken=Sr();A.isCancel=ct();A.VERSION=dt().version;A.all=function(e){return Promise.all(e)};A.spread=br();A.isAxiosError=wr();ye.exports=A;ye.exports.default=A;var Ar=ye.exports,xr=Ar;const Or=St(xr);/*! js-cookie v3.0.1 | MIT */function _(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)t[s]=r[s]}return t}var Pr={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ve(t,e){function r(n,a,o){if(!(typeof document>"u")){o=_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var c in o)o[c]&&(i+="; "+c,o[c]!==!0&&(i+="="+o[c].split(";")[0]));return document.cookie=n+"="+t.write(a,n)+i}}function s(n){if(!(typeof document>"u"||arguments.length&&!n)){for(var a=document.cookie?document.cookie.split("; "):[],o={},i=0;i<a.length;i++){var c=a[i].split("="),f=c.slice(1).join("=");try{var l=decodeURIComponent(c[0]);if(o[l]=t.read(f,l),n===l)break}catch{}}return n?o[n]:o}}return Object.create({set:r,get:s,remove:function(n,a){r(n,"",_({},a,{expires:-1}))},withAttributes:function(n){return ve(this.converter,_({},this.attributes,n))},withConverter:function(n){return ve(_({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Ye=ve(Pr,{path:"/"});const Ir="https://oasisbe.test.alipay.net",qr="https://local.dev.alipay.net:8443";let O;function Tr(){if(O!==void 0)return O;switch(et()){case S.local:case S.dev:O=qr;break;case S.local_test:case S.test:O=Ir;break;case S.pre:O="https://oasisbe-pre.alipay.com";break;default:{const e=location.host;/alipay\.com/.test(e)?O="https://oasisbe.alipay.com":/antgroup-inc\.cn/.test(e)?O="https://oasisbe.antgroup-inc.cn":O="https://oasisbe.antgroup.com";break}}return O}const Ur=["/api/postmen/createAuthToken"],Dr=()=>{let t=0;const e=Or.create({baseURL:Tr(),withCredentials:!0,headers:{"x-client-platform":"web-editor","x-csrf-token":Ye.get("ctoken")}});return e.interceptors.response.use(r=>r.data,async r=>{var a,o,i,c,f,l,u,p,v,m,y,C,P,x,B,d,j;if(r.message==="canceled"||(console.error("err response: ",r.response),!r.response))throw r;if(!((i=(o=(a=r.response)==null?void 0:a.config)==null?void 0:o.headers)!=null&&i["x-csrf-token"])&&r.response.status===403&&t++<3){console.warn("retry: ",t);const I=r.response.config;return I.headers=I.headers||{},I.headers["x-csrf-token"]=Ye.get("ctoken"),await e.request(I)}const s=(f=(c=r.response)==null?void 0:c.data)!=null&&f.errCode?bt(`service.error.${(u=(l=r.response)==null?void 0:l.data)==null?void 0:u.errCode}`):((v=(p=r.response)==null?void 0:p.data)==null?void 0:v.errMsg)||((y=(m=r.response)==null?void 0:m.data)==null?void 0:y.message);Ur.includes((P=(C=r.response)==null?void 0:C.config)==null?void 0:P.url)||H.error(`${s}`);const n=`${location.pathname}${location.search}`;if(n==="/signin")throw r;if(((B=(x=r.response)==null?void 0:x.data)==null?void 0:B.errCode)===10001||((j=(d=r.response)==null?void 0:d.data)==null?void 0:j.errCode)===10004){const I=Pt(n,"/editor");It(`?${wt.LOGIN_BACK}=${encodeURIComponent(I)}`);return}throw r}),e};async function Nr(t,e={},r){return r&&(e.onUploadProgress=n=>{const a=n.loaded/n.total*100;r(a)}),e.url=t,Dr().request(e)}const Ze=window.PostmenClient,Qe=xt("postmen"),$=Rt.createPublisher(),M=new Set(["Scene","Prefab","script","Shader","ShaderChunk","StateMachineScript"]),R=class R{static collectAssetPickerReferences(e,r){const s=[],n=Ct(e);for(const a in n){const o=n[a];if(!o||o.type!==Et.AssetPicker)continue;const i=e[a];i&&typeof i=="object"&&"refId"in i&&i.refId===r&&s.push({target:e,key:a})}return s}static enqueuePendingRefresh(e){var n;const s=`${((n=e.target)==null?void 0:n.id)??""}::${e.key}`;this.pendingDedup.has(s)||(this.pendingDedup.add(s),this.pendingRefreshes.push(e))}static flushPendingSceneReferenceRefreshes(){if(this.rafScheduled=!1,h.sceneStore!==this.pendingSceneRef){this.pendingRefreshes.length=0,this.pendingDedup.clear(),this.pendingSceneRef=null;return}const e=this.pendingRefreshes;this.pendingRefreshes=[],this.pendingDedup.clear(),this.pendingSceneRef=null;for(const{target:r,key:s}of e)try{r.triggerPropertyChange(s,!1)}catch(n){console.warn("[postmen] Failed to refresh asset reference:",n,{key:s})}}static refreshSceneEntityComponentReferences(e){const r=h.sceneStore;if(r){r!==this.pendingSceneRef&&(this.pendingRefreshes.length=0,this.pendingDedup.clear(),this.pendingSceneRef=r);for(const s of this.collectAssetPickerReferences(r,e))this.enqueuePendingRefresh(s);for(const[,s]of r.iterateEntityModels())for(const n of s.components)for(const a of this.collectAssetPickerReferences(n,e))this.enqueuePendingRefresh(a);for(const s of r.strippedEntities.values())for(const n of s.components)for(const a of this.collectAssetPickerReferences(n,e))this.enqueuePendingRefresh(a);!this.rafScheduled&&this.pendingRefreshes.length>0&&(this.rafScheduled=!0,requestAnimationFrame(()=>{this.flushPendingSceneReferenceRefreshes()}))}}static create(e){Ze.initialize(R.getOpts(e.toString()),R.stateListener,()=>R.getAuthToken(e.toString())),Ze.register(R.BIZ_TYPE,r=>{const s=r.msgs;for(const n of s){Qe.info(n);let a;try{a=JSON.parse(n.payload)}catch(o){console.warn("[postmen] Ignore malformed payload:",o,n);continue}switch(n.bizId){case"AssetCreate":this.applyAssetCreate(a);break;case"AssetUpdate":this.applyAssetUpdate(a);break;case"AssetDelete":this.applyAssetDelete(a);break}}})}static getOpts(e){let r="prod";switch(et()){case S.local:case S.dev:r="stable";break;case S.test:r="test";break;case S.pre:case S.prod:r="prod";break}return{env:r,appName:R.APP_NAME,userId:`${e}-web-editor`}}static async getAuthToken(e){return(await Nr("/api/postmen/createAuthToken",{method:"POST",data:{projectId:e}})).data}static stateListener(e){Qe.info("[state]",e)}static safeParseJsonObject(e){if(e&&typeof e=="object")return e;if(typeof e!="string")return{};try{const r=JSON.parse(e);if(r&&typeof r=="object")return r}catch{}return{}}static async applyAssetCreate(e){var u;const r=e.uuid,s=h.assetStore,n=typeof e.name=="string"?e.name:((u=s.assets[r])==null?void 0:u.name)??"Unknown",a=e.parentId?String(e.parentId):null,o=e.url?String(e.url):void 0,i=typeof e.meta=="string"?e.meta:JSON.stringify(e.meta??{}),c=this.safeParseJsonObject(i),f=typeof c.type=="string"?c.type:"Unknown";typeof e.type=="number"?e.type:typeof e.type=="string"&&e.type.length>0&&parseInt(e.type,10);let l;if(o&&f!=="Folder")if(!M.has(f))l="";else try{const p=await fetch(o);p.ok?l=await p.text():l=""}catch(p){l="",console.warn("[postmen] Failed to preload created asset content:",p,e)}try{const p={id:r,name:n,type:f,parentFolderId:a,meta:c,status:"ready",serverId:String(e.id)};o&&(p.url=o);const v=h.domainStore.state.assets[r]?{op:"replace",path:`/assets/${r}`,value:p}:{op:"add",path:`/assets/${r}`,value:p};h.domainStore.applyRemote([v])}catch(p){console.error("[postmen] failed to apply asset create to DomainStore:",p,e)}if(o&&f!=="Folder"){const p=s.assets[r];if(p&&!p.isInitCompleted){const v=M.has(f)&&typeof l=="string"&&l.length>0?{blob:new Blob([l],{type:f==="Scene"||f==="Prefab"?"application/json":"text/plain"}),url:o}:void 0;p.loadMainFile(v).catch(m=>{console.warn("[postmen] Failed to load created asset main file:",m,e)})}}$.publish("asset-change",{type:"add",assetId:r,name:n,parentId:a,meta:c,main:l,url:o}),H(`Asset ${n} created by ${e.operator}`,{icon:"⚠"})}static async applyAssetUpdate(e){const r=e.uuid,s=h.assetStore.assets[r];if(!s){console.warn("[postmen] AssetUpdate for missing asset:",e);return}H(`Asset ${s.name} updated by ${e.operator}`,{icon:"⚠"}),await At.runWithGlobalAutoSaveSuspended(async()=>{await h.domainStore.runAsRemote(async()=>{var p,v;const n=e.url?String(e.url):void 0,a=s.meta.type==="Scene"&&((p=h.sceneStore)==null?void 0:p.refId)===r,o=a?JSON.stringify(h.sceneStore.toJSON()):void 0,i=a?h.domainStore.state.assets:void 0,c=a?h.domainStore.state.version:void 0,f=a?s.url:void 0;let l,u;if(n){try{const m=await fetch(n);m.ok?(l=await m.blob(),M.has(s.meta.type)&&(u=await l.text())):console.warn("[postmen] Failed to fetch updated asset:",m.statusText,e)}catch(m){console.warn("[postmen] Failed to fetch updated asset:",m,e)}if(l){s.setUrl(n);try{await s.reloadMainFileFromRemote({blob:l,url:n}),s.meta.type==="ShaderChunk"&&typeof u=="string"&&typeof s.updateCode=="function"&&s.updateCode(u)}catch(y){console.warn("[postmen] Failed to apply updated asset main file:",y,e)}try{const y=h.domainStore.state.assets[r];if(y){const C={op:"url"in y?"replace":"add",path:`/assets/${r}/url`,value:n};h.domainStore.applyRemote([C])}}catch(y){console.error("[postmen] failed to apply asset update to DomainStore:",y,e)}const m=M.has(s.meta.type)?u:l;if(s.meta.type==="Scene"&&((v=h.sceneStore)==null?void 0:v.refId)===r&&typeof u=="string"&&a)try{await Ae({sceneStore:h.sceneStore,sceneFacade:h.sceneFacade,domainStore:h.domainStore,sceneAsset:s,preserveAssets:h.domainStore.state.assets,preserveVersion:h.domainStore.state.version}),$.publish("asset-change",{type:"modify",assetId:r,main:m})}catch(y){if(console.error("[postmen] Failed to reload current scene from updated Scene asset:",y,e),typeof o=="string"&&i&&typeof c=="number"&&typeof f=="string")try{s.setUrl(f),await s.reloadMainFileFromRemote({blob:new Blob([o],{type:"application/json"}),url:f}),await Ae({sceneStore:h.sceneStore,sceneFacade:h.sceneFacade,domainStore:h.domainStore,sceneAsset:s,preserveAssets:i,preserveVersion:c})}catch(C){console.error("[postmen] Failed to rollback current scene after Scene init failure:",C,e)}}else m!==void 0&&$.publish("asset-change",{type:"modify",assetId:r,main:m})}}if(e.name&&s.name!==e.name){try{h.domainStore.applyRemote([{op:"replace",path:`/assets/${r}/name`,value:String(e.name)}])}catch(m){console.error("[postmen] failed to apply asset rename to DomainStore:",m,e)}$.publish("asset-change",{type:"rename",assetId:r,newName:String(e.name)})}if(e.parentId!==void 0){const m=e.parentId?String(e.parentId):null;if(s.parentFolderId!==m){try{h.domainStore.applyRemote([{op:"replace",path:`/assets/${r}/parentFolderId`,value:m}])}catch(y){console.error("[postmen] failed to apply asset move to DomainStore:",y,e)}$.publish("asset-change",{type:"move",assetIds:[r],targeParentId:m})}}})})}static async applyAssetDelete(e){for(const r of e.list){const s=h.assetStore.assets[r.uuid],n=!!h.domainStore.state.assets[r.uuid];if(!s&&!n){console.warn("[postmen] AssetDelete for missing asset:",r);continue}try{h.domainStore.applyRemote([{op:"remove",path:`/assets/${r.uuid}`}])}catch(o){console.error("[postmen] failed to apply asset delete to DomainStore:",o,r)}$.publish("asset-change",{type:"delete",assetIds:[r.uuid]});const a=(s==null?void 0:s.name)??r.uuid;H(`Asset ${a} deleted by ${e.operator}`,{icon:"⚠",style:{color:"red"}})}}};D(R,"APP_NAME","GALACEAN"),D(R,"BIZ_TYPE","P-galacean-msg"),D(R,"pendingRefreshes",[]),D(R,"pendingDedup",new Set),D(R,"rafScheduled",!1),D(R,"pendingSceneRef",null);let q=R;q.applyAssetCreate.bind(q),q.applyAssetUpdate.bind(q),q.applyAssetDelete.bind(q);
|
package/dist/preview-client/_static/{shader-data-utils-d59bc4f5.js → shader-data-utils-000170ae.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b1 as C,b2 as w,C as c,b3 as k,V as d,ai as F,F as I}from"./index-
|
|
1
|
+
import{b1 as C,b2 as w,C as c,b3 as k,V as d,ai as F,F as I}from"./index-e44b357e.js";var a=(t=>(t.Vector2="Vector2",t.Vector3="Vector3",t.Vector4="Vector4",t.Color="Color",t.Float="Float",t.Texture="Texture",t.Boolean="Boolean",t.Integer="Integer",t))(a||{});async function B(t,V,e,n,i){var S;const s=t.engineObject.shaderData;let r;const o=V.toString(),h=C.getByName(o).type;switch(h===w.Float?(n===a.Integer||n===c.Toggle||n===c.Boolean||n===c.Select)&&(n=a.Float):h===w.Int&&(n===a.Float||n===c.Slider||n===c.Number)&&(n=a.Integer),n){case c.Slider:case c.Number:case a.Float:s.setFloat(o,e);break;case c.Toggle:case c.Boolean:case c.Select:case a.Integer:s.setInt(o,Number(e));break;case c.AssetPicker:case a.Texture:if(e){const l=await t.root.assetStore.getAssetByRef(e);if(l){const b=l.engineObject;s.setTexture(o,b),i&&x(i,t,"enable")}else s.setTexture(o,null),i&&x(i,t,"disable"),console.error(`${o} in ${t.name} is missing.`)}else s.setTexture(o,null),i&&x(i,t,"disable");break;case c.Vector2:case a.Vector2:r=s.getVector2(o),e==null?s.setVector2(o,e):r?(r.x=e.x,r.y=e.y):s.setVector2(o,new I(e.x,e.y));break;case c.Vector3:case a.Vector3:r=s.getVector3(o),e==null?s.setVector3(o,e):r?(r.x=e.x,r.y=e.y,r.z=e.z):s.setVector3(o,new F(e.x,e.y,e.z));break;case c.Vector4:case a.Vector4:r=s.getVector4(o),e==null?s.setVector4(o,e):r?(r.x=e.x,r.y=e.y,r.z=e.z,r.w=e.w):s.setVector4(o,new d(e.x,e.y,e.z,e.w));break;case c.Color:case a.Color:{if(e==null){s.setColor(o,null);break}let{r:l,g:b,b:f}=e;const{a:m,intensity:g=1}=e;l*=g,b*=g,f*=g,r=s.getColor(o),r?(r.r=l,r.g=b,r.b=f,r.a=m):s.setColor(o,new k(l,b,f,m));break}}(S=t.updateThumbnail)==null||S.call(t)}function x(t,V,e){const n=V.engineObject.shaderData;e==="enable"?n.enableMacro(t):n.disableMacro(t)}export{a as E,B as s};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
#status { position: fixed; left: 8px; top: 8px; background: rgba(0,0,0,0.6); color: #fff; padding: 6px 8px; font: 12px/1.4 monospace; z-index: 10; opacity: 1; transition: opacity 0.5s ease; pointer-events: none; }
|
|
11
11
|
#status[data-state="idle"] { opacity: 0; transition: opacity 0.8s ease 1.5s; }
|
|
12
12
|
</style>
|
|
13
|
-
<script type="module" crossorigin src="/_static/index-
|
|
13
|
+
<script type="module" crossorigin src="/_static/index-e44b357e.js"></script>
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
16
|
<div id="app">
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as d,c as h,b as y,a as T,S as f}from"./ShaderAsset-068b4b97.js";import{S as E}from"./ShaderUIScriptAsset-0c11d0ed.js";import"./index-03b6134d.js";import"./index-0a53aaef.js";import"./postmen-9e6354af.js";import"./meshopt_simplifier.module-cd99529d.js";import"./shader-data-utils-d59bc4f5.js";import"./IconPointFilled-f8224625.js";import"./createReactComponent-fcd6848b.js";import"./index-2274eaf1.js";export{d as EShaderPropertyType,h as ShaderAsset,y as ShaderPropertyEnumType,T as ShaderPropertyRangeType,f as ShaderTemplateConfigs,E as ShaderUIScript};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as E,b as w,T as I,a as R}from"./TextureAsset-7172cc65.js";import{G as F,a as G}from"./GlTFAsset-dc68541e.js";import{M as U,a as V}from"./MaterialAsset-dfaa82d9.js";import{MeshAsset as X}from"./MeshAsset-07529e4e.js";import{AnimatorControllerAsset as D}from"./AnimatorControllerAsset-616578b4.js";import{A as j,a as q,b as z}from"./AnimationClipAsset-a5d290cc.js";import{L as H,c as J,b as N,S as Q,a as W}from"./ShaderChunkAsset-bdb39acc.js";import{AmbientLightAsset as Z}from"./AmbientLightAsset-6b2d168c.js";import{S as $}from"./SpineSkeletonDataAsset-284f5f4d.js";import{FontAsset as te}from"./FontAsset-1e1118c1.js";import{SceneAsset as se}from"./SceneAsset-a39f097a.js";import{E as pe,c as ae,b as ie,a as me,S as Ae}from"./ShaderAsset-068b4b97.js";import{E as fe,a as ne,S as xe,b as he,t as le}from"./ShaderUIScriptAsset-0c11d0ed.js";import{PrimitiveMesh as ce}from"./PrimitiveMesh-9ff7dbc1.js";import{XRReferenceImageAsset as ye}from"./XRReferenceImageAsset-823e47cd.js";import{PrefabAsset as Me}from"./PrefabAsset-4bac196b.js";import{PhysicsMaterialAsset as Ce}from"./PhysicsMaterialAsset-e9abb944.js";import{RenderTargetAsset as ge}from"./RenderTargetAsset-e112b8ca.js";import{AudioAsset as we}from"./AudioAsset-24b03bc3.js";import{StateMachineScript as Re}from"./index-19f5510d.js";import{MarkdownAsset as Fe}from"./MarkdownAsset-2a4a1d10.js";import"./index-03b6134d.js";import"./ktx2-encoder-4cac07f2.js";import"./TaskQueue-05c94a4d.js";import"./ktx-parse.modern-6c9f771f.js";import"./index-0a53aaef.js";import"./postmen-9e6354af.js";import"./encode-ac4bb64e.js";import"./meshopt_simplifier.module-cd99529d.js";import"./Tooltip-9ce2e9d6.js";import"./createReactComponent-fcd6848b.js";import"./AssetViewer-1a9f3cad.js";import"./glTFIO-45ff9a17.js";import"./MaterialInspector-21fc5b67.js";import"./IconPointFilled-f8224625.js";import"./shader-data-utils-d59bc4f5.js";import"./index-2274eaf1.js";import"./MeshThumbnail-bd30617c.js";import"./bundlers-9b0d37fc.js";import"./module-101126a2.js";import"./module-5fa1eae0.js";import"./IconPlus-99d7bb90.js";import"./FormItemArray-f1283fce.js";import"./Accordion-b106eaf3.js";import"./module-03df665c.js";export{Z as AmbientLightAsset,j as AnimationClipAsset,q as AnimationClipInspector,z as AnimationClipViewer,D as AnimatorControllerAsset,we as AudioAsset,fe as EScriptSubType,pe as EShaderPropertyType,te as FontAsset,F as GlTFAsset,G as GlTFViewer,E as KTX2Options,H as LottieAsset,Fe as MarkdownAsset,U as MaterialAsset,V as MaterialViewer,X as MeshAsset,Ce as PhysicsMaterialAsset,Me as PrefabAsset,ce as PrimitiveMesh,ge as RenderTargetAsset,se as SceneAsset,ne as ScriptAsset,ae as ShaderAsset,J as ShaderChunkAsset,ie as ShaderPropertyEnumType,me as ShaderPropertyRangeType,Ae as ShaderTemplateConfigs,xe as ShaderUIScript,he as ShaderUIScriptAsset,N as SpineAtlasAsset,$ as SpineSkeletonDataAsset,Q as SpriteAsset,W as SpriteAtlasAsset,Re as StateMachineScript,w as TextureAsset,I as TextureShape,R as TextureUseType,ye as XRReferenceImageAsset,le as scriptTemplates};
|
|
@@ -1 +0,0 @@
|
|
|
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-96164e4e.js";import"./index-03b6134d.js";import"./index-0a53aaef.js";import"./Component-3cb422ab.js";import"./postmen-9e6354af.js";import"./FormItemArray-f1283fce.js";import"./Accordion-b106eaf3.js";export{a as CharacterControllerComponent,C as DynamicColliderComponent,s as FixedJointComponent,l as HingeJointComponent,c as PhysicsStore,S as SpringJointComponent,d as StaticColliderComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as a,a as n}from"./AnimatorStore-bc865a7e.js";import"./index-03b6134d.js";import"./index-0a53aaef.js";import"./Component-3cb422ab.js";import"./postmen-9e6354af.js";export{a as AnimatorComponent,n as AnimatorStore};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A,a as l,b as C}from"./AnimationClipAsset-a5d290cc.js";import"./index-03b6134d.js";import"./index-0a53aaef.js";import"./postmen-9e6354af.js";import"./AssetViewer-1a9f3cad.js";import"./encode-ac4bb64e.js";import"./meshopt_simplifier.module-cd99529d.js";import"./module-101126a2.js";import"./module-5fa1eae0.js";export{A as AnimationClipAsset,l as AnimationClipInspector,C as AnimationClipViewer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{P as a}from"./PostProcessComponent-83f23ced.js";import"./index-03b6134d.js";import"./index-0a53aaef.js";import"./Component-3cb422ab.js";import"./postmen-9e6354af.js";import"./IconPlus-99d7bb90.js";import"./createReactComponent-fcd6848b.js";import"./Menu-62cee67e.js";import"./Accordion-b106eaf3.js";export{a as PostProcessComponent};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{fq as rr}from"./index-03b6134d.js";import"./index-0a53aaef.js";var Ie={exports:{}},$e=function(r,n){return function(){for(var t=new Array(arguments.length),a=0;a<t.length;a++)t[a]=arguments[a];return r.apply(n,t)}},tr=$e,w=Object.prototype.toString;function ae(e){return Array.isArray(e)}function te(e){return typeof e>"u"}function nr(e){return e!==null&&!te(e)&&e.constructor!==null&&!te(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function _e(e){return w.call(e)==="[object ArrayBuffer]"}function ir(e){return w.call(e)==="[object FormData]"}function ar(e){var r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&_e(e.buffer),r}function sr(e){return typeof e=="string"}function or(e){return typeof e=="number"}function Fe(e){return e!==null&&typeof e=="object"}function N(e){if(w.call(e)!=="[object Object]")return!1;var r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function ur(e){return w.call(e)==="[object Date]"}function fr(e){return w.call(e)==="[object File]"}function cr(e){return w.call(e)==="[object Blob]"}function ke(e){return w.call(e)==="[object Function]"}function lr(e){return Fe(e)&&ke(e.pipe)}function dr(e){return w.call(e)==="[object URLSearchParams]"}function hr(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function pr(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function se(e,r){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),ae(e))for(var n=0,i=e.length;n<i;n++)r.call(null,e[n],n,e);else for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.call(null,e[t],t,e)}function ne(){var e={};function r(t,a){N(e[a])&&N(t)?e[a]=ne(e[a],t):N(t)?e[a]=ne({},t):ae(t)?e[a]=t.slice():e[a]=t}for(var n=0,i=arguments.length;n<i;n++)se(arguments[n],r);return e}function mr(e,r,n){return se(r,function(t,a){n&&typeof t=="function"?e[a]=tr(t,n):e[a]=t}),e}function vr(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var p={isArray:ae,isArrayBuffer:_e,isBuffer:nr,isFormData:ir,isArrayBufferView:ar,isString:sr,isNumber:or,isObject:Fe,isPlainObject:N,isUndefined:te,isDate:ur,isFile:fr,isBlob:cr,isFunction:ke,isStream:lr,isURLSearchParams:dr,isStandardBrowserEnv:pr,forEach:se,merge:ne,extend:mr,trim:hr,stripBOM:vr},O=p;function he(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var He=function(r,n,i){if(!n)return r;var t;if(i)t=i(n);else if(O.isURLSearchParams(n))t=n.toString();else{var a=[];O.forEach(n,function(c,d){c===null||typeof c>"u"||(O.isArray(c)?d=d+"[]":c=[c],O.forEach(c,function(u){O.isDate(u)?u=u.toISOString():O.isObject(u)&&(u=JSON.stringify(u)),a.push(he(d)+"="+he(u))}))}),t=a.join("&")}if(t){var s=r.indexOf("#");s!==-1&&(r=r.slice(0,s)),r+=(r.indexOf("?")===-1?"?":"&")+t}return r},br=p;function L(){this.handlers=[]}L.prototype.use=function(r,n,i){return this.handlers.push({fulfilled:r,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1};L.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)};L.prototype.forEach=function(r){br.forEach(this.handlers,function(i){i!==null&&r(i)})};var Er=L,yr=p,wr=function(r,n){yr.forEach(r,function(t,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(r[n]=t,delete r[a])})},Me=function(r,n,i,t,a){return r.config=n,i&&(r.code=i),r.request=t,r.response=a,r.isAxiosError=!0,r.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},r},Je={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_,pe;function ze(){if(pe)return _;pe=1;var e=Me;return _=function(n,i,t,a,s){var o=new Error(n);return e(o,i,t,a,s)},_}var F,me;function Rr(){if(me)return F;me=1;var e=ze();return F=function(n,i,t){var a=t.config.validateStatus;!t.status||!a||a(t.status)?n(t):i(e("Request failed with status code "+t.status,t.config,null,t.request,t))},F}var k,ve;function Cr(){if(ve)return k;ve=1;var e=p;return k=e.isStandardBrowserEnv()?function(){return{write:function(i,t,a,s,o,c){var d=[];d.push(i+"="+encodeURIComponent(t)),e.isNumber(a)&&d.push("expires="+new Date(a).toGMTString()),e.isString(s)&&d.push("path="+s),e.isString(o)&&d.push("domain="+o),c===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(i){var t=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(i){this.write(i,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),k}var H,be;function Sr(){return be||(be=1,H=function(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}),H}var M,Ee;function Or(){return Ee||(Ee=1,M=function(r,n){return n?r.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):r}),M}var J,ye;function xr(){if(ye)return J;ye=1;var e=Sr(),r=Or();return J=function(i,t){return i&&!e(t)?r(i,t):t},J}var z,we;function qr(){if(we)return z;we=1;var e=p,r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return z=function(i){var t={},a,s,o;return i&&e.forEach(i.split(`
|
|
2
|
-
`),function(d){if(o=d.indexOf(":"),a=e.trim(d.substr(0,o)).toLowerCase(),s=e.trim(d.substr(o+1)),a){if(t[a]&&r.indexOf(a)>=0)return;a==="set-cookie"?t[a]=(t[a]?t[a]:[]).concat([s]):t[a]=t[a]?t[a]+", "+s:s}}),t},z}var V,Re;function gr(){if(Re)return V;Re=1;var e=p;return V=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),t;function a(s){var o=s;return n&&(i.setAttribute("href",o),o=i.href),i.setAttribute("href",o),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return t=a(window.location.href),function(o){var c=e.isString(o)?a(o):o;return c.protocol===t.protocol&&c.host===t.host}}():function(){return function(){return!0}}(),V}var X,Ce;function j(){if(Ce)return X;Ce=1;function e(r){this.message=r}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,X=e,X}var W,Se;function Oe(){if(Se)return W;Se=1;var e=p,r=Rr(),n=Cr(),i=He,t=xr(),a=qr(),s=gr(),o=ze(),c=Je,d=j();return W=function(u){return new Promise(function(m,q){var g=u.data,A=u.headers,U=u.responseType,C;function fe(){u.cancelToken&&u.cancelToken.unsubscribe(C),u.signal&&u.signal.removeEventListener("abort",C)}e.isFormData(g)&&delete A["Content-Type"];var f=new XMLHttpRequest;if(u.auth){var Qe=u.auth.username||"",Ze=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";A.Authorization="Basic "+btoa(Qe+":"+Ze)}var ce=t(u.baseURL,u.url);f.open(u.method.toUpperCase(),i(ce,u.params,u.paramsSerializer),!0),f.timeout=u.timeout;function le(){if(f){var b="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,S=!U||U==="text"||U==="json"?f.responseText:f.response,R={data:S,status:f.status,statusText:f.statusText,headers:b,config:u,request:f};r(function($){m($),fe()},function($){q($),fe()},R),f=null}}if("onloadend"in f?f.onloadend=le:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(le)},f.onabort=function(){f&&(q(o("Request aborted",u,"ECONNABORTED",f)),f=null)},f.onerror=function(){q(o("Network Error",u,null,f)),f=null},f.ontimeout=function(){var S=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",R=u.transitional||c;u.timeoutErrorMessage&&(S=u.timeoutErrorMessage),q(o(S,u,R.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},e.isStandardBrowserEnv()){var de=(u.withCredentials||s(ce))&&u.xsrfCookieName?n.read(u.xsrfCookieName):void 0;de&&(A[u.xsrfHeaderName]=de)}"setRequestHeader"in f&&e.forEach(A,function(S,R){typeof g>"u"&&R.toLowerCase()==="content-type"?delete A[R]:f.setRequestHeader(R,S)}),e.isUndefined(u.withCredentials)||(f.withCredentials=!!u.withCredentials),U&&U!=="json"&&(f.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&f.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",u.onUploadProgress),(u.cancelToken||u.signal)&&(C=function(b){f&&(q(!b||b&&b.type?new d("canceled"):b),f.abort(),f=null)},u.cancelToken&&u.cancelToken.subscribe(C),u.signal&&(u.signal.aborted?C():u.signal.addEventListener("abort",C))),g||(g=null),f.send(g)})},W}var h=p,xe=wr,Ar=Me,Ur=Je,Tr={"Content-Type":"application/x-www-form-urlencoded"};function qe(e,r){!h.isUndefined(e)&&h.isUndefined(e["Content-Type"])&&(e["Content-Type"]=r)}function Pr(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Oe()),e}function Nr(e,r,n){if(h.isString(e))try{return(r||JSON.parse)(e),h.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}var D={transitional:Ur,adapter:Pr(),transformRequest:[function(r,n){return xe(n,"Accept"),xe(n,"Content-Type"),h.isFormData(r)||h.isArrayBuffer(r)||h.isBuffer(r)||h.isStream(r)||h.isFile(r)||h.isBlob(r)?r:h.isArrayBufferView(r)?r.buffer:h.isURLSearchParams(r)?(qe(n,"application/x-www-form-urlencoded;charset=utf-8"),r.toString()):h.isObject(r)||n&&n["Content-Type"]==="application/json"?(qe(n,"application/json"),Nr(r)):r}],transformResponse:[function(r){var n=this.transitional||D.transitional,i=n&&n.silentJSONParsing,t=n&&n.forcedJSONParsing,a=!i&&this.responseType==="json";if(a||t&&h.isString(r)&&r.length)try{return JSON.parse(r)}catch(s){if(a)throw s.name==="SyntaxError"?Ar(s,this,"E_JSON_PARSE"):s}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};h.forEach(["delete","get","head"],function(r){D.headers[r]={}});h.forEach(["post","put","patch"],function(r){D.headers[r]=h.merge(Tr)});var oe=D,Br=p,Lr=oe,jr=function(r,n,i){var t=this||Lr;return Br.forEach(i,function(s){r=s.call(t,r,n)}),r},G,ge;function Ve(){return ge||(ge=1,G=function(r){return!!(r&&r.__CANCEL__)}),G}var Ae=p,K=jr,Dr=Ve(),Ir=oe,$r=j();function Y(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $r("canceled")}var _r=function(r){Y(r),r.headers=r.headers||{},r.data=K.call(r,r.data,r.headers,r.transformRequest),r.headers=Ae.merge(r.headers.common||{},r.headers[r.method]||{},r.headers),Ae.forEach(["delete","get","head","post","put","patch","common"],function(t){delete r.headers[t]});var n=r.adapter||Ir.adapter;return n(r).then(function(t){return Y(r),t.data=K.call(r,t.data,t.headers,r.transformResponse),t},function(t){return Dr(t)||(Y(r),t&&t.response&&(t.response.data=K.call(r,t.response.data,t.response.headers,r.transformResponse))),Promise.reject(t)})},v=p,Xe=function(r,n){n=n||{};var i={};function t(l,u){return v.isPlainObject(l)&&v.isPlainObject(u)?v.merge(l,u):v.isPlainObject(u)?v.merge({},u):v.isArray(u)?u.slice():u}function a(l){if(v.isUndefined(n[l])){if(!v.isUndefined(r[l]))return t(void 0,r[l])}else return t(r[l],n[l])}function s(l){if(!v.isUndefined(n[l]))return t(void 0,n[l])}function o(l){if(v.isUndefined(n[l])){if(!v.isUndefined(r[l]))return t(void 0,r[l])}else return t(void 0,n[l])}function c(l){if(l in n)return t(r[l],n[l]);if(l in r)return t(void 0,r[l])}var d={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c};return v.forEach(Object.keys(r).concat(Object.keys(n)),function(u){var y=d[u]||a,m=y(u);v.isUndefined(m)&&y!==c||(i[u]=m)}),i},Q,Ue;function We(){return Ue||(Ue=1,Q={version:"0.26.1"}),Q}var Fr=We().version,ue={};["object","boolean","number","function","string","symbol"].forEach(function(e,r){ue[e]=function(i){return typeof i===e||"a"+(r<1?"n ":" ")+e}});var Te={};ue.transitional=function(r,n,i){function t(a,s){return"[Axios v"+Fr+"] Transitional option '"+a+"'"+s+(i?". "+i:"")}return function(a,s,o){if(r===!1)throw new Error(t(s," has been removed"+(n?" in "+n:"")));return n&&!Te[s]&&(Te[s]=!0,console.warn(t(s," has been deprecated since v"+n+" and will be removed in the near future"))),r?r(a,s,o):!0}};function kr(e,r,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var i=Object.keys(e),t=i.length;t-- >0;){var a=i[t],s=r[a];if(s){var o=e[a],c=o===void 0||s(o,a,e);if(c!==!0)throw new TypeError("option "+a+" must be "+c);continue}if(n!==!0)throw Error("Unknown option "+a)}}var Hr={assertOptions:kr,validators:ue},Ge=p,Mr=He,Pe=Er,Ne=_r,I=Xe,Ke=Hr,x=Ke.validators;function T(e){this.defaults=e,this.interceptors={request:new Pe,response:new Pe}}T.prototype.request=function(r,n){typeof r=="string"?(n=n||{},n.url=r):n=r||{},n=I(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var i=n.transitional;i!==void 0&&Ke.assertOptions(i,{silentJSONParsing:x.transitional(x.boolean),forcedJSONParsing:x.transitional(x.boolean),clarifyTimeoutError:x.transitional(x.boolean)},!1);var t=[],a=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(a=a&&m.synchronous,t.unshift(m.fulfilled,m.rejected))});var s=[];this.interceptors.response.forEach(function(m){s.push(m.fulfilled,m.rejected)});var o;if(!a){var c=[Ne,void 0];for(Array.prototype.unshift.apply(c,t),c=c.concat(s),o=Promise.resolve(n);c.length;)o=o.then(c.shift(),c.shift());return o}for(var d=n;t.length;){var l=t.shift(),u=t.shift();try{d=l(d)}catch(y){u(y);break}}try{o=Ne(d)}catch(y){return Promise.reject(y)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};T.prototype.getUri=function(r){return r=I(this.defaults,r),Mr(r.url,r.params,r.paramsSerializer).replace(/^\?/,"")};Ge.forEach(["delete","get","head","options"],function(r){T.prototype[r]=function(n,i){return this.request(I(i||{},{method:r,url:n,data:(i||{}).data}))}});Ge.forEach(["post","put","patch"],function(r){T.prototype[r]=function(n,i,t){return this.request(I(t||{},{method:r,url:n,data:i}))}});var Jr=T,Z,Be;function zr(){if(Be)return Z;Be=1;var e=j();function r(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var i;this.promise=new Promise(function(s){i=s});var t=this;this.promise.then(function(a){if(t._listeners){var s,o=t._listeners.length;for(s=0;s<o;s++)t._listeners[s](a);t._listeners=null}}),this.promise.then=function(a){var s,o=new Promise(function(c){t.subscribe(c),s=c}).then(a);return o.cancel=function(){t.unsubscribe(s)},o},n(function(s){t.reason||(t.reason=new e(s),i(t.reason))})}return r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]},r.prototype.unsubscribe=function(i){if(this._listeners){var t=this._listeners.indexOf(i);t!==-1&&this._listeners.splice(t,1)}},r.source=function(){var i,t=new r(function(s){i=s});return{token:t,cancel:i}},Z=r,Z}var ee,Le;function Vr(){return Le||(Le=1,ee=function(r){return function(i){return r.apply(null,i)}}),ee}var re,je;function Xr(){if(je)return re;je=1;var e=p;return re=function(n){return e.isObject(n)&&n.isAxiosError===!0},re}var De=p,Wr=$e,B=Jr,Gr=Xe,Kr=oe;function Ye(e){var r=new B(e),n=Wr(B.prototype.request,r);return De.extend(n,B.prototype,r),De.extend(n,r),n.create=function(t){return Ye(Gr(e,t))},n}var E=Ye(Kr);E.Axios=B;E.Cancel=j();E.CancelToken=zr();E.isCancel=Ve();E.VERSION=We().version;E.all=function(r){return Promise.all(r)};E.spread=Vr();E.isAxiosError=Xr();Ie.exports=E;Ie.exports.default=E;/*! js-cookie v3.0.1 | MIT */function P(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var i in n)e[i]=n[i]}return e}var Yr={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ie(e,r){function n(t,a,s){if(!(typeof document>"u")){s=P({},r,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var c in s)s[c]&&(o+="; "+c,s[c]!==!0&&(o+="="+s[c].split(";")[0]));return document.cookie=t+"="+e.write(a,t)+o}}function i(t){if(!(typeof document>"u"||arguments.length&&!t)){for(var a=document.cookie?document.cookie.split("; "):[],s={},o=0;o<a.length;o++){var c=a[o].split("="),d=c.slice(1).join("=");try{var l=decodeURIComponent(c[0]);if(s[l]=e.read(d,l),t===l)break}catch{}}return t?s[t]:s}}return Object.create({set:n,get:i,remove:function(t,a){n(t,"",P({},a,{expires:-1}))},withAttributes:function(t){return ie(this.converter,P({},this.attributes,t))},withConverter:function(t){return ie(P({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}ie(Yr,{path:"/"});rr.createPublisher();
|