多语言调整
This commit is contained in:
1 parent
04de5e5a8e
commit
8bd9154414
23 files changed
+395
-155
No files matched your search
Vendored
+84
-14
@@ -1,30 +1,100 @@
|
||||
[
|
||||
{
|
||||
"name": "1.粒子扫过",
|
||||
"file": "1.粒子扫过.json"
|
||||
"file": "1.粒子扫过.json",
|
||||
"name": {
|
||||
"zh-CN": "1.粒子扫过",
|
||||
"zh-TW": "1.粒子扫过",
|
||||
"en": "1.粒子扫过",
|
||||
"ja": "1.粒子扫过",
|
||||
"ko": "1.粒子扫过",
|
||||
"fr": "1.粒子扫过",
|
||||
"de": "1.粒子扫过",
|
||||
"pt-BR": "1.粒子扫过",
|
||||
"es": "1.粒子扫过"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "2.长条方块",
|
||||
"file": "2.长条方块.json"
|
||||
"file": "2.长条方块.json",
|
||||
"name": {
|
||||
"zh-CN": "2.长条方块",
|
||||
"zh-TW": "2.长条方块",
|
||||
"en": "2.长条方块",
|
||||
"ja": "2.长条方块",
|
||||
"ko": "2.长条方块",
|
||||
"fr": "2.长条方块",
|
||||
"de": "2.长条方块",
|
||||
"pt-BR": "2.长条方块",
|
||||
"es": "2.长条方块"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "3.力场拖尾",
|
||||
"file": "3.力场拖尾.json"
|
||||
"file": "3.力场拖尾.json",
|
||||
"name": {
|
||||
"zh-CN": "3.力场拖尾",
|
||||
"zh-TW": "3.力场拖尾",
|
||||
"en": "3.力场拖尾",
|
||||
"ja": "3.力场拖尾",
|
||||
"ko": "3.力场拖尾",
|
||||
"fr": "3.力场拖尾",
|
||||
"de": "3.力场拖尾",
|
||||
"pt-BR": "3.力场拖尾",
|
||||
"es": "3.力场拖尾"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "4.雷电序列帧",
|
||||
"file": "4.雷电序列帧.json"
|
||||
"file": "4.雷电序列帧.json",
|
||||
"name": {
|
||||
"zh-CN": "4.雷电序列帧",
|
||||
"zh-TW": "4.雷电序列帧",
|
||||
"en": "4.雷电序列帧",
|
||||
"ja": "4.雷电序列帧",
|
||||
"ko": "4.雷电序列帧",
|
||||
"fr": "4.雷电序列帧",
|
||||
"de": "4.雷电序列帧",
|
||||
"pt-BR": "4.雷电序列帧",
|
||||
"es": "4.雷电序列帧"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "5.贴图轴点",
|
||||
"file": "5.贴图轴点.json"
|
||||
"file": "5.贴图轴点.json",
|
||||
"name": {
|
||||
"zh-CN": "5.贴图轴点",
|
||||
"zh-TW": "5.贴图轴点",
|
||||
"en": "5.贴图轴点",
|
||||
"ja": "5.贴图轴点",
|
||||
"ko": "5.贴图轴点",
|
||||
"fr": "5.贴图轴点",
|
||||
"de": "5.贴图轴点",
|
||||
"pt-BR": "5.贴图轴点",
|
||||
"es": "5.贴图轴点"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "6.子发射器",
|
||||
"file": "6.子发射器.json"
|
||||
"file": "6.子发射器.json",
|
||||
"name": {
|
||||
"zh-CN": "6.子发射器",
|
||||
"zh-TW": "6.子发射器",
|
||||
"en": "6.子发射器",
|
||||
"ja": "6.子发射器",
|
||||
"ko": "6.子发射器",
|
||||
"fr": "6.子发射器",
|
||||
"de": "6.子发射器",
|
||||
"pt-BR": "6.子发射器",
|
||||
"es": "6.子发射器"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "7.SpineBoy",
|
||||
"file": "7.SpineBoy.json"
|
||||
"file": "7.SpineBoy.json",
|
||||
"name": {
|
||||
"zh-CN": "7.SpineBoy",
|
||||
"zh-TW": "7.SpineBoy",
|
||||
"en": "7.SpineBoy",
|
||||
"ja": "7.SpineBoy",
|
||||
"ko": "7.SpineBoy",
|
||||
"fr": "7.SpineBoy",
|
||||
"de": "7.SpineBoy",
|
||||
"pt-BR": "7.SpineBoy",
|
||||
"es": "7.SpineBoy"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,2 +1,2 @@
|
||||
var ft=Object.defineProperty;var gt=(W,t,e)=>t in W?ft(W,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):W[t]=e;var T=(W,t,e)=>gt(W,typeof t!="symbol"?t+"":t,e);import{f as ht,R as pt,N as dt,ac as ut,Z as mt,b4 as yt,O as rt,b5 as at,U as D,B as Tt}from"./index-2QgDjwRs.js";import{$ as Rt,a0 as Yt,a1 as Ft,a2 as Et,y as _t,a3 as Ot,a4 as kt,a5 as Xt,a6 as Bt,a7 as Nt,a8 as Dt,a9 as $t,aa as zt,ab as Wt,ad as qt,H as Gt,ae as Jt,af as Ht,ag as Zt,ah as Kt,ai as Qt,aj as jt,ak as te,al as ee,am as se,an as ne,ao as ie,ap as oe,aq as re,ar as ae,as as le,at as ce,au as he,av as pe,aw as de,ax as ue,ay as fe,az as ge,aA as me,aB as ye,aC as Te,aD as be,aE as we,aF as xe,aG as Ae,aH as Pe,aI as Ie,aJ as Ce,aK as Ve,aL as Le,aM as Se,aN as Me,aO as ve,aP as Ue,aQ as Re,aR as Ye,aS as Fe,aT as Ee,x as _e,aU as Oe,aV as ke,aW as Xe,aX as Be,aY as Ne,aZ as De,a_ as $e,a$ as ze,b0 as We,b1 as qe,b2 as Ge,b3 as Je,b6 as He,b7 as Ze,b8 as Ke,b9 as Qe,ba as je,bb as ts,bc as es,bd as ss,be as ns,bf as is,bg as os,bh as rs,bi as as,bj as ls,bk as cs,bl as hs,bm as ps,bn as ds,bo as us,bp as fs,bq as gs,br as ms,bs as ys,bt as Ts,bu as bs,w as ws,X as xs,J as As,Y as Ps,z as Is,bv as Cs,bw as Vs,bx as Ls,by as Ss,bz as Ms,bA as vs,bB as Us,bC as Rs,bD as Ys,bE as Fs,bF as Es,bG as _s,T as Os,bH as ks,bI as Xs,b as Bs,bJ as Ns,c as Ds,bK as $s,bL as zs,bM as Ws,bN as qs,bO as Gs,bP as Js,bQ as Hs,bR as Zs,bS as Ks,bT as Qs,bU as js,bV as tn,bW as en,bX as sn,bY as nn,bZ as on,b_ as rn,V as an,b$ as ln,c0 as cn,c1 as hn,c2 as pn,c3 as dn}from"./index-2QgDjwRs.js";class It{constructor(t){T(this,"skeletonData");T(this,"animationToMixTime",{});T(this,"defaultMix",0);if(!t)throw new Error("skeletonData cannot be null.");this.skeletonData=t}setMix(t,e,n){return typeof t=="string"?this.setMix1(t,e,n):this.setMix2(t,e,n)}setMix1(t,e,n){const s=this.skeletonData.findAnimation(t);if(!s)throw new Error(`Animation not found: ${t}`);const i=this.skeletonData.findAnimation(e);if(!i)throw new Error(`Animation not found: ${e}`);this.setMix2(s,i,n)}setMix2(t,e,n){if(!t)throw new Error("from cannot be null.");if(!e)throw new Error("to cannot be null.");const s=`${t.name}.${e.name}`;this.animationToMixTime[s]=n}getMix(t,e){const n=`${t.name}.${e.name}`,s=this.animationToMixTime[n];return s===void 0?this.defaultMix:s}}class Ct{constructor(t,e="",n=new bt,s=new lt){T(this,"textureLoader");T(this,"pathPrefix");T(this,"downloader");T(this,"cache");T(this,"errors",{});T(this,"toLoad",0);T(this,"loaded",0);T(this,"texturePmaInfo",{});this.textureLoader=t,this.pathPrefix=e,this.downloader=n,this.cache=s}start(t){return this.toLoad++,this.pathPrefix+t}success(t,e,n){this.toLoad--,this.loaded++,this.cache.assets[e]=n,this.cache.assetsRefCount[e]=(this.cache.assetsRefCount[e]||0)+1,t&&t(e,n)}error(t,e,n){this.toLoad--,this.loaded++,this.errors[e]=n,t&&t(e,n)}loadAll(){return new Promise((e,n)=>{const s=()=>{if(this.isLoadingComplete()){this.hasErrors()?n(this.errors):e(this);return}requestAnimationFrame(s)};requestAnimationFrame(s)})}setRawDataURI(t,e){this.downloader.rawDataUris[this.pathPrefix+t]=e}loadBinary(t,e=()=>{},n=()=>{}){t=this.start(t),!this.reuseAssets(t,e,n)&&(this.cache.assetsLoaded[t]=new Promise((s,i)=>{this.downloader.downloadBinary(t,o=>{this.success(e,t,o),s(o)},(o,r)=>{const l=`Couldn't load binary ${t}: status ${o}, ${r}`;this.error(n,t,l),i(l)})}))}loadText(t,e=()=>{},n=()=>{}){t=this.start(t),this.downloader.downloadText(t,s=>{this.success(e,t,s)},(s,i)=>{this.error(n,t,`Couldn't load text ${t}: status ${s}, ${i}`)})}loadJson(t,e=()=>{},n=()=>{}){t=this.start(t),!this.reuseAssets(t,e,n)&&(this.cache.assetsLoaded[t]=new Promise((s,i)=>{this.downloader.downloadJson(t,o=>{this.success(e,t,o),s(o)},(o,r)=>{const l=`Couldn't load JSON ${t}: status ${o}, ${r}`;this.error(n,t,l),i(l)})}))}reuseAssets(t,e=()=>{},n=()=>{}){const s=this.cache.getAsset(t),i=s!==void 0;return i&&(this.cache.assetsLoaded[t]=s.then(o=>(o=o instanceof Image||o instanceof ImageBitmap?this.textureLoader(o):o,this.success(e,t,o),o)).catch(o=>{this.error(n,t,o)})),i}loadTexture(t,e=()=>{},n=()=>{}){if(t=this.start(t),this.reuseAssets(t,e,n))return;const s=this.texturePmaInfo[t];this.cache.assetsLoaded[t]=new Promise((i,o)=>{if(!!!(typeof window<"u"&&typeof navigator<"u"&&window.document))fetch(t,{mode:"cors"}).then(c=>{if(c.ok)return c.blob();const a=`Couldn't load image: ${t}`;this.error(n,t,`Couldn't load image: ${t}`),o(a)}).then(c=>c?createImageBitmap(c,{premultiplyAlpha:"none",colorSpaceConversion:"none"}):null).then(c=>{if(c){const a=this.createTexture(t,s,c);this.success(e,t,a),i(a)}});else{const c=new Image;c.crossOrigin="anonymous",c.onload=()=>{const a=this.createTexture(t,s,c);this.success(e,t,a),i(a)},c.onerror=()=>{const a=`Couldn't load image: ${t}`;this.error(n,t,a),o(a)},this.downloader.rawDataUris[t]&&(t=this.downloader.rawDataUris[t]),c.src=t}})}loadTextureAtlas(t,e=()=>{},n=()=>{},s){const i=t.lastIndexOf("/"),o=i>=0?t.substring(0,i+1)Line truncated
|
||||
var ft=Object.defineProperty;var gt=(W,t,e)=>t in W?ft(W,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):W[t]=e;var T=(W,t,e)=>gt(W,typeof t!="symbol"?t+"":t,e);import{f as ht,R as pt,N as dt,ac as ut,Z as mt,b4 as yt,O as rt,b5 as at,U as D,B as Tt}from"./index-DnfvUUAC.js";import{$ as Rt,a0 as Yt,a1 as Ft,a2 as Et,y as _t,a3 as Ot,a4 as kt,a5 as Xt,a6 as Bt,a7 as Nt,a8 as Dt,a9 as $t,aa as zt,ab as Wt,ad as qt,H as Gt,ae as Jt,af as Ht,ag as Zt,ah as Kt,ai as Qt,aj as jt,ak as te,al as ee,am as se,an as ne,ao as ie,ap as oe,aq as re,ar as ae,as as le,at as ce,au as he,av as pe,aw as de,ax as ue,ay as fe,az as ge,aA as me,aB as ye,aC as Te,aD as be,aE as we,aF as xe,aG as Ae,aH as Pe,aI as Ie,aJ as Ce,aK as Ve,aL as Le,aM as Se,aN as Me,aO as ve,aP as Ue,aQ as Re,aR as Ye,aS as Fe,aT as Ee,x as _e,aU as Oe,aV as ke,aW as Xe,aX as Be,aY as Ne,aZ as De,a_ as $e,a$ as ze,b0 as We,b1 as qe,b2 as Ge,b3 as Je,b6 as He,b7 as Ze,b8 as Ke,b9 as Qe,ba as je,bb as ts,bc as es,bd as ss,be as ns,bf as is,bg as os,bh as rs,bi as as,bj as ls,bk as cs,bl as hs,bm as ps,bn as ds,bo as us,bp as fs,bq as gs,br as ms,bs as ys,bt as Ts,bu as bs,w as ws,X as xs,J as As,Y as Ps,z as Is,bv as Cs,bw as Vs,bx as Ls,by as Ss,bz as Ms,bA as vs,bB as Us,bC as Rs,bD as Ys,bE as Fs,bF as Es,bG as _s,T as Os,bH as ks,bI as Xs,b as Bs,bJ as Ns,c as Ds,bK as $s,bL as zs,bM as Ws,bN as qs,bO as Gs,bP as Js,bQ as Hs,bR as Zs,bS as Ks,bT as Qs,bU as js,bV as tn,bW as en,bX as sn,bY as nn,bZ as on,b_ as rn,V as an,b$ as ln,c0 as cn,c1 as hn,c2 as pn,c3 as dn}from"./index-DnfvUUAC.js";class It{constructor(t){T(this,"skeletonData");T(this,"animationToMixTime",{});T(this,"defaultMix",0);if(!t)throw new Error("skeletonData cannot be null.");this.skeletonData=t}setMix(t,e,n){return typeof t=="string"?this.setMix1(t,e,n):this.setMix2(t,e,n)}setMix1(t,e,n){const s=this.skeletonData.findAnimation(t);if(!s)throw new Error(`Animation not found: ${t}`);const i=this.skeletonData.findAnimation(e);if(!i)throw new Error(`Animation not found: ${e}`);this.setMix2(s,i,n)}setMix2(t,e,n){if(!t)throw new Error("from cannot be null.");if(!e)throw new Error("to cannot be null.");const s=`${t.name}.${e.name}`;this.animationToMixTime[s]=n}getMix(t,e){const n=`${t.name}.${e.name}`,s=this.animationToMixTime[n];return s===void 0?this.defaultMix:s}}class Ct{constructor(t,e="",n=new bt,s=new lt){T(this,"textureLoader");T(this,"pathPrefix");T(this,"downloader");T(this,"cache");T(this,"errors",{});T(this,"toLoad",0);T(this,"loaded",0);T(this,"texturePmaInfo",{});this.textureLoader=t,this.pathPrefix=e,this.downloader=n,this.cache=s}start(t){return this.toLoad++,this.pathPrefix+t}success(t,e,n){this.toLoad--,this.loaded++,this.cache.assets[e]=n,this.cache.assetsRefCount[e]=(this.cache.assetsRefCount[e]||0)+1,t&&t(e,n)}error(t,e,n){this.toLoad--,this.loaded++,this.errors[e]=n,t&&t(e,n)}loadAll(){return new Promise((e,n)=>{const s=()=>{if(this.isLoadingComplete()){this.hasErrors()?n(this.errors):e(this);return}requestAnimationFrame(s)};requestAnimationFrame(s)})}setRawDataURI(t,e){this.downloader.rawDataUris[this.pathPrefix+t]=e}loadBinary(t,e=()=>{},n=()=>{}){t=this.start(t),!this.reuseAssets(t,e,n)&&(this.cache.assetsLoaded[t]=new Promise((s,i)=>{this.downloader.downloadBinary(t,o=>{this.success(e,t,o),s(o)},(o,r)=>{const l=`Couldn't load binary ${t}: status ${o}, ${r}`;this.error(n,t,l),i(l)})}))}loadText(t,e=()=>{},n=()=>{}){t=this.start(t),this.downloader.downloadText(t,s=>{this.success(e,t,s)},(s,i)=>{this.error(n,t,`Couldn't load text ${t}: status ${s}, ${i}`)})}loadJson(t,e=()=>{},n=()=>{}){t=this.start(t),!this.reuseAssets(t,e,n)&&(this.cache.assetsLoaded[t]=new Promise((s,i)=>{this.downloader.downloadJson(t,o=>{this.success(e,t,o),s(o)},(o,r)=>{const l=`Couldn't load JSON ${t}: status ${o}, ${r}`;this.error(n,t,l),i(l)})}))}reuseAssets(t,e=()=>{},n=()=>{}){const s=this.cache.getAsset(t),i=s!==void 0;return i&&(this.cache.assetsLoaded[t]=s.then(o=>(o=o instanceof Image||o instanceof ImageBitmap?this.textureLoader(o):o,this.success(e,t,o),o)).catch(o=>{this.error(n,t,o)})),i}loadTexture(t,e=()=>{},n=()=>{}){if(t=this.start(t),this.reuseAssets(t,e,n))return;const s=this.texturePmaInfo[t];this.cache.assetsLoaded[t]=new Promise((i,o)=>{if(!!!(typeof window<"u"&&typeof navigator<"u"&&window.document))fetch(t,{mode:"cors"}).then(c=>{if(c.ok)return c.blob();const a=`Couldn't load image: ${t}`;this.error(n,t,`Couldn't load image: ${t}`),o(a)}).then(c=>c?createImageBitmap(c,{premultiplyAlpha:"none",colorSpaceConversion:"none"}):null).then(c=>{if(c){const a=this.createTexture(t,s,c);this.success(e,t,a),i(a)}});else{const c=new Image;c.crossOrigin="anonymous",c.onload=()=>{const a=this.createTexture(t,s,c);this.success(e,t,a),i(a)},c.onerror=()=>{const a=`Couldn't load image: ${t}`;this.error(n,t,a),o(a)},this.downloader.rawDataUris[t]&&(t=this.downloader.rawDataUris[t]),c.src=t}})}loadTextureAtlas(t,e=()=>{},n=()=>{},s){const i=t.lastIndexOf("/"),o=i>=0?t.substring(0,i+1)Line truncated
|
||||
${n}`:""}`)}remove(t){t=this.pathPrefix+t;const e=this.cache.assets[t];return e.dispose&&e.dispose(),delete this.cache.assets[t],delete this.cache.assetsRefCount[t],delete this.cache.assetsLoaded[t],e}removeAll(){for(const t in this.cache.assets){const e=this.cache.assets[t];e.dispose&&e.dispose()}this.cache.assets={},this.cache.assetsLoaded={},this.cache.assetsRefCount={}}isLoadingComplete(){return this.toLoad===0}getToLoad(){return this.toLoad}getLoaded(){return this.loaded}dispose(){this.removeAll()}disposeAsset(t){const e=this.cache.assets[t];if(e instanceof ht){e.dispose();return}this.disposeAssetInternal(t)}hasErrors(){return Object.keys(this.errors).length>0}getErrors(){return this.errors}disposeAssetInternal(t){if(this.cache.assetsRefCount[t]>0&&--this.cache.assetsRefCount[t]===0)return this.remove(t)}createTextureAtlas(t,e,n,s){const i=new ht(t);i.dispose=()=>{var o;if(!(this.cache.assetsRefCount[n]<=0)){this.disposeAssetInternal(n);for(const r of i.pages)(o=r.texture)==null||o.dispose()}};for(const o of i.pages){const r=this.texturePath(e,o.name,s);this.texturePmaInfo[this.pathPrefix+r]=o.pma}return i}createTexture(t,e,n){const s=this.textureLoader(n,e),i=s.dispose.bind(s);return s.dispose=()=>{this.disposeAssetInternal(t)&&i()},s}texturePath(t,e,n){return n?n[e]:t+e}}const nt=class nt{constructor(){T(this,"assets",{});T(this,"assetsRefCount",{});T(this,"assetsLoaded",{})}static getCache(t){const e=nt.AVAILABLE_CACHES.get(t);if(e)return e;const n=new nt;return nt.AVAILABLE_CACHES.set(t,n),n}async addAsset(t,e){return this.assetsLoaded[t]=Promise.resolve(e),this.assets[t]=e,e}getAsset(t){return this.assetsLoaded[t]}};T(nt,"AVAILABLE_CACHES",new Map);let lt=nt;class bt{constructor(){T(this,"callbacks",{});T(this,"rawDataUris",{})}dataUriToString(t){if(!t.startsWith("data:"))throw new Error("Not a data URI.");let e=t.indexOf("base64,");return e!==-1?(e+=7,atob(t.substr(e))):t.substr(t.indexOf(",")+1)}base64ToUint8Array(t){var e=window.atob(t),n=e.length,s=new Uint8Array(n);for(let i=0;i<n;i++)s[i]=e.charCodeAt(i);return s}dataUriToUint8Array(t){if(!t.startsWith("data:"))throw new Error("Not a data URI.");let e=t.indexOf("base64,");if(e===-1)throw new Error("Not a binary data URI.");return e+=7,this.base64ToUint8Array(t.substr(e))}downloadText(t,e,n){if(this.start(t,e,n))return;const s=this.rawDataUris[t];if(s&&!s.includes(".")){try{this.finish(t,200,this.dataUriToString(s))}catch(r){this.finish(t,400,JSON.stringify(r))}return}const i=new XMLHttpRequest;i.overrideMimeType("text/html"),i.open("GET",s||t,!0);const o=()=>{this.finish(t,i.status,i.responseText)};i.onload=o,i.onerror=o,i.send()}downloadJson(t,e,n){this.downloadText(t,s=>{e(JSON.parse(s))},n)}downloadBinary(t,e,n){if(this.start(t,e,n))return;const s=this.rawDataUris[t];if(s&&!s.includes(".")){try{this.finish(t,200,this.dataUriToUint8Array(s))}catch(r){this.finish(t,400,JSON.stringify(r))}return}const i=new XMLHttpRequest;i.open("GET",s||t,!0),i.responseType="arraybuffer";const o=()=>{this.finish(t,i.status,i.response)};i.onload=()=>{i.status===200||i.status===0?this.finish(t,200,new Uint8Array(i.response)):o()},i.onerror=o,i.send()}start(t,e,n){let s=this.callbacks[t];try{if(s)return!0;this.callbacks[t]=s=[]}finally{s.push(e,n)}}finish(t,e,n){const s=this.callbacks[t];if(delete this.callbacks[t],e===200||e===0)for(let i=0,o=s.length;i<o;i+=2)s[i](n);else for(let i=1,o=s.length;i<o;i+=2)s[i](e,n)}}class Vt{constructor(t,e=!1){T(this,"atlas");T(this,"allowMissingRegions");this.atlas=t,this.allowMissingRegions=e}findRegions(t,e,n){const s=n.regions;for(let i=0,o=s.length;i<o;i++)s[i]=this.findRegion(t,n.getPath(e,i))}findRegion(t,e){const n=this.atlas.findRegion(e);if(!n&&!this.allowMissingRegions)throw new Error(`Region not found in atlas: ${e} (attachment: ${t})`);return n}newRegionAttachment(t,e,n,s,i){return this.findRegions(n,s,i),new pt(n,i)}newMeshAttachment(t,e,n,s,i){return this.findRegions(n,s,i),new dt(n,i)}newBoundingBoxAttachment(t,e,n){return new ut(n)}newPathAttachment(t,e,n){return new mt(n)}newPointAttachment(t,e,n){return new yt(n)}newClippingAttachment(t,e,n){return new rt(n)}}class Lt{constructor(){T(this,"minX",0);T(this,"minY",0);T(this,"maxX",0);T(this,"maxY",0);T(this,"boundingBoxes",[]);T(this,"polygons",[]);T(this,"polygonPool",new at(()=>D.newFloatArray(16)))}update(t,e){if(!t)throw new Error("skeleton cannot be null.");const n=this.boundingBoxes,s=this.polygons,i=this.polygonPool,o=t.slots,r=o.length;n.length=0,i.freeAll(s),s.length=0;for(let l=0;l<r;l++){const c=o[l];if(!c.bone.active)continue;const a=c.appliedPose.attachment;if(a instanceof ut){n.push(a);let h=i.obtain();h.length!==a.worldVerticesLength&&(h=D.newFloatArray(a.worldVerticesLength)),s.push(h),a.computeWorldVertices(t,c,0,a.worldVerticesLength,h,0,2)}}e?this.aabbCompute():(this.minX=Number.POSITIVE_INFINITY,this.minY=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.maxY=Number.NEGATIVE_INFINITY)}aabbCompute(){let t=Number.POSITIVE_INFLine truncated
|
||||
+23
-23
@@ -1,4 +1,4 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Cxn3bPhQ.js","assets/index-DxBJZqWf.js"])))=>i.map(i=>d[i]);
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-hgwT4zDg.js","assets/index-BSAMR7rU.js"])))=>i.map(i=>d[i]);
|
||||
var YT=Object.defineProperty;var zT=(n,e,t)=>e in n?YT(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var A=(n,e,t)=>zT(n,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}})();/**
|
||||
* @vue/shared v3.5.41
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
@@ -7,31 +7,31 @@ var YT=Object.defineProperty;var zT=(n,e,t)=>e in n?YT(n,e,{enumerable:!0,config
|
||||
* @vue/reactivity v3.5.41
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let Ci;class Bx{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Ci&&(Ci.active?(this.parent=Ci,this.index=(Ci.scopes||(Ci.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){const i=this.scopes.slice();for(e=0,t=i.length;e<t;e++)i[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){const s=this.scopes.slice();for(e=0,t=s.length;e<t;e++)s[e].resume()}const i=this.effects.slice();for(e=0,t=i.length;e<t;e++)i[e].resume()}}run(e){if(this._active){const t=Ci;try{return Ci=this,e()}finally{Ci=t}}}on(){++this._on===1&&(this.prevScope=Ci,Ci=this)}off(){if(this._on>0&&--this._on===0){if(Ci===this)Ci=this.prevScope;else{let e=Ci;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,i;for(t=0,i=this.effects.length;t<i;t++)this.effects[t].stop();for(this.effects.length=0,t=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){const s=this.scopes.slice();for(t=0,i=s.length;t<i;t++)s[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function ag(n){return new Bx(n)}function lg(){return Ci}function Ux(n,e=!1){Ci&&Ci.cleanups.push(n)}let Gt;const Ah=new WeakSet;class Vx{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ci&&(Ci.active?Ci.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ah.has(this)&&(Ah.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Yx(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,uv(this),zx(this);const e=Gt,t=Kn;Gt=this,Kn=!0;try{return this.fn()}finally{jx(this),Gt=e,Kn=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)ug(e);this.deps=this.depsTail=void 0,uv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ah.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Sp(this)&&this.run()}get dirty(){return Sp(this)}}let Xx=0,Ml,Pl;function Yx(n,e=!1){if(n.flags|=8,e){n.next=Pl,Pl=n;return}n.next=Ml,Ml=n}function cg(){Xx++}function dg(){if(--Xx>0)return;if(Pl){let e=Pl;for(Pl=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let n;for(;Ml;){let e=Ml;for(Ml=void 0;e;){const t=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(i){n||(n=i)}e=t}}if(n)throw n}function zx(n){for(let e=n.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function jx(n){let e,t=n.depsTail,i=t;for(;i;){const s=i.prevDep;i.version===-1?(i===t&&(t=s),ug(i),nE(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}n.deps=e,n.depsTail=t}function Sp(n){for(let e=n.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Hx(e.dep.computed)||e.dep.version!==e.version))return!0;return!!n._dirty}function Hx(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===Vl)||(n.globalVersion=Vl,!n.isSSR&&n.flags&128&&(!n.deps&&!n._dirty||!Sp(n))))return;n.flags|=2;const e=n.dep,t=Gt,i=Kn;Gt=n,Kn=!0;try{zx(n);const s=n.fn(n._value);(e.version===0||xs(s,n._value))&&(n.flags|=128,n._value=s,e.version++)}catch(s){throw e.version++,s}finally{Gt=t,Kn=i,jx(n),n.flags&=-3}}function ug(n,e=!1){const{dep:t,prevSub:i,nextSub:s}=n;if(i&&(i.nextSub=s,n.prevSub=void 0),s&&(s.prevSub=i,n.nextSub=void 0),t.subs===n&&(t.subs=i,!i&&t.computed)){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)ug(r,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function nE(n){const{prevDep:e,nextDep:t}=n;e&&(e.nextDep=t,n.prevDep=void 0),t&&(t.prevDep=e,n.nextDep=void 0)}let Kn=!0;const Gx=[];function dr(){Gx.push(Kn),Kn=!1}function ur(){const n=Gx.pop();Kn=n===void 0?!0:n}function uv(n){const{cleanup:e}=n;if(n.cleanup=void 0,e){const t=Gt;Gt=void 0;try{e()}finally{Gt=t}}}let Vl=0;class sE{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hg{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Gt||!Kn||Gt===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Gt)t=this.activeLink=new sE(Gt,this),Gt.deps?(t.prevDep=Gt.depsTail,Gt.depsTail.nextDep=t,Gt.depsTail=t):Gt.deps=Gt.depsTail=t,Wx(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const i=t.nextDep;i.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=i),t.prevDep=Gt.depsTailLine truncated
|
||||
**/let Ci;class Bx{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Ci&&(Ci.active?(this.parent=Ci,this.index=(Ci.scopes||(Ci.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){const i=this.scopes.slice();for(e=0,t=i.length;e<t;e++)i[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){const s=this.scopes.slice();for(e=0,t=s.length;e<t;e++)s[e].resume()}const i=this.effects.slice();for(e=0,t=i.length;e<t;e++)i[e].resume()}}run(e){if(this._active){const t=Ci;try{return Ci=this,e()}finally{Ci=t}}}on(){++this._on===1&&(this.prevScope=Ci,Ci=this)}off(){if(this._on>0&&--this._on===0){if(Ci===this)Ci=this.prevScope;else{let e=Ci;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,i;for(t=0,i=this.effects.length;t<i;t++)this.effects[t].stop();for(this.effects.length=0,t=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){const s=this.scopes.slice();for(t=0,i=s.length;t<i;t++)s[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function ag(n){return new Bx(n)}function lg(){return Ci}function Ux(n,e=!1){Ci&&Ci.cleanups.push(n)}let Gt;const Ah=new WeakSet;class Vx{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ci&&(Ci.active?Ci.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ah.has(this)&&(Ah.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Yx(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,uv(this),zx(this);const e=Gt,t=Kn;Gt=this,Kn=!0;try{return this.fn()}finally{jx(this),Gt=e,Kn=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)ug(e);this.deps=this.depsTail=void 0,uv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ah.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Sp(this)&&this.run()}get dirty(){return Sp(this)}}let Xx=0,Ml,Pl;function Yx(n,e=!1){if(n.flags|=8,e){n.next=Pl,Pl=n;return}n.next=Ml,Ml=n}function cg(){Xx++}function dg(){if(--Xx>0)return;if(Pl){let e=Pl;for(Pl=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let n;for(;Ml;){let e=Ml;for(Ml=void 0;e;){const t=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(i){n||(n=i)}e=t}}if(n)throw n}function zx(n){for(let e=n.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function jx(n){let e,t=n.depsTail,i=t;for(;i;){const s=i.prevDep;i.version===-1?(i===t&&(t=s),ug(i),nE(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}n.deps=e,n.depsTail=t}function Sp(n){for(let e=n.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Hx(e.dep.computed)||e.dep.version!==e.version))return!0;return!!n._dirty}function Hx(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===Vl)||(n.globalVersion=Vl,!n.isSSR&&n.flags&128&&(!n.deps&&!n._dirty||!Sp(n))))return;n.flags|=2;const e=n.dep,t=Gt,i=Kn;Gt=n,Kn=!0;try{zx(n);const s=n.fn(n._value);(e.version===0||xs(s,n._value))&&(n.flags|=128,n._value=s,e.version++)}catch(s){throw e.version++,s}finally{Gt=t,Kn=i,jx(n),n.flags&=-3}}function ug(n,e=!1){const{dep:t,prevSub:i,nextSub:s}=n;if(i&&(i.nextSub=s,n.prevSub=void 0),s&&(s.prevSub=i,n.nextSub=void 0),t.subs===n&&(t.subs=i,!i&&t.computed)){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)ug(r,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function nE(n){const{prevDep:e,nextDep:t}=n;e&&(e.nextDep=t,n.prevDep=void 0),t&&(t.prevDep=e,n.nextDep=void 0)}let Kn=!0;const Gx=[];function dr(){Gx.push(Kn),Kn=!1}function ur(){const n=Gx.pop();Kn=n===void 0?!0:n}function uv(n){const{cleanup:e}=n;if(n.cleanup=void 0,e){const t=Gt;Gt=void 0;try{e()}finally{Gt=t}}}let Vl=0;class sE{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hg{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Gt||!Kn||Gt===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Gt)t=this.activeLink=new sE(Gt,this),Gt.deps?(t.prevDep=Gt.depsTail,Gt.depsTail.nextDep=t,Gt.depsTail=t):Gt.deps=Gt.depsTail=t,Wx(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const i=t.nextDep;i.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=i),t.prevDep=Gt.depsTailLine truncated
|
||||
* @vue/runtime-core v3.5.41
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function hc(n,e,t,i){try{return i?n(...i):n()}catch(s){Yu(s,e,t)}}function Dn(n,e,t,i){if(dt(n)){const s=hc(n,e,t,i);return s&&kx(s)&&s.catch(r=>{Yu(r,e,t)}),s}if(et(n)){const s=[];for(let r=0;r<n.length;r++)s.push(Dn(n[r],e,t,i));return s}}function Yu(n,e,t,i=!0){const s=e?e.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||Xt;if(e){let a=e.parent;const c=e.proxy,l=`https://vuejs.org/error-reference/#runtime-${t}`;for(;a;){const d=a.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](n,c,l)===!1)return}a=a.parent}if(r){dr(),hc(r,null,10,[n,c,l]),ur();return}}RE(n,t,s,i,o)}function RE(n,e,t,i=!0,s=!1){if(s)throw n;console.error(n)}const Zi=[];let us=-1;const _a=[];let Ir=null,ua=0;const n1=Promise.resolve();let Od=null;function zu(n){const e=Od||n1;return n?e.then(this?n.bind(this):n):e}function FE(n){let e=us+1,t=Zi.length;for(;e<t;){const i=e+t>>>1,s=Zi[i],r=Yl(s);r<n||r===n&&s.flags&2?e=i+1:t=i}return e}function mg(n){if(!(n.flags&1)){const e=Yl(n),t=Zi[Zi.length-1];!t||!(n.flags&2)&&e>=Yl(t)?Zi.push(n):Zi.splice(FE(e),0,n),n.flags|=1,s1()}}function s1(){Od||(Od=n1.then(o1))}function LE(n){if(!et(n))Ir&&n.id===-1?Ir.splice(ua+1,0,n):n.flags&1||(_a.push(n),n.flags|=1);else for(let e=0;e<n.length;e++)_a.push(n[e]);s1()}function fv(n,e,t=us+1){for(;t<Zi.length;t++){const i=Zi[t];if(i&&i.flags&2){if(n&&i.id!==n.uid)continue;Zi.splice(t,1),t--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function r1(n){if(_a.length){const e=[...new Set(_a)].sort((t,i)=>Yl(t)-Yl(i));if(_a.length=0,Ir){for(let t=0;t<e.length;t++)Ir.push(e[t]);return}for(Ir=e,ua=0;ua<Ir.length;ua++){const t=Ir[ua];t.flags&4&&(t.flags&=-2),t.flags&8||t(),t.flags&=-2}Ir=null,ua=0}}const Yl=n=>n.id==null?n.flags&2?-1:1/0:n.id;function o1(n){try{for(us=0;us<Zi.length;us++){const e=Zi[us];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),hc(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;us<Zi.length;us++){const e=Zi[us];e&&(e.flags&=-2)}us=-1,Zi.length=0,r1(),Od=null,(Zi.length||_a.length)&&o1()}}let Gi=null,a1=null;function Nd(n){const e=Gi;return Gi=n,a1=n&&n.type.__scopeId||null,e}function ju(n,e=Gi,t){if(!e||n._n)return n;const i=(...s)=>{i._d&&Vd(-1);const r=Nd(e),o=ar.length;let a;try{a=n(...s)}finally{for(let c=ar.length;c>o;c--)xg();Nd(r),i._d&&Vd(1)}return a};return i._n=!0,i._c=!0,i._d=!0,i}function me(n,e){if(Gi===null)return n;const t=Ju(Gi),i=n.dirs||(n.dirs=[]);for(let s=0;s<e.length;s++){let[r,o,a,c=Xt]=e[s];r&&(dt(r)&&(r={mounted:r,updated:r}),r.deep&&Ws(o),i.push({dir:r,instance:t,value:o,oldValue:void 0,arg:a,modifiers:c}))}return n}function ao(n,e,t,i){const s=n.dirs,r=e&&e.dirs;for(let o=0;o<s.length;o++){const a=s[o];r&&(a.oldValue=r[o].value);let c=a.dir[i];c&&(dr(),Dn(c,t,8,[n.el,a,n,e]),ur())}}function l1(n,e){if(Qi){let t=Qi.provides;const i=Qi.parent&&Qi.parent.provides;i===t&&(t=Qi.provides=Object.create(i)),t[n]=e}}function Ro(n,e,t=!1){const i=Ku();if(i||Fo){let s=Fo?Fo._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(s&&n in s)return s[n];if(arguments.length>1)return t&&dt(e)?e.call(i&&i.proxy):e}}function DE(){return!!(Ku()||Fo)}const OE=Symbol.for("v-scx"),NE=()=>Ro(OE);function ha(n,e){return gg(n,null,e)}function ei(n,e,t){return gg(n,e,t)}function gg(n,e,t=Xt){const{immediate:i,deep:s,flush:r,once:o}=t,a=Ei({},t),c=e&&i||!e&&r!=="post";let l;if(Wl){if(r==="sync"){const f=NE();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!c){const f=()=>{};return f.stop=Es,f.resume=Es,f.pause=Es,f}}const d=Qi;a.call=(f,p,m)=>Dn(f,d,p,m);let u=!1;r==="post"?a.scheduler=f=>{qi(f,d&&d.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(f,p)=>{p?f():mg(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,d&&(f.id=d.uid,f.i=d))};const h=kE(n,e,a);return Wl&&(l?l.push(h):c&&h()),h}function $E(n,e,t){const i=this.proxy,s=ii(n)?n.includes(".")?c1(i,n):()=>i[n]:n.bind(i,i);let r;dt(e)?r=e:(r=e.handler,t=e);const o=pc(this),a=gg(s,r.bind(i),t);return o(),a}function c1(n,e){const t=e.split(".");return()=>{let i=n;for(let s=0;s<t.length&&i;s++)i=i[t[s]];return i}}const Tr=new WeakMap,d1=Symbol("_vte"),Hu=n=>n.__isTeleport,wo=n=>n&&(n.disabled||n.disabled===""),BE=n=>n&&(n.defer||n.defer===""),pv=n=>typeof SVGElement<"u"&&n instanceof SVGElement,mv=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,Ep=(n,e)=>{const t=n&&n.to;return ii(t)?e?e(t):null:t},UE={name:"Teleport",__isTeleport:!0,process(n,e,t,i,s,r,o,a,c,l){const{mc:d,pc:u,pbc:h,o:{insert:f,querySelector:p,createText:m,createComment:g,parentNode:v}}=l,y=wo(e.props);let{dynamicChildren:b}=e;const x=(S,E,_)=>{S.shapeFlag&16&&d(S.children,E,_,s,r,o,a,c)},C=(S=e)=>{const E=wo(S.props),_=S.target=Ep(S.props,p),I=_p(_,S,m,f);_&&(o!=="svg"&&pv(_)?o="svg":o!=="mathml"&&mv(_)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(_),E||(x(S,_,I),gl(S,!1)))},T=S=>{const E=()=>{if(Tr.get(S)===E){if(Tr.delete(S),wo(S.props)){const _=v(S.el)||t;x
Line truncated
|
||||
**/function hc(n,e,t,i){try{return i?n(...i):n()}catch(s){Yu(s,e,t)}}function Dn(n,e,t,i){if(dt(n)){const s=hc(n,e,t,i);return s&&kx(s)&&s.catch(r=>{Yu(r,e,t)}),s}if(et(n)){const s=[];for(let r=0;r<n.length;r++)s.push(Dn(n[r],e,t,i));return s}}function Yu(n,e,t,i=!0){const s=e?e.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||Xt;if(e){let a=e.parent;const c=e.proxy,l=`https://vuejs.org/error-reference/#runtime-${t}`;for(;a;){const d=a.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](n,c,l)===!1)return}a=a.parent}if(r){dr(),hc(r,null,10,[n,c,l]),ur();return}}RE(n,t,s,i,o)}function RE(n,e,t,i=!0,s=!1){if(s)throw n;console.error(n)}const Zi=[];let us=-1;const _a=[];let Ir=null,ua=0;const n1=Promise.resolve();let Od=null;function zu(n){const e=Od||n1;return n?e.then(this?n.bind(this):n):e}function FE(n){let e=us+1,t=Zi.length;for(;e<t;){const i=e+t>>>1,s=Zi[i],r=Yl(s);r<n||r===n&&s.flags&2?e=i+1:t=i}return e}function mg(n){if(!(n.flags&1)){const e=Yl(n),t=Zi[Zi.length-1];!t||!(n.flags&2)&&e>=Yl(t)?Zi.push(n):Zi.splice(FE(e),0,n),n.flags|=1,s1()}}function s1(){Od||(Od=n1.then(o1))}function LE(n){if(!et(n))Ir&&n.id===-1?Ir.splice(ua+1,0,n):n.flags&1||(_a.push(n),n.flags|=1);else for(let e=0;e<n.length;e++)_a.push(n[e]);s1()}function fv(n,e,t=us+1){for(;t<Zi.length;t++){const i=Zi[t];if(i&&i.flags&2){if(n&&i.id!==n.uid)continue;Zi.splice(t,1),t--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function r1(n){if(_a.length){const e=[...new Set(_a)].sort((t,i)=>Yl(t)-Yl(i));if(_a.length=0,Ir){for(let t=0;t<e.length;t++)Ir.push(e[t]);return}for(Ir=e,ua=0;ua<Ir.length;ua++){const t=Ir[ua];t.flags&4&&(t.flags&=-2),t.flags&8||t(),t.flags&=-2}Ir=null,ua=0}}const Yl=n=>n.id==null?n.flags&2?-1:1/0:n.id;function o1(n){try{for(us=0;us<Zi.length;us++){const e=Zi[us];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),hc(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;us<Zi.length;us++){const e=Zi[us];e&&(e.flags&=-2)}us=-1,Zi.length=0,r1(),Od=null,(Zi.length||_a.length)&&o1()}}let Gi=null,a1=null;function Nd(n){const e=Gi;return Gi=n,a1=n&&n.type.__scopeId||null,e}function ju(n,e=Gi,t){if(!e||n._n)return n;const i=(...s)=>{i._d&&Vd(-1);const r=Nd(e),o=ar.length;let a;try{a=n(...s)}finally{for(let c=ar.length;c>o;c--)xg();Nd(r),i._d&&Vd(1)}return a};return i._n=!0,i._c=!0,i._d=!0,i}function me(n,e){if(Gi===null)return n;const t=Ju(Gi),i=n.dirs||(n.dirs=[]);for(let s=0;s<e.length;s++){let[r,o,a,c=Xt]=e[s];r&&(dt(r)&&(r={mounted:r,updated:r}),r.deep&&Ws(o),i.push({dir:r,instance:t,value:o,oldValue:void 0,arg:a,modifiers:c}))}return n}function ao(n,e,t,i){const s=n.dirs,r=e&&e.dirs;for(let o=0;o<s.length;o++){const a=s[o];r&&(a.oldValue=r[o].value);let c=a.dir[i];c&&(dr(),Dn(c,t,8,[n.el,a,n,e]),ur())}}function l1(n,e){if(Qi){let t=Qi.provides;const i=Qi.parent&&Qi.parent.provides;i===t&&(t=Qi.provides=Object.create(i)),t[n]=e}}function Ro(n,e,t=!1){const i=Ku();if(i||Fo){let s=Fo?Fo._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(s&&n in s)return s[n];if(arguments.length>1)return t&&dt(e)?e.call(i&&i.proxy):e}}function DE(){return!!(Ku()||Fo)}const OE=Symbol.for("v-scx"),NE=()=>Ro(OE);function ha(n,e){return gg(n,null,e)}function ei(n,e,t){return gg(n,e,t)}function gg(n,e,t=Xt){const{immediate:i,deep:s,flush:r,once:o}=t,a=Ei({},t),c=e&&i||!e&&r!=="post";let l;if(Wl){if(r==="sync"){const f=NE();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!c){const f=()=>{};return f.stop=Es,f.resume=Es,f.pause=Es,f}}const d=Qi;a.call=(f,p,m)=>Dn(f,d,p,m);let u=!1;r==="post"?a.scheduler=f=>{qi(f,d&&d.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(f,p)=>{p?f():mg(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,d&&(f.id=d.uid,f.i=d))};const h=kE(n,e,a);return Wl&&(l?l.push(h):c&&h()),h}function $E(n,e,t){const i=this.proxy,s=ii(n)?n.includes(".")?c1(i,n):()=>i[n]:n.bind(i,i);let r;dt(e)?r=e:(r=e.handler,t=e);const o=pc(this),a=gg(s,r.bind(i),t);return o(),a}function c1(n,e){const t=e.split(".");return()=>{let i=n;for(let s=0;s<t.length&&i;s++)i=i[t[s]];return i}}const Tr=new WeakMap,d1=Symbol("_vte"),Hu=n=>n.__isTeleport,wo=n=>n&&(n.disabled||n.disabled===""),BE=n=>n&&(n.defer||n.defer===""),pv=n=>typeof SVGElement<"u"&&n instanceof SVGElement,mv=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,Ep=(n,e)=>{const t=n&&n.to;return ii(t)?e?e(t):null:t},UE={name:"Teleport",__isTeleport:!0,process(n,e,t,i,s,r,o,a,c,l){const{mc:d,pc:u,pbc:h,o:{insert:f,querySelector:p,createText:m,createComment:g,parentNode:v}}=l,y=wo(e.props);let{dynamicChildren:b}=e;const w=(S,E,_)=>{S.shapeFlag&16&&d(S.children,E,_,s,r,o,a,c)},C=(S=e)=>{const E=wo(S.props),_=S.target=Ep(S.props,p),I=_p(_,S,m,f);_&&(o!=="svg"&&pv(_)?o="svg":o!=="mathml"&&mv(_)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(_),E||(w(S,_,I),gl(S,!1)))},T=S=>{const E=()=>{if(Tr.get(S)===E){if(Tr.delete(S),wo(S.props)){const _=v(S.el)||t;w
Line truncated
|
||||
* @vue/runtime-dom v3.5.41
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let Fp;const Mv=typeof window<"u"&&window.trustedTypes;if(Mv)try{Fp=Mv.createPolicy("vue",{createHTML:n=>n})}catch{}const U1=Fp?n=>Fp.createHTML(n):n=>n,X_="http://www.w3.org/2000/svg",Y_="http://www.w3.org/1998/Math/MathML",Vs=typeof document<"u"?document:null,Pv=Vs&&Vs.createElement("template"),z_={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,i)=>{const s=e==="svg"?Vs.createElementNS(X_,n):e==="mathml"?Vs.createElementNS(Y_,n):t?Vs.createElement(n,{is:t}):Vs.createElement(n);return n==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:n=>Vs.createTextNode(n),createComment:n=>Vs.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>Vs.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,i,s,r){const o=t?t.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),t),!(s===r||!(s=s.nextSibling)););else{Pv.innerHTML=U1(i==="svg"?`<svg>${n}</svg>`:i==="mathml"?`<math>${n}</math>`:n);const a=Pv.content;if(i==="svg"||i==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},wr="transition",ll="animation",Kl=Symbol("_vtc"),V1={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},j_=Ei({},h1,V1),H_=n=>(n.displayName="Transition",n.props=j_,n),G_=H_((n,{slots:e})=>ql(zE,W_(n),e)),co=(n,e=[])=>{et(n)?n.forEach(t=>t(...e)):n&&n(...e)},Iv=n=>n?et(n)?n.some(e=>e.length>1):n.length>1:!1;function W_(n){const e={};for(const k in n)k in V1||(e[k]=n[k]);if(n.css===!1)return e;const{name:t="v",type:i,duration:s,enterFromClass:r=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:c=r,appearActiveClass:l=o,appearToClass:d=a,leaveFromClass:u=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=n,p=q_(s),m=p&&p[0],g=p&&p[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:C,onBeforeAppear:T=v,onAppear:S=y,onAppearCancelled:E=b}=e,_=(k,B,D,G)=>{k._enterCancelled=G,uo(k,B?d:a),uo(k,B?l:o),D&&D()},I=(k,B)=>{k._isLeaving=!1,uo(k,u),uo(k,f),uo(k,h),B&&B()},M=k=>(B,D)=>{const G=k?S:y,V=()=>_(B,k,D);co(G,[B,V]),kv(()=>{uo(B,k?c:r),Os(B,k?d:a),Iv(G)||Rv(B,i,m,V)})};return Ei(e,{onBeforeEnter(k){co(v,[k]),Os(k,r),Os(k,o)},onBeforeAppear(k){co(T,[k]),Os(k,c),Os(k,l)},onEnter:M(!1),onAppear:M(!0),onLeave(k,B){k._isLeaving=!0;const D=()=>I(k,B);Os(k,u),k._enterCancelled?(Os(k,h),Dv(k)):(Dv(k),Os(k,h)),kv(()=>{k._isLeaving&&(uo(k,u),Os(k,f),Iv(x)||Rv(k,i,g,D))}),co(x,[k,D])},onEnterCancelled(k){_(k,!1,void 0,!0),co(b,[k])},onAppearCancelled(k){_(k,!0,void 0,!0),co(E,[k])},onLeaveCancelled(k){I(k),co(C,[k])}})}function q_(n){if(n==null)return null;if(Ot(n))return[Ih(n.enter),Ih(n.leave)];{const e=Ih(n);return[e,e]}}function Ih(n){return qT(n)}function Os(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[Kl]||(n[Kl]=new Set)).add(e)}function uo(n,e){e.split(/\s+/).forEach(i=>i&&n.classList.remove(i));const t=n[Kl];t&&(t.delete(e),t.size||(n[Kl]=void 0))}function kv(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let K_=0;function Rv(n,e,t,i){const s=n._endId=++K_,r=()=>{s===n._endId&&i()};if(t!=null)return setTimeout(r,t);const{type:o,timeout:a,propCount:c}=J_(n,e);if(!o)return i();const l=o+"end";let d=0;const u=()=>{n.removeEventListener(l,h),r()},h=f=>{f.target===n&&++d>=c&&u()};setTimeout(()=>{d<c&&u()},a+1),n.addEventListener(l,h)}function J_(n,e){const t=window.getComputedStyle(n),i=p=>(t[p]||"").split(", "),s=i(`${wr}Delay`),r=i(`${wr}Duration`),o=Fv(s,r),a=i(`${ll}Delay`),c=i(`${ll}Duration`),l=Fv(a,c);let d=null,u=0,h=0;e===wr?o>0&&(d=wr,u=o,h=r.length):e===ll?l>0&&(d=ll,u=l,h=c.length):(u=Math.max(o,l),d=u>0?o>l?wr:ll:null,h=d?d===wr?r.length:c.length:0);const f=d===wr&&/\b(?:transform|all)(?:,|$)/.test(i(`${wr}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function Fv(n,e){for(;n.length<e.length;)n=n.concat(n);return Math.max(...e.map((t,i)=>Lv(t)+Lv(n[i])))}function Lv(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function Dv(n){return(n?n.ownerDocument:document).body.offsetHeight}function Z_(n,e,t){const i=n[Kl];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const zd=Symbol("_vod"),X1=Symbol("_vsh"),Fi={name:"show",beforeMount(n,{value:e},{transition:t}){n[zd]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):cl(n,e)},mounted(n,{value:e},{tra
Line truncated
|
||||
**/let Fp;const Mv=typeof window<"u"&&window.trustedTypes;if(Mv)try{Fp=Mv.createPolicy("vue",{createHTML:n=>n})}catch{}const U1=Fp?n=>Fp.createHTML(n):n=>n,X_="http://www.w3.org/2000/svg",Y_="http://www.w3.org/1998/Math/MathML",Vs=typeof document<"u"?document:null,Pv=Vs&&Vs.createElement("template"),z_={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,i)=>{const s=e==="svg"?Vs.createElementNS(X_,n):e==="mathml"?Vs.createElementNS(Y_,n):t?Vs.createElement(n,{is:t}):Vs.createElement(n);return n==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:n=>Vs.createTextNode(n),createComment:n=>Vs.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>Vs.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,i,s,r){const o=t?t.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),t),!(s===r||!(s=s.nextSibling)););else{Pv.innerHTML=U1(i==="svg"?`<svg>${n}</svg>`:i==="mathml"?`<math>${n}</math>`:n);const a=Pv.content;if(i==="svg"||i==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},wr="transition",ll="animation",Kl=Symbol("_vtc"),V1={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},j_=Ei({},h1,V1),H_=n=>(n.displayName="Transition",n.props=j_,n),G_=H_((n,{slots:e})=>ql(zE,W_(n),e)),co=(n,e=[])=>{et(n)?n.forEach(t=>t(...e)):n&&n(...e)},Iv=n=>n?et(n)?n.some(e=>e.length>1):n.length>1:!1;function W_(n){const e={};for(const k in n)k in V1||(e[k]=n[k]);if(n.css===!1)return e;const{name:t="v",type:i,duration:s,enterFromClass:r=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:c=r,appearActiveClass:l=o,appearToClass:d=a,leaveFromClass:u=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=n,p=q_(s),m=p&&p[0],g=p&&p[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:w,onLeaveCancelled:C,onBeforeAppear:T=v,onAppear:S=y,onAppearCancelled:E=b}=e,_=(k,B,D,G)=>{k._enterCancelled=G,uo(k,B?d:a),uo(k,B?l:o),D&&D()},I=(k,B)=>{k._isLeaving=!1,uo(k,u),uo(k,f),uo(k,h),B&&B()},M=k=>(B,D)=>{const G=k?S:y,V=()=>_(B,k,D);co(G,[B,V]),kv(()=>{uo(B,k?c:r),Os(B,k?d:a),Iv(G)||Rv(B,i,m,V)})};return Ei(e,{onBeforeEnter(k){co(v,[k]),Os(k,r),Os(k,o)},onBeforeAppear(k){co(T,[k]),Os(k,c),Os(k,l)},onEnter:M(!1),onAppear:M(!0),onLeave(k,B){k._isLeaving=!0;const D=()=>I(k,B);Os(k,u),k._enterCancelled?(Os(k,h),Dv(k)):(Dv(k),Os(k,h)),kv(()=>{k._isLeaving&&(uo(k,u),Os(k,f),Iv(w)||Rv(k,i,g,D))}),co(w,[k,D])},onEnterCancelled(k){_(k,!1,void 0,!0),co(b,[k])},onAppearCancelled(k){_(k,!0,void 0,!0),co(E,[k])},onLeaveCancelled(k){I(k),co(C,[k])}})}function q_(n){if(n==null)return null;if(Ot(n))return[Ih(n.enter),Ih(n.leave)];{const e=Ih(n);return[e,e]}}function Ih(n){return qT(n)}function Os(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[Kl]||(n[Kl]=new Set)).add(e)}function uo(n,e){e.split(/\s+/).forEach(i=>i&&n.classList.remove(i));const t=n[Kl];t&&(t.delete(e),t.size||(n[Kl]=void 0))}function kv(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let K_=0;function Rv(n,e,t,i){const s=n._endId=++K_,r=()=>{s===n._endId&&i()};if(t!=null)return setTimeout(r,t);const{type:o,timeout:a,propCount:c}=J_(n,e);if(!o)return i();const l=o+"end";let d=0;const u=()=>{n.removeEventListener(l,h),r()},h=f=>{f.target===n&&++d>=c&&u()};setTimeout(()=>{d<c&&u()},a+1),n.addEventListener(l,h)}function J_(n,e){const t=window.getComputedStyle(n),i=p=>(t[p]||"").split(", "),s=i(`${wr}Delay`),r=i(`${wr}Duration`),o=Fv(s,r),a=i(`${ll}Delay`),c=i(`${ll}Duration`),l=Fv(a,c);let d=null,u=0,h=0;e===wr?o>0&&(d=wr,u=o,h=r.length):e===ll?l>0&&(d=ll,u=l,h=c.length):(u=Math.max(o,l),d=u>0?o>l?wr:ll:null,h=d?d===wr?r.length:c.length:0);const f=d===wr&&/\b(?:transform|all)(?:,|$)/.test(i(`${wr}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function Fv(n,e){for(;n.length<e.length;)n=n.concat(n);return Math.max(...e.map((t,i)=>Lv(t)+Lv(n[i])))}function Lv(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function Dv(n){return(n?n.ownerDocument:document).body.offsetHeight}function Z_(n,e,t){const i=n[Kl];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const zd=Symbol("_vod"),X1=Symbol("_vsh"),Fi={name:"show",beforeMount(n,{value:e},{transition:t}){n[zd]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):cl(n,e)},mounted(n,{value:e},{tra
Line truncated
|
||||
`))),n[Ss]=Ua(s);const r=i||s.props&&s.props.type==="number";Or(n,e?"change":"input",o=>{o.target.composing||n[Ss](Fh(n.value,t,r))}),(t||r)&&Or(n,"change",()=>{n.value=Fh(n.value,t,r)}),e||(Or(n,"compositionstart",mM),Or(n,"compositionend",Yv),Or(n,"change",Yv))},mounted(n,{value:e,modifiers:{trim:t,number:i}}){const s=e??"",r=n[Rc];delete n[Rc],r!==void 0&&(n.type==="text"||n.type==="textarea")&&n.value!==r?n[Ss](Fh(n.value,t,i)):n.value=s},beforeUpdate(n,{value:e,oldValue:t,modifiers:{lazy:i,trim:s,number:r}},o){if(n[Ss]=Ua(o),n.composing)return;const a=(r||n.type==="number")&&!/^0\d/.test(n.value)?Bu(n.value):n.value,c=e??"";if(a===c)return;const l=n.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===n&&n.type!=="range"&&(i&&e===t||s&&n.value.trim()===c)||(n.value=c)}},Ct={deep:!0,created(n,e,t){n[Ss]=Ua(t),Or(n,"change",()=>{const i=n._modelValue,s=Jl(n),r=n.checked,o=n[Ss];if(et(i)){const a=og(i,s),c=a!==-1;if(r&&!c)o(i.concat(s));else if(!r&&c){const l=[...i];l.splice(a,1),o(l)}}else if(Ka(i)){const a=new Set(i);r?a.add(s):a.delete(s),o(a)}else o(Y1(n,r))})},mounted:zv,beforeUpdate(n,e,t){n[Ss]=Ua(t),zv(n,e,t)}};function zv(n,{value:e,oldValue:t},i){n._modelValue=e;let s;if(et(e))s=og(e,i.props.value)>-1;else if(Ka(e))s=e.has(i.props.value);else{if(e===t)return;s=Ja(e,Y1(n,!0))}n.checked!==s&&(n.checked=s)}const St={deep:!0,created(n,{value:e,modifiers:{number:t}},i){n._modelValue=e,Or(n,"change",()=>{const s=Array.prototype.filter.call(n.options,r=>r.selected).map(r=>t?Bu(Jl(r)):Jl(r));n[Ss](n.multiple?Ka(n._modelValue)?new Set(s):s:s[0]),n._assigning=!0,zu(()=>{n._assigning=!1})}),n[Ss]=Ua(i)},mounted(n,{value:e}){jv(n,e)},beforeUpdate(n,{value:e},t){n._modelValue=e,n[Ss]=Ua(t)},updated(n,{value:e}){n._assigning||jv(n,e)}};function jv(n,e){const t=n.multiple,i=et(e);if(!(t&&!i&&!Ka(e))){for(let s=0,r=n.options.length;s<r;s++){const o=n.options[s],a=Jl(o);if(t)if(i){const c=typeof a;c==="string"||c==="number"?o.selected=e.some(l=>String(l)===String(a)):o.selected=og(e,a)>-1}else o.selected=e.has(a);else if(Ja(Jl(o),e)){n.selectedIndex!==s&&(n.selectedIndex=s);return}}!t&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}}function Jl(n){return"_value"in n?n._value:n.value}function Y1(n,e){const t=e?"_trueValue":"_falseValue";return t in n?n[t]:e}const gM=["ctrl","shift","alt","meta"],vM={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>gM.some(t=>n[`${t}Key`]&&!e.includes(t))},tt=(n,e)=>{if(!n)return n;const t=n._withMods||(n._withMods={}),i=e.join(".");return t[i]||(t[i]=((s,...r)=>{for(let o=0;o<e.length;o++){const a=vM[e[o]];if(a&&a(s,e))return}return n(s,...r)}))},bM={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Gr=(n,e)=>{const t=n._withKeys||(n._withKeys={}),i=e.join(".");return t[i]||(t[i]=(s=>{if(!("key"in s))return;const r=Qr(s.key);if(e.some(o=>o===r||bM[o]===r))return n(s)}))},yM=Ei({patchProp:hM},z_);let Hv;function xM(){return Hv||(Hv=A_(yM))}const wM=((...n)=>{const e=xM().createApp(...n),{mount:t}=e;return e.mount=i=>{const s=CM(i);if(!s)return;const r=e._component;!dt(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=t(s,!1,SM(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e});function SM(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function CM(n){return ii(n)?document.querySelector(n):n}/*!
|
||||
* pinia v4.0.3
|
||||
* (c) 2026 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/let z1;const Zu=n=>z1=n,j1=Symbol();function Gv(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}function AM(){const n=ag(!0),e=n.run(()=>$e({}));let t=[],i=[];const s=Ur({install(r){Zu(s),s._a=r,r.provide(j1,s),r.config.globalProperties.$pinia=s,i.forEach(o=>t.push(o)),i=[]},use(r){return this._a?t.push(r):i.push(r),this},_p:t,_a:null,_e:n,_s:new Map,state:e});return s}const Lp=()=>{};function Wv(n,e,t,i=Lp){n.add(e);const s=()=>{n.delete(e)&&i()};return!t&&lg()&&Ux(s),s}function ia(n,...e){n.forEach(t=>{t(...e)})}const TM=n=>n(),qv=Symbol(),Lh=Symbol();function Dp(n,e){n instanceof Map&&e instanceof Map?e.forEach((t,i)=>n.set(i,t)):n instanceof Set&&e instanceof Set&&e.forEach(n.add,n);for(const t in e){if(!Object.hasOwn(e,t))continue;const i=e[t],s=n[t];Gv(s)&&Gv(i)&&Object.hasOwn(n,t)&&!Qt(i)&&!or(i)?n[t]=Dp(s,i):n[t]=i}return n}const EM=Symbol();function _M(n){return!n||typeof n!="object"||!Object.hasOwn(n,EM)}const{assign:Er}=Object;function MM(n){return!!(Qt(n)&&n.effect)}function PM(n,e,t,i){const{state:s,actions:r,getters:o}=e,a=t.state.value[n];let c;function l(){a||(t.state.value[n]=s?s():{});const d=TE(t.state.value[n]);return Er(d,r,Object.keys(o||{}).reduce((u,h)=>(u[h]=Ur(Fe(()=>{Zu(t);const f=t._s.get(n);return o[h].call(f,f)})),u),{}))}return c=H1(n,l,e,t,i,!0),c}function H1(n,e,t={},i,s,r){let o;const a=Er({actions:{}},t),c={deep:!0};let l,d,u=new Set,h=new Set,f;const p=i.state.value[n];!r&&!p&&(i.state.value[n]={});let m;function g(S){let E;l=d=!1,typeof S=="function"?(S(i.state.value[n]),E={type:"patch function",storeId:n,events:f}):(Dp(i.state.value[n],S),E={type:"patch object",payload:S,storeId:n,events:f});const _=m=Symbol();zu().then(()=>{m===_&&(l=!0)}),d=!0,ia(u,E,i.state.value[n])}const v=r?function(){const{state:E}=t,_=E?E():{};this.$patch(I=>{Er(I,_)})}:Lp;function y(){o.stop(),u.clear(),h.clear(),i._s.delete(n)}const b=(S,E="")=>{if(qv in S)return S[Lh]=E,S;const _=function(){Zu(i);const I=Array.from(arguments),M=new Set,k=new Set;function B(V){M.add(V)}function D(V){k.add(V)}ia(h,{args:I,name:_[Lh],store:C,after:B,onError:D});let G;try{G=S.apply(this&&this.$id===n?this:C,I)}catch(V){throw ia(k,V),V}return G instanceof Promise?G.then(V=>(ia(M,V),V)).catch(V=>(ia(k,V),Promise.reject(V))):(ia(M,G),G)};return _[qv]=!0,_[Lh]=E,_},x={_p:i,$id:n,$onAction:Wv.bind(null,h),$patch:g,$reset:v,$subscribe(S,E={}){if(u.has(S))return Lp;const _=Wv(u,S,E.detached,()=>I()),I=o.run(()=>ei(()=>i.state.value[n],M=>{(E.flush==="sync"?d:l)&&S({storeId:n,type:"direct",events:f},M)},Er({},c,E)));return _},$dispose:y},C=zo(x);i._s.set(n,C);const T=(i._a&&i._a.runWithContext||TM)(()=>i._e.run(()=>(o=ag()).run(()=>e({action:b}))));for(const S in T){const E=T[S];Qt(E)&&!MM(E)||or(E)?r||(p&&_M(E)&&(Qt(E)?E.value=p[S]:((E instanceof Set||E instanceof Map)&&E.clear(),Dp(E,p[S]))),i.state.value[n][S]=E):typeof E=="function"&&(T[S]=b(E,S),a.actions[S]=E)}return Er(C,T),Er(_t(C),T),Object.defineProperty(C,"$state",{get:()=>i.state.value[n],set:S=>{g(E=>{Er(E,S)})}}),i._p.forEach(S=>{const E=o.run(()=>S({store:C,app:i._a,pinia:i,options:a}));Er(C,E)}),p&&r&&t.hydrate&&t.hydrate(C.$state,p),l=!0,d=!0,C}/*! #__NO_SIDE_EFFECTS__ */function IM(n,e,t){let i;const s=typeof e=="function";i=s?t:e;function r(o,a){const c=DE();return o=o||(c?Ro(j1,null):null),o&&Zu(o),o=z1,o._s.has(n)||(s?H1(n,e,i,o):PM(n,i,o)),o._s.get(n)}return r.$id=n,r}var jo=(n=>(n[n.WEBGL_LEGACY=0]="WEBGL_LEGACY",n[n.WEBGL=1]="WEBGL",n[n.WEBGL2=2]="WEBGL2",n))(jo||{}),G1=(n=>(n[n.UNKNOWN=0]="UNKNOWN",n[n.WEBGL=1]="WEBGL",n[n.CANVAS=2]="CANVAS",n))(G1||{}),Op=(n=>(n[n.COLOR=16384]="COLOR",n[n.DEPTH=256]="DEPTH",n[n.STENCIL=1024]="STENCIL",n))(Op||{}),Qe=(n=>(n[n.NORMAL=0]="NORMAL",n[n.ADD=1]="ADD",n[n.MULTIPLY=2]="MULTIPLY",n[n.SCREEN=3]="SCREEN",n[n.OVERLAY=4]="OVERLAY",n[n.DARKEN=5]="DARKEN",n[n.LIGHTEN=6]="LIGHTEN",n[n.COLOR_DODGE=7]="COLOR_DODGE",n[n.COLOR_BURN=8]="COLOR_BURN",n[n.HARD_LIGHT=9]="HARD_LIGHT",n[n.SOFT_LIGHT=10]="SOFT_LIGHT",n[n.DIFFERENCE=11]="DIFFERENCE",n[n.EXCLUSION=12]="EXCLUSION",n[n.HUE=13]="HUE",n[n.SATURATION=14]="SATURATION",n[n.COLOR=15]="COLOR",n[n.LUMINOSITY=16]="LUMINOSITY",n[n.NORMAL_NPM=17]="NORMAL_NPM",n[n.ADD_NPM=18]="ADD_NPM",n[n.SCREEN_NPM=19]="SCREEN_NPM",n[n.NONE=20]="NONE",n[n.SRC_OVER=0]="SRC_OVER",n[n.SRC_IN=21]="SRC_IN",n[n.SRC_OUT=22]="SRC_OUT",n[n.SRC_ATOP=23]="SRC_ATOP",n[n.DST_OVER=24]="DST_OVER",n[n.DST_IN=25]="DST_IN",n[n.DST_OUT=26]="DST_OUT",n[n.DST_ATOP=27]="DST_ATOP",n[n.ERASE=26]="ERASE",n[n.SUBTRACT=28]="SUBTRACT",n[n.XOR=29]="XOR",n))(Qe||{}),Cs=(n=>(n[n.POINTS=0]="POINTS",n[n.LINES=1]="LINES",n[n.LINE_LOOP=2]="LINE_LOOP",n[n.LINE_STRIP=3]="LINE_STRIP",n[n.TRIANGLES=4]="TRIANGLES",n[n.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",n[n.TRIANGLE_FAN=6]="TRIANGLE_FAN",n))(Cs||{}),Pe=(n=>(n[n.RGBA=6408]="RGBA",n[n.RGB=6407]="RGB",n[n.RG=33319]="RG",n[n.RED=6403]="RED",n[n.RGBA_INTEGER=36249]="RGBA_INTEGER",n[n.RGB_INTEGER=36248]="RGB_INTELine truncated
|
||||
*/let z1;const Zu=n=>z1=n,j1=Symbol();function Gv(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}function AM(){const n=ag(!0),e=n.run(()=>$e({}));let t=[],i=[];const s=Ur({install(r){Zu(s),s._a=r,r.provide(j1,s),r.config.globalProperties.$pinia=s,i.forEach(o=>t.push(o)),i=[]},use(r){return this._a?t.push(r):i.push(r),this},_p:t,_a:null,_e:n,_s:new Map,state:e});return s}const Lp=()=>{};function Wv(n,e,t,i=Lp){n.add(e);const s=()=>{n.delete(e)&&i()};return!t&&lg()&&Ux(s),s}function ia(n,...e){n.forEach(t=>{t(...e)})}const TM=n=>n(),qv=Symbol(),Lh=Symbol();function Dp(n,e){n instanceof Map&&e instanceof Map?e.forEach((t,i)=>n.set(i,t)):n instanceof Set&&e instanceof Set&&e.forEach(n.add,n);for(const t in e){if(!Object.hasOwn(e,t))continue;const i=e[t],s=n[t];Gv(s)&&Gv(i)&&Object.hasOwn(n,t)&&!Qt(i)&&!or(i)?n[t]=Dp(s,i):n[t]=i}return n}const EM=Symbol();function _M(n){return!n||typeof n!="object"||!Object.hasOwn(n,EM)}const{assign:Er}=Object;function MM(n){return!!(Qt(n)&&n.effect)}function PM(n,e,t,i){const{state:s,actions:r,getters:o}=e,a=t.state.value[n];let c;function l(){a||(t.state.value[n]=s?s():{});const d=TE(t.state.value[n]);return Er(d,r,Object.keys(o||{}).reduce((u,h)=>(u[h]=Ur(Fe(()=>{Zu(t);const f=t._s.get(n);return o[h].call(f,f)})),u),{}))}return c=H1(n,l,e,t,i,!0),c}function H1(n,e,t={},i,s,r){let o;const a=Er({actions:{}},t),c={deep:!0};let l,d,u=new Set,h=new Set,f;const p=i.state.value[n];!r&&!p&&(i.state.value[n]={});let m;function g(S){let E;l=d=!1,typeof S=="function"?(S(i.state.value[n]),E={type:"patch function",storeId:n,events:f}):(Dp(i.state.value[n],S),E={type:"patch object",payload:S,storeId:n,events:f});const _=m=Symbol();zu().then(()=>{m===_&&(l=!0)}),d=!0,ia(u,E,i.state.value[n])}const v=r?function(){const{state:E}=t,_=E?E():{};this.$patch(I=>{Er(I,_)})}:Lp;function y(){o.stop(),u.clear(),h.clear(),i._s.delete(n)}const b=(S,E="")=>{if(qv in S)return S[Lh]=E,S;const _=function(){Zu(i);const I=Array.from(arguments),M=new Set,k=new Set;function B(V){M.add(V)}function D(V){k.add(V)}ia(h,{args:I,name:_[Lh],store:C,after:B,onError:D});let G;try{G=S.apply(this&&this.$id===n?this:C,I)}catch(V){throw ia(k,V),V}return G instanceof Promise?G.then(V=>(ia(M,V),V)).catch(V=>(ia(k,V),Promise.reject(V))):(ia(M,G),G)};return _[qv]=!0,_[Lh]=E,_},w={_p:i,$id:n,$onAction:Wv.bind(null,h),$patch:g,$reset:v,$subscribe(S,E={}){if(u.has(S))return Lp;const _=Wv(u,S,E.detached,()=>I()),I=o.run(()=>ei(()=>i.state.value[n],M=>{(E.flush==="sync"?d:l)&&S({storeId:n,type:"direct",events:f},M)},Er({},c,E)));return _},$dispose:y},C=zo(w);i._s.set(n,C);const T=(i._a&&i._a.runWithContext||TM)(()=>i._e.run(()=>(o=ag()).run(()=>e({action:b}))));for(const S in T){const E=T[S];Qt(E)&&!MM(E)||or(E)?r||(p&&_M(E)&&(Qt(E)?E.value=p[S]:((E instanceof Set||E instanceof Map)&&E.clear(),Dp(E,p[S]))),i.state.value[n][S]=E):typeof E=="function"&&(T[S]=b(E,S),a.actions[S]=E)}return Er(C,T),Er(_t(C),T),Object.defineProperty(C,"$state",{get:()=>i.state.value[n],set:S=>{g(E=>{Er(E,S)})}}),i._p.forEach(S=>{const E=o.run(()=>S({store:C,app:i._a,pinia:i,options:a}));Er(C,E)}),p&&r&&t.hydrate&&t.hydrate(C.$state,p),l=!0,d=!0,C}/*! #__NO_SIDE_EFFECTS__ */function IM(n,e,t){let i;const s=typeof e=="function";i=s?t:e;function r(o,a){const c=DE();return o=o||(c?Ro(j1,null):null),o&&Zu(o),o=z1,o._s.has(n)||(s?H1(n,e,i,o):PM(n,i,o)),o._s.get(n)}return r.$id=n,r}var jo=(n=>(n[n.WEBGL_LEGACY=0]="WEBGL_LEGACY",n[n.WEBGL=1]="WEBGL",n[n.WEBGL2=2]="WEBGL2",n))(jo||{}),G1=(n=>(n[n.UNKNOWN=0]="UNKNOWN",n[n.WEBGL=1]="WEBGL",n[n.CANVAS=2]="CANVAS",n))(G1||{}),Op=(n=>(n[n.COLOR=16384]="COLOR",n[n.DEPTH=256]="DEPTH",n[n.STENCIL=1024]="STENCIL",n))(Op||{}),Qe=(n=>(n[n.NORMAL=0]="NORMAL",n[n.ADD=1]="ADD",n[n.MULTIPLY=2]="MULTIPLY",n[n.SCREEN=3]="SCREEN",n[n.OVERLAY=4]="OVERLAY",n[n.DARKEN=5]="DARKEN",n[n.LIGHTEN=6]="LIGHTEN",n[n.COLOR_DODGE=7]="COLOR_DODGE",n[n.COLOR_BURN=8]="COLOR_BURN",n[n.HARD_LIGHT=9]="HARD_LIGHT",n[n.SOFT_LIGHT=10]="SOFT_LIGHT",n[n.DIFFERENCE=11]="DIFFERENCE",n[n.EXCLUSION=12]="EXCLUSION",n[n.HUE=13]="HUE",n[n.SATURATION=14]="SATURATION",n[n.COLOR=15]="COLOR",n[n.LUMINOSITY=16]="LUMINOSITY",n[n.NORMAL_NPM=17]="NORMAL_NPM",n[n.ADD_NPM=18]="ADD_NPM",n[n.SCREEN_NPM=19]="SCREEN_NPM",n[n.NONE=20]="NONE",n[n.SRC_OVER=0]="SRC_OVER",n[n.SRC_IN=21]="SRC_IN",n[n.SRC_OUT=22]="SRC_OUT",n[n.SRC_ATOP=23]="SRC_ATOP",n[n.DST_OVER=24]="DST_OVER",n[n.DST_IN=25]="DST_IN",n[n.DST_OUT=26]="DST_OUT",n[n.DST_ATOP=27]="DST_ATOP",n[n.ERASE=26]="ERASE",n[n.SUBTRACT=28]="SUBTRACT",n[n.XOR=29]="XOR",n))(Qe||{}),Cs=(n=>(n[n.POINTS=0]="POINTS",n[n.LINES=1]="LINES",n[n.LINE_LOOP=2]="LINE_LOOP",n[n.LINE_STRIP=3]="LINE_STRIP",n[n.TRIANGLES=4]="TRIANGLES",n[n.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",n[n.TRIANGLE_FAN=6]="TRIANGLE_FAN",n))(Cs||{}),Pe=(n=>(n[n.RGBA=6408]="RGBA",n[n.RGB=6407]="RGB",n[n.RG=33319]="RG",n[n.RED=6403]="RED",n[n.RGBA_INTEGER=36249]="RGBA_INTEGER",n[n.RGB_INTEGER=36248]="RGB_INTELine truncated
|
||||
`)>=0)return!1;return!0}function Te(ce,he){var nt;if(ce.indent===" ")nt=" ";else if(typeof ce.indent=="number"&&ce.indent>0)nt=E.call(Array(ce.indent+1)," ");else return null;return{base:nt,prev:E.call(Array(he+1),nt)}}function vi(ce,he){if(ce.length===0)return"";var nt=`
|
||||
`+he.prev+he.base;return nt+E.call(ce,","+nt)+`
|
||||
`+he.prev}function lt(ce,he){var nt=le(ce),Ft=[];if(nt){Ft.length=ce.length;for(var Nt=0;Nt<ce.length;Nt++)Ft[Nt]=O(ce,Nt)?he(ce[Nt],ce):""}var ct=typeof k=="function"?k(ce):[],rn;if(D){rn={};for(var Nn=0;Nn<ct.length;Nn++)rn["$"+ct[Nn]]=ct[Nn]}for(var jt in ce)O(ce,jt)&&(nt&&String(Number(jt))===jt&&jt<ce.length||D&&rn["$"+jt]instanceof Symbol||(T.call(/[^\w$]/,jt)?Ft.push(he(jt,ce)+": "+he(ce[jt],ce)):Ft.push(jt+": "+he(ce[jt],ce))));if(typeof k=="function")for(var $i=0;$i<ct.length;$i++)V.call(ce,ct[$i])&&Ft.push("["+he(ct[$i])+"]: "+he(ce[ct[$i]],ce));return Ft}return Bh}var Uh,fb;function jM(){if(fb)return Uh;fb=1;var n=Qu(),e=Qa(),t=function(a,c,l){for(var d=a,u;(u=d.next)!=null;d=u)if(u.key===c)return d.next=u.next,l||(u.next=a.next,a.next=u),u},i=function(a,c){if(a){var l=t(a,c);return l&&l.value}},s=function(a,c,l){var d=t(a,c);d?d.value=l:a.next={key:c,next:a.next,value:l}},r=function(a,c){return a?!!t(a,c):!1},o=function(a,c){if(a)return t(a,c,!0)};return Uh=function(){var c,l={assert:function(d){if(!l.has(d))throw new e("Side channel does not contain "+n(d))},delete:function(d){var u=o(c,d);return u&&c&&!c.next&&(c=void 0),!!u},get:function(d){return i(c,d)},has:function(d){return r(c,d)},set:function(d,u){c||(c={next:void 0}),s(c,d,u)}};return l},Uh}var Vh,pb;function q1(){return pb||(pb=1,Vh=Object),Vh}var Xh,mb;function HM(){return mb||(mb=1,Xh=Error),Xh}var Yh,gb;function GM(){return gb||(gb=1,Yh=EvalError),Yh}var zh,vb;function WM(){return vb||(vb=1,zh=RangeError),zh}var jh,bb;function qM(){return bb||(bb=1,jh=ReferenceError),jh}var Hh,yb;function KM(){return yb||(yb=1,Hh=SyntaxError),Hh}var Gh,xb;function JM(){return xb||(xb=1,Gh=URIError),Gh}var Wh,wb;function ZM(){return wb||(wb=1,Wh=Math.abs),Wh}var qh,Sb;function QM(){return Sb||(Sb=1,qh=Math.floor),qh}var Kh,Cb;function eP(){return Cb||(Cb=1,Kh=Math.max),Kh}var Jh,Ab;function tP(){return Ab||(Ab=1,Jh=Math.min),Jh}var Zh,Tb;function iP(){return Tb||(Tb=1,Zh=Math.pow),Zh}var Qh,Eb;function nP(){return Eb||(Eb=1,Qh=Math.round),Qh}var ef,_b;function sP(){return _b||(_b=1,ef=Number.isNaN||function(e){return e!==e}),ef}var tf,Mb;function rP(){if(Mb)return tf;Mb=1;var n=sP();return tf=function(t){return n(t)||t===0?t:t<0?-1:1},tf}var nf,Pb;function oP(){return Pb||(Pb=1,nf=Object.getOwnPropertyDescriptor),nf}var sf,Ib;function K1(){if(Ib)return sf;Ib=1;var n=oP();if(n)try{n([],"length")}catch{n=null}return sf=n,sf}var rf,kb;function J1(){if(kb)return rf;kb=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return rf=n,rf}var of,Rb;function aP(){return Rb||(Rb=1,of=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var s=42;e[t]=s;for(var r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==s||a.enumerable!==!0)return!1}return!0}),of}var af,Fb;function lP(){if(Fb)return af;Fb=1;var n=typeof Symbol<"u"&&Symbol,e=aP();return af=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},af}var lf,Lb;function Z1(){return Lb||(Lb=1,lf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),lf}var cf,Db;function Q1(){if(Db)return cf;Db=1;var n=q1();return cf=n.getPrototypeOf||null,cf}var df,Ob;function cP(){if(Ob)return df;Ob=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",s=function(c,l){for(var d=[],u=0;u<c.length;u+=1)d[u]=c[u];for(var h=0;h<l.length;h+=1)d[h+c.length]=l[h];return d},r=function(c,l){for(var d=[],u=l,h=0;u<c.length;u+=1,h+=1)d[h]=c[u];return d},o=function(a,c){for(var l="",d=0;d<a.length;d+=1)l+=a[d],d+1<a.length&&(l+=c);return l};return df=function(c){var l=this;if(typeof l!="function"||e.apply(l)!==i)throw new TypeError(n+l);for(var d=r(arguments,1),u,h=function(){if(this instanceof u){var v=l.apply(this,s(d,arguments));return Object(v)===v?v:this}return l.apply(c,s(d,arguments))},f=t(0,l.length-d.length),p=[],m=0;m<f;m++)p[m]="$"+m;if(u=Function("binder","return function ("+o(p,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var g=function(){};g.prototype=l.prototype,u.prototype=new g,g.prototype=null}return u},df}var uf,Nb;function eh(){if(Nb)return uf;Nb=1;var n=cP();return uf=Function.prototype.bind||n,uf}var hf,$b;function Sg(){return $b||($b=1,hf=Function.prototype.call),hf}var ff,Bb;function ew(){return Bb||(Bb=1,ff=Function.pro
Line truncated
|
||||
`," "],o=["{","}","|","\\","^","`"].concat(r),a=["'"].concat(o),c=["%","/","?",";","#"].concat(a),l=["/","?","#"],d=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},p={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=bP();function v(C,T,S){if(C&&typeof C=="object"&&C instanceof e)return C;var E=new e;return E.parse(C,T,S),E}e.prototype.parse=function(C,T,S){if(typeof C!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof C);var E=C.indexOf("?"),_=E!==-1&&E<C.indexOf("#")?"?":"#",I=C.split(_),M=/\\/g;I[0]=I[0].replace(M,"/"),C=I.join(_);var k=C;if(k=k.trim(),!S&&C.split("#").length===1){var B=s.exec(k);if(B)return this.path=k,this.href=k,this.pathname=B[1],B[2]?(this.search=B[2],T?this.query=g.parse(this.search.substr(1)):this.query=this.search.substr(1)):T&&(this.search="",this.query={}),this}var D=t.exec(k);if(D){D=D[0];var G=D.toLowerCase();this.protocol=G,k=k.substr(D.length)}if(S||D||k.match(/^\/\/[^@/]+@[^@/]+/)){var V=k.substr(0,2)==="//";V&&!(D&&p[D])&&(k=k.substr(2),this.slashes=!0)}if(!p[D]&&(V||D&&!m[D])){for(var Y=-1,L=0;L<l.length;L++){var N=k.indexOf(l[L]);N!==-1&&(Y===-1||N<Y)&&(Y=N)}var F,$;Y===-1?$=k.lastIndexOf("@"):$=k.lastIndexOf("@",Y),$!==-1&&(F=k.slice(0,$),k=k.slice($+1),this.auth=decodeURIComponent(F)),Y=-1;for(var L=0;L<c.length;L++){var N=k.indexOf(c[L]);N!==-1&&(Y===-1||N<Y)&&(Y=N)}Y===-1&&(Y=k.length),this.host=k.slice(0,Y),k=k.slice(Y),this.parseHost(),this.hostname=this.hostname||"";var X=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!X)for(var z=this.hostname.split(/\./),L=0,K=z.length;L<K;L++){var J=z[L];if(J&&!J.match(u)){for(var oe="",le=0,ve=J.length;le<ve;le++)J.charCodeAt(le)>127?oe+="x":oe+=J[le];if(!oe.match(u)){var Se=z.slice(0,L),fe=z.slice(L+1),be=J.match(h);be&&(Se.push(be[1]),fe.unshift(be[2])),fe.length&&(k="/"+fe.join(".")+k),this.hostname=Se.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),X||(this.hostname=n.toASCII(this.hostname));var q=this.port?":"+this.port:"",Z=this.hostname||"";this.host=Z+q,this.href+=this.host,X&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),k[0]!=="/"&&(k="/"+k))}if(!f[G])for(var L=0,K=a.length;L<K;L++){var se=a[L];if(k.indexOf(se)!==-1){var j=encodeURIComponent(se);j===se&&(j=escape(se)),k=k.split(se).join(j)}}var H=k.indexOf("#");H!==-1&&(this.hash=k.substr(H),k=k.slice(0,H));var O=k.indexOf("?");if(O!==-1?(this.search=k.substr(O),this.query=k.substr(O+1),T&&(this.query=g.parse(this.query)),k=k.slice(0,O)):T&&(this.search="",this.query={}),k&&(this.pathname=k),m[G]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var q=this.pathname||"",U=this.search||"";this.path=q+U}return this.href=this.format(),this};function y(C){return typeof C=="string"&&(C=v(C)),C instanceof e?C.format():e.prototype.format.call(C)}e.prototype.format=function(){var C=this.auth||"";C&&(C=encodeURIComponent(C),C=C.replace(/%3A/i,":"),C+="@");var T=this.protocol||"",S=this.pathname||"",E=this.hash||"",_=!1,I="";this.host?_=C+this.host:this.hostname&&(_=C+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(_+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(I=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var M=this.search||I&&"?"+I||"";return T&&T.substr(-1)!==":"&&(T+=":"),this.slashes||(!T||m[T])&&_!==!1?(_="//"+(_||""),S&&S.charAt(0)!=="/"&&(S="/"+S)):_||(_=""),E&&E.charAt(0)!=="#"&&(E="#"+E),M&&M.charAt(0)!=="?"&&(M="?"+M),S=S.replace(/[?#]/g,function(k){return encodeURIComponent(k)}),M=M.replace("#","%23"),T+_+S+M+E};function b(C,T){return v(C,!1,!0).resolve(T)}e.prototype.resolve=function(C){return this.resolveObject(v(C,!1,!0)).format()};function x(C,T){return C?v(C,!1,!0).resolveObject(T):T}return e.prototype.resolveObject=function(C){if(typeof C=="string"){var T=new e;T.parse(C,!1,!0),C=T}for(var S=new e,E=Object.keys(this),_=0;_<E.length;_++){var I=E[_];S[I]=this[I]}if(S.hash=C.hash,C.href==="")return S.href=S.format(),S;if(C.slashes&&!C.protocol){for(var M=Object.keys(C),k=0;k<M.length;k++){var B=M[k];B!=="protocol"&&(S[B]=C[B])}return m[S.protocol]&&S.hostname&&!S.pathname&&(S.pathname="/",S.path=S.pathname),S.href=S.format(),S}if(C.protocol&&C.protocol!==S.protocol){if(!m[C.protocol]){for(var D=Object.keys(C),G=0;G<D.length;G++){var V=D[G];S[V]=C[V]}return S.href=S.format(),S}if(S.protocol=C.protocol,!C.host&&!p[C.protocol]){for(var K=(C.pathname||"").split("/");K.length&&!(C.host=K.shift()););C.host||(C.host=""),C.hostname||(C.hostname=""),K[0]!==""&&K.unshift(""),K.length<2&&K.unshift(""),S.pathname=K.join("/")}else S.pathname=C.pathname;if(S.search=C.search,S.query=C.query,S.host=C.host||"",S.auth=C.auth,S.hostname=C.hostname||C.host,S.port=C.port,S.pathname||S.search){var Y=S
Line truncated
|
||||
`+he.prev}function lt(ce,he){var nt=le(ce),Ft=[];if(nt){Ft.length=ce.length;for(var Nt=0;Nt<ce.length;Nt++)Ft[Nt]=O(ce,Nt)?he(ce[Nt],ce):""}var ct=typeof k=="function"?k(ce):[],rn;if(D){rn={};for(var Nn=0;Nn<ct.length;Nn++)rn["$"+ct[Nn]]=ct[Nn]}for(var jt in ce)O(ce,jt)&&(nt&&String(Number(jt))===jt&&jt<ce.length||D&&rn["$"+jt]instanceof Symbol||(T.call(/[^\w$]/,jt)?Ft.push(he(jt,ce)+": "+he(ce[jt],ce)):Ft.push(jt+": "+he(ce[jt],ce))));if(typeof k=="function")for(var $i=0;$i<ct.length;$i++)V.call(ce,ct[$i])&&Ft.push("["+he(ct[$i])+"]: "+he(ce[ct[$i]],ce));return Ft}return Bh}var Uh,fb;function jM(){if(fb)return Uh;fb=1;var n=Qu(),e=Qa(),t=function(a,c,l){for(var d=a,u;(u=d.next)!=null;d=u)if(u.key===c)return d.next=u.next,l||(u.next=a.next,a.next=u),u},i=function(a,c){if(a){var l=t(a,c);return l&&l.value}},s=function(a,c,l){var d=t(a,c);d?d.value=l:a.next={key:c,next:a.next,value:l}},r=function(a,c){return a?!!t(a,c):!1},o=function(a,c){if(a)return t(a,c,!0)};return Uh=function(){var c,l={assert:function(d){if(!l.has(d))throw new e("Side channel does not contain "+n(d))},delete:function(d){var u=o(c,d);return u&&c&&!c.next&&(c=void 0),!!u},get:function(d){return i(c,d)},has:function(d){return r(c,d)},set:function(d,u){c||(c={next:void 0}),s(c,d,u)}};return l},Uh}var Vh,pb;function q1(){return pb||(pb=1,Vh=Object),Vh}var Xh,mb;function HM(){return mb||(mb=1,Xh=Error),Xh}var Yh,gb;function GM(){return gb||(gb=1,Yh=EvalError),Yh}var zh,vb;function WM(){return vb||(vb=1,zh=RangeError),zh}var jh,bb;function qM(){return bb||(bb=1,jh=ReferenceError),jh}var Hh,yb;function KM(){return yb||(yb=1,Hh=SyntaxError),Hh}var Gh,xb;function JM(){return xb||(xb=1,Gh=URIError),Gh}var Wh,wb;function ZM(){return wb||(wb=1,Wh=Math.abs),Wh}var qh,Sb;function QM(){return Sb||(Sb=1,qh=Math.floor),qh}var Kh,Cb;function eP(){return Cb||(Cb=1,Kh=Math.max),Kh}var Jh,Ab;function tP(){return Ab||(Ab=1,Jh=Math.min),Jh}var Zh,Tb;function iP(){return Tb||(Tb=1,Zh=Math.pow),Zh}var Qh,Eb;function nP(){return Eb||(Eb=1,Qh=Math.round),Qh}var ef,_b;function sP(){return _b||(_b=1,ef=Number.isNaN||function(e){return e!==e}),ef}var tf,Mb;function rP(){if(Mb)return tf;Mb=1;var n=sP();return tf=function(t){return n(t)||t===0?t:t<0?-1:1},tf}var nf,Pb;function oP(){return Pb||(Pb=1,nf=Object.getOwnPropertyDescriptor),nf}var sf,Ib;function K1(){if(Ib)return sf;Ib=1;var n=oP();if(n)try{n([],"length")}catch{n=null}return sf=n,sf}var rf,kb;function J1(){if(kb)return rf;kb=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return rf=n,rf}var of,Rb;function aP(){return Rb||(Rb=1,of=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var s=42;e[t]=s;for(var r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==s||a.enumerable!==!0)return!1}return!0}),of}var af,Fb;function lP(){if(Fb)return af;Fb=1;var n=typeof Symbol<"u"&&Symbol,e=aP();return af=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},af}var lf,Lb;function Z1(){return Lb||(Lb=1,lf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),lf}var cf,Db;function Q1(){if(Db)return cf;Db=1;var n=q1();return cf=n.getPrototypeOf||null,cf}var df,Ob;function cP(){if(Ob)return df;Ob=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",s=function(c,l){for(var d=[],u=0;u<c.length;u+=1)d[u]=c[u];for(var h=0;h<l.length;h+=1)d[h+c.length]=l[h];return d},r=function(c,l){for(var d=[],u=l,h=0;u<c.length;u+=1,h+=1)d[h]=c[u];return d},o=function(a,c){for(var l="",d=0;d<a.length;d+=1)l+=a[d],d+1<a.length&&(l+=c);return l};return df=function(c){var l=this;if(typeof l!="function"||e.apply(l)!==i)throw new TypeError(n+l);for(var d=r(arguments,1),u,h=function(){if(this instanceof u){var v=l.apply(this,s(d,arguments));return Object(v)===v?v:this}return l.apply(c,s(d,arguments))},f=t(0,l.length-d.length),p=[],m=0;m<f;m++)p[m]="$"+m;if(u=Function("binder","return function ("+o(p,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var g=function(){};g.prototype=l.prototype,u.prototype=new g,g.prototype=null}return u},df}var uf,Nb;function eh(){if(Nb)return uf;Nb=1;var n=cP();return uf=Function.prototype.bind||n,uf}var hf,$b;function Sg(){return $b||($b=1,hf=Function.prototype.call),hf}var ff,Bb;function ew(){return Bb||(Bb=1,ff=Function.pro
Line truncated
|
||||
`," "],o=["{","}","|","\\","^","`"].concat(r),a=["'"].concat(o),c=["%","/","?",";","#"].concat(a),l=["/","?","#"],d=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},p={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=bP();function v(C,T,S){if(C&&typeof C=="object"&&C instanceof e)return C;var E=new e;return E.parse(C,T,S),E}e.prototype.parse=function(C,T,S){if(typeof C!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof C);var E=C.indexOf("?"),_=E!==-1&&E<C.indexOf("#")?"?":"#",I=C.split(_),M=/\\/g;I[0]=I[0].replace(M,"/"),C=I.join(_);var k=C;if(k=k.trim(),!S&&C.split("#").length===1){var B=s.exec(k);if(B)return this.path=k,this.href=k,this.pathname=B[1],B[2]?(this.search=B[2],T?this.query=g.parse(this.search.substr(1)):this.query=this.search.substr(1)):T&&(this.search="",this.query={}),this}var D=t.exec(k);if(D){D=D[0];var G=D.toLowerCase();this.protocol=G,k=k.substr(D.length)}if(S||D||k.match(/^\/\/[^@/]+@[^@/]+/)){var V=k.substr(0,2)==="//";V&&!(D&&p[D])&&(k=k.substr(2),this.slashes=!0)}if(!p[D]&&(V||D&&!m[D])){for(var Y=-1,L=0;L<l.length;L++){var N=k.indexOf(l[L]);N!==-1&&(Y===-1||N<Y)&&(Y=N)}var F,$;Y===-1?$=k.lastIndexOf("@"):$=k.lastIndexOf("@",Y),$!==-1&&(F=k.slice(0,$),k=k.slice($+1),this.auth=decodeURIComponent(F)),Y=-1;for(var L=0;L<c.length;L++){var N=k.indexOf(c[L]);N!==-1&&(Y===-1||N<Y)&&(Y=N)}Y===-1&&(Y=k.length),this.host=k.slice(0,Y),k=k.slice(Y),this.parseHost(),this.hostname=this.hostname||"";var X=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!X)for(var z=this.hostname.split(/\./),L=0,K=z.length;L<K;L++){var J=z[L];if(J&&!J.match(u)){for(var oe="",le=0,ve=J.length;le<ve;le++)J.charCodeAt(le)>127?oe+="x":oe+=J[le];if(!oe.match(u)){var Se=z.slice(0,L),fe=z.slice(L+1),be=J.match(h);be&&(Se.push(be[1]),fe.unshift(be[2])),fe.length&&(k="/"+fe.join(".")+k),this.hostname=Se.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),X||(this.hostname=n.toASCII(this.hostname));var q=this.port?":"+this.port:"",Z=this.hostname||"";this.host=Z+q,this.href+=this.host,X&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),k[0]!=="/"&&(k="/"+k))}if(!f[G])for(var L=0,K=a.length;L<K;L++){var se=a[L];if(k.indexOf(se)!==-1){var j=encodeURIComponent(se);j===se&&(j=escape(se)),k=k.split(se).join(j)}}var H=k.indexOf("#");H!==-1&&(this.hash=k.substr(H),k=k.slice(0,H));var O=k.indexOf("?");if(O!==-1?(this.search=k.substr(O),this.query=k.substr(O+1),T&&(this.query=g.parse(this.query)),k=k.slice(0,O)):T&&(this.search="",this.query={}),k&&(this.pathname=k),m[G]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var q=this.pathname||"",U=this.search||"";this.path=q+U}return this.href=this.format(),this};function y(C){return typeof C=="string"&&(C=v(C)),C instanceof e?C.format():e.prototype.format.call(C)}e.prototype.format=function(){var C=this.auth||"";C&&(C=encodeURIComponent(C),C=C.replace(/%3A/i,":"),C+="@");var T=this.protocol||"",S=this.pathname||"",E=this.hash||"",_=!1,I="";this.host?_=C+this.host:this.hostname&&(_=C+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(_+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(I=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var M=this.search||I&&"?"+I||"";return T&&T.substr(-1)!==":"&&(T+=":"),this.slashes||(!T||m[T])&&_!==!1?(_="//"+(_||""),S&&S.charAt(0)!=="/"&&(S="/"+S)):_||(_=""),E&&E.charAt(0)!=="#"&&(E="#"+E),M&&M.charAt(0)!=="?"&&(M="?"+M),S=S.replace(/[?#]/g,function(k){return encodeURIComponent(k)}),M=M.replace("#","%23"),T+_+S+M+E};function b(C,T){return v(C,!1,!0).resolve(T)}e.prototype.resolve=function(C){return this.resolveObject(v(C,!1,!0)).format()};function w(C,T){return C?v(C,!1,!0).resolveObject(T):T}return e.prototype.resolveObject=function(C){if(typeof C=="string"){var T=new e;T.parse(C,!1,!0),C=T}for(var S=new e,E=Object.keys(this),_=0;_<E.length;_++){var I=E[_];S[I]=this[I]}if(S.hash=C.hash,C.href==="")return S.href=S.format(),S;if(C.slashes&&!C.protocol){for(var M=Object.keys(C),k=0;k<M.length;k++){var B=M[k];B!=="protocol"&&(S[B]=C[B])}return m[S.protocol]&&S.hostname&&!S.pathname&&(S.pathname="/",S.path=S.pathname),S.href=S.format(),S}if(C.protocol&&C.protocol!==S.protocol){if(!m[C.protocol]){for(var D=Object.keys(C),G=0;G<D.length;G++){var V=D[G];S[V]=C[V]}return S.href=S.format(),S}if(S.protocol=C.protocol,!C.host&&!p[C.protocol]){for(var K=(C.pathname||"").split("/");K.length&&!(C.host=K.shift()););C.host||(C.host=""),C.hostname||(C.hostname=""),K[0]!==""&&K.unshift(""),K.length<2&&K.unshift(""),S.pathname=K.join("/")}else S.pathname=C.pathname;if(S.search=C.search,S.query=C.query,S.host=C.host||"",S.auth=C.auth,S.hostname=C.hostname||C.host,S.port=C.port,S.pathname||S.search){var Y=S
Line truncated
|
||||
Deprecated since v${n}`):(i=i.split(`
|
||||
`).splice(t).join(`
|
||||
`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${e}
|
||||
Deprecated since v${n}`),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${e}
|
||||
Deprecated since v${n}`),console.warn(i))),n0[e]=!0}function Bn(n){if(typeof n!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(n)}`)}function dl(n){return n.split("?")[0].split("#")[0]}function xP(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wP(n,e,t){return n.replace(new RegExp(xP(e),"g"),t)}function SP(n,e){let t="",i=0,s=-1,r=0,o=-1;for(let a=0;a<=n.length;++a){if(a<n.length)o=n.charCodeAt(a);else{if(o===47)break;o=47}if(o===47){if(!(s===a-1||r===1))if(s!==a-1&&r===2){if(t.length<2||i!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){const c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",i=0):(t=t.slice(0,c),i=t.length-1-t.lastIndexOf("/")),s=a,r=0;continue}}else if(t.length===2||t.length===1){t="",i=0,s=a,r=0;continue}}}else t.length>0?t+=`/${n.slice(s+1,a)}`:t=n.slice(s+1,a),i=a-s-1;s=a,r=0}else o===46&&r!==-1?++r:r=-1}return t}const hi={toPosix(n){return wP(n,"\\","/")},isUrl(n){return/^https?:/.test(this.toPosix(n))},isDataUrl(n){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(n)},isBlobUrl(n){return n.startsWith("blob:")},hasProtocol(n){return/^[^/:]+:/.test(this.toPosix(n))},getProtocol(n){Bn(n),n=this.toPosix(n);const e=/^file:\/\/\//.exec(n);if(e)return e[0];const t=/^[^/:]+:\/{0,2}/.exec(n);return t?t[0]:""},toAbsolute(n,e,t){if(Bn(n),this.isDataUrl(n)||this.isBlobUrl(n))return n;const i=dl(this.toPosix(e??Ve.ADAPTER.getBaseUrl())),s=dl(this.toPosix(t??this.rootname(i)));return n=this.toPosix(n),n.startsWith("/")?hi.join(s,n.slice(1)):this.isAbsolute(n)?n:this.join(i,n)},normalize(n){if(Bn(n),n.length===0)return".";if(this.isDataUrl(n)||this.isBlobUrl(n))return n;n=this.toPosix(n);let e="";const t=n.startsWith("/");this.hasProtocol(n)&&(e=this.rootname(n),n=n.slice(e.length));const i=n.endsWith("/");return n=SP(n),n.length>0&&i&&(n+="/"),t?`/${n}`:e+n},isAbsolute(n){return Bn(n),n=this.toPosix(n),this.hasProtocol(n)?!0:n.startsWith("/")},join(...n){if(n.length===0)return".";let e;for(let t=0;t<n.length;++t){const i=n[t];if(Bn(i),i.length>0)if(e===void 0)e=i;else{const s=n[t-1]??"";this.joinExtensions.includes(this.extname(s).toLowerCase())?e+=`/../${i}`:e+=`/${i}`}}return e===void 0?".":this.normalize(e)},dirname(n){if(Bn(n),n.length===0)return".";n=this.toPosix(n);let e=n.charCodeAt(0);const t=e===47;let i=-1,s=!0;const r=this.getProtocol(n),o=n;n=n.slice(r.length);for(let a=n.length-1;a>=1;--a)if(e=n.charCodeAt(a),e===47){if(!s){i=a;break}}else s=!1;return i===-1?t?"/":this.isUrl(o)?r+n:r:t&&i===1?"//":r+n.slice(0,i)},rootname(n){Bn(n),n=this.toPosix(n);let e="";if(n.startsWith("/")?e="/":e=this.getProtocol(n),this.isUrl(n)){const t=n.indexOf("/",e.length);t!==-1?e=n.slice(0,t):e=n,e.endsWith("/")||(e+="/")}return e},basename(n,e){Bn(n),e&&Bn(e),n=dl(this.toPosix(n));let t=0,i=-1,s=!0,r;if(e!==void 0&&e.length>0&&e.length<=n.length){if(e.length===n.length&&e===n)return"";let o=e.length-1,a=-1;for(r=n.length-1;r>=0;--r){const c=n.charCodeAt(r);if(c===47){if(!s){t=r+1;break}}else a===-1&&(s=!1,a=r+1),o>=0&&(c===e.charCodeAt(o)?--o===-1&&(i=r):(o=-1,i=a))}return t===i?i=a:i===-1&&(i=n.length),n.slice(t,i)}for(r=n.length-1;r>=0;--r)if(n.charCodeAt(r)===47){if(!s){t=r+1;break}}else i===-1&&(s=!1,i=r+1);return i===-1?"":n.slice(t,i)},extname(n){Bn(n),n=dl(this.toPosix(n));let e=-1,t=0,i=-1,s=!0,r=0;for(let o=n.length-1;o>=0;--o){const a=n.charCodeAt(o);if(a===47){if(!s){t=o+1;break}continue}i===-1&&(s=!1,i=o+1),a===46?e===-1?e=o:r!==1&&(r=1):e!==-1&&(r=-1)}return e===-1||i===-1||r===0||r===1&&e===i-1&&e===t+1?"":n.slice(e,i)},parse(n){Bn(n);const e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;n=dl(this.toPosix(n));let t=n.charCodeAt(0);const i=this.isAbsolute(n);let s;e.root=this.rootname(n),i||this.hasProtocol(n)?s=1:s=0;let r=-1,o=0,a=-1,c=!0,l=n.length-1,d=0;for(;l>=s;--l){if(t=n.charCodeAt(l),t===47){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),t===46?r===-1?r=l:d!==1&&(d=1):r!==-1&&(d=-1)}return r===-1||a===-1||d===0||d===1&&r===a-1&&r===o+1?a!==-1&&(o===0&&i?e.base=e.name=n.slice(1,a):e.base=e.name=n.slice(o,a)):(o===0&&i?(e.name=n.slice(1,r),e.base=n.slice(1,a)):(e.name=n.slice(o,r),e.base=n.slice(o,a)),e.ext=n.slice(r,a)),e.dir=this.dirname(n),e},sep:"/",delimiter:":",joinExtensions:[".html"]};let If;async function CP(){return If??(If=(async()=>{var r;const n=document.createElement("canvas").getContext("webgl");if(!n)return ki.UNPACK;const e=await new Promise(o=>{const a=document.createElement("video");a.onloadeddata=()=>o(a),a.onerror=()=>o(null),a.autoplay=!1,a.crossOrigin="anonymous",a.preload="auto",a.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Line truncated
|
||||
`);function zP(n){let e="";for(let t=0;t<n;++t)t>0&&(e+=`
|
||||
else `),t<n-1&&(e+=`if(test == ${t}.0){}`);return e}function jP(n,e){if(n===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const t=e.createShader(e.FRAGMENT_SHADER);for(;;){const i=YP.replace(/%forloop%/gi,zP(n));if(e.shaderSource(t,i),e.compileShader(t),!e.getShaderParameter(t,e.COMPILE_STATUS))n=n/2|0;else break}return n}const Df=0,Of=1,Nf=2,$f=3,Bf=4,Uf=5;class ks{constructor(){this.data=0,this.blendMode=Qe.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<Df)}set blend(e){!!(this.data&1<<Df)!==e&&(this.data^=1<<Df)}get offsets(){return!!(this.data&1<<Of)}set offsets(e){!!(this.data&1<<Of)!==e&&(this.data^=1<<Of)}get culling(){return!!(this.data&1<<Nf)}set culling(e){!!(this.data&1<<Nf)!==e&&(this.data^=1<<Nf)}get depthTest(){return!!(this.data&1<<$f)}set depthTest(e){!!(this.data&1<<$f)!==e&&(this.data^=1<<$f)}get depthMask(){return!!(this.data&1<<Uf)}set depthMask(e){!!(this.data&1<<Uf)!==e&&(this.data^=1<<Uf)}get clockwiseFrontFace(){return!!(this.data&1<<Bf)}set clockwiseFrontFace(e){!!(this.data&1<<Bf)!==e&&(this.data^=1<<Bf)}get blendMode(){return this._blendMode}set blendMode(e){this.blend=e!==Qe.NONE,this._blendMode=e}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}static for2d(){const e=new ks;return e.depthTest=!1,e.blend=!0,e}}ks.prototype.toString=function(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`};const Xp=[];function hw(n,e){if(!n)return null;let t="";if(typeof n=="string"){const i=/\.(\w{3,4})(?:$|\?|#)/i.exec(n);i&&(t=i[1].toLowerCase())}for(let i=Xp.length-1;i>=0;--i){const s=Xp[i];if(s.test&&s.test(n,t))return new s(n,e)}throw new Error("Unrecognized source type to auto-detect Resource")}class Zn{constructor(e){this.items=[],this._name=e,this._aliasCount=0}emit(e,t,i,s,r,o,a,c){if(arguments.length>8)throw new Error("max arguments reached");const{name:l,items:d}=this;this._aliasCount++;for(let u=0,h=d.length;u<h;u++)d[u][l](e,t,i,s,r,o,a,c);return d===this.items&&this._aliasCount--,this}ensureNonAliasedItems(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this}remove(e){const t=this.items.indexOf(e);return t!==-1&&(this.ensureNonAliasedItems(),this.items.splice(t,1)),this}contains(e){return this.items.includes(e)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items.length=0,this._name=""}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(Zn.prototype,{dispatch:{value:Zn.prototype.emit},run:{value:Zn.prototype.emit}});class Zl{constructor(e=0,t=0){this._width=e,this._height=t,this.destroyed=!1,this.internal=!1,this.onResize=new Zn("setRealSize"),this.onUpdate=new Zn("update"),this.onError=new Zn("onError")}bind(e){this.onResize.add(e),this.onUpdate.add(e),this.onError.add(e),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(e){this.onResize.remove(e),this.onUpdate.remove(e),this.onError.remove(e)}resize(e,t){(e!==this._width||t!==this._height)&&(this._width=e,this._height=t,this.onResize.emit(e,t))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(e,t,i){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(e,t){return!1}}class th extends Zl{constructor(e,t){const{width:i,height:s}=t||{};if(!i||!s)throw new Error("BufferResource width or height invalid");super(i,s),this.data=e,this.unpackAlignment=t.unpackAlignment??4}upload(e,t,i){const s=e.gl;s.pixelStorei(s.UNPACK_ALIGNMENT,this.unpackAlignment),s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===ki.UNPACK);const r=t.realWidth,o=t.realHeight;return i.width===r&&i.height===o?s.texSubImage2D(t.target,0,0,0,r,o,t.format,i.type,this.data):(i.width=r,i.height=o,s.texImage2D(t.target,0,i.internalFormat,r,o,0,t.format,i.type,this.data)),!0}dispose(){this.data=null}static test(e){return e===null||e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array}}const HP={scaleMode:Gn.NEAREST,alphaMode:ki.NPM},Yp=class pa extends mc{constructor(e=null,t=null){super(),t=Object.assign({},pa.defaultOptions,t);const{alphaMode:i,mipmap:s,anisotropicLevel:r,scaleMode:o,width:a,height:c,wrapMode:l,format:d,type:u,target:h,resolution:
Line truncated
|
||||
else `),t<n-1&&(e+=`if(test == ${t}.0){}`);return e}function jP(n,e){if(n===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const t=e.createShader(e.FRAGMENT_SHADER);for(;;){const i=YP.replace(/%forloop%/gi,zP(n));if(e.shaderSource(t,i),e.compileShader(t),!e.getShaderParameter(t,e.COMPILE_STATUS))n=n/2|0;else break}return n}const Df=0,Of=1,Nf=2,$f=3,Bf=4,Uf=5;class ks{constructor(){this.data=0,this.blendMode=Qe.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<Df)}set blend(e){!!(this.data&1<<Df)!==e&&(this.data^=1<<Df)}get offsets(){return!!(this.data&1<<Of)}set offsets(e){!!(this.data&1<<Of)!==e&&(this.data^=1<<Of)}get culling(){return!!(this.data&1<<Nf)}set culling(e){!!(this.data&1<<Nf)!==e&&(this.data^=1<<Nf)}get depthTest(){return!!(this.data&1<<$f)}set depthTest(e){!!(this.data&1<<$f)!==e&&(this.data^=1<<$f)}get depthMask(){return!!(this.data&1<<Uf)}set depthMask(e){!!(this.data&1<<Uf)!==e&&(this.data^=1<<Uf)}get clockwiseFrontFace(){return!!(this.data&1<<Bf)}set clockwiseFrontFace(e){!!(this.data&1<<Bf)!==e&&(this.data^=1<<Bf)}get blendMode(){return this._blendMode}set blendMode(e){this.blend=e!==Qe.NONE,this._blendMode=e}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}static for2d(){const e=new ks;return e.depthTest=!1,e.blend=!0,e}}ks.prototype.toString=function(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`};const Xp=[];function hw(n,e){if(!n)return null;let t="";if(typeof n=="string"){const i=/\.(\w{3,4})(?:$|\?|#)/i.exec(n);i&&(t=i[1].toLowerCase())}for(let i=Xp.length-1;i>=0;--i){const s=Xp[i];if(s.test&&s.test(n,t))return new s(n,e)}throw new Error("Unrecognized source type to auto-detect Resource")}class Zn{constructor(e){this.items=[],this._name=e,this._aliasCount=0}emit(e,t,i,s,r,o,a,c){if(arguments.length>8)throw new Error("max arguments reached");const{name:l,items:d}=this;this._aliasCount++;for(let u=0,h=d.length;u<h;u++)d[u][l](e,t,i,s,r,o,a,c);return d===this.items&&this._aliasCount--,this}ensureNonAliasedItems(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(e){return e[this._name]&&(this.ensureNonAliasedItems(),this.remove(e),this.items.push(e)),this}remove(e){const t=this.items.indexOf(e);return t!==-1&&(this.ensureNonAliasedItems(),this.items.splice(t,1)),this}contains(e){return this.items.includes(e)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items.length=0,this._name=""}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(Zn.prototype,{dispatch:{value:Zn.prototype.emit},run:{value:Zn.prototype.emit}});class Zl{constructor(e=0,t=0){this._width=e,this._height=t,this.destroyed=!1,this.internal=!1,this.onResize=new Zn("setRealSize"),this.onUpdate=new Zn("update"),this.onError=new Zn("onError")}bind(e){this.onResize.add(e),this.onUpdate.add(e),this.onError.add(e),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(e){this.onResize.remove(e),this.onUpdate.remove(e),this.onError.remove(e)}resize(e,t){(e!==this._width||t!==this._height)&&(this._width=e,this._height=t,this.onResize.emit(e,t))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(e,t,i){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(e,t){return!1}}class th extends Zl{constructor(e,t){const{width:i,height:s}=t||{};if(!i||!s)throw new Error("BufferResource width or height invalid");super(i,s),this.data=e,this.unpackAlignment=t.unpackAlignment??4}upload(e,t,i){const s=e.gl;s.pixelStorei(s.UNPACK_ALIGNMENT,this.unpackAlignment),s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===ki.UNPACK);const r=t.realWidth,o=t.realHeight;return i.width===r&&i.height===o?s.texSubImage2D(t.target,0,0,0,r,o,t.format,i.type,this.data):(i.width=r,i.height=o,s.texImage2D(t.target,0,i.internalFormat,r,o,0,t.format,i.type,this.data)),!0}dispose(){this.data=null}static test(e){return e===null||e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array}}const HP={scaleMode:Gn.NEAREST,alphaMode:ki.NPM},Yp=class pa extends mc{constructor(e=null,t=null){super(),t=Object.assign({},pa.defaultOptions,t);const{alphaMode:i,mipmap:s,anisotropicLevel:r,scaleMode:o,width:a,height:c,wrapMode:l,format:d,type:u,target:h,resolution:
Line truncated
|
||||
|
||||
uniform sampler2D uSampler;
|
||||
|
||||
@@ -545,7 +545,7 @@ void main(void)
|
||||
gl_Position = filterVertexPosition();
|
||||
vTextureCoord = filterTextureCoord();
|
||||
}
|
||||
`;const QI=JI,zw=ZI;class jw{constructor(e){this.renderer=e}contextChange(e){let t;if(this.renderer.context.webGLVersion===1){const i=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.FRAMEBUFFER,i)}else{const i=e.getParameter(e.DRAW_FRAMEBUFFER_BINDING);e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,i)}t>=yi.HIGH?this.multisample=yi.HIGH:t>=yi.MEDIUM?this.multisample=yi.MEDIUM:t>=yi.LOW?this.multisample=yi.LOW:this.multisample=yi.NONE}destroy(){}}jw.extension={type:Oe.RendererSystem,name:"_multisample"};He.add(jw);class ek{constructor(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class Hw{constructor(e){this.renderer=e,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(e){const{gl:t,CONTEXT_UID:i}=this,s=e._glBuffers[i]||this.createGLBuffer(e);t.bindBuffer(e.type,s.buffer)}unbind(e){const{gl:t}=this;t.bindBuffer(e,null)}bindBufferBase(e,t){const{gl:i,CONTEXT_UID:s}=this;if(this.boundBufferBases[t]!==e){const r=e._glBuffers[s]||this.createGLBuffer(e);this.boundBufferBases[t]=e,i.bindBufferBase(i.UNIFORM_BUFFER,t,r.buffer)}}bindBufferRange(e,t,i){const{gl:s,CONTEXT_UID:r}=this;i=i||0;const o=e._glBuffers[r]||this.createGLBuffer(e);s.bindBufferRange(s.UNIFORM_BUFFER,t||0,o.buffer,i*256,256)}update(e){const{gl:t,CONTEXT_UID:i}=this,s=e._glBuffers[i]||this.createGLBuffer(e);if(e._updateID!==s.updateID)if(s.updateID=e._updateID,t.bindBuffer(e.type,s.buffer),s.byteLength>=e.data.byteLength)t.bufferSubData(e.type,0,e.data);else{const r=e.static?t.STATIC_DRAW:t.DYNAMIC_DRAW;s.byteLength=e.data.byteLength,t.bufferData(e.type,e.data,r)}}dispose(e,t){if(!this.managedBuffers[e.id])return;delete this.managedBuffers[e.id];const i=e._glBuffers[this.CONTEXT_UID],s=this.gl;e.disposeRunner.remove(this),i&&(t||s.deleteBuffer(i.buffer),delete e._glBuffers[this.CONTEXT_UID])}disposeAll(e){const t=Object.keys(this.managedBuffers);for(let i=0;i<t.length;i++)this.dispose(this.managedBuffers[t[i]],e)}createGLBuffer(e){const{CONTEXT_UID:t,gl:i}=this;return e._glBuffers[t]=new ek(i.createBuffer()),this.managedBuffers[e.id]=e,e.disposeRunner.add(this),e._glBuffers[t]}}Hw.extension={type:Oe.RendererSystem,name:"buffer"};He.add(Hw);class Gw{constructor(e){this.renderer=e}render(e,t){const i=this.renderer;let s,r,o,a;if(t&&(s=t.renderTexture,r=t.clear,o=t.transform,a=t.skipUpdateTransform),this.renderingToScreen=!s,i.runners.prerender.emit(),i.emit("prerender"),i.projection.transform=o,!i.context.isLost){if(s||(this.lastObjectRendered=e),!a){const c=e.enableTempParent();e.updateTransform(),e.disableTempParent(c)}i.renderTexture.bind(s),i.batch.currentRenderer.start(),(r??i.background.clearBeforeRender)&&i.renderTexture.clear(),e.render(i),i.batch.currentRenderer.flush(),s&&(t.blit&&i.framebuffer.blit(),s.baseTexture.update()),i.runners.postrender.emit(),i.projection.transform=null,i.emit("postrender")}}destroy(){this.renderer=null,this.lastObjectRendered=null}}Gw.extension={type:Oe.RendererSystem,name:"objectRenderer"};He.add(Gw);const Sd=class Zp extends GI{constructor(e){super(),this.type=G1.WEBGL,e=Object.assign({},Ve.RENDER_OPTIONS,e),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new Qn({projectionMatrix:new Bt},!0);const t={runners:["init","destroy","contextChange","resolutionChange","reset","update","postrender","prerender","resize"],systems:Zp.__systems,priority:["_view","textureGenerator","background","_plugin","startup","context","state","texture","buffer","geometry","framebuffer","transformFeedback","mask","scissor","stencil","projection","textureGC","filter","renderTexture","batch","objectRenderer","_multisample"]};this.setup(t),"useContextAlpha"in e&&(mt("7.0.0","options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"),e.premultipliedAlpha=e.useContextAlpha&&e.useContextAlpha!=="notMultiplied",e.backgroundAlpha=e.useContextAlpha===!1?1:e.backgroundAlpha),this._plugin.rendererPlugins=Zp.__plugins,this.options=e,this.startup.run(this.options)}static test(e){return e!=null&&e.forceCanvas?!1:AP()}render(e,t){this.objectRenderer.render(e,t)}resize(e,t){this._view.resizeView(e,t)}reset(){return this.runners.reset.emit(),this}clear(){this.renderTexture.bind(),this.renderTexture.clear()}destroy(e=!1){this.runners.destroy.items.reverse(),this.emitWithCustomOptions(this.runners.destroy,{_view:e}),super.destroy()}get plugins(){return this._plugin.plugins}get multisample(){return this._multisample.multisample}get width(){return this._view.element.width}get height(){return this._view.element.height}get resolution(){return this._view.resolution}set resolution(e){this._view.resolution=e,this.runners.resolutionChange.emit(e)}get autoDensity(){return this._view.autoDensity}get view(){return
Line truncated
|
||||
`;const QI=JI,zw=ZI;class jw{constructor(e){this.renderer=e}contextChange(e){let t;if(this.renderer.context.webGLVersion===1){const i=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.FRAMEBUFFER,i)}else{const i=e.getParameter(e.DRAW_FRAMEBUFFER_BINDING);e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,i)}t>=yi.HIGH?this.multisample=yi.HIGH:t>=yi.MEDIUM?this.multisample=yi.MEDIUM:t>=yi.LOW?this.multisample=yi.LOW:this.multisample=yi.NONE}destroy(){}}jw.extension={type:Oe.RendererSystem,name:"_multisample"};He.add(jw);class ek{constructor(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class Hw{constructor(e){this.renderer=e,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(e){const{gl:t,CONTEXT_UID:i}=this,s=e._glBuffers[i]||this.createGLBuffer(e);t.bindBuffer(e.type,s.buffer)}unbind(e){const{gl:t}=this;t.bindBuffer(e,null)}bindBufferBase(e,t){const{gl:i,CONTEXT_UID:s}=this;if(this.boundBufferBases[t]!==e){const r=e._glBuffers[s]||this.createGLBuffer(e);this.boundBufferBases[t]=e,i.bindBufferBase(i.UNIFORM_BUFFER,t,r.buffer)}}bindBufferRange(e,t,i){const{gl:s,CONTEXT_UID:r}=this;i=i||0;const o=e._glBuffers[r]||this.createGLBuffer(e);s.bindBufferRange(s.UNIFORM_BUFFER,t||0,o.buffer,i*256,256)}update(e){const{gl:t,CONTEXT_UID:i}=this,s=e._glBuffers[i]||this.createGLBuffer(e);if(e._updateID!==s.updateID)if(s.updateID=e._updateID,t.bindBuffer(e.type,s.buffer),s.byteLength>=e.data.byteLength)t.bufferSubData(e.type,0,e.data);else{const r=e.static?t.STATIC_DRAW:t.DYNAMIC_DRAW;s.byteLength=e.data.byteLength,t.bufferData(e.type,e.data,r)}}dispose(e,t){if(!this.managedBuffers[e.id])return;delete this.managedBuffers[e.id];const i=e._glBuffers[this.CONTEXT_UID],s=this.gl;e.disposeRunner.remove(this),i&&(t||s.deleteBuffer(i.buffer),delete e._glBuffers[this.CONTEXT_UID])}disposeAll(e){const t=Object.keys(this.managedBuffers);for(let i=0;i<t.length;i++)this.dispose(this.managedBuffers[t[i]],e)}createGLBuffer(e){const{CONTEXT_UID:t,gl:i}=this;return e._glBuffers[t]=new ek(i.createBuffer()),this.managedBuffers[e.id]=e,e.disposeRunner.add(this),e._glBuffers[t]}}Hw.extension={type:Oe.RendererSystem,name:"buffer"};He.add(Hw);class Gw{constructor(e){this.renderer=e}render(e,t){const i=this.renderer;let s,r,o,a;if(t&&(s=t.renderTexture,r=t.clear,o=t.transform,a=t.skipUpdateTransform),this.renderingToScreen=!s,i.runners.prerender.emit(),i.emit("prerender"),i.projection.transform=o,!i.context.isLost){if(s||(this.lastObjectRendered=e),!a){const c=e.enableTempParent();e.updateTransform(),e.disableTempParent(c)}i.renderTexture.bind(s),i.batch.currentRenderer.start(),(r??i.background.clearBeforeRender)&&i.renderTexture.clear(),e.render(i),i.batch.currentRenderer.flush(),s&&(t.blit&&i.framebuffer.blit(),s.baseTexture.update()),i.runners.postrender.emit(),i.projection.transform=null,i.emit("postrender")}}destroy(){this.renderer=null,this.lastObjectRendered=null}}Gw.extension={type:Oe.RendererSystem,name:"objectRenderer"};He.add(Gw);const Sd=class Zp extends GI{constructor(e){super(),this.type=G1.WEBGL,e=Object.assign({},Ve.RENDER_OPTIONS,e),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new Qn({projectionMatrix:new Bt},!0);const t={runners:["init","destroy","contextChange","resolutionChange","reset","update","postrender","prerender","resize"],systems:Zp.__systems,priority:["_view","textureGenerator","background","_plugin","startup","context","state","texture","buffer","geometry","framebuffer","transformFeedback","mask","scissor","stencil","projection","textureGC","filter","renderTexture","batch","objectRenderer","_multisample"]};this.setup(t),"useContextAlpha"in e&&(mt("7.0.0","options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"),e.premultipliedAlpha=e.useContextAlpha&&e.useContextAlpha!=="notMultiplied",e.backgroundAlpha=e.useContextAlpha===!1?1:e.backgroundAlpha),this._plugin.rendererPlugins=Zp.__plugins,this.options=e,this.startup.run(this.options)}static test(e){return e!=null&&e.forceCanvas?!1:AP()}render(e,t){this.objectRenderer.render(e,t)}resize(e,t){this._view.resizeView(e,t)}reset(){return this.runners.reset.emit(),this}clear(){this.renderTexture.bind(),this.renderTexture.clear()}destroy(e=!1){this.runners.destroy.items.reverse(),this.emitWithCustomOptions(this.runners.destroy,{_view:e}),super.destroy()}get plugins(){return this._plugin.plugins}get multisample(){return this._multisample.multisample}get width(){return this._view.element.width}get height(){return this._view.element.height}get resolution(){return this._view.resolution}set resolution(e){this._view.resolution=e,this.runners.resolutionChange.emit(e)}get autoDensity(){return this._view.autoDensity}get view(){return
Line truncated
|
||||
|
||||
uniform sampler2D uSampler;
|
||||
uniform float uAlpha;
|
||||
@@ -930,7 +930,7 @@ ${u}`)}});return await Promise.all(c),r?s[o[0].src]:s}async unload(e){const t=jn
|
||||
};
|
||||
})();
|
||||
`;let La=null;class sS{constructor(){La||(La=URL.createObjectURL(new Blob([oR],{type:"application/javascript"}))),this.worker=new Worker(La)}}sS.revokeObjectURL=function(){La&&(URL.revokeObjectURL(La),La=null)};let L0=0,Gf;class aR{constructor(){this._initialized=!1,this._createdWorkers=0,this.workerPool=[],this.queue=[],this.resolveHash={}}isImageBitmapSupported(){return this._isImageBitmapSupported!==void 0?this._isImageBitmapSupported:(this._isImageBitmapSupported=new Promise(e=>{const{worker:t}=new dm;t.addEventListener("message",i=>{t.terminate(),dm.revokeObjectURL(),e(i.data)})}),this._isImageBitmapSupported)}loadImageBitmap(e){return this._run("loadImageBitmap",[e])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){Gf===void 0&&(Gf=navigator.hardwareConcurrency||4);let e=this.workerPool.pop();return!e&&this._createdWorkers<Gf&&(this._createdWorkers++,e=new sS().worker,e.addEventListener("message",t=>{this.complete(t.data),this.returnWorker(t.target),this.next()})),e}returnWorker(e){this.workerPool.push(e)}complete(e){e.error!==void 0?this.resolveHash[e.uuid].reject(e.error):this.resolveHash[e.uuid].resolve(e.data),this.resolveHash[e.uuid]=null}async _run(e,t){await this._initWorkers();const i=new Promise((s,r)=>{this.queue.push({id:e,arguments:t,resolve:s,reject:r})});return this.next(),i}next(){if(!this.queue.length)return;const e=this.getWorker();if(!e)return;const t=this.queue.pop(),i=t.id;this.resolveHash[L0]={resolve:t.resolve,reject:t.reject},e.postMessage({data:t.arguments,uuid:L0++,id:i})}}const D0=new aR;function vc(n,e,t){n.resource.internal=!0;const i=new it(n),s=()=>{delete e.promiseCache[t],Co.has(t)&&Co.remove(t)};return i.baseTexture.once("destroyed",()=>{t in e.promiseCache&&(console.warn("[Assets] A BaseTexture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the BaseTexture."),s())}),i.once("destroyed",()=>{n.destroyed||(console.warn("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),s())}),i}const lR=[".jpeg",".jpg",".png",".webp",".avif"],cR=["image/jpeg","image/png","image/webp","image/avif"];async function dR(n){const e=await Ve.ADAPTER.fetch(n);if(!e.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${n}: ${e.status} ${e.statusText}`);const t=await e.blob();return await createImageBitmap(t)}const oh={name:"loadTextures",extension:{type:Oe.LoadParser,priority:Cn.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(n){return el(n,cR)||un(n,lR)},async load(n,e,t){var a;const i=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap;let s;i?this.config.preferWorkers&&await D0.isImageBitmapSupported()?s=await D0.loadImageBitmap(n):s=await dR(n):s=await new Promise((c,l)=>{const d=new Image;d.crossOrigin=this.config.crossOrigin,d.src=n,d.complete?c(d):(d.onload=()=>c(d),d.onerror=u=>l(u))});const r={...e.data};r.resolution??(r.resolution=fr(n)),i&&((a=r.resourceOptions)==null?void 0:a.ownsImageBitmap)===void 0&&(r.resourceOptions={...r.resourceOptions},r.resourceOptions.ownsImageBitmap=!0);const o=new rt(s,r);return o.resource.src=n,vc(o,t,n)},unload(n){n.destroy(!0)}};He.add(oh);const uR=".svg",hR="image/svg+xml",fR={extension:{type:Oe.LoadParser,priority:Cn.High},name:"loadSVG",test(n){return el(n,hR)||un(n,uR)},async testParse(n){return em.test(n)},async parse(n,e,t){var r;const i=new em(n,(r=e==null?void 0:e.data)==null?void 0:r.resourceOptions);await i.load();const s=new rt(i,{resolution:fr(n),...e==null?void 0:e.data});return s.resource.src=e.src,vc(s,t,e.src)},async load(n,e){return(await Ve.ADAPTER.fetch(n)).text()},unload:oh.unload};He.add(fR);const pR=[".mp4",".m4v",".webm",".ogv"],mR=["video/mp4","video/webm","video/ogg"],gR={name:"loadVideo",extension:{type:Oe.LoadParser,priority:Cn.High},config:{defaultAutoPlay:!0,defaultUpdateFPS:0,defaultLoop:!1,defaultMuted:!1,defaultPlaysinline:!0},test(n){return el(n,mR)||un(n,pR)},async load(n,e,t){var o;let i;const s=await(await Ve.ADAPTER.fetch(n)).blob(),r=URL.createObjectURL(s);try{const a={autoPlay:this.config.defaultAutoPlay,updateFPS:this.config.defaultUpdateFPS,loop:this.config.defaultLoop,muted:this.config.defaultMuted,playsinline:this.config.defaultPlaysinline,...(o=e==null?void 0:e.data)==null?void 0:o.resourceOptions,autoLoad:!0},c=new Kw(r,a);await c.load();const l=new rt(c,{alphaMode:await CP(),resolution:fr(n),...e==null?void 0:e.data});l.resource.src=n,i=vc(l,t,n),i.baseTexture.once("destroyed",()=>{URL.revokeObjectURL(r)})}catch(a){throw URL.revokeObjectURL(r),a}return i},unload(n){n.destroy(!0)}};He.add(gR);class vR{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(e,t)=>`${e}${this._bundleIdConnector}${t}`,extractAssetIdFromBundle:(e,t)=>t.replace(`${e}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=
Line truncated
|
||||
Please use Assets.add({ alias, src, data, format, loadParser }) instead.`),o.push({alias:e,src:t,data:i,format:s,loadParser:r})):Array.isArray(e)?o.push(...e):o.push(e);let a;a=c=>{this.hasKey(c)&&console.warn(`[Resolver] already has key: ${c} overwriting`)},jn(o).forEach(c=>{const{src:l,srcs:d}=c;let{data:u,format:h,loadParser:f}=c;const p=jn(l||d).map(v=>typeof v=="string"?Xk(v):Array.isArray(v)?v:[v]),m=this.getAlias(c);Array.isArray(m)?m.forEach(a):a(m);const g=[];p.forEach(v=>{v.forEach(y=>{let b={};if(typeof y!="object"){b.src=y;for(let x=0;x<this._parsers.length;x++){const C=this._parsers[x];if(C.test(y)){b=C.parse(y);break}}}else u=y.data??u,h=y.format??h,f=y.loadParser??f,b={...b,...y};if(!m)throw new Error(`[Resolver] alias is undefined for this asset: ${b.src}`);b=this.buildResolvedAsset(b,{aliases:m,data:u,format:h,loadParser:f}),g.push(b)})}),m.forEach(v=>{this._assetMap[v]=g})})}resolveBundle(e){const t=tu(e);e=jn(e);const i={};return e.forEach(s=>{const r=this._bundles[s];if(r){const o=this.resolve(r),a={};for(const c in o){const l=o[c];a[this._extractAssetIdFromBundle(s,c)]=l}i[s]=a}}),t?i[e[0]]:i}resolveUrl(e){const t=this.resolve(e);if(typeof e!="string"){const i={};for(const s in t)i[s]=t[s].src;return i}return t.src}resolve(e){const t=tu(e);e=jn(e);const i={};return e.forEach(s=>{if(!this._resolverHash[s])if(this._assetMap[s]){let r=this._assetMap[s];const o=r[0],a=this._getPreferredOrder(r);a==null||a.priority.forEach(c=>{a.params[c].forEach(l=>{const d=r.filter(u=>u[c]?u[c]===l:!1);d.length&&(r=d)})}),this._resolverHash[s]=r[0]??o}else this._resolverHash[s]=this.buildResolvedAsset({alias:[s],src:s},{});i[s]=this._resolverHash[s]}),t?i[e[0]]:i}hasKey(e){return!!this._assetMap[e]}hasBundle(e){return!!this._bundles[e]}_getPreferredOrder(e){for(let t=0;t<e.length;t++){const i=e[0],s=this._preferredOrder.find(r=>r.params.format.includes(i.format));if(s)return s}return this._preferredOrder[0]}_appendDefaultSearchParams(e){if(!this._defaultSearchParams)return e;const t=/\?/.test(e)?"&":"?";return`${e}${t}${this._defaultSearchParams}`}buildResolvedAsset(e,t){const{aliases:i,data:s,loadParser:r,format:o}=t;return(this._basePath||this._rootPath)&&(e.src=hi.toAbsolute(e.src,this._basePath,this._rootPath)),e.alias=i??e.alias??[e.src],e.src=this._appendDefaultSearchParams(e.src),e.data={...s||{},...e.data},e.loadParser=r??e.loadParser,e.format=o??e.format??hi.extname(e.src).slice(1),e.srcs=e.src,e.name=e.alias,e}}class bR{constructor(){this._detections=[],this._initialized=!1,this.resolver=new vR,this.loader=new zk,this.cache=Co,this._backgroundLoader=new Vk(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(e={}){var r,o;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");return}if(this._initialized=!0,e.defaultSearchParams&&this.resolver.setDefaultSearchParams(e.defaultSearchParams),e.basePath&&(this.resolver.basePath=e.basePath),e.bundleIdentifier&&this.resolver.setBundleIdentifier(e.bundleIdentifier),e.manifest){let a=e.manifest;typeof a=="string"&&(a=await this.load(a)),this.resolver.addManifest(a)}const t=((r=e.texturePreference)==null?void 0:r.resolution)??1,i=typeof t=="number"?[t]:t,s=await this._detectFormats({preferredFormats:(o=e.texturePreference)==null?void 0:o.format,skipDetections:e.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:s,resolution:i}}),e.preferences&&this.setPreferences(e.preferences)}add(e,t,i,s,r){this.resolver.add(e,t,i,s,r)}async load(e,t){this._initialized||await this.init();const i=tu(e),s=jn(e).map(a=>{if(typeof a!="string"){const c=this.resolver.getAlias(a);return c.some(l=>!this.resolver.hasKey(l))&&this.add(a),Array.isArray(c)?c[0]:c}return this.resolver.hasKey(a)||this.add({alias:a,src:a}),a}),r=this.resolver.resolve(s),o=await this._mapLoadToResolve(r,t);return i?o[s[0]]:o}addBundle(e,t){this.resolver.addBundle(e,t)}async loadBundle(e,t){this._initialized||await this.init();let i=!1;typeof e=="string"&&(i=!0,e=[e]);const s=this.resolver.resolveBundle(e),r={},o=Object.keys(s);let a=0,c=0;const l=()=>{t==null||t(++a/c)},d=o.map(u=>{const h=s[u];return c+=Object.keys(h).length,this._mapLoadToResolve(h,l).then(f=>{r[u]=f})});return await Promise.all(d),i?r[e[0]]:r}async backgroundLoad(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolve(e);this._backgroundLoader.add(Object.values(t))}async backgroundLoadBundle(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolveBundle(e);Object.values(t).forEach(i=>{this._backgroundLoader.add(Object.values(i))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(e){if(typeof e=="string")return Co.get(e);const t={};for(let i=0;i<e.length;i++)t[i]=Co.get(e[i]);return t}async _mapLoadToResolve(e,t){const i=Object.values(e),s=Object.keys(e);this._backgroundLoader.active=!1;co
Line truncated
|
||||
Please use Assets.add({ alias, src, data, format, loadParser }) instead.`),o.push({alias:e,src:t,data:i,format:s,loadParser:r})):Array.isArray(e)?o.push(...e):o.push(e);let a;a=c=>{this.hasKey(c)&&console.warn(`[Resolver] already has key: ${c} overwriting`)},jn(o).forEach(c=>{const{src:l,srcs:d}=c;let{data:u,format:h,loadParser:f}=c;const p=jn(l||d).map(v=>typeof v=="string"?Xk(v):Array.isArray(v)?v:[v]),m=this.getAlias(c);Array.isArray(m)?m.forEach(a):a(m);const g=[];p.forEach(v=>{v.forEach(y=>{let b={};if(typeof y!="object"){b.src=y;for(let w=0;w<this._parsers.length;w++){const C=this._parsers[w];if(C.test(y)){b=C.parse(y);break}}}else u=y.data??u,h=y.format??h,f=y.loadParser??f,b={...b,...y};if(!m)throw new Error(`[Resolver] alias is undefined for this asset: ${b.src}`);b=this.buildResolvedAsset(b,{aliases:m,data:u,format:h,loadParser:f}),g.push(b)})}),m.forEach(v=>{this._assetMap[v]=g})})}resolveBundle(e){const t=tu(e);e=jn(e);const i={};return e.forEach(s=>{const r=this._bundles[s];if(r){const o=this.resolve(r),a={};for(const c in o){const l=o[c];a[this._extractAssetIdFromBundle(s,c)]=l}i[s]=a}}),t?i[e[0]]:i}resolveUrl(e){const t=this.resolve(e);if(typeof e!="string"){const i={};for(const s in t)i[s]=t[s].src;return i}return t.src}resolve(e){const t=tu(e);e=jn(e);const i={};return e.forEach(s=>{if(!this._resolverHash[s])if(this._assetMap[s]){let r=this._assetMap[s];const o=r[0],a=this._getPreferredOrder(r);a==null||a.priority.forEach(c=>{a.params[c].forEach(l=>{const d=r.filter(u=>u[c]?u[c]===l:!1);d.length&&(r=d)})}),this._resolverHash[s]=r[0]??o}else this._resolverHash[s]=this.buildResolvedAsset({alias:[s],src:s},{});i[s]=this._resolverHash[s]}),t?i[e[0]]:i}hasKey(e){return!!this._assetMap[e]}hasBundle(e){return!!this._bundles[e]}_getPreferredOrder(e){for(let t=0;t<e.length;t++){const i=e[0],s=this._preferredOrder.find(r=>r.params.format.includes(i.format));if(s)return s}return this._preferredOrder[0]}_appendDefaultSearchParams(e){if(!this._defaultSearchParams)return e;const t=/\?/.test(e)?"&":"?";return`${e}${t}${this._defaultSearchParams}`}buildResolvedAsset(e,t){const{aliases:i,data:s,loadParser:r,format:o}=t;return(this._basePath||this._rootPath)&&(e.src=hi.toAbsolute(e.src,this._basePath,this._rootPath)),e.alias=i??e.alias??[e.src],e.src=this._appendDefaultSearchParams(e.src),e.data={...s||{},...e.data},e.loadParser=r??e.loadParser,e.format=o??e.format??hi.extname(e.src).slice(1),e.srcs=e.src,e.name=e.alias,e}}class bR{constructor(){this._detections=[],this._initialized=!1,this.resolver=new vR,this.loader=new zk,this.cache=Co,this._backgroundLoader=new Vk(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(e={}){var r,o;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");return}if(this._initialized=!0,e.defaultSearchParams&&this.resolver.setDefaultSearchParams(e.defaultSearchParams),e.basePath&&(this.resolver.basePath=e.basePath),e.bundleIdentifier&&this.resolver.setBundleIdentifier(e.bundleIdentifier),e.manifest){let a=e.manifest;typeof a=="string"&&(a=await this.load(a)),this.resolver.addManifest(a)}const t=((r=e.texturePreference)==null?void 0:r.resolution)??1,i=typeof t=="number"?[t]:t,s=await this._detectFormats({preferredFormats:(o=e.texturePreference)==null?void 0:o.format,skipDetections:e.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:s,resolution:i}}),e.preferences&&this.setPreferences(e.preferences)}add(e,t,i,s,r){this.resolver.add(e,t,i,s,r)}async load(e,t){this._initialized||await this.init();const i=tu(e),s=jn(e).map(a=>{if(typeof a!="string"){const c=this.resolver.getAlias(a);return c.some(l=>!this.resolver.hasKey(l))&&this.add(a),Array.isArray(c)?c[0]:c}return this.resolver.hasKey(a)||this.add({alias:a,src:a}),a}),r=this.resolver.resolve(s),o=await this._mapLoadToResolve(r,t);return i?o[s[0]]:o}addBundle(e,t){this.resolver.addBundle(e,t)}async loadBundle(e,t){this._initialized||await this.init();let i=!1;typeof e=="string"&&(i=!0,e=[e]);const s=this.resolver.resolveBundle(e),r={},o=Object.keys(s);let a=0,c=0;const l=()=>{t==null||t(++a/c)},d=o.map(u=>{const h=s[u];return c+=Object.keys(h).length,this._mapLoadToResolve(h,l).then(f=>{r[u]=f})});return await Promise.all(d),i?r[e[0]]:r}async backgroundLoad(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolve(e);this._backgroundLoader.add(Object.values(t))}async backgroundLoadBundle(e){this._initialized||await this.init(),typeof e=="string"&&(e=[e]);const t=this.resolver.resolveBundle(e);Object.values(t).forEach(i=>{this._backgroundLoader.add(Object.values(i))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(e){if(typeof e=="string")return Co.get(e);const t={};for(let i=0;i<e.length;i++)t[i]=Co.get(e[i]);return t}async _mapLoadToResolve(e,t){const i=Object.values(e),s=Object.keys(e);this._backgroundLoader.active=!1;co
Line truncated
|
||||
uniform vec4 uColor;
|
||||
|
||||
uniform sampler2D uSampler;
|
||||
@@ -987,8 +987,8 @@ void main(void){
|
||||
vTextureCoord = aTextureCoord;
|
||||
vColor = aColor * uColor;
|
||||
}
|
||||
`;class hS extends rh{constructor(e){super(e),this.shader=null,this.properties=null,this.tempMatrix=new Bt,this.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:this.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:this.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:this.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:this.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:je.UNSIGNED_BYTE,uploadFunction:this.uploadTint,offset:0}],this.shader=es.from(v2,g2,{}),this.state=ks.for2d()}render(e){const t=e.children,i=e._maxSize,s=e._batchSize,r=this.renderer;let o=t.length;if(o===0)return;o>i&&!e.autoResize&&(o=i);let a=e._buffers;a||(a=e._buffers=this.generateBuffers(e));const c=t[0]._texture.baseTexture,l=c.alphaMode>0;this.state.blendMode=dw(e.blendMode,l),r.state.set(this.state);const d=r.gl,u=e.worldTransform.copyTo(this.tempMatrix);u.prepend(r.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=u.toArray(!0),this.shader.uniforms.uColor=Rt.shared.setValue(e.tintRgb).premultiply(e.worldAlpha,l).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=c,this.renderer.shader.bind(this.shader);let h=!1;for(let f=0,p=0;f<o;f+=s,p+=1){let m=o-f;m>s&&(m=s),p>=a.length&&a.push(this._generateOneMoreBuffer(e));const g=a[p];g.uploadDynamic(t,f,m);const v=e._bufferUpdateIDs[p]||0;h=h||g._updateID<v,h&&(g._updateID=e._updateID,g.uploadStatic(t,f,m)),r.geometry.bind(g.geometry),d.drawElements(d.TRIANGLES,m*6,d.UNSIGNED_SHORT,0)}}generateBuffers(e){const t=[],i=e._maxSize,s=e._batchSize,r=e._properties;for(let o=0;o<i;o+=s)t.push(new G0(this.properties,r,s));return t}_generateOneMoreBuffer(e){const t=e._batchSize,i=e._properties;return new G0(this.properties,i,t)}uploadVertices(e,t,i,s,r,o){let a=0,c=0,l=0,d=0;for(let u=0;u<i;++u){const h=e[t+u],f=h._texture,p=h.scale.x,m=h.scale.y,g=f.trim,v=f.orig;g?(c=g.x-h.anchor.x*v.width,a=c+g.width,d=g.y-h.anchor.y*v.height,l=d+g.height):(a=v.width*(1-h.anchor.x),c=v.width*-h.anchor.x,l=v.height*(1-h.anchor.y),d=v.height*-h.anchor.y),s[o]=c*p,s[o+1]=d*m,s[o+r]=a*p,s[o+r+1]=d*m,s[o+r*2]=a*p,s[o+r*2+1]=l*m,s[o+r*3]=c*p,s[o+r*3+1]=l*m,o+=r*4}}uploadPosition(e,t,i,s,r,o){for(let a=0;a<i;a++){const c=e[t+a].position;s[o]=c.x,s[o+1]=c.y,s[o+r]=c.x,s[o+r+1]=c.y,s[o+r*2]=c.x,s[o+r*2+1]=c.y,s[o+r*3]=c.x,s[o+r*3+1]=c.y,o+=r*4}}uploadRotation(e,t,i,s,r,o){for(let a=0;a<i;a++){const c=e[t+a].rotation;s[o]=c,s[o+r]=c,s[o+r*2]=c,s[o+r*3]=c,o+=r*4}}uploadUvs(e,t,i,s,r,o){for(let a=0;a<i;++a){const c=e[t+a]._texture._uvs;c?(s[o]=c.x0,s[o+1]=c.y0,s[o+r]=c.x1,s[o+r+1]=c.y1,s[o+r*2]=c.x2,s[o+r*2+1]=c.y2,s[o+r*3]=c.x3,s[o+r*3+1]=c.y3,o+=r*4):(s[o]=0,s[o+1]=0,s[o+r]=0,s[o+r+1]=0,s[o+r*2]=0,s[o+r*2+1]=0,s[o+r*3]=0,s[o+r*3+1]=0,o+=r*4)}}uploadTint(e,t,i,s,r,o){for(let a=0;a<i;++a){const c=e[t+a],l=Rt.shared.setValue(c._tintRGB).toPremultiplied(c.alpha,c.texture.baseTexture.alphaMode>0);s[o]=l,s[o+r]=l,s[o+r*2]=l,s[o+r*3]=l,o+=r*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}hS.extension={name:"particle",type:Oe.RendererPlugin};He.add(hS);var lh=(n=>(n[n.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",n[n.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",n))(lh||{});const Kc={willReadFrequently:!0},cs=class qe{static get experimentalLetterSpacingSupported(){let e=qe._experimentalLetterSpacingSupported;if(e!==void 0){const t=Ve.ADAPTER.getCanvasRenderingContext2D().prototype;e=qe._experimentalLetterSpacingSupported="letterSpacing"in t||"textLetterSpacing"in t}return e}constructor(e,t,i,s,r,o,a,c,l){this.text=e,this.style=t,this.width=i,this.height=s,this.lines=r,this.lineWidths=o,this.lineHeight=a,this.maxLineWidth=c,this.fontProperties=l}static measureText(e,t,i,s=qe._canvas){i=i??t.wordWrap;const r=t.toFontString(),o=qe.measureFont(r);o.fontSize===0&&(o.fontSize=t.fontSize,o.ascent=t.fontSize);const a=s.getContext("2d",Kc);a.font=r;const c=(i?qe.wordWrap(e,t,s):e).split(/(?:\r\n|\r|\n)/),l=new Array(c.length);let d=0;for(let p=0;p<c.length;p++){const m=qe._measureText(c[p],t.letterSpacing,a);l[p]=m,d=Math.max(d,m)}let u=d+t.strokeThickness;t.dropShadow&&(u+=t.dropShadowDistance);const h=t.lineHeight||o.fontSize+t.strokeThickness;let f=Math.max(h,o.fontSize+t.strokeThickness*2)+t.leading+(c.length-1)*(h+t.leading);return t.dropShadow&&(f+=t.dropShadowDistance),new qe(e,t,u,f,c,l,h+t.leading,d,o)}static _measureText(e,t,i){let s=!1;qe.experimentalLetterSpacingSupported&&(qe.experimentalLetterSpacing?(i.letterSpacing=`${t}px`,i.textLetterSpacing=`${t}px`,s=!0):(i.letterSpacing="0px",i.textLetterSpacing="0px"));let r=i.measureText(e).width;return r>0&&(s?r-=t:r+=(qe.graphemeSegmenter(e).length-1)*t),r}static wordWrap(e,t,i=qe._canvas){const s=i.getContext("2d",Kc);let r=0,o="",a="";const c=Object.create(null),{letterSpacing:l,whiteSpace:d}=t,u=qe.collapseSpaces(d),h=qe.collapseNewlines(d);let f=!u;const p=t.wordWrapWidth+l,
Line truncated
|
||||
`:e,e}static getFromCache(e,t,i,s){let r=i[e];return typeof r!="number"&&(r=qe._measureText(e,t,s)+t,i[e]=r),r}static collapseSpaces(e){return e==="normal"||e==="pre-line"}static collapseNewlines(e){return e==="normal"}static trimRight(e){if(typeof e!="string")return"";for(let t=e.length-1;t>=0;t--){const i=e[t];if(!qe.isBreakingSpace(i))break;e=e.slice(0,-1)}return e}static isNewline(e){return typeof e!="string"?!1:qe._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,t){return typeof e!="string"?!1:qe._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const t=[];let i="";if(typeof e!="string")return t;for(let s=0;s<e.length;s++){const r=e[s],o=e[s+1];if(qe.isBreakingSpace(r,o)||qe.isNewline(r)){i!==""&&(t.push(i),i=""),t.push(r);continue}i+=r}return i!==""&&t.push(i),t}static canBreakWords(e,t){return t}static canBreakChars(e,t,i,s,r){return!0}static wordWrapSplit(e){return qe.graphemeSegmenter(e)}static measureFont(e){if(qe._fonts[e])return qe._fonts[e];const t={ascent:0,descent:0,fontSize:0},i=qe._canvas,s=qe._context;s.font=e;const r=qe.METRICS_STRING+qe.BASELINE_SYMBOL,o=Math.ceil(s.measureText(r).width);let a=Math.ceil(s.measureText(qe.BASELINE_SYMBOL).width);const c=Math.ceil(qe.HEIGHT_MULTIPLIER*a);if(a=a*qe.BASELINE_MULTIPLIER|0,o===0||c===0)return qe._fonts[e]=t,t;i.width=o,i.height=c,s.fillStyle="#f00",s.fillRect(0,0,o,c),s.font=e,s.textBaseline="alphabetic",s.fillStyle="#000",s.fillText(r,0,a);const l=s.getImageData(0,0,o,c).data,d=l.length,u=o*4;let h=0,f=0,p=!1;for(h=0;h<a;++h){for(let m=0;m<u;m+=4)if(l[f+m]!==255){p=!0;break}if(!p)f+=u;else break}for(t.ascent=a-h,f=d-u,p=!1,h=c;h>a;--h){for(let m=0;m<u;m+=4)if(l[f+m]!==255){p=!0;break}if(!p)f-=u;else break}return t.descent=h-a,t.fontSize=t.ascent+t.descent,qe._fonts[e]=t,t}static clearMetrics(e=""){e?delete qe._fonts[e]:qe._fonts={}}static get _canvas(){var e;if(!qe.__canvas){let t;try{const i=new OffscreenCanvas(0,0);if((e=i.getContext("2d",Kc))!=null&&e.measureText)return qe.__canvas=i,i;t=Ve.ADAPTER.createCanvas()}catch{t=Ve.ADAPTER.createCanvas()}t.width=t.height=10,qe.__canvas=t}return qe.__canvas}static get _context(){return qe.__context||(qe.__context=qe._canvas.getContext("2d",Kc)),qe.__context}};cs.METRICS_STRING="|ÉqÅ",cs.BASELINE_SYMBOL="M",cs.BASELINE_MULTIPLIER=1.4,cs.HEIGHT_MULTIPLIER=2,cs.graphemeSegmenter=(()=>{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const n=new Intl.Segmenter;return e=>[...n.segment(e)].map(t=>t.segment)}return n=>[...n]})(),cs.experimentalLetterSpacing=!1,cs._fonts={},cs._newlines=[10,13],cs._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];let Rr=cs;const b2=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],fS=class Tl{constructor(e){this.styleID=0,this.reset(),Qf(this,e,e)}clone(){const e={};return Qf(e,this,Tl.defaultStyle),new Tl(e)}reset(){Qf(this,Tl.defaultStyle,Tl.defaultStyle)}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(e){const t=Zf(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}get fill(){return this._fill}set fill(e){const t=Zf(e);this._fill!==t&&(this._fill=t,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(e){y2(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}get letterSpacing(){return this._lett
Line truncated
|
||||
`;class hS extends rh{constructor(e){super(e),this.shader=null,this.properties=null,this.tempMatrix=new Bt,this.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:this.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:this.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:this.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:this.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:je.UNSIGNED_BYTE,uploadFunction:this.uploadTint,offset:0}],this.shader=es.from(v2,g2,{}),this.state=ks.for2d()}render(e){const t=e.children,i=e._maxSize,s=e._batchSize,r=this.renderer;let o=t.length;if(o===0)return;o>i&&!e.autoResize&&(o=i);let a=e._buffers;a||(a=e._buffers=this.generateBuffers(e));const c=t[0]._texture.baseTexture,l=c.alphaMode>0;this.state.blendMode=dw(e.blendMode,l),r.state.set(this.state);const d=r.gl,u=e.worldTransform.copyTo(this.tempMatrix);u.prepend(r.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=u.toArray(!0),this.shader.uniforms.uColor=Rt.shared.setValue(e.tintRgb).premultiply(e.worldAlpha,l).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=c,this.renderer.shader.bind(this.shader);let h=!1;for(let f=0,p=0;f<o;f+=s,p+=1){let m=o-f;m>s&&(m=s),p>=a.length&&a.push(this._generateOneMoreBuffer(e));const g=a[p];g.uploadDynamic(t,f,m);const v=e._bufferUpdateIDs[p]||0;h=h||g._updateID<v,h&&(g._updateID=e._updateID,g.uploadStatic(t,f,m)),r.geometry.bind(g.geometry),d.drawElements(d.TRIANGLES,m*6,d.UNSIGNED_SHORT,0)}}generateBuffers(e){const t=[],i=e._maxSize,s=e._batchSize,r=e._properties;for(let o=0;o<i;o+=s)t.push(new G0(this.properties,r,s));return t}_generateOneMoreBuffer(e){const t=e._batchSize,i=e._properties;return new G0(this.properties,i,t)}uploadVertices(e,t,i,s,r,o){let a=0,c=0,l=0,d=0;for(let u=0;u<i;++u){const h=e[t+u],f=h._texture,p=h.scale.x,m=h.scale.y,g=f.trim,v=f.orig;g?(c=g.x-h.anchor.x*v.width,a=c+g.width,d=g.y-h.anchor.y*v.height,l=d+g.height):(a=v.width*(1-h.anchor.x),c=v.width*-h.anchor.x,l=v.height*(1-h.anchor.y),d=v.height*-h.anchor.y),s[o]=c*p,s[o+1]=d*m,s[o+r]=a*p,s[o+r+1]=d*m,s[o+r*2]=a*p,s[o+r*2+1]=l*m,s[o+r*3]=c*p,s[o+r*3+1]=l*m,o+=r*4}}uploadPosition(e,t,i,s,r,o){for(let a=0;a<i;a++){const c=e[t+a].position;s[o]=c.x,s[o+1]=c.y,s[o+r]=c.x,s[o+r+1]=c.y,s[o+r*2]=c.x,s[o+r*2+1]=c.y,s[o+r*3]=c.x,s[o+r*3+1]=c.y,o+=r*4}}uploadRotation(e,t,i,s,r,o){for(let a=0;a<i;a++){const c=e[t+a].rotation;s[o]=c,s[o+r]=c,s[o+r*2]=c,s[o+r*3]=c,o+=r*4}}uploadUvs(e,t,i,s,r,o){for(let a=0;a<i;++a){const c=e[t+a]._texture._uvs;c?(s[o]=c.x0,s[o+1]=c.y0,s[o+r]=c.x1,s[o+r+1]=c.y1,s[o+r*2]=c.x2,s[o+r*2+1]=c.y2,s[o+r*3]=c.x3,s[o+r*3+1]=c.y3,o+=r*4):(s[o]=0,s[o+1]=0,s[o+r]=0,s[o+r+1]=0,s[o+r*2]=0,s[o+r*2+1]=0,s[o+r*3]=0,s[o+r*3+1]=0,o+=r*4)}}uploadTint(e,t,i,s,r,o){for(let a=0;a<i;++a){const c=e[t+a],l=Rt.shared.setValue(c._tintRGB).toPremultiplied(c.alpha,c.texture.baseTexture.alphaMode>0);s[o]=l,s[o+r]=l,s[o+r*2]=l,s[o+r*3]=l,o+=r*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}hS.extension={name:"particle",type:Oe.RendererPlugin};He.add(hS);var lh=(n=>(n[n.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",n[n.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",n))(lh||{});const Kc={willReadFrequently:!0},cs=class qe{static get experimentalLetterSpacingSupported(){let e=qe._experimentalLetterSpacingSupported;if(e!==void 0){const t=Ve.ADAPTER.getCanvasRenderingContext2D().prototype;e=qe._experimentalLetterSpacingSupported="letterSpacing"in t||"textLetterSpacing"in t}return e}constructor(e,t,i,s,r,o,a,c,l){this.text=e,this.style=t,this.width=i,this.height=s,this.lines=r,this.lineWidths=o,this.lineHeight=a,this.maxLineWidth=c,this.fontProperties=l}static measureText(e,t,i,s=qe._canvas){i=i??t.wordWrap;const r=t.toFontString(),o=qe.measureFont(r);o.fontSize===0&&(o.fontSize=t.fontSize,o.ascent=t.fontSize);const a=s.getContext("2d",Kc);a.font=r;const c=(i?qe.wordWrap(e,t,s):e).split(/(?:\r\n|\r|\n)/),l=new Array(c.length);let d=0;for(let p=0;p<c.length;p++){const m=qe._measureText(c[p],t.letterSpacing,a);l[p]=m,d=Math.max(d,m)}let u=d+t.strokeThickness;t.dropShadow&&(u+=t.dropShadowDistance);const h=t.lineHeight||o.fontSize+t.strokeThickness;let f=Math.max(h,o.fontSize+t.strokeThickness*2)+t.leading+(c.length-1)*(h+t.leading);return t.dropShadow&&(f+=t.dropShadowDistance),new qe(e,t,u,f,c,l,h+t.leading,d,o)}static _measureText(e,t,i){let s=!1;qe.experimentalLetterSpacingSupported&&(qe.experimentalLetterSpacing?(i.letterSpacing=`${t}px`,i.textLetterSpacing=`${t}px`,s=!0):(i.letterSpacing="0px",i.textLetterSpacing="0px"));let r=i.measureText(e).width;return r>0&&(s?r-=t:r+=(qe.graphemeSegmenter(e).length-1)*t),r}static wordWrap(e,t,i=qe._canvas){const s=i.getContext("2d",Kc);let r=0,o="",a="";const c=Object.create(null),{letterSpacing:l,whiteSpace:d}=t,u=qe.collapseSpaces(d),h=qe.collapseNewlines(d);let f=!u;const p=t.wordWrapWidth+l,
Line truncated
|
||||
`:e,e}static getFromCache(e,t,i,s){let r=i[e];return typeof r!="number"&&(r=qe._measureText(e,t,s)+t,i[e]=r),r}static collapseSpaces(e){return e==="normal"||e==="pre-line"}static collapseNewlines(e){return e==="normal"}static trimRight(e){if(typeof e!="string")return"";for(let t=e.length-1;t>=0;t--){const i=e[t];if(!qe.isBreakingSpace(i))break;e=e.slice(0,-1)}return e}static isNewline(e){return typeof e!="string"?!1:qe._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,t){return typeof e!="string"?!1:qe._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const t=[];let i="";if(typeof e!="string")return t;for(let s=0;s<e.length;s++){const r=e[s],o=e[s+1];if(qe.isBreakingSpace(r,o)||qe.isNewline(r)){i!==""&&(t.push(i),i=""),t.push(r);continue}i+=r}return i!==""&&t.push(i),t}static canBreakWords(e,t){return t}static canBreakChars(e,t,i,s,r){return!0}static wordWrapSplit(e){return qe.graphemeSegmenter(e)}static measureFont(e){if(qe._fonts[e])return qe._fonts[e];const t={ascent:0,descent:0,fontSize:0},i=qe._canvas,s=qe._context;s.font=e;const r=qe.METRICS_STRING+qe.BASELINE_SYMBOL,o=Math.ceil(s.measureText(r).width);let a=Math.ceil(s.measureText(qe.BASELINE_SYMBOL).width);const c=Math.ceil(qe.HEIGHT_MULTIPLIER*a);if(a=a*qe.BASELINE_MULTIPLIER|0,o===0||c===0)return qe._fonts[e]=t,t;i.width=o,i.height=c,s.fillStyle="#f00",s.fillRect(0,0,o,c),s.font=e,s.textBaseline="alphabetic",s.fillStyle="#000",s.fillText(r,0,a);const l=s.getImageData(0,0,o,c).data,d=l.length,u=o*4;let h=0,f=0,p=!1;for(h=0;h<a;++h){for(let m=0;m<u;m+=4)if(l[f+m]!==255){p=!0;break}if(!p)f+=u;else break}for(t.ascent=a-h,f=d-u,p=!1,h=c;h>a;--h){for(let m=0;m<u;m+=4)if(l[f+m]!==255){p=!0;break}if(!p)f-=u;else break}return t.descent=h-a,t.fontSize=t.ascent+t.descent,qe._fonts[e]=t,t}static clearMetrics(e=""){e?delete qe._fonts[e]:qe._fonts={}}static get _canvas(){var e;if(!qe.__canvas){let t;try{const i=new OffscreenCanvas(0,0);if((e=i.getContext("2d",Kc))!=null&&e.measureText)return qe.__canvas=i,i;t=Ve.ADAPTER.createCanvas()}catch{t=Ve.ADAPTER.createCanvas()}t.width=t.height=10,qe.__canvas=t}return qe.__canvas}static get _context(){return qe.__context||(qe.__context=qe._canvas.getContext("2d",Kc)),qe.__context}};cs.METRICS_STRING="|ÉqÅ",cs.BASELINE_SYMBOL="M",cs.BASELINE_MULTIPLIER=1.4,cs.HEIGHT_MULTIPLIER=2,cs.graphemeSegmenter=(()=>{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const n=new Intl.Segmenter;return e=>[...n.segment(e)].map(t=>t.segment)}return n=>[...n]})(),cs.experimentalLetterSpacing=!1,cs._fonts={},cs._newlines=[10,13],cs._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];let Rr=cs;const b2=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],fS=class Tl{constructor(e){this.styleID=0,this.reset(),Qf(this,e,e)}clone(){const e={};return Qf(e,this,Tl.defaultStyle),new Tl(e)}reset(){Qf(this,Tl.defaultStyle,Tl.defaultStyle)}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(e){const t=Zf(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}get fill(){return this._fill}set fill(e){const t=Zf(e);this._fill!==t&&(this._fill=t,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(e){y2(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}get letterSpacing(){return this._lett
Line truncated
|
||||
#define SHADER_NAME Tiling-Sprite-100
|
||||
|
||||
precision lowp float;
|
||||
@@ -1102,7 +1102,7 @@ void main(void)
|
||||
vec4 texSample = texture2D(uSampler, vTextureCoord);
|
||||
gl_FragColor = texSample * uColor;
|
||||
}
|
||||
`;const Jc=new Bt;class yS extends rh{constructor(e){super(e),e.runners.contextChange.add(this),this.quad=new Aw,this.state=ks.for2d()}contextChange(){const e=this.renderer,t={globals:e.globalUniforms};this.simpleShader=es.from(W0,L2,t),this.shader=e.context.webGLVersion>1?es.from(R2,k2,t):es.from(W0,F2,t)}render(e){const t=this.renderer,i=this.quad;let s=i.vertices;s[0]=s[6]=e._width*-e.anchor.x,s[1]=s[3]=e._height*-e.anchor.y,s[2]=s[4]=e._width*(1-e.anchor.x),s[5]=s[7]=e._height*(1-e.anchor.y);const r=e.uvRespectAnchor?e.anchor.x:0,o=e.uvRespectAnchor?e.anchor.y:0;s=i.uvs,s[0]=s[6]=-r,s[1]=s[3]=-o,s[2]=s[4]=1-r,s[5]=s[7]=1-o,i.invalidate();const a=e._texture,c=a.baseTexture,l=c.alphaMode>0,d=e.tileTransform.localTransform,u=e.uvMatrix;let h=c.isPowerOfTwo&&a.frame.width===c.width&&a.frame.height===c.height;h&&(c._glTextures[t.CONTEXT_UID]?h=c.wrapMode!==Jn.CLAMP:c.wrapMode===Jn.CLAMP&&(c.wrapMode=Jn.REPEAT));const f=h?this.simpleShader:this.shader,p=a.width,m=a.height,g=e._width,v=e._height;Jc.set(d.a*p/g,d.b*p/v,d.c*m/g,d.d*m/v,d.tx/g,d.ty/v),Jc.invert(),h?Jc.prepend(u.mapCoord):(f.uniforms.uMapCoord=u.mapCoord.toArray(!0),f.uniforms.uClampFrame=u.uClampFrame,f.uniforms.uClampOffset=u.uClampOffset),f.uniforms.uTransform=Jc.toArray(!0),f.uniforms.uColor=Rt.shared.setValue(e.tint).premultiply(e.worldAlpha,l).toArray(f.uniforms.uColor),f.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),f.uniforms.uSampler=a,t.shader.bind(f),t.geometry.bind(i),this.state.blendMode=dw(e.blendMode,l),t.state.set(this.state),t.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}yS.extension={name:"tilingSprite",type:Oe.RendererPlugin};He.add(yS);const xS=class El{constructor(e,t,i){this.linkedSheets=[],(e instanceof rt||e instanceof it)&&(e={texture:e,data:t,resolutionFilename:i});const{texture:s,data:r,resolutionFilename:o=null,cachePrefix:a=""}=e;this.cachePrefix=a,this._texture=s instanceof it?s:null,this.baseTexture=s instanceof rt?s:this._texture.baseTexture,this.textures={},this.animations={},this.data=r;const c=this.baseTexture.resource;this.resolution=this._updateResolution(o||(c?c.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}_updateResolution(e=null){const{scale:t}=this.data.meta;let i=fr(e,null);return i===null&&(i=typeof t=="number"?t:parseFloat(t??"1")),i!==1&&this.baseTexture.setResolution(i),i}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=El.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let t=e;const i=El.BATCH_SIZE;for(;t-e<i&&t<this._frameKeys.length;){const s=this._frameKeys[t],r=this._frames[s],o=r.frame;if(o){let a=null,c=null;const l=r.trimmed!==!1&&r.sourceSize?r.sourceSize:r.frame,d=new ht(0,0,Math.floor(l.w)/this.resolution,Math.floor(l.h)/this.resolution);r.rotated?a=new ht(Math.floor(o.x)/this.resolution,Math.floor(o.y)/this.resolution,Math.floor(o.h)/this.resolution,Math.floor(o.w)/this.resolution):a=new ht(Math.floor(o.x)/this.resolution,Math.floor(o.y)/this.resolution,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution),r.trimmed!==!1&&r.spriteSourceSize&&(c=new ht(Math.floor(r.spriteSourceSize.x)/this.resolution,Math.floor(r.spriteSourceSize.y)/this.resolution,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution)),this.textures[s]=new it(this.baseTexture,a,d,c,r.rotated?2:0,r.anchor,r.borders),it.addToCache(this.textures[s],this.cachePrefix+s.toString())}t++}}_processAnimations(){const e=this.data.animations||{};for(const t in e){this.animations[t]=[];for(let i=0;i<e[t].length;i++){const s=e[t][i];this.animations[t].push(this.textures[s])}}}_parseComplete(){const e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*El.BATCH_SIZE),this._batchIndex++,setTimeout(()=>{this._batchIndex*El.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())},0)}destroy(e=!1){var t;for(const i in this.textures)this.textures[i].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&((t=this._texture)==null||t.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null,this.linkedSheets=[]}};xS.BATCH_SIZE=1e3;let q0=xS;const D2=["jpg","png","jpeg","avif","webp","s3tc","s3tc_sRGB","etc","etc1","pvrtc","atc","astc","bptc"];function wS(n,e,t){const i={};if(n.forEach(s=>{i[s]=e}),Object.keys(e.textures).forEach(s=>{i[`${e.cachePrefix}${s}`]=e.textures[s]}),!t){const s=hi.dirname(n[0]);e.linkedSheets.forEach((r,o)=>{Object.assign(i,wS([`${s}/${e.data.meta.related_multi_packs[o]}`],r,!0))})}return i}const O2={extension:Oe.Asset,cache:{test:n=>n instanceof q0,getCacheableAssets:(n,e)=>wS(n,e,!1)},resolver:{test:n=>{const e=n.split("?")[0].split("."),t=e.pop(),i=e.pop();return t==="json"&&D2.includes(i)},parse:n=>{var t;const
Line truncated
|
||||
`;const Jc=new Bt;class yS extends rh{constructor(e){super(e),e.runners.contextChange.add(this),this.quad=new Aw,this.state=ks.for2d()}contextChange(){const e=this.renderer,t={globals:e.globalUniforms};this.simpleShader=es.from(W0,L2,t),this.shader=e.context.webGLVersion>1?es.from(R2,k2,t):es.from(W0,F2,t)}render(e){const t=this.renderer,i=this.quad;let s=i.vertices;s[0]=s[6]=e._width*-e.anchor.x,s[1]=s[3]=e._height*-e.anchor.y,s[2]=s[4]=e._width*(1-e.anchor.x),s[5]=s[7]=e._height*(1-e.anchor.y);const r=e.uvRespectAnchor?e.anchor.x:0,o=e.uvRespectAnchor?e.anchor.y:0;s=i.uvs,s[0]=s[6]=-r,s[1]=s[3]=-o,s[2]=s[4]=1-r,s[5]=s[7]=1-o,i.invalidate();const a=e._texture,c=a.baseTexture,l=c.alphaMode>0,d=e.tileTransform.localTransform,u=e.uvMatrix;let h=c.isPowerOfTwo&&a.frame.width===c.width&&a.frame.height===c.height;h&&(c._glTextures[t.CONTEXT_UID]?h=c.wrapMode!==Jn.CLAMP:c.wrapMode===Jn.CLAMP&&(c.wrapMode=Jn.REPEAT));const f=h?this.simpleShader:this.shader,p=a.width,m=a.height,g=e._width,v=e._height;Jc.set(d.a*p/g,d.b*p/v,d.c*m/g,d.d*m/v,d.tx/g,d.ty/v),Jc.invert(),h?Jc.prepend(u.mapCoord):(f.uniforms.uMapCoord=u.mapCoord.toArray(!0),f.uniforms.uClampFrame=u.uClampFrame,f.uniforms.uClampOffset=u.uClampOffset),f.uniforms.uTransform=Jc.toArray(!0),f.uniforms.uColor=Rt.shared.setValue(e.tint).premultiply(e.worldAlpha,l).toArray(f.uniforms.uColor),f.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),f.uniforms.uSampler=a,t.shader.bind(f),t.geometry.bind(i),this.state.blendMode=dw(e.blendMode,l),t.state.set(this.state),t.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}yS.extension={name:"tilingSprite",type:Oe.RendererPlugin};He.add(yS);const xS=class El{constructor(e,t,i){this.linkedSheets=[],(e instanceof rt||e instanceof it)&&(e={texture:e,data:t,resolutionFilename:i});const{texture:s,data:r,resolutionFilename:o=null,cachePrefix:a=""}=e;this.cachePrefix=a,this._texture=s instanceof it?s:null,this.baseTexture=s instanceof rt?s:this._texture.baseTexture,this.textures={},this.animations={},this.data=r;const c=this.baseTexture.resource;this.resolution=this._updateResolution(o||(c?c.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}_updateResolution(e=null){const{scale:t}=this.data.meta;let i=fr(e,null);return i===null&&(i=typeof t=="number"?t:parseFloat(t??"1")),i!==1&&this.baseTexture.setResolution(i),i}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=El.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let t=e;const i=El.BATCH_SIZE;for(;t-e<i&&t<this._frameKeys.length;){const s=this._frameKeys[t],r=this._frames[s],o=r.frame;if(o){let a=null,c=null;const l=r.trimmed!==!1&&r.sourceSize?r.sourceSize:r.frame,d=new ht(0,0,Math.floor(l.w)/this.resolution,Math.floor(l.h)/this.resolution);r.rotated?a=new ht(Math.floor(o.x)/this.resolution,Math.floor(o.y)/this.resolution,Math.floor(o.h)/this.resolution,Math.floor(o.w)/this.resolution):a=new ht(Math.floor(o.x)/this.resolution,Math.floor(o.y)/this.resolution,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution),r.trimmed!==!1&&r.spriteSourceSize&&(c=new ht(Math.floor(r.spriteSourceSize.x)/this.resolution,Math.floor(r.spriteSourceSize.y)/this.resolution,Math.floor(o.w)/this.resolution,Math.floor(o.h)/this.resolution)),this.textures[s]=new it(this.baseTexture,a,d,c,r.rotated?2:0,r.anchor,r.borders),it.addToCache(this.textures[s],this.cachePrefix+s.toString())}t++}}_processAnimations(){const e=this.data.animations||{};for(const t in e){this.animations[t]=[];for(let i=0;i<e[t].length;i++){const s=e[t][i];this.animations[t].push(this.textures[s])}}}_parseComplete(){const e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*El.BATCH_SIZE),this._batchIndex++,setTimeout(()=>{this._batchIndex*El.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())},0)}destroy(e=!1){var t;for(const i in this.textures)this.textures[i].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&((t=this._texture)==null||t.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null,this.linkedSheets=[]}};xS.BATCH_SIZE=1e3;let q0=xS;const D2=["jpg","png","jpeg","avif","webp","s3tc","s3tc_sRGB","etc","etc1","pvrtc","atc","astc","bptc"];function wS(n,e,t){const i={};if(n.forEach(s=>{i[s]=e}),Object.keys(e.textures).forEach(s=>{i[`${e.cachePrefix}${s}`]=e.textures[s]}),!t){const s=hi.dirname(n[0]);e.linkedSheets.forEach((r,o)=>{Object.assign(i,wS([`${s}/${e.data.meta.related_multi_packs[o]}`],r,!0))})}return i}const O2={extension:Oe.Asset,cache:{test:n=>n instanceof q0,getCacheableAssets:(n,e)=>wS(n,e,!1)},resolver:{test:n=>{const e=n.split("?")[0].split("."),t=e.pop(),i=e.pop();return t==="json"&&D2.includes(i)},parse:n=>{var t;const
Line truncated
|
||||
varying vec2 vTextureCoord;\r
|
||||
uniform sampler2D uSampler;\r
|
||||
\r
|
||||
@@ -1157,8 +1157,8 @@ void main(void)\r
|
||||
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r
|
||||
}\r
|
||||
`;const K0=[],J0=[],Z0=[],Y2=class CS extends _i{constructor(e,t={}){super();const{align:i,tint:s,maxWidth:r,letterSpacing:o,fontName:a,fontSize:c}=Object.assign({},CS.styleDefaults,t);if(!Mr.available[a])throw new Error(`Missing BitmapFont "${a}"`);this._activePagesMeshData=[],this._textWidth=0,this._textHeight=0,this._align=i,this._tintColor=new Rt(s),this._font=void 0,this._fontName=a,this._fontSize=c,this.text=e,this._maxWidth=r,this._maxLineHeight=0,this._letterSpacing=o,this._anchor=new Js(()=>{this.dirty=!0},this,0,0),this._roundPixels=Ve.ROUND_PIXELS,this.dirty=!0,this._resolution=Ve.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var M;const e=Mr.available[this._fontName],t=this.fontSize,i=t/e.size,s=new At,r=[],o=[],a=[],c=this._text.replace(/(?:\r\n|\r)/g,`
|
||||
`)||" ",l=SS(c),d=this._maxWidth*e.size/t,u=e.distanceFieldType==="none"?K0:J0;let h=null,f=0,p=0,m=0,g=-1,v=0,y=0,b=0,x=0;for(let k=0;k<l.length;k++){const B=l[k],D=Ed(B);if(/(?:\s)/.test(B)&&(g=k,v=f,x++),B==="\r"||B===`
|
||||
`){o.push(f),a.push(-1),p=Math.max(p,f),++m,++y,s.x=0,s.y+=e.lineHeight,h=null,x=0;continue}const G=e.chars[D];if(!G)continue;h&&G.kerning[h]&&(s.x+=G.kerning[h]);const V=Z0.pop()||{texture:it.EMPTY,line:0,charCode:0,prevSpaces:0,position:new At};V.texture=G.texture,V.line=m,V.charCode=D,V.position.x=Math.round(s.x+G.xOffset+this._letterSpacing/2),V.position.y=Math.round(s.y+G.yOffset),V.prevSpaces=x,r.push(V),f=V.position.x+Math.max(G.xAdvance-G.xOffset,G.texture.orig.width),s.x+=G.xAdvance+this._letterSpacing,b=Math.max(b,G.yOffset+G.texture.height),h=D,g!==-1&&d>0&&s.x>d&&(++y,Ia(r,1+g-y,1+k-g),k=g,g=-1,o.push(v),a.push(r.length>0?r[r.length-1].prevSpaces:0),p=Math.max(p,v),m++,s.x=0,s.y+=e.lineHeight,h=null,x=0)}const C=l[l.length-1];C!=="\r"&&C!==`
|
||||
`)||" ",l=SS(c),d=this._maxWidth*e.size/t,u=e.distanceFieldType==="none"?K0:J0;let h=null,f=0,p=0,m=0,g=-1,v=0,y=0,b=0,w=0;for(let k=0;k<l.length;k++){const B=l[k],D=Ed(B);if(/(?:\s)/.test(B)&&(g=k,v=f,w++),B==="\r"||B===`
|
||||
`){o.push(f),a.push(-1),p=Math.max(p,f),++m,++y,s.x=0,s.y+=e.lineHeight,h=null,w=0;continue}const G=e.chars[D];if(!G)continue;h&&G.kerning[h]&&(s.x+=G.kerning[h]);const V=Z0.pop()||{texture:it.EMPTY,line:0,charCode:0,prevSpaces:0,position:new At};V.texture=G.texture,V.line=m,V.charCode=D,V.position.x=Math.round(s.x+G.xOffset+this._letterSpacing/2),V.position.y=Math.round(s.y+G.yOffset),V.prevSpaces=w,r.push(V),f=V.position.x+Math.max(G.xAdvance-G.xOffset,G.texture.orig.width),s.x+=G.xAdvance+this._letterSpacing,b=Math.max(b,G.yOffset+G.texture.height),h=D,g!==-1&&d>0&&s.x>d&&(++y,Ia(r,1+g-y,1+k-g),k=g,g=-1,o.push(v),a.push(r.length>0?r[r.length-1].prevSpaces:0),p=Math.max(p,v),m++,s.x=0,s.y+=e.lineHeight,h=null,w=0)}const C=l[l.length-1];C!=="\r"&&C!==`
|
||||
`&&(/(?:\s)/.test(C)&&(f=v),o.push(f),p=Math.max(p,f),a.push(-1));const T=[];for(let k=0;k<=m;k++){let B=0;this._align==="right"?B=p-o[k]:this._align==="center"?B=(p-o[k])/2:this._align==="justify"&&(B=a[k]<0?0:(p-o[k])/a[k]),T.push(B)}const S=r.length,E={},_=[],I=this._activePagesMeshData;u.push(...I);for(let k=0;k<S;k++){const B=r[k].texture,D=B.baseTexture.uid;if(!E[D]){let G=u.pop();if(!G){const Y=new Fg;let L,N;e.distanceFieldType==="none"?(L=new ru(it.EMPTY),N=Qe.NORMAL):(L=new ru(it.EMPTY,{program:As.from(X2,V2),uniforms:{uFWidth:0}}),N=Qe.NORMAL_NPM);const F=new ec(Y,L);F.blendMode=N,G={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:F,vertices:null,uvs:null,indices:null}}G.index=0,G.indexCount=0,G.vertexCount=0,G.uvsCount=0,G.total=0;const{_textureCache:V}=this;V[D]=V[D]||new it(B.baseTexture),G.mesh.texture=V[D],G.mesh.tint=this._tintColor.value,_.push(G),E[D]=G}E[D].total++}for(let k=0;k<I.length;k++)_.includes(I[k])||this.removeChild(I[k].mesh);for(let k=0;k<_.length;k++)_[k].mesh.parent!==this&&this.addChild(_[k].mesh);this._activePagesMeshData=_;for(const k in E){const B=E[k],D=B.total;if(!(((M=B.indices)==null?void 0:M.length)>6*D)||B.vertices.length<ec.BATCHABLE_SIZE*2)B.vertices=new Float32Array(8*D),B.uvs=new Float32Array(8*D),B.indices=new Uint16Array(6*D);else{const G=B.total,V=B.vertices;for(let Y=G*4*2;Y<V.length;Y++)V[Y]=0}B.mesh.size=6*D}for(let k=0;k<S;k++){const B=r[k];let D=B.position.x+T[B.line]*(this._align==="justify"?B.prevSpaces:1);this._roundPixels&&(D=Math.round(D));const G=D*i,V=B.position.y*i,Y=B.texture,L=E[Y.baseTexture.uid],N=Y.frame,F=Y._uvs,$=L.index++;L.indices[$*6+0]=0+$*4,L.indices[$*6+1]=1+$*4,L.indices[$*6+2]=2+$*4,L.indices[$*6+3]=0+$*4,L.indices[$*6+4]=2+$*4,L.indices[$*6+5]=3+$*4,L.vertices[$*8+0]=G,L.vertices[$*8+1]=V,L.vertices[$*8+2]=G+N.width*i,L.vertices[$*8+3]=V,L.vertices[$*8+4]=G+N.width*i,L.vertices[$*8+5]=V+N.height*i,L.vertices[$*8+6]=G,L.vertices[$*8+7]=V+N.height*i,L.uvs[$*8+0]=F.x0,L.uvs[$*8+1]=F.y0,L.uvs[$*8+2]=F.x1,L.uvs[$*8+3]=F.y1,L.uvs[$*8+4]=F.x2,L.uvs[$*8+5]=F.y2,L.uvs[$*8+6]=F.x3,L.uvs[$*8+7]=F.y3}this._textWidth=p*i,this._textHeight=(s.y+e.lineHeight)*i;for(const k in E){const B=E[k];if(this.anchor.x!==0||this.anchor.y!==0){let Y=0;const L=this._textWidth*this.anchor.x,N=this._textHeight*this.anchor.y;for(let F=0;F<B.total;F++)B.vertices[Y++]-=L,B.vertices[Y++]-=N,B.vertices[Y++]-=L,B.vertices[Y++]-=N,B.vertices[Y++]-=L,B.vertices[Y++]-=N,B.vertices[Y++]-=L,B.vertices[Y++]-=N}this._maxLineHeight=b*i;const D=B.mesh.geometry.getBuffer("aVertexPosition"),G=B.mesh.geometry.getBuffer("aTextureCoord"),V=B.mesh.geometry.getIndex();D.data=B.vertices,G.data=B.uvs,V.data=B.indices,D.update(),G.update(),V.update()}for(let k=0;k<r.length;k++)Z0.push(r[k]);this._font=e,this.dirty=!1}updateTransform(){this.validate(),this.containerUpdateTransform()}_render(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0);const{distanceFieldRange:t,distanceFieldType:i,size:s}=Mr.available[this._fontName];if(i!=="none"){const{a:r,b:o,c:a,d:c}=this.worldTransform,l=Math.sqrt(r*r+o*o),d=Math.sqrt(a*a+c*c),u=(Math.abs(l)+Math.abs(d))/2,h=this.fontSize/s,f=e._view.resolution;for(const p of this._activePagesMeshData)p.mesh.shader.uniforms.uFWidth=u*t*h*f}super._render(e)}getLocalBounds(){return this.validate(),super.getLocalBounds()}validate(){const e=Mr.available[this._fontName];if(!e)throw new Error(`Missing BitmapFont "${this._fontName}"`);this._font!==e&&(this.dirty=!0),this.dirty&&this.updateText()}get tint(){return this._tintColor.value}set tint(e){if(this.tint!==e){this._tintColor.setValue(e);for(let t=0;t<this._activePagesMeshData.length;t++)this._activePagesMeshData[t].mesh.tint=e}}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.dirty=!0)}get fontName(){return this._fontName}set fontName(e){if(!Mr.available[e])throw new Error(`Missing BitmapFont "${e}"`);this._fontName!==e&&(this._fontName=e,this.dirty=!0)}get fontSize(){return this._fontSize??Mr.available[this._fontName].size}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.dirty=!0)}get anchor(){return this._anchor}set anchor(e){typeof e=="number"?this._anchor.set(e):this._anchor.copyFrom(e)}get text(){return this._text}set text(e){e=String(e??""),this._text!==e&&(this._text=e,this.dirty=!0)}get maxWidth(){return this._maxWidth}set maxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.dirty=!0)}get maxLineHeight(){return this.validate(),this._maxLineHeight}get textWidth(){return this.validate(),this._textWidth}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.dirty=!0)}get roundPixels(){return this._roundPixels}set roundPixels(e){e!==this._roundPixels&&(this._roundPixels=e,this.dirty=!0)}get textHeight(){return this.validate(),this._textHeight}get resolution(){return this._resolution}set resolution(e){this._autoResolution=!1,this._res
Line truncated
|
||||
@font-face {
|
||||
font-family: "${t.family}";
|
||||
@@ -1166,7 +1166,7 @@ void main(void)\r
|
||||
font-weight: ${t.weight};
|
||||
font-style: ${t.style};
|
||||
font-display: ${t.display};
|
||||
}`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(e){this._stylesheet!==e&&(this._stylesheet=e,this.styleID++)}normalizeColor(e){return Array.isArray(e)&&(e=DP(e)),typeof e=="number"?LP(e):e}dropShadowToCSS(){let e=this.normalizeColor(this.dropShadowColor);const t=this.dropShadowAlpha,i=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),s=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);e.startsWith("#")&&t<1&&(e+=(t*255|0).toString(16).padStart(2,"0"));const r=`${i}px ${s}px`;return this.dropShadowBlur>0?`text-shadow: ${r} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${r} ${e}`}reset(){Object.assign(this,va.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=Ve.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};vm.availableFonts={},vm.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};let tp=vm;const Zc=class ba extends to{constructor(e="",t={}){super(it.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const i=new Image,s=it.from(i,{scaleMode:Ve.SCALE_MODE,resourceOptions:{autoLoad:!1}});s.orig=new ht,s.trim=new ht,this.texture=s;const r="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",a=document.createElementNS(r,"svg"),c=document.createElementNS(r,"foreignObject"),l=document.createElementNS(o,"div"),d=document.createElementNS(o,"style");c.setAttribute("width","10000"),c.setAttribute("height","10000"),c.style.overflow="hidden",a.appendChild(c),this.maxWidth=ba.defaultMaxWidth,this.maxHeight=ba.defaultMaxHeight,this._domElement=l,this._styleElement=d,this._svgRoot=a,this._foreignObject=c,this._foreignObject.appendChild(d),this._foreignObject.appendChild(l),this._image=i,this._loadImage=new Image,this._autoResolution=ba.defaultAutoResolution,this._resolution=ba.defaultResolution??Ve.RESOLUTION,this.text=e,this.style=t}measureText(e){var d,u;const{text:t,style:i,resolution:s}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:i.toCSS(s)}),this._styleElement.textContent=i.toGlobalCSS(),document.body.appendChild(this._svgRoot);const r=this._domElement.getBoundingClientRect();this._svgRoot.remove();const{width:o,height:a}=r;(o>this.maxWidth||a>this.maxHeight)&&console.warn("[HTMLText] Large expanse of text, increase HTMLText.maxWidth or HTMLText.maxHeight property.");const c=Math.min(this.maxWidth,Math.ceil(o)),l=Math.min(this.maxHeight,Math.ceil(a));return this._svgRoot.setAttribute("width",c.toString()),this._svgRoot.setAttribute("height",l.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),i!==this._style&&(Object.assign(this._domElement,{style:(d=this._style)==null?void 0:d.toCSS(s)}),this._styleElement.textContent=(u=this._style)==null?void 0:u.toGlobalCSS()),{width:c+i.padding*2,height:l+i.padding*2}}async updateText(e=!0){const{style:t,_image:i,_loadImage:s}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:r,height:o}=this.measureText();i.width=s.width=Math.ceil(Math.max(1,r)),i.height=s.height=Math.ceil(Math.max(1,o)),this._updateID++;const a=this._updateID;await new Promise(c=>{s.onload=async()=>{if(a<this._updateID){c();return}await t.onBeforeDraw(),i.src=s.src,s.onload=null,s.src="",this.updateTexture(),c()};const l=new XMLSerializer().serializeToString(this._svgRoot);s.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(l)}`})}get source(){ret
Line truncated
|
||||
}`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(e){this._stylesheet!==e&&(this._stylesheet=e,this.styleID++)}normalizeColor(e){return Array.isArray(e)&&(e=DP(e)),typeof e=="number"?LP(e):e}dropShadowToCSS(){let e=this.normalizeColor(this.dropShadowColor);const t=this.dropShadowAlpha,i=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),s=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);e.startsWith("#")&&t<1&&(e+=(t*255|0).toString(16).padStart(2,"0"));const r=`${i}px ${s}px`;return this.dropShadowBlur>0?`text-shadow: ${r} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${r} ${e}`}reset(){Object.assign(this,va.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=Ve.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};vm.availableFonts={},vm.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};let tp=vm;const Zc=class ba extends to{constructor(e="",t={}){super(it.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const i=new Image,s=it.from(i,{scaleMode:Ve.SCALE_MODE,resourceOptions:{autoLoad:!1}});s.orig=new ht,s.trim=new ht,this.texture=s;const r="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",a=document.createElementNS(r,"svg"),c=document.createElementNS(r,"foreignObject"),l=document.createElementNS(o,"div"),d=document.createElementNS(o,"style");c.setAttribute("width","10000"),c.setAttribute("height","10000"),c.style.overflow="hidden",a.appendChild(c),this.maxWidth=ba.defaultMaxWidth,this.maxHeight=ba.defaultMaxHeight,this._domElement=l,this._styleElement=d,this._svgRoot=a,this._foreignObject=c,this._foreignObject.appendChild(d),this._foreignObject.appendChild(l),this._image=i,this._loadImage=new Image,this._autoResolution=ba.defaultAutoResolution,this._resolution=ba.defaultResolution??Ve.RESOLUTION,this.text=e,this.style=t}measureText(e){var d,u;const{text:t,style:i,resolution:s}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:i.toCSS(s)}),this._styleElement.textContent=i.toGlobalCSS(),document.body.appendChild(this._svgRoot);const r=this._domElement.getBoundingClientRect();this._svgRoot.remove();const{width:o,height:a}=r;(o>this.maxWidth||a>this.maxHeight)&&console.warn("[HTMLText] Large expanse of text, increase HTMLText.maxWidth or HTMLText.maxHeight property.");const c=Math.min(this.maxWidth,Math.ceil(o)),l=Math.min(this.maxHeight,Math.ceil(a));return this._svgRoot.setAttribute("width",c.toString()),this._svgRoot.setAttribute("height",l.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),i!==this._style&&(Object.assign(this._domElement,{style:(d=this._style)==null?void 0:d.toCSS(s)}),this._styleElement.textContent=(u=this._style)==null?void 0:u.toGlobalCSS()),{width:c+i.padding*2,height:l+i.padding*2}}async updateText(e=!0){const{style:t,_image:i,_loadImage:s}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:r,height:o}=this.measureText();i.width=s.width=Math.ceil(Math.max(1,r)),i.height=s.height=Math.ceil(Math.max(1,o)),this._updateID++;const a=this._updateID;await new Promise(c=>{s.onload=async()=>{if(a<this._updateID){c();return}await t.onBeforeDraw(),i.src=s.src,s.onload=null,s.src="",this.updateTexture(),c()};const l=new XMLSerializer().serializeToString(this._svgRoot);s.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(l)}`})}get source(){ret
Line truncated
|
||||
* shared v11.4.16
|
||||
* (c) 2026 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
@@ -1175,16 +1175,16 @@ void main(void)\r
|
||||
* (c) 2026 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/function NF(n,e,t){return{line:n,column:e,offset:t}}function wm(n,e,t){return{start:n,end:e}}const Lt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},$F=17;function dh(n,e,t={}){const{domain:i,messages:s,args:r}=t,o=n,a=new SyntaxError(String(o));return a.code=n,e&&(a.location=e),a.domain=i,a}function BF(n){throw n}const ss=" ",UF="\r",Ui=`
|
||||
`,VF="\u2028",XF="\u2029";function YF(n){const e=n;let t=0,i=1,s=1,r=0;const o=S=>e[S]===UF&&e[S+1]===Ui,a=S=>e[S]===Ui,c=S=>e[S]===XF,l=S=>e[S]===VF,d=S=>o(S)||a(S)||c(S)||l(S),u=()=>t,h=()=>i,f=()=>s,p=()=>r,m=S=>o(S)||c(S)||l(S)?Ui:e[S],g=()=>m(t),v=()=>m(t+r);function y(){return r=0,d(t)&&(i++,s=0),o(t)&&t++,t++,s++,e[t]}function b(){return o(t+r)&&r++,r++,e[t+r]}function x(){t=0,i=1,s=1,r=0}function C(S=0){r=S}function T(){const S=t+r;for(;S!==t;)y();r=0}return{index:u,line:h,column:f,peekOffset:p,charAt:m,currentChar:g,currentPeek:v,next:y,peek:b,reset:x,resetPeek:C,skipToPeek:T}}const Bs=void 0,zF=".",uy="'",jF="tokenizer";function HF(n,e={}){const t=e.location!==!1,i=YF(n),s=()=>i.index(),r=()=>NF(i.line(),i.column(),i.index()),o=r(),a=s(),c={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},l=()=>c,{onError:d}=e;function u(U,W,ee,...ne){const ue=l();if(W.column+=ee,W.offset+=ee,d){const xe=t?wm(ue.startLoc,W):null,ye=dh(U,xe,{domain:jF,args:ne});d(ye)}}function h(U,W,ee){U.endLoc=r(),U.currentType=W;const ne={type:W};return t&&(ne.loc=wm(U.startLoc,U.endLoc)),ee!=null&&(ne.value=ee),ne}const f=U=>h(U,13);function p(U,W){return U.currentChar()===W?(U.next(),W):(u(Lt.EXPECTED_TOKEN,r(),0,W),"")}function m(U){let W="";for(;U.currentPeek()===ss||U.currentPeek()===Ui;)W+=U.currentPeek(),U.peek();return W}function g(U){const W=m(U);return U.skipToPeek(),W}function v(U){if(U===Bs)return!1;const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W===95}function y(U){if(U===Bs)return!1;const W=U.charCodeAt(0);return W>=48&&W<=57}function b(U,W){const{currentType:ee}=W;if(ee!==2)return!1;m(U);const ne=v(U.currentPeek());return U.resetPeek(),ne}function x(U,W){const{currentType:ee}=W;if(ee!==2)return!1;m(U);const ne=U.currentPeek()==="-"?U.peek():U.currentPeek(),ue=y(ne);return U.resetPeek(),ue}function C(U,W){const{currentType:ee}=W;if(ee!==2)return!1;m(U);const ne=U.currentPeek()===uy;return U.resetPeek(),ne}function T(U,W){const{currentType:ee}=W;if(ee!==7)return!1;m(U);const ne=U.currentPeek()===".";return U.resetPeek(),ne}function S(U,W){const{currentType:ee}=W;if(ee!==8)return!1;m(U);const ne=v(U.currentPeek());return U.resetPeek(),ne}function E(U,W){const{currentType:ee}=W;if(!(ee===7||ee===11))return!1;m(U);const ne=U.currentPeek()===":";return U.resetPeek(),ne}function _(U,W){const{currentType:ee}=W;if(ee!==9)return!1;const ne=()=>{const xe=U.currentPeek();return xe==="{"?v(U.peek()):xe==="@"||xe==="|"||xe===":"||xe==="."||xe===ss||!xe?!1:xe===Ui?(U.peek(),ne()):M(U,!1)},ue=ne();return U.resetPeek(),ue}function I(U){m(U);const W=U.currentPeek()==="|";return U.resetPeek(),W}function M(U,W=!0){const ee=(ue=!1,xe="")=>{const ye=U.currentPeek();return ye==="{"||ye==="@"||!ye?ue:ye==="|"?!(xe===ss||xe===Ui):ye===ss?(U.peek(),ee(!0,ss)):ye===Ui?(U.peek(),ee(!0,Ui)):!0},ne=ee();return W&&U.resetPeek(),ne}function k(U,W){const ee=U.currentChar();return ee===Bs?Bs:W(ee)?(U.next(),ee):null}function B(U){const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36}function D(U){return k(U,B)}function G(U){const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36||W===45}function V(U){return k(U,G)}function Y(U){const W=U.charCodeAt(0);return W>=48&&W<=57}function L(U){return k(U,Y)}function N(U){const W=U.charCodeAt(0);return W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102}function F(U){return k(U,N)}function $(U){let W="",ee="";for(;W=L(U);)ee+=W;return ee}function X(U){let W="";for(;;){const ee=U.currentChar();if(ee==="\\"){const ne=U.peek();ne==="{"||ne==="}"||ne==="@"||ne==="|"||ne==="\\"?(W+=ee+ne,U.next(),U.next()):(U.resetPeek(),W+=ee,U.next())}else{if(ee==="{"||ee==="}"||ee==="@"||ee==="|"||!ee)break;if(ee===ss||ee===Ui)if(M(U))W+=ee,U.next();else{if(I(U))break;W+=ee,U.next()}else W+=ee,U.next()}}return W}function z(U){g(U);let W="",ee="";for(;W=V(U);)ee+=W;const ne=U.currentChar();if(ne&&ne!=="}"&&ne!==Bs&&ne!==ss&&ne!==Ui&&ne!==" "){const ue=fe(U);return u(Lt.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,ee+ue),ee+ue}return U.currentChar()===Bs&&u(Lt.UNTERMINATED_CLOSING_BRACE,r(),0),ee}function K(U){g(U);let W="";return U.currentChar()==="-"?(U.next(),W+=`-${$(U)}`):W+=$(U),U.currentChar()===Bs&&u(Lt.UNTERMINATED_CLOSING_BRACE,r(),0),W}function J(U){return U!==uy&&U!==Ui}function oe(U){g(U),p(U,"'");let W="",ee="";for(;W=k(U,J);)W==="\\"?ee+=le(U):ee+=W;const ne=U.currentChar();return ne===Ui||ne===Bs?(u(Lt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),ne===Ui&&(U.next(),p(U,"'")),ee):(p(U,"'"),ee)}function le(U){const W=U.currentChar();switch(W){case"\\":case"'":return U.next(),`\\${W}`;case"u":return ve(U,W,4);case"U":return ve(U,W,6);default:return u(Lt.UNKNOWN_ESCAPE_SEQUENCE,r(),0,W),""}}function ve(U,W,ee){p(U,W);let ne="";for(let ue=0;ue<ee;ue++){const xe=F(U);if(!xe){u(Lt.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${W}${ne}${U.currentChar()}`);break}ne+=xe}return`\\$Line truncated
|
||||
`,VF="\u2028",XF="\u2029";function YF(n){const e=n;let t=0,i=1,s=1,r=0;const o=S=>e[S]===UF&&e[S+1]===Ui,a=S=>e[S]===Ui,c=S=>e[S]===XF,l=S=>e[S]===VF,d=S=>o(S)||a(S)||c(S)||l(S),u=()=>t,h=()=>i,f=()=>s,p=()=>r,m=S=>o(S)||c(S)||l(S)?Ui:e[S],g=()=>m(t),v=()=>m(t+r);function y(){return r=0,d(t)&&(i++,s=0),o(t)&&t++,t++,s++,e[t]}function b(){return o(t+r)&&r++,r++,e[t+r]}function w(){t=0,i=1,s=1,r=0}function C(S=0){r=S}function T(){const S=t+r;for(;S!==t;)y();r=0}return{index:u,line:h,column:f,peekOffset:p,charAt:m,currentChar:g,currentPeek:v,next:y,peek:b,reset:w,resetPeek:C,skipToPeek:T}}const Bs=void 0,zF=".",uy="'",jF="tokenizer";function HF(n,e={}){const t=e.location!==!1,i=YF(n),s=()=>i.index(),r=()=>NF(i.line(),i.column(),i.index()),o=r(),a=s(),c={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},l=()=>c,{onError:d}=e;function u(U,W,ee,...ne){const ue=l();if(W.column+=ee,W.offset+=ee,d){const xe=t?wm(ue.startLoc,W):null,ye=dh(U,xe,{domain:jF,args:ne});d(ye)}}function h(U,W,ee){U.endLoc=r(),U.currentType=W;const ne={type:W};return t&&(ne.loc=wm(U.startLoc,U.endLoc)),ee!=null&&(ne.value=ee),ne}const f=U=>h(U,13);function p(U,W){return U.currentChar()===W?(U.next(),W):(u(Lt.EXPECTED_TOKEN,r(),0,W),"")}function m(U){let W="";for(;U.currentPeek()===ss||U.currentPeek()===Ui;)W+=U.currentPeek(),U.peek();return W}function g(U){const W=m(U);return U.skipToPeek(),W}function v(U){if(U===Bs)return!1;const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W===95}function y(U){if(U===Bs)return!1;const W=U.charCodeAt(0);return W>=48&&W<=57}function b(U,W){const{currentType:ee}=W;if(ee!==2)return!1;m(U);const ne=v(U.currentPeek());return U.resetPeek(),ne}function w(U,W){const{currentType:ee}=W;if(ee!==2)return!1;m(U);const ne=U.currentPeek()==="-"?U.peek():U.currentPeek(),ue=y(ne);return U.resetPeek(),ue}function C(U,W){const{currentType:ee}=W;if(ee!==2)return!1;m(U);const ne=U.currentPeek()===uy;return U.resetPeek(),ne}function T(U,W){const{currentType:ee}=W;if(ee!==7)return!1;m(U);const ne=U.currentPeek()===".";return U.resetPeek(),ne}function S(U,W){const{currentType:ee}=W;if(ee!==8)return!1;m(U);const ne=v(U.currentPeek());return U.resetPeek(),ne}function E(U,W){const{currentType:ee}=W;if(!(ee===7||ee===11))return!1;m(U);const ne=U.currentPeek()===":";return U.resetPeek(),ne}function _(U,W){const{currentType:ee}=W;if(ee!==9)return!1;const ne=()=>{const xe=U.currentPeek();return xe==="{"?v(U.peek()):xe==="@"||xe==="|"||xe===":"||xe==="."||xe===ss||!xe?!1:xe===Ui?(U.peek(),ne()):M(U,!1)},ue=ne();return U.resetPeek(),ue}function I(U){m(U);const W=U.currentPeek()==="|";return U.resetPeek(),W}function M(U,W=!0){const ee=(ue=!1,xe="")=>{const ye=U.currentPeek();return ye==="{"||ye==="@"||!ye?ue:ye==="|"?!(xe===ss||xe===Ui):ye===ss?(U.peek(),ee(!0,ss)):ye===Ui?(U.peek(),ee(!0,Ui)):!0},ne=ee();return W&&U.resetPeek(),ne}function k(U,W){const ee=U.currentChar();return ee===Bs?Bs:W(ee)?(U.next(),ee):null}function B(U){const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36}function D(U){return k(U,B)}function G(U){const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36||W===45}function V(U){return k(U,G)}function Y(U){const W=U.charCodeAt(0);return W>=48&&W<=57}function L(U){return k(U,Y)}function N(U){const W=U.charCodeAt(0);return W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102}function F(U){return k(U,N)}function $(U){let W="",ee="";for(;W=L(U);)ee+=W;return ee}function X(U){let W="";for(;;){const ee=U.currentChar();if(ee==="\\"){const ne=U.peek();ne==="{"||ne==="}"||ne==="@"||ne==="|"||ne==="\\"?(W+=ee+ne,U.next(),U.next()):(U.resetPeek(),W+=ee,U.next())}else{if(ee==="{"||ee==="}"||ee==="@"||ee==="|"||!ee)break;if(ee===ss||ee===Ui)if(M(U))W+=ee,U.next();else{if(I(U))break;W+=ee,U.next()}else W+=ee,U.next()}}return W}function z(U){g(U);let W="",ee="";for(;W=V(U);)ee+=W;const ne=U.currentChar();if(ne&&ne!=="}"&&ne!==Bs&&ne!==ss&&ne!==Ui&&ne!==" "){const ue=fe(U);return u(Lt.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,ee+ue),ee+ue}return U.currentChar()===Bs&&u(Lt.UNTERMINATED_CLOSING_BRACE,r(),0),ee}function K(U){g(U);let W="";return U.currentChar()==="-"?(U.next(),W+=`-${$(U)}`):W+=$(U),U.currentChar()===Bs&&u(Lt.UNTERMINATED_CLOSING_BRACE,r(),0),W}function J(U){return U!==uy&&U!==Ui}function oe(U){g(U),p(U,"'");let W="",ee="";for(;W=k(U,J);)W==="\\"?ee+=le(U):ee+=W;const ne=U.currentChar();return ne===Ui||ne===Bs?(u(Lt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),ne===Ui&&(U.next(),p(U,"'")),ee):(p(U,"'"),ee)}function le(U){const W=U.currentChar();switch(W){case"\\":case"'":return U.next(),`\\${W}`;case"u":return ve(U,W,4);case"U":return ve(U,W,6);default:return u(Lt.UNKNOWN_ESCAPE_SEQUENCE,r(),0,W),""}}function ve(U,W,ee){p(U,W);let ne="";for(let ue=0;ue<ee;ue++){const xe=F(U);if(!xe){u(Lt.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${W}${ne}${U.currentChar()}`);break}ne+=xe}return`\\$Line truncated
|
||||
`,r=e.needIndent?e.needIndent:t!=="arrow",o=n.helpers||[],a=iL(n,{filename:i,breakLineCode:s,needIndent:r});a.push(t==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(r),o.length>0&&(a.push(`const { ${$g(o.map(d=>`${d}: _${d}`),", ")} } = ctx`),a.newline()),a.push("return "),za(a,n),a.deindent(r),a.push("}"),delete n.helpers;const{code:c,map:l}=a.context();return{ast:n,code:c,map:l?l.toJSON():void 0}};function lL(n,e={}){const t=gi({},e),i=!!t.jit,s=!!t.minify,r=t.optimize==null?!0:t.optimize,a=ZF(t).parse(n);return i?(r&&tL(a),s&&ya(a),{ast:a,code:""}):(eL(a,t),aL(a,t))}/*!
|
||||
* core-base v11.4.16
|
||||
* (c) 2026 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/function cL(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(zr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Xo(n){return Tt(n)&&Vg(n)===0&&(Ln(n,"b")||Ln(n,"body"))}const NS=["b","body"];function dL(n){return no(n,NS)}const $S=["c","cases"];function uL(n){return no(n,$S,[])}const BS=["s","static"];function hL(n){return no(n,BS)}const US=["i","items"];function fL(n){return no(n,US,[])}const VS=["t","type"];function Vg(n){return no(n,VS)}const XS=["v","value"];function od(n,e){const t=no(n,XS);if(t!=null)return t;throw ic(e)}const YS=["m","modifier"];function pL(n){return no(n,YS)}const zS=["k","key"];function mL(n){const e=no(n,zS);if(e)return e;throw ic(6)}function no(n,e,t){for(let i=0;i<e.length;i++){const s=e[i];if(Ln(n,s)&&n[s]!=null)return n[s]}return t}const jS=[...NS,...$S,...BS,...US,...zS,...YS,...XS,...VS];function ic(n){return new Error(`unhandled node type: ${n}`)}function op(n){return t=>gL(t,n)}function gL(n,e){const t=dL(e);if(t==null)throw ic(0);if(Vg(t)===1){const r=uL(t);return n.plural(r.reduce((o,a)=>[...o,py(n,a)],[]))}else return py(n,t)}function py(n,e){const t=hL(e);if(t!=null)return n.type==="text"?t:n.normalize([t]);{const i=fL(e).reduce((s,r)=>[...s,Sm(n,r)],[]);return n.normalize(i)}}function Sm(n,e){const t=Vg(e);switch(t){case 3:return od(e,t);case 9:return od(e,t);case 4:{const i=e;if(Ln(i,"k")&&i.k)return n.interpolate(n.named(i.k));if(Ln(i,"key")&&i.key)return n.interpolate(n.named(i.key));throw ic(t)}case 5:{const i=e;if(Ln(i,"i")&&xi(i.i))return n.interpolate(n.list(i.i));if(Ln(i,"index")&&xi(i.index))return n.interpolate(n.list(i.index));throw ic(t)}case 6:{const i=e,s=pL(i),r=mL(i);return n.linked(Sm(n,r),s?Sm(n,s):void 0,n.type)}case 7:return od(e,t);case 8:return od(e,t);default:throw new Error(`unhandled node on format message part: ${t}`)}}const vL=n=>n;let ad=$t();function bL(n,e={}){let t=!1;const i=e.onError||BF;return e.onError=s=>{t=!0,i(s)},{...lL(n,e),detectError:t}}function yL(n,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ze(n)){kt(e.warnHtmlMessage)&&e.warnHtmlMessage;const i=(e.onCacheKey||vL)(n),s=ad[i];if(s)return s;const{ast:r,detectError:o}=bL(n,{...e,location:!1,jit:!0}),a=op(r);return o?a:ad[i]=a}else{if(!Xo(n))return(()=>n);const t=n.cacheKey;if(t){const i=ad[t];return i||(ad[t]=op(n))}else return op(n)}}let nc=null;function xL(n){nc=n}function wL(n,e,t){nc&&nc.emit("i18n:init",{timestamp:Date.now(),i18n:n,version:e,meta:t})}const SL=CL("function:translate");function CL(n){return e=>nc&&nc.emit(n,e)}const Zs={INVALID_ARGUMENT:$F,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},AL=24;function Qs(n){return dh(n,null,void 0)}function Xg(n,e){return e.locale!=null?my(e.locale):my(n.locale)}let ap;function my(n){if(ze(n))return n;if(Kt(n)){if(n.resolvedOnce&&ap!=null)return ap;if(n.constructor.name==="Function"){const e=n();if(yF(e))throw Qs(Zs.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ap=e}else throw Qs(Zs.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Qs(Zs.NOT_SUPPORT_LOCALE_TYPE)}function TL(n,e,t){return[...new Set([t,...Jt(e)?e:Tt(e)?Object.keys(e).filter(i=>i!=="default"):ze(e)?[e]:[t]])]}function EL(n,e,t){const i=ze(t)?t:sc,s=n;let r;Tt(e)?(s.__localeChainObjectCache||(s.__localeChainObjectCache=new WeakMap),r=s.__localeChainObjectCache.get(e),r||(r=new Map,s.__localeChainObjectCache.set(e,r))):(s.__localeChainCache||(s.__localeChainCache=new Map),r=s.__localeChainCache.get(e),r||(r=new Map,s.__localeChainCache.set(e,r)));const o=r.get(i);if(o)return o;const a=[];let c=[t];for(;Jt(c);)c=gy(a,c,e);const l=Jt(e)||!Yt(e)?e:e.default?e.default:null;return c=ze(l)?[l]:l,Jt(c)&&gy(a,c,!1),r.set(i,a),a}function gy(n,e,t){let i=!0;for(let s=0;s<e.length&&kt(i);s++){const r=e[s];ze(r)&&(i=_L(n,e[s],t))}return i}function _L(n,e,t){let i;const s=e.split("-");do{const r=s.join("-");i=ML(n,r,t),s.splice(-1,1)}while(s.length&&i===!0);return i}function ML(n,e,t){let i=!1;if(!n.includes(e)&&(i=!0,e)){i=e[e.length-1]!=="!";const s=e.replace(/!/g,"");n.push(s),(Jt(t)||Yt(t))&&t[s]&&(i=t[s])}return i}const so=[];so[0]={w:[0],i:[3,0],"[":[4],o:[7]};so[1]={w:[1],".":[2],"[":[4],o:[7]};so[2]={w:[2],i:[3,0],0:[3,0]};so[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};so[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};so[5]={"'":[4,0],o:8,l:[5,0]};so[6]={'"':[4,0],o:8,l:[6,0]};const PL=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function IL(n){return PL.test(n)}function kL(n){const e=n.charCodeAt(0),t=n.charCodeAt(n.length-1);return e===t&&(e===34||e===39)?n.slice(1,-1):n}function RL(n){if(n==null)return"o";switch(n.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return n;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function FL(n){const e=n.trim();return n.charAt(0)==="0"&&Line truncated
|
||||
*/function cL(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(zr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Xo(n){return Tt(n)&&Vg(n)===0&&(Ln(n,"b")||Ln(n,"body"))}const NS=["b","body"];function dL(n){return no(n,NS)}const $S=["c","cases"];function uL(n){return no(n,$S,[])}const BS=["s","static"];function hL(n){return no(n,BS)}const US=["i","items"];function fL(n){return no(n,US,[])}const VS=["t","type"];function Vg(n){return no(n,VS)}const XS=["v","value"];function od(n,e){const t=no(n,XS);if(t!=null)return t;throw ic(e)}const YS=["m","modifier"];function pL(n){return no(n,YS)}const zS=["k","key"];function mL(n){const e=no(n,zS);if(e)return e;throw ic(6)}function no(n,e,t){for(let i=0;i<e.length;i++){const s=e[i];if(Ln(n,s)&&n[s]!=null)return n[s]}return t}const jS=[...NS,...$S,...BS,...US,...zS,...YS,...XS,...VS];function ic(n){return new Error(`unhandled node type: ${n}`)}function op(n){return t=>gL(t,n)}function gL(n,e){const t=dL(e);if(t==null)throw ic(0);if(Vg(t)===1){const r=uL(t);return n.plural(r.reduce((o,a)=>[...o,py(n,a)],[]))}else return py(n,t)}function py(n,e){const t=hL(e);if(t!=null)return n.type==="text"?t:n.normalize([t]);{const i=fL(e).reduce((s,r)=>[...s,Sm(n,r)],[]);return n.normalize(i)}}function Sm(n,e){const t=Vg(e);switch(t){case 3:return od(e,t);case 9:return od(e,t);case 4:{const i=e;if(Ln(i,"k")&&i.k)return n.interpolate(n.named(i.k));if(Ln(i,"key")&&i.key)return n.interpolate(n.named(i.key));throw ic(t)}case 5:{const i=e;if(Ln(i,"i")&&xi(i.i))return n.interpolate(n.list(i.i));if(Ln(i,"index")&&xi(i.index))return n.interpolate(n.list(i.index));throw ic(t)}case 6:{const i=e,s=pL(i),r=mL(i);return n.linked(Sm(n,r),s?Sm(n,s):void 0,n.type)}case 7:return od(e,t);case 8:return od(e,t);default:throw new Error(`unhandled node on format message part: ${t}`)}}const vL=n=>n;let ad=$t();function bL(n,e={}){let t=!1;const i=e.onError||BF;return e.onError=s=>{t=!0,i(s)},{...lL(n,e),detectError:t}}function yL(n,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ze(n)){kt(e.warnHtmlMessage)&&e.warnHtmlMessage;const i=(e.onCacheKey||vL)(n),s=ad[i];if(s)return s;const{ast:r,detectError:o}=bL(n,{...e,location:!1,jit:!0}),a=op(r);return o?a:ad[i]=a}else{if(!Xo(n))return(()=>n);const t=n.cacheKey;if(t){const i=ad[t];return i||(ad[t]=op(n))}else return op(n)}}let nc=null;function xL(n){nc=n}function wL(n,e,t){nc&&nc.emit("i18n:init",{timestamp:Date.now(),i18n:n,version:e,meta:t})}const SL=CL("function:translate");function CL(n){return e=>nc&&nc.emit(n,e)}const Zs={INVALID_ARGUMENT:$F,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},AL=24;function Qs(n){return dh(n,null,void 0)}function Xg(n,e){return e.locale!=null?my(e.locale):my(n.locale)}let ap;function my(n){if(ze(n))return n;if(Kt(n)){if(n.resolvedOnce&&ap!=null)return ap;if(n.constructor.name==="Function"){const e=n();if(yF(e))throw Qs(Zs.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ap=e}else throw Qs(Zs.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Qs(Zs.NOT_SUPPORT_LOCALE_TYPE)}function TL(n,e,t){return[...new Set([t,...Jt(e)?e:Tt(e)?Object.keys(e).filter(i=>i!=="default"):ze(e)?[e]:[t]])]}function EL(n,e,t){const i=ze(t)?t:sc,s=n;let r;Tt(e)?(s.__localeChainObjectCache||(s.__localeChainObjectCache=new WeakMap),r=s.__localeChainObjectCache.get(e),r||(r=new Map,s.__localeChainObjectCache.set(e,r))):(s.__localeChainCache||(s.__localeChainCache=new Map),r=s.__localeChainCache.get(e),r||(r=new Map,s.__localeChainCache.set(e,r)));const o=r.get(i);if(o)return o;const a=[];let c=[t];for(;Jt(c);)c=gy(a,c,e);const l=Jt(e)||!Yt(e)?e:e.default?e.default:null;return c=ze(l)?[l]:l,Jt(c)&&gy(a,c,!1),r.set(i,a),a}function gy(n,e,t){let i=!0;for(let s=0;s<e.length&&kt(i);s++){const r=e[s];ze(r)&&(i=_L(n,e[s],t))}return i}function _L(n,e,t){let i;const s=e.split("-");do{const r=s.join("-");i=ML(n,r,t),s.splice(-1,1)}while(s.length&&i===!0);return i}function ML(n,e,t){let i=!1;if(!n.includes(e)&&(i=!0,e)){i=e[e.length-1]!=="!";const s=e.replace(/!/g,"");n.push(s),(Jt(t)||Yt(t))&&t[s]&&(i=t[s])}return i}const so=[];so[0]={w:[0],i:[3,0],"[":[4],o:[7]};so[1]={w:[1],".":[2],"[":[4],o:[7]};so[2]={w:[2],i:[3,0],0:[3,0]};so[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};so[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};so[5]={"'":[4,0],o:8,l:[5,0]};so[6]={'"':[4,0],o:8,l:[6,0]};const PL=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function IL(n){return PL.test(n)}function kL(n){const e=n.charCodeAt(0),t=n.charCodeAt(n.length-1);return e===t&&(e===34||e===39)?n.slice(1,-1):n}function RL(n){if(n==null)return"o";switch(n.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return n;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function FL(n){const e=n.trim();return n.charAt(0)==="0"&&Line truncated
|
||||
* vue-i18n v11.4.16
|
||||
* (c) 2026 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/const rD="11.4.16";function oD(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(zr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(zr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(zr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zr().__INTLIFY_PROD_DEVTOOLS__=!1)}const sn={UNEXPECTED_RETURN_TYPE:AL,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function hn(n,...e){return dh(n,null,void 0)}const Em=io("__translateVNode"),_m=io("__datetimeParts"),Mm=io("__numberParts"),oC=io("__setPluralRules"),aC=io("__injectWithOption"),wa=io("__dispose");let lC=null;{const n=zr().__VUE_INSTANCE_SETTERS__;Jt(n)&&n.push(e=>{lC=e})}function Fr(n){return!!DS(n)}function rc(n){if(!Tt(n)||Xo(n))return n;for(const e in n)if(Ln(n,e))if(!e.includes("."))Tt(n[e])&&rc(n[e]);else{const t=e.split("."),i=t.length-1;let s=n,r=!1;for(let a=0;a<i;a++){if(t[a]==="__proto__")throw new Error(`unsafe key: ${t[a]}`);if(t[a]in s||(s[t[a]]=$t()),!Tt(s[t[a]])){r=!0;break}if(Xo(s[t[a]])&&(jS.includes(t[a+1])||t[a+1]==="cacheKey")){r=!0;break}s=s[t[a]]}r||(s[t[i]]=n[e],delete n[e]);const o=s[t[i]];Tt(o)&&rc(o)}return n}function Yg(n,e){const{messages:t,__i18n:i,messageResolver:s,flatJson:r}=e,o=Yt(t)?t:Jt(i)?$t():{[n]:$t()};if(Jt(i)&&i.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:l}=a;if(c){if(Fr(c))return;o[c]=Ii(o,c)||$t(),Pd(l,o[c])}else Pd(l,o)}else ze(a)&&Pd(JSON.parse(a),o)}),s==null&&r)for(const a in o)Ln(o,a)&&rc(o[a]);return o}function cC(n){return n.type}function dC(n,e,t){let i=Tt(e.messages)?e.messages:$t();"__i18nGlobal"in t&&(i=Yg(n.locale.value,{messages:i,__i18n:t.__i18nGlobal}));const s=Object.keys(i);s.length&&s.forEach(r=>{n.mergeLocaleMessage(r,i[r])});{if(Tt(e.datetimeFormats)){const r=Object.keys(e.datetimeFormats);r.length&&r.forEach(o=>{n.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(Tt(e.numberFormats)){const r=Object.keys(e.numberFormats);r.length&&r.forEach(o=>{n.mergeNumberFormat(o,e.numberFormats[o])})}}}function My(n){return Ae(fc,null,n,0)}function oc(){return lC??Ku()}const Py="__INTLIFY_META__",Iy=()=>[],aD=()=>!1;let ky=0;function Ry(n){return((e,t,i,s)=>n(t,i,oc()||void 0,s))}const lD=()=>{const n=oc();let e=null;return n&&(e=cC(n)[Py])?{[Py]:e}:null};function hu(n={}){const{__root:e,__injectWithOption:t}=n,i=e===void 0,s=n.flatJson,r=cu?$e:SE;let o=kt(n.inheritLocale)?n.inheritLocale:!0;const a=r(e&&o?e.locale.value:ze(n.locale)?n.locale:sc),c=r(e&&o?e.fallbackLocale.value:ze(n.fallbackLocale)||Jt(n.fallbackLocale)||Yt(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),l=r(Yg(a.value,n)),d=r(Yt(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),u=r(Yt(n.numberFormats)?n.numberFormats:{[a.value]:{}});let h=e?e.missingWarn:kt(n.missingWarn)||Ya(n.missingWarn)?n.missingWarn:!0,f=e?e.fallbackWarn:kt(n.fallbackWarn)||Ya(n.fallbackWarn)?n.fallbackWarn:!0,p=e?e.fallbackRoot:kt(n.fallbackRoot)?n.fallbackRoot:!0,m=!!n.fallbackFormat,g=Kt(n.missing)?n.missing:null,v=Kt(n.missing)?Ry(n.missing):null,y=Kt(n.postTranslation)?n.postTranslation:null,b=e?e.warnHtmlMessage:kt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,x=!!n.escapeParameter;const C=e?e.modifiers:Yt(n.modifiers)?n.modifiers:{};let T=n.pluralRules||e&&e.pluralRules,S;S=(()=>{i&&yy(null);const de={version:rD,locale:a.value,fallbackLocale:c.value,messages:l.value,modifiers:C,pluralRules:T,missing:v===null?void 0:v,missingWarn:h,fallbackWarn:f,fallbackFormat:m,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:b,escapeParameter:x,messageResolver:n.messageResolver,messageCompiler:n.messageCompiler,__meta:{framework:"vue"}};de.datetimeFormats=d.value,de.numberFormats=u.value;const ge=jL(de);return i&&yy(ge),ge})(),ld(S,a.value,c.value);function _(){return[a.value,c.value,l.value,d.value,u.value]}const I=Fe({get:()=>a.value,set:de=>{S.locale=de,a.value=de}});function M(de){i||(S.fallbackContext=zL());try{return de()}finally{i||(S.fallbackContext=void 0)}}function k(de){M(()=>ld(S,a.value,de))}const B=Fe({get:()=>c.value,set:de=>{c.value=de,S.fallbackLocale=c.value,k(c.value)}}),D=Fe(()=>l.value),G=Fe(()=>d.value),V=Fe(()=>u.value);function Y(){return Kt(y)?y:null}function L(de){y=de,S.postTranslation=de}function N(){return g}function F(de){de!==null&&(v=Ry(de)),g=de,S.missing=v}const $=(de,ge,Ge,Le,Ee,Ze)=>{_();let Te;try{__INTLIFY_PROD_DEVTOOLS__,Te=M(()=>de(S))}finally{__INTLIFY_PROD_DEVTOOLS__}if(Ge!=="translate exists"&&xi(Te)&&Te===uh||Ge==="translate exists"&&!Te){const[vi,lt]=ge();return e&&p?Le(e):Ee(vi)}else{if(Ze(Te))return Te;throw hn(sn.UNEXPECTED_RETURN_TYPE)}};function X(...de){return $(ge=>Reflect.apply(_y,null,[ge,...de]),()=>Tm(...de),"translate",ge=>Reflect.apply(ge.t,ge,[...de]),ge=>ge,ge=>ze(ge))}function z(...de){const[ge,Ge,Le]=de;if(Le&&!Tt(Le))throLine truncated
|
||||
*/const rD="11.4.16";function oD(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(zr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(zr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(zr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zr().__INTLIFY_PROD_DEVTOOLS__=!1)}const sn={UNEXPECTED_RETURN_TYPE:AL,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function hn(n,...e){return dh(n,null,void 0)}const Em=io("__translateVNode"),_m=io("__datetimeParts"),Mm=io("__numberParts"),oC=io("__setPluralRules"),aC=io("__injectWithOption"),wa=io("__dispose");let lC=null;{const n=zr().__VUE_INSTANCE_SETTERS__;Jt(n)&&n.push(e=>{lC=e})}function Fr(n){return!!DS(n)}function rc(n){if(!Tt(n)||Xo(n))return n;for(const e in n)if(Ln(n,e))if(!e.includes("."))Tt(n[e])&&rc(n[e]);else{const t=e.split("."),i=t.length-1;let s=n,r=!1;for(let a=0;a<i;a++){if(t[a]==="__proto__")throw new Error(`unsafe key: ${t[a]}`);if(t[a]in s||(s[t[a]]=$t()),!Tt(s[t[a]])){r=!0;break}if(Xo(s[t[a]])&&(jS.includes(t[a+1])||t[a+1]==="cacheKey")){r=!0;break}s=s[t[a]]}r||(s[t[i]]=n[e],delete n[e]);const o=s[t[i]];Tt(o)&&rc(o)}return n}function Yg(n,e){const{messages:t,__i18n:i,messageResolver:s,flatJson:r}=e,o=Yt(t)?t:Jt(i)?$t():{[n]:$t()};if(Jt(i)&&i.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:l}=a;if(c){if(Fr(c))return;o[c]=Ii(o,c)||$t(),Pd(l,o[c])}else Pd(l,o)}else ze(a)&&Pd(JSON.parse(a),o)}),s==null&&r)for(const a in o)Ln(o,a)&&rc(o[a]);return o}function cC(n){return n.type}function dC(n,e,t){let i=Tt(e.messages)?e.messages:$t();"__i18nGlobal"in t&&(i=Yg(n.locale.value,{messages:i,__i18n:t.__i18nGlobal}));const s=Object.keys(i);s.length&&s.forEach(r=>{n.mergeLocaleMessage(r,i[r])});{if(Tt(e.datetimeFormats)){const r=Object.keys(e.datetimeFormats);r.length&&r.forEach(o=>{n.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(Tt(e.numberFormats)){const r=Object.keys(e.numberFormats);r.length&&r.forEach(o=>{n.mergeNumberFormat(o,e.numberFormats[o])})}}}function My(n){return Ae(fc,null,n,0)}function oc(){return lC??Ku()}const Py="__INTLIFY_META__",Iy=()=>[],aD=()=>!1;let ky=0;function Ry(n){return((e,t,i,s)=>n(t,i,oc()||void 0,s))}const lD=()=>{const n=oc();let e=null;return n&&(e=cC(n)[Py])?{[Py]:e}:null};function hu(n={}){const{__root:e,__injectWithOption:t}=n,i=e===void 0,s=n.flatJson,r=cu?$e:SE;let o=kt(n.inheritLocale)?n.inheritLocale:!0;const a=r(e&&o?e.locale.value:ze(n.locale)?n.locale:sc),c=r(e&&o?e.fallbackLocale.value:ze(n.fallbackLocale)||Jt(n.fallbackLocale)||Yt(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),l=r(Yg(a.value,n)),d=r(Yt(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),u=r(Yt(n.numberFormats)?n.numberFormats:{[a.value]:{}});let h=e?e.missingWarn:kt(n.missingWarn)||Ya(n.missingWarn)?n.missingWarn:!0,f=e?e.fallbackWarn:kt(n.fallbackWarn)||Ya(n.fallbackWarn)?n.fallbackWarn:!0,p=e?e.fallbackRoot:kt(n.fallbackRoot)?n.fallbackRoot:!0,m=!!n.fallbackFormat,g=Kt(n.missing)?n.missing:null,v=Kt(n.missing)?Ry(n.missing):null,y=Kt(n.postTranslation)?n.postTranslation:null,b=e?e.warnHtmlMessage:kt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,w=!!n.escapeParameter;const C=e?e.modifiers:Yt(n.modifiers)?n.modifiers:{};let T=n.pluralRules||e&&e.pluralRules,S;S=(()=>{i&&yy(null);const de={version:rD,locale:a.value,fallbackLocale:c.value,messages:l.value,modifiers:C,pluralRules:T,missing:v===null?void 0:v,missingWarn:h,fallbackWarn:f,fallbackFormat:m,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:b,escapeParameter:w,messageResolver:n.messageResolver,messageCompiler:n.messageCompiler,__meta:{framework:"vue"}};de.datetimeFormats=d.value,de.numberFormats=u.value;const ge=jL(de);return i&&yy(ge),ge})(),ld(S,a.value,c.value);function _(){return[a.value,c.value,l.value,d.value,u.value]}const I=Fe({get:()=>a.value,set:de=>{S.locale=de,a.value=de}});function M(de){i||(S.fallbackContext=zL());try{return de()}finally{i||(S.fallbackContext=void 0)}}function k(de){M(()=>ld(S,a.value,de))}const B=Fe({get:()=>c.value,set:de=>{c.value=de,S.fallbackLocale=c.value,k(c.value)}}),D=Fe(()=>l.value),G=Fe(()=>d.value),V=Fe(()=>u.value);function Y(){return Kt(y)?y:null}function L(de){y=de,S.postTranslation=de}function N(){return g}function F(de){de!==null&&(v=Ry(de)),g=de,S.missing=v}const $=(de,ge,Ge,Le,Ee,Ze)=>{_();let Te;try{__INTLIFY_PROD_DEVTOOLS__,Te=M(()=>de(S))}finally{__INTLIFY_PROD_DEVTOOLS__}if(Ge!=="translate exists"&&xi(Te)&&Te===uh||Ge==="translate exists"&&!Te){const[vi,lt]=ge();return e&&p?Le(e):Ee(vi)}else{if(Ze(Te))return Te;throw hn(sn.UNEXPECTED_RETURN_TYPE)}};function X(...de){return $(ge=>Reflect.apply(_y,null,[ge,...de]),()=>Tm(...de),"translate",ge=>Reflect.apply(ge.t,ge,[...de]),ge=>ge,ge=>ze(ge))}function z(...de){const[ge,Ge,Le]=de;if(Le&&!Tt(Le))throLine truncated
|
||||
attribute vec2 aVertexPosition;
|
||||
attribute vec2 aTextureCoord;
|
||||
|
||||
@@ -1200,7 +1200,7 @@ void main(void)
|
||||
|
||||
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
|
||||
}
|
||||
`,e4=`
|
||||
`,j3=`
|
||||
varying vec2 vTextureCoord;
|
||||
uniform vec4 uColor;
|
||||
uniform vec4 uDarkColor;
|
||||
@@ -1213,7 +1213,7 @@ void main(void)
|
||||
gl_FragColor.a = texColor.a * uColor.a;
|
||||
gl_FragColor.rgb = ((texColor.a - 1.0) * uDarkColor.a + 1.0 - texColor.rgb) * uDarkColor.rgb + texColor.rgb * uColor.rgb;
|
||||
}
|
||||
`;class t4 extends es{constructor(t){const i={uSampler:t??it.EMPTY,alpha:1,uTextureMatrix:Bt.IDENTITY,uColor:new Float32Array([1,1,1,1]),uDarkColor:new Float32Array([0,0,0,0])},s={tint:16777215,darkTint:0,alpha:1,pluginName:"darkTintBatch"};super(As.from(Q3,e4),i);A(this,"uvMatrix");A(this,"batchable");A(this,"pluginName");A(this,"_tintRGB");A(this,"_darkTintRGB");A(this,"_colorDirty");A(this,"_alpha");A(this,"_tintColor");A(this,"_darkTintColor");this._colorDirty=!1,this.uvMatrix=new _g(i.uSampler),this.batchable=!0,this.pluginName=s.pluginName,this._tintColor=new Rt(s.tint),this._darkTintColor=new Rt(s.darkTint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._alpha=s.alpha,this._colorDirty=!0}get texture(){return this.uniforms.uSampler}set texture(t){this.uniforms.uSampler!==t&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!t.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=t,this.uvMatrix.texture=t)}set alpha(t){t!==this._alpha&&(this._alpha=t,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(t){t!==this.tint&&(this._tintColor.setValue(t),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}set darkTint(t){t!==this.darkTint&&(this._darkTintColor.setValue(t),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._colorDirty=!0)}get darkTint(){return this._darkTintColor.value}get tintValue(){return this._tintColor.toNumber()}get darkTintValue(){return this._darkTintColor.toNumber()}update(){this._colorDirty&&(this._colorDirty=!1,Rt.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),Rt.shared.setValue(this._darkTintColor).premultiply(this._alpha,!0).premultiply(1,!1).toArray(this.uniforms.uDarkColor)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}class i4 extends ec{constructor(t){super(new Z3,new t4(t),void 0,void 0);A(this,"_darkTintRGB",0)}get darkTint(){return"darkTint"in this.shader?this.shader.darkTint:null}set darkTint(t){this.shader.darkTint=t}get darkTintValue(){return this.shader.darkTintValue}_renderToBatch(t){const i=this.geometry,s=this.shader;s.uvMatrix&&(s.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=i.indexBuffer.data,this._tintRGB=s._tintRGB,this._darkTintRGB=s._darkTintRGB,this._texture=s.texture;const r=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[r]),t.plugins[r].render(this)}}const wi=class wi extends i4{constructor(){super();A(this,"name","")}updateFromSpineData(t,i,s,r,o,a,c,l){var v,y;this.texture=t.texture;const d=o/(l?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((v=u.data)==null?void 0:v.length)!==d&&(u.data=new Float32Array(d));const h=this.geometry.getBuffer("aVertexPosition");((y=h.data)==null?void 0:y.length)!==d&&(h.data=new Float32Array(d));let f=0,p=u.data,m=h.data;for(let b=0;b<o;b+=l?12:8){let x=b;m[f]=r[x++],m[f+1]=r[x++],x+=4,p[f]=r[x++],p[f+1]=r[x++],f+=2}l?(wi.auxColor[0]=r[8],wi.auxColor[1]=r[9],wi.auxColor[2]=r[10],wi.auxColor[3]=r[11],this.darkTint=wi.auxColor,wi.auxColor[0]=r[2],wi.auxColor[1]=r[3],wi.auxColor[2]=r[4],wi.auxColor[3]=r[5],this.tint=wi.auxColor):(wi.auxColor[0]=r[2],wi.auxColor[1]=r[3],wi.auxColor[2]=r[4],wi.auxColor[3]=r[5],this.tint=wi.auxColor),this.blendMode=Yo.toPixiBlending(i),this.alpha=wi.auxColor[3];const g=this.geometry.indexBuffer;if(g.data.length!==a.length)g.data=new Uint32Array(a);else{const b=g.data;for(let x=0;x<c;x++)b[x]=a[x]}this.name=s,u.update(),h.update(),g.update()}};A(wi,"auxColor",[0,0,0,0]);let Ll=wi;const Et=class Et extends _i{constructor(t,i){if(t instanceof gu)t={...i,skeletonData:t};else if(i)throw new Error("You cannot use options and oldOptions together.");super();A(this,"skeleton");A(this,"state");A(this,"darkTint",!1);A(this,"hasNeverUpdated",!0);A(this,"_debug");A(this,"slotMeshFactory",()=>new Lm);A(this,"beforeUpdateWorldTransforms",()=>{});A(this,"afterUpdateWorldTransforms",()=>{});A(this,"_autoUpdate",!1);A(this,"_ticker",nn.shared);A(this,"meshesCache",new Map);A(this,"lightColor",new ut);A(this,"darkColor",new ut);A(this,"_boundsProvider");A(this,"_boundsPoint",new At);A(this,"_boundsSpineID",-1);A(this,"_boundsSpineDirty",!0);A(this,"slotsObject",new Map);A(this,"verticesCache",De.newFloatArray(1024));A(this,"clippingSlotToPixiMasks",{});A(this,"currentClippingSlot");const s=t instanceof gu?t:t.skeletonData;this.skeleton=new Wg(s);const r=new l3(s);this.state=new n3(r),(t==null?void 0:t.darkTint)!==void 0||(i==null?void 0:i.slotMeshFactory)===void 0?(this.darkTint=(t==null?void 0:t.darkTint)===void 0?this.skeleton.slots.some(o=>!!o.data.darkColor):t==null?void 0:t.darkTint,this.darkTint&&(this.slotMeshFactory=()=>new Ll)):this.initializeMeshFactory(i==null?void 0:i.slotMeshFactory),t!=null&&t.ticker&&(this._ticker=t.ticker),this.autoUpdate=(t==null?void 0:t.autoUpdate)??!0,this.boundsProvider=t.boundsProvide
Line truncated
|
||||
`;class H3 extends es{constructor(t){const i={uSampler:t??it.EMPTY,alpha:1,uTextureMatrix:Bt.IDENTITY,uColor:new Float32Array([1,1,1,1]),uDarkColor:new Float32Array([0,0,0,0])},s={tint:16777215,darkTint:0,alpha:1,pluginName:"darkTintBatch"};super(As.from(z3,j3),i);A(this,"uvMatrix");A(this,"batchable");A(this,"pluginName");A(this,"_tintRGB");A(this,"_darkTintRGB");A(this,"_colorDirty");A(this,"_alpha");A(this,"_tintColor");A(this,"_darkTintColor");this._colorDirty=!1,this.uvMatrix=new _g(i.uSampler),this.batchable=!0,this.pluginName=s.pluginName,this._tintColor=new Rt(s.tint),this._darkTintColor=new Rt(s.darkTint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._alpha=s.alpha,this._colorDirty=!0}get texture(){return this.uniforms.uSampler}set texture(t){this.uniforms.uSampler!==t&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!t.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=t,this.uvMatrix.texture=t)}set alpha(t){t!==this._alpha&&(this._alpha=t,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(t){t!==this.tint&&(this._tintColor.setValue(t),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}set darkTint(t){t!==this.darkTint&&(this._darkTintColor.setValue(t),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._colorDirty=!0)}get darkTint(){return this._darkTintColor.value}get tintValue(){return this._tintColor.toNumber()}get darkTintValue(){return this._darkTintColor.toNumber()}update(){this._colorDirty&&(this._colorDirty=!1,Rt.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),Rt.shared.setValue(this._darkTintColor).premultiply(this._alpha,!0).premultiply(1,!1).toArray(this.uniforms.uDarkColor)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}class G3 extends ec{constructor(t){super(new Y3,new H3(t),void 0,void 0);A(this,"_darkTintRGB",0)}get darkTint(){return"darkTint"in this.shader?this.shader.darkTint:null}set darkTint(t){this.shader.darkTint=t}get darkTintValue(){return this.shader.darkTintValue}_renderToBatch(t){const i=this.geometry,s=this.shader;s.uvMatrix&&(s.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=i.indexBuffer.data,this._tintRGB=s._tintRGB,this._darkTintRGB=s._darkTintRGB,this._texture=s.texture;const r=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[r]),t.plugins[r].render(this)}}const wi=class wi extends G3{constructor(){super();A(this,"name","")}updateFromSpineData(t,i,s,r,o,a,c,l){var v,y;this.texture=t.texture;const d=o/(l?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((v=u.data)==null?void 0:v.length)!==d&&(u.data=new Float32Array(d));const h=this.geometry.getBuffer("aVertexPosition");((y=h.data)==null?void 0:y.length)!==d&&(h.data=new Float32Array(d));let f=0,p=u.data,m=h.data;for(let b=0;b<o;b+=l?12:8){let w=b;m[f]=r[w++],m[f+1]=r[w++],w+=4,p[f]=r[w++],p[f+1]=r[w++],f+=2}l?(wi.auxColor[0]=r[8],wi.auxColor[1]=r[9],wi.auxColor[2]=r[10],wi.auxColor[3]=r[11],this.darkTint=wi.auxColor,wi.auxColor[0]=r[2],wi.auxColor[1]=r[3],wi.auxColor[2]=r[4],wi.auxColor[3]=r[5],this.tint=wi.auxColor):(wi.auxColor[0]=r[2],wi.auxColor[1]=r[3],wi.auxColor[2]=r[4],wi.auxColor[3]=r[5],this.tint=wi.auxColor),this.blendMode=Yo.toPixiBlending(i),this.alpha=wi.auxColor[3];const g=this.geometry.indexBuffer;if(g.data.length!==a.length)g.data=new Uint32Array(a);else{const b=g.data;for(let w=0;w<c;w++)b[w]=a[w]}this.name=s,u.update(),h.update(),g.update()}};A(wi,"auxColor",[0,0,0,0]);let Ll=wi;const Et=class Et extends _i{constructor(t,i){if(t instanceof gu)t={...i,skeletonData:t};else if(i)throw new Error("You cannot use options and oldOptions together.");super();A(this,"skeleton");A(this,"state");A(this,"darkTint",!1);A(this,"hasNeverUpdated",!0);A(this,"_debug");A(this,"slotMeshFactory",()=>new Lm);A(this,"beforeUpdateWorldTransforms",()=>{});A(this,"afterUpdateWorldTransforms",()=>{});A(this,"_autoUpdate",!1);A(this,"_ticker",nn.shared);A(this,"meshesCache",new Map);A(this,"lightColor",new ut);A(this,"darkColor",new ut);A(this,"_boundsProvider");A(this,"_boundsPoint",new At);A(this,"_boundsSpineID",-1);A(this,"_boundsSpineDirty",!0);A(this,"slotsObject",new Map);A(this,"verticesCache",De.newFloatArray(1024));A(this,"clippingSlotToPixiMasks",{});A(this,"currentClippingSlot");const s=t instanceof gu?t:t.skeletonData;this.skeleton=new Wg(s);const r=new QB(s);this.state=new WB(r),(t==null?void 0:t.darkTint)!==void 0||(i==null?void 0:i.slotMeshFactory)===void 0?(this.darkTint=(t==null?void 0:t.darkTint)===void 0?this.skeleton.slots.some(o=>!!o.data.darkColor):t==null?void 0:t.darkTint,this.darkTint&&(this.slotMeshFactory=()=>new Ll)):this.initializeMeshFactory(i==null?void 0:i.slotMeshFactory),t!=null&&t.ticker&&(this._ticker=t.ticker),this.autoUpdate=(t==null?void 0:t.autoUpdate)??!0,this.boundsProvider=t.boundsProvide
Line truncated
|
||||
precision highp float;
|
||||
attribute vec2 aVertexPosition;
|
||||
attribute vec2 aTextureCoord;
|
||||
@@ -1239,7 +1239,7 @@ void main(void){
|
||||
vDarkColor = aDarkColor * tint;
|
||||
|
||||
}
|
||||
`,c4=`
|
||||
`,e4=`
|
||||
varying vec2 vTextureCoord;
|
||||
varying vec4 vColor;
|
||||
varying vec4 vDarkColor;
|
||||
@@ -1254,4 +1254,4 @@ void main(void){
|
||||
gl_FragColor.a = color.a * vColor.a;
|
||||
gl_FragColor.rgb = ((color.a - 1.0) * vDarkColor.a + 1.0 - color.rgb) * vDarkColor.rgb + color.rgb * vColor.rgb;
|
||||
}
|
||||
`;class gA extends kr{constructor(e){super(e),this.shaderGenerator=new yw(l4,c4),this.geometryClass=a4,this.vertexSize=7}packInterleavedGeometry(e,t,i,s,r){const{uint32View:o,float32View:a}=t,c=s/this.vertexSize,l=e.uvs,d=e.indices,u=e.vertexData,h=e._texture.baseTexture._batchLocation,f=Math.min(e.worldAlpha,1),p=Rt.shared.setValue(e._tintRGB).toPremultiplied(f,!0),m=Rt.shared.setValue(e._darkTintRGB).premultiply(f,!0).toPremultiplied(1,!1);for(let g=0;g<u.length;g+=2)a[s++]=u[g],a[s++]=u[g+1],a[s++]=l[g],a[s++]=l[g+1],o[s++]=p,o[s++]=m,a[s++]=h;for(let g=0;g<d.length;g++)i[r++]=c+d[g]}}A(gA,"extension",{name:"darkTintBatch",type:Oe.RendererPlugin});He.add(gA);function d4(n){return n.replace(/\\/g,"/").split("/").pop()||n}function qg(n,e,t){for(const i of n.pages){const s=e.get(d4(i.name).toLowerCase());if(!s)throw new Error(Ye("errors.missingAtlasTexture",{name:i.name}));s.baseTexture.alphaMode=i.pma?ki.PMA:ki.UNPACK,i.setTexture(t.from(s.baseTexture))}}function vA(n,e){const t=new nA(n);return qg(t,e,Yo),new km(t)}function u4(n,e,t){return{skeletonData:new bu(vA(e,t)).readSkeletonData(n),SpineClass:yu}}function h4(n,e,t){return{skeletonData:new Fm(vA(e,t)).readSkeletonData(n),SpineClass:yu}}const f4="modulepreload",p4=function(n){return"/"+n},Zy={},Qy=function(e,t,i){let s=Promise.resolve();if(t&&t.length>0){let o=function(l){return Promise.all(l.map(d=>Promise.resolve(d).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=o(t.map(l=>{if(l=p4(l),l in Zy)return;Zy[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":f4,d||(h.as="script"),h.crossOrigin="",h.href=l,c&&h.setAttribute("nonce",c),document.head.appendChild(h),d)return new Promise((f,p)=>{h.addEventListener("load",f),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})};async function bA(){const[n,e]=await Promise.all([Qy(()=>import("./index-DxBJZqWf.js"),[]),Qy(()=>import("./index-Cxn3bPhQ.js"),__vite__mapDeps([0,1]))]);return{core:n,pixi:e}}async function m4(n,e,t){const{core:i,pixi:s}=await bA(),r=new i.TextureAtlas(e);return qg(r,t,s.SpineTexture),{skeletonData:new i.SkeletonJson(new i.AtlasAttachmentLoader(r)).readSkeletonData(n),SpineClass:s.Spine}}async function g4(n,e,t){const{core:i,pixi:s}=await bA(),r=new i.TextureAtlas(e);return qg(r,t,s.SpineTexture),{skeletonData:new i.SkeletonBinary(new i.AtlasAttachmentLoader(r)).readSkeletonData(n),SpineClass:s.Spine}}function Br(n,e,t){const i=Number(n[e]);return Number.isFinite(i)?i:t}function dn(n,e,t,i){n[e]==null&&(n[e]=Br(n,t,i))}function Kg(n,e,t){if(typeof n.curve!="number")return;const i=Br(n,"time",0),r=Br(e,"time",0)-i,o=n.curve,a=Br(n,"c2",0),c=Br(n,"c3",1),l=Br(n,"c4",1);n.curve=t.flatMap(([d,u])=>[i+r*o,d+(u-d)*a,i+r*c,d+(u-d)*l]),delete n.c2,delete n.c3,delete n.c4}function Hr(n,e){if(Array.isArray(n))for(let t=0;t<n.length-1;t++){const i=n[t],s=n[t+1];Kg(i,s,e.map(({key:r,fallback:o})=>[Br(i,r,o),Br(s,r,o)]))}}function v4(n){if(Array.isArray(n))for(let e=0;e<n.length-1;e++)Kg(n[e],n[e+1],[[0,1]])}function la(n,e){const t=typeof n=="string"?n.replace(/^#/,""):"",i=t.length===6?`${t}ff`:t.padEnd(8,"f").slice(0,8),s=[0,2,4,6].map(r=>Number.parseInt(i.slice(r,r+2),16)/255);return e?s:s.slice(0,3)}function ex(n,e){if(Array.isArray(n))for(let t=0;t<n.length-1;t++){const i=n[t],s=n[t+1],r=e?[...la(i.light,!0),...la(i.dark,!1)]:la(i.color,!0),o=e?[...la(s.light,!0),...la(s.dark,!1)]:la(s.color,!0);Kg(i,s,r.map((a,c)=>[a,o[c]]))}}function b4(n){for(const e of n.bones||[])e.inherit==null&&e.transform!=null&&(e.inherit=e.transform);for(const e of n.transform||[])dn(e,"mixRotate","rotateMix",1),dn(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX),dn(e,"mixScaleX","scaleMix",1),e.mixScaleY==null&&(e.mixScaleY=e.mixScaleX),dn(e,"mixShearY","shearMix",1);for(const e of n.path||[])dn(e,"mixRotate","rotateMix",1),dn(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX)}function y4(n){for(const e of n.skins||[])for(const t of Object.values(e.attachments||{}))for(const i of Object.values(t||{}))i.parent!=null&&i.timelines==null&&i.deform!=null&&(i.timelines=i.deform)}function x4(n){for(const e of Object.values(n.slots||{}))e.color&&!e.rgba&&(e.rgba=e.color,delete e.color),e.twoColor&&!e.rgba2&&(e.rgba2=e.twoColor,delete e.twoColor),ex(e.rgba,!1),ex(e.rgba2,!0)}function w4(n){for(const e of Object.values(n.bones||{})){for(const t of e.rotate||[])dn(t,"value","angle",0);Hr(e.rotate,[{key:"value",fallback:0}]),Hr(e.t
Line truncated
|
||||
`;class gA extends kr{constructor(e){super(e),this.shaderGenerator=new yw(Q3,e4),this.geometryClass=Z3,this.vertexSize=7}packInterleavedGeometry(e,t,i,s,r){const{uint32View:o,float32View:a}=t,c=s/this.vertexSize,l=e.uvs,d=e.indices,u=e.vertexData,h=e._texture.baseTexture._batchLocation,f=Math.min(e.worldAlpha,1),p=Rt.shared.setValue(e._tintRGB).toPremultiplied(f,!0),m=Rt.shared.setValue(e._darkTintRGB).premultiply(f,!0).toPremultiplied(1,!1);for(let g=0;g<u.length;g+=2)a[s++]=u[g],a[s++]=u[g+1],a[s++]=l[g],a[s++]=l[g+1],o[s++]=p,o[s++]=m,a[s++]=h;for(let g=0;g<d.length;g++)i[r++]=c+d[g]}}A(gA,"extension",{name:"darkTintBatch",type:Oe.RendererPlugin});He.add(gA);function t4(n){return n.replace(/\\/g,"/").split("/").pop()||n}function qg(n,e,t){for(const i of n.pages){const s=e.get(t4(i.name).toLowerCase());if(!s)throw new Error(Ye("errors.missingAtlasTexture",{name:i.name}));s.baseTexture.alphaMode=i.pma?ki.PMA:ki.UNPACK,i.setTexture(t.from(s.baseTexture))}}function vA(n,e){const t=new nA(n);return qg(t,e,Yo),new km(t)}function i4(n,e,t){return{skeletonData:new bu(vA(e,t)).readSkeletonData(n),SpineClass:yu}}function n4(n,e,t){return{skeletonData:new Fm(vA(e,t)).readSkeletonData(n),SpineClass:yu}}const s4="modulepreload",r4=function(n){return"/"+n},Zy={},Qy=function(e,t,i){let s=Promise.resolve();if(t&&t.length>0){let o=function(l){return Promise.all(l.map(d=>Promise.resolve(d).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=o(t.map(l=>{if(l=r4(l),l in Zy)return;Zy[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":s4,d||(h.as="script"),h.crossOrigin="",h.href=l,c&&h.setAttribute("nonce",c),document.head.appendChild(h),d)return new Promise((f,p)=>{h.addEventListener("load",f),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})};async function bA(){const[n,e]=await Promise.all([Qy(()=>import("./index-BSAMR7rU.js"),[]),Qy(()=>import("./index-hgwT4zDg.js"),__vite__mapDeps([0,1]))]);return{core:n,pixi:e}}async function o4(n,e,t){const{core:i,pixi:s}=await bA(),r=new i.TextureAtlas(e);return qg(r,t,s.SpineTexture),{skeletonData:new i.SkeletonJson(new i.AtlasAttachmentLoader(r)).readSkeletonData(n),SpineClass:s.Spine}}async function a4(n,e,t){const{core:i,pixi:s}=await bA(),r=new i.TextureAtlas(e);return qg(r,t,s.SpineTexture),{skeletonData:new i.SkeletonBinary(new i.AtlasAttachmentLoader(r)).readSkeletonData(n),SpineClass:s.Spine}}function Br(n,e,t){const i=Number(n[e]);return Number.isFinite(i)?i:t}function dn(n,e,t,i){n[e]==null&&(n[e]=Br(n,t,i))}function Kg(n,e,t){if(typeof n.curve!="number")return;const i=Br(n,"time",0),r=Br(e,"time",0)-i,o=n.curve,a=Br(n,"c2",0),c=Br(n,"c3",1),l=Br(n,"c4",1);n.curve=t.flatMap(([d,u])=>[i+r*o,d+(u-d)*a,i+r*c,d+(u-d)*l]),delete n.c2,delete n.c3,delete n.c4}function Hr(n,e){if(Array.isArray(n))for(let t=0;t<n.length-1;t++){const i=n[t],s=n[t+1];Kg(i,s,e.map(({key:r,fallback:o})=>[Br(i,r,o),Br(s,r,o)]))}}function l4(n){if(Array.isArray(n))for(let e=0;e<n.length-1;e++)Kg(n[e],n[e+1],[[0,1]])}function la(n,e){const t=typeof n=="string"?n.replace(/^#/,""):"",i=t.length===6?`${t}ff`:t.padEnd(8,"f").slice(0,8),s=[0,2,4,6].map(r=>Number.parseInt(i.slice(r,r+2),16)/255);return e?s:s.slice(0,3)}function ex(n,e){if(Array.isArray(n))for(let t=0;t<n.length-1;t++){const i=n[t],s=n[t+1],r=e?[...la(i.light,!0),...la(i.dark,!1)]:la(i.color,!0),o=e?[...la(s.light,!0),...la(s.dark,!1)]:la(s.color,!0);Kg(i,s,r.map((a,c)=>[a,o[c]]))}}function c4(n){for(const e of n.bones||[])e.inherit==null&&e.transform!=null&&(e.inherit=e.transform);for(const e of n.transform||[])dn(e,"mixRotate","rotateMix",1),dn(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX),dn(e,"mixScaleX","scaleMix",1),e.mixScaleY==null&&(e.mixScaleY=e.mixScaleX),dn(e,"mixShearY","shearMix",1);for(const e of n.path||[])dn(e,"mixRotate","rotateMix",1),dn(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX)}function d4(n){for(const e of n.skins||[])for(const t of Object.values(e.attachments||{}))for(const i of Object.values(t||{}))i.parent!=null&&i.timelines==null&&i.deform!=null&&(i.timelines=i.deform)}function u4(n){for(const e of Object.values(n.slots||{}))e.color&&!e.rgba&&(e.rgba=e.color,delete e.color),e.twoColor&&!e.rgba2&&(e.rgba2=e.twoColor,delete e.twoColor),ex(e.rgba,!1),ex(e.rgba2,!0)}function h4(n){for(const e of Object.values(n.bones||{})){for(const t of e.rotate||[])dn(t,"value","angle",0);Hr(e.rotate,[{key:"value",fallback:0}]),Hr(e.t
Line truncated
|
||||
@@ -1 +1 @@
|
||||
.help-overlay[data-v-4bb9bc76]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:72px 24px 28px;box-sizing:border-box;background:#05080fb8;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.help-dialog[data-v-4bb9bc76]{width:min(820px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden;border:1px solid #3a4864;border-radius:14px;background:#141a27;color:#b8c3d8;box-shadow:0 22px 70px #0000009e}.help-head[data-v-4bb9bc76]{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px 15px;border-bottom:1px solid #2b354a;background:linear-gradient(135deg,#202942,#181e2d)}.help-head h2[data-v-4bb9bc76]{margin:0;color:#eef2ff;font-size:19px}.help-head p[data-v-4bb9bc76]{margin:5px 0 0;color:#7786a3;font-size:11px}.help-close[data-v-4bb9bc76]{width:28px;height:28px;flex:0 0 28px;border:1px solid #43516b;border-radius:6px;background:#273249;color:#ccd7ed;cursor:pointer}.help-close[data-v-4bb9bc76]:hover{border-color:#7774ff;background:#3b4670;color:#fff}.help-body[data-v-4bb9bc76]{min-height:0;overflow:auto;padding:18px 20px 21px}.help-section[data-v-4bb9bc76]{padding:14px 15px;border:1px solid #2c3850;border-radius:10px;background:#181f2e}.help-section h3[data-v-4bb9bc76]{margin:0 0 11px;color:#9fb2ff;font-size:13px}.help-start ol[data-v-4bb9bc76]{margin:0;padding-left:21px;color:#aab6cc;font-size:12px;line-height:1.75}.help-start li[data-v-4bb9bc76]::marker{color:#7774ff;font-weight:700}.help-section b[data-v-4bb9bc76]{color:#dce4f7}.help-grid[data-v-4bb9bc76]{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);gap:12px;margin-top:12px}.help-list[data-v-4bb9bc76]{display:grid;gap:0;margin:0}.help-list>div[data-v-4bb9bc76]{display:grid;grid-template-columns:78px 1fr;gap:9px;padding:7px 0;border-bottom:1px solid #263146}.help-list>div[data-v-4bb9bc76]:last-child{border-bottom:0}.help-list dt[data-v-4bb9bc76]{color:#d3dcf0;font-size:11px;font-weight:700}.help-list dd[data-v-4bb9bc76]{margin:0;color:#8795ae;font-size:11px;line-height:1.5}.shortcut-list[data-v-4bb9bc76]{display:grid;gap:7px}.shortcut-list>div[data-v-4bb9bc76]{display:flex;align-items:center;min-height:25px;gap:5px}.shortcut-list kbd[data-v-4bb9bc76]{min-width:24px;box-sizing:border-box;padding:3px 6px;border:1px solid #465470;border-bottom-width:2px;border-radius:5px;background:#101623;color:#e0e7f6;font:10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center}.shortcut-list span[data-v-4bb9bc76]{color:#65728b;font-size:10px}.shortcut-list em[data-v-4bb9bc76]{margin-left:auto;color:#9ca9c1;font-size:11px;font-style:normal}.help-note[data-v-4bb9bc76]{margin:11px 0 0;padding-top:9px;border-top:1px solid #2a3549;color:#697791;font-size:10px;line-height:1.55}.help-export[data-v-4bb9bc76]{margin-top:12px}.help-export p[data-v-4bb9bc76]{margin:0;color:#8997b0;font-size:11px;line-height:1.65}.help-doc-title[data-v-4bb9bc76]{margin:16px 2px 2px;color:#9fb2ff;font-size:13px;font-weight:700;letter-spacing:.5px}.help-module[data-v-4bb9bc76]{margin-top:12px}.help-module-head[data-v-4bb9bc76]{display:flex;align-items:center;gap:8px;width:100%;padding:0;border:0;background:transparent;color:#9fb2ff;font:inherit;font-size:13px;font-weight:700;text-align:left;cursor:pointer}.help-module-head[data-v-4bb9bc76]:hover{color:#fff}.help-module-head .mtitle[data-v-4bb9bc76]{flex:1;min-width:0}.help-module-head .caret[data-v-4bb9bc76]{flex:0 0 auto;color:#7b86a2;font-size:12px}.help-module.open .help-module-head[data-v-4bb9bc76]{color:#fff}.help-module.open .help-module-head .caret[data-v-4bb9bc76]{color:#9fb2ff}.help-module .mnum[data-v-4bb9bc76]{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:linear-gradient(135deg,#4a53b8,#6a5fd0);color:#fff;font-size:12px;font-weight:700}.help-module.help-connector[data-v-4bb9bc76]{border-color:#4a4f8a;background:linear-gradient(135deg,#1d2442,#181d2f)}.help-module.help-connector .help-module-head[data-v-4bb9bc76]{color:#b8c2ff}.help-module .connector-intro[data-v-4bb9bc76]{margin:0 0 10px;color:#9aa8c4;font-size:11px;line-height:1.6}.help-module .connector-intro b[data-v-4bb9bc76]{color:#dce4f7}.help-module .dl-link[data-v-4bb9bc76]{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0 10px 6px 0;padding:6px 12px;border:1px solid #5652b5;border-radius:6px;background:#4540a0;color:#fff;font-size:12px;font-weight:700;text-decoration:none}.help-module .dl-link[data-v-4bb9bc76]:hover{border-color:#8982ff;background:#554dc2}.help-module .dl-link small[data-v-4bb9bc76]{color:#cfe0ff;font-weight:500;font-size:9px}.help-module-body[data-v-4bb9bc76]{padding-top:10px}@media(max-width:760px){.help-overlay[data-v-4bb9bc76]{padding:66px 12px 14px}.help-grid[data-v-4bb9bc76]{grid-template-columns:1fr}}.topbar[data-v-6411b316]{position:absolute;top:10px;left:10px;right:10px;dispLine truncated
|
||||
.help-overlay[data-v-4bb9bc76]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:72px 24px 28px;box-sizing:border-box;background:#05080fb8;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.help-dialog[data-v-4bb9bc76]{width:min(820px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden;border:1px solid #3a4864;border-radius:14px;background:#141a27;color:#b8c3d8;box-shadow:0 22px 70px #0000009e}.help-head[data-v-4bb9bc76]{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px 15px;border-bottom:1px solid #2b354a;background:linear-gradient(135deg,#202942,#181e2d)}.help-head h2[data-v-4bb9bc76]{margin:0;color:#eef2ff;font-size:19px}.help-head p[data-v-4bb9bc76]{margin:5px 0 0;color:#7786a3;font-size:11px}.help-close[data-v-4bb9bc76]{width:28px;height:28px;flex:0 0 28px;border:1px solid #43516b;border-radius:6px;background:#273249;color:#ccd7ed;cursor:pointer}.help-close[data-v-4bb9bc76]:hover{border-color:#7774ff;background:#3b4670;color:#fff}.help-body[data-v-4bb9bc76]{min-height:0;overflow:auto;padding:18px 20px 21px}.help-section[data-v-4bb9bc76]{padding:14px 15px;border:1px solid #2c3850;border-radius:10px;background:#181f2e}.help-section h3[data-v-4bb9bc76]{margin:0 0 11px;color:#9fb2ff;font-size:13px}.help-start ol[data-v-4bb9bc76]{margin:0;padding-left:21px;color:#aab6cc;font-size:12px;line-height:1.75}.help-start li[data-v-4bb9bc76]::marker{color:#7774ff;font-weight:700}.help-section b[data-v-4bb9bc76]{color:#dce4f7}.help-grid[data-v-4bb9bc76]{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);gap:12px;margin-top:12px}.help-list[data-v-4bb9bc76]{display:grid;gap:0;margin:0}.help-list>div[data-v-4bb9bc76]{display:grid;grid-template-columns:78px 1fr;gap:9px;padding:7px 0;border-bottom:1px solid #263146}.help-list>div[data-v-4bb9bc76]:last-child{border-bottom:0}.help-list dt[data-v-4bb9bc76]{color:#d3dcf0;font-size:11px;font-weight:700}.help-list dd[data-v-4bb9bc76]{margin:0;color:#8795ae;font-size:11px;line-height:1.5}.shortcut-list[data-v-4bb9bc76]{display:grid;gap:7px}.shortcut-list>div[data-v-4bb9bc76]{display:flex;align-items:center;min-height:25px;gap:5px}.shortcut-list kbd[data-v-4bb9bc76]{min-width:24px;box-sizing:border-box;padding:3px 6px;border:1px solid #465470;border-bottom-width:2px;border-radius:5px;background:#101623;color:#e0e7f6;font:10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center}.shortcut-list span[data-v-4bb9bc76]{color:#65728b;font-size:10px}.shortcut-list em[data-v-4bb9bc76]{margin-left:auto;color:#9ca9c1;font-size:11px;font-style:normal}.help-note[data-v-4bb9bc76]{margin:11px 0 0;padding-top:9px;border-top:1px solid #2a3549;color:#697791;font-size:10px;line-height:1.55}.help-export[data-v-4bb9bc76]{margin-top:12px}.help-export p[data-v-4bb9bc76]{margin:0;color:#8997b0;font-size:11px;line-height:1.65}.help-doc-title[data-v-4bb9bc76]{margin:16px 2px 2px;color:#9fb2ff;font-size:13px;font-weight:700;letter-spacing:.5px}.help-module[data-v-4bb9bc76]{margin-top:12px}.help-module-head[data-v-4bb9bc76]{display:flex;align-items:center;gap:8px;width:100%;padding:0;border:0;background:transparent;color:#9fb2ff;font:inherit;font-size:13px;font-weight:700;text-align:left;cursor:pointer}.help-module-head[data-v-4bb9bc76]:hover{color:#fff}.help-module-head .mtitle[data-v-4bb9bc76]{flex:1;min-width:0}.help-module-head .caret[data-v-4bb9bc76]{flex:0 0 auto;color:#7b86a2;font-size:12px}.help-module.open .help-module-head[data-v-4bb9bc76]{color:#fff}.help-module.open .help-module-head .caret[data-v-4bb9bc76]{color:#9fb2ff}.help-module .mnum[data-v-4bb9bc76]{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:linear-gradient(135deg,#4a53b8,#6a5fd0);color:#fff;font-size:12px;font-weight:700}.help-module.help-connector[data-v-4bb9bc76]{border-color:#4a4f8a;background:linear-gradient(135deg,#1d2442,#181d2f)}.help-module.help-connector .help-module-head[data-v-4bb9bc76]{color:#b8c2ff}.help-module .connector-intro[data-v-4bb9bc76]{margin:0 0 10px;color:#9aa8c4;font-size:11px;line-height:1.6}.help-module .connector-intro b[data-v-4bb9bc76]{color:#dce4f7}.help-module .dl-link[data-v-4bb9bc76]{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0 10px 6px 0;padding:6px 12px;border:1px solid #5652b5;border-radius:6px;background:#4540a0;color:#fff;font-size:12px;font-weight:700;text-decoration:none}.help-module .dl-link[data-v-4bb9bc76]:hover{border-color:#8982ff;background:#554dc2}.help-module .dl-link small[data-v-4bb9bc76]{color:#cfe0ff;font-weight:500;font-size:9px}.help-module-body[data-v-4bb9bc76]{padding-top:10px}@media(max-width:760px){.help-overlay[data-v-4bb9bc76]{padding:66px 12px 14px}.help-grid[data-v-4bb9bc76]{grid-template-columns:1fr}}.topbar[data-v-6411b316]{position:absolute;top:10px;left:10px;right:10px;dispLine truncated
|
||||
@@ -1,4 +1,4 @@
|
||||
var Ae=Object.defineProperty;var Be=(m,o,e)=>o in m?Ae(m,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):m[o]=e;var a=(m,o,e)=>Be(m,typeof o!="symbol"?o+"":o,e);import{T as Fe,a as he,b as F,S as ue,M as pe,c as oe,W as ne,B as H,d as z,L as Te,E as O,e as ce,p as q,f as Ee,g as fe,A as Q,h as me,i as De,j as V,s as re,G as we,k as $,l as Y,m as Le,P as Ie,n as Re,o as Ne,C as X,q as be,r as _e,t as Ue,u as Ye,v as Xe,w as ee,x as j,y as ke,z as Ve,D as J,F as ge,V as Ge,H as ae,I as We,J as $e,U as xe,K as E,R as ve,N as ye,O as Pe,Q as Oe,X as He,Y as ze,Z as qe,_ as Ke}from"./index-2QgDjwRs.js";import{$ as bt,a0 as kt,a1 as vt,a2 as yt,a3 as Pt,a4 as St,a5 as Mt,a6 as At,a7 as Bt,a8 as Ft,a9 as Et,aa as Dt,ab as Lt,ac as It,ad as Rt,ae as Nt,af as _t,ag as Ut,ah as Yt,ai as Xt,aj as Vt,ak as Gt,al as Wt,am as $t,an as Ot,ao as Ht,ap as zt,aq as qt,ar as Kt,as as Zt,at as Jt,au as Qt,av as jt,aw as es,ax as ts,ay as ss,az as os,aA as ns,aB as as,aC as rs,aD as is,aE as ls,aF as hs,aG as cs,aH as ds,aI as us,aJ as ps,aK as fs,aL as ms,aM as gs,aN as xs,aO as Cs,aP as Ts,aQ as ws,aR as bs,aS as ks,aT as vs,aU as ys,aV as Ps,aW as Ss,aX as Ms,aY as As,aZ as Bs,a_ as Fs,a$ as Es,b0 as Ds,b1 as Ls,b2 as Is,b3 as Rs,b4 as Ns,b5 as _s,b6 as Us,b7 as Ys,b8 as Xs,b9 as Vs,ba as Gs,bb as Ws,bc as $s,bd as Os,be as Hs,bf as zs,bg as qs,bh as Ks,bi as Zs,bj as Js,bk as Qs,bl as js,bm as eo,bn as to,bo as so,bp as oo,bq as no,br as ao,bs as ro,bt as io,bu as lo,bv as ho,bw as co,bx as uo,by as po,bz as fo,bA as mo,bB as go,bC as xo,bD as Co,bE as To,bF as wo,bG as bo,bH as ko,bI as vo,bJ as yo,bK as Po,bL as So,bM as Mo,bN as Ao,bO as Bo,bP as Fo,bQ as Eo,bR as Do,bS as Lo,bT as Io,bU as Ro,bV as No,bW as _o,bX as Uo,bY as Yo,bZ as Xo,b_ as Vo,b$ as Go,c0 as Wo,c1 as $o,c2 as Oo,c3 as Ho}from"./index-2QgDjwRs.js";import{SkeletonClipping as de,SkeletonPhysicsMovement as Ze,AnimationStateData as Je,AtlasAttachmentLoader as Qe,SkeletonBounds as je}from"./index-DxBJZqWf.js";import{AssetCache as qo,AssetManagerBase as Ko,Downloader as Zo,SkeletonRendererCore as Jo,Triangulator as Qo}from"./index-DxBJZqWf.js";if(typeof window<"u"&&window.PIXI){const m=window.require;window.require=o=>{if(m)return m(o);if(o.startsWith("@pixi/"))return window.PIXI}}const _=class _ extends Fe{constructor(e){super(e.resource.source);a(this,"texture");this.texture=he.from(e)}static from(e){return _.textureMap.has(e)?_.textureMap.get(e):new _(e)}setFilters(e,t){this.texture.baseTexture.scaleMode=_.toPixiTextureFilter(e),this.texture.baseTexture.mipmap=_.toPixiMipMap(e)}setWraps(e,t){this.texture.baseTexture.wrapMode=_.toPixiTextureWrap(e)}dispose(){this.texture.destroy()}static toPixiTextureFilter(e){switch(e){case F.Nearest:case F.MipMapNearestLinear:case F.MipMapNearestNearest:return ue.NEAREST;case F.Linear:case F.MipMapLinearLinear:case F.MipMapLinearNearest:return ue.LINEAR;default:throw new Error(`Unknown texture filter: ${String(e)}`)}}static toPixiMipMap(e){switch(e){case F.Nearest:case F.Linear:return pe.OFF;case F.MipMapNearestLinear:case F.MipMapNearestNearest:case F.MipMapLinearLinear:case F.MipMapLinearNearest:return pe.ON;default:throw new Error(`Unknown texture filter: ${String(e)}`)}}static toPixiTextureWrap(e){switch(e){case oe.ClampToEdge:return ne.CLAMP;case oe.MirroredRepeat:return ne.MIRRORED_REPEAT;case oe.Repeat:return ne.REPEAT;default:throw new Error(`Unknown texture wrap: ${String(e)}`)}}static toPixiBlending(e){switch(e){case H.Normal:return z.NORMAL;case H.Additive:return z.ADD;case H.Multiply:return z.MULTIPLY;case H.Screen:return z.SCREEN;default:throw new Error(`Unknown blendMode: ${String(e)}`)}}};a(_,"textureMap",new Map);let G=_;const K="spineTextureAtlasLoader",et={extension:O.Asset,resolver:{test:m=>V(m,".atlas"),parse:m=>{var e,t;const o=m.split(".");return{resolution:parseFloat(((t=(e=re.RETINA_PREFIX)==null?void 0:e.exec(m))==null?void 0:t[1])??"1"),format:o[o.length-2],src:m}}},loader:{name:K,extension:{type:O.LoadParser,priority:Te.Normal,name:K},test(m){return V(m,".atlas")},async load(m){const o=await re.ADAPTER.fetch(m);if(!o.ok)throw new Error(`[${K}] Failed to fetch ${m}: ${o.status} ${o.statusText}`);return await o.text()},testParse(m,o){const e=V(o.src,".atlas"),t=typeof m=="string",s=o.loadParser===K;return Promise.resolve((e||s)&&t)},unload(m){m.dispose()},async parse(m,o,e){var p;const t=o.data||{};let s=q.dirname(o.src);s&&s.lastIndexOf("/")!==s.length-1&&(s+="/");const n=new Ee(m);if(t.images instanceof fe||typeof t.images=="string"){const h=t.images;t.images={},t.images[n.pages[0].name]=h}const r=[];let l=!0;for(const h of e.parsers)if(h.name==="loadTextures"){l=(p=h.config)==null?void 0:p.preferCreateImageBitmap;break}Q.setPreferences({preferCreateImageBitmap:!1});for(const h of n.pages){const u=h.name,c=t!=null&&t.images?t.images[u]:void 0;if(c instanceof fe)h.setTexture(G.from(c));else{const i=c??q.normalize([...s.split(q.sep),u].join(q.sep)),g={src:De(i,o.src),data:{...t.imageMetadLine truncated
|
||||
var Ae=Object.defineProperty;var Be=(m,o,e)=>o in m?Ae(m,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):m[o]=e;var a=(m,o,e)=>Be(m,typeof o!="symbol"?o+"":o,e);import{T as Fe,a as he,b as F,S as ue,M as pe,c as oe,W as ne,B as H,d as z,L as Te,E as O,e as ce,p as q,f as Ee,g as fe,A as Q,h as me,i as De,j as V,s as re,G as we,k as $,l as Y,m as Le,P as Ie,n as Re,o as Ne,C as X,q as be,r as _e,t as Ue,u as Ye,v as Xe,w as ee,x as j,y as ke,z as Ve,D as J,F as ge,V as Ge,H as ae,I as We,J as $e,U as xe,K as E,R as ve,N as ye,O as Pe,Q as Oe,X as He,Y as ze,Z as qe,_ as Ke}from"./index-DnfvUUAC.js";import{$ as bt,a0 as kt,a1 as vt,a2 as yt,a3 as Pt,a4 as St,a5 as Mt,a6 as At,a7 as Bt,a8 as Ft,a9 as Et,aa as Dt,ab as Lt,ac as It,ad as Rt,ae as Nt,af as _t,ag as Ut,ah as Yt,ai as Xt,aj as Vt,ak as Gt,al as Wt,am as $t,an as Ot,ao as Ht,ap as zt,aq as qt,ar as Kt,as as Zt,at as Jt,au as Qt,av as jt,aw as es,ax as ts,ay as ss,az as os,aA as ns,aB as as,aC as rs,aD as is,aE as ls,aF as hs,aG as cs,aH as ds,aI as us,aJ as ps,aK as fs,aL as ms,aM as gs,aN as xs,aO as Cs,aP as Ts,aQ as ws,aR as bs,aS as ks,aT as vs,aU as ys,aV as Ps,aW as Ss,aX as Ms,aY as As,aZ as Bs,a_ as Fs,a$ as Es,b0 as Ds,b1 as Ls,b2 as Is,b3 as Rs,b4 as Ns,b5 as _s,b6 as Us,b7 as Ys,b8 as Xs,b9 as Vs,ba as Gs,bb as Ws,bc as $s,bd as Os,be as Hs,bf as zs,bg as qs,bh as Ks,bi as Zs,bj as Js,bk as Qs,bl as js,bm as eo,bn as to,bo as so,bp as oo,bq as no,br as ao,bs as ro,bt as io,bu as lo,bv as ho,bw as co,bx as uo,by as po,bz as fo,bA as mo,bB as go,bC as xo,bD as Co,bE as To,bF as wo,bG as bo,bH as ko,bI as vo,bJ as yo,bK as Po,bL as So,bM as Mo,bN as Ao,bO as Bo,bP as Fo,bQ as Eo,bR as Do,bS as Lo,bT as Io,bU as Ro,bV as No,bW as _o,bX as Uo,bY as Yo,bZ as Xo,b_ as Vo,b$ as Go,c0 as Wo,c1 as $o,c2 as Oo,c3 as Ho}from"./index-DnfvUUAC.js";import{SkeletonClipping as de,SkeletonPhysicsMovement as Ze,AnimationStateData as Je,AtlasAttachmentLoader as Qe,SkeletonBounds as je}from"./index-BSAMR7rU.js";import{AssetCache as qo,AssetManagerBase as Ko,Downloader as Zo,SkeletonRendererCore as Jo,Triangulator as Qo}from"./index-BSAMR7rU.js";if(typeof window<"u"&&window.PIXI){const m=window.require;window.require=o=>{if(m)return m(o);if(o.startsWith("@pixi/"))return window.PIXI}}const _=class _ extends Fe{constructor(e){super(e.resource.source);a(this,"texture");this.texture=he.from(e)}static from(e){return _.textureMap.has(e)?_.textureMap.get(e):new _(e)}setFilters(e,t){this.texture.baseTexture.scaleMode=_.toPixiTextureFilter(e),this.texture.baseTexture.mipmap=_.toPixiMipMap(e)}setWraps(e,t){this.texture.baseTexture.wrapMode=_.toPixiTextureWrap(e)}dispose(){this.texture.destroy()}static toPixiTextureFilter(e){switch(e){case F.Nearest:case F.MipMapNearestLinear:case F.MipMapNearestNearest:return ue.NEAREST;case F.Linear:case F.MipMapLinearLinear:case F.MipMapLinearNearest:return ue.LINEAR;default:throw new Error(`Unknown texture filter: ${String(e)}`)}}static toPixiMipMap(e){switch(e){case F.Nearest:case F.Linear:return pe.OFF;case F.MipMapNearestLinear:case F.MipMapNearestNearest:case F.MipMapLinearLinear:case F.MipMapLinearNearest:return pe.ON;default:throw new Error(`Unknown texture filter: ${String(e)}`)}}static toPixiTextureWrap(e){switch(e){case oe.ClampToEdge:return ne.CLAMP;case oe.MirroredRepeat:return ne.MIRRORED_REPEAT;case oe.Repeat:return ne.REPEAT;default:throw new Error(`Unknown texture wrap: ${String(e)}`)}}static toPixiBlending(e){switch(e){case H.Normal:return z.NORMAL;case H.Additive:return z.ADD;case H.Multiply:return z.MULTIPLY;case H.Screen:return z.SCREEN;default:throw new Error(`Unknown blendMode: ${String(e)}`)}}};a(_,"textureMap",new Map);let G=_;const K="spineTextureAtlasLoader",et={extension:O.Asset,resolver:{test:m=>V(m,".atlas"),parse:m=>{var e,t;const o=m.split(".");return{resolution:parseFloat(((t=(e=re.RETINA_PREFIX)==null?void 0:e.exec(m))==null?void 0:t[1])??"1"),format:o[o.length-2],src:m}}},loader:{name:K,extension:{type:O.LoadParser,priority:Te.Normal,name:K},test(m){return V(m,".atlas")},async load(m){const o=await re.ADAPTER.fetch(m);if(!o.ok)throw new Error(`[${K}] Failed to fetch ${m}: ${o.status} ${o.statusText}`);return await o.text()},testParse(m,o){const e=V(o.src,".atlas"),t=typeof m=="string",s=o.loadParser===K;return Promise.resolve((e||s)&&t)},unload(m){m.dispose()},async parse(m,o,e){var p;const t=o.data||{};let s=q.dirname(o.src);s&&s.lastIndexOf("/")!==s.length-1&&(s+="/");const n=new Ee(m);if(t.images instanceof fe||typeof t.images=="string"){const h=t.images;t.images={},t.images[n.pages[0].name]=h}const r=[];let l=!0;for(const h of e.parsers)if(h.name==="loadTextures"){l=(p=h.config)==null?void 0:p.preferCreateImageBitmap;break}Q.setPreferences({preferCreateImageBitmap:!1});for(const h of n.pages){const u=h.name,c=t!=null&&t.images?t.images[u]:void 0;if(c instanceof fe)h.setTexture(G.from(c));else{const i=c??q.normalize([...s.split(q.sep),u].join(q.sep)),g={src:De(i,o.src),data:{...t.imageMetadLine truncated
|
||||
attribute vec2 aVertexPosition;
|
||||
attribute vec2 aTextureCoord;
|
||||
|
||||
Vendored
+2
-2
@@ -8,8 +8,8 @@
|
||||
html, body { margin: 0; padding: 0; background: #111; color: #eee; font-family: system-ui, -apple-system, sans-serif; }
|
||||
#app { display: flex; flex-direction: column; height: 100vh; }
|
||||
</style>
|
||||
<script type="module" crossorigin src="/assets/index-2QgDjwRs.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CA-Q3Zzr.css">
|
||||
<script type="module" crossorigin src="/assets/index-DnfvUUAC.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-Q5OZd_mD.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in new issue
Block a user