重新修正忽视规则,防止clone后项目无法复现

This commit is contained in:
tianmo committed 2026-08-30 01:00:12 +08:00
1 parent a516777eb6
commit bd1204f1b9
133 files changed
+69225 -2

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../src/index.ts", "../../src/require-shim.ts", "../../../spine-core/src/Utils.ts", "../../../spine-core/src/attachments/Attachment.ts", "../../../spine-core/src/attachments/Sequence.ts", "../../../spine-core/src/Animation.ts", "../../../spine-core/src/AnimationState.ts", "../../../spine-core/src/AnimationStateData.ts", "../../../spine-core/src/attachments/BoundingBoxAttachment.ts", "../../../spine-core/src/attachments/ClippingAttachment.ts", "../../../spine-core/src/Texture.ts", "../../../spine-core/src/TextureAtlas.ts", "../../../spine-core/src/attachments/MeshAttachment.ts", "../../../spine-core/src/attachments/PathAttachment.ts", "../../../spine-core/src/attachments/PointAttachment.ts", "../../../spine-core/src/attachments/RegionAttachment.ts", "../../../spine-core/src/AtlasAttachmentLoader.ts", "../../../spine-core/src/BoneData.ts", "../../../spine-core/src/Bone.ts", "../../../spine-core/src/ConstraintData.ts", "../../../spine-core/src/AssetManagerBase.ts", "../../../spine-core/src/Event.ts", "../../../spine-core/src/EventData.ts", "../../../spine-core/src/IkConstraint.ts", "../../../spine-core/src/IkConstraintData.ts", "../../../spine-core/src/PathConstraintData.ts", "../../../spine-core/src/PathConstraint.ts", "../../../spine-core/src/PhysicsConstraint.ts", "../../../spine-core/src/Slot.ts", "../../../spine-core/src/TransformConstraint.ts", "../../../spine-core/src/Skeleton.ts", "../../../spine-core/src/PhysicsConstraintData.ts", "../../../spine-core/src/SkeletonData.ts", "../../../spine-core/src/Skin.ts", "../../../spine-core/src/SlotData.ts", "../../../spine-core/src/TransformConstraintData.ts", "../../../spine-core/src/SkeletonBinary.ts", "../../../spine-core/src/SkeletonBounds.ts", "../../../spine-core/src/Triangulator.ts", "../../../spine-core/src/SkeletonClipping.ts", "../../../spine-core/src/SkeletonJson.ts", "../../../spine-core/src/polyfills.ts", "../../src/SpineTexture.ts", "../../src/SlotMesh.ts", "../../src/darkTintMesh/DarkTintMesh.ts", "../../src/darkTintMesh/DarkTintGeom.ts", "../../src/darkTintMesh/DarkTintMaterial.ts", "../../src/DarkSlotMesh.ts", "../../src/Spine.ts", "../../src/SpineDebugRenderer.ts", "../../src/assets/atlasLoader.ts", "../../src/assets/skeletonLoader.ts", "../../src/darkTintMesh/DarkTintBatchGeom.ts", "../../src/darkTintMesh/DarkTintRenderer.ts"],
"sourcesContent": ["/******************************************************************************\n * Spine Runtimes License Agreement\n * Last updated September 24, 2021. Replaces all prior versions.\n *\n * Copyright (c) 2013-2021, Esoteric Software LLC\n *\n * Integration of the Spine Runtimes into software or otherwise creating\n * derivative works of the Spine Runtimes is permitted under the terms and\n * conditions of Section 2 of the Spine Editor License Agreement:\n * http://esotericsoftware.com/spine-editor-license\n *\n * Otherwise, it is permitted to integrate the Spine Runtimes into software\n * or otherwise create derivative works of the Spine Runtimes (collectively,\n * \"Products\"), provided that each user of the Products must obtain their own\n * Spine Editor license and redistribution of the Products in any form must\n * include this license and copyright notice.\n *\n * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC \"AS IS\" AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,\n * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *****************************************************************************/\n\nexport * from './require-shim.js';\nexport * from './Spine.js';\nexport * from './SpineDebugRenderer.js';\nexport * from './SpineTexture.js';\nexport * from './SlotMesh.js';\nexport * from './DarkSlotMesh.js';\nexport * from './assets/atlasLoader.js';\nexport * from './assets/skeletonLoader.js';\nexport * from './darkTintMesh/DarkTintBatchGeom.js';\nexport * from './darkTintMesh/DarkTintGeom.js';\nexport * from './darkTintMesh/DarkTintMaterial.js';\nexport * from './darkTintMesh/DarkTintMesh.js';\nexport * from './darkTintMesh/DarkTintRenderer.js';\nexport * from \"@esotericsoftware/spine-core\";\n\n\nimport './assets/atlasLoader.js'; // Side effects install the loaders into pixi\nimport './assets/skeletonLoader.js'; // Side effects install the loaders into pixi\n", "/******************************************************************************\n * Spine Runtimes License Agreement\n * Last updated April 5, 2025. Replaces all prior versions.\n *\n * Copyright (c) 2013-2025, Esoteric Software LLC\n *\n * Integration of the Spine Runtimes into software or otherwise creating\n * derivative works of the Spine Runtimes is permitted under the terms and\n * conditions of Section 2 of the Spine Editor License Agreement:\n * http://esotericsoftware.com/spine-editor-license\n *\n * Otherwise, it is permitted to integrate the Spine Runtimes into software\n * or otherwise create derivative works of the Spine Runtimes (collectively,\n * \"Products\"), provided that each user of the Products must obtain their own\n * Spine Editor license and redistribution of the Products in any form must\n * include this license and copyright notice.\n *\n * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC \"AS IS\" AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,\n * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *****************************************************************************/\n\nif (typeof window !== 'undefined' && (window as any).PIXI) {\n\tlet prevRequire = window.require;\n\t(window as any).require = (x: string) => {\n\t\tif (prevRequire) return prevRequire(x);\n\t\telse if (x.startsWith(\"@pixi/\")) return (window as any).PIXI;\n\t}\n}\n\nexport { }\n", "/******************************************************************************\n * Spine Runtimes License Agreement\n * Last updated April 5, 2025. Replaces all prior versions.\n *\n * Copyright (c) 2013-2025, Esoteric Software LLC\n *\n * Integration of the Spine Runtimes into software or otherwise creating\n * derivative works of the Spine Runtimes is permitted under the terms and\n * conditions of Section 2 of the Spine Editor LiLine truncated
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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BAAkB,KAAa,KAAqB;AAC1D,aAAO,WAAU,qBAAqB,KAAK,MAAM,MAAM,OAAO,GAAG;AAAA,IAClE;AAAA,IAEA,OAAO,qBAAsB,KAAa,KAAa,MAAsB;AAC5E,UAAI,IAAI,KAAK,OAAO;AACpB,UAAI,IAAI,MAAM;AACd,UAAI,MAAM,OAAO,OAAO,EAAG,QAAO,MAAM,KAAK,KAAK,IAAI,KAAK,OAAO,IAAI;AACtE,aAAO,MAAM,KAAK,MAAM,IAAI,KAAK,KAAK,MAAM,KAAK;AAAA,IAClD;AAAA,IAEA,OAAO,aAAc,OAAe;AACnC,aAAO,UAAU,QAAS,QAAQ,OAAQ;AAAA,IAC3C;AAAA,EACD;AAEO,MAAe,gBAAf,MAA6B;AAAA,IAEnC,MAAO,OAAe,KAAa,GAAmB;AACrDLine truncated
"names": ["v", "SequenceMode", "MixBlend", "MixDirection", "x", "y", "i", "vertexAttachment", "constraint", "i", "n", "timeline", "EventType", "TextureFilter", "TextureWrap", "page", "Inherit", "s", "PositionMode", "SpacingMode", "RotateMode", "closed", "pathLength", "multiplier", "Physics", "BlendMode", "closed", "n", "LinkedMesh", "readTimeline1", "readTimeline2", "timeline", "PixiTexture", "import_core", "import_mesh", "import_core", "import_core", "import_core", "bounds", "n", "import_display", "import_graphics", "i", "len", "import_assets", "import_core", "import_assets", "import_core", "loaderName", "import_core", "import_core", "vertex", "fragment"]
}
@@ -0,0 +1,72 @@
"use strict";var spine=(()=>{var ft=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor,Si=Object.getOwnPropertyNames,Ti=Object.prototype.hasOwnProperty,Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,s)=>(typeof require<"u"?require:e)[s]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),Ai=(t,e)=>{for(var s in e)ft(t,s,{get:e[s],enumerable:!0})},ki=(t,e,s,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Si(e))!Ti.call(t,r)&&r!==s&&ft(t,r,{get:()=>e[r],enumerable:!(i=Ci(e,r))||i.enumerable});return t},Ii=t=>ki(ft({},"__esModule",{value:!0}),t),As={};if(Ai(As,{AABBRectangleBoundsProvider:()=>Sr,AlphaTimeline:()=>Mt,Animation:()=>ze,AnimationState:()=>Gt,AnimationStateAdapter:()=>Bi,AnimationStateData:()=>Vs,AssetCache:()=>qs,AssetManagerBase:()=>Li,AtlasAttachmentLoader:()=>Zt,Attachment:()=>gt,AttachmentTimeline:()=>ve,BinaryInput:()=>Js,BlendMode:()=>ds,Bone:()=>ts,BoneData:()=>es,BoundingBoxAttachment:()=>Kt,CURRENT:()=>Ds,ClippingAttachment:()=>Ce,Color:()=>V,ConstraintData:()=>Ne,CurveTimeline:()=>le,CurveTimeline1:()=>ae,CurveTimeline2:()=>Ge,DarkSlotMesh:()=>et,DarkTintBatchGeometry:()=>oi,DarkTintGeometry:()=>ti,DarkTintMaterial:()=>si,DarkTintMesh:()=>ii,DarkTintRenderer:()=>li,DebugUtils:()=>Pi,DeformTimeline:()=>Et,Downloader:()=>Ws,DrawOrderTimeline:()=>Ie,Event:()=>ss,EventData:()=>is,EventQueue:()=>Xs,EventTimeline:()=>$e,EventType:()=>Rs,FIRST:()=>$t,FakeTexture:()=>Xi,HOLD_FIRST:()=>je,HOLD_MIX:()=>Ls,HOLD_SUBSEQUENT:()=>Ht,IkConstraint:()=>zs,IkConstraintData:()=>rs,IkConstraintTimeline:()=>Ft,Inherit:()=>Qe,InheritTimeline:()=>At,IntSet:()=>Mi,Interpolation:()=>ks,MathUtils:()=>B,MeshAttachment:()=>Me,MixBlend:()=>Es,MixDirection:()=>Fs,PathAttachment:()=>Ye,PathConstraint:()=>Gs,PathConstraintData:()=>ns,PathConstraintMixTimeline:()=>Lt,PathConstraintPositionTimeline:()=>Xt,PathConstraintSpacingTimeline:()=>Rt,Physics:()=>js,PhysicsConstraintDampingTimeline:()=>Nt,PhysicsConstraintGravityTimeline:()=>Ut,PhysicsConstraintInertiaTimeline:()=>Dt,PhysicsConstraintMassTimeline:()=>_t,PhysicsConstraintMixTimeline:()=>qt,PhysicsConstraintResetTimeline:()=>Wt,PhysicsConstraintStrengthTimeline:()=>Vt,PhysicsConstraintTimeline:()=>pe,PhysicsConstraintWindTimeline:()=>Ot,PointAttachment:()=>Us,Pool:()=>ke,PositionMode:()=>as,Pow:()=>Is,PowOut:()=>Yi,RGB2Timeline:()=>Pt,RGBA2Timeline:()=>Yt,RGBATimeline:()=>kt,RGBTimeline:()=>It,RegionAttachment:()=>Ve,RotateMode:()=>ls,RotateTimeline:()=>De,SETUP:()=>jt,SUBSEQUENT:()=>He,ScaleTimeline:()=>bt,ScaleXTimeline:()=>yt,ScaleYTimeline:()=>vt,SequenceTimeline:()=>zt,SetupPoseBoundsProvider:()=>Tr,ShearTimeline:()=>Ct,ShearXTimeline:()=>St,ShearYTimeline:()=>Tt,Skeleton:()=>Pe,SkeletonBinary:()=>fs,SkeletonBounds:()=>Qs,SkeletonClipping:()=>Ze,SkeletonData:()=>_e,SkeletonJson:()=>gs,Skin:()=>Oe,SkinEntry:()=>hs,SkinsAndAnimationBoundsProvider:()=>Ar,Slot:()=>$s,SlotData:()=>cs,SlotMesh:()=>ei,SpacingMode:()=>os,Spine:()=>kr,SpineDebugRenderer:()=>Mr,SpineTexture:()=>Ue,StringSet:()=>mt,Texture:()=>Jt,TextureAtlas:()=>Je,TextureAtlasPage:()=>Os,TextureAtlasRegion:()=>Qt,TextureFilter:()=>Ke,TextureRegion:()=>_s,TextureWrap:()=>Ns,TimeKeeper:()=>Ei,Timeline:()=>H,TrackEntry:()=>Bs,TransformConstraint:()=>Hs,TransformConstraintData:()=>us,TransformConstraintTimeline:()=>Bt,TranslateTimeline:()=>xt,TranslateXTimeline:()=>pt,TranslateYTimeline:()=>wt,Triangulator:()=>Zs,Utils:()=>X,Vector2:()=>Le,VertexAttachment:()=>fe,WindowedMean:()=>Fi}),typeof window<"u"&&window.PIXI){let t=window.require;window.require=e=>{if(t)return t(e);if(e.startsWith("@pixi/"))return window.PIXI}}var Mi=class{array=new Array;add(t){let e=this.contains(t);return this.array[t|0]=t|0,!e}contains(t){return this.array[t|0]!=null}remove(t){this.array[t|0]=void 0}clear(){this.array.length=0}},mt=class{entries={};size=0;add(t){let e=this.entries[t];return this.entries[t]=!0,e?!1:(this.size++,!0)}addAll(t){let e=this.size;for(var s=0,i=t.length;s<i;s++)this.add(t[s]);return e!=this.size}contains(t){return this.entries[t]}clear(){this.entries={},this.size=0}},V=class Se{constructor(e=0,s=0,i=0,r=0){this.r=e,this.g=s,this.b=i,this.a=r}static WHITE=new Se(1,1,1,1);static RED=new Se(1,0,0,1);static GREEN=new Se(0,1,0,1);static BLUE=new Se(0,0,1,1);static MAGENTA=new Se(1,0,1,1);set(e,s,i,r){return this.r=e,this.g=s,this.b=i,this.a=r,this.clamp()}setFromColor(e){return this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this}setFromString(e){return e=e.charAt(0)=="#"?e.substr(1):e,this.r=parseInt(e.substr(0,2),16)/255,this.g=parseInt(e.substr(2,2),16)/255,this.b=parseInt(e.substr(4,2),16)/255,this.a=e.length!=8?1:parseInt(e.substr(6,2),16)/255,this}add(e,s,i,r){return this.r+=e,this.g+=s,this.b+=i,this.a+=r,this.clamp()}clamp(){return this.r<0?this.r=0:this.r>1&&(this.r=1),this.g<0?this.g=0:this.g>1&&(this.g=1),this.b<0?this.b=0:this.b>1&&(this.b=1),this.a<0?this.a=0:this.a>1&&(tLine truncated
`+s:""))}remove(t){t=this.pathPrefix+t;let 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(let t in this.cache.assets){let 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 Je){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){const s=new Je(e);return s.dispose=()=>{if(!(this.cache.assetsRefCount[t]<=0)){this.disposeAssetInternal(t);for(const i of s.pages)i.texture?.dispose()}},s}createTexture(t,e){const s=this.textureLoader(e),i=s.dispose.bind(s);return s.dispose=()=>{this.disposeAssetInternal(t)&&i()},s}},qs=class ut{assets={};assetsRefCount={};assetsLoaded={};static AVAILABLE_CACHES=new Map;static getCache(e){const s=ut.AVAILABLE_CACHES.get(e);if(s)return s;const i=new ut;return ut.AVAILABLE_CACHES.set(e,i),i}async addAsset(e,s){this.assetsLoaded[e]=Promise.resolve(s),this.assets[e]=await s}},Ws=class{callbacks={};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){for(var e=window.atob(t),s=e.length,i=new Uint8Array(s),r=0;r<s;r++)i[r]=e.charCodeAt(r);return i}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,s){if(this.start(t,e,s))return;const i=this.rawDataUris[t];if(i&&!i.includes(".")){try{this.finish(t,200,this.dataUriToString(i))}catch(o){this.finish(t,400,JSON.stringify(o))}return}let r=new XMLHttpRequest;r.overrideMimeType("text/html"),r.open("GET",i||t,!0);let h=()=>{this.finish(t,r.status,r.responseText)};r.onload=h,r.onerror=h,r.send()}downloadJson(t,e,s){this.downloadText(t,i=>{e(JSON.parse(i))},s)}downloadBinary(t,e,s){if(this.start(t,e,s))return;const i=this.rawDataUris[t];if(i&&!i.includes(".")){try{this.finish(t,200,this.dataUriToUint8Array(i))}catch(o){this.finish(t,400,JSON.stringify(o))}return}let r=new XMLHttpRequest;r.open("GET",i||t,!0),r.responseType="arraybuffer";let h=()=>{this.finish(t,r.status,r.response)};r.onload=()=>{r.status==200||r.status==0?this.finish(t,200,new Uint8Array(r.response)):h()},r.onerror=h,r.send()}start(t,e,s){let i=this.callbacks[t];try{if(i)return!0;this.callbacks[t]=i=[]}finally{i.push(e,s)}}finish(t,e,s){let i=this.callbacks[t];delete this.callbacks[t];let r=e==200||e==0?[s]:[e,s];for(let h=r.length-1,o=i.length;h<o;h+=2)i[h].apply(null,r)}},ss=class{data;intValue=0;floatValue=0;stringValue=null;time=0;volume=0;balance=0;constructor(t,e){if(!e)throw new Error("data cannot be null.");this.time=t,this.data=e}},is=class{name;intValue=0;floatValue=0;stringValue=null;audioPath=null;volume=0;balance=0;constructor(t){this.name=t}},zs=class{data;bones;target;bendDirection=0;compress=!1;stretch=!1;mix=1;softness=0;active=!1;constructor(t,e){if(!t)throw new Error("data cannot be null.");if(!e)throw new Error("skeleton cannot be null.");this.data=t,this.bones=new Array;for(let i=0;i<t.bones.length;i++){let r=e.findBone(t.bones[i].name);if(!r)throw new Error(`Couldn't find bone ${t.bones[i].name}`);this.bones.push(r)}let s=e.findBone(t.target.name);if(!s)throw new Error(`Couldn't find bone ${t.target.name}`);this.target=s,this.mix=t.mix,this.softness=t.softness,this.bendDirection=t.bendDirection,this.compress=t.compress,this.stretch=t.stretch}isActive(){return this.active}setToSetupPose(){const t=this.data;this.mix=t.mix,this.softness=t.softness,this.bendDirection=t.bendDirection,this.compress=t.compress,this.stretch=t.stretch}update(t){if(this.mix==0)return;let e=this.target,s=this.bones;switch(s.length){case 1:this.apply1(s[0],e.worldX,e.worldY,this.compress,this.stretch,this.data.uniform,this.mix);break;case 2:this.apply2(s[0],s[1],e.worldX,e.worldY,this.bendDirection,this.stretch,this.data.uniform,this.softness,this.mix);break}}apply1(t,e,s,i,r,h,o){let n=t.parent;if(!n)throw new Error("IK bone must have parent.");let a=n.a,l=n.b,c=n.c,d=n.d,u=-t.ashearX-t.arotation,m=0,f=0;switch(t.inherit){case 1:m=(e-t.worldX)*B.signum(t.skeleton.scaleX),f=(s-t.worldY)*B.signum(t.skeleton.scaleY);break;case 2:let b=Math.abs(a*d-l*c)/Math.max(1e-4,a*a+c*c),x=a/t.skeleton.scaleX,w=c/t.skeleton.scaleY;l=-w*b*t.skeleton.scaleX,d=x*b*t.skeleton.scaleY,u+=Math.atan2(w,x)*B.radDeg;default:let y=e-n.worldX,v=s-n.worldY,C=a*d-l*c;Math.abs(C)<=1e-4?(m=0,f=0) Line truncated
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
uniform mat3 translationMatrix;
uniform mat3 uTextureMatrix;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
}
`,yr=`
varying vec2 vTextureCoord;
uniform vec4 uColor;
uniform vec4 uDarkColor;
uniform sampler2D uSampler;
void main(void)
{
vec4 texColor = texture2D(uSampler, vTextureCoord);
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;
}
`,si=class extends xe.Shader{uvMatrix;batchable;pluginName;_tintRGB;_darkTintRGB;_colorDirty;_alpha;_tintColor;_darkTintColor;constructor(t){const e={uSampler:t??xe.Texture.EMPTY,alpha:1,uTextureMatrix:xe.Matrix.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(xe.Program.from(br,yr),e),this._colorDirty=!1,this.uvMatrix=new xe.TextureMatrix(e.uSampler),this.batchable=!0,this.pluginName=s.pluginName,this._tintColor=new xe.Color(s.tint),this._darkTintColor=new xe.Color(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,xe.Color.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),xe.Color.shared.setValue(this._darkTintColor).premultiply(this._alpha,!0).premultiply(1,!1).toArray(this.uniforms.uDarkColor)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}},ii=class extends wr.Mesh{_darkTintRGB=0;constructor(t){super(new ti,new si(t),void 0,void 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 e=this.geometry,s=this.shader;s.uvMatrix&&(s.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=e.indexBuffer.data,this._tintRGB=s._tintRGB,this._darkTintRGB=s._darkTintRGB,this._texture=s.texture;const i=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[i]),t.plugins[i].render(this)}},et=class Z extends ii{name="";static auxColor=[0,0,0,0];constructor(){super()}updateFromSpineData(e,s,i,r,h,o,n,a){this.texture=e.texture;const l=h/(a?12:8)*2,c=this.geometry.getBuffer("aTextureCoord");c.data?.length!==l&&(c.data=new Float32Array(l));const d=this.geometry.getBuffer("aVertexPosition");d.data?.length!==l&&(d.data=new Float32Array(l));let u=0,m=c.data,f=d.data;for(let p=0;p<h;p+=a?12:8){let b=p;f[u]=r[b++],f[u+1]=r[b++],b+=4,m[u]=r[b++],m[u+1]=r[b++],u+=2}a?(Z.auxColor[0]=r[8],Z.auxColor[1]=r[9],Z.auxColor[2]=r[10],Z.auxColor[3]=r[11],this.darkTint=Z.auxColor,Z.auxColor[0]=r[2],Z.auxColor[1]=r[3],Z.auxColor[2]=r[4],Z.auxColor[3]=r[5],this.tint=Z.auxColor):(Z.auxColor[0]=r[2],Z.auxColor[1]=r[3],Z.auxColor[2]=r[4],Z.auxColor[3]=r[5],this.tint=Z.auxColor),this.blendMode=Ue.toPixiBlending(s),this.alpha=Z.auxColor[3];const g=this.geometry.indexBuffer;if(g.data.length!==o.length)g.data=new Uint32Array(o);else{const p=g.data;for(let b=0;b<n;b++)p[b]=o[b]}this.name=i,c.update(),d.update(),g.update()}},tt=Q("@pixi/assets"),vr=Q("@pixi/core"),ri=Q("@pixi/core"),ni=Q("@pixi/display"),Cr=Q("@pixi/graphics"),Rr=Q("@pixi/events"),Sr=class{constructor(t,e,s,i){this.x=t,this.y=e,this.width=s,this.height=i}calculateBounds(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},Tr=class{constructor(t=!1){this.clipping=t}calculateBounds(t){if(!t.skeleton)return{x:0,y:0,width:0,height:0};const e=new Pe(t.skeleton.data);e.setToSetupPose(),e.updateWorldTransform(2);const s=e.getBoundsRect(this.clipping?new Ze:void 0);return s.width==Number.NEGATIVE_INFINITY?{x:0,y:0,width:0,height:0}:s}},Ar=class{constructor(t,e=[],s=.05,i=!1){this.animation=t,this.skins=e,this.timeStep=s,this.clipping=i}calculateBounds(t){if(!t.skeleton||!t.state)return{x:0,y:0,width:0,height:0};const e=new Gt(t.state.data),s=new Pe(t.skeleton.data),i=this.clipping?new Ze:void 0,r=s.data;if(this.skins.length>0){let o=new Oe("custom-skin");for(const n of this.skins){const a=r.findSkin(n);a!=null&&o.addSkin(a)}s.setSkin(o)}s.setToSetupPose();const h=this.animation!=null?r.findAnimation(this.animation):null;if(h==null){s.updateWorldTransform(2);const o=s.getBoundsRect(i);return o.width==Number.NEGATIVE_INFINITY?{x:0,y:0,width:0,height:0}:o}else{let o=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY;e.clearTracks(),e.setAnimationWith(0,h,!1);const c=Math.max(h.duration/this.timeStep,1);for(let u=0;u<c;u++){const m=u>0?this.ti Line truncated
precision highp float;
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
attribute vec4 aColor;
attribute vec4 aDarkColor;
attribute float aTextureId;
uniform mat3 projectionMatrix;
uniform mat3 translationMatrix;
uniform vec4 tint;
varying vec2 vTextureCoord;
varying vec4 vColor;
varying vec4 vDarkColor;
varying float vTextureId;
void main(void){
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
vTextureId = aTextureId;
vColor = aColor * tint;
vDarkColor = aDarkColor * tint;
}
`,Xr=`
varying vec2 vTextureCoord;
varying vec4 vColor;
varying vec4 vDarkColor;
varying float vTextureId;
uniform sampler2D uSamplers[%count%];
void main(void){
vec4 color;
%forloop%
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;
}
`,li=class extends Fe.BatchRenderer{static extension={name:"darkTintBatch",type:Fe.ExtensionType.RendererPlugin};constructor(t){super(t),this.shaderGenerator=new Fe.BatchShaderGenerator(Br,Xr),this.geometryClass=oi,this.vertexSize=7}packInterleavedGeometry(t,e,s,i,r){const{uint32View:h,float32View:o}=e,n=i/this.vertexSize,a=t.uvs,l=t.indices,c=t.vertexData,d=t._texture.baseTexture._batchLocation,u=Math.min(t.worldAlpha,1),m=Fe.Color.shared.setValue(t._tintRGB).toPremultiplied(u,!0),f=Fe.Color.shared.setValue(t._darkTintRGB).premultiply(u,!0).toPremultiplied(1,!1);for(let g=0;g<c.length;g+=2)o[i++]=c[g],o[i++]=c[g+1],o[i++]=a[g],o[i++]=a[g+1],h[i++]=m,h[i++]=f,o[i++]=d;for(let g=0;g<l.length;g++)s[r++]=n+l[g]}};return Fe.extensions.add(li),Ii(As)})();