轴点功能修复

This commit is contained in:
tianmo committed 2026-10-22 12:04:29 +08:00
1 parent 4d54c87681
commit 2b8fd067b3
16 files changed
+1750 -105

No files matched your search

+531
View File
@@ -0,0 +1,531 @@
{
"format": "SpineParticle.EditorConfig",
"version": 1,
"savedAt": "2026-10-22T03:44:07.350Z",
"editor": {
"viewScale": 0.7117802478134118,
"viewX": 17.08734153523332,
"viewY": 26.20117264599483
},
"settings": {
"backgroundX": 0,
"backgroundY": 0,
"backgroundOpacity": 1,
"backgroundImageName": "",
"backgroundImageData": "",
"showGrid": true,
"exportSettings": {
"imagesPath": "./images/",
"spineVersion": "4.2",
"keyframeCurve": "bezier",
"fps": 30,
"omitFps": false,
"integerFrameAlignment": true,
"bonePool": true,
"excludeEmptyAnimations": false,
"fileName": "SpineParticle.json"
}
},
"timeline": {
"fps": 30,
"loop": true,
"playbackStart": 0,
"playbackEnd": 30,
"animations": [
"animation"
]
},
"selection": {
"type": "particle",
"id": 1
},
"scene": {
"systems": [
{
"id": 1,
"visible": true,
"animation": "animation",
"config": {
"imageResources": [
{
"id": 1,
"textureName": "217cc2f5b2914d1716898385698d9eb17e352d97385b8-Fojf0Y",
"textureFolder": "",
"previewUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAApIAAAKSCAYAAABhiDtmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpEMTM4OTM1REExQzMxMUU3OENFN0IxN0YxNDFFOEQ5NSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpEMTM4OTM1RUExQzMxMUU3OENFN0IxN0YxNDFFOEQ5NSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkQxMzg5MzVCQTFDMzExRTc4Q0U3QjE3RjE0MUU4RDk1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkQxMzg5MzVDQTFDMzExRTc4Q0U3QjE3RjE0MUU4RDk1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+CRuTCgADgi1JREFUeNrsveuS5EaSNRYeADKrqq9kkzOzM/utzKS/egHJTM8mPZceQK8gk+my3652NVdyhmR3V1UC4a7wW0QAiewLu7rZJMNnkt2dFyQSQCYOjp9zHML//L8Er//hf/3fw8+xiM7vA1jsTyz3pfSl/Hl3/z/tLAXCL60inM7uG8f/U/68uvo/2i0o/53nRzvbEd/rPf/rf//PZ/f98b/9WjdwSuHxd7fhq7+9Cl/9+zdhenUbno5LuE0xzBTzCg95X5LuCV4leW+yfUP5sach4YuA6YXsS6SrfN+Q1zHlG4VeO98N3noE+Ubh/tES7p7fh7jA7uGet3BY7h7nPyLMt0/zHVEfON4H+PpPAIcl6GamkO5vwvzDF2FACo/pVTjSEpAfze9Fx3tYxgjUvAnYMbacrgLOV3pcXd/mA/GO+FE8XQHfINrxRvpOaUSgAeEqncKQ+BC6CuHmNeEyAaV848+WXwPXt8DLTMsUaJkIru/y8TFCnPNqh4UQhwgxxHGYQ0xxiDgA/wXyyweIhzGG8ZTwlt8UKRKmmJAPx2Gh+3RAGihvlSXQfMhrlt9qPOX3TXkFIy+blmGQDRiHkxyLdHfMz5lpGGf55PT6kX8miNNdiPzsVzc0P7qHFHU7w2nA/FH4GwDD1asA+fPmt89fC+R10uXy581/DpRX6XbkbQe8mWX/xom+j09CmO7o6um3+f68fvwhhvxb+MPTgH/+Xf6O6TKGw+tw9ezP+t3C2O4qsv8C3z3OQ7j+e95fCLL68P6H38+yTv/d//ar/+04/N//Y/8B7fVuWKNvgl4fu67u7/MJcQlPf7gLL/78Q3j+n3/PWOBVeBQFfAiIzGfpetZp/uIAEfFRBhG/zX9+ncHk1/nP63wb7Mn4cz5nfTpQObzlooBB4HJQ8IFj3RdTBkfTIo974XzID8UwhBTGfFstJu5d2aEAGJJ9BgJowqgXe4TR7j9bHcGy/B66SGgubBpIw0DS78co/2ZMywB6KM+PH3bFKBc6gsrtUIPy3gKZifRufl67Ls061gtfW8f8oTKW3b2WzWDYljHtrg7yc8f1dp8oZYC5yD6kefO6wynYRlRAys+RZdNbDgleRwWqvXr16tWBZK+fpK6/vQ3Xd3P48k8/hKd//SFc/XCbDzwKr2kML9OUT1axsGbgpzZAA5EZfOTnEX2RgSQzkc/CPF8zxMwn8HwSz2AUoG/jt+KgvJGYYQqXsKQAvbxX8v5ABzEGHGFMIPvDgWQGfZgmAfD5b3lfYsGYzA4yScwMGtmd5U8Gi3zjf2d0UoAtAysDkhTqBQUy9ZeXNxDKvhYgyhSogk9oQRq/HQqDKvScE9oAwmRnqOdUqmCiPVDJcFD/Lccdv8JWRDi/8ndZNpGBRCEI+WMLjyifURjCvE7Ef0ey9RySvx+RXQAxtRlR73LQ5qtEaVCyMI0NANVj3vYnkL24fAJCmMIi27l9nWzfDNphnBWB5mXw4/4cWoNraC/n+KIgvxf1r1ivXr06kOz1SSoNcXVDPrvmc/+zv74SEHmdQeR1OBU8Qy0KbFgnbVdjBo6P8suZhfy9Asnlhs/Kembv7ez3AJIZEIxv3l4CuhiwCRtJBZSFw/16WcwgZhDCFwNTmCsKEaCXwiXUIQDKQByDyIZFhN0XCSSjEJsLDDBAWdruoODVliPrpuwf6MWJwD5YMYLh3WDR+Tq1y6H1T2dl7KButw1QL4WGS/k5C9TXtl8FXz4j5F0SFWx/Uvnq8LMOpPsjzYfm/WybXN2ufvpZYvAuNV8tnZHs1atXB5K9Pk0B0vqmNAo8+dvLcMwgklvcpwwEZxrKCdg5mSLOKtpIZrW+ygDyd2FZfhPmDCIxv26Iqk9btzk7Z/JGIBlJpXCXQRTJowwETY8nwGnIIOJwV4ATGJvFe41bzgMlZQp9R0TMu13fw1lEB0TyOnkiOkOn/8JB2UADXyIFtHXOIFLYPgp2OAiLqSwf5KNBjgFubTfAL7+A/wn8/pXhpjXukw0R9SO1uHUF1UJhKQXSStta0CkQqh5U8SVq15s5VAWBeeNgAd2ybvnfJO+A9rOb31b2RxSoqBsMwd+qrLDIAWJlIuVRfYZ+yvLFkT9GWmS/YDoQ64dbAA3He/1QBmwVbKrGdINWfVPIx5kfzcpK/jhesn8xe/X6hdfYN0Gvh6yv/vx9Q7xAeP30Kly/OoVH374Mh/k+TPkcOvPJEWLwPquyL8pCjhlgcPMy4U2gxO3s/5L//iTMp5vS7oaIfUO/z5mcgVgk0w1efh6yPnIF/qStLS1RYRO9s80t0bzPDnSStnN5gF/LrdCwo3eUVreDUWZHFwU53u4OxogWBKPsX2yb3bzy3MZOI6xgStxoEn25DVv39mo0jGsQVBW7YuwRsEyBtY35wwI7YgLZBZHCOrl2YkAeJv47OACn1fbgZbHudJTDOgw7SLa0uUeRAoTN6/n7RfxZeV1AL8YGUpb4jiUjeRtAq4u9ug1yoeBt+XQU9hnifOG4UWzOFyDSaf+lf+3S0H8sevXqQLLXT11P/vJd4bdwHMREc/X9bbi6vwtDwScOFqJzUtbOJgGTabkWQ01Kvw/z/JWYaiCfzAZxxGInOn4EJYSDEmgXgWQGeWm+LhuWSCk+ON6RMH6OJJhZzICTWcKJFlEWouhYg4AWfh8RDtpinUkT8OlAj/V6zHTy/TjCqk1tTVrRHorRAwu4EzAm3erYrDbqs7GCT7V787Gl7Kq3faHRQO4gNgsLADjHk+XN8itrQoCwjaz1ZGYxySGqcFTMY4uCUDYuBTYVsaoRiVwzKS6iJG/CbvRlaD63SzzzxhQONG/7YTKG16Qf+rkiSwT4K6PubeNeGUje04FwnigOMxQ0zOCddZJ3V7KymJfLpqnhOBchQ/O5ZT1QWOH8FlOi8X4M9H7fvJ/Xl3RI/ceiV68fUb213etB6wqWcMgnTv4zgwC4ySDyyatX4VrOdqBspB923tGLi9z4vLNkkJLSHzLAYE0ku7MndTPA8t5RRL/gem/BmpomaPf0vtLjCdun+kJh9o73UKkoBR8hTcJEtm5tWSQbTADMgYLrbik1UM7ZSDfZ0Are6t8HbWkPrTYvGlUq7WJefoT2mBDtJnhylGoPqXSLhcVbtW8bD4msXGs6gbWZGlZb3QAHFoeRvh4Ufft7GjMa2+1TFyoXR6ikpvbDtY8s60QFbMrXhYZmX0GzC9lw0/Kneu+ICSSsZznWD4AKXEXv2nzsopOEXfAnnyvjWVCA+8vWSeKX/1FuvXr1evfqjGSvB617MtYiAw0aYzi8vg9PhiXc5hMZq7cadqjRRCaGBGHmVhu9CAn/JQPIpxlUXjG0DMOwtERJ38gVcMFb0SZZBuel6B8yfaqbYFITG8Ps1fFOgL+/kTi6U5T2aSRrgxtMo5gC0f61qcf7CMA0NlLas6koBJVtI5MegjrCWyOzwBllGMu7mj4yIJW2Nve/1XhtROne5bLxf5tr6lSOMLqMyJsebwSl7BDkboXO7ApXRDmgWuXZTMStaWlDDwX06puRoPwYEiT/d4NbwUAnf77YgGYoLnYz3NQtkn/UGeQv+fszal+atZe6gqKTrLid8sXaFCbf9xR2ExD4PVQy68LZX2alF//eoMr+A9Or17tWZyR7fazK+BDzOWwJp3yiOlVLQfmldmc215JBJOJzaWen9FziZVQP2dtNH7QTzIuBFxzbfm86XeteaWJjIpszOH+wgBSQtjaDRTZ1hKppNMwqbHM1cVPVO4o8gf/BLine truncated
"imageMode": "fixed",
"sequencePlayback": "loop-forward",
"sequenceFps": 30,
"sequenceFrames": [],
"weight": 100,
"locked": false,
"scale": 1,
"anchorX": 0.49090082662088885,
"anchorY": 0.8530484713040866,
"colorMode": "fixed",
"colorStart": "#ffffff",
"colorEnd": "#ff4d4d",
"colorGradient": [
{
"position": 0,
"color": "#ffffff"
},
{
"position": 1,
"color": "#ff4d4d"
}
],
"blend": "add",
"independentAlpha": "off",
"alpha": 1,
"alphaCurveMode": "跟随导出",
"alphaCurve": [
{
"x": 0,
"y": 0
},
{
"x": 0.1,
"y": 1
},
{
"x": 0.9,
"y": 1
},
{
"x": 1,
"y": 0
}
]
}
],
"imageWeightVersion": 1,
"name": "ParticleSystem1",
"mode": "stream",
"rate": 20,
"streamBehavior": "loop",
"loopDurationFrames": 30,
"generateLoopStartAnimation": false,
"loopStartUseCustomDuration": false,
"loopStartDurationFrames": 30,
"generateLoopEndAnimation": false,
"loopEndUseCustomDuration": false,
"loopEndDurationFrames": 30,
"burstCount": 50,
"burstLoop": false,
"delay": 0,
"duration": 1,
"shape": "point",
"showShape": true,
"shapeRangeVersion": 1,
"innerRadius": 0,
"outerRadius": 30,
"innerRectW": 0,
"innerRectH": 0,
"outerRectW": 60,
"outerRectH": 40,
"spawnPathId": 0,
"spawnPathDistribution": "fixed",
"radius": 30,
"rectW": 60,
"rectH": 40,
"centerX": 0,
"centerY": 0,
"rootRotation": 0,
"rootScaleX": 1,
"rootScaleY": 1,
"renderLayerMode": "top",
"renderLayerSpineId": 0,
"renderLayerSlotName": "",
"renderLayerSlotPosition": "above",
"renderLayerFollowAttachment": false,
"emissionAngleMode": "random",
"direction": 0,
"spread": 360,
"coneDirection": 90,
"coneAngle": 60,
"lifeMin": 0.2,
"lifeMax": 1,
"lifeMode": "random",
"lifeCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"speedMin": 0,
"speedMax": 140,
"speedMode": "fixed",
"speedCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"scaleMin": 0.3,
"scaleMax": 0.8,
"scaleMode": "random",
"scaleAxisMode": "uniform",
"scaleYMin": 0.3,
"scaleYMax": 0.8,
"scaleCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"scaleYCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"scaleEndRatio": 0.3,
"initialRotationMode": "random",
"initialRotationMin": 0,
"initialRotationMax": 360,
"initialRotationCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"alpha": 0.9,
"alphaEnd": 0,
"rotationSpeedMin": -90,
"rotationSpeedMax": 90,
"speedOverLifeEnabled": false,
"speedOverLifeMode": "fixed",
"speedOverLifeMin": 1,
"speedOverLifeMax": 1,
"speedOverLifeCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"scaleOverLifeEnabled": true,
"scaleOverLifeMode": "curve",
"scaleOverLifeAxisMode": "uniform",
"scaleOverLifeMin": 0,
"scaleOverLifeMax": 1,
"scaleYOverLifeMin": 0,
"scaleYOverLifeMax": 1,
"scaleOverLifeCurve": [
{
"x": 0,
"y": 0
},
{
"x": 0.08,
"y": 1
},
{
"x": 0.88,
"y": 1
},
{
"x": 1,
"y": 0
}
],
"scaleYOverLifeCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"rotationOverLifeEnabled": true,
"rotationOverLifeMode": "random",
"rotationOverLifeCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"gravity": 980,
"gravityMode": "fixed",
"gravityMin": 980,
"gravityMax": 980,
"gravityDirection": -90,
"gravityCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"damping": 0,
"seed": 962221,
"colorStart": "#ffffff",
"colorEnd": "#ff4d4d",
"colorOverLife": false,
"blend": "add",
"alphaMode": "curve",
"curveMode": "线性",
"alphaCurve": [
{
"x": 0,
"y": 0
},
{
"x": 0.38,
"y": 1
},
{
"x": 0.63,
"y": 1
},
{
"x": 1,
"y": 0
}
],
"textureName": "star",
"textureFolder": "",
"alphaScale": 1,
"anchorX": 0.5,
"anchorY": 0.5,
"independentAlpha": "off",
"offsetX": 0,
"offsetY": 0,
"noise": false,
"noiseAmt": 30,
"noiseRange": 100,
"noiseSpeed": 1,
"useGravity": false,
"wind": false,
"windX": 0,
"windY": 0,
"windMode": "fixed",
"windMin": 100,
"windMax": 100,
"windDirection": 0,
"windCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"forceField": false,
"forceStrength": 10,
"forceRadius": 100,
"forceCenterX": 0,
"forceCenterY": 0,
"forceFalloff": "linear",
"showForceFieldShape": true,
"vortex": false,
"vortexStrength": 10,
"vortexRadius": 100,
"vortexCenterX": 0,
"vortexCenterY": 0,
"vortexFalloff": "linear",
"showVortexShape": true,
"attraction": false,
"attractionCenterX": 200,
"attractionCenterY": 0,
"attractionRadius": 20,
"attractionDuration": 0.5,
"attractionDelay": 0.1,
"attractionDelayMode": "particle",
"attractionPath": "curve",
"showAttractionShape": true,
"trail": false,
"trailConfigVersion": 3,
"trailResources": [
{
"id": 1,
"textureName": "trail",
"previewUrl": "/images/trail.png",
"weight": 100,
"locked": false,
"rotation": 0,
"colorMode": "particle",
"color": "#ffffff",
"colorGradient": [
{
"position": 0,
"color": "#ffffff"
},
{
"position": 1,
"color": "#ffffff"
}
],
"blend": "normal",
"alphaMode": "particle",
"alpha": 1,
"alphaCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"boneCount": 3,
"trailRatio": 100,
"lengthMode": "fixed",
"length": 100,
"lengthMin": 100,
"lengthMax": 100,
"widthSizeMode": "fixed",
"width": 100,
"widthMin": 100,
"widthMax": 100,
"widthMode": "particle",
"lifeLengthEnabled": false,
"lifeLengthCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"shapeEnabled": false,
"shapeCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
]
}
],
"trailResourceVersion": 6,
"trailTextureName": "trail",
"trailPreviewUrl": "/images/trail.png",
"trailColorMode": "particle",
"trailColor": "#ffffff",
"trailColorGradient": [
{
"position": 0,
"color": "#ffffff"
},
{
"position": 1,
"color": "#ffffff"
}
],
"trailAlphaMode": "particle",
"trailAlpha": 1,
"trailAlphaCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"trailBoneCount": 3,
"trailLength": 100,
"trailWidth": 100,
"trailWidthMode": "particle",
"trailLifeLengthEnabled": false,
"trailLifeLengthCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"trailShapeEnabled": false,
"trailShapeCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"trailGridRows": 4,
"trailGridCols": 4,
"collision": false,
"collisionColliderIds": [],
"pathFollow": false,
"emitterFollow": false,
"emitterFollowMode": "none",
"emitterFollowPathId": 0,
"emitterFollowSpineId": 0,
"emitterFollowBoneName": "",
"emitterFollowBoneOffsetX": 0,
"emitterFollowBoneOffsetY": 0,
"emitterFollowBoneRotation": 0,
"emitterFollowBoneScaleX": 1,
"emitterFollowBoneScaleY": 1,
"emitterAngleMode": "fixed",
"emitterFollowCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"emitterFollowDuration": 2,
"emitterFollowSpace": "world",
"emitterFollowDirection": "forward",
"emitterFollowOffset": 0
}
}
],
"colliders": [],
"paths": [],
"spines": []
}
}
+531
View File
@@ -0,0 +1,531 @@
{
"format": "SpineParticle.EditorConfig",
"version": 1,
"savedAt": "2026-10-22T04:01:50.731Z",
"editor": {
"viewScale": 0.287476104098836,
"viewX": -5.508720333236539,
"viewY": 2.457727380580252
},
"settings": {
"backgroundX": 0,
"backgroundY": 0,
"backgroundOpacity": 1,
"backgroundImageName": "",
"backgroundImageData": "",
"showGrid": true,
"exportSettings": {
"imagesPath": "./images/",
"spineVersion": "4.2",
"keyframeCurve": "bezier",
"fps": 30,
"omitFps": false,
"integerFrameAlignment": true,
"bonePool": true,
"excludeEmptyAnimations": false,
"fileName": "SpineParticle.json"
}
},
"timeline": {
"fps": 30,
"loop": true,
"playbackStart": 0,
"playbackEnd": 30,
"animations": [
"animation"
]
},
"selection": {
"type": "particle",
"id": 1
},
"scene": {
"systems": [
{
"id": 1,
"visible": true,
"animation": "animation",
"config": {
"imageResources": [
{
"id": 1,
"textureName": "217cc2f5b2914d1716898385698d9eb17e352d97385b8-Fojf0Y",
"textureFolder": "",
"previewUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAApIAAAKSCAYAAABhiDtmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpEMTM4OTM1REExQzMxMUU3OENFN0IxN0YxNDFFOEQ5NSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpEMTM4OTM1RUExQzMxMUU3OENFN0IxN0YxNDFFOEQ5NSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkQxMzg5MzVCQTFDMzExRTc4Q0U3QjE3RjE0MUU4RDk1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkQxMzg5MzVDQTFDMzExRTc4Q0U3QjE3RjE0MUU4RDk1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+CRuTCgADgi1JREFUeNrsveuS5EaSNRYeADKrqq9kkzOzM/utzKS/egHJTM8mPZceQK8gk+my3652NVdyhmR3V1UC4a7wW0QAiewLu7rZJMNnkt2dFyQSQCYOjp9zHML//L8Er//hf/3fw8+xiM7vA1jsTyz3pfSl/Hl3/z/tLAXCL60inM7uG8f/U/68uvo/2i0o/53nRzvbEd/rPf/rf//PZ/f98b/9WjdwSuHxd7fhq7+9Cl/9+zdhenUbno5LuE0xzBTzCg95X5LuCV4leW+yfUP5sach4YuA6YXsS6SrfN+Q1zHlG4VeO98N3noE+Ubh/tES7p7fh7jA7uGet3BY7h7nPyLMt0/zHVEfON4H+PpPAIcl6GamkO5vwvzDF2FACo/pVTjSEpAfze9Fx3tYxgjUvAnYMbacrgLOV3pcXd/mA/GO+FE8XQHfINrxRvpOaUSgAeEqncKQ+BC6CuHmNeEyAaV848+WXwPXt8DLTMsUaJkIru/y8TFCnPNqh4UQhwgxxHGYQ0xxiDgA/wXyyweIhzGG8ZTwlt8UKRKmmJAPx2Gh+3RAGihvlSXQfMhrlt9qPOX3TXkFIy+blmGQDRiHkxyLdHfMz5lpGGf55PT6kX8miNNdiPzsVzc0P7qHFHU7w2nA/FH4GwDD1asA+fPmt89fC+R10uXy581/DpRX6XbkbQe8mWX/xom+j09CmO7o6um3+f68fvwhhvxb+MPTgH/+Xf6O6TKGw+tw9ezP+t3C2O4qsv8C3z3OQ7j+e95fCLL68P6H38+yTv/d//ar/+04/N//Y/8B7fVuWKNvgl4fu67u7/MJcQlPf7gLL/78Q3j+n3/PWOBVeBQFfAiIzGfpetZp/uIAEfFRBhG/zX9+ncHk1/nP63wb7Mn4cz5nfTpQObzlooBB4HJQ8IFj3RdTBkfTIo974XzID8UwhBTGfFstJu5d2aEAGJJ9BgJowqgXe4TR7j9bHcGy/B66SGgubBpIw0DS78co/2ZMywB6KM+PH3bFKBc6gsrtUIPy3gKZifRufl67Ls061gtfW8f8oTKW3b2WzWDYljHtrg7yc8f1dp8oZYC5yD6kefO6wynYRlRAys+RZdNbDgleRwWqvXr16tWBZK+fpK6/vQ3Xd3P48k8/hKd//SFc/XCbDzwKr2kML9OUT1axsGbgpzZAA5EZfOTnEX2RgSQzkc/CPF8zxMwn8HwSz2AUoG/jt+KgvJGYYQqXsKQAvbxX8v5ABzEGHGFMIPvDgWQGfZgmAfD5b3lfYsGYzA4yScwMGtmd5U8Gi3zjf2d0UoAtAysDkhTqBQUy9ZeXNxDKvhYgyhSogk9oQRq/HQqDKvScE9oAwmRnqOdUqmCiPVDJcFD/Lccdv8JWRDi/8ndZNpGBRCEI+WMLjyifURjCvE7Ef0ey9RySvx+RXQAxtRlR73LQ5qtEaVCyMI0NANVj3vYnkL24fAJCmMIi27l9nWzfDNphnBWB5mXw4/4cWoNraC/n+KIgvxf1r1ivXr06kOz1SSoNcXVDPrvmc/+zv74SEHmdQeR1OBU8Qy0KbFgnbVdjBo6P8suZhfy9Asnlhs/Kembv7ez3AJIZEIxv3l4CuhiwCRtJBZSFw/16WcwgZhDCFwNTmCsKEaCXwiXUIQDKQByDyIZFhN0XCSSjEJsLDDBAWdruoODVliPrpuwf6MWJwD5YMYLh3WDR+Tq1y6H1T2dl7KButw1QL4WGS/k5C9TXtl8FXz4j5F0SFWx/Uvnq8LMOpPsjzYfm/WybXN2ufvpZYvAuNV8tnZHs1atXB5K9Pk0B0vqmNAo8+dvLcMwgklvcpwwEZxrKCdg5mSLOKtpIZrW+ygDyd2FZfhPmDCIxv26Iqk9btzk7Z/JGIBlJpXCXQRTJowwETY8nwGnIIOJwV4ATGJvFe41bzgMlZQp9R0TMu13fw1lEB0TyOnkiOkOn/8JB2UADXyIFtHXOIFLYPgp2OAiLqSwf5KNBjgFubTfAL7+A/wn8/pXhpjXukw0R9SO1uHUF1UJhKQXSStta0CkQqh5U8SVq15s5VAWBeeNgAd2ybvnfJO+A9rOb31b2RxSoqBsMwd+qrLDIAWJlIuVRfYZ+yvLFkT9GWmS/YDoQ64dbAA3He/1QBmwVbKrGdINWfVPIx5kfzcpK/jhesn8xe/X6hdfYN0Gvh6yv/vx9Q7xAeP30Kly/OoVH374Mh/k+TPkcOvPJEWLwPquyL8pCjhlgcPMy4U2gxO3s/5L//iTMp5vS7oaIfUO/z5mcgVgk0w1efh6yPnIF/qStLS1RYRO9s80t0bzPDnSStnN5gF/LrdCwo3eUVreDUWZHFwU53u4OxogWBKPsX2yb3bzy3MZOI6xgStxoEn25DVv39mo0jGsQVBW7YuwRsEyBtY35wwI7YgLZBZHCOrl2YkAeJv47OACn1fbgZbHudJTDOgw7SLa0uUeRAoTN6/n7RfxZeV1AL8YGUpb4jiUjeRtAq4u9ug1yoeBt+XQU9hnifOG4UWzOFyDSaf+lf+3S0H8sevXqQLLXT11P/vJd4bdwHMREc/X9bbi6vwtDwScOFqJzUtbOJgGTabkWQ01Kvw/z/JWYaiCfzAZxxGInOn4EJYSDEmgXgWQGeWm+LhuWSCk+ON6RMH6OJJhZzICTWcKJFlEWouhYg4AWfh8RDtpinUkT8OlAj/V6zHTy/TjCqk1tTVrRHorRAwu4EzAm3erYrDbqs7GCT7V787Gl7Kq3faHRQO4gNgsLADjHk+XN8itrQoCwjaz1ZGYxySGqcFTMY4uCUDYuBTYVsaoRiVwzKS6iJG/CbvRlaD63SzzzxhQONG/7YTKG16Qf+rkiSwT4K6PubeNeGUje04FwnigOMxQ0zOCddZJ3V7KymJfLpqnhOBchQ/O5ZT1QWOH8FlOi8X4M9H7fvJ/Xl3RI/ceiV68fUb213etB6wqWcMgnTv4zgwC4ySDyyatX4VrOdqBspB923tGLi9z4vLNkkJLSHzLAYE0ku7MndTPA8t5RRL/gem/BmpomaPf0vtLjCdun+kJh9o73UKkoBR8hTcJEtm5tWSQbTADMgYLrbik1UM7ZSDfZ0Are6t8HbWkPrTYvGlUq7WJefoT2mBDtJnhylGoPqXSLhcVbtW8bD4msXGs6gbWZGlZb3QAHFoeRvh4Ufft7GjMa2+1TFyoXR6ikpvbDtY8s60QFbMrXhYZmX0GzC9lw0/Kneu+ICSSsZznWD4AKXEXv2nzsopOEXfAnnyvjWVCA+8vWSeKX/1FuvXr1evfqjGSvB617MtYiAw0aYzi8vg9PhiXc5hMZq7cadqjRRCaGBGHmVhu9CAn/JQPIpxlUXjG0DMOwtERJ38gVcMFb0SZZBuel6B8yfaqbYFITG8Ps1fFOgL+/kTi6U5T2aSRrgxtMo5gC0f61qcf7CMA0NlLas6koBJVtI5MegjrCWyOzwBllGMu7mj4yIJW2Nve/1XhtROne5bLxf5tr6lSOMLqMyJsebwSl7BDkboXO7ApXRDmgWuXZTMStaWlDDwX06puRoPwYEiT/d4NbwUAnf77YgGYoLnYz3NQtkn/UGeQv+fszal+atZe6gqKTrLid8sXaFCbf9xR2ExD4PVQy68LZX2alF//eoMr+A9Or17tWZyR7fazK+BDzOWwJp3yiOlVLQfmldmc215JBJOJzaWen9FziZVQP2dtNH7QTzIuBFxzbfm86XeteaWJjIpszOH+wgBSQtjaDRTZ1hKppNMwqbHM1cVPVO4o8gf/BLine truncated
"imageMode": "fixed",
"sequencePlayback": "loop-forward",
"sequenceFps": 30,
"sequenceFrames": [],
"weight": 100,
"locked": false,
"scale": 1,
"anchorX": 0.49669471153846156,
"anchorY": 1.5949519230769231,
"colorMode": "fixed",
"colorStart": "#ffffff",
"colorEnd": "#ff4d4d",
"colorGradient": [
{
"position": 0,
"color": "#ffffff"
},
{
"position": 1,
"color": "#ff4d4d"
}
],
"blend": "add",
"independentAlpha": "off",
"alpha": 1,
"alphaCurveMode": "跟随导出",
"alphaCurve": [
{
"x": 0,
"y": 0
},
{
"x": 0.1,
"y": 1
},
{
"x": 0.9,
"y": 1
},
{
"x": 1,
"y": 0
}
]
}
],
"imageWeightVersion": 1,
"name": "ParticleSystem1",
"mode": "stream",
"rate": 74,
"streamBehavior": "loop",
"loopDurationFrames": 30,
"generateLoopStartAnimation": false,
"loopStartUseCustomDuration": false,
"loopStartDurationFrames": 30,
"generateLoopEndAnimation": false,
"loopEndUseCustomDuration": false,
"loopEndDurationFrames": 30,
"burstCount": 50,
"burstLoop": false,
"delay": 0,
"duration": 1,
"shape": "point",
"showShape": true,
"shapeRangeVersion": 1,
"innerRadius": 0,
"outerRadius": 100,
"innerRectW": 0,
"innerRectH": 0,
"outerRectW": 200,
"outerRectH": 100,
"spawnPathId": 0,
"spawnPathDistribution": "fixed",
"radius": 30,
"rectW": 60,
"rectH": 40,
"centerX": 0,
"centerY": 0,
"rootRotation": 0,
"rootScaleX": 1,
"rootScaleY": 1,
"renderLayerMode": "top",
"renderLayerSpineId": 0,
"renderLayerSlotName": "",
"renderLayerSlotPosition": "above",
"renderLayerFollowAttachment": false,
"emissionAngleMode": "random",
"direction": 0,
"spread": 360,
"coneDirection": 90,
"coneAngle": 60,
"lifeMin": 0.2,
"lifeMax": 1,
"lifeMode": "random",
"lifeCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"speedMin": 0,
"speedMax": 140,
"speedMode": "fixed",
"speedCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"scaleMin": 1,
"scaleMax": 0,
"scaleMode": "random",
"scaleAxisMode": "uniform",
"scaleYMin": 0.3,
"scaleYMax": 0.8,
"scaleCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"scaleYCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"scaleEndRatio": 0.3,
"initialRotationMode": "random",
"initialRotationMin": 0,
"initialRotationMax": 360,
"initialRotationCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"alpha": 0.9,
"alphaEnd": 0,
"rotationSpeedMin": -90,
"rotationSpeedMax": 90,
"speedOverLifeEnabled": false,
"speedOverLifeMode": "fixed",
"speedOverLifeMin": 1,
"speedOverLifeMax": 1,
"speedOverLifeCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"scaleOverLifeEnabled": false,
"scaleOverLifeMode": "curve",
"scaleOverLifeAxisMode": "uniform",
"scaleOverLifeMin": 0,
"scaleOverLifeMax": 1,
"scaleYOverLifeMin": 0,
"scaleYOverLifeMax": 1,
"scaleOverLifeCurve": [
{
"x": 0,
"y": 0
},
{
"x": 0.08,
"y": 1
},
{
"x": 0.88,
"y": 1
},
{
"x": 1,
"y": 0
}
],
"scaleYOverLifeCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"rotationOverLifeEnabled": true,
"rotationOverLifeMode": "random",
"rotationOverLifeCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"gravity": 980,
"gravityMode": "fixed",
"gravityMin": 980,
"gravityMax": 980,
"gravityDirection": -90,
"gravityCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"damping": 0,
"seed": 999717,
"colorStart": "#ffffff",
"colorEnd": "#ff4d4d",
"colorOverLife": false,
"blend": "add",
"alphaMode": "curve",
"curveMode": "线性",
"alphaCurve": [
{
"x": 0,
"y": 0
},
{
"x": 0.38,
"y": 1
},
{
"x": 0.63,
"y": 1
},
{
"x": 1,
"y": 0
}
],
"textureName": "star",
"textureFolder": "",
"alphaScale": 1,
"anchorX": 0.5,
"anchorY": 0.5,
"independentAlpha": "off",
"offsetX": 0,
"offsetY": 0,
"noise": false,
"noiseAmt": 30,
"noiseRange": 100,
"noiseSpeed": 1,
"useGravity": false,
"wind": false,
"windX": 0,
"windY": 0,
"windMode": "fixed",
"windMin": 100,
"windMax": 100,
"windDirection": 0,
"windCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"forceField": false,
"forceStrength": 10,
"forceRadius": 100,
"forceCenterX": 0,
"forceCenterY": 0,
"forceFalloff": "linear",
"showForceFieldShape": true,
"vortex": false,
"vortexStrength": 10,
"vortexRadius": 100,
"vortexCenterX": 0,
"vortexCenterY": 0,
"vortexFalloff": "linear",
"showVortexShape": true,
"attraction": false,
"attractionCenterX": 200,
"attractionCenterY": 0,
"attractionRadius": 20,
"attractionDuration": 0.5,
"attractionDelay": 0.1,
"attractionDelayMode": "particle",
"attractionPath": "curve",
"showAttractionShape": true,
"trail": false,
"trailConfigVersion": 3,
"trailResources": [
{
"id": 1,
"textureName": "trail",
"previewUrl": "/images/trail.png",
"weight": 100,
"locked": false,
"rotation": 0,
"colorMode": "particle",
"color": "#ffffff",
"colorGradient": [
{
"position": 0,
"color": "#ffffff"
},
{
"position": 1,
"color": "#ffffff"
}
],
"blend": "normal",
"alphaMode": "particle",
"alpha": 1,
"alphaCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"boneCount": 3,
"trailRatio": 100,
"lengthMode": "fixed",
"length": 100,
"lengthMin": 100,
"lengthMax": 100,
"widthSizeMode": "fixed",
"width": 100,
"widthMin": 100,
"widthMax": 100,
"widthMode": "particle",
"lifeLengthEnabled": false,
"lifeLengthCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"shapeEnabled": false,
"shapeCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
]
}
],
"trailResourceVersion": 6,
"trailTextureName": "trail",
"trailPreviewUrl": "/images/trail.png",
"trailColorMode": "particle",
"trailColor": "#ffffff",
"trailColorGradient": [
{
"position": 0,
"color": "#ffffff"
},
{
"position": 1,
"color": "#ffffff"
}
],
"trailAlphaMode": "particle",
"trailAlpha": 1,
"trailAlphaCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"trailBoneCount": 3,
"trailLength": 100,
"trailWidth": 100,
"trailWidthMode": "particle",
"trailLifeLengthEnabled": false,
"trailLifeLengthCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"trailShapeEnabled": false,
"trailShapeCurve": [
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
}
],
"trailGridRows": 4,
"trailGridCols": 4,
"collision": false,
"collisionColliderIds": [],
"pathFollow": false,
"emitterFollow": false,
"emitterFollowMode": "none",
"emitterFollowPathId": 0,
"emitterFollowSpineId": 0,
"emitterFollowBoneName": "",
"emitterFollowBoneOffsetX": 0,
"emitterFollowBoneOffsetY": 0,
"emitterFollowBoneRotation": 0,
"emitterFollowBoneScaleX": 1,
"emitterFollowBoneScaleY": 1,
"emitterAngleMode": "fixed",
"emitterFollowCurve": [
{
"x": 0,
"y": 0
},
{
"x": 1,
"y": 1
}
],
"emitterFollowDuration": 2,
"emitterFollowSpace": "world",
"emitterFollowDirection": "forward",
"emitterFollowOffset": 0
}
}
],
"colliders": [],
"paths": [],
"spines": []
}
}
File renamed without changes.
+10 -2
View File
@@ -16,7 +16,15 @@
"file": "4.雷电序列帧.json"
},
{
"name": "5.SpineBoy",
"file": "5.SpineBoy.json"
"name": "5.贴图轴点1",
"file": "5.贴图轴点1.json"
},
{
"name": "6.粒子轴点2",
"file": "6.粒子轴点2.json"
},
{
"name": "7.SpineBoy",
"file": "7.SpineBoy.json"
}
]
@@ -1,43 +1,43 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BtGWLkYx.js","assets/index-yF8mmEQU.js"])))=>i.map(i=>d[i]);
var qS=Object.defineProperty;var KS=(i,e,t)=>e in i?qS(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var M=(i,e,t)=>KS(i,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=t(n);fetch(n.href,r)}})();/**
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CUwqGGwd.js","assets/index-BS4GpQRH.js"])))=>i.map(i=>d[i]);
var ZS=Object.defineProperty;var JS=(i,e,t)=>e in i?ZS(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var S=(i,e,t)=>JS(i,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=t(n);fetch(n.href,r)}})();/**
* @vue/shared v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Gm(i){const e=Object.create(null);for(const t of i.split(","))e[t]=1;return t=>t in e}const Lt={},Go=[],on=()=>{},_y=()=>!1,Uh=i=>i.charCodeAt(0)===111&&i.charCodeAt(1)===110&&(i.charCodeAt(2)>122||i.charCodeAt(2)<97),$h=i=>i.startsWith("onUpdate:"),ms=Object.assign,jm=(i,e)=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)},ZS=Object.prototype.hasOwnProperty,Pt=(i,e)=>ZS.call(i,e),We=Array.isArray,jo=i=>Tl(i)==="[object Map]",fa=i=>Tl(i)==="[object Set]",$p=i=>Tl(i)==="[object Date]",it=i=>typeof i=="function",Yt=i=>typeof i=="string",si=i=>typeof i=="symbol",kt=i=>i!==null&&typeof i=="object",Cy=i=>(kt(i)||it(i))&&it(i.then)&&it(i.catch),Ay=Object.prototype.toString,Tl=i=>Ay.call(i),JS=i=>Tl(i).slice(8,-1),Ey=i=>Tl(i)==="[object Object]",Xh=i=>Yt(i)&&i!=="NaN"&&i[0]!=="-"&&""+parseInt(i,10)===i,Wa=Gm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vh=i=>{const e=Object.create(null);return(t=>e[t]||(e[t]=i(t)))},QS=/-\w/g,Ai=Vh(i=>i.replace(QS,e=>e.slice(1).toUpperCase())),eM=/\B([A-Z])/g,Tr=Vh(i=>i.replace(eM,"-$1").toLowerCase()),Iy=Vh(i=>i.charAt(0).toUpperCase()+i.slice(1)),Mu=Vh(i=>i?`on${Iy(i)}`:""),Qi=(i,e)=>!Object.is(i,e),Tc=(i,...e)=>{for(let t=0;t<i.length;t++)i[t](...e)},Ry=(i,e,t,s=!1)=>{Object.defineProperty(i,e,{configurable:!0,enumerable:!1,writable:s,value:t})},Yh=i=>{const e=parseFloat(i);return isNaN(e)?i:e},tM=i=>{const e=Yt(i)?Number(i):NaN;return isNaN(e)?i:e};let Xp;const Gh=()=>Xp||(Xp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vt(i){if(We(i)){const e={};for(let t=0;t<i.length;t++){const s=i[t],n=Yt(s)?rM(s):Vt(s);if(n)for(const r in n)e[r]=n[r]}return e}else if(Yt(i)||kt(i))return i}const sM=/;(?![^(]*\))/g,iM=/:([^]+)/,nM=/\/\*[^]*?\*\//g;function rM(i){const e={};return i.replace(nM,"").split(sM).forEach(t=>{if(t){const s=t.split(iM);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Ae(i){let e="";if(Yt(i))e=i;else if(We(i))for(let t=0;t<i.length;t++){const s=Ae(i[t]);s&&(e+=s+" ")}else if(kt(i))for(const t in i)i[t]&&(e+=t+" ");return e.trim()}const oM="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",aM=Gm(oM);function Py(i){return!!i||i===""}function lM(i,e){if(i.length!==e.length)return!1;let t=!0;for(let s=0;t&&s<i.length;s++)t=ma(i[s],e[s]);return t}function ma(i,e){if(i===e)return!0;let t=$p(i),s=$p(e);if(t||s)return t&&s?i.getTime()===e.getTime():!1;if(t=si(i),s=si(e),t||s)return i===e;if(t=We(i),s=We(e),t||s)return t&&s?lM(i,e):!1;if(t=kt(i),s=kt(e),t||s){if(!t||!s)return!1;const n=Object.keys(i).length,r=Object.keys(e).length;if(n!==r)return!1;for(const o in i){const a=i.hasOwnProperty(o),l=e.hasOwnProperty(o);if(a&&!l||!a&&l||!ma(i[o],e[o]))return!1}}return String(i)===String(e)}function Hm(i,e){return i.findIndex(t=>ma(t,e))}const ky=i=>!!(i&&i.__v_isRef===!0),ye=i=>Yt(i)?i:i==null?"":We(i)||kt(i)&&(i.toString===Ay||!it(i.toString))?ky(i)?ye(i.value):JSON.stringify(i,Fy,2):String(i),Fy=(i,e)=>ky(e)?Fy(i,e.value):jo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[s,n],r)=>(t[Tu(s,r)+" =>"]=n,t),{})}:fa(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Tu(t))}:si(e)?Tu(e):kt(e)&&!We(e)&&!Ey(e)?String(e):e,Tu=(i,e="")=>{var t;return si(i)?`Symbol(${(t=i.description)!=null?t:e})`:i};/**
**/function jm(i){const e=Object.create(null);for(const t of i.split(","))e[t]=1;return t=>t in e}const Lt={},Go=[],on=()=>{},Ay=()=>!1,Uh=i=>i.charCodeAt(0)===111&&i.charCodeAt(1)===110&&(i.charCodeAt(2)>122||i.charCodeAt(2)<97),$h=i=>i.startsWith("onUpdate:"),ps=Object.assign,Hm=(i,e)=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)},QS=Object.prototype.hasOwnProperty,Pt=(i,e)=>QS.call(i,e),We=Array.isArray,jo=i=>Tl(i)==="[object Map]",fa=i=>Tl(i)==="[object Set]",Xp=i=>Tl(i)==="[object Date]",it=i=>typeof i=="function",Yt=i=>typeof i=="string",si=i=>typeof i=="symbol",kt=i=>i!==null&&typeof i=="object",Ey=i=>(kt(i)||it(i))&&it(i.then)&&it(i.catch),Iy=Object.prototype.toString,Tl=i=>Iy.call(i),eM=i=>Tl(i).slice(8,-1),Ry=i=>Tl(i)==="[object Object]",Xh=i=>Yt(i)&&i!=="NaN"&&i[0]!=="-"&&""+parseInt(i,10)===i,Wa=jm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vh=i=>{const e=Object.create(null);return(t=>e[t]||(e[t]=i(t)))},tM=/-\w/g,Ai=Vh(i=>i.replace(tM,e=>e.slice(1).toUpperCase())),sM=/\B([A-Z])/g,Tr=Vh(i=>i.replace(sM,"-$1").toLowerCase()),Py=Vh(i=>i.charAt(0).toUpperCase()+i.slice(1)),Mu=Vh(i=>i?`on${Py(i)}`:""),Qi=(i,e)=>!Object.is(i,e),Tc=(i,...e)=>{for(let t=0;t<i.length;t++)i[t](...e)},ky=(i,e,t,s=!1)=>{Object.defineProperty(i,e,{configurable:!0,enumerable:!1,writable:s,value:t})},Yh=i=>{const e=parseFloat(i);return isNaN(e)?i:e},iM=i=>{const e=Yt(i)?Number(i):NaN;return isNaN(e)?i:e};let Vp;const Gh=()=>Vp||(Vp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vt(i){if(We(i)){const e={};for(let t=0;t<i.length;t++){const s=i[t],n=Yt(s)?aM(s):Vt(s);if(n)for(const r in n)e[r]=n[r]}return e}else if(Yt(i)||kt(i))return i}const nM=/;(?![^(]*\))/g,rM=/:([^]+)/,oM=/\/\*[^]*?\*\//g;function aM(i){const e={};return i.replace(oM,"").split(nM).forEach(t=>{if(t){const s=t.split(rM);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Ae(i){let e="";if(Yt(i))e=i;else if(We(i))for(let t=0;t<i.length;t++){const s=Ae(i[t]);s&&(e+=s+" ")}else if(kt(i))for(const t in i)i[t]&&(e+=t+" ");return e.trim()}const lM="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",cM=jm(lM);function Fy(i){return!!i||i===""}function hM(i,e){if(i.length!==e.length)return!1;let t=!0;for(let s=0;t&&s<i.length;s++)t=ma(i[s],e[s]);return t}function ma(i,e){if(i===e)return!0;let t=Xp(i),s=Xp(e);if(t||s)return t&&s?i.getTime()===e.getTime():!1;if(t=si(i),s=si(e),t||s)return i===e;if(t=We(i),s=We(e),t||s)return t&&s?hM(i,e):!1;if(t=kt(i),s=kt(e),t||s){if(!t||!s)return!1;const n=Object.keys(i).length,r=Object.keys(e).length;if(n!==r)return!1;for(const o in i){const a=i.hasOwnProperty(o),l=e.hasOwnProperty(o);if(a&&!l||!a&&l||!ma(i[o],e[o]))return!1}}return String(i)===String(e)}function Wm(i,e){return i.findIndex(t=>ma(t,e))}const Oy=i=>!!(i&&i.__v_isRef===!0),ye=i=>Yt(i)?i:i==null?"":We(i)||kt(i)&&(i.toString===Iy||!it(i.toString))?Oy(i)?ye(i.value):JSON.stringify(i,Ly,2):String(i),Ly=(i,e)=>Oy(e)?Ly(i,e.value):jo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[s,n],r)=>(t[Tu(s,r)+" =>"]=n,t),{})}:fa(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>Tu(t))}:si(e)?Tu(e):kt(e)&&!We(e)&&!Ry(e)?String(e):e,Tu=(i,e="")=>{var t;return si(i)?`Symbol(${(t=i.description)!=null?t:e})`:i};/**
* @vue/reactivity v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let us;class Oy{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&&us&&(us.active?(this.parent=us,this.index=(us.scopes||(us.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 s=this.scopes.slice();for(e=0,t=s.length;e<t;e++)s[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 n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}const s=this.effects.slice();for(e=0,t=s.length;e<t;e++)s[e].resume()}}run(e){if(this._active){const t=us;try{return us=this,e()}finally{us=t}}}on(){++this._on===1&&(this.prevScope=us,us=this)}off(){if(this._on>0&&--this._on===0){if(us===this)us=this.prevScope;else{let e=us;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,s;for(t=0,s=this.effects.length;t<s;t++)this.effects[t].stop();for(this.effects.length=0,t=0,s=this.cleanups.length;t<s;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){const n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}}function Ly(i){return new Oy(i)}function By(){return us}function cM(i,e=!1){us&&us.cleanups.push(i)}let Dt;const _u=new WeakSet;class Ny{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,us&&(us.active?us.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,_u.has(this)&&(_u.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Uy(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Vp(this),$y(this);const e=Dt,t=Ei;Dt=this,Ei=!0;try{return this.fn()}finally{Xy(this),Dt=e,Ei=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)qm(e);this.deps=this.depsTail=void 0,Vp(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?_u.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){vf(this)&&this.run()}get dirty(){return vf(this)}}let Dy=0,za,qa;function Uy(i,e=!1){if(i.flags|=8,e){i.next=qa,qa=i;return}i.next=za,za=i}function Wm(){Dy++}function zm(){if(--Dy>0)return;if(qa){let e=qa;for(qa=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let i;for(;za;){let e=za;for(za=void 0;e;){const t=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){i||(i=s)}e=t}}if(i)throw i}function $y(i){for(let e=i.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Xy(i){let e,t=i.depsTail,s=t;for(;s;){const n=s.prevDep;s.version===-1?(s===t&&(t=n),qm(s),hM(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=n}i.deps=e,i.depsTail=t}function vf(i){for(let e=i.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Vy(e.dep.computed)||e.dep.version!==e.version))return!0;return!!i._dirty}function Vy(i){if(i.flags&4&&!(i.flags&16)||(i.flags&=-17,i.globalVersion===al)||(i.globalVersion=al,!i.isSSR&&i.flags&128&&(!i.deps&&!i._dirty||!vf(i))))return;i.flags|=2;const e=i.dep,t=Dt,s=Ei;Dt=i,Ei=!0;try{$y(i);const n=i.fn(i._value);(e.version===0||Qi(n,i._value))&&(i.flags|=128,i._value=n,e.version++)}catch(n){throw e.version++,n}finally{Dt=t,Ei=s,Xy(i),i.flags&=-3}}function qm(i,e=!1){const{dep:t,prevSub:s,nextSub:n}=i;if(s&&(s.nextSub=n,i.prevSub=void 0),n&&(n.prevSub=s,i.nextSub=void 0),t.subs===i&&(t.subs=s,!s&&t.computed)){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)qm(r,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function hM(i){const{prevDep:e,nextDep:t}=i;e&&(e.nextDep=t,i.prevDep=void 0),t&&(t.prevDep=e,i.nextDep=void 0)}let Ei=!0;const Yy=[];function $n(){Yy.push(Ei),Ei=!1}function Xn(){const i=Yy.pop();Ei=i===void 0?!0:i}function Vp(i){const{cleanup:e}=i;if(i.cleanup=void 0,e){const t=Dt;Dt=void 0;try{e()}finally{Dt=t}}}let al=0;class uM{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 Km{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(!Dt||!Ei||Dt===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Dt)t=this.activeLink=new uM(Dt,this),Dt.deps?(t.prevDep=Dt.depsTail,Dt.depsTail.nextDep=t,Dt.depsTail=t):Dt.deps=Dt.depsTail=t,Gy(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const s=t.nextDep;s.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=s),t.prevDep=Dt.depsTailLine truncated
**/let ds;class By{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&&ds&&(ds.active?(this.parent=ds,this.index=(ds.scopes||(ds.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 s=this.scopes.slice();for(e=0,t=s.length;e<t;e++)s[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 n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}const s=this.effects.slice();for(e=0,t=s.length;e<t;e++)s[e].resume()}}run(e){if(this._active){const t=ds;try{return ds=this,e()}finally{ds=t}}}on(){++this._on===1&&(this.prevScope=ds,ds=this)}off(){if(this._on>0&&--this._on===0){if(ds===this)ds=this.prevScope;else{let e=ds;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,s;for(t=0,s=this.effects.length;t<s;t++)this.effects[t].stop();for(this.effects.length=0,t=0,s=this.cleanups.length;t<s;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){const n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}}function Ny(i){return new By(i)}function Dy(){return ds}function uM(i,e=!1){ds&&ds.cleanups.push(i)}let Dt;const _u=new WeakSet;class Uy{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,ds&&(ds.active?ds.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,_u.has(this)&&(_u.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Xy(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Yp(this),Vy(this);const e=Dt,t=Ei;Dt=this,Ei=!0;try{return this.fn()}finally{Yy(this),Dt=e,Ei=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Km(e);this.deps=this.depsTail=void 0,Yp(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?_u.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){yf(this)&&this.run()}get dirty(){return yf(this)}}let $y=0,za,qa;function Xy(i,e=!1){if(i.flags|=8,e){i.next=qa,qa=i;return}i.next=za,za=i}function zm(){$y++}function qm(){if(--$y>0)return;if(qa){let e=qa;for(qa=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let i;for(;za;){let e=za;for(za=void 0;e;){const t=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){i||(i=s)}e=t}}if(i)throw i}function Vy(i){for(let e=i.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Yy(i){let e,t=i.depsTail,s=t;for(;s;){const n=s.prevDep;s.version===-1?(s===t&&(t=n),Km(s),dM(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=n}i.deps=e,i.depsTail=t}function yf(i){for(let e=i.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Gy(e.dep.computed)||e.dep.version!==e.version))return!0;return!!i._dirty}function Gy(i){if(i.flags&4&&!(i.flags&16)||(i.flags&=-17,i.globalVersion===al)||(i.globalVersion=al,!i.isSSR&&i.flags&128&&(!i.deps&&!i._dirty||!yf(i))))return;i.flags|=2;const e=i.dep,t=Dt,s=Ei;Dt=i,Ei=!0;try{Vy(i);const n=i.fn(i._value);(e.version===0||Qi(n,i._value))&&(i.flags|=128,i._value=n,e.version++)}catch(n){throw e.version++,n}finally{Dt=t,Ei=s,Yy(i),i.flags&=-3}}function Km(i,e=!1){const{dep:t,prevSub:s,nextSub:n}=i;if(s&&(s.nextSub=n,i.prevSub=void 0),n&&(n.prevSub=s,i.nextSub=void 0),t.subs===i&&(t.subs=s,!s&&t.computed)){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)Km(r,!0)}!e&&!--t.sc&&t.map&&t.map.delete(t.key)}function dM(i){const{prevDep:e,nextDep:t}=i;e&&(e.nextDep=t,i.prevDep=void 0),t&&(t.prevDep=e,i.nextDep=void 0)}let Ei=!0;const jy=[];function $n(){jy.push(Ei),Ei=!1}function Xn(){const i=jy.pop();Ei=i===void 0?!0:i}function Yp(i){const{cleanup:e}=i;if(i.cleanup=void 0,e){const t=Dt;Dt=void 0;try{e()}finally{Dt=t}}}let al=0;class fM{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 Zm{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(!Dt||!Ei||Dt===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Dt)t=this.activeLink=new fM(Dt,this),Dt.deps?(t.prevDep=Dt.depsTail,Dt.depsTail.nextDep=t,Dt.depsTail=t):Dt.deps=Dt.depsTail=t,Hy(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const s=t.nextDep;s.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=s),t.prevDep=Dt.depsTailLine truncated
* @vue/runtime-core v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function _l(i,e,t,s){try{return s?i(...s):i()}catch(n){Wh(n,e,t)}}function pi(i,e,t,s){if(it(i)){const n=_l(i,e,t,s);return n&&Cy(n)&&n.catch(r=>{Wh(r,e,t)}),n}if(We(i)){const n=[];for(let r=0;r<i.length;r++)n.push(pi(i[r],e,t,s));return n}}function Wh(i,e,t,s=!0){const n=e?e.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||Lt;if(e){let a=e.parent;const l=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${t}`;for(;a;){const h=a.ec;if(h){for(let u=0;u<h.length;u++)if(h[u](i,l,c)===!1)return}a=a.parent}if(r){$n(),_l(r,null,10,[i,l,c]),Xn();return}}UM(i,t,n,s,o)}function UM(i,e,t,s=!0,n=!1){if(n)throw i;console.error(i)}const $s=[];let Gi=-1;const Ho=[];let sr=null,ko=0;const Jy=Promise.resolve();let Gc=null;function zh(i){const e=Gc||Jy;return i?e.then(this?i.bind(this):i):e}function $M(i){let e=Gi+1,t=$s.length;for(;e<t;){const s=e+t>>>1,n=$s[s],r=cl(n);r<i||r===i&&n.flags&2?e=s+1:t=s}return e}function Qm(i){if(!(i.flags&1)){const e=cl(i),t=$s[$s.length-1];!t||!(i.flags&2)&&e>=cl(t)?$s.push(i):$s.splice($M(e),0,i),i.flags|=1,Qy()}}function Qy(){Gc||(Gc=Jy.then(tx))}function XM(i){if(!We(i))sr&&i.id===-1?sr.splice(ko+1,0,i):i.flags&1||(Ho.push(i),i.flags|=1);else for(let e=0;e<i.length;e++)Ho.push(i[e]);Qy()}function Gp(i,e,t=Gi+1){for(;t<$s.length;t++){const s=$s[t];if(s&&s.flags&2){if(i&&s.id!==i.uid)continue;$s.splice(t,1),t--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function ex(i){if(Ho.length){const e=[...new Set(Ho)].sort((t,s)=>cl(t)-cl(s));if(Ho.length=0,sr){for(let t=0;t<e.length;t++)sr.push(e[t]);return}for(sr=e,ko=0;ko<sr.length;ko++){const t=sr[ko];t.flags&4&&(t.flags&=-2),t.flags&8||t(),t.flags&=-2}sr=null,ko=0}}const cl=i=>i.id==null?i.flags&2?-1:1/0:i.id;function tx(i){try{for(Gi=0;Gi<$s.length;Gi++){const e=$s[Gi];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),_l(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Gi<$s.length;Gi++){const e=$s[Gi];e&&(e.flags&=-2)}Gi=-1,$s.length=0,ex(),Gc=null,($s.length||Ho.length)&&tx()}}let Ls=null,sx=null;function jc(i){const e=Ls;return Ls=i,sx=i&&i.type.__scopeId||null,e}function qh(i,e=Ls,t){if(!e||i._n)return i;const s=(...n)=>{s._d&&qc(-1);const r=jc(e),o=Nn.length;let a;try{a=i(...n)}finally{for(let l=Nn.length;l>o;l--)np();jc(r),s._d&&qc(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function ce(i,e){if(Ls===null)return i;const t=tu(Ls),s=i.dirs||(i.dirs=[]);for(let n=0;n<e.length;n++){let[r,o,a,l=Lt]=e[n];r&&(it(r)&&(r={mounted:r,updated:r}),r.deep&&An(o),s.push({dir:r,instance:t,value:o,oldValue:void 0,arg:a,modifiers:l}))}return i}function Pr(i,e,t,s){const n=i.dirs,r=e&&e.dirs;for(let o=0;o<n.length;o++){const a=n[o];r&&(a.oldValue=r[o].value);let l=a.dir[s];l&&($n(),pi(l,t,8,[i.el,a,i,e]),Xn())}}function ix(i,e){if(Xs){let t=Xs.provides;const s=Xs.parent&&Xs.parent.provides;s===t&&(t=Xs.provides=Object.create(s)),t[i]=e}}function Wo(i,e,t=!1){const s=rp();if(s||io){let n=io?io._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(n&&i in n)return n[i];if(arguments.length>1)return t&&it(e)?e.call(s&&s.proxy):e}}function VM(){return!!(rp()||io)}const YM=Symbol.for("v-scx"),GM=()=>Wo(YM);function Fo(i,e){return ep(i,null,e)}function Cs(i,e,t){return ep(i,e,t)}function ep(i,e,t=Lt){const{immediate:s,deep:n,flush:r,once:o}=t,a=ms({},t),l=e&&s||!e&&r!=="post";let c;if(ml){if(r==="sync"){const f=GM();c=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=on,f.resume=on,f.pause=on,f}}const h=Xs;a.call=(f,p,m)=>pi(f,h,p,m);let u=!1;r==="post"?a.scheduler=f=>{Ns(f,h&&h.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(f,p)=>{p?f():Qm(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,h&&(f.id=h.uid,f.i=h))};const d=DM(i,e,a);return ml&&(c?c.push(d):l&&d()),d}function jM(i,e,t){const s=this.proxy,n=Yt(i)?i.includes(".")?nx(s,i):()=>s[i]:i.bind(s,s);let r;it(e)?r=e:(r=e.handler,t=e);const o=Al(this),a=ep(n,r.bind(s),t);return o(),a}function nx(i,e){const t=e.split(".");return()=>{let s=i;for(let n=0;n<t.length&&s;n++)s=s[t[n]];return s}}const Jn=new WeakMap,rx=Symbol("_vte"),Kh=i=>i.__isTeleport,Hr=i=>i&&(i.disabled||i.disabled===""),HM=i=>i&&(i.defer||i.defer===""),jp=i=>typeof SVGElement<"u"&&i instanceof SVGElement,Hp=i=>typeof MathMLElement=="function"&&i instanceof MathMLElement,wf=(i,e)=>{const t=i&&i.to;return Yt(t)?e?e(t):null:t},WM={name:"Teleport",__isTeleport:!0,process(i,e,t,s,n,r,o,a,l,c){const{mc:h,pc:u,pbc:d,o:{insert:f,querySelector:p,createText:m,createComment:g,parentNode:y}}=c,x=Hr(e.props);let{dynamicChildren:v}=e;const w=(b,A,P)=>{b.shapeFlag&16&&h(b.children,A,P,n,r,o,a,l)},_=(b=e)=>{const A=Hr(b.props),P=b.target=wf(b.props,p),F=Sf(P,b,m,f);P&&(o!=="svg"&&jp(P)?o="svg":o!=="mathml"&&Hp(P)&&(o="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(P),A||(w(b,P,F),Ba(b,!1)))},S=b=>{const A=()=>{if(Jn.get(b)===A){if(Jn.delete(b),Hr(b.props)){const P=y(b.el)||t;w Line truncated
**/function _l(i,e,t,s){try{return s?i(...s):i()}catch(n){Wh(n,e,t)}}function pi(i,e,t,s){if(it(i)){const n=_l(i,e,t,s);return n&&Ey(n)&&n.catch(r=>{Wh(r,e,t)}),n}if(We(i)){const n=[];for(let r=0;r<i.length;r++)n.push(pi(i[r],e,t,s));return n}}function Wh(i,e,t,s=!0){const n=e?e.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||Lt;if(e){let a=e.parent;const l=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${t}`;for(;a;){const h=a.ec;if(h){for(let u=0;u<h.length;u++)if(h[u](i,l,c)===!1)return}a=a.parent}if(r){$n(),_l(r,null,10,[i,l,c]),Xn();return}}XM(i,t,n,s,o)}function XM(i,e,t,s=!0,n=!1){if(n)throw i;console.error(i)}const $s=[];let Gi=-1;const Ho=[];let sr=null,ko=0;const ex=Promise.resolve();let Gc=null;function zh(i){const e=Gc||ex;return i?e.then(this?i.bind(this):i):e}function VM(i){let e=Gi+1,t=$s.length;for(;e<t;){const s=e+t>>>1,n=$s[s],r=cl(n);r<i||r===i&&n.flags&2?e=s+1:t=s}return e}function ep(i){if(!(i.flags&1)){const e=cl(i),t=$s[$s.length-1];!t||!(i.flags&2)&&e>=cl(t)?$s.push(i):$s.splice(VM(e),0,i),i.flags|=1,tx()}}function tx(){Gc||(Gc=ex.then(ix))}function YM(i){if(!We(i))sr&&i.id===-1?sr.splice(ko+1,0,i):i.flags&1||(Ho.push(i),i.flags|=1);else for(let e=0;e<i.length;e++)Ho.push(i[e]);tx()}function jp(i,e,t=Gi+1){for(;t<$s.length;t++){const s=$s[t];if(s&&s.flags&2){if(i&&s.id!==i.uid)continue;$s.splice(t,1),t--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function sx(i){if(Ho.length){const e=[...new Set(Ho)].sort((t,s)=>cl(t)-cl(s));if(Ho.length=0,sr){for(let t=0;t<e.length;t++)sr.push(e[t]);return}for(sr=e,ko=0;ko<sr.length;ko++){const t=sr[ko];t.flags&4&&(t.flags&=-2),t.flags&8||t(),t.flags&=-2}sr=null,ko=0}}const cl=i=>i.id==null?i.flags&2?-1:1/0:i.id;function ix(i){try{for(Gi=0;Gi<$s.length;Gi++){const e=$s[Gi];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),_l(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Gi<$s.length;Gi++){const e=$s[Gi];e&&(e.flags&=-2)}Gi=-1,$s.length=0,sx(),Gc=null,($s.length||Ho.length)&&ix()}}let Ls=null,nx=null;function jc(i){const e=Ls;return Ls=i,nx=i&&i.type.__scopeId||null,e}function qh(i,e=Ls,t){if(!e||i._n)return i;const s=(...n)=>{s._d&&qc(-1);const r=jc(e),o=Nn.length;let a;try{a=i(...n)}finally{for(let l=Nn.length;l>o;l--)rp();jc(r),s._d&&qc(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function ce(i,e){if(Ls===null)return i;const t=tu(Ls),s=i.dirs||(i.dirs=[]);for(let n=0;n<e.length;n++){let[r,o,a,l=Lt]=e[n];r&&(it(r)&&(r={mounted:r,updated:r}),r.deep&&An(o),s.push({dir:r,instance:t,value:o,oldValue:void 0,arg:a,modifiers:l}))}return i}function Pr(i,e,t,s){const n=i.dirs,r=e&&e.dirs;for(let o=0;o<n.length;o++){const a=n[o];r&&(a.oldValue=r[o].value);let l=a.dir[s];l&&($n(),pi(l,t,8,[i.el,a,i,e]),Xn())}}function rx(i,e){if(Xs){let t=Xs.provides;const s=Xs.parent&&Xs.parent.provides;s===t&&(t=Xs.provides=Object.create(s)),t[i]=e}}function Wo(i,e,t=!1){const s=op();if(s||io){let n=io?io._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(n&&i in n)return n[i];if(arguments.length>1)return t&&it(e)?e.call(s&&s.proxy):e}}function GM(){return!!(op()||io)}const jM=Symbol.for("v-scx"),HM=()=>Wo(jM);function Fo(i,e){return tp(i,null,e)}function cs(i,e,t){return tp(i,e,t)}function tp(i,e,t=Lt){const{immediate:s,deep:n,flush:r,once:o}=t,a=ps({},t),l=e&&s||!e&&r!=="post";let c;if(ml){if(r==="sync"){const f=HM();c=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=on,f.resume=on,f.pause=on,f}}const h=Xs;a.call=(f,p,m)=>pi(f,h,p,m);let u=!1;r==="post"?a.scheduler=f=>{Ns(f,h&&h.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(f,p)=>{p?f():ep(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,h&&(f.id=h.uid,f.i=h))};const d=$M(i,e,a);return ml&&(c?c.push(d):l&&d()),d}function WM(i,e,t){const s=this.proxy,n=Yt(i)?i.includes(".")?ox(s,i):()=>s[i]:i.bind(s,s);let r;it(e)?r=e:(r=e.handler,t=e);const o=Al(this),a=tp(n,r.bind(s),t);return o(),a}function ox(i,e){const t=e.split(".");return()=>{let s=i;for(let n=0;n<t.length&&s;n++)s=s[t[n]];return s}}const Jn=new WeakMap,ax=Symbol("_vte"),Kh=i=>i.__isTeleport,Hr=i=>i&&(i.disabled||i.disabled===""),zM=i=>i&&(i.defer||i.defer===""),Hp=i=>typeof SVGElement<"u"&&i instanceof SVGElement,Wp=i=>typeof MathMLElement=="function"&&i instanceof MathMLElement,Sf=(i,e)=>{const t=i&&i.to;return Yt(t)?e?e(t):null:t},qM={name:"Teleport",__isTeleport:!0,process(i,e,t,s,n,r,o,a,l,c){const{mc:h,pc:u,pbc:d,o:{insert:f,querySelector:p,createText:m,createComment:g,parentNode:v}}=c,y=Hr(e.props);let{dynamicChildren:x}=e;const M=(b,_,E)=>{b.shapeFlag&16&&h(b.children,_,E,n,r,o,a,l)},C=(b=e)=>{const _=Hr(b.props),E=b.target=Sf(b.props,p),F=Mf(E,b,m,f);E&&(o!=="svg"&&Hp(E)?o="svg":o!=="mathml"&&Wp(E)&&(o="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(E),_||(M(b,E,F),Ba(b,!1)))},w=b=>{const _=()=>{if(Jn.get(b)===_){if(Jn.delete(b),Hr(b.props)){const E=v(b.el)||t;M Line truncated
* @vue/runtime-dom v3.5.41
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ef;const rg=typeof window<"u"&&window.trustedTypes;if(rg)try{Ef=rg.createPolicy("vue",{createHTML:i=>i})}catch{}const Ox=Ef?i=>Ef.createHTML(i):i=>i,KT="http://www.w3.org/2000/svg",ZT="http://www.w3.org/1998/Math/MathML",bn=typeof document<"u"?document:null,og=bn&&bn.createElement("template"),JT={insert:(i,e,t)=>{e.insertBefore(i,t||null)},remove:i=>{const e=i.parentNode;e&&e.removeChild(i)},createElement:(i,e,t,s)=>{const n=e==="svg"?bn.createElementNS(KT,i):e==="mathml"?bn.createElementNS(ZT,i):t?bn.createElement(i,{is:t}):bn.createElement(i);return i==="select"&&s&&s.multiple!=null&&n.setAttribute("multiple",s.multiple),n},createText:i=>bn.createTextNode(i),createComment:i=>bn.createComment(i),setText:(i,e)=>{i.nodeValue=e},setElementText:(i,e)=>{i.textContent=e},parentNode:i=>i.parentNode,nextSibling:i=>i.nextSibling,querySelector:i=>bn.querySelector(i),setScopeId(i,e){i.setAttribute(e,"")},insertStaticContent(i,e,t,s,n,r){const o=t?t.previousSibling:e.lastChild;if(n&&(n===r||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),t),!(n===r||!(n=n.nextSibling)););else{og.innerHTML=Ox(s==="svg"?`<svg>${i}</svg>`:s==="mathml"?`<math>${i}</math>`:i);const a=og.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},qn="transition",Ea="animation",pl=Symbol("_vtc"),Lx={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},QT=ms({},ox,Lx),e2=i=>(i.displayName="Transition",i.props=QT,i),t2=e2((i,{slots:e})=>zT(JM,s2(i),e)),Fr=(i,e=[])=>{We(i)?i.forEach(t=>t(...e)):i&&i(...e)},ag=i=>i?We(i)?i.some(e=>e.length>1):i.length>1:!1;function s2(i){const e={};for(const k in i)k in Lx||(e[k]=i[k]);if(i.css===!1)return e;const{name:t="v",type:s,duration:n,enterFromClass:r=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:h=a,leaveFromClass:u=`${t}-leave-from`,leaveActiveClass:d=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=i,p=i2(n),m=p&&p[0],g=p&&p[1],{onBeforeEnter:y,onEnter:x,onEnterCancelled:v,onLeave:w,onLeaveCancelled:_,onBeforeAppear:S=y,onAppear:b=x,onAppearCancelled:A=v}=e,P=(k,B,D,X)=>{k._enterCancelled=X,Or(k,B?h:a),Or(k,B?c:o),D&&D()},F=(k,B)=>{k._isLeaving=!1,Or(k,u),Or(k,f),Or(k,d),B&&B()},E=k=>(B,D)=>{const X=k?b:x,N=()=>P(B,k,D);Fr(X,[B,N]),lg(()=>{Or(B,k?l:r),gn(B,k?h:a),ag(X)||cg(B,s,m,N)})};return ms(e,{onBeforeEnter(k){Fr(y,[k]),gn(k,r),gn(k,o)},onBeforeAppear(k){Fr(S,[k]),gn(k,l),gn(k,c)},onEnter:E(!1),onAppear:E(!0),onLeave(k,B){k._isLeaving=!0;const D=()=>F(k,B);gn(k,u),k._enterCancelled?(gn(k,d),dg(k)):(dg(k),gn(k,d)),lg(()=>{k._isLeaving&&(Or(k,u),gn(k,f),ag(w)||cg(k,s,g,D))}),Fr(w,[k,D])},onEnterCancelled(k){P(k,!1,void 0,!0),Fr(v,[k])},onAppearCancelled(k){P(k,!0,void 0,!0),Fr(A,[k])},onLeaveCancelled(k){F(k),Fr(_,[k])}})}function i2(i){if(i==null)return null;if(kt(i))return[Pu(i.enter),Pu(i.leave)];{const e=Pu(i);return[e,e]}}function Pu(i){return tM(i)}function gn(i,e){e.split(/\s+/).forEach(t=>t&&i.classList.add(t)),(i[pl]||(i[pl]=new Set)).add(e)}function Or(i,e){e.split(/\s+/).forEach(s=>s&&i.classList.remove(s));const t=i[pl];t&&(t.delete(e),t.size||(i[pl]=void 0))}function lg(i){requestAnimationFrame(()=>{requestAnimationFrame(i)})}let n2=0;function cg(i,e,t,s){const n=i._endId=++n2,r=()=>{n===i._endId&&s()};if(t!=null)return setTimeout(r,t);const{type:o,timeout:a,propCount:l}=r2(i,e);if(!o)return s();const c=o+"end";let h=0;const u=()=>{i.removeEventListener(c,d),r()},d=f=>{f.target===i&&++h>=l&&u()};setTimeout(()=>{h<l&&u()},a+1),i.addEventListener(c,d)}function r2(i,e){const t=window.getComputedStyle(i),s=p=>(t[p]||"").split(", "),n=s(`${qn}Delay`),r=s(`${qn}Duration`),o=hg(n,r),a=s(`${Ea}Delay`),l=s(`${Ea}Duration`),c=hg(a,l);let h=null,u=0,d=0;e===qn?o>0&&(h=qn,u=o,d=r.length):e===Ea?c>0&&(h=Ea,u=c,d=l.length):(u=Math.max(o,c),h=u>0?o>c?qn:Ea:null,d=h?h===qn?r.length:l.length:0);const f=h===qn&&/\b(?:transform|all)(?:,|$)/.test(s(`${qn}Property`).toString());return{type:h,timeout:u,propCount:d,hasTransform:f}}function hg(i,e){for(;i.length<e.length;)i=i.concat(i);return Math.max(...e.map((t,s)=>ug(t)+ug(i[s])))}function ug(i){return i==="auto"?0:Number(i.slice(0,-1).replace(",","."))*1e3}function dg(i){return(i?i.ownerDocument:document).body.offsetHeight}function o2(i,e,t){const s=i[pl];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?i.removeAttribute("class"):t?i.setAttribute("class",e):i.className=e}const Jc=Symbol("_vod"),Bx=Symbol("_vsh"),ws={name:"show",beforeMount(i,{value:e},{transition:t}){i[Jc]=i.style.display==="none"?"":i.style.display,t&&e?t.beforeEnter(i):Ia(i,e)},mounted(i,{value:e},{tra Line truncated
`))),i[tn]=oa(n);const r=s||n.props&&n.props.type==="number";ar(i,e?"change":"input",o=>{o.target.composing||i[tn](Ou(i.value,t,r))}),(t||r)&&ar(i,"change",()=>{i.value=Ou(i.value,t,r)}),e||(ar(i,"compositionstart",M2),ar(i,"compositionend",bg),ar(i,"change",bg))},mounted(i,{value:e,modifiers:{trim:t,number:s}}){const n=e??"",r=i[Gl];delete i[Gl],r!==void 0&&(i.type==="text"||i.type==="textarea")&&i.value!==r?i[tn](Ou(i.value,t,s)):i.value=n},beforeUpdate(i,{value:e,oldValue:t,modifiers:{lazy:s,trim:n,number:r}},o){if(i[tn]=oa(o),i.composing)return;const a=(r||i.type==="number")&&!/^0\d/.test(i.value)?Yh(i.value):i.value,l=e??"";if(a===l)return;const c=i.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===i&&i.type!=="range"&&(s&&e===t||n&&i.value.trim()===l)||(i.value=l)}},yt={deep:!0,created(i,e,t){i[tn]=oa(t),ar(i,"change",()=>{const s=i._modelValue,n=gl(i),r=i.checked,o=i[tn];if(We(s)){const a=Hm(s,n),l=a!==-1;if(r&&!l)o(s.concat(n));else if(!r&&l){const c=[...s];c.splice(a,1),o(c)}}else if(fa(s)){const a=new Set(s);r?a.add(n):a.delete(n),o(a)}else o(Nx(i,r))})},mounted:wg,beforeUpdate(i,e,t){i[tn]=oa(t),wg(i,e,t)}};function wg(i,{value:e,oldValue:t},s){i._modelValue=e;let n;if(We(e))n=Hm(e,s.props.value)>-1;else if(fa(e))n=e.has(s.props.value);else{if(e===t)return;n=ma(e,Nx(i,!0))}i.checked!==n&&(i.checked=n)}const _t={deep:!0,created(i,{value:e,modifiers:{number:t}},s){i._modelValue=e,ar(i,"change",()=>{const n=Array.prototype.filter.call(i.options,r=>r.selected).map(r=>t?Yh(gl(r)):gl(r));i[tn](i.multiple?fa(i._modelValue)?new Set(n):n:n[0]),i._assigning=!0,zh(()=>{i._assigning=!1})}),i[tn]=oa(s)},mounted(i,{value:e}){Sg(i,e)},beforeUpdate(i,{value:e},t){i._modelValue=e,i[tn]=oa(t)},updated(i,{value:e}){i._assigning||Sg(i,e)}};function Sg(i,e){const t=i.multiple,s=We(e);if(!(t&&!s&&!fa(e))){for(let n=0,r=i.options.length;n<r;n++){const o=i.options[n],a=gl(o);if(t)if(s){const l=typeof a;l==="string"||l==="number"?o.selected=e.some(c=>String(c)===String(a)):o.selected=Hm(e,a)>-1}else o.selected=e.has(a);else if(ma(gl(o),e)){i.selectedIndex!==n&&(i.selectedIndex=n);return}}!t&&i.selectedIndex!==-1&&(i.selectedIndex=-1)}}function gl(i){return"_value"in i?i._value:i.value}function Nx(i,e){const t=e?"_trueValue":"_falseValue";return t in i?i[t]:e}const T2=["ctrl","shift","alt","meta"],_2={stop:i=>i.stopPropagation(),prevent:i=>i.preventDefault(),self:i=>i.target!==i.currentTarget,ctrl:i=>!i.ctrlKey,shift:i=>!i.shiftKey,alt:i=>!i.altKey,meta:i=>!i.metaKey,left:i=>"button"in i&&i.button!==0,middle:i=>"button"in i&&i.button!==1,right:i=>"button"in i&&i.button!==2,exact:(i,e)=>T2.some(t=>i[`${t}Key`]&&!e.includes(t))},Ke=(i,e)=>{if(!i)return i;const t=i._withMods||(i._withMods={}),s=e.join(".");return t[s]||(t[s]=((n,...r)=>{for(let o=0;o<e.length;o++){const a=_2[e[o]];if(a&&a(n,e))return}return i(n,...r)}))},C2={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},yr=(i,e)=>{const t=i._withKeys||(i._withKeys={}),s=e.join(".");return t[s]||(t[s]=(n=>{if(!("key"in n))return;const r=Tr(n.key);if(e.some(o=>o===r||C2[o]===r))return i(n)}))},A2=ms({patchProp:b2},JT);let Mg;function E2(){return Mg||(Mg=kT(A2))}const I2=((...i)=>{const e=E2().createApp(...i),{mount:t}=e;return e.mount=s=>{const n=P2(s);if(!n)return;const r=e._component;!it(r)&&!r.render&&!r.template&&(r.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const o=t(n,!1,R2(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},e});function R2(i){if(i instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&i instanceof MathMLElement)return"mathml"}function P2(i){return Yt(i)?document.querySelector(i):i}/*!
**/let If;const og=typeof window<"u"&&window.trustedTypes;if(og)try{If=og.createPolicy("vue",{createHTML:i=>i})}catch{}const Bx=If?i=>If.createHTML(i):i=>i,JT="http://www.w3.org/2000/svg",QT="http://www.w3.org/1998/Math/MathML",bn=typeof document<"u"?document:null,ag=bn&&bn.createElement("template"),e_={insert:(i,e,t)=>{e.insertBefore(i,t||null)},remove:i=>{const e=i.parentNode;e&&e.removeChild(i)},createElement:(i,e,t,s)=>{const n=e==="svg"?bn.createElementNS(JT,i):e==="mathml"?bn.createElementNS(QT,i):t?bn.createElement(i,{is:t}):bn.createElement(i);return i==="select"&&s&&s.multiple!=null&&n.setAttribute("multiple",s.multiple),n},createText:i=>bn.createTextNode(i),createComment:i=>bn.createComment(i),setText:(i,e)=>{i.nodeValue=e},setElementText:(i,e)=>{i.textContent=e},parentNode:i=>i.parentNode,nextSibling:i=>i.nextSibling,querySelector:i=>bn.querySelector(i),setScopeId(i,e){i.setAttribute(e,"")},insertStaticContent(i,e,t,s,n,r){const o=t?t.previousSibling:e.lastChild;if(n&&(n===r||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),t),!(n===r||!(n=n.nextSibling)););else{ag.innerHTML=Bx(s==="svg"?`<svg>${i}</svg>`:s==="mathml"?`<math>${i}</math>`:i);const a=ag.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},qn="transition",Ea="animation",pl=Symbol("_vtc"),Nx={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},t_=ps({},lx,Nx),s_=i=>(i.displayName="Transition",i.props=t_,i),i_=s_((i,{slots:e})=>KT(eT,n_(i),e)),Fr=(i,e=[])=>{We(i)?i.forEach(t=>t(...e)):i&&i(...e)},lg=i=>i?We(i)?i.some(e=>e.length>1):i.length>1:!1;function n_(i){const e={};for(const k in i)k in Nx||(e[k]=i[k]);if(i.css===!1)return e;const{name:t="v",type:s,duration:n,enterFromClass:r=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:h=a,leaveFromClass:u=`${t}-leave-from`,leaveActiveClass:d=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=i,p=r_(n),m=p&&p[0],g=p&&p[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:x,onLeave:M,onLeaveCancelled:C,onBeforeAppear:w=v,onAppear:b=y,onAppearCancelled:_=x}=e,E=(k,B,D,X)=>{k._enterCancelled=X,Or(k,B?h:a),Or(k,B?c:o),D&&D()},F=(k,B)=>{k._isLeaving=!1,Or(k,u),Or(k,f),Or(k,d),B&&B()},I=k=>(B,D)=>{const X=k?b:y,N=()=>E(B,k,D);Fr(X,[B,N]),cg(()=>{Or(B,k?l:r),gn(B,k?h:a),lg(X)||hg(B,s,m,N)})};return ps(e,{onBeforeEnter(k){Fr(v,[k]),gn(k,r),gn(k,o)},onBeforeAppear(k){Fr(w,[k]),gn(k,l),gn(k,c)},onEnter:I(!1),onAppear:I(!0),onLeave(k,B){k._isLeaving=!0;const D=()=>F(k,B);gn(k,u),k._enterCancelled?(gn(k,d),fg(k)):(fg(k),gn(k,d)),cg(()=>{k._isLeaving&&(Or(k,u),gn(k,f),lg(M)||hg(k,s,g,D))}),Fr(M,[k,D])},onEnterCancelled(k){E(k,!1,void 0,!0),Fr(x,[k])},onAppearCancelled(k){E(k,!0,void 0,!0),Fr(_,[k])},onLeaveCancelled(k){F(k),Fr(C,[k])}})}function r_(i){if(i==null)return null;if(kt(i))return[Pu(i.enter),Pu(i.leave)];{const e=Pu(i);return[e,e]}}function Pu(i){return iM(i)}function gn(i,e){e.split(/\s+/).forEach(t=>t&&i.classList.add(t)),(i[pl]||(i[pl]=new Set)).add(e)}function Or(i,e){e.split(/\s+/).forEach(s=>s&&i.classList.remove(s));const t=i[pl];t&&(t.delete(e),t.size||(i[pl]=void 0))}function cg(i){requestAnimationFrame(()=>{requestAnimationFrame(i)})}let o_=0;function hg(i,e,t,s){const n=i._endId=++o_,r=()=>{n===i._endId&&s()};if(t!=null)return setTimeout(r,t);const{type:o,timeout:a,propCount:l}=a_(i,e);if(!o)return s();const c=o+"end";let h=0;const u=()=>{i.removeEventListener(c,d),r()},d=f=>{f.target===i&&++h>=l&&u()};setTimeout(()=>{h<l&&u()},a+1),i.addEventListener(c,d)}function a_(i,e){const t=window.getComputedStyle(i),s=p=>(t[p]||"").split(", "),n=s(`${qn}Delay`),r=s(`${qn}Duration`),o=ug(n,r),a=s(`${Ea}Delay`),l=s(`${Ea}Duration`),c=ug(a,l);let h=null,u=0,d=0;e===qn?o>0&&(h=qn,u=o,d=r.length):e===Ea?c>0&&(h=Ea,u=c,d=l.length):(u=Math.max(o,c),h=u>0?o>c?qn:Ea:null,d=h?h===qn?r.length:l.length:0);const f=h===qn&&/\b(?:transform|all)(?:,|$)/.test(s(`${qn}Property`).toString());return{type:h,timeout:u,propCount:d,hasTransform:f}}function ug(i,e){for(;i.length<e.length;)i=i.concat(i);return Math.max(...e.map((t,s)=>dg(t)+dg(i[s])))}function dg(i){return i==="auto"?0:Number(i.slice(0,-1).replace(",","."))*1e3}function fg(i){return(i?i.ownerDocument:document).body.offsetHeight}function l_(i,e,t){const s=i[pl];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?i.removeAttribute("class"):t?i.setAttribute("class",e):i.className=e}const Jc=Symbol("_vod"),Dx=Symbol("_vsh"),Ss={name:"show",beforeMount(i,{value:e},{transition:t}){i[Jc]=i.style.display==="none"?"":i.style.display,t&&e?t.beforeEnter(i):Ia(i,e)},mounted(i,{value:e},{tra Line truncated
`))),i[tn]=oa(n);const r=s||n.props&&n.props.type==="number";ar(i,e?"change":"input",o=>{o.target.composing||i[tn](Ou(i.value,t,r))}),(t||r)&&ar(i,"change",()=>{i.value=Ou(i.value,t,r)}),e||(ar(i,"compositionstart",__),ar(i,"compositionend",wg),ar(i,"change",wg))},mounted(i,{value:e,modifiers:{trim:t,number:s}}){const n=e??"",r=i[Gl];delete i[Gl],r!==void 0&&(i.type==="text"||i.type==="textarea")&&i.value!==r?i[tn](Ou(i.value,t,s)):i.value=n},beforeUpdate(i,{value:e,oldValue:t,modifiers:{lazy:s,trim:n,number:r}},o){if(i[tn]=oa(o),i.composing)return;const a=(r||i.type==="number")&&!/^0\d/.test(i.value)?Yh(i.value):i.value,l=e??"";if(a===l)return;const c=i.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===i&&i.type!=="range"&&(s&&e===t||n&&i.value.trim()===l)||(i.value=l)}},yt={deep:!0,created(i,e,t){i[tn]=oa(t),ar(i,"change",()=>{const s=i._modelValue,n=gl(i),r=i.checked,o=i[tn];if(We(s)){const a=Wm(s,n),l=a!==-1;if(r&&!l)o(s.concat(n));else if(!r&&l){const c=[...s];c.splice(a,1),o(c)}}else if(fa(s)){const a=new Set(s);r?a.add(n):a.delete(n),o(a)}else o(Ux(i,r))})},mounted:Sg,beforeUpdate(i,e,t){i[tn]=oa(t),Sg(i,e,t)}};function Sg(i,{value:e,oldValue:t},s){i._modelValue=e;let n;if(We(e))n=Wm(e,s.props.value)>-1;else if(fa(e))n=e.has(s.props.value);else{if(e===t)return;n=ma(e,Ux(i,!0))}i.checked!==n&&(i.checked=n)}const _t={deep:!0,created(i,{value:e,modifiers:{number:t}},s){i._modelValue=e,ar(i,"change",()=>{const n=Array.prototype.filter.call(i.options,r=>r.selected).map(r=>t?Yh(gl(r)):gl(r));i[tn](i.multiple?fa(i._modelValue)?new Set(n):n:n[0]),i._assigning=!0,zh(()=>{i._assigning=!1})}),i[tn]=oa(s)},mounted(i,{value:e}){Mg(i,e)},beforeUpdate(i,{value:e},t){i._modelValue=e,i[tn]=oa(t)},updated(i,{value:e}){i._assigning||Mg(i,e)}};function Mg(i,e){const t=i.multiple,s=We(e);if(!(t&&!s&&!fa(e))){for(let n=0,r=i.options.length;n<r;n++){const o=i.options[n],a=gl(o);if(t)if(s){const l=typeof a;l==="string"||l==="number"?o.selected=e.some(c=>String(c)===String(a)):o.selected=Wm(e,a)>-1}else o.selected=e.has(a);else if(ma(gl(o),e)){i.selectedIndex!==n&&(i.selectedIndex=n);return}}!t&&i.selectedIndex!==-1&&(i.selectedIndex=-1)}}function gl(i){return"_value"in i?i._value:i.value}function Ux(i,e){const t=e?"_trueValue":"_falseValue";return t in i?i[t]:e}const C_=["ctrl","shift","alt","meta"],A_={stop:i=>i.stopPropagation(),prevent:i=>i.preventDefault(),self:i=>i.target!==i.currentTarget,ctrl:i=>!i.ctrlKey,shift:i=>!i.shiftKey,alt:i=>!i.altKey,meta:i=>!i.metaKey,left:i=>"button"in i&&i.button!==0,middle:i=>"button"in i&&i.button!==1,right:i=>"button"in i&&i.button!==2,exact:(i,e)=>C_.some(t=>i[`${t}Key`]&&!e.includes(t))},Ke=(i,e)=>{if(!i)return i;const t=i._withMods||(i._withMods={}),s=e.join(".");return t[s]||(t[s]=((n,...r)=>{for(let o=0;o<e.length;o++){const a=A_[e[o]];if(a&&a(n,e))return}return i(n,...r)}))},E_={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},yr=(i,e)=>{const t=i._withKeys||(i._withKeys={}),s=e.join(".");return t[s]||(t[s]=(n=>{if(!("key"in n))return;const r=Tr(n.key);if(e.some(o=>o===r||E_[o]===r))return i(n)}))},I_=ps({patchProp:S_},e_);let Tg;function R_(){return Tg||(Tg=OT(I_))}const P_=((...i)=>{const e=R_().createApp(...i),{mount:t}=e;return e.mount=s=>{const n=F_(s);if(!n)return;const r=e._component;!it(r)&&!r.render&&!r.template&&(r.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const o=t(n,!1,k_(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},e});function k_(i){if(i instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&i instanceof MathMLElement)return"mathml"}function F_(i){return Yt(i)?document.querySelector(i):i}/*!
* pinia v4.0.3
* (c) 2026 Eduardo San Martin Morote
* @license MIT
*/let Dx;const su=i=>Dx=i,Ux=Symbol();function Tg(i){return i&&typeof i=="object"&&Object.prototype.toString.call(i)==="[object Object]"&&typeof i.toJSON!="function"}function k2(){const i=Ly(!0),e=i.run(()=>Fe({}));let t=[],s=[];const n=ur({install(r){su(n),n._a=r,r.provide(Ux,n),r.config.globalProperties.$pinia=n,s.forEach(o=>t.push(o)),s=[]},use(r){return this._a?t.push(r):s.push(r),this},_p:t,_a:null,_e:i,_s:new Map,state:e});return n}const If=()=>{};function _g(i,e,t,s=If){i.add(e);const n=()=>{i.delete(e)&&s()};return!t&&By()&&cM(n),n}function To(i,...e){i.forEach(t=>{t(...e)})}const F2=i=>i(),Cg=Symbol(),Lu=Symbol();function Rf(i,e){i instanceof Map&&e instanceof Map?e.forEach((t,s)=>i.set(s,t)):i instanceof Set&&e instanceof Set&&e.forEach(i.add,i);for(const t in e){if(!Object.hasOwn(e,t))continue;const s=e[t],n=i[t];Tg(n)&&Tg(s)&&Object.hasOwn(i,t)&&!Gt(s)&&!Bn(s)?i[t]=Rf(n,s):i[t]=s}return i}const O2=Symbol();function L2(i){return!i||typeof i!="object"||!Object.hasOwn(i,O2)}const{assign:Qn}=Object;function B2(i){return!!(Gt(i)&&i.effect)}function N2(i,e,t,s){const{state:n,actions:r,getters:o}=e,a=t.state.value[i];let l;function c(){a||(t.state.value[i]=n?n():{});const h=kM(t.state.value[i]);return Qn(h,r,Object.keys(o||{}).reduce((u,d)=>(u[d]=ur(De(()=>{su(t);const f=t._s.get(i);return o[d].call(f,f)})),u),{}))}return l=$x(i,c,e,t,s,!0),l}function $x(i,e,t={},s,n,r){let o;const a=Qn({actions:{}},t),l={deep:!0};let c,h,u=new Set,d=new Set,f;const p=s.state.value[i];!r&&!p&&(s.state.value[i]={});let m;function g(b){let A;c=h=!1,typeof b=="function"?(b(s.state.value[i]),A={type:"patch function",storeId:i,events:f}):(Rf(s.state.value[i],b),A={type:"patch object",payload:b,storeId:i,events:f});const P=m=Symbol();zh().then(()=>{m===P&&(c=!0)}),h=!0,To(u,A,s.state.value[i])}const y=r?function(){const{state:A}=t,P=A?A():{};this.$patch(F=>{Qn(F,P)})}:If;function x(){o.stop(),u.clear(),d.clear(),s._s.delete(i)}const v=(b,A="")=>{if(Cg in b)return b[Lu]=A,b;const P=function(){su(s);const F=Array.from(arguments),E=new Set,k=new Set;function B(N){E.add(N)}function D(N){k.add(N)}To(d,{args:F,name:P[Lu],store:_,after:B,onError:D});let X;try{X=b.apply(this&&this.$id===i?this:_,F)}catch(N){throw To(k,N),N}return X instanceof Promise?X.then(N=>(To(E,N),N)).catch(N=>(To(k,N),Promise.reject(N))):(To(E,X),X)};return P[Cg]=!0,P[Lu]=A,P},w={_p:s,$id:i,$onAction:_g.bind(null,d),$patch:g,$reset:y,$subscribe(b,A={}){if(u.has(b))return If;const P=_g(u,b,A.detached,()=>F()),F=o.run(()=>Cs(()=>s.state.value[i],E=>{(A.flush==="sync"?h:c)&&b({storeId:i,type:"direct",events:f},E)},Qn({},l,A)));return P},$dispose:x},_=mo(w);s._s.set(i,_);const S=(s._a&&s._a.runWithContext||F2)(()=>s._e.run(()=>(o=Ly()).run(()=>e({action:v}))));for(const b in S){const A=S[b];Gt(A)&&!B2(A)||Bn(A)?r||(p&&L2(A)&&(Gt(A)?A.value=p[b]:((A instanceof Set||A instanceof Map)&&A.clear(),Rf(A,p[b]))),s.state.value[i][b]=A):typeof A=="function"&&(S[b]=v(A,b),a.actions[b]=A)}return Qn(_,S),Qn(St(_),S),Object.defineProperty(_,"$state",{get:()=>s.state.value[i],set:b=>{g(A=>{Qn(A,b)})}}),s._p.forEach(b=>{const A=o.run(()=>b({store:_,app:s._a,pinia:s,options:a}));Qn(_,A)}),p&&r&&t.hydrate&&t.hydrate(_.$state,p),c=!0,h=!0,_}/*! #__NO_SIDE_EFFECTS__ */function D2(i,e,t){let s;const n=typeof e=="function";s=n?t:e;function r(o,a){const l=VM();return o=o||(l?Wo(Ux,null):null),o&&su(o),o=Dx,o._s.has(i)||(n?$x(i,e,s,o):N2(i,s,o)),o._s.get(i)}return r.$id=i,r}var go=(i=>(i[i.WEBGL_LEGACY=0]="WEBGL_LEGACY",i[i.WEBGL=1]="WEBGL",i[i.WEBGL2=2]="WEBGL2",i))(go||{}),Xx=(i=>(i[i.UNKNOWN=0]="UNKNOWN",i[i.WEBGL=1]="WEBGL",i[i.CANVAS=2]="CANVAS",i))(Xx||{}),Pf=(i=>(i[i.COLOR=16384]="COLOR",i[i.DEPTH=256]="DEPTH",i[i.STENCIL=1024]="STENCIL",i))(Pf||{}),He=(i=>(i[i.NORMAL=0]="NORMAL",i[i.ADD=1]="ADD",i[i.MULTIPLY=2]="MULTIPLY",i[i.SCREEN=3]="SCREEN",i[i.OVERLAY=4]="OVERLAY",i[i.DARKEN=5]="DARKEN",i[i.LIGHTEN=6]="LIGHTEN",i[i.COLOR_DODGE=7]="COLOR_DODGE",i[i.COLOR_BURN=8]="COLOR_BURN",i[i.HARD_LIGHT=9]="HARD_LIGHT",i[i.SOFT_LIGHT=10]="SOFT_LIGHT",i[i.DIFFERENCE=11]="DIFFERENCE",i[i.EXCLUSION=12]="EXCLUSION",i[i.HUE=13]="HUE",i[i.SATURATION=14]="SATURATION",i[i.COLOR=15]="COLOR",i[i.LUMINOSITY=16]="LUMINOSITY",i[i.NORMAL_NPM=17]="NORMAL_NPM",i[i.ADD_NPM=18]="ADD_NPM",i[i.SCREEN_NPM=19]="SCREEN_NPM",i[i.NONE=20]="NONE",i[i.SRC_OVER=0]="SRC_OVER",i[i.SRC_IN=21]="SRC_IN",i[i.SRC_OUT=22]="SRC_OUT",i[i.SRC_ATOP=23]="SRC_ATOP",i[i.DST_OVER=24]="DST_OVER",i[i.DST_IN=25]="DST_IN",i[i.DST_OUT=26]="DST_OUT",i[i.DST_ATOP=27]="DST_ATOP",i[i.ERASE=26]="ERASE",i[i.SUBTRACT=28]="SUBTRACT",i[i.XOR=29]="XOR",i))(He||{}),sn=(i=>(i[i.POINTS=0]="POINTS",i[i.LINES=1]="LINES",i[i.LINE_LOOP=2]="LINE_LOOP",i[i.LINE_STRIP=3]="LINE_STRIP",i[i.TRIANGLES=4]="TRIANGLES",i[i.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",i[i.TRIANGLE_FAN=6]="TRIANGLE_FAN",i))(sn||{}),_e=(i=>(i[i.RGBA=6408]="RGBA",i[i.RGB=6407]="RGB",i[i.RG=33319]="RG",i[i.RED=6403]="RED",i[i.RGBA_INTEGER=36249]="RGBA_INTEGER",i[i.RGB_INTEGER=36248]="RGB_INTELine truncated
`)>=0)return!1;return!0}function gs(te,oe){var lt;if(te.indent===" ")lt=" ";else if(typeof te.indent=="number"&&te.indent>0)lt=A.call(Array(te.indent+1)," ");else return null;return{base:lt,prev:A.call(Array(oe+1),lt)}}function Ct(te,oe){if(te.length===0)return"";var lt=`
`+oe.prev+oe.base;return lt+A.call(te,","+lt)+`
`+oe.prev}function xt(te,oe){var lt=re(te),It=[];if(lt){It.length=te.length;for(var Rt=0;Rt<te.length;Rt++)It[Rt]=se(te,Rt)?oe(te[Rt],te):""}var tt=typeof k=="function"?k(te):[],ni;if(D){ni={};for(var rs=0;rs<tt.length;rs++)ni["$"+tt[rs]]=tt[rs]}for(var ss in te)se(te,ss)&&(lt&&String(Number(ss))===ss&&ss<te.length||D&&ni["$"+ss]instanceof Symbol||(S.call(/[^\w$]/,ss)?It.push(oe(ss,te)+": "+oe(te[ss],te)):It.push(ss+": "+oe(te[ss],te))));if(typeof k=="function")for(var Tt=0;Tt<tt.length;Tt++)N.call(te,tt[Tt])&&It.push("["+oe(tt[Tt])+"]: "+oe(te[tt[Tt]],te));return It}return $u}var Xu,Gg;function Q2(){if(Gg)return Xu;Gg=1;var i=iu(),e=pa(),t=function(a,l,c){for(var h=a,u;(u=h.next)!=null;h=u)if(u.key===l)return h.next=u.next,c||(u.next=a.next,a.next=u),u},s=function(a,l){if(a){var c=t(a,l);return c&&c.value}},n=function(a,l,c){var h=t(a,l);h?h.value=c:a.next={key:l,next:a.next,value:c}},r=function(a,l){return a?!!t(a,l):!1},o=function(a,l){if(a)return t(a,l,!0)};return Xu=function(){var l,c={assert:function(h){if(!c.has(h))throw new e("Side channel does not contain "+i(h))},delete:function(h){var u=o(l,h);return u&&l&&!l.next&&(l=void 0),!!u},get:function(h){return s(l,h)},has:function(h){return r(l,h)},set:function(h,u){l||(l={next:void 0}),n(l,h,u)}};return c},Xu}var Vu,jg;function Yx(){return jg||(jg=1,Vu=Object),Vu}var Yu,Hg;function e_(){return Hg||(Hg=1,Yu=Error),Yu}var Gu,Wg;function t_(){return Wg||(Wg=1,Gu=EvalError),Gu}var ju,zg;function s_(){return zg||(zg=1,ju=RangeError),ju}var Hu,qg;function i_(){return qg||(qg=1,Hu=ReferenceError),Hu}var Wu,Kg;function n_(){return Kg||(Kg=1,Wu=SyntaxError),Wu}var zu,Zg;function r_(){return Zg||(Zg=1,zu=URIError),zu}var qu,Jg;function o_(){return Jg||(Jg=1,qu=Math.abs),qu}var Ku,Qg;function a_(){return Qg||(Qg=1,Ku=Math.floor),Ku}var Zu,e0;function l_(){return e0||(e0=1,Zu=Math.max),Zu}var Ju,t0;function c_(){return t0||(t0=1,Ju=Math.min),Ju}var Qu,s0;function h_(){return s0||(s0=1,Qu=Math.pow),Qu}var ed,i0;function u_(){return i0||(i0=1,ed=Math.round),ed}var td,n0;function d_(){return n0||(n0=1,td=Number.isNaN||function(e){return e!==e}),td}var sd,r0;function f_(){if(r0)return sd;r0=1;var i=d_();return sd=function(t){return i(t)||t===0?t:t<0?-1:1},sd}var id,o0;function m_(){return o0||(o0=1,id=Object.getOwnPropertyDescriptor),id}var nd,a0;function Gx(){if(a0)return nd;a0=1;var i=m_();if(i)try{i([],"length")}catch{i=null}return nd=i,nd}var rd,l0;function jx(){if(l0)return rd;l0=1;var i=Object.defineProperty||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}return rd=i,rd}var od,c0;function p_(){return c0||(c0=1,od=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),s=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var n=42;e[t]=n;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!==n||a.enumerable!==!0)return!1}return!0}),od}var ad,h0;function g_(){if(h0)return ad;h0=1;var i=typeof Symbol<"u"&&Symbol,e=p_();return ad=function(){return typeof i!="function"||typeof Symbol!="function"||typeof i("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ad}var ld,u0;function Hx(){return u0||(u0=1,ld=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ld}var cd,d0;function Wx(){if(d0)return cd;d0=1;var i=Yx();return cd=i.getPrototypeOf||null,cd}var hd,f0;function v_(){if(f0)return hd;f0=1;var i="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,s="[object Function]",n=function(l,c){for(var h=[],u=0;u<l.length;u+=1)h[u]=l[u];for(var d=0;d<c.length;d+=1)h[d+l.length]=c[d];return h},r=function(l,c){for(var h=[],u=c,d=0;u<l.length;u+=1,d+=1)h[d]=l[u];return h},o=function(a,l){for(var c="",h=0;h<a.length;h+=1)c+=a[h],h+1<a.length&&(c+=l);return c};return hd=function(l){var c=this;if(typeof c!="function"||e.apply(c)!==s)throw new TypeError(i+c);for(var h=r(arguments,1),u,d=function(){if(this instanceof u){var y=c.apply(this,n(h,arguments));return Object(y)===y?y:this}return c.apply(l,n(h,arguments))},f=t(0,c.length-h.length),p=[],m=0;m<f;m++)p[m]="$"+m;if(u=Function("binder","return function ("+o(p,",")+"){ return binder.apply(this,arguments); }")(d),c.prototype){var g=function(){};g.prototype=c.prototype,u.prototype=new g,g.prototype=null}return u},hd}var ud,m0;function nu(){if(m0)return ud;m0=1;var i=v_();return ud=Function.prototype.bind||i,ud}var dd,p0;function ap(){return p0||(p0=1,dd=Function.prototype.call),dd}var fd,g0;function zx(){return g0||(g0=1,fd=Function.p Line truncated
`," "],o=["{","}","|","\\","^","`"].concat(r),a=["'"].concat(o),l=["%","/","?",";","#"].concat(a),c=["/","?","#"],h=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+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=C_();function y(_,S,b){if(_&&typeof _=="object"&&_ instanceof e)return _;var A=new e;return A.parse(_,S,b),A}e.prototype.parse=function(_,S,b){if(typeof _!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof _);var A=_.indexOf("?"),P=A!==-1&&A<_.indexOf("#")?"?":"#",F=_.split(P),E=/\\/g;F[0]=F[0].replace(E,"/"),_=F.join(P);var k=_;if(k=k.trim(),!b&&_.split("#").length===1){var B=n.exec(k);if(B)return this.path=k,this.href=k,this.pathname=B[1],B[2]?(this.search=B[2],S?this.query=g.parse(this.search.substr(1)):this.query=this.search.substr(1)):S&&(this.search="",this.query={}),this}var D=t.exec(k);if(D){D=D[0];var X=D.toLowerCase();this.protocol=X,k=k.substr(D.length)}if(b||D||k.match(/^\/\/[^@/]+@[^@/]+/)){var N=k.substr(0,2)==="//";N&&!(D&&p[D])&&(k=k.substr(2),this.slashes=!0)}if(!p[D]&&(N||D&&!m[D])){for(var U=-1,C=0;C<c.length;C++){var R=k.indexOf(c[C]);R!==-1&&(U===-1||R<U)&&(U=R)}var O,L;U===-1?L=k.lastIndexOf("@"):L=k.lastIndexOf("@",U),L!==-1&&(O=k.slice(0,L),k=k.slice(L+1),this.auth=decodeURIComponent(O)),U=-1;for(var C=0;C<l.length;C++){var R=k.indexOf(l[C]);R!==-1&&(U===-1||R<U)&&(U=R)}U===-1&&(U=k.length),this.host=k.slice(0,U),k=k.slice(U),this.parseHost(),this.hostname=this.hostname||"";var $=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!$)for(var V=this.hostname.split(/\./),C=0,j=V.length;C<j;C++){var K=V[C];if(K&&!K.match(u)){for(var ie="",re=0,pe=K.length;re<pe;re++)K.charCodeAt(re)>127?ie+="x":ie+=K[re];if(!ie.match(u)){var ge=V.slice(0,C),he=V.slice(C+1),fe=K.match(d);fe&&(ge.push(fe[1]),he.unshift(fe[2])),he.length&&(k="/"+he.join(".")+k),this.hostname=ge.join(".");break}}}this.hostname.length>h?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=i.toASCII(this.hostname));var Y=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+Y,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),k[0]!=="/"&&(k="/"+k))}if(!f[X])for(var C=0,j=a.length;C<j;C++){var H=a[C];if(k.indexOf(H)!==-1){var G=encodeURIComponent(H);G===H&&(G=escape(H)),k=k.split(H).join(G)}}var q=k.indexOf("#");q!==-1&&(this.hash=k.substr(q),k=k.slice(0,q));var se=k.indexOf("?");if(se!==-1?(this.search=k.substr(se),this.query=k.substr(se+1),S&&(this.query=g.parse(this.query)),k=k.slice(0,se)):S&&(this.search="",this.query={}),k&&(this.pathname=k),m[X]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Y=this.pathname||"",ue=this.search||"";this.path=Y+ue}return this.href=this.format(),this};function x(_){return typeof _=="string"&&(_=y(_)),_ instanceof e?_.format():e.prototype.format.call(_)}e.prototype.format=function(){var _=this.auth||"";_&&(_=encodeURIComponent(_),_=_.replace(/%3A/i,":"),_+="@");var S=this.protocol||"",b=this.pathname||"",A=this.hash||"",P=!1,F="";this.host?P=_+this.host:this.hostname&&(P=_+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(P+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(F=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var E=this.search||F&&"?"+F||"";return S&&S.substr(-1)!==":"&&(S+=":"),this.slashes||(!S||m[S])&&P!==!1?(P="//"+(P||""),b&&b.charAt(0)!=="/"&&(b="/"+b)):P||(P=""),A&&A.charAt(0)!=="#"&&(A="#"+A),E&&E.charAt(0)!=="?"&&(E="?"+E),b=b.replace(/[?#]/g,function(k){return encodeURIComponent(k)}),E=E.replace("#","%23"),S+P+b+E+A};function v(_,S){return y(_,!1,!0).resolve(S)}e.prototype.resolve=function(_){return this.resolveObject(y(_,!1,!0)).format()};function w(_,S){return _?y(_,!1,!0).resolveObject(S):S}return e.prototype.resolveObject=function(_){if(typeof _=="string"){var S=new e;S.parse(_,!1,!0),_=S}for(var b=new e,A=Object.keys(this),P=0;P<A.length;P++){var F=A[P];b[F]=this[F]}if(b.hash=_.hash,_.href==="")return b.href=b.format(),b;if(_.slashes&&!_.protocol){for(var E=Object.keys(_),k=0;k<E.length;k++){var B=E[k];B!=="protocol"&&(b[B]=_[B])}return m[b.protocol]&&b.hostname&&!b.pathname&&(b.pathname="/",b.path=b.pathname),b.href=b.format(),b}if(_.protocol&&_.protocol!==b.protocol){if(!m[_.protocol]){for(var D=Object.keys(_),X=0;X<D.length;X++){var N=D[X];b[N]=_[N]}return b.href=b.format(),b}if(b.protocol=_.protocol,!_.host&&!p[_.protocol]){for(var j=(_.pathname||"").split("/");j.length&&!(_.host=j.shift()););_.host||(_.host=""),_.hostname||(_.hostname=""),j[0]!==""&&j.unshift(""),j.length<2&&j.unshift(""),b.pathname=j.join("/")}else b.pathname=_.pathname;if(b.search=_.search,b.query=_.query,b.host=_.host||"",b.auth=_.auth,b.hostname=_.hostname||_.host,b.port=_.port,b.pathname||b.search){var U= Line truncated
*/let $x;const su=i=>$x=i,Xx=Symbol();function _g(i){return i&&typeof i=="object"&&Object.prototype.toString.call(i)==="[object Object]"&&typeof i.toJSON!="function"}function O_(){const i=Ny(!0),e=i.run(()=>Fe({}));let t=[],s=[];const n=ur({install(r){su(n),n._a=r,r.provide(Xx,n),r.config.globalProperties.$pinia=n,s.forEach(o=>t.push(o)),s=[]},use(r){return this._a?t.push(r):s.push(r),this},_p:t,_a:null,_e:i,_s:new Map,state:e});return n}const Rf=()=>{};function Cg(i,e,t,s=Rf){i.add(e);const n=()=>{i.delete(e)&&s()};return!t&&Dy()&&uM(n),n}function To(i,...e){i.forEach(t=>{t(...e)})}const L_=i=>i(),Ag=Symbol(),Lu=Symbol();function Pf(i,e){i instanceof Map&&e instanceof Map?e.forEach((t,s)=>i.set(s,t)):i instanceof Set&&e instanceof Set&&e.forEach(i.add,i);for(const t in e){if(!Object.hasOwn(e,t))continue;const s=e[t],n=i[t];_g(n)&&_g(s)&&Object.hasOwn(i,t)&&!Gt(s)&&!Bn(s)?i[t]=Pf(n,s):i[t]=s}return i}const B_=Symbol();function N_(i){return!i||typeof i!="object"||!Object.hasOwn(i,B_)}const{assign:Qn}=Object;function D_(i){return!!(Gt(i)&&i.effect)}function U_(i,e,t,s){const{state:n,actions:r,getters:o}=e,a=t.state.value[i];let l;function c(){a||(t.state.value[i]=n?n():{});const h=OM(t.state.value[i]);return Qn(h,r,Object.keys(o||{}).reduce((u,d)=>(u[d]=ur(De(()=>{su(t);const f=t._s.get(i);return o[d].call(f,f)})),u),{}))}return l=Vx(i,c,e,t,s,!0),l}function Vx(i,e,t={},s,n,r){let o;const a=Qn({actions:{}},t),l={deep:!0};let c,h,u=new Set,d=new Set,f;const p=s.state.value[i];!r&&!p&&(s.state.value[i]={});let m;function g(b){let _;c=h=!1,typeof b=="function"?(b(s.state.value[i]),_={type:"patch function",storeId:i,events:f}):(Pf(s.state.value[i],b),_={type:"patch object",payload:b,storeId:i,events:f});const E=m=Symbol();zh().then(()=>{m===E&&(c=!0)}),h=!0,To(u,_,s.state.value[i])}const v=r?function(){const{state:_}=t,E=_?_():{};this.$patch(F=>{Qn(F,E)})}:Rf;function y(){o.stop(),u.clear(),d.clear(),s._s.delete(i)}const x=(b,_="")=>{if(Ag in b)return b[Lu]=_,b;const E=function(){su(s);const F=Array.from(arguments),I=new Set,k=new Set;function B(N){I.add(N)}function D(N){k.add(N)}To(d,{args:F,name:E[Lu],store:C,after:B,onError:D});let X;try{X=b.apply(this&&this.$id===i?this:C,F)}catch(N){throw To(k,N),N}return X instanceof Promise?X.then(N=>(To(I,N),N)).catch(N=>(To(k,N),Promise.reject(N))):(To(I,X),X)};return E[Ag]=!0,E[Lu]=_,E},M={_p:s,$id:i,$onAction:Cg.bind(null,d),$patch:g,$reset:v,$subscribe(b,_={}){if(u.has(b))return Rf;const E=Cg(u,b,_.detached,()=>F()),F=o.run(()=>cs(()=>s.state.value[i],I=>{(_.flush==="sync"?h:c)&&b({storeId:i,type:"direct",events:f},I)},Qn({},l,_)));return E},$dispose:y},C=mo(M);s._s.set(i,C);const w=(s._a&&s._a.runWithContext||L_)(()=>s._e.run(()=>(o=Ny()).run(()=>e({action:x}))));for(const b in w){const _=w[b];Gt(_)&&!D_(_)||Bn(_)?r||(p&&N_(_)&&(Gt(_)?_.value=p[b]:((_ instanceof Set||_ instanceof Map)&&_.clear(),Pf(_,p[b]))),s.state.value[i][b]=_):typeof _=="function"&&(w[b]=x(_,b),a.actions[b]=_)}return Qn(C,w),Qn(St(C),w),Object.defineProperty(C,"$state",{get:()=>s.state.value[i],set:b=>{g(_=>{Qn(_,b)})}}),s._p.forEach(b=>{const _=o.run(()=>b({store:C,app:s._a,pinia:s,options:a}));Qn(C,_)}),p&&r&&t.hydrate&&t.hydrate(C.$state,p),c=!0,h=!0,C}/*! #__NO_SIDE_EFFECTS__ */function $_(i,e,t){let s;const n=typeof e=="function";s=n?t:e;function r(o,a){const l=GM();return o=o||(l?Wo(Xx,null):null),o&&su(o),o=$x,o._s.has(i)||(n?Vx(i,e,s,o):U_(i,s,o)),o._s.get(i)}return r.$id=i,r}var go=(i=>(i[i.WEBGL_LEGACY=0]="WEBGL_LEGACY",i[i.WEBGL=1]="WEBGL",i[i.WEBGL2=2]="WEBGL2",i))(go||{}),Yx=(i=>(i[i.UNKNOWN=0]="UNKNOWN",i[i.WEBGL=1]="WEBGL",i[i.CANVAS=2]="CANVAS",i))(Yx||{}),kf=(i=>(i[i.COLOR=16384]="COLOR",i[i.DEPTH=256]="DEPTH",i[i.STENCIL=1024]="STENCIL",i))(kf||{}),He=(i=>(i[i.NORMAL=0]="NORMAL",i[i.ADD=1]="ADD",i[i.MULTIPLY=2]="MULTIPLY",i[i.SCREEN=3]="SCREEN",i[i.OVERLAY=4]="OVERLAY",i[i.DARKEN=5]="DARKEN",i[i.LIGHTEN=6]="LIGHTEN",i[i.COLOR_DODGE=7]="COLOR_DODGE",i[i.COLOR_BURN=8]="COLOR_BURN",i[i.HARD_LIGHT=9]="HARD_LIGHT",i[i.SOFT_LIGHT=10]="SOFT_LIGHT",i[i.DIFFERENCE=11]="DIFFERENCE",i[i.EXCLUSION=12]="EXCLUSION",i[i.HUE=13]="HUE",i[i.SATURATION=14]="SATURATION",i[i.COLOR=15]="COLOR",i[i.LUMINOSITY=16]="LUMINOSITY",i[i.NORMAL_NPM=17]="NORMAL_NPM",i[i.ADD_NPM=18]="ADD_NPM",i[i.SCREEN_NPM=19]="SCREEN_NPM",i[i.NONE=20]="NONE",i[i.SRC_OVER=0]="SRC_OVER",i[i.SRC_IN=21]="SRC_IN",i[i.SRC_OUT=22]="SRC_OUT",i[i.SRC_ATOP=23]="SRC_ATOP",i[i.DST_OVER=24]="DST_OVER",i[i.DST_IN=25]="DST_IN",i[i.DST_OUT=26]="DST_OUT",i[i.DST_ATOP=27]="DST_ATOP",i[i.ERASE=26]="ERASE",i[i.SUBTRACT=28]="SUBTRACT",i[i.XOR=29]="XOR",i))(He||{}),sn=(i=>(i[i.POINTS=0]="POINTS",i[i.LINES=1]="LINES",i[i.LINE_LOOP=2]="LINE_LOOP",i[i.LINE_STRIP=3]="LINE_STRIP",i[i.TRIANGLES=4]="TRIANGLES",i[i.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",i[i.TRIANGLE_FAN=6]="TRIANGLE_FAN",i))(sn||{}),_e=(i=>(i[i.RGBA=6408]="RGBA",i[i.RGB=6407]="RGB",i[i.RG=33319]="RG",i[i.RED=6403]="RED",i[i.RGBA_INTEGER=36249]="RGBA_INTEGER",i[i.RGB_INTEGER=36248]="RGB_INTELine truncated
`)>=0)return!1;return!0}function vs(te,oe){var lt;if(te.indent===" ")lt=" ";else if(typeof te.indent=="number"&&te.indent>0)lt=_.call(Array(te.indent+1)," ");else return null;return{base:lt,prev:_.call(Array(oe+1),lt)}}function Ct(te,oe){if(te.length===0)return"";var lt=`
`+oe.prev+oe.base;return lt+_.call(te,","+lt)+`
`+oe.prev}function xt(te,oe){var lt=re(te),It=[];if(lt){It.length=te.length;for(var Rt=0;Rt<te.length;Rt++)It[Rt]=se(te,Rt)?oe(te[Rt],te):""}var tt=typeof k=="function"?k(te):[],ni;if(D){ni={};for(var rs=0;rs<tt.length;rs++)ni["$"+tt[rs]]=tt[rs]}for(var ss in te)se(te,ss)&&(lt&&String(Number(ss))===ss&&ss<te.length||D&&ni["$"+ss]instanceof Symbol||(w.call(/[^\w$]/,ss)?It.push(oe(ss,te)+": "+oe(te[ss],te)):It.push(ss+": "+oe(te[ss],te))));if(typeof k=="function")for(var Tt=0;Tt<tt.length;Tt++)N.call(te,tt[Tt])&&It.push("["+oe(tt[Tt])+"]: "+oe(te[tt[Tt]],te));return It}return $u}var Xu,jg;function t2(){if(jg)return Xu;jg=1;var i=iu(),e=pa(),t=function(a,l,c){for(var h=a,u;(u=h.next)!=null;h=u)if(u.key===l)return h.next=u.next,c||(u.next=a.next,a.next=u),u},s=function(a,l){if(a){var c=t(a,l);return c&&c.value}},n=function(a,l,c){var h=t(a,l);h?h.value=c:a.next={key:l,next:a.next,value:c}},r=function(a,l){return a?!!t(a,l):!1},o=function(a,l){if(a)return t(a,l,!0)};return Xu=function(){var l,c={assert:function(h){if(!c.has(h))throw new e("Side channel does not contain "+i(h))},delete:function(h){var u=o(l,h);return u&&l&&!l.next&&(l=void 0),!!u},get:function(h){return s(l,h)},has:function(h){return r(l,h)},set:function(h,u){l||(l={next:void 0}),n(l,h,u)}};return c},Xu}var Vu,Hg;function jx(){return Hg||(Hg=1,Vu=Object),Vu}var Yu,Wg;function s2(){return Wg||(Wg=1,Yu=Error),Yu}var Gu,zg;function i2(){return zg||(zg=1,Gu=EvalError),Gu}var ju,qg;function n2(){return qg||(qg=1,ju=RangeError),ju}var Hu,Kg;function r2(){return Kg||(Kg=1,Hu=ReferenceError),Hu}var Wu,Zg;function o2(){return Zg||(Zg=1,Wu=SyntaxError),Wu}var zu,Jg;function a2(){return Jg||(Jg=1,zu=URIError),zu}var qu,Qg;function l2(){return Qg||(Qg=1,qu=Math.abs),qu}var Ku,e0;function c2(){return e0||(e0=1,Ku=Math.floor),Ku}var Zu,t0;function h2(){return t0||(t0=1,Zu=Math.max),Zu}var Ju,s0;function u2(){return s0||(s0=1,Ju=Math.min),Ju}var Qu,i0;function d2(){return i0||(i0=1,Qu=Math.pow),Qu}var ed,n0;function f2(){return n0||(n0=1,ed=Math.round),ed}var td,r0;function m2(){return r0||(r0=1,td=Number.isNaN||function(e){return e!==e}),td}var sd,o0;function p2(){if(o0)return sd;o0=1;var i=m2();return sd=function(t){return i(t)||t===0?t:t<0?-1:1},sd}var id,a0;function g2(){return a0||(a0=1,id=Object.getOwnPropertyDescriptor),id}var nd,l0;function Hx(){if(l0)return nd;l0=1;var i=g2();if(i)try{i([],"length")}catch{i=null}return nd=i,nd}var rd,c0;function Wx(){if(c0)return rd;c0=1;var i=Object.defineProperty||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}return rd=i,rd}var od,h0;function v2(){return h0||(h0=1,od=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),s=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var n=42;e[t]=n;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!==n||a.enumerable!==!0)return!1}return!0}),od}var ad,u0;function y2(){if(u0)return ad;u0=1;var i=typeof Symbol<"u"&&Symbol,e=v2();return ad=function(){return typeof i!="function"||typeof Symbol!="function"||typeof i("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ad}var ld,d0;function zx(){return d0||(d0=1,ld=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ld}var cd,f0;function qx(){if(f0)return cd;f0=1;var i=jx();return cd=i.getPrototypeOf||null,cd}var hd,m0;function x2(){if(m0)return hd;m0=1;var i="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,s="[object Function]",n=function(l,c){for(var h=[],u=0;u<l.length;u+=1)h[u]=l[u];for(var d=0;d<c.length;d+=1)h[d+l.length]=c[d];return h},r=function(l,c){for(var h=[],u=c,d=0;u<l.length;u+=1,d+=1)h[d]=l[u];return h},o=function(a,l){for(var c="",h=0;h<a.length;h+=1)c+=a[h],h+1<a.length&&(c+=l);return c};return hd=function(l){var c=this;if(typeof c!="function"||e.apply(c)!==s)throw new TypeError(i+c);for(var h=r(arguments,1),u,d=function(){if(this instanceof u){var v=c.apply(this,n(h,arguments));return Object(v)===v?v:this}return c.apply(l,n(h,arguments))},f=t(0,c.length-h.length),p=[],m=0;m<f;m++)p[m]="$"+m;if(u=Function("binder","return function ("+o(p,",")+"){ return binder.apply(this,arguments); }")(d),c.prototype){var g=function(){};g.prototype=c.prototype,u.prototype=new g,g.prototype=null}return u},hd}var ud,p0;function nu(){if(p0)return ud;p0=1;var i=x2();return ud=Function.prototype.bind||i,ud}var dd,g0;function lp(){return g0||(g0=1,dd=Function.prototype.call),dd}var fd,v0;function Kx(){return v0||(v0=1,fd=Function.p Line truncated
`," "],o=["{","}","|","\\","^","`"].concat(r),a=["'"].concat(o),l=["%","/","?",";","#"].concat(a),c=["/","?","#"],h=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+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=E2();function v(C,w,b){if(C&&typeof C=="object"&&C instanceof e)return C;var _=new e;return _.parse(C,w,b),_}e.prototype.parse=function(C,w,b){if(typeof C!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof C);var _=C.indexOf("?"),E=_!==-1&&_<C.indexOf("#")?"?":"#",F=C.split(E),I=/\\/g;F[0]=F[0].replace(I,"/"),C=F.join(E);var k=C;if(k=k.trim(),!b&&C.split("#").length===1){var B=n.exec(k);if(B)return this.path=k,this.href=k,this.pathname=B[1],B[2]?(this.search=B[2],w?this.query=g.parse(this.search.substr(1)):this.query=this.search.substr(1)):w&&(this.search="",this.query={}),this}var D=t.exec(k);if(D){D=D[0];var X=D.toLowerCase();this.protocol=X,k=k.substr(D.length)}if(b||D||k.match(/^\/\/[^@/]+@[^@/]+/)){var N=k.substr(0,2)==="//";N&&!(D&&p[D])&&(k=k.substr(2),this.slashes=!0)}if(!p[D]&&(N||D&&!m[D])){for(var U=-1,A=0;A<c.length;A++){var P=k.indexOf(c[A]);P!==-1&&(U===-1||P<U)&&(U=P)}var O,L;U===-1?L=k.lastIndexOf("@"):L=k.lastIndexOf("@",U),L!==-1&&(O=k.slice(0,L),k=k.slice(L+1),this.auth=decodeURIComponent(O)),U=-1;for(var A=0;A<l.length;A++){var P=k.indexOf(l[A]);P!==-1&&(U===-1||P<U)&&(U=P)}U===-1&&(U=k.length),this.host=k.slice(0,U),k=k.slice(U),this.parseHost(),this.hostname=this.hostname||"";var $=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!$)for(var V=this.hostname.split(/\./),A=0,j=V.length;A<j;A++){var K=V[A];if(K&&!K.match(u)){for(var ie="",re=0,pe=K.length;re<pe;re++)K.charCodeAt(re)>127?ie+="x":ie+=K[re];if(!ie.match(u)){var ge=V.slice(0,A),he=V.slice(A+1),fe=K.match(d);fe&&(ge.push(fe[1]),he.unshift(fe[2])),he.length&&(k="/"+he.join(".")+k),this.hostname=ge.join(".");break}}}this.hostname.length>h?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=i.toASCII(this.hostname));var Y=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+Y,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),k[0]!=="/"&&(k="/"+k))}if(!f[X])for(var A=0,j=a.length;A<j;A++){var H=a[A];if(k.indexOf(H)!==-1){var G=encodeURIComponent(H);G===H&&(G=escape(H)),k=k.split(H).join(G)}}var q=k.indexOf("#");q!==-1&&(this.hash=k.substr(q),k=k.slice(0,q));var se=k.indexOf("?");if(se!==-1?(this.search=k.substr(se),this.query=k.substr(se+1),w&&(this.query=g.parse(this.query)),k=k.slice(0,se)):w&&(this.search="",this.query={}),k&&(this.pathname=k),m[X]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Y=this.pathname||"",ue=this.search||"";this.path=Y+ue}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 w=this.protocol||"",b=this.pathname||"",_=this.hash||"",E=!1,F="";this.host?E=C+this.host:this.hostname&&(E=C+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(E+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(F=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var I=this.search||F&&"?"+F||"";return w&&w.substr(-1)!==":"&&(w+=":"),this.slashes||(!w||m[w])&&E!==!1?(E="//"+(E||""),b&&b.charAt(0)!=="/"&&(b="/"+b)):E||(E=""),_&&_.charAt(0)!=="#"&&(_="#"+_),I&&I.charAt(0)!=="?"&&(I="?"+I),b=b.replace(/[?#]/g,function(k){return encodeURIComponent(k)}),I=I.replace("#","%23"),w+E+b+I+_};function x(C,w){return v(C,!1,!0).resolve(w)}e.prototype.resolve=function(C){return this.resolveObject(v(C,!1,!0)).format()};function M(C,w){return C?v(C,!1,!0).resolveObject(w):w}return e.prototype.resolveObject=function(C){if(typeof C=="string"){var w=new e;w.parse(C,!1,!0),C=w}for(var b=new e,_=Object.keys(this),E=0;E<_.length;E++){var F=_[E];b[F]=this[F]}if(b.hash=C.hash,C.href==="")return b.href=b.format(),b;if(C.slashes&&!C.protocol){for(var I=Object.keys(C),k=0;k<I.length;k++){var B=I[k];B!=="protocol"&&(b[B]=C[B])}return m[b.protocol]&&b.hostname&&!b.pathname&&(b.pathname="/",b.path=b.pathname),b.href=b.format(),b}if(C.protocol&&C.protocol!==b.protocol){if(!m[C.protocol]){for(var D=Object.keys(C),X=0;X<D.length;X++){var N=D[X];b[N]=C[N]}return b.href=b.format(),b}if(b.protocol=C.protocol,!C.host&&!p[C.protocol]){for(var j=(C.pathname||"").split("/");j.length&&!(C.host=j.shift()););C.host||(C.host=""),C.hostname||(C.hostname=""),j[0]!==""&&j.unshift(""),j.length<2&&j.unshift(""),b.pathname=j.join("/")}else b.pathname=C.pathname;if(b.search=C.search,b.query=C.query,b.host=C.host||"",b.auth=C.auth,b.hostname=C.hostname||C.host,b.port=C.port,b.pathname||b.search){var U= Line truncated
Deprecated since v${i}`):(s=s.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${i}`),console.warn(s),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${e}
Deprecated since v${i}`),console.warn(s))),O0[e]=!0}function yi(i){if(typeof i!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(i)}`)}function Ra(i){return i.split("?")[0].split("#")[0]}function E_(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I_(i,e,t){return i.replace(new RegExp(E_(e),"g"),t)}function R_(i,e){let t="",s=0,n=-1,r=0,o=-1;for(let a=0;a<=i.length;++a){if(a<i.length)o=i.charCodeAt(a);else{if(o===47)break;o=47}if(o===47){if(!(n===a-1||r===1))if(n!==a-1&&r===2){if(t.length<2||s!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){const l=t.lastIndexOf("/");if(l!==t.length-1){l===-1?(t="",s=0):(t=t.slice(0,l),s=t.length-1-t.lastIndexOf("/")),n=a,r=0;continue}}else if(t.length===2||t.length===1){t="",s=0,n=a,r=0;continue}}}else t.length>0?t+=`/${i.slice(n+1,a)}`:t=i.slice(n+1,a),s=a-n-1;n=a,r=0}else o===46&&r!==-1?++r:r=-1}return t}const ts={toPosix(i){return I_(i,"\\","/")},isUrl(i){return/^https?:/.test(this.toPosix(i))},isDataUrl(i){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(i)},isBlobUrl(i){return i.startsWith("blob:")},hasProtocol(i){return/^[^/:]+:/.test(this.toPosix(i))},getProtocol(i){yi(i),i=this.toPosix(i);const e=/^file:\/\/\//.exec(i);if(e)return e[0];const t=/^[^/:]+:\/{0,2}/.exec(i);return t?t[0]:""},toAbsolute(i,e,t){if(yi(i),this.isDataUrl(i)||this.isBlobUrl(i))return i;const s=Ra(this.toPosix(e??Le.ADAPTER.getBaseUrl())),n=Ra(this.toPosix(t??this.rootname(s)));return i=this.toPosix(i),i.startsWith("/")?ts.join(n,i.slice(1)):this.isAbsolute(i)?i:this.join(s,i)},normalize(i){if(yi(i),i.length===0)return".";if(this.isDataUrl(i)||this.isBlobUrl(i))return i;i=this.toPosix(i);let e="";const t=i.startsWith("/");this.hasProtocol(i)&&(e=this.rootname(i),i=i.slice(e.length));const s=i.endsWith("/");return i=R_(i),i.length>0&&s&&(i+="/"),t?`/${i}`:e+i},isAbsolute(i){return yi(i),i=this.toPosix(i),this.hasProtocol(i)?!0:i.startsWith("/")},join(...i){if(i.length===0)return".";let e;for(let t=0;t<i.length;++t){const s=i[t];if(yi(s),s.length>0)if(e===void 0)e=s;else{const n=i[t-1]??"";this.joinExtensions.includes(this.extname(n).toLowerCase())?e+=`/../${s}`:e+=`/${s}`}}return e===void 0?".":this.normalize(e)},dirname(i){if(yi(i),i.length===0)return".";i=this.toPosix(i);let e=i.charCodeAt(0);const t=e===47;let s=-1,n=!0;const r=this.getProtocol(i),o=i;i=i.slice(r.length);for(let a=i.length-1;a>=1;--a)if(e=i.charCodeAt(a),e===47){if(!n){s=a;break}}else n=!1;return s===-1?t?"/":this.isUrl(o)?r+i:r:t&&s===1?"//":r+i.slice(0,s)},rootname(i){yi(i),i=this.toPosix(i);let e="";if(i.startsWith("/")?e="/":e=this.getProtocol(i),this.isUrl(i)){const t=i.indexOf("/",e.length);t!==-1?e=i.slice(0,t):e=i,e.endsWith("/")||(e+="/")}return e},basename(i,e){yi(i),e&&yi(e),i=Ra(this.toPosix(i));let t=0,s=-1,n=!0,r;if(e!==void 0&&e.length>0&&e.length<=i.length){if(e.length===i.length&&e===i)return"";let o=e.length-1,a=-1;for(r=i.length-1;r>=0;--r){const l=i.charCodeAt(r);if(l===47){if(!n){t=r+1;break}}else a===-1&&(n=!1,a=r+1),o>=0&&(l===e.charCodeAt(o)?--o===-1&&(s=r):(o=-1,s=a))}return t===s?s=a:s===-1&&(s=i.length),i.slice(t,s)}for(r=i.length-1;r>=0;--r)if(i.charCodeAt(r)===47){if(!n){t=r+1;break}}else s===-1&&(n=!1,s=r+1);return s===-1?"":i.slice(t,s)},extname(i){yi(i),i=Ra(this.toPosix(i));let e=-1,t=0,s=-1,n=!0,r=0;for(let o=i.length-1;o>=0;--o){const a=i.charCodeAt(o);if(a===47){if(!n){t=o+1;break}continue}s===-1&&(n=!1,s=o+1),a===46?e===-1?e=o:r!==1&&(r=1):e!==-1&&(r=-1)}return e===-1||s===-1||r===0||r===1&&e===s-1&&e===t+1?"":i.slice(e,s)},parse(i){yi(i);const e={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return e;i=Ra(this.toPosix(i));let t=i.charCodeAt(0);const s=this.isAbsolute(i);let n;e.root=this.rootname(i),s||this.hasProtocol(i)?n=1:n=0;let r=-1,o=0,a=-1,l=!0,c=i.length-1,h=0;for(;c>=n;--c){if(t=i.charCodeAt(c),t===47){if(!l){o=c+1;break}continue}a===-1&&(l=!1,a=c+1),t===46?r===-1?r=c:h!==1&&(h=1):r!==-1&&(h=-1)}return r===-1||a===-1||h===0||h===1&&r===a-1&&r===o+1?a!==-1&&(o===0&&s?e.base=e.name=i.slice(1,a):e.base=e.name=i.slice(o,a)):(o===0&&s?(e.name=i.slice(1,r),e.base=i.slice(1,a)):(e.name=i.slice(o,r),e.base=i.slice(o,a)),e.ext=i.slice(r,a)),e.dir=this.dirname(i),e},sep:"/",delimiter:":",joinExtensions:[".html"]};let Rd;async function P_(){return Rd??(Rd=(async()=>{var r;const i=document.createElement("canvas").getContext("webgl");if(!i)return xs.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 J_(i){let e="";for(let t=0;t<i;++t)t>0&&(e+=`
else `),t<i-1&&(e+=`if(test == ${t}.0){}`);return e}function Q_(i,e){if(i===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const t=e.createShader(e.FRAGMENT_SHADER);for(;;){const s=Z_.replace(/%forloop%/gi,J_(i));if(e.shaderSource(t,s),e.compileShader(t),!e.getShaderParameter(t,e.COMPILE_STATUS))i=i/2|0;else break}return i}const Ld=0,Bd=1,Nd=2,Dd=3,Ud=4,$d=5;class un{constructor(){this.data=0,this.blendMode=He.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<Ld)}set blend(e){!!(this.data&1<<Ld)!==e&&(this.data^=1<<Ld)}get offsets(){return!!(this.data&1<<Bd)}set offsets(e){!!(this.data&1<<Bd)!==e&&(this.data^=1<<Bd)}get culling(){return!!(this.data&1<<Nd)}set culling(e){!!(this.data&1<<Nd)!==e&&(this.data^=1<<Nd)}get depthTest(){return!!(this.data&1<<Dd)}set depthTest(e){!!(this.data&1<<Dd)!==e&&(this.data^=1<<Dd)}get depthMask(){return!!(this.data&1<<$d)}set depthMask(e){!!(this.data&1<<$d)!==e&&(this.data^=1<<$d)}get clockwiseFrontFace(){return!!(this.data&1<<Ud)}set clockwiseFrontFace(e){!!(this.data&1<<Ud)!==e&&(this.data^=1<<Ud)}get blendMode(){return this._blendMode}set blendMode(e){this.blend=e!==He.NONE,this._blendMode=e}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}static for2d(){const e=new un;return e.depthTest=!1,e.blend=!0,e}}un.prototype.toString=function(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`};const Nf=[];function ob(i,e){if(!i)return null;let t="";if(typeof i=="string"){const s=/\.(\w{3,4})(?:$|\?|#)/i.exec(i);s&&(t=s[1].toLowerCase())}for(let s=Nf.length-1;s>=0;--s){const n=Nf[s];if(n.test&&n.test(i,t))return new n(i,e)}throw new Error("Unrecognized source type to auto-detect Resource")}class Ri{constructor(e){this.items=[],this._name=e,this._aliasCount=0}emit(e,t,s,n,r,o,a,l){if(arguments.length>8)throw new Error("max arguments reached");const{name:c,items:h}=this;this._aliasCount++;for(let u=0,d=h.length;u<d;u++)h[u][c](e,t,s,n,r,o,a,l);return h===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(Ri.prototype,{dispatch:{value:Ri.prototype.emit},run:{value:Ri.prototype.emit}});class vl{constructor(e=0,t=0){this._width=e,this._height=t,this.destroyed=!1,this.internal=!1,this.onResize=new Ri("setRealSize"),this.onUpdate=new Ri("update"),this.onError=new Ri("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,s){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 ru extends vl{constructor(e,t){const{width:s,height:n}=t||{};if(!s||!n)throw new Error("BufferResource width or height invalid");super(s,n),this.data=e,this.unpackAlignment=t.unpackAlignment??4}upload(e,t,s){const n=e.gl;n.pixelStorei(n.UNPACK_ALIGNMENT,this.unpackAlignment),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===xs.UNPACK);const r=t.realWidth,o=t.realHeight;return s.width===r&&s.height===o?n.texSubImage2D(t.target,0,0,0,r,o,t.format,s.type,this.data):(s.width=r,s.height=o,n.texImage2D(t.target,0,s.internalFormat,r,o,0,t.format,s.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 eC={scaleMode:Ci.NEAREST,alphaMode:xs.NPM},Df=class Lo extends El{constructor(e=null,t=null){super(),t=Object.assign({},Lo.defaultOptions,t);const{alphaMode:s,mipmap:n,anisotropicLevel:r,scaleMode:o,width:a,height:l,wrapMode:c,format:h,type:u,target:d,resolution: Line truncated
Deprecated since v${i}`),console.warn(s))),L0[e]=!0}function yi(i){if(typeof i!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(i)}`)}function Ra(i){return i.split("?")[0].split("#")[0]}function R2(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function P2(i,e,t){return i.replace(new RegExp(R2(e),"g"),t)}function k2(i,e){let t="",s=0,n=-1,r=0,o=-1;for(let a=0;a<=i.length;++a){if(a<i.length)o=i.charCodeAt(a);else{if(o===47)break;o=47}if(o===47){if(!(n===a-1||r===1))if(n!==a-1&&r===2){if(t.length<2||s!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){const l=t.lastIndexOf("/");if(l!==t.length-1){l===-1?(t="",s=0):(t=t.slice(0,l),s=t.length-1-t.lastIndexOf("/")),n=a,r=0;continue}}else if(t.length===2||t.length===1){t="",s=0,n=a,r=0;continue}}}else t.length>0?t+=`/${i.slice(n+1,a)}`:t=i.slice(n+1,a),s=a-n-1;n=a,r=0}else o===46&&r!==-1?++r:r=-1}return t}const ts={toPosix(i){return P2(i,"\\","/")},isUrl(i){return/^https?:/.test(this.toPosix(i))},isDataUrl(i){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(i)},isBlobUrl(i){return i.startsWith("blob:")},hasProtocol(i){return/^[^/:]+:/.test(this.toPosix(i))},getProtocol(i){yi(i),i=this.toPosix(i);const e=/^file:\/\/\//.exec(i);if(e)return e[0];const t=/^[^/:]+:\/{0,2}/.exec(i);return t?t[0]:""},toAbsolute(i,e,t){if(yi(i),this.isDataUrl(i)||this.isBlobUrl(i))return i;const s=Ra(this.toPosix(e??Le.ADAPTER.getBaseUrl())),n=Ra(this.toPosix(t??this.rootname(s)));return i=this.toPosix(i),i.startsWith("/")?ts.join(n,i.slice(1)):this.isAbsolute(i)?i:this.join(s,i)},normalize(i){if(yi(i),i.length===0)return".";if(this.isDataUrl(i)||this.isBlobUrl(i))return i;i=this.toPosix(i);let e="";const t=i.startsWith("/");this.hasProtocol(i)&&(e=this.rootname(i),i=i.slice(e.length));const s=i.endsWith("/");return i=k2(i),i.length>0&&s&&(i+="/"),t?`/${i}`:e+i},isAbsolute(i){return yi(i),i=this.toPosix(i),this.hasProtocol(i)?!0:i.startsWith("/")},join(...i){if(i.length===0)return".";let e;for(let t=0;t<i.length;++t){const s=i[t];if(yi(s),s.length>0)if(e===void 0)e=s;else{const n=i[t-1]??"";this.joinExtensions.includes(this.extname(n).toLowerCase())?e+=`/../${s}`:e+=`/${s}`}}return e===void 0?".":this.normalize(e)},dirname(i){if(yi(i),i.length===0)return".";i=this.toPosix(i);let e=i.charCodeAt(0);const t=e===47;let s=-1,n=!0;const r=this.getProtocol(i),o=i;i=i.slice(r.length);for(let a=i.length-1;a>=1;--a)if(e=i.charCodeAt(a),e===47){if(!n){s=a;break}}else n=!1;return s===-1?t?"/":this.isUrl(o)?r+i:r:t&&s===1?"//":r+i.slice(0,s)},rootname(i){yi(i),i=this.toPosix(i);let e="";if(i.startsWith("/")?e="/":e=this.getProtocol(i),this.isUrl(i)){const t=i.indexOf("/",e.length);t!==-1?e=i.slice(0,t):e=i,e.endsWith("/")||(e+="/")}return e},basename(i,e){yi(i),e&&yi(e),i=Ra(this.toPosix(i));let t=0,s=-1,n=!0,r;if(e!==void 0&&e.length>0&&e.length<=i.length){if(e.length===i.length&&e===i)return"";let o=e.length-1,a=-1;for(r=i.length-1;r>=0;--r){const l=i.charCodeAt(r);if(l===47){if(!n){t=r+1;break}}else a===-1&&(n=!1,a=r+1),o>=0&&(l===e.charCodeAt(o)?--o===-1&&(s=r):(o=-1,s=a))}return t===s?s=a:s===-1&&(s=i.length),i.slice(t,s)}for(r=i.length-1;r>=0;--r)if(i.charCodeAt(r)===47){if(!n){t=r+1;break}}else s===-1&&(n=!1,s=r+1);return s===-1?"":i.slice(t,s)},extname(i){yi(i),i=Ra(this.toPosix(i));let e=-1,t=0,s=-1,n=!0,r=0;for(let o=i.length-1;o>=0;--o){const a=i.charCodeAt(o);if(a===47){if(!n){t=o+1;break}continue}s===-1&&(n=!1,s=o+1),a===46?e===-1?e=o:r!==1&&(r=1):e!==-1&&(r=-1)}return e===-1||s===-1||r===0||r===1&&e===s-1&&e===t+1?"":i.slice(e,s)},parse(i){yi(i);const e={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return e;i=Ra(this.toPosix(i));let t=i.charCodeAt(0);const s=this.isAbsolute(i);let n;e.root=this.rootname(i),s||this.hasProtocol(i)?n=1:n=0;let r=-1,o=0,a=-1,l=!0,c=i.length-1,h=0;for(;c>=n;--c){if(t=i.charCodeAt(c),t===47){if(!l){o=c+1;break}continue}a===-1&&(l=!1,a=c+1),t===46?r===-1?r=c:h!==1&&(h=1):r!==-1&&(h=-1)}return r===-1||a===-1||h===0||h===1&&r===a-1&&r===o+1?a!==-1&&(o===0&&s?e.base=e.name=i.slice(1,a):e.base=e.name=i.slice(o,a)):(o===0&&s?(e.name=i.slice(1,r),e.base=i.slice(1,a)):(e.name=i.slice(o,r),e.base=i.slice(o,a)),e.ext=i.slice(r,a)),e.dir=this.dirname(i),e},sep:"/",delimiter:":",joinExtensions:[".html"]};let Rd;async function F2(){return Rd??(Rd=(async()=>{var r;const i=document.createElement("canvas").getContext("webgl");if(!i)return bs.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 eC(i){let e="";for(let t=0;t<i;++t)t>0&&(e+=`
else `),t<i-1&&(e+=`if(test == ${t}.0){}`);return e}function tC(i,e){if(i===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const t=e.createShader(e.FRAGMENT_SHADER);for(;;){const s=Q2.replace(/%forloop%/gi,eC(i));if(e.shaderSource(t,s),e.compileShader(t),!e.getShaderParameter(t,e.COMPILE_STATUS))i=i/2|0;else break}return i}const Ld=0,Bd=1,Nd=2,Dd=3,Ud=4,$d=5;class un{constructor(){this.data=0,this.blendMode=He.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<Ld)}set blend(e){!!(this.data&1<<Ld)!==e&&(this.data^=1<<Ld)}get offsets(){return!!(this.data&1<<Bd)}set offsets(e){!!(this.data&1<<Bd)!==e&&(this.data^=1<<Bd)}get culling(){return!!(this.data&1<<Nd)}set culling(e){!!(this.data&1<<Nd)!==e&&(this.data^=1<<Nd)}get depthTest(){return!!(this.data&1<<Dd)}set depthTest(e){!!(this.data&1<<Dd)!==e&&(this.data^=1<<Dd)}get depthMask(){return!!(this.data&1<<$d)}set depthMask(e){!!(this.data&1<<$d)!==e&&(this.data^=1<<$d)}get clockwiseFrontFace(){return!!(this.data&1<<Ud)}set clockwiseFrontFace(e){!!(this.data&1<<Ud)!==e&&(this.data^=1<<Ud)}get blendMode(){return this._blendMode}set blendMode(e){this.blend=e!==He.NONE,this._blendMode=e}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}static for2d(){const e=new un;return e.depthTest=!1,e.blend=!0,e}}un.prototype.toString=function(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`};const Df=[];function lb(i,e){if(!i)return null;let t="";if(typeof i=="string"){const s=/\.(\w{3,4})(?:$|\?|#)/i.exec(i);s&&(t=s[1].toLowerCase())}for(let s=Df.length-1;s>=0;--s){const n=Df[s];if(n.test&&n.test(i,t))return new n(i,e)}throw new Error("Unrecognized source type to auto-detect Resource")}class Ri{constructor(e){this.items=[],this._name=e,this._aliasCount=0}emit(e,t,s,n,r,o,a,l){if(arguments.length>8)throw new Error("max arguments reached");const{name:c,items:h}=this;this._aliasCount++;for(let u=0,d=h.length;u<d;u++)h[u][c](e,t,s,n,r,o,a,l);return h===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(Ri.prototype,{dispatch:{value:Ri.prototype.emit},run:{value:Ri.prototype.emit}});class vl{constructor(e=0,t=0){this._width=e,this._height=t,this.destroyed=!1,this.internal=!1,this.onResize=new Ri("setRealSize"),this.onUpdate=new Ri("update"),this.onError=new Ri("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,s){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 ru extends vl{constructor(e,t){const{width:s,height:n}=t||{};if(!s||!n)throw new Error("BufferResource width or height invalid");super(s,n),this.data=e,this.unpackAlignment=t.unpackAlignment??4}upload(e,t,s){const n=e.gl;n.pixelStorei(n.UNPACK_ALIGNMENT,this.unpackAlignment),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.alphaMode===bs.UNPACK);const r=t.realWidth,o=t.realHeight;return s.width===r&&s.height===o?n.texSubImage2D(t.target,0,0,0,r,o,t.format,s.type,this.data):(s.width=r,s.height=o,n.texImage2D(t.target,0,s.internalFormat,r,o,0,t.format,s.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 sC={scaleMode:Ci.NEAREST,alphaMode:bs.NPM},Uf=class Lo extends El{constructor(e=null,t=null){super(),t=Object.assign({},Lo.defaultOptions,t);const{alphaMode:s,mipmap:n,anisotropicLevel:r,scaleMode:o,width:a,height:l,wrapMode:c,format:h,type:u,target:d,resolution: Line truncated
uniform sampler2D uSampler;
void main(void){
gl_FragColor *= texture2D(uSampler, vTextureCoord);
}`,hC=`attribute vec2 aVertexPosition;
}`,dC=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
@@ -48,7 +48,7 @@ void main(void){
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}
`;function K0(i,e,t){const s=i.createShader(e);return i.shaderSource(s,t),i.compileShader(s),s}function Xd(i){const e=new Array(i);for(let t=0;t<e.length;t++)e[t]=!1;return e}function cb(i,e){switch(i){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"uvec2":return new Uint32Array(2*e);case"uvec3":return new Uint32Array(3*e);case"uvec4":return new Uint32Array(4*e);case"bool":return!1;case"bvec2":return Xd(2*e);case"bvec3":return Xd(3*e);case"bvec4":return Xd(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}const Zo=[{test:i=>i.type==="float"&&i.size===1&&!i.isArray,code:i=>`
`;function Z0(i,e,t){const s=i.createShader(e);return i.shaderSource(s,t),i.compileShader(s),s}function Xd(i){const e=new Array(i);for(let t=0;t<e.length;t++)e[t]=!1;return e}function ub(i,e){switch(i){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"uvec2":return new Uint32Array(2*e);case"uvec3":return new Uint32Array(3*e);case"uvec4":return new Uint32Array(4*e);case"bool":return!1;case"bvec2":return Xd(2*e);case"bvec3":return Xd(3*e);case"bvec4":return Xd(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}const Zo=[{test:i=>i.type==="float"&&i.size===1&&!i.isArray,code:i=>`
if(uv["${i}"] !== ud["${i}"].value)
{
ud["${i}"].value = uv["${i}"]
@@ -168,7 +168,7 @@ void main(void){
cv[3] = v[3];
gl.uniform4f(ud["${i}"].location, v[0], v[1], v[2], v[3])
}`}],uC={float:`
}`}],fC={float:`
if (cv !== v)
{
cu.value = v;
@@ -304,7 +304,7 @@ void main(void){
cu.value = v;
gl.uniform1i(location, v);
}`},dC={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function fC(i,e){var s;const t=[`
}`},mC={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function pC(i,e){var s;const t=[`
var v = null;
var cv = null;
var cu = null;
@@ -314,18 +314,18 @@ void main(void){
renderer.shader.syncUniformBufferGroup(uv.${n}, '${n}');
`):t.push(`
renderer.shader.syncUniformGroup(uv.${n}, syncData);
`));continue}const o=i.uniforms[n];let a=!1;for(let l=0;l<Zo.length;l++)if(Zo[l].test(r,o)){t.push(Zo[l].code(n,o)),a=!0;break}if(!a){const l=(r.size===1&&!r.isArray?uC:dC)[r.type].replace("location",`ud["${n}"].location`);t.push(`
`));continue}const o=i.uniforms[n];let a=!1;for(let l=0;l<Zo.length;l++)if(Zo[l].test(r,o)){t.push(Zo[l].code(n,o)),a=!0;break}if(!a){const l=(r.size===1&&!r.isArray?fC:mC)[r.type].replace("location",`ud["${n}"].location`);t.push(`
cu = ud["${n}"];
cv = cu.value;
v = uv["${n}"];
${l};`)}}return new Function("ud","uv","renderer","syncData",t.join(`
`))}const hb={};let Co=hb;function mC(){if(Co===hb||Co!=null&&Co.isContextLost()){const i=Le.ADAPTER.createCanvas();let e;Le.PREFER_ENV>=go.WEBGL2&&(e=i.getContext("webgl2",{})),e||(e=i.getContext("webgl",{})||i.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),Co=e}return Co}let Kl;function pC(){if(!Kl){Kl=fi.MEDIUM;const i=mC();if(i&&i.getShaderPrecisionFormat){const e=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);e&&(Kl=e.precision?fi.HIGH:fi.MEDIUM)}}return Kl}function Z0(i,e){const t=i.getShaderSource(e).split(`
`))}const db={};let Co=db;function gC(){if(Co===db||Co!=null&&Co.isContextLost()){const i=Le.ADAPTER.createCanvas();let e;Le.PREFER_ENV>=go.WEBGL2&&(e=i.getContext("webgl2",{})),e||(e=i.getContext("webgl",{})||i.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),Co=e}return Co}let Kl;function vC(){if(!Kl){Kl=fi.MEDIUM;const i=gC();if(i&&i.getShaderPrecisionFormat){const e=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);e&&(Kl=e.precision?fi.HIGH:fi.MEDIUM)}}return Kl}function J0(i,e){const t=i.getShaderSource(e).split(`
`).map((c,h)=>`${h}: ${c}`),s=i.getShaderInfoLog(e),n=s.split(`
`),r={},o=n.map(c=>parseFloat(c.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))).filter(c=>c&&!r[c]?(r[c]=!0,!0):!1),a=[""];o.forEach(c=>{t[c-1]=`%c${t[c-1]}%c`,a.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});const l=t.join(`
`);a[0]=l,console.error(s),console.groupCollapsed("click to view full shader code"),console.warn(...a),console.groupEnd()}function gC(i,e,t,s){i.getProgramParameter(e,i.LINK_STATUS)||(i.getShaderParameter(t,i.COMPILE_STATUS)||Z0(i,t),i.getShaderParameter(s,i.COMPILE_STATUS)||Z0(i,s),console.error("PixiJS Error: Could not initialize shader."),i.getProgramInfoLog(e)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",i.getProgramInfoLog(e)))}const vC={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function ub(i){return vC[i]}let Zl=null;const J0={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function db(i,e){if(!Zl){const t=Object.keys(J0);Zl={};for(let s=0;s<t.length;++s){const n=t[s];Zl[i[n]]=J0[n]}}return Zl[e]}function Q0(i,e,t){if(i.substring(0,9)!=="precision"){let s=e;return e===fi.HIGH&&t!==fi.HIGH&&(s=fi.MEDIUM),`precision ${s} float;
${i}`}else if(t!==fi.HIGH&&i.substring(0,15)==="precision highp")return i.replace("precision highp","precision mediump");return i}let Pa;function yC(){if(typeof Pa=="boolean")return Pa;try{Pa=new Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")===!0}catch{Pa=!1}return Pa}let xC=0;const Jl={},Vf=class Bo{constructor(e,t,s="pixi-shader",n={}){this.extra={},this.id=xC++,this.vertexSrc=e||Bo.defaultVertexSrc,this.fragmentSrc=t||Bo.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.extra=n,this.vertexSrc.substring(0,8)!=="#version"&&(s=s.replace(/\s+/g,"-"),Jl[s]?(Jl[s]++,s+=`-${Jl[s]}`):Jl[s]=1,this.vertexSrc=`#define SHADER_NAME ${s}
`);a[0]=l,console.error(s),console.groupCollapsed("click to view full shader code"),console.warn(...a),console.groupEnd()}function yC(i,e,t,s){i.getProgramParameter(e,i.LINK_STATUS)||(i.getShaderParameter(t,i.COMPILE_STATUS)||J0(i,t),i.getShaderParameter(s,i.COMPILE_STATUS)||J0(i,s),console.error("PixiJS Error: Could not initialize shader."),i.getProgramInfoLog(e)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",i.getProgramInfoLog(e)))}const xC={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function fb(i){return xC[i]}let Zl=null;const Q0={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function mb(i,e){if(!Zl){const t=Object.keys(Q0);Zl={};for(let s=0;s<t.length;++s){const n=t[s];Zl[i[n]]=Q0[n]}}return Zl[e]}function ev(i,e,t){if(i.substring(0,9)!=="precision"){let s=e;return e===fi.HIGH&&t!==fi.HIGH&&(s=fi.MEDIUM),`precision ${s} float;
${i}`}else if(t!==fi.HIGH&&i.substring(0,15)==="precision highp")return i.replace("precision highp","precision mediump");return i}let Pa;function bC(){if(typeof Pa=="boolean")return Pa;try{Pa=new Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")===!0}catch{Pa=!1}return Pa}let wC=0;const Jl={},Yf=class Bo{constructor(e,t,s="pixi-shader",n={}){this.extra={},this.id=wC++,this.vertexSrc=e||Bo.defaultVertexSrc,this.fragmentSrc=t||Bo.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.extra=n,this.vertexSrc.substring(0,8)!=="#version"&&(s=s.replace(/\s+/g,"-"),Jl[s]?(Jl[s]++,s+=`-${Jl[s]}`):Jl[s]=1,this.vertexSrc=`#define SHADER_NAME ${s}
${this.vertexSrc}`,this.fragmentSrc=`#define SHADER_NAME ${s}
${this.fragmentSrc}`,this.vertexSrc=Q0(this.vertexSrc,Bo.defaultVertexPrecision,fi.HIGH),this.fragmentSrc=Q0(this.fragmentSrc,Bo.defaultFragmentPrecision,pC())),this.glPrograms={},this.syncUniforms=null}static get defaultVertexSrc(){return hC}static get defaultFragmentSrc(){return cC}static from(e,t,s){const n=e+t;let r=j0[n];return r||(j0[n]=r=new Bo(e,t,s)),r}};Vf.defaultVertexPrecision=fi.HIGH,Vf.defaultFragmentPrecision=In.apple.device?fi.HIGH:fi.MEDIUM;let nn=Vf,bC=0;class Pi{constructor(e,t,s){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=bC++,this.static=!!t,this.ubo=!!s,e instanceof Ut?(this.buffer=e,this.buffer.type=an.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=e,this.ubo&&(this.buffer=new Ut(new Float32Array(1)),this.buffer.type=an.UNIFORM_BUFFER,this.autoManage=!0))}update(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()}add(e,t,s){if(!this.ubo)this.uniforms[e]=new Pi(t,s);else throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them")}static from(e,t,s){return new Pi(e,t,s)}static uboFrom(e,t){return new Pi(e,t??!0,!0)}}class ki{constructor(e,t){this.uniformBindCount=0,this.program=e,t?t instanceof Pi?this.uniformGroup=t:this.uniformGroup=new Pi(t):this.uniformGroup=new Pi({}),this.disposeRunner=new Ri("disposeShader")}checkUniformExists(e,t){if(t.uniforms[e])return!0;for(const s in t.uniforms){const n=t.uniforms[s];if(n.group===!0&&this.checkUniformExists(e,n))return!0}return!1}destroy(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()}get uniforms(){return this.uniformGroup.uniforms}static from(e,t,s){const n=nn.from(e,t);return new ki(n,s)}}class fb{constructor(e,t){if(this.vertexSrc=e,this.fragTemplate=t,this.programCache={},this.defaultGroupCache={},!t.includes("%count%"))throw new Error('Fragment template must contain "%count%".');if(!t.includes("%forloop%"))throw new Error('Fragment template must contain "%forloop%".')}generateShader(e){if(!this.programCache[e]){const s=new Int32Array(e);for(let r=0;r<e;r++)s[r]=r;this.defaultGroupCache[e]=Pi.from({uSamplers:s},!0);let n=this.fragTemplate;n=n.replace(/%count%/gi,`${e}`),n=n.replace(/%forloop%/gi,this.generateSampleSrc(e)),this.programCache[e]=new nn(this.vertexSrc,n)}const t={tint:new Float32Array([1,1,1,1]),translationMatrix:new Ot,default:this.defaultGroupCache[e]};return new ki(this.programCache[e],t)}generateSampleSrc(e){let t="";t+=`
${this.fragmentSrc}`,this.vertexSrc=ev(this.vertexSrc,Bo.defaultVertexPrecision,fi.HIGH),this.fragmentSrc=ev(this.fragmentSrc,Bo.defaultFragmentPrecision,vC())),this.glPrograms={},this.syncUniforms=null}static get defaultVertexSrc(){return dC}static get defaultFragmentSrc(){return uC}static from(e,t,s){const n=e+t;let r=H0[n];return r||(H0[n]=r=new Bo(e,t,s)),r}};Yf.defaultVertexPrecision=fi.HIGH,Yf.defaultFragmentPrecision=In.apple.device?fi.HIGH:fi.MEDIUM;let nn=Yf,SC=0;class Pi{constructor(e,t,s){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=SC++,this.static=!!t,this.ubo=!!s,e instanceof Ut?(this.buffer=e,this.buffer.type=an.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=e,this.ubo&&(this.buffer=new Ut(new Float32Array(1)),this.buffer.type=an.UNIFORM_BUFFER,this.autoManage=!0))}update(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()}add(e,t,s){if(!this.ubo)this.uniforms[e]=new Pi(t,s);else throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them")}static from(e,t,s){return new Pi(e,t,s)}static uboFrom(e,t){return new Pi(e,t??!0,!0)}}class ki{constructor(e,t){this.uniformBindCount=0,this.program=e,t?t instanceof Pi?this.uniformGroup=t:this.uniformGroup=new Pi(t):this.uniformGroup=new Pi({}),this.disposeRunner=new Ri("disposeShader")}checkUniformExists(e,t){if(t.uniforms[e])return!0;for(const s in t.uniforms){const n=t.uniforms[s];if(n.group===!0&&this.checkUniformExists(e,n))return!0}return!1}destroy(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()}get uniforms(){return this.uniformGroup.uniforms}static from(e,t,s){const n=nn.from(e,t);return new ki(n,s)}}class pb{constructor(e,t){if(this.vertexSrc=e,this.fragTemplate=t,this.programCache={},this.defaultGroupCache={},!t.includes("%count%"))throw new Error('Fragment template must contain "%count%".');if(!t.includes("%forloop%"))throw new Error('Fragment template must contain "%forloop%".')}generateShader(e){if(!this.programCache[e]){const s=new Int32Array(e);for(let r=0;r<e;r++)s[r]=r;this.defaultGroupCache[e]=Pi.from({uSamplers:s},!0);let n=this.fragTemplate;n=n.replace(/%count%/gi,`${e}`),n=n.replace(/%forloop%/gi,this.generateSampleSrc(e)),this.programCache[e]=new nn(this.vertexSrc,n)}const t={tint:new Float32Array([1,1,1,1]),translationMatrix:new Ot,default:this.defaultGroupCache[e]};return new ki(this.programCache[e],t)}generateSampleSrc(e){let t="";t+=`
`,t+=`
`;for(let s=0;s<e;s++)s>0&&(t+=`
else `),s<e-1&&(t+=`if(vTextureId < ${s}.5)`),t+=`
@@ -333,7 +333,7 @@ else `),s<e-1&&(t+=`if(vTextureId < ${s}.5)`),t+=`
color = texture2D(uSamplers[${s}], vTextureCoord);`,t+=`
}`;return t+=`
`,t+=`
`,t}}class Yf{constructor(){this.elements=[],this.ids=[],this.count=0}clear(){for(let e=0;e<this.count;e++)this.elements[e]=null;this.count=0}}function wC(){return!In.apple.device}function SC(i){let e=!0;const t=Le.ADAPTER.getNavigator();if(In.tablet||In.phone){if(In.apple.device){const s=t.userAgent.match(/OS (\d+)_(\d+)?/);s&&parseInt(s[1],10)<11&&(e=!1)}if(In.android.device){const s=t.userAgent.match(/Android\s([0-9.]*)/);s&&parseInt(s[1],10)<7&&(e=!1)}}return e?i:4}class cu{constructor(e){this.renderer=e}flush(){}destroy(){this.renderer=null}start(){}stop(){this.flush()}render(e){}}var MC=`varying vec2 vTextureCoord;
`,t}}class Gf{constructor(){this.elements=[],this.ids=[],this.count=0}clear(){for(let e=0;e<this.count;e++)this.elements[e]=null;this.count=0}}function MC(){return!In.apple.device}function TC(i){let e=!0;const t=Le.ADAPTER.getNavigator();if(In.tablet||In.phone){if(In.apple.device){const s=t.userAgent.match(/OS (\d+)_(\d+)?/);s&&parseInt(s[1],10)<11&&(e=!1)}if(In.android.device){const s=t.userAgent.match(/Android\s([0-9.]*)/);s&&parseInt(s[1],10)<7&&(e=!1)}}return e?i:4}class cu{constructor(e){this.renderer=e}flush(){}destroy(){this.renderer=null}start(){}stop(){this.flush()}render(e){}}var _C=`varying vec2 vTextureCoord;
varying vec4 vColor;
varying float vTextureId;
uniform sampler2D uSamplers[%count%];
@@ -343,7 +343,7 @@ void main(void){
%forloop%
gl_FragColor = color * vColor;
}
`,TC=`precision highp float;
`,CC=`precision highp float;
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
attribute vec4 aColor;
@@ -364,14 +364,14 @@ void main(void){
vTextureId = aTextureId;
vColor = aColor * tint;
}
`;const $a=class wi extends cu{constructor(e){super(e),this.setShaderGenerator(),this.geometryClass=ab,this.vertexSize=6,this.state=un.for2d(),this.size=wi.defaultBatchSize*4,this._vertexCount=0,this._indexCount=0,this._bufferedElements=[],this._bufferedTextures=[],this._bufferSize=0,this._shader=null,this._packedGeometries=[],this._packedGeometryPoolSize=2,this._flushId=0,this._aBuffers={},this._iBuffers={},this.maxTextures=1,this.renderer.on("prerender",this.onPrerender,this),e.runners.contextChange.add(this),this._dcIndex=0,this._aIndex=0,this._iIndex=0,this._attributeBuffer=null,this._indexBuffer=null,this._tempBoundTextures=[]}static get defaultMaxTextures(){return this._defaultMaxTextures=this._defaultMaxTextures??SC(32),this._defaultMaxTextures}static set defaultMaxTextures(e){this._defaultMaxTextures=e}static get canUploadSameBuffer(){return this._canUploadSameBuffer=this._canUploadSameBuffer??wC(),this._canUploadSameBuffer}static set canUploadSameBuffer(e){this._canUploadSameBuffer=e}get MAX_TEXTURES(){return ht("7.1.0","BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"),this.maxTextures}static get defaultVertexSrc(){return TC}static get defaultFragmentTemplate(){return MC}setShaderGenerator({vertex:e=wi.defaultVertexSrc,fragment:t=wi.defaultFragmentTemplate}={}){this.shaderGenerator=new fb(e,t)}contextChange(){const e=this.renderer.gl;Le.PREFER_ENV===go.WEBGL_LEGACY?this.maxTextures=1:(this.maxTextures=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),wi.defaultMaxTextures),this.maxTextures=Q_(this.maxTextures,e)),this._shader=this.shaderGenerator.generateShader(this.maxTextures);for(let t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]=new this.geometryClass;this.initFlushBuffers()}initFlushBuffers(){const{_drawCallPool:e,_textureArrayPool:t}=wi,s=this.size/4,n=Math.floor(s/this.maxTextures)+1;for(;e.length<s;)e.push(new Uf);for(;t.length<n;)t.push(new Yf);for(let r=0;r<this.maxTextures;r++)this._tempBoundTextures[r]=null}onPrerender(){this._flushId=0}render(e){e._texture.valid&&(this._vertexCount+e.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:t}=this,s=wi._textureArrayPool,n=this.renderer.batch,r=this._tempBoundTextures,o=this.renderer.textureGC.count;let a=++Qe._globalBatch,l=0,c=s[0],h=0;n.copyBoundTextures(r,t);for(let u=0;u<this._bufferSize;++u){const d=e[u];e[u]=null,d._batchEnabled!==a&&(c.count>=t&&(n.boundArray(c,r,a,t),this.buildDrawCalls(c,h,u),h=u,c=s[++l],++a),d._batchEnabled=a,d.touched=o,c.elements[c.count++]=d)}c.count>0&&(n.boundArray(c,r,a,t),this.buildDrawCalls(c,h,this._bufferSize),++l,++a);for(let u=0;u<r.length;u++)r[u]=null;Qe._globalBatch=a}buildDrawCalls(e,t,s){const{_bufferedElements:n,_attributeBuffer:r,_indexBuffer:o,vertexSize:a}=this,l=wi._drawCallPool;let c=this._dcIndex,h=this._aIndex,u=this._iIndex,d=l[c];d.start=this._iIndex,d.texArray=e;for(let f=t;f<s;++f){const p=n[f],m=p._texture.baseTexture,g=ib[m.alphaMode?1:0][p.blendMode];n[f]=null,t<f&&d.blend!==g&&(d.size=u-d.start,t=f,d=l[++c],d.texArray=e,d.start=u),this.packInterleavedGeometry(p,r,o,h,u),h+=p.vertexData.length/2*a,u+=p.indices.length,d.blend=g}t<s&&(d.size=u-d.start,++c),this._dcIndex=c,this._aIndex=h,this._iIndex=u}bindAndClearTexArray(e){const t=this.renderer.texture;for(let s=0;s<e.count;s++)t.bind(e.elements[s],e.ids[s]),e.elements[s]=null;e.count=0}updateGeometry(){const{_packedGeometries:e,_attributeBuffer:t,_indexBuffer:s}=this;wi.canUploadSameBuffer?(e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(s),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,e[this._flushId]=new this.geometryClass),e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(s),this.renderer.geometry.bind(e[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)}drawBatches(){const e=this._dcIndex,{gl:t,state:s}=this.renderer,n=wi._drawCallPool;let r=null;for(let o=0;o<e;o++){const{texArray:a,type:l,size:c,start:h,blend:u}=n[o];r!==a&&(r=a,this.bindAndClearTexArray(a)),this.state.blendMode=u,s.set(this.state),t.drawElements(l,c,t.UNSIGNED_SHORT,h*2)}}flush(){this._vertexCount!==0&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)}start(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.maxTextures),this.renderer.shader.bind(this._shader),wi.canUploadSameBuffer&&this.renderer.geometry.bind(this._packedGeometries[this._f Line truncated
`;const $a=class wi extends cu{constructor(e){super(e),this.setShaderGenerator(),this.geometryClass=cb,this.vertexSize=6,this.state=un.for2d(),this.size=wi.defaultBatchSize*4,this._vertexCount=0,this._indexCount=0,this._bufferedElements=[],this._bufferedTextures=[],this._bufferSize=0,this._shader=null,this._packedGeometries=[],this._packedGeometryPoolSize=2,this._flushId=0,this._aBuffers={},this._iBuffers={},this.maxTextures=1,this.renderer.on("prerender",this.onPrerender,this),e.runners.contextChange.add(this),this._dcIndex=0,this._aIndex=0,this._iIndex=0,this._attributeBuffer=null,this._indexBuffer=null,this._tempBoundTextures=[]}static get defaultMaxTextures(){return this._defaultMaxTextures=this._defaultMaxTextures??TC(32),this._defaultMaxTextures}static set defaultMaxTextures(e){this._defaultMaxTextures=e}static get canUploadSameBuffer(){return this._canUploadSameBuffer=this._canUploadSameBuffer??MC(),this._canUploadSameBuffer}static set canUploadSameBuffer(e){this._canUploadSameBuffer=e}get MAX_TEXTURES(){return ht("7.1.0","BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"),this.maxTextures}static get defaultVertexSrc(){return CC}static get defaultFragmentTemplate(){return _C}setShaderGenerator({vertex:e=wi.defaultVertexSrc,fragment:t=wi.defaultFragmentTemplate}={}){this.shaderGenerator=new pb(e,t)}contextChange(){const e=this.renderer.gl;Le.PREFER_ENV===go.WEBGL_LEGACY?this.maxTextures=1:(this.maxTextures=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),wi.defaultMaxTextures),this.maxTextures=tC(this.maxTextures,e)),this._shader=this.shaderGenerator.generateShader(this.maxTextures);for(let t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]=new this.geometryClass;this.initFlushBuffers()}initFlushBuffers(){const{_drawCallPool:e,_textureArrayPool:t}=wi,s=this.size/4,n=Math.floor(s/this.maxTextures)+1;for(;e.length<s;)e.push(new $f);for(;t.length<n;)t.push(new Gf);for(let r=0;r<this.maxTextures;r++)this._tempBoundTextures[r]=null}onPrerender(){this._flushId=0}render(e){e._texture.valid&&(this._vertexCount+e.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:t}=this,s=wi._textureArrayPool,n=this.renderer.batch,r=this._tempBoundTextures,o=this.renderer.textureGC.count;let a=++Qe._globalBatch,l=0,c=s[0],h=0;n.copyBoundTextures(r,t);for(let u=0;u<this._bufferSize;++u){const d=e[u];e[u]=null,d._batchEnabled!==a&&(c.count>=t&&(n.boundArray(c,r,a,t),this.buildDrawCalls(c,h,u),h=u,c=s[++l],++a),d._batchEnabled=a,d.touched=o,c.elements[c.count++]=d)}c.count>0&&(n.boundArray(c,r,a,t),this.buildDrawCalls(c,h,this._bufferSize),++l,++a);for(let u=0;u<r.length;u++)r[u]=null;Qe._globalBatch=a}buildDrawCalls(e,t,s){const{_bufferedElements:n,_attributeBuffer:r,_indexBuffer:o,vertexSize:a}=this,l=wi._drawCallPool;let c=this._dcIndex,h=this._aIndex,u=this._iIndex,d=l[c];d.start=this._iIndex,d.texArray=e;for(let f=t;f<s;++f){const p=n[f],m=p._texture.baseTexture,g=rb[m.alphaMode?1:0][p.blendMode];n[f]=null,t<f&&d.blend!==g&&(d.size=u-d.start,t=f,d=l[++c],d.texArray=e,d.start=u),this.packInterleavedGeometry(p,r,o,h,u),h+=p.vertexData.length/2*a,u+=p.indices.length,d.blend=g}t<s&&(d.size=u-d.start,++c),this._dcIndex=c,this._aIndex=h,this._iIndex=u}bindAndClearTexArray(e){const t=this.renderer.texture;for(let s=0;s<e.count;s++)t.bind(e.elements[s],e.ids[s]),e.elements[s]=null;e.count=0}updateGeometry(){const{_packedGeometries:e,_attributeBuffer:t,_indexBuffer:s}=this;wi.canUploadSameBuffer?(e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(s),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,e[this._flushId]=new this.geometryClass),e[this._flushId]._buffer.update(t.rawBinaryData),e[this._flushId]._indexBuffer.update(s),this.renderer.geometry.bind(e[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)}drawBatches(){const e=this._dcIndex,{gl:t,state:s}=this.renderer,n=wi._drawCallPool;let r=null;for(let o=0;o<e;o++){const{texArray:a,type:l,size:c,start:h,blend:u}=n[o];r!==a&&(r=a,this.bindAndClearTexArray(a)),this.state.blendMode=u,s.set(this.state),t.drawElements(l,c,t.UNSIGNED_SHORT,h*2)}}flush(){this._vertexCount!==0&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)}start(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.maxTextures),this.renderer.shader.bind(this._shader),wi.canUploadSameBuffer&&this.renderer.geometry.bind(this._packedGeometries[this._f Line truncated
uniform sampler2D uSampler;
void main(void){
gl_FragColor = texture2D(uSampler, vTextureCoord);
}
`,CC=`attribute vec2 aVertexPosition;
`,EC=`attribute vec2 aVertexPosition;
uniform mat3 projectionMatrix;
@@ -397,7 +397,7 @@ void main(void)
gl_Position = filterVertexPosition();
vTextureCoord = filterTextureCoord();
}
`;const Gf=class Xa extends ki{constructor(e,t,s){const n=nn.from(e||Xa.defaultVertexSrc,t||Xa.defaultFragmentSrc);super(n,s),this.padding=0,this.resolution=Xa.defaultResolution,this.multisample=Xa.defaultMultisample,this.enabled=!0,this.autoFit=!0,this.state=new un}apply(e,t,s,n,r){e.applyFilter(this,t,s,n)}get blendMode(){return this.state.blendMode}set blendMode(e){this.state.blendMode=e}get resolution(){return this._resolution}set resolution(e){this._resolution=e}static get defaultVertexSrc(){return CC}static get defaultFragmentSrc(){return _C}};Gf.defaultResolution=1,Gf.defaultMultisample=ls.NONE;let Ys=Gf;class ih{constructor(){this.clearBeforeRender=!0,this._backgroundColor=new Et(0),this.alpha=1}init(e){this.clearBeforeRender=e.clearBeforeRender;const{backgroundColor:t,background:s,backgroundAlpha:n}=e,r=s??t;r!==void 0&&(this.color=r),this.alpha=n}get color(){return this._backgroundColor.value}set color(e){this._backgroundColor.setValue(e)}get alpha(){return this._backgroundColor.alpha}set alpha(e){this._backgroundColor.setAlpha(e)}get backgroundColor(){return this._backgroundColor}destroy(){}}ih.defaultOptions={backgroundAlpha:1,backgroundColor:0,clearBeforeRender:!0},ih.extension={type:[ke.RendererSystem,ke.CanvasRendererSystem],name:"background"};Xe.add(ih);class mb{constructor(e){this.renderer=e,this.emptyRenderer=new cu(e),this.currentRenderer=this.emptyRenderer}setObjectRenderer(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())}flush(){this.setObjectRenderer(this.emptyRenderer)}reset(){this.setObjectRenderer(this.emptyRenderer)}copyBoundTextures(e,t){const{boundTextures:s}=this.renderer.texture;for(let n=t-1;n>=0;--n)e[n]=s[n]||null,e[n]&&(e[n]._batchLocation=n)}boundArray(e,t,s,n){const{elements:r,ids:o,count:a}=e;let l=0;for(let c=0;c<a;c++){const h=r[c],u=h._batchLocation;if(u>=0&&u<n&&t[u]===h){o[c]=u;continue}for(;l<n;){const d=t[l];if(d&&d._batchEnabled===s&&d._batchLocation===l){l++;continue}o[c]=l,h._batchLocation=l,t[l]=h;break}}}destroy(){this.renderer=null}}mb.extension={type:ke.RendererSystem,name:"batch"};Xe.add(mb);let ev=0;class nh{constructor(e){this.renderer=e,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this)}get isLost(){return!this.gl||this.gl.isContextLost()}contextChange(e){this.gl=e,this.renderer.gl=e,this.renderer.CONTEXT_UID=ev++}init(e){if(e.context)this.initFromContext(e.context);else{const t=this.renderer.background.alpha<1,s=e.premultipliedAlpha;this.preserveDrawingBuffer=e.preserveDrawingBuffer,this.useContextAlpha=e.useContextAlpha,this.powerPreference=e.powerPreference,this.initFromOptions({alpha:t,premultipliedAlpha:s,antialias:e.antialias,stencil:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,powerPreference:e.powerPreference})}}initFromContext(e){this.gl=e,this.validateContext(e),this.renderer.gl=e,this.renderer.CONTEXT_UID=ev++,this.renderer.runners.contextChange.emit(e);const t=this.renderer.view;t.addEventListener!==void 0&&(t.addEventListener("webglcontextlost",this.handleContextLost,!1),t.addEventListener("webglcontextrestored",this.handleContextRestored,!1))}initFromOptions(e){const t=this.createContext(this.renderer.view,e);this.initFromContext(t)}createContext(e,t){let s;if(Le.PREFER_ENV>=go.WEBGL2&&(s=e.getContext("webgl2",t)),s)this.webGLVersion=2;else if(this.webGLVersion=1,s=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!s)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=s,this.getExtensions(),this.gl}getExtensions(){const{gl:e}=this,t={loseContext:e.getExtension("WEBGL_lose_context"),anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc"),bptc:e.getExtension("EXT_texture_compression_bptc")};this.webGLVersion===1?Object.assign(this.extensions,t,{drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_ha Line truncated
`;const jf=class Xa extends ki{constructor(e,t,s){const n=nn.from(e||Xa.defaultVertexSrc,t||Xa.defaultFragmentSrc);super(n,s),this.padding=0,this.resolution=Xa.defaultResolution,this.multisample=Xa.defaultMultisample,this.enabled=!0,this.autoFit=!0,this.state=new un}apply(e,t,s,n,r){e.applyFilter(this,t,s,n)}get blendMode(){return this.state.blendMode}set blendMode(e){this.state.blendMode=e}get resolution(){return this._resolution}set resolution(e){this._resolution=e}static get defaultVertexSrc(){return EC}static get defaultFragmentSrc(){return AC}};jf.defaultResolution=1,jf.defaultMultisample=ls.NONE;let Ys=jf;class ih{constructor(){this.clearBeforeRender=!0,this._backgroundColor=new Et(0),this.alpha=1}init(e){this.clearBeforeRender=e.clearBeforeRender;const{backgroundColor:t,background:s,backgroundAlpha:n}=e,r=s??t;r!==void 0&&(this.color=r),this.alpha=n}get color(){return this._backgroundColor.value}set color(e){this._backgroundColor.setValue(e)}get alpha(){return this._backgroundColor.alpha}set alpha(e){this._backgroundColor.setAlpha(e)}get backgroundColor(){return this._backgroundColor}destroy(){}}ih.defaultOptions={backgroundAlpha:1,backgroundColor:0,clearBeforeRender:!0},ih.extension={type:[ke.RendererSystem,ke.CanvasRendererSystem],name:"background"};Xe.add(ih);class gb{constructor(e){this.renderer=e,this.emptyRenderer=new cu(e),this.currentRenderer=this.emptyRenderer}setObjectRenderer(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())}flush(){this.setObjectRenderer(this.emptyRenderer)}reset(){this.setObjectRenderer(this.emptyRenderer)}copyBoundTextures(e,t){const{boundTextures:s}=this.renderer.texture;for(let n=t-1;n>=0;--n)e[n]=s[n]||null,e[n]&&(e[n]._batchLocation=n)}boundArray(e,t,s,n){const{elements:r,ids:o,count:a}=e;let l=0;for(let c=0;c<a;c++){const h=r[c],u=h._batchLocation;if(u>=0&&u<n&&t[u]===h){o[c]=u;continue}for(;l<n;){const d=t[l];if(d&&d._batchEnabled===s&&d._batchLocation===l){l++;continue}o[c]=l,h._batchLocation=l,t[l]=h;break}}}destroy(){this.renderer=null}}gb.extension={type:ke.RendererSystem,name:"batch"};Xe.add(gb);let tv=0;class nh{constructor(e){this.renderer=e,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this)}get isLost(){return!this.gl||this.gl.isContextLost()}contextChange(e){this.gl=e,this.renderer.gl=e,this.renderer.CONTEXT_UID=tv++}init(e){if(e.context)this.initFromContext(e.context);else{const t=this.renderer.background.alpha<1,s=e.premultipliedAlpha;this.preserveDrawingBuffer=e.preserveDrawingBuffer,this.useContextAlpha=e.useContextAlpha,this.powerPreference=e.powerPreference,this.initFromOptions({alpha:t,premultipliedAlpha:s,antialias:e.antialias,stencil:!0,preserveDrawingBuffer:e.preserveDrawingBuffer,powerPreference:e.powerPreference})}}initFromContext(e){this.gl=e,this.validateContext(e),this.renderer.gl=e,this.renderer.CONTEXT_UID=tv++,this.renderer.runners.contextChange.emit(e);const t=this.renderer.view;t.addEventListener!==void 0&&(t.addEventListener("webglcontextlost",this.handleContextLost,!1),t.addEventListener("webglcontextrestored",this.handleContextRestored,!1))}initFromOptions(e){const t=this.createContext(this.renderer.view,e);this.initFromContext(t)}createContext(e,t){let s;if(Le.PREFER_ENV>=go.WEBGL2&&(s=e.getContext("webgl2",t)),s)this.webGLVersion=2;else if(this.webGLVersion=1,s=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!s)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=s,this.getExtensions(),this.gl}getExtensions(){const{gl:e}=this,t={loseContext:e.getExtension("WEBGL_lose_context"),anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc"),bptc:e.getExtension("EXT_texture_compression_bptc")};this.webGLVersion===1?Object.assign(this.extensions,t,{drawBuffers:e.getExtension("WEBGL_draw_buffers"),depthTexture:e.getExtension("WEBGL_depth_texture"),vertexArrayObject:e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:e.getExtension("OES_element_index_uint"),floatTexture:e.getExtension("OES_texture_float"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),textureHalfFloat:e.getExtension("OES_texture_half_float"),textureHalfFloatLinear:e.getExtension("OES_texture_ha Line truncated
varying vec2 vTextureCoord;
uniform sampler2D uSampler;
@@ -422,7 +422,7 @@ void main(void)
gl_FragColor = original;
}
`,kC=`attribute vec2 aVertexPosition;
`,OC=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
@@ -438,7 +438,7 @@ void main(void)
vTextureCoord = aTextureCoord;
vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;
}
`;class FC extends Ys{constructor(e,t,s){let n=null;typeof e!="string"&&t===void 0&&s===void 0&&(n=e,e=void 0,t=void 0,s=void 0),super(e||kC,t||PC,s),this.maskSprite=n,this.maskMatrix=new Ot}get maskSprite(){return this._maskSprite}set maskSprite(e){this._maskSprite=e,this._maskSprite&&(this._maskSprite.renderable=!1)}apply(e,t,s,n){const r=this._maskSprite,o=r._texture;o.valid&&(o.uvMatrix||(o.uvMatrix=new dp(o,0)),o.uvMatrix.update(),this.uniforms.npmAlpha=o.baseTexture.alphaMode?0:1,this.uniforms.mask=o,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,r).prepend(o.uvMatrix.mapCoord),this.uniforms.alpha=r.worldAlpha,this.uniforms.maskClamp=o.uvMatrix.uClampFrame,e.applyFilter(this,t,s,n))}}class OC{constructor(e=null){this.type=hs.NONE,this.autoDetect=!0,this.maskObject=e||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=Ys.defaultMultisample,this.enabled=!0,this.colorMask=15,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._colorMask=15,this._target=null}get filter(){return this._filters?this._filters[0]:null}set filter(e){e?this._filters?this._filters[0]=e:this._filters=[e]:this._filters=null}reset(){this.pooled&&(this.maskObject=null,this.type=hs.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null}copyCountersOrReset(e){e?(this._stencilCounter=e._stencilCounter,this._scissorCounter=e._scissorCounter,this._scissorRect=e._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)}}class Sb{constructor(e){this.renderer=e,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}setMaskStack(e){this.maskStack=e,this.renderer.scissor.setMaskStack(e),this.renderer.stencil.setMaskStack(e)}push(e,t){let s=t;if(!s.isMaskData){const r=this.maskDataPool.pop()||new OC;r.pooled=!0,r.maskObject=t,s=r}const n=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(s.copyCountersOrReset(n),s._colorMask=n?n._colorMask:15,s.autoDetect&&this.detect(s),s._target=e,s.type!==hs.SPRITE&&this.maskStack.push(s),s.enabled)switch(s.type){case hs.SCISSOR:this.renderer.scissor.push(s);break;case hs.STENCIL:this.renderer.stencil.push(s);break;case hs.SPRITE:s.copyCountersOrReset(null),this.pushSpriteMask(s);break;case hs.COLOR:this.pushColorMask(s);break}s.type===hs.SPRITE&&this.maskStack.push(s)}pop(e){const t=this.maskStack.pop();if(!(!t||t._target!==e)){if(t.enabled)switch(t.type){case hs.SCISSOR:this.renderer.scissor.pop(t);break;case hs.STENCIL:this.renderer.stencil.pop(t.maskObject);break;case hs.SPRITE:this.popSpriteMask(t);break;case hs.COLOR:this.popColorMask(t);break}if(t.reset(),t.pooled&&this.maskDataPool.push(t),this.maskStack.length!==0){const s=this.maskStack[this.maskStack.length-1];s.type===hs.SPRITE&&s._filters&&(s._filters[0].maskSprite=s.maskObject)}}}detect(e){const t=e.maskObject;t?t.isSprite?e.type=hs.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(e)?e.type=hs.SCISSOR:e.type=hs.STENCIL:e.type=hs.COLOR}pushSpriteMask(e){const{maskObject:t}=e,s=e._target;let n=e._filters;n||(n=this.alphaMaskPool[this.alphaMaskIndex],n||(n=this.alphaMaskPool[this.alphaMaskIndex]=[new FC])),n[0].resolution=e.resolution,n[0].multisample=e.multisample,n[0].maskSprite=t;const r=s.filterArea;s.filterArea=t.getBounds(!0),this.renderer.filter.push(s,n),s.filterArea=r,e._filters||this.alphaMaskIndex++}popSpriteMask(e){this.renderer.filter.pop(),e._filters?e._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)}pushColorMask(e){const t=e._colorMask,s=e._colorMask=t&e.colorMask;s!==t&&this.renderer.gl.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)}popColorMask(e){const t=e._colorMask,s=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;s!==t&&this.renderer.gl.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)}destroy(){this.renderer=null}}Sb.extension={type:ke.RendererSystem,name:"mask"};Xe.add(Sb);class Mb{constructor(e){this.renderer=e,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(e){const{gl:t}=this.renderer,s=this.getStackLength();this.maskStack=e;const n=this.getStackLength();n!==s&&(n===0?t.disable(this.glConst):(t.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const iv=new Ot,nv=[],Tb=class Ec extends Mb{constructor(e){super(e),this.glConst=Le.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0}calcScissorRect(e){if(e._scissorRectLocal)return;const t=e._scissorRect,{maskObject:s}=e,{renderer:n}=this,r=n.renderTexture,o=s.getBounds(!0,nv.pop()??new ot);this.roundFrameToPixels(o,r.current?r.current.resolution:n.resolution,r.sourceFrame,r.destinationFrame,n.projection.transform),t&&o.fit(t),e._scissorRectLocal=o}static Line truncated
`;class LC extends Ys{constructor(e,t,s){let n=null;typeof e!="string"&&t===void 0&&s===void 0&&(n=e,e=void 0,t=void 0,s=void 0),super(e||OC,t||FC,s),this.maskSprite=n,this.maskMatrix=new Ot}get maskSprite(){return this._maskSprite}set maskSprite(e){this._maskSprite=e,this._maskSprite&&(this._maskSprite.renderable=!1)}apply(e,t,s,n){const r=this._maskSprite,o=r._texture;o.valid&&(o.uvMatrix||(o.uvMatrix=new fp(o,0)),o.uvMatrix.update(),this.uniforms.npmAlpha=o.baseTexture.alphaMode?0:1,this.uniforms.mask=o,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,r).prepend(o.uvMatrix.mapCoord),this.uniforms.alpha=r.worldAlpha,this.uniforms.maskClamp=o.uvMatrix.uClampFrame,e.applyFilter(this,t,s,n))}}class BC{constructor(e=null){this.type=us.NONE,this.autoDetect=!0,this.maskObject=e||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=Ys.defaultMultisample,this.enabled=!0,this.colorMask=15,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._colorMask=15,this._target=null}get filter(){return this._filters?this._filters[0]:null}set filter(e){e?this._filters?this._filters[0]=e:this._filters=[e]:this._filters=null}reset(){this.pooled&&(this.maskObject=null,this.type=us.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null}copyCountersOrReset(e){e?(this._stencilCounter=e._stencilCounter,this._scissorCounter=e._scissorCounter,this._scissorRect=e._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)}}class Tb{constructor(e){this.renderer=e,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}setMaskStack(e){this.maskStack=e,this.renderer.scissor.setMaskStack(e),this.renderer.stencil.setMaskStack(e)}push(e,t){let s=t;if(!s.isMaskData){const r=this.maskDataPool.pop()||new BC;r.pooled=!0,r.maskObject=t,s=r}const n=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(s.copyCountersOrReset(n),s._colorMask=n?n._colorMask:15,s.autoDetect&&this.detect(s),s._target=e,s.type!==us.SPRITE&&this.maskStack.push(s),s.enabled)switch(s.type){case us.SCISSOR:this.renderer.scissor.push(s);break;case us.STENCIL:this.renderer.stencil.push(s);break;case us.SPRITE:s.copyCountersOrReset(null),this.pushSpriteMask(s);break;case us.COLOR:this.pushColorMask(s);break}s.type===us.SPRITE&&this.maskStack.push(s)}pop(e){const t=this.maskStack.pop();if(!(!t||t._target!==e)){if(t.enabled)switch(t.type){case us.SCISSOR:this.renderer.scissor.pop(t);break;case us.STENCIL:this.renderer.stencil.pop(t.maskObject);break;case us.SPRITE:this.popSpriteMask(t);break;case us.COLOR:this.popColorMask(t);break}if(t.reset(),t.pooled&&this.maskDataPool.push(t),this.maskStack.length!==0){const s=this.maskStack[this.maskStack.length-1];s.type===us.SPRITE&&s._filters&&(s._filters[0].maskSprite=s.maskObject)}}}detect(e){const t=e.maskObject;t?t.isSprite?e.type=us.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(e)?e.type=us.SCISSOR:e.type=us.STENCIL:e.type=us.COLOR}pushSpriteMask(e){const{maskObject:t}=e,s=e._target;let n=e._filters;n||(n=this.alphaMaskPool[this.alphaMaskIndex],n||(n=this.alphaMaskPool[this.alphaMaskIndex]=[new LC])),n[0].resolution=e.resolution,n[0].multisample=e.multisample,n[0].maskSprite=t;const r=s.filterArea;s.filterArea=t.getBounds(!0),this.renderer.filter.push(s,n),s.filterArea=r,e._filters||this.alphaMaskIndex++}popSpriteMask(e){this.renderer.filter.pop(),e._filters?e._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)}pushColorMask(e){const t=e._colorMask,s=e._colorMask=t&e.colorMask;s!==t&&this.renderer.gl.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)}popColorMask(e){const t=e._colorMask,s=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;s!==t&&this.renderer.gl.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)}destroy(){this.renderer=null}}Tb.extension={type:ke.RendererSystem,name:"mask"};Xe.add(Tb);class _b{constructor(e){this.renderer=e,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(e){const{gl:t}=this.renderer,s=this.getStackLength();this.maskStack=e;const n=this.getStackLength();n!==s&&(n===0?t.disable(this.glConst):(t.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const nv=new Ot,rv=[],Cb=class Ec extends _b{constructor(e){super(e),this.glConst=Le.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0}calcScissorRect(e){if(e._scissorRectLocal)return;const t=e._scissorRect,{maskObject:s}=e,{renderer:n}=this,r=n.renderTexture,o=s.getBounds(!0,rv.pop()??new ot);this.roundFrameToPixels(o,r.current?r.current.resolution:n.resolution,r.sourceFrame,r.destinationFrame,n.projection.transform),t&&o.fit(t),e._scissorRectLocal=o}static Line truncated
data[offset] = v;
`,vec2:`
data[offset] = v[0];
@@ -476,7 +476,7 @@ void main(void)
{
data[offset + i] = v[i];
}
`},Rb={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:32,mat3:48,mat4:64};function YC(i){const e=i.map(r=>({data:r,offset:0,dataLen:0,dirty:0}));let t=0,s=0,n=0;for(let r=0;r<e.length;r++){const o=e[r];if(t=Rb[o.data.type],o.data.size>1&&(t=Math.max(t,16)*o.data.size),o.dataLen=t,s%t!==0&&s<16){const a=s%t%16;s+=a,n+=a}s+t>16?(n=Math.ceil(n/16)*16,o.offset=n,n+=t,s=t):(o.offset=n,s+=t,n+=t)}return n=Math.ceil(n/16)*16,{uboElements:e,size:n}}function GC(i,e){const t=[];for(const s in i)e[s]&&t.push(e[s]);return t.sort((s,n)=>s.index-n.index),t}function jC(i,e){if(!i.autoManage)return{size:0,syncFunc:XC};const t=GC(i.uniforms,e),{uboElements:s,size:n}=YC(t),r=[`
`},kb={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:32,mat3:48,mat4:64};function jC(i){const e=i.map(r=>({data:r,offset:0,dataLen:0,dirty:0}));let t=0,s=0,n=0;for(let r=0;r<e.length;r++){const o=e[r];if(t=kb[o.data.type],o.data.size>1&&(t=Math.max(t,16)*o.data.size),o.dataLen=t,s%t!==0&&s<16){const a=s%t%16;s+=a,n+=a}s+t>16?(n=Math.ceil(n/16)*16,o.offset=n,n+=t,s=t):(o.offset=n,s+=t,n+=t)}return n=Math.ceil(n/16)*16,{uboElements:e,size:n}}function HC(i,e){const t=[];for(const s in i)e[s]&&t.push(e[s]);return t.sort((s,n)=>s.index-n.index),t}function WC(i,e){if(!i.autoManage)return{size:0,syncFunc:YC};const t=HC(i.uniforms,e),{uboElements:s,size:n}=jC(t),r=[`
var v = null;
var v2 = null;
var cv = null;
@@ -484,7 +484,7 @@ void main(void)
var gl = renderer.gl
var index = 0;
var data = buffer.data;
`];for(let o=0;o<s.length;o++){const a=s[o],l=i.uniforms[a.data.name],c=a.data.name;let h=!1;for(let u=0;u<Zo.length;u++){const d=Zo[u];if(d.codeUbo&&d.test(a.data,l)){r.push(`offset = ${a.offset/4};`,Zo[u].codeUbo(a.data.name,l)),h=!0;break}}if(!h)if(a.data.size>1){const u=ub(a.data.type),d=Math.max(Rb[a.data.type]/16,1),f=u/d,p=(4-f%4)%4;r.push(`
`];for(let o=0;o<s.length;o++){const a=s[o],l=i.uniforms[a.data.name],c=a.data.name;let h=!1;for(let u=0;u<Zo.length;u++){const d=Zo[u];if(d.codeUbo&&d.test(a.data,l)){r.push(`offset = ${a.offset/4};`,Zo[u].codeUbo(a.data.name,l)),h=!0;break}}if(!h)if(a.data.size>1){const u=fb(a.data.type),d=Math.max(kb[a.data.type]/16,1),f=u/d,p=(4-f%4)%4;r.push(`
cv = ud.${c}.value;
v = uv.${c};
offset = ${a.offset/4};
@@ -500,7 +500,7 @@ void main(void)
offset += ${p};
}
`)}else{const u=VC[a.data.type];r.push(`
`)}else{const u=GC[a.data.type];r.push(`
cv = ud.${c}.value;
v = uv.${c};
offset = ${a.offset/4};
@@ -508,7 +508,7 @@ void main(void)
`)}}return r.push(`
renderer.buffer.update(buffer);
`),{size:n,syncFunc:new Function("ud","uv","renderer","syncData","buffer",r.join(`
`))}}let HC=0;const tc={textureCount:0,uboCount:0};class Pb{constructor(e){this.destroyed=!1,this.renderer=e,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=HC++}systemCheck(){if(!yC())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(e){this.gl=e,this.reset()}bind(e,t){e.disposeRunner.add(this),e.uniforms.globals=this.renderer.globalUniforms;const s=e.program,n=s.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(e);return this.shader=e,this.program!==s&&(this.program=s,this.gl.useProgram(n.program)),t||(tc.textureCount=0,tc.uboCount=0,this.syncUniformGroup(e.uniformGroup,tc)),n}setUniforms(e){const t=this.shader.program,s=t.glPrograms[this.renderer.CONTEXT_UID];t.syncUniforms(s.uniformData,e,this.renderer)}syncUniformGroup(e,t){const s=this.getGlProgram();(!e.static||e.dirtyId!==s.uniformDirtyGroups[e.id])&&(s.uniformDirtyGroups[e.id]=e.dirtyId,this.syncUniforms(e,s,t))}syncUniforms(e,t,s){(e.syncUniforms[this.shader.program.id]||this.createSyncGroups(e))(t.uniformData,e.uniforms,this.renderer,s)}createSyncGroups(e){const t=this.getSignature(e,this.shader.program.uniformData,"u");return this.cache[t]||(this.cache[t]=fC(e,this.shader.program.uniformData)),e.syncUniforms[this.shader.program.id]=this.cache[t],e.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(e,t){const s=this.getGlProgram();if(!e.static||e.dirtyId!==0||!s.uniformGroups[e.id]){e.dirtyId=0;const n=s.uniformGroups[e.id]||this.createSyncBufferGroup(e,s,t);e.buffer.update(),n(s.uniformData,e.uniforms,this.renderer,tc,e.buffer)}this.renderer.buffer.bindBufferBase(e.buffer,s.uniformBufferBindings[t])}createSyncBufferGroup(e,t,s){const{gl:n}=this.renderer;this.renderer.buffer.bind(e.buffer);const r=this.gl.getUniformBlockIndex(t.program,s);t.uniformBufferBindings[s]=this.shader.uniformBindCount,n.uniformBlockBinding(t.program,r,this.shader.uniformBindCount),this.shader.uniformBindCount++;const o=this.getSignature(e,this.shader.program.uniformData,"ubo");let a=this._uboCache[o];if(a||(a=this._uboCache[o]=jC(e,this.shader.program.uniformData)),e.autoManage){const l=new Float32Array(a.size/4);e.buffer.update(l)}return t.uniformGroups[e.id]=a.syncFunc,t.uniformGroups[e.id]}getSignature(e,t,s){const n=e.uniforms,r=[`${s}-`];for(const o in n)r.push(o),t[o]&&r.push(t[o].type);return r.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(e){const t=this.gl,s=e.program,n=$C(t,s);return s.glPrograms[this.renderer.CONTEXT_UID]=n,n}reset(){this.program=null,this.shader=null}disposeShader(e){this.shader===e&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}Pb.extension={type:ke.RendererSystem,name:"shader"};Xe.add(Pb);class rh{constructor(e){this.renderer=e}run(e){const{renderer:t}=this;t.runners.init.emit(t.options),e.hello&&console.log(`PixiJS 7.4.3 - ${t.rendererLogId} - https://pixijs.com`),t.resize(t.screen.width,t.screen.height)}destroy(){}}rh.defaultOptions={hello:!1},rh.extension={type:[ke.RendererSystem,ke.CanvasRendererSystem],name:"startup"};Xe.add(rh);function WC(i,e=[]){return e[He.NORMAL]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.ADD]=[i.ONE,i.ONE],e[He.MULTIPLY]=[i.DST_COLOR,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.SCREEN]=[i.ONE,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.OVERLAY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.DARKEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.LIGHTEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.COLOR_DODGE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.COLOR_BURN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.HARD_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.SOFT_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.DIFFERENCE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.EXCLUSION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.HUE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.SATURATION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.COLOR]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.LUMINOSITY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.NONE]=[0,0],e[He.NORMAL_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.ADD_NPM]=[i.SRC_ALPHA,i.ONE,i.ONE,i.ONE],e[He.SCREEN_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.SRC_IN]=[i.DST_ALPHA,i.ZERO],e[He.SRC_OUT]=[i.ONE_MINUS_DST_ALPHA,i.ZERO],e[He.SRC_ATOP]=[i.DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],e[He.DST_OVER]=[i.ONE_MINUS_DST_ALPHA,i.ONE],e[He.DST_IN]=[i.ZERO,i.SRC_ALPHA],e[He.DST_OUT]=[i.ZERO,i.ONE_MINUS_SRC_ALPHA],e[He.DST_ATOP]=[i.ONE_MINUS_DST_ALPHA,i.SRC_ALPHA],e[He.XOR]=[i.ONE_MINUS_DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],e[He.SUBTRACT]=[i.ONE,i.ONE,i.ONE,i.ONE,i.FUNC_REVERSE_SUBTRACT,i.FUNC_ADD],e}const zC=0,qC=1,KC=2,ZC=3,JC=4,QC=5,kb=class Hf{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=He.NONE,this._blendEq=!1,this.map=[],this.map[zC]=this.setBlend,this.map[qC]=this.setOffset,this.map[KC]=this.setCullFace,this.map[ZC]=this.setDepthTest,this.ma Line truncated
`))}}let zC=0;const tc={textureCount:0,uboCount:0};class Fb{constructor(e){this.destroyed=!1,this.renderer=e,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=zC++}systemCheck(){if(!bC())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(e){this.gl=e,this.reset()}bind(e,t){e.disposeRunner.add(this),e.uniforms.globals=this.renderer.globalUniforms;const s=e.program,n=s.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(e);return this.shader=e,this.program!==s&&(this.program=s,this.gl.useProgram(n.program)),t||(tc.textureCount=0,tc.uboCount=0,this.syncUniformGroup(e.uniformGroup,tc)),n}setUniforms(e){const t=this.shader.program,s=t.glPrograms[this.renderer.CONTEXT_UID];t.syncUniforms(s.uniformData,e,this.renderer)}syncUniformGroup(e,t){const s=this.getGlProgram();(!e.static||e.dirtyId!==s.uniformDirtyGroups[e.id])&&(s.uniformDirtyGroups[e.id]=e.dirtyId,this.syncUniforms(e,s,t))}syncUniforms(e,t,s){(e.syncUniforms[this.shader.program.id]||this.createSyncGroups(e))(t.uniformData,e.uniforms,this.renderer,s)}createSyncGroups(e){const t=this.getSignature(e,this.shader.program.uniformData,"u");return this.cache[t]||(this.cache[t]=pC(e,this.shader.program.uniformData)),e.syncUniforms[this.shader.program.id]=this.cache[t],e.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(e,t){const s=this.getGlProgram();if(!e.static||e.dirtyId!==0||!s.uniformGroups[e.id]){e.dirtyId=0;const n=s.uniformGroups[e.id]||this.createSyncBufferGroup(e,s,t);e.buffer.update(),n(s.uniformData,e.uniforms,this.renderer,tc,e.buffer)}this.renderer.buffer.bindBufferBase(e.buffer,s.uniformBufferBindings[t])}createSyncBufferGroup(e,t,s){const{gl:n}=this.renderer;this.renderer.buffer.bind(e.buffer);const r=this.gl.getUniformBlockIndex(t.program,s);t.uniformBufferBindings[s]=this.shader.uniformBindCount,n.uniformBlockBinding(t.program,r,this.shader.uniformBindCount),this.shader.uniformBindCount++;const o=this.getSignature(e,this.shader.program.uniformData,"ubo");let a=this._uboCache[o];if(a||(a=this._uboCache[o]=WC(e,this.shader.program.uniformData)),e.autoManage){const l=new Float32Array(a.size/4);e.buffer.update(l)}return t.uniformGroups[e.id]=a.syncFunc,t.uniformGroups[e.id]}getSignature(e,t,s){const n=e.uniforms,r=[`${s}-`];for(const o in n)r.push(o),t[o]&&r.push(t[o].type);return r.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(e){const t=this.gl,s=e.program,n=VC(t,s);return s.glPrograms[this.renderer.CONTEXT_UID]=n,n}reset(){this.program=null,this.shader=null}disposeShader(e){this.shader===e&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}Fb.extension={type:ke.RendererSystem,name:"shader"};Xe.add(Fb);class rh{constructor(e){this.renderer=e}run(e){const{renderer:t}=this;t.runners.init.emit(t.options),e.hello&&console.log(`PixiJS 7.4.3 - ${t.rendererLogId} - https://pixijs.com`),t.resize(t.screen.width,t.screen.height)}destroy(){}}rh.defaultOptions={hello:!1},rh.extension={type:[ke.RendererSystem,ke.CanvasRendererSystem],name:"startup"};Xe.add(rh);function qC(i,e=[]){return e[He.NORMAL]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.ADD]=[i.ONE,i.ONE],e[He.MULTIPLY]=[i.DST_COLOR,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.SCREEN]=[i.ONE,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.OVERLAY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.DARKEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.LIGHTEN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.COLOR_DODGE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.COLOR_BURN]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.HARD_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.SOFT_LIGHT]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.DIFFERENCE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.EXCLUSION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.HUE]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.SATURATION]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.COLOR]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.LUMINOSITY]=[i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.NONE]=[0,0],e[He.NORMAL_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_ALPHA,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.ADD_NPM]=[i.SRC_ALPHA,i.ONE,i.ONE,i.ONE],e[He.SCREEN_NPM]=[i.SRC_ALPHA,i.ONE_MINUS_SRC_COLOR,i.ONE,i.ONE_MINUS_SRC_ALPHA],e[He.SRC_IN]=[i.DST_ALPHA,i.ZERO],e[He.SRC_OUT]=[i.ONE_MINUS_DST_ALPHA,i.ZERO],e[He.SRC_ATOP]=[i.DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],e[He.DST_OVER]=[i.ONE_MINUS_DST_ALPHA,i.ONE],e[He.DST_IN]=[i.ZERO,i.SRC_ALPHA],e[He.DST_OUT]=[i.ZERO,i.ONE_MINUS_SRC_ALPHA],e[He.DST_ATOP]=[i.ONE_MINUS_DST_ALPHA,i.SRC_ALPHA],e[He.XOR]=[i.ONE_MINUS_DST_ALPHA,i.ONE_MINUS_SRC_ALPHA],e[He.SUBTRACT]=[i.ONE,i.ONE,i.ONE,i.ONE,i.FUNC_REVERSE_SUBTRACT,i.FUNC_ADD],e}const KC=0,ZC=1,JC=2,QC=3,eA=4,tA=5,Ob=class Wf{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=He.NONE,this._blendEq=!1,this.map=[],this.map[KC]=this.setBlend,this.map[ZC]=this.setOffset,this.map[JC]=this.setCullFace,this.map[QC]=this.setDepthTest,this.ma Line truncated
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
@@ -519,7 +519,7 @@ void main(void)
{
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}`,oA=`attribute vec2 aVertexPosition;
}`,lA=`attribute vec2 aVertexPosition;
uniform mat3 projectionMatrix;
@@ -545,7 +545,7 @@ void main(void)
gl_Position = filterVertexPosition();
vTextureCoord = filterTextureCoord();
}
`;const aA=rA,Db=oA;class Ub{constructor(e){this.renderer=e}contextChange(e){let t;if(this.renderer.context.webGLVersion===1){const s=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.FRAMEBUFFER,s)}else{const s=e.getParameter(e.DRAW_FRAMEBUFFER_BINDING);e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,s)}t>=ls.HIGH?this.multisample=ls.HIGH:t>=ls.MEDIUM?this.multisample=ls.MEDIUM:t>=ls.LOW?this.multisample=ls.LOW:this.multisample=ls.NONE}destroy(){}}Ub.extension={type:ke.RendererSystem,name:"_multisample"};Xe.add(Ub);class lA{constructor(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class $b{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:s}=this,n=e._glBuffers[s]||this.createGLBuffer(e);t.bindBuffer(e.type,n.buffer)}unbind(e){const{gl:t}=this;t.bindBuffer(e,null)}bindBufferBase(e,t){const{gl:s,CONTEXT_UID:n}=this;if(this.boundBufferBases[t]!==e){const r=e._glBuffers[n]||this.createGLBuffer(e);this.boundBufferBases[t]=e,s.bindBufferBase(s.UNIFORM_BUFFER,t,r.buffer)}}bindBufferRange(e,t,s){const{gl:n,CONTEXT_UID:r}=this;s=s||0;const o=e._glBuffers[r]||this.createGLBuffer(e);n.bindBufferRange(n.UNIFORM_BUFFER,t||0,o.buffer,s*256,256)}update(e){const{gl:t,CONTEXT_UID:s}=this,n=e._glBuffers[s]||this.createGLBuffer(e);if(e._updateID!==n.updateID)if(n.updateID=e._updateID,t.bindBuffer(e.type,n.buffer),n.byteLength>=e.data.byteLength)t.bufferSubData(e.type,0,e.data);else{const r=e.static?t.STATIC_DRAW:t.DYNAMIC_DRAW;n.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 s=e._glBuffers[this.CONTEXT_UID],n=this.gl;e.disposeRunner.remove(this),s&&(t||n.deleteBuffer(s.buffer),delete e._glBuffers[this.CONTEXT_UID])}disposeAll(e){const t=Object.keys(this.managedBuffers);for(let s=0;s<t.length;s++)this.dispose(this.managedBuffers[t[s]],e)}createGLBuffer(e){const{CONTEXT_UID:t,gl:s}=this;return e._glBuffers[t]=new lA(s.createBuffer()),this.managedBuffers[e.id]=e,e.disposeRunner.add(this),e._glBuffers[t]}}$b.extension={type:ke.RendererSystem,name:"buffer"};Xe.add($b);class Xb{constructor(e){this.renderer=e}render(e,t){const s=this.renderer;let n,r,o,a;if(t&&(n=t.renderTexture,r=t.clear,o=t.transform,a=t.skipUpdateTransform),this.renderingToScreen=!n,s.runners.prerender.emit(),s.emit("prerender"),s.projection.transform=o,!s.context.isLost){if(n||(this.lastObjectRendered=e),!a){const l=e.enableTempParent();e.updateTransform(),e.disableTempParent(l)}s.renderTexture.bind(n),s.batch.currentRenderer.start(),(r??s.background.clearBeforeRender)&&s.renderTexture.clear(),e.render(s),s.batch.currentRenderer.flush(),n&&(t.blit&&s.framebuffer.blit(),n.baseTexture.update()),s.runners.postrender.emit(),s.projection.transform=null,s.emit("postrender")}}destroy(){this.renderer=null,this.lastObjectRendered=null}}Xb.extension={type:ke.RendererSystem,name:"objectRenderer"};Xe.add(Xb);const Rc=class Wf extends tA{constructor(e){super(),this.type=Xx.WEBGL,e=Object.assign({},Le.RENDER_OPTIONS,e),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new Pi({projectionMatrix:new Ot},!0);const t={runners:["init","destroy","contextChange","resolutionChange","reset","update","postrender","prerender","resize"],systems:Wf.__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&&(ht("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=Wf.__plugins,this.options=e,this.startup.run(this.options)}static test(e){return e!=null&&e.forceCanvas?!1:k_()}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 cA=aA,$b=lA;class Xb{constructor(e){this.renderer=e}contextChange(e){let t;if(this.renderer.context.webGLVersion===1){const s=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.FRAMEBUFFER,s)}else{const s=e.getParameter(e.DRAW_FRAMEBUFFER_BINDING);e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,s)}t>=ls.HIGH?this.multisample=ls.HIGH:t>=ls.MEDIUM?this.multisample=ls.MEDIUM:t>=ls.LOW?this.multisample=ls.LOW:this.multisample=ls.NONE}destroy(){}}Xb.extension={type:ke.RendererSystem,name:"_multisample"};Xe.add(Xb);class hA{constructor(e){this.buffer=e||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class Vb{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:s}=this,n=e._glBuffers[s]||this.createGLBuffer(e);t.bindBuffer(e.type,n.buffer)}unbind(e){const{gl:t}=this;t.bindBuffer(e,null)}bindBufferBase(e,t){const{gl:s,CONTEXT_UID:n}=this;if(this.boundBufferBases[t]!==e){const r=e._glBuffers[n]||this.createGLBuffer(e);this.boundBufferBases[t]=e,s.bindBufferBase(s.UNIFORM_BUFFER,t,r.buffer)}}bindBufferRange(e,t,s){const{gl:n,CONTEXT_UID:r}=this;s=s||0;const o=e._glBuffers[r]||this.createGLBuffer(e);n.bindBufferRange(n.UNIFORM_BUFFER,t||0,o.buffer,s*256,256)}update(e){const{gl:t,CONTEXT_UID:s}=this,n=e._glBuffers[s]||this.createGLBuffer(e);if(e._updateID!==n.updateID)if(n.updateID=e._updateID,t.bindBuffer(e.type,n.buffer),n.byteLength>=e.data.byteLength)t.bufferSubData(e.type,0,e.data);else{const r=e.static?t.STATIC_DRAW:t.DYNAMIC_DRAW;n.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 s=e._glBuffers[this.CONTEXT_UID],n=this.gl;e.disposeRunner.remove(this),s&&(t||n.deleteBuffer(s.buffer),delete e._glBuffers[this.CONTEXT_UID])}disposeAll(e){const t=Object.keys(this.managedBuffers);for(let s=0;s<t.length;s++)this.dispose(this.managedBuffers[t[s]],e)}createGLBuffer(e){const{CONTEXT_UID:t,gl:s}=this;return e._glBuffers[t]=new hA(s.createBuffer()),this.managedBuffers[e.id]=e,e.disposeRunner.add(this),e._glBuffers[t]}}Vb.extension={type:ke.RendererSystem,name:"buffer"};Xe.add(Vb);class Yb{constructor(e){this.renderer=e}render(e,t){const s=this.renderer;let n,r,o,a;if(t&&(n=t.renderTexture,r=t.clear,o=t.transform,a=t.skipUpdateTransform),this.renderingToScreen=!n,s.runners.prerender.emit(),s.emit("prerender"),s.projection.transform=o,!s.context.isLost){if(n||(this.lastObjectRendered=e),!a){const l=e.enableTempParent();e.updateTransform(),e.disableTempParent(l)}s.renderTexture.bind(n),s.batch.currentRenderer.start(),(r??s.background.clearBeforeRender)&&s.renderTexture.clear(),e.render(s),s.batch.currentRenderer.flush(),n&&(t.blit&&s.framebuffer.blit(),n.baseTexture.update()),s.runners.postrender.emit(),s.projection.transform=null,s.emit("postrender")}}destroy(){this.renderer=null,this.lastObjectRendered=null}}Yb.extension={type:ke.RendererSystem,name:"objectRenderer"};Xe.add(Yb);const Rc=class zf extends iA{constructor(e){super(),this.type=Yx.WEBGL,e=Object.assign({},Le.RENDER_OPTIONS,e),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new Pi({projectionMatrix:new Ot},!0);const t={runners:["init","destroy","contextChange","resolutionChange","reset","update","postrender","prerender","resize"],systems:zf.__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&&(ht("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=zf.__plugins,this.options=e,this.startup.run(this.options)}static test(e){return e!=null&&e.forceCanvas?!1:O2()}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;
@@ -554,9 +554,9 @@ void main(void)
{
gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;
}
`;class xA extends Ys{constructor(e=1){super(aA,yA,{uAlpha:1}),this.alpha=e}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}}const bA={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},wA=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join(`
`);function SA(i){const e=bA[i],t=e.length;let s=wA,n="";const r="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";let o;for(let a=0;a<i;a++){let l=r.replace("%index%",a.toString());o=a,a>=t&&(o=i-a-1),l=l.replace("%value%",e[o].toString()),n+=l,n+=`
`}return s=s.replace("%blur%",n),s=s.replace("%size%",i.toString()),s}const MA=`
`;class wA extends Ys{constructor(e=1){super(cA,bA,{uAlpha:1}),this.alpha=e}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}}const SA={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},MA=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join(`
`);function TA(i){const e=SA[i],t=e.length;let s=MA,n="";const r="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";let o;for(let a=0;a<i;a++){let l=r.replace("%index%",a.toString());o=a,a>=t&&(o=i-a-1),l=l.replace("%value%",e[o].toString()),n+=l,n+=`
`}return s=s.replace("%blur%",n),s=s.replace("%size%",i.toString()),s}const _A=`
attribute vec2 aVertexPosition;
uniform mat3 projectionMatrix;
@@ -586,8 +586,8 @@ void main(void)
vec2 textureCoord = filterTextureCoord();
%blur%
}`;function TA(i,e){const t=Math.ceil(i/2);let s=MA,n="",r;e?r="vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);":r="vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";for(let o=0;o<i;o++){let a=r.replace("%index%",o.toString());a=a.replace("%sampleIndex%",`${o-(t-1)}.0`),n+=a,n+=`
`}return s=s.replace("%blur%",n),s=s.replace("%size%",i.toString()),s}class Qf extends Ys{constructor(e,t=8,s=4,n=Ys.defaultResolution,r=5){const o=TA(r,e),a=SA(r);super(o,a),this.horizontal=e,this.resolution=n,this._quality=0,this.quality=s,this.blur=t}apply(e,t,s,n){if(s?this.horizontal?this.uniforms.strength=1/s.width*(s.width/t.width):this.uniforms.strength=1/s.height*(s.height/t.height):this.horizontal?this.uniforms.strength=1/e.renderer.width*(e.renderer.width/t.width):this.uniforms.strength=1/e.renderer.height*(e.renderer.height/t.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)e.applyFilter(this,t,s,n);else{const r=e.getFilterTexture(),o=e.renderer;let a=t,l=r;this.state.blend=!1,e.applyFilter(this,a,l,Zi.CLEAR);for(let c=1;c<this.passes-1;c++){e.bindAndClear(a,Zi.BLIT),this.uniforms.uSampler=l;const h=l;l=a,a=h,o.shader.bind(this),o.geometry.draw(5)}this.state.blend=!0,e.applyFilter(this,l,s,n),e.returnFilterTexture(r)}}get blur(){return this.strength}set blur(e){this.padding=1+Math.abs(e)*2,this.strength=e}get quality(){return this._quality}set quality(e){this._quality=e,this.passes=e}}class _A extends Ys{constructor(e=8,t=4,s=Ys.defaultResolution,n=5){super(),this._repeatEdgePixels=!1,this.blurXFilter=new Qf(!0,e,t,s,n),this.blurYFilter=new Qf(!1,e,t,s,n),this.resolution=s,this.quality=t,this.blur=e,this.repeatEdgePixels=!1}apply(e,t,s,n){const r=Math.abs(this.blurXFilter.strength),o=Math.abs(this.blurYFilter.strength);if(r&&o){const a=e.getFilterTexture();this.blurXFilter.apply(e,t,a,Zi.CLEAR),this.blurYFilter.apply(e,a,s,n),e.returnFilterTexture(a)}else o?this.blurYFilter.apply(e,t,s,n):this.blurXFilter.apply(e,t,s,n)}updatePadding(){this._repeatEdgePixels?this.padding=0:this.padding=Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))*2}get blur(){return this.blurXFilter.blur}set blur(e){this.blurXFilter.blur=this.blurYFilter.blur=e,this.updatePadding()}get quality(){return this.blurXFilter.quality}set quality(e){this.blurXFilter.quality=this.blurYFilter.quality=e}get blurX(){return this.blurXFilter.blur}set blurX(e){this.blurXFilter.blur=e,this.updatePadding()}get blurY(){return this.blurYFilter.blur}set blurY(e){this.blurYFilter.blur=e,this.updatePadding()}get blendMode(){return this.blurYFilter.blendMode}set blendMode(e){this.blurYFilter.blendMode=e}get repeatEdgePixels(){return this._repeatEdgePixels}set repeatEdgePixels(e){this._repeatEdgePixels=e,this.updatePadding()}}var CA=`varying vec2 vTextureCoord;
}`;function CA(i,e){const t=Math.ceil(i/2);let s=_A,n="",r;e?r="vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);":r="vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";for(let o=0;o<i;o++){let a=r.replace("%index%",o.toString());a=a.replace("%sampleIndex%",`${o-(t-1)}.0`),n+=a,n+=`
`}return s=s.replace("%blur%",n),s=s.replace("%size%",i.toString()),s}class em extends Ys{constructor(e,t=8,s=4,n=Ys.defaultResolution,r=5){const o=CA(r,e),a=TA(r);super(o,a),this.horizontal=e,this.resolution=n,this._quality=0,this.quality=s,this.blur=t}apply(e,t,s,n){if(s?this.horizontal?this.uniforms.strength=1/s.width*(s.width/t.width):this.uniforms.strength=1/s.height*(s.height/t.height):this.horizontal?this.uniforms.strength=1/e.renderer.width*(e.renderer.width/t.width):this.uniforms.strength=1/e.renderer.height*(e.renderer.height/t.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)e.applyFilter(this,t,s,n);else{const r=e.getFilterTexture(),o=e.renderer;let a=t,l=r;this.state.blend=!1,e.applyFilter(this,a,l,Zi.CLEAR);for(let c=1;c<this.passes-1;c++){e.bindAndClear(a,Zi.BLIT),this.uniforms.uSampler=l;const h=l;l=a,a=h,o.shader.bind(this),o.geometry.draw(5)}this.state.blend=!0,e.applyFilter(this,l,s,n),e.returnFilterTexture(r)}}get blur(){return this.strength}set blur(e){this.padding=1+Math.abs(e)*2,this.strength=e}get quality(){return this._quality}set quality(e){this._quality=e,this.passes=e}}class AA extends Ys{constructor(e=8,t=4,s=Ys.defaultResolution,n=5){super(),this._repeatEdgePixels=!1,this.blurXFilter=new em(!0,e,t,s,n),this.blurYFilter=new em(!1,e,t,s,n),this.resolution=s,this.quality=t,this.blur=e,this.repeatEdgePixels=!1}apply(e,t,s,n){const r=Math.abs(this.blurXFilter.strength),o=Math.abs(this.blurYFilter.strength);if(r&&o){const a=e.getFilterTexture();this.blurXFilter.apply(e,t,a,Zi.CLEAR),this.blurYFilter.apply(e,a,s,n),e.returnFilterTexture(a)}else o?this.blurYFilter.apply(e,t,s,n):this.blurXFilter.apply(e,t,s,n)}updatePadding(){this._repeatEdgePixels?this.padding=0:this.padding=Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))*2}get blur(){return this.blurXFilter.blur}set blur(e){this.blurXFilter.blur=this.blurYFilter.blur=e,this.updatePadding()}get quality(){return this.blurXFilter.quality}set quality(e){this.blurXFilter.quality=this.blurYFilter.quality=e}get blurX(){return this.blurXFilter.blur}set blurX(e){this.blurXFilter.blur=e,this.updatePadding()}get blurY(){return this.blurYFilter.blur}set blurY(e){this.blurYFilter.blur=e,this.updatePadding()}get blendMode(){return this.blurYFilter.blendMode}set blendMode(e){this.blurYFilter.blendMode=e}get repeatEdgePixels(){return this._repeatEdgePixels}set repeatEdgePixels(e){this._repeatEdgePixels=e,this.updatePadding()}}var EA=`varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform float m[20];
uniform float uAlpha;
@@ -639,7 +639,7 @@ void main(void)
gl_FragColor = vec4(rgb, result.a);
}
`;class em extends Ys{constructor(){const e={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};super(Db,CA,e),this.alpha=1}_loadMatrix(e,t=!1){let s=e;t&&(this._multiply(s,this.uniforms.m,e),s=this._colorMatrix(s)),this.uniforms.m=s}_multiply(e,t,s){return e[0]=t[0]*s[0]+t[1]*s[5]+t[2]*s[10]+t[3]*s[15],e[1]=t[0]*s[1]+t[1]*s[6]+t[2]*s[11]+t[3]*s[16],e[2]=t[0]*s[2]+t[1]*s[7]+t[2]*s[12]+t[3]*s[17],e[3]=t[0]*s[3]+t[1]*s[8]+t[2]*s[13]+t[3]*s[18],e[4]=t[0]*s[4]+t[1]*s[9]+t[2]*s[14]+t[3]*s[19]+t[4],e[5]=t[5]*s[0]+t[6]*s[5]+t[7]*s[10]+t[8]*s[15],e[6]=t[5]*s[1]+t[6]*s[6]+t[7]*s[11]+t[8]*s[16],e[7]=t[5]*s[2]+t[6]*s[7]+t[7]*s[12]+t[8]*s[17],e[8]=t[5]*s[3]+t[6]*s[8]+t[7]*s[13]+t[8]*s[18],e[9]=t[5]*s[4]+t[6]*s[9]+t[7]*s[14]+t[8]*s[19]+t[9],e[10]=t[10]*s[0]+t[11]*s[5]+t[12]*s[10]+t[13]*s[15],e[11]=t[10]*s[1]+t[11]*s[6]+t[12]*s[11]+t[13]*s[16],e[12]=t[10]*s[2]+t[11]*s[7]+t[12]*s[12]+t[13]*s[17],e[13]=t[10]*s[3]+t[11]*s[8]+t[12]*s[13]+t[13]*s[18],e[14]=t[10]*s[4]+t[11]*s[9]+t[12]*s[14]+t[13]*s[19]+t[14],e[15]=t[15]*s[0]+t[16]*s[5]+t[17]*s[10]+t[18]*s[15],e[16]=t[15]*s[1]+t[16]*s[6]+t[17]*s[11]+t[18]*s[16],e[17]=t[15]*s[2]+t[16]*s[7]+t[17]*s[12]+t[18]*s[17],e[18]=t[15]*s[3]+t[16]*s[8]+t[17]*s[13]+t[18]*s[18],e[19]=t[15]*s[4]+t[16]*s[9]+t[17]*s[14]+t[18]*s[19]+t[19],e}_colorMatrix(e){const t=new Float32Array(e);return t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,t}brightness(e,t){const s=[e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0];this._loadMatrix(s,t)}tint(e,t){const[s,n,r]=Et.shared.setValue(e).toArray(),o=[s,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0];this._loadMatrix(o,t)}greyscale(e,t){const s=[e,e,e,0,0,e,e,e,0,0,e,e,e,0,0,0,0,0,1,0];this._loadMatrix(s,t)}blackAndWhite(e){const t=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(t,e)}hue(e,t){e=(e||0)/180*Math.PI;const s=Math.cos(e),n=Math.sin(e),r=Math.sqrt,o=1/3,a=r(o),l=s+(1-s)*o,c=o*(1-s)-a*n,h=o*(1-s)+a*n,u=o*(1-s)+a*n,d=s+o*(1-s),f=o*(1-s)-a*n,p=o*(1-s)-a*n,m=o*(1-s)+a*n,g=s+o*(1-s),y=[l,c,h,0,0,u,d,f,0,0,p,m,g,0,0,0,0,0,1,0];this._loadMatrix(y,t)}contrast(e,t){const s=(e||0)+1,n=-.5*(s-1),r=[s,0,0,0,n,0,s,0,0,n,0,0,s,0,n,0,0,0,1,0];this._loadMatrix(r,t)}saturate(e=0,t){const s=e*2/3+1,n=(s-1)*-.5,r=[s,n,n,0,0,n,s,n,0,0,n,n,s,0,0,0,0,0,1,0];this._loadMatrix(r,t)}desaturate(){this.saturate(-1)}negative(e){const t=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(t,e)}sepia(e){const t=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(t,e)}technicolor(e){const t=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(t,e)}polaroid(e){const t=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(t,e)}toBGR(e){const t=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(t,e)}kodachrome(e){const t=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(t,e)}browni(e){const t=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(t,e)}vintage(e){const t=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(t,e)}colorTone(e,t,s,n,r){e=e||.2,t=t||.15,s=s||16770432,n=n||3375104;const o=Et.shared,[a,l,c]=o.setValue(s).toArray(),[h,u,d]=o.setValue(n).toArray(),f=[.3,.59,.11,0,0,a,l,c,e,0,h,u,d,t,0,a-h,l-u,c-d,0,0];this._loadMatrix(f,r)}night(e,t){e=e||.1;const s=[e*-2,-e,0,0,0,-e,0,e,0,0,0,e,e*2,0,0,0,0,0,1,0];this._loadMatrix(s,t)}predator(e,t){const s=[11.224130630493164*e,-4.794486999511719*e,-2.8746118545532227*e,0*e,.40342438220977783*e,-3.6330697536468506*e,9.193157196044922*e,-2.951810836791992*e,0*e,-1.316135048866272*e,-3.2184197902679443*e,-4.2375030517578125*e,7.476448059082031*e,0*e,.8044459223747253*e,0,0,0,1,0];this._loadMatrix(s,t)}lsd(e){const t=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(t,e)}reset(){const e=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(e,!1)}get matrix(){return this.uniforms.m}set matrix(e){this.uniforms.m=e}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}}em.prototype.grayscale=em.prototype.greyscale;var AA=`varying vec2 vFilterCoord;
`;class tm extends Ys{constructor(){const e={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};super($b,EA,e),this.alpha=1}_loadMatrix(e,t=!1){let s=e;t&&(this._multiply(s,this.uniforms.m,e),s=this._colorMatrix(s)),this.uniforms.m=s}_multiply(e,t,s){return e[0]=t[0]*s[0]+t[1]*s[5]+t[2]*s[10]+t[3]*s[15],e[1]=t[0]*s[1]+t[1]*s[6]+t[2]*s[11]+t[3]*s[16],e[2]=t[0]*s[2]+t[1]*s[7]+t[2]*s[12]+t[3]*s[17],e[3]=t[0]*s[3]+t[1]*s[8]+t[2]*s[13]+t[3]*s[18],e[4]=t[0]*s[4]+t[1]*s[9]+t[2]*s[14]+t[3]*s[19]+t[4],e[5]=t[5]*s[0]+t[6]*s[5]+t[7]*s[10]+t[8]*s[15],e[6]=t[5]*s[1]+t[6]*s[6]+t[7]*s[11]+t[8]*s[16],e[7]=t[5]*s[2]+t[6]*s[7]+t[7]*s[12]+t[8]*s[17],e[8]=t[5]*s[3]+t[6]*s[8]+t[7]*s[13]+t[8]*s[18],e[9]=t[5]*s[4]+t[6]*s[9]+t[7]*s[14]+t[8]*s[19]+t[9],e[10]=t[10]*s[0]+t[11]*s[5]+t[12]*s[10]+t[13]*s[15],e[11]=t[10]*s[1]+t[11]*s[6]+t[12]*s[11]+t[13]*s[16],e[12]=t[10]*s[2]+t[11]*s[7]+t[12]*s[12]+t[13]*s[17],e[13]=t[10]*s[3]+t[11]*s[8]+t[12]*s[13]+t[13]*s[18],e[14]=t[10]*s[4]+t[11]*s[9]+t[12]*s[14]+t[13]*s[19]+t[14],e[15]=t[15]*s[0]+t[16]*s[5]+t[17]*s[10]+t[18]*s[15],e[16]=t[15]*s[1]+t[16]*s[6]+t[17]*s[11]+t[18]*s[16],e[17]=t[15]*s[2]+t[16]*s[7]+t[17]*s[12]+t[18]*s[17],e[18]=t[15]*s[3]+t[16]*s[8]+t[17]*s[13]+t[18]*s[18],e[19]=t[15]*s[4]+t[16]*s[9]+t[17]*s[14]+t[18]*s[19]+t[19],e}_colorMatrix(e){const t=new Float32Array(e);return t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,t}brightness(e,t){const s=[e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0];this._loadMatrix(s,t)}tint(e,t){const[s,n,r]=Et.shared.setValue(e).toArray(),o=[s,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0];this._loadMatrix(o,t)}greyscale(e,t){const s=[e,e,e,0,0,e,e,e,0,0,e,e,e,0,0,0,0,0,1,0];this._loadMatrix(s,t)}blackAndWhite(e){const t=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(t,e)}hue(e,t){e=(e||0)/180*Math.PI;const s=Math.cos(e),n=Math.sin(e),r=Math.sqrt,o=1/3,a=r(o),l=s+(1-s)*o,c=o*(1-s)-a*n,h=o*(1-s)+a*n,u=o*(1-s)+a*n,d=s+o*(1-s),f=o*(1-s)-a*n,p=o*(1-s)-a*n,m=o*(1-s)+a*n,g=s+o*(1-s),v=[l,c,h,0,0,u,d,f,0,0,p,m,g,0,0,0,0,0,1,0];this._loadMatrix(v,t)}contrast(e,t){const s=(e||0)+1,n=-.5*(s-1),r=[s,0,0,0,n,0,s,0,0,n,0,0,s,0,n,0,0,0,1,0];this._loadMatrix(r,t)}saturate(e=0,t){const s=e*2/3+1,n=(s-1)*-.5,r=[s,n,n,0,0,n,s,n,0,0,n,n,s,0,0,0,0,0,1,0];this._loadMatrix(r,t)}desaturate(){this.saturate(-1)}negative(e){const t=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(t,e)}sepia(e){const t=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(t,e)}technicolor(e){const t=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(t,e)}polaroid(e){const t=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(t,e)}toBGR(e){const t=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(t,e)}kodachrome(e){const t=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(t,e)}browni(e){const t=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(t,e)}vintage(e){const t=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(t,e)}colorTone(e,t,s,n,r){e=e||.2,t=t||.15,s=s||16770432,n=n||3375104;const o=Et.shared,[a,l,c]=o.setValue(s).toArray(),[h,u,d]=o.setValue(n).toArray(),f=[.3,.59,.11,0,0,a,l,c,e,0,h,u,d,t,0,a-h,l-u,c-d,0,0];this._loadMatrix(f,r)}night(e,t){e=e||.1;const s=[e*-2,-e,0,0,0,-e,0,e,0,0,0,e,e*2,0,0,0,0,0,1,0];this._loadMatrix(s,t)}predator(e,t){const s=[11.224130630493164*e,-4.794486999511719*e,-2.8746118545532227*e,0*e,.40342438220977783*e,-3.6330697536468506*e,9.193157196044922*e,-2.951810836791992*e,0*e,-1.316135048866272*e,-3.2184197902679443*e,-4.2375030517578125*e,7.476448059082031*e,0*e,.8044459223747253*e,0,0,0,1,0];this._loadMatrix(s,t)}lsd(e){const t=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(t,e)}reset(){const e=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(e,!1)}get matrix(){return this.uniforms.m}set matrix(e){this.uniforms.m=e}get alpha(){return this.uniforms.uAlpha}set alpha(e){this.uniforms.uAlpha=e}}tm.prototype.grayscale=tm.prototype.greyscale;var IA=`varying vec2 vFilterCoord;
varying vec2 vTextureCoord;
uniform vec2 scale;
@@ -659,7 +659,7 @@ void main(void)
gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));
}
`,EA=`attribute vec2 aVertexPosition;
`,RA=`attribute vec2 aVertexPosition;
uniform mat3 projectionMatrix;
uniform mat3 filterMatrix;
@@ -688,7 +688,7 @@ void main(void)
vTextureCoord = filterTextureCoord();
vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;
}
`;class IA extends Ys{constructor(e,t){const s=new Ot;e.renderable=!1,super(EA,AA,{mapSampler:e._texture,filterMatrix:s,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])}),this.maskSprite=e,this.maskMatrix=s,t==null&&(t=20),this.scale=new vt(t,t)}apply(e,t,s,n){this.uniforms.filterMatrix=e.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;const r=this.maskSprite.worldTransform,o=Math.sqrt(r.a*r.a+r.b*r.b),a=Math.sqrt(r.c*r.c+r.d*r.d);o!==0&&a!==0&&(this.uniforms.rotation[0]=r.a/o,this.uniforms.rotation[1]=r.b/o,this.uniforms.rotation[2]=r.c/a,this.uniforms.rotation[3]=r.d/a),e.applyFilter(this,t,s,n)}get map(){return this.uniforms.mapSampler}set map(e){this.uniforms.mapSampler=e}}var RA=`varying vec2 v_rgbNW;
`;class PA extends Ys{constructor(e,t){const s=new Ot;e.renderable=!1,super(RA,IA,{mapSampler:e._texture,filterMatrix:s,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])}),this.maskSprite=e,this.maskMatrix=s,t==null&&(t=20),this.scale=new vt(t,t)}apply(e,t,s,n){this.uniforms.filterMatrix=e.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;const r=this.maskSprite.worldTransform,o=Math.sqrt(r.a*r.a+r.b*r.b),a=Math.sqrt(r.c*r.c+r.d*r.d);o!==0&&a!==0&&(this.uniforms.rotation[0]=r.a/o,this.uniforms.rotation[1]=r.b/o,this.uniforms.rotation[2]=r.c/a,this.uniforms.rotation[3]=r.d/a),e.applyFilter(this,t,s,n)}get map(){return this.uniforms.mapSampler}set map(e){this.uniforms.mapSampler=e}}var kA=`varying vec2 v_rgbNW;
varying vec2 v_rgbNE;
varying vec2 v_rgbSW;
varying vec2 v_rgbSE;
@@ -809,7 +809,7 @@ void main() {
gl_FragColor = color;
}
`,PA=`
`,FA=`
attribute vec2 aVertexPosition;
uniform mat3 projectionMatrix;
@@ -851,7 +851,7 @@ void main(void) {
texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);
}
`;class kA extends Ys{constructor(){super(PA,RA)}}var FA=`precision highp float;
`;class OA extends Ys{constructor(){super(FA,kA)}}var LA=`precision highp float;
varying vec2 vTextureCoord;
varying vec4 vColor;
@@ -885,8 +885,8 @@ void main()
gl_FragColor = color;
}
`;class OA extends Ys{constructor(e=.5,t=Math.random()){super(Db,FA,{uNoise:0,uSeed:0}),this.noise=e,this.seed=t}get noise(){return this.uniforms.uNoise}set noise(e){this.uniforms.uNoise=e}get seed(){return this.uniforms.uSeed}set seed(e){this.uniforms.uSeed=e}}const ov={AlphaFilter:xA,BlurFilter:_A,BlurFilterPass:Qf,ColorMatrixFilter:em,DisplacementFilter:IA,FXAAFilter:kA,NoiseFilter:OA};Object.entries(ov).forEach(([i,e])=>{Object.defineProperty(ov,i,{get(){return ht("7.1.0",`filters.${i} has moved to ${i}`),e}})});class LA{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(e){this.removeTickerListener(),this.events=e,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(e){this._pauseUpdate=e}addTickerListener(){this.tickerAdded||!this.domElement||(Gs.system.add(this.tickerUpdate,this,ho.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(Gs.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove){this._didMove=!1;return}const e=this.events.rootPointerEvent;this.events.supportsTouchEvents&&e.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:e.clientX,clientY:e.clientY}))}tickerUpdate(e){this._deltaTime+=e,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.update())}}const lr=new LA;class Il{constructor(e){this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.composed=!1,this.defaultPrevented=!1,this.eventPhase=Il.prototype.NONE,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new vt,this.page=new vt,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}get layerX(){return this.layer.x}get layerY(){return this.layer.y}get pageX(){return this.page.x}get pageY(){return this.page.y}get data(){return this}composedPath(){return this.manager&&(!this.path||this.path[this.path.length-1]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}initEvent(e,t,s){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(e,t,s,n,r){throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}preventDefault(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}stopImmediatePropagation(){this.propagationImmediatelyStopped=!0}stopPropagation(){this.propagationStopped=!0}}class ah extends Il{constructor(){super(...arguments),this.client=new vt,this.movement=new vt,this.offset=new vt,this.global=new vt,this.screen=new vt}get clientX(){return this.client.x}get clientY(){return this.client.y}get x(){return this.clientX}get y(){return this.clientY}get movementX(){return this.movement.x}get movementY(){return this.movement.y}get offsetX(){return this.offset.x}get offsetY(){return this.offset.y}get globalX(){return this.global.x}get globalY(){return this.global.y}get screenX(){return this.screen.x}get screenY(){return this.screen.y}getLocalPosition(e,t,s){return e.worldTransform.applyInverse(s||this.global,t)}getModifierState(e){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(e)}initMouseEvent(e,t,s,n,r,o,a,l,c,h,u,d,f,p,m){throw new Error("Method not implemented.")}}class Si extends ah{constructor(){super(...arguments),this.width=0,this.height=0,this.isPrimary=!1}getCoalescedEvents(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]}getPredictedEvents(){throw new Error("getPredictedEvents is not supported!")}}class Jo extends ah{constructor(){super(...arguments),this.DOM_DELTA_PIXEL=0,this.DOM_DELTA_LINE=1,this.DOM_DELTA_PAGE=2}}Jo.DOM_DELTA_PIXEL=0,Jo.DOM_DELTA_LINE=1,Jo.DOM_DELTA_PAGE=2;const BA=2048,NA=new vt,Hd=new vt;class DA{constructor(e){this.dispatch=new El,this.moveOnAll=!1,this.enableGlobalMoveEvents=!0,this.mappingState={trackingData:{}},this.eventPool=new Map,this._allInteractiveElements=[],this._hitElements=[],this._isPointerMoveEvent=!1,this.rootTarget=e,this.hitPruneFn=this.hitPruneFn.bind(this),this.hitTestFn=this.hitTestFn.bind(this),this.mapPointerDown=this.mapPointerDown.bind(this),this.mapPointerMove=this.mapPointerMove.bind(this),this.mapPointerOut=this.mapPointerOut.bind(this),this.mapPointerOver=this.mapPointerOver.bind(this),this.mapPointerUp=this.mapPointerUp.bind(this),this.mapPointerUpOutside=this.mapPointerUpOutside.bind(this),this.mapWheel=this.mapWheel.bind(this),this.mappingTable={},this.addEventMapping("pointerdown",this.mapPointerDown),this.addEventMapping("pointermove",this.mapPointerMove),this.addEventMapping("pointerout",this.mapPointerOut),this.addEventMapping("pointerle Line truncated
${u}`)}});return await Promise.all(l),r?n[o[0].src]:n}async unload(e){const t=Ti(e,s=>({alias:[s],src:s})).map(async s=>{var o,a;const n=ts.toAbsolute(s.src),r=this.promiseCache[n];if(r){const l=await r.promise;delete this.promiseCache[n],(a=(o=r.parser)==null?void 0:o.unload)==null||a.call(o,l,s,this)}});await Promise.all(t)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(e=>e.name).reduce((e,t)=>(e[t.name]&&console.warn(`[Assets] loadParser name conflict "${t.name}"`),{...e,[t.name]:t}),{})}}var ii=(i=>(i[i.Low=0]="Low",i[i.Normal=1]="Normal",i[i.High=2]="High",i))(ii||{});const QA=".json",eE="application/json",tE={extension:{type:ke.LoadParser,priority:ii.Low},name:"loadJson",test(i){return ga(i,eE)||qs(i,QA)},async load(i){return await(await Le.ADAPTER.fetch(i)).json()}};Xe.add(tE);const sE=".txt",iE="text/plain",nE={name:"loadTxt",extension:{type:ke.LoadParser,priority:ii.Low},test(i){return ga(i,iE)||qs(i,sE)},async load(i){return await(await Le.ADAPTER.fetch(i)).text()}};Xe.add(nE);const rE=["normal","bold","100","200","300","400","500","600","700","800","900"],oE=[".ttf",".otf",".woff",".woff2"],aE=["font/ttf","font/otf","font/woff","font/woff2"],lE=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function cE(i){const e=ts.extname(i),t=ts.basename(i,e).replace(/(-|_)/g," ").toLowerCase().split(" ").map(r=>r.charAt(0).toUpperCase()+r.slice(1));let s=t.length>0;for(const r of t)if(!r.match(lE)){s=!1;break}let n=t.join(" ");return s||(n=`"${n.replace(/[\\"]/g,"\\$&")}"`),n}const hE=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/;function uE(i){return hE.test(i)?i:encodeURI(i)}const dE={extension:{type:ke.LoadParser,priority:ii.Low},name:"loadWebFont",test(i){return ga(i,aE)||qs(i,oE)},async load(i,e){var s,n,r;const t=Le.ADAPTER.getFontFaceSet();if(t){const o=[],a=((s=e.data)==null?void 0:s.family)??cE(i),l=((r=(n=e.data)==null?void 0:n.weights)==null?void 0:r.filter(h=>rE.includes(h)))??["normal"],c=e.data??{};for(let h=0;h<l.length;h++){const u=l[h],d=new FontFace(a,`url(${uE(i)})`,{...c,weight:u});await d.load(),t.add(d),o.push(d)}return o.length===1?o[0]:o}return console.warn("[loadWebFont] FontFace API is not supported. Skipping loading font"),null},unload(i){(Array.isArray(i)?i:[i]).forEach(e=>Le.ADAPTER.getFontFaceSet().delete(e))}};Xe.add(dE);const fE=`(function() {
`;class BA extends Ys{constructor(e=.5,t=Math.random()){super($b,LA,{uNoise:0,uSeed:0}),this.noise=e,this.seed=t}get noise(){return this.uniforms.uNoise}set noise(e){this.uniforms.uNoise=e}get seed(){return this.uniforms.uSeed}set seed(e){this.uniforms.uSeed=e}}const av={AlphaFilter:wA,BlurFilter:AA,BlurFilterPass:em,ColorMatrixFilter:tm,DisplacementFilter:PA,FXAAFilter:OA,NoiseFilter:BA};Object.entries(av).forEach(([i,e])=>{Object.defineProperty(av,i,{get(){return ht("7.1.0",`filters.${i} has moved to ${i}`),e}})});class NA{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(e){this.removeTickerListener(),this.events=e,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(e){this._pauseUpdate=e}addTickerListener(){this.tickerAdded||!this.domElement||(Gs.system.add(this.tickerUpdate,this,ho.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(Gs.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove){this._didMove=!1;return}const e=this.events.rootPointerEvent;this.events.supportsTouchEvents&&e.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:e.clientX,clientY:e.clientY}))}tickerUpdate(e){this._deltaTime+=e,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.update())}}const lr=new NA;class Il{constructor(e){this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.composed=!1,this.defaultPrevented=!1,this.eventPhase=Il.prototype.NONE,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new vt,this.page=new vt,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}get layerX(){return this.layer.x}get layerY(){return this.layer.y}get pageX(){return this.page.x}get pageY(){return this.page.y}get data(){return this}composedPath(){return this.manager&&(!this.path||this.path[this.path.length-1]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}initEvent(e,t,s){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(e,t,s,n,r){throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}preventDefault(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}stopImmediatePropagation(){this.propagationImmediatelyStopped=!0}stopPropagation(){this.propagationStopped=!0}}class ah extends Il{constructor(){super(...arguments),this.client=new vt,this.movement=new vt,this.offset=new vt,this.global=new vt,this.screen=new vt}get clientX(){return this.client.x}get clientY(){return this.client.y}get x(){return this.clientX}get y(){return this.clientY}get movementX(){return this.movement.x}get movementY(){return this.movement.y}get offsetX(){return this.offset.x}get offsetY(){return this.offset.y}get globalX(){return this.global.x}get globalY(){return this.global.y}get screenX(){return this.screen.x}get screenY(){return this.screen.y}getLocalPosition(e,t,s){return e.worldTransform.applyInverse(s||this.global,t)}getModifierState(e){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(e)}initMouseEvent(e,t,s,n,r,o,a,l,c,h,u,d,f,p,m){throw new Error("Method not implemented.")}}class Si extends ah{constructor(){super(...arguments),this.width=0,this.height=0,this.isPrimary=!1}getCoalescedEvents(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]}getPredictedEvents(){throw new Error("getPredictedEvents is not supported!")}}class Jo extends ah{constructor(){super(...arguments),this.DOM_DELTA_PIXEL=0,this.DOM_DELTA_LINE=1,this.DOM_DELTA_PAGE=2}}Jo.DOM_DELTA_PIXEL=0,Jo.DOM_DELTA_LINE=1,Jo.DOM_DELTA_PAGE=2;const DA=2048,UA=new vt,Hd=new vt;class $A{constructor(e){this.dispatch=new El,this.moveOnAll=!1,this.enableGlobalMoveEvents=!0,this.mappingState={trackingData:{}},this.eventPool=new Map,this._allInteractiveElements=[],this._hitElements=[],this._isPointerMoveEvent=!1,this.rootTarget=e,this.hitPruneFn=this.hitPruneFn.bind(this),this.hitTestFn=this.hitTestFn.bind(this),this.mapPointerDown=this.mapPointerDown.bind(this),this.mapPointerMove=this.mapPointerMove.bind(this),this.mapPointerOut=this.mapPointerOut.bind(this),this.mapPointerOver=this.mapPointerOver.bind(this),this.mapPointerUp=this.mapPointerUp.bind(this),this.mapPointerUpOutside=this.mapPointerUpOutside.bind(this),this.mapWheel=this.mapWheel.bind(this),this.mappingTable={},this.addEventMapping("pointerdown",this.mapPointerDown),this.addEventMapping("pointermove",this.mapPointerMove),this.addEventMapping("pointerout",this.mapPointerOut),this.addEventMapping("pointerle Line truncated
${u}`)}});return await Promise.all(l),r?n[o[0].src]:n}async unload(e){const t=Ti(e,s=>({alias:[s],src:s})).map(async s=>{var o,a;const n=ts.toAbsolute(s.src),r=this.promiseCache[n];if(r){const l=await r.promise;delete this.promiseCache[n],(a=(o=r.parser)==null?void 0:o.unload)==null||a.call(o,l,s,this)}});await Promise.all(t)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(e=>e.name).reduce((e,t)=>(e[t.name]&&console.warn(`[Assets] loadParser name conflict "${t.name}"`),{...e,[t.name]:t}),{})}}var ii=(i=>(i[i.Low=0]="Low",i[i.Normal=1]="Normal",i[i.High=2]="High",i))(ii||{});const tE=".json",sE="application/json",iE={extension:{type:ke.LoadParser,priority:ii.Low},name:"loadJson",test(i){return ga(i,sE)||qs(i,tE)},async load(i){return await(await Le.ADAPTER.fetch(i)).json()}};Xe.add(iE);const nE=".txt",rE="text/plain",oE={name:"loadTxt",extension:{type:ke.LoadParser,priority:ii.Low},test(i){return ga(i,rE)||qs(i,nE)},async load(i){return await(await Le.ADAPTER.fetch(i)).text()}};Xe.add(oE);const aE=["normal","bold","100","200","300","400","500","600","700","800","900"],lE=[".ttf",".otf",".woff",".woff2"],cE=["font/ttf","font/otf","font/woff","font/woff2"],hE=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function uE(i){const e=ts.extname(i),t=ts.basename(i,e).replace(/(-|_)/g," ").toLowerCase().split(" ").map(r=>r.charAt(0).toUpperCase()+r.slice(1));let s=t.length>0;for(const r of t)if(!r.match(hE)){s=!1;break}let n=t.join(" ");return s||(n=`"${n.replace(/[\\"]/g,"\\$&")}"`),n}const dE=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/;function fE(i){return dE.test(i)?i:encodeURI(i)}const mE={extension:{type:ke.LoadParser,priority:ii.Low},name:"loadWebFont",test(i){return ga(i,cE)||qs(i,lE)},async load(i,e){var s,n,r;const t=Le.ADAPTER.getFontFaceSet();if(t){const o=[],a=((s=e.data)==null?void 0:s.family)??uE(i),l=((r=(n=e.data)==null?void 0:n.weights)==null?void 0:r.filter(h=>aE.includes(h)))??["normal"],c=e.data??{};for(let h=0;h<l.length;h++){const u=l[h],d=new FontFace(a,`url(${fE(i)})`,{...c,weight:u});await d.load(),t.add(d),o.push(d)}return o.length===1?o[0]:o}return console.warn("[loadWebFont] FontFace API is not supported. Skipping loading font"),null},unload(i){(Array.isArray(i)?i:[i]).forEach(e=>Le.ADAPTER.getFontFaceSet().delete(e))}};Xe.add(mE);const pE=`(function() {
"use strict";
const WHITE_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=";
async function checkImageBitmap() {
@@ -903,7 +903,7 @@ ${u}`)}});return await Promise.all(l),r?n[o[0].src]:n}async unload(e){const t=Ti
self.postMessage(result);
});
})();
`;let Qo=null,rm=class{constructor(){Qo||(Qo=URL.createObjectURL(new Blob([fE],{type:"application/javascript"}))),this.worker=new Worker(Qo)}};rm.revokeObjectURL=function(){Qo&&(URL.revokeObjectURL(Qo),Qo=null)};const mE=`(function() {
`;let Qo=null,om=class{constructor(){Qo||(Qo=URL.createObjectURL(new Blob([pE],{type:"application/javascript"}))),this.worker=new Worker(Qo)}};om.revokeObjectURL=function(){Qo&&(URL.revokeObjectURL(Qo),Qo=null)};const gE=`(function() {
"use strict";
async function loadImageBitmap(url) {
const response = await fetch(url);
@@ -929,8 +929,8 @@ ${u}`)}});return await Promise.all(l),r?n[o[0].src]:n}async unload(e){const t=Ti
}
};
})();
`;let ea=null;class Jb{constructor(){ea||(ea=URL.createObjectURL(new Blob([mE],{type:"application/javascript"}))),this.worker=new Worker(ea)}}Jb.revokeObjectURL=function(){ea&&(URL.revokeObjectURL(ea),ea=null)};let uv=0,Wd;class pE{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 rm;t.addEventListener("message",s=>{t.terminate(),rm.revokeObjectURL(),e(s.data)})}),this._isImageBitmapSupported)}loadImageBitmap(e){return this._run("loadImageBitmap",[e])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){Wd===void 0&&(Wd=navigator.hardwareConcurrency||4);let e=this.workerPool.pop();return!e&&this._createdWorkers<Wd&&(this._createdWorkers++,e=new Jb().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 s=new Promise((n,r)=>{this.queue.push({id:e,arguments:t,resolve:n,reject:r})});return this.next(),s}next(){if(!this.queue.length)return;const e=this.getWorker();if(!e)return;const t=this.queue.pop(),s=t.id;this.resolveHash[uv]={resolve:t.resolve,reject:t.reject},e.postMessage({data:t.arguments,uuid:uv++,id:s})}}const dv=new pE;function Rl(i,e,t){i.resource.internal=!0;const s=new ze(i),n=()=>{delete e.promiseCache[t],zr.has(t)&&zr.remove(t)};return s.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."),n())}),s.once("destroyed",()=>{i.destroyed||(console.warn("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),n())}),s}const gE=[".jpeg",".jpg",".png",".webp",".avif"],vE=["image/jpeg","image/png","image/webp","image/avif"];async function yE(i){const e=await Le.ADAPTER.fetch(i);if(!e.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${i}: ${e.status} ${e.statusText}`);const t=await e.blob();return await createImageBitmap(t)}const hu={name:"loadTextures",extension:{type:ke.LoadParser,priority:ii.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(i){return ga(i,vE)||qs(i,gE)},async load(i,e,t){var a;const s=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap;let n;s?this.config.preferWorkers&&await dv.isImageBitmapSupported()?n=await dv.loadImageBitmap(i):n=await yE(i):n=await new Promise((l,c)=>{const h=new Image;h.crossOrigin=this.config.crossOrigin,h.src=i,h.complete?l(h):(h.onload=()=>l(h),h.onerror=u=>c(u))});const r={...e.data};r.resolution??(r.resolution=Yn(i)),s&&((a=r.resourceOptions)==null?void 0:a.ownsImageBitmap)===void 0&&(r.resourceOptions={...r.resourceOptions},r.resourceOptions.ownsImageBitmap=!0);const o=new Qe(n,r);return o.resource.src=i,Rl(o,t,i)},unload(i){i.destroy(!0)}};Xe.add(hu);const xE=".svg",bE="image/svg+xml",wE={extension:{type:ke.LoadParser,priority:ii.High},name:"loadSVG",test(i){return ga(i,bE)||qs(i,xE)},async testParse(i){return qf.test(i)},async parse(i,e,t){var r;const s=new qf(i,(r=e==null?void 0:e.data)==null?void 0:r.resourceOptions);await s.load();const n=new Qe(s,{resolution:Yn(i),...e==null?void 0:e.data});return n.resource.src=e.src,Rl(n,t,e.src)},async load(i,e){return(await Le.ADAPTER.fetch(i)).text()},unload:hu.unload};Xe.add(wE);const SE=[".mp4",".m4v",".webm",".ogv"],ME=["video/mp4","video/webm","video/ogg"],TE={name:"loadVideo",extension:{type:ke.LoadParser,priority:ii.High},config:{defaultAutoPlay:!0,defaultUpdateFPS:0,defaultLoop:!1,defaultMuted:!1,defaultPlaysinline:!0},test(i){return ga(i,ME)||qs(i,SE)},async load(i,e,t){var o;let s;const n=await(await Le.ADAPTER.fetch(i)).blob(),r=URL.createObjectURL(n);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},l=new Gb(r,a);await l.load();const c=new Qe(l,{alphaMode:await P_(),resolution:Yn(i),...e==null?void 0:e.data});c.resource.src=i,s=Rl(c,t,i),s.baseTexture.once("destroyed",()=>{URL.revokeObjectURL(r)})}catch(a){throw URL.revokeObjectURL(r),a}return s},unload(i){i.destroy(!0)}};Xe.add(TE);class _E{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:s,format:n,loadParser:r})):Array.isArray(e)?o.push(...e):o.push(e);let a;a=l=>{this.hasKey(l)&&console.warn(`[Resolver] already has key: ${l} overwriting`)},Ti(o).forEach(l=>{const{src:c,srcs:h}=l;let{data:u,format:d,loadParser:f}=l;const p=Ti(c||h).map(y=>typeof y=="string"?KA(y):Array.isArray(y)?y:[y]),m=this.getAlias(l);Array.isArray(m)?m.forEach(a):a(m);const g=[];p.forEach(y=>{y.forEach(x=>{let v={};if(typeof x!="object"){v.src=x;for(let w=0;w<this._parsers.length;w++){const _=this._parsers[w];if(_.test(x)){v=_.parse(x);break}}}else u=x.data??u,d=x.format??d,f=x.loadParser??f,v={...v,...x};if(!m)throw new Error(`[Resolver] alias is undefined for this asset: ${v.src}`);v=this.buildResolvedAsset(v,{aliases:m,data:u,format:d,loadParser:f}),g.push(v)})}),m.forEach(y=>{this._assetMap[y]=g})})}resolveBundle(e){const t=ch(e);e=Ti(e);const s={};return e.forEach(n=>{const r=this._bundles[n];if(r){const o=this.resolve(r),a={};for(const l in o){const c=o[l];a[this._extractAssetIdFromBundle(n,l)]=c}s[n]=a}}),t?s[e[0]]:s}resolveUrl(e){const t=this.resolve(e);if(typeof e!="string"){const s={};for(const n in t)s[n]=t[n].src;return s}return t.src}resolve(e){const t=ch(e);e=Ti(e);const s={};return e.forEach(n=>{if(!this._resolverHash[n])if(this._assetMap[n]){let r=this._assetMap[n];const o=r[0],a=this._getPreferredOrder(r);a==null||a.priority.forEach(l=>{a.params[l].forEach(c=>{const h=r.filter(u=>u[l]?u[l]===c:!1);h.length&&(r=h)})}),this._resolverHash[n]=r[0]??o}else this._resolverHash[n]=this.buildResolvedAsset({alias:[n],src:n},{});s[n]=this._resolverHash[n]}),t?s[e[0]]:s}hasKey(e){return!!this._assetMap[e]}hasBundle(e){return!!this._bundles[e]}_getPreferredOrder(e){for(let t=0;t<e.length;t++){const s=e[0],n=this._preferredOrder.find(r=>r.params.format.includes(s.format));if(n)return n}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:s,data:n,loadParser:r,format:o}=t;return(this._basePath||this._rootPath)&&(e.src=ts.toAbsolute(e.src,this._basePath,this._rootPath)),e.alias=s??e.alias??[e.src],e.src=this._appendDefaultSearchParams(e.src),e.data={...n||{},...e.data},e.loadParser=r??e.loadParser,e.format=o??e.format??ts.extname(e.src).slice(1),e.srcs=e.src,e.name=e.alias,e}}class CE{constructor(){this._detections=[],this._initialized=!1,this.resolver=new _E,this.loader=new JA,this.cache=zr,this._backgroundLoader=new qA(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,s=typeof t=="number"?[t]:t,n=await this._detectFormats({preferredFormats:(o=e.texturePreference)==null?void 0:o.format,skipDetections:e.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:n,resolution:s}}),e.preferences&&this.setPreferences(e.preferences)}add(e,t,s,n,r){this.resolver.add(e,t,s,n,r)}async load(e,t){this._initialized||await this.init();const s=ch(e),n=Ti(e).map(a=>{if(typeof a!="string"){const l=this.resolver.getAlias(a);return l.some(c=>!this.resolver.hasKey(c))&&this.add(a),Array.isArray(l)?l[0]:l}return this.resolver.hasKey(a)||this.add({alias:a,src:a}),a}),r=this.resolver.resolve(n),o=await this._mapLoadToResolve(r,t);return s?o[n[0]]:o}addBundle(e,t){this.resolver.addBundle(e,t)}async loadBundle(e,t){this._initialized||await this.init();let s=!1;typeof e=="string"&&(s=!0,e=[e]);const n=this.resolver.resolveBundle(e),r={},o=Object.keys(n);let a=0,l=0;const c=()=>{t==null||t(++a/l)},h=o.map(u=>{const d=n[u];return l+=Object.keys(d).length,this._mapLoadToResolve(d,c).then(f=>{r[u]=f})});return await Promise.all(h),s?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(s=>{this._backgroundLoader.add(Object.values(s))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(e){if(typeof e=="string")return zr.get(e);const t={};for(let s=0;s<e.length;s++)t[s]=zr.get(e[s]);return t}async _mapLoadToResolve(e,t){const s=Object.values(e),n=Object.keys(e);this._backgroundLoader.active=!1;co Line truncated
`;let ea=null;class e1{constructor(){ea||(ea=URL.createObjectURL(new Blob([gE],{type:"application/javascript"}))),this.worker=new Worker(ea)}}e1.revokeObjectURL=function(){ea&&(URL.revokeObjectURL(ea),ea=null)};let dv=0,Wd;class vE{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 om;t.addEventListener("message",s=>{t.terminate(),om.revokeObjectURL(),e(s.data)})}),this._isImageBitmapSupported)}loadImageBitmap(e){return this._run("loadImageBitmap",[e])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){Wd===void 0&&(Wd=navigator.hardwareConcurrency||4);let e=this.workerPool.pop();return!e&&this._createdWorkers<Wd&&(this._createdWorkers++,e=new e1().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 s=new Promise((n,r)=>{this.queue.push({id:e,arguments:t,resolve:n,reject:r})});return this.next(),s}next(){if(!this.queue.length)return;const e=this.getWorker();if(!e)return;const t=this.queue.pop(),s=t.id;this.resolveHash[dv]={resolve:t.resolve,reject:t.reject},e.postMessage({data:t.arguments,uuid:dv++,id:s})}}const fv=new vE;function Rl(i,e,t){i.resource.internal=!0;const s=new ze(i),n=()=>{delete e.promiseCache[t],zr.has(t)&&zr.remove(t)};return s.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."),n())}),s.once("destroyed",()=>{i.destroyed||(console.warn("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),n())}),s}const yE=[".jpeg",".jpg",".png",".webp",".avif"],xE=["image/jpeg","image/png","image/webp","image/avif"];async function bE(i){const e=await Le.ADAPTER.fetch(i);if(!e.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${i}: ${e.status} ${e.statusText}`);const t=await e.blob();return await createImageBitmap(t)}const hu={name:"loadTextures",extension:{type:ke.LoadParser,priority:ii.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(i){return ga(i,xE)||qs(i,yE)},async load(i,e,t){var a;const s=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap;let n;s?this.config.preferWorkers&&await fv.isImageBitmapSupported()?n=await fv.loadImageBitmap(i):n=await bE(i):n=await new Promise((l,c)=>{const h=new Image;h.crossOrigin=this.config.crossOrigin,h.src=i,h.complete?l(h):(h.onload=()=>l(h),h.onerror=u=>c(u))});const r={...e.data};r.resolution??(r.resolution=Yn(i)),s&&((a=r.resourceOptions)==null?void 0:a.ownsImageBitmap)===void 0&&(r.resourceOptions={...r.resourceOptions},r.resourceOptions.ownsImageBitmap=!0);const o=new Qe(n,r);return o.resource.src=i,Rl(o,t,i)},unload(i){i.destroy(!0)}};Xe.add(hu);const wE=".svg",SE="image/svg+xml",ME={extension:{type:ke.LoadParser,priority:ii.High},name:"loadSVG",test(i){return ga(i,SE)||qs(i,wE)},async testParse(i){return Kf.test(i)},async parse(i,e,t){var r;const s=new Kf(i,(r=e==null?void 0:e.data)==null?void 0:r.resourceOptions);await s.load();const n=new Qe(s,{resolution:Yn(i),...e==null?void 0:e.data});return n.resource.src=e.src,Rl(n,t,e.src)},async load(i,e){return(await Le.ADAPTER.fetch(i)).text()},unload:hu.unload};Xe.add(ME);const TE=[".mp4",".m4v",".webm",".ogv"],_E=["video/mp4","video/webm","video/ogg"],CE={name:"loadVideo",extension:{type:ke.LoadParser,priority:ii.High},config:{defaultAutoPlay:!0,defaultUpdateFPS:0,defaultLoop:!1,defaultMuted:!1,defaultPlaysinline:!0},test(i){return ga(i,_E)||qs(i,TE)},async load(i,e,t){var o;let s;const n=await(await Le.ADAPTER.fetch(i)).blob(),r=URL.createObjectURL(n);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},l=new Hb(r,a);await l.load();const c=new Qe(l,{alphaMode:await F2(),resolution:Yn(i),...e==null?void 0:e.data});c.resource.src=i,s=Rl(c,t,i),s.baseTexture.once("destroyed",()=>{URL.revokeObjectURL(r)})}catch(a){throw URL.revokeObjectURL(r),a}return s},unload(i){i.destroy(!0)}};Xe.add(CE);class AE{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:s,format:n,loadParser:r})):Array.isArray(e)?o.push(...e):o.push(e);let a;a=l=>{this.hasKey(l)&&console.warn(`[Resolver] already has key: ${l} overwriting`)},Ti(o).forEach(l=>{const{src:c,srcs:h}=l;let{data:u,format:d,loadParser:f}=l;const p=Ti(c||h).map(v=>typeof v=="string"?JA(v):Array.isArray(v)?v:[v]),m=this.getAlias(l);Array.isArray(m)?m.forEach(a):a(m);const g=[];p.forEach(v=>{v.forEach(y=>{let x={};if(typeof y!="object"){x.src=y;for(let M=0;M<this._parsers.length;M++){const C=this._parsers[M];if(C.test(y)){x=C.parse(y);break}}}else u=y.data??u,d=y.format??d,f=y.loadParser??f,x={...x,...y};if(!m)throw new Error(`[Resolver] alias is undefined for this asset: ${x.src}`);x=this.buildResolvedAsset(x,{aliases:m,data:u,format:d,loadParser:f}),g.push(x)})}),m.forEach(v=>{this._assetMap[v]=g})})}resolveBundle(e){const t=ch(e);e=Ti(e);const s={};return e.forEach(n=>{const r=this._bundles[n];if(r){const o=this.resolve(r),a={};for(const l in o){const c=o[l];a[this._extractAssetIdFromBundle(n,l)]=c}s[n]=a}}),t?s[e[0]]:s}resolveUrl(e){const t=this.resolve(e);if(typeof e!="string"){const s={};for(const n in t)s[n]=t[n].src;return s}return t.src}resolve(e){const t=ch(e);e=Ti(e);const s={};return e.forEach(n=>{if(!this._resolverHash[n])if(this._assetMap[n]){let r=this._assetMap[n];const o=r[0],a=this._getPreferredOrder(r);a==null||a.priority.forEach(l=>{a.params[l].forEach(c=>{const h=r.filter(u=>u[l]?u[l]===c:!1);h.length&&(r=h)})}),this._resolverHash[n]=r[0]??o}else this._resolverHash[n]=this.buildResolvedAsset({alias:[n],src:n},{});s[n]=this._resolverHash[n]}),t?s[e[0]]:s}hasKey(e){return!!this._assetMap[e]}hasBundle(e){return!!this._bundles[e]}_getPreferredOrder(e){for(let t=0;t<e.length;t++){const s=e[0],n=this._preferredOrder.find(r=>r.params.format.includes(s.format));if(n)return n}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:s,data:n,loadParser:r,format:o}=t;return(this._basePath||this._rootPath)&&(e.src=ts.toAbsolute(e.src,this._basePath,this._rootPath)),e.alias=s??e.alias??[e.src],e.src=this._appendDefaultSearchParams(e.src),e.data={...n||{},...e.data},e.loadParser=r??e.loadParser,e.format=o??e.format??ts.extname(e.src).slice(1),e.srcs=e.src,e.name=e.alias,e}}class EE{constructor(){this._detections=[],this._initialized=!1,this.resolver=new AE,this.loader=new eE,this.cache=zr,this._backgroundLoader=new ZA(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,s=typeof t=="number"?[t]:t,n=await this._detectFormats({preferredFormats:(o=e.texturePreference)==null?void 0:o.format,skipDetections:e.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:n,resolution:s}}),e.preferences&&this.setPreferences(e.preferences)}add(e,t,s,n,r){this.resolver.add(e,t,s,n,r)}async load(e,t){this._initialized||await this.init();const s=ch(e),n=Ti(e).map(a=>{if(typeof a!="string"){const l=this.resolver.getAlias(a);return l.some(c=>!this.resolver.hasKey(c))&&this.add(a),Array.isArray(l)?l[0]:l}return this.resolver.hasKey(a)||this.add({alias:a,src:a}),a}),r=this.resolver.resolve(n),o=await this._mapLoadToResolve(r,t);return s?o[n[0]]:o}addBundle(e,t){this.resolver.addBundle(e,t)}async loadBundle(e,t){this._initialized||await this.init();let s=!1;typeof e=="string"&&(s=!0,e=[e]);const n=this.resolver.resolveBundle(e),r={},o=Object.keys(n);let a=0,l=0;const c=()=>{t==null||t(++a/l)},h=o.map(u=>{const d=n[u];return l+=Object.keys(d).length,this._mapLoadToResolve(d,c).then(f=>{r[u]=f})});return await Promise.all(h),s?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(s=>{this._backgroundLoader.add(Object.values(s))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(e){if(typeof e=="string")return zr.get(e);const t={};for(let s=0;s<e.length;s++)t[s]=zr.get(e[s]);return t}async _mapLoadToResolve(e,t){const s=Object.values(e),n=Object.keys(e);this._backgroundLoader.active=!1;co Line truncated
uniform vec4 uColor;
uniform sampler2D uSampler;
@@ -939,7 +939,7 @@ void main(void)
{
gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;
}
`,SI=`attribute vec2 aVertexPosition;
`,TI=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
@@ -954,7 +954,7 @@ void main(void)
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
}
`;class fh extends ki{constructor(e,t){const s={uSampler:e,alpha:1,uTextureMatrix:Ot.IDENTITY,uColor:new Float32Array([1,1,1,1])};t=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},t),t.uniforms&&Object.assign(s,t.uniforms),super(t.program||nn.from(SI,wI),s),this._colorDirty=!1,this.uvMatrix=new dp(e),this.batchable=t.program===void 0,this.pluginName=t.pluginName,this._tintColor=new Et(t.tint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0,this.alpha=t.alpha}get texture(){return this.uniforms.uSampler}set texture(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)}set alpha(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(e){e!==this.tint&&(this._tintColor.setValue(e),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}get tintValue(){return this._tintColor.toNumber()}update(){if(this._colorDirty){this._colorDirty=!1;const e=this.texture.baseTexture.alphaMode;Et.shared.setValue(this._tintColor).premultiply(this._alpha,e).toArray(this.uniforms.uColor)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}class MI extends xl{constructor(e=ze.EMPTY,t,s,n,r){const o=new yp(t,s,n);o.getBuffer("aVertexPosition").static=!1;const a=new fh(e);super(o,a,null,r),this.autoUpdate=!0}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(e){this.geometry.getBuffer("aVertexPosition").data=e}_render(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),super._render(e)}}class Tv{constructor(e,t,s){this.geometry=new hn,this.indexBuffer=null,this.size=s,this.dynamicProperties=[],this.staticProperties=[];for(let n=0;n<e.length;++n){let r=e[n];r={attributeName:r.attributeName,size:r.size,uploadFunction:r.uploadFunction,type:r.type||$e.FLOAT,offset:r.offset},t[n]?this.dynamicProperties.push(r):this.staticProperties.push(r)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}initBuffers(){const e=this.geometry;let t=0;this.indexBuffer=new Ut(j_(this.size),!0,!0),e.addIndex(this.indexBuffer),this.dynamicStride=0;for(let o=0;o<this.dynamicProperties.length;++o){const a=this.dynamicProperties[o];a.offset=t,t+=a.size,this.dynamicStride+=a.size}const s=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(s),this.dynamicDataUint32=new Uint32Array(s),this.dynamicBuffer=new Ut(this.dynamicData,!1,!1);let n=0;this.staticStride=0;for(let o=0;o<this.staticProperties.length;++o){const a=this.staticProperties[o];a.offset=n,n+=a.size,this.staticStride+=a.size}const r=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(r),this.staticDataUint32=new Uint32Array(r),this.staticBuffer=new Ut(this.staticData,!0,!1);for(let o=0;o<this.dynamicProperties.length;++o){const a=this.dynamicProperties[o];e.addAttribute(a.attributeName,this.dynamicBuffer,0,a.type===$e.UNSIGNED_BYTE,a.type,this.dynamicStride*4,a.offset*4)}for(let o=0;o<this.staticProperties.length;++o){const a=this.staticProperties[o];e.addAttribute(a.attributeName,this.staticBuffer,0,a.type===$e.UNSIGNED_BYTE,a.type,this.staticStride*4,a.offset*4)}}uploadDynamic(e,t,s){for(let n=0;n<this.dynamicProperties.length;n++){const r=this.dynamicProperties[n];r.uploadFunction(e,t,s,r.type===$e.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,r.offset)}this.dynamicBuffer._updateID++}uploadStatic(e,t,s){for(let n=0;n<this.staticProperties.length;n++){const r=this.staticProperties[n];r.uploadFunction(e,t,s,r.type===$e.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,r.offset)}this.staticBuffer._updateID++}destroy(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()}}var TI=`varying vec2 vTextureCoord;
`;class fh extends ki{constructor(e,t){const s={uSampler:e,alpha:1,uTextureMatrix:Ot.IDENTITY,uColor:new Float32Array([1,1,1,1])};t=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},t),t.uniforms&&Object.assign(s,t.uniforms),super(t.program||nn.from(TI,MI),s),this._colorDirty=!1,this.uvMatrix=new fp(e),this.batchable=t.program===void 0,this.pluginName=t.pluginName,this._tintColor=new Et(t.tint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0,this.alpha=t.alpha}get texture(){return this.uniforms.uSampler}set texture(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)}set alpha(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(e){e!==this.tint&&(this._tintColor.setValue(e),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}get tintValue(){return this._tintColor.toNumber()}update(){if(this._colorDirty){this._colorDirty=!1;const e=this.texture.baseTexture.alphaMode;Et.shared.setValue(this._tintColor).premultiply(this._alpha,e).toArray(this.uniforms.uColor)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}class _I extends xl{constructor(e=ze.EMPTY,t,s,n,r){const o=new xp(t,s,n);o.getBuffer("aVertexPosition").static=!1;const a=new fh(e);super(o,a,null,r),this.autoUpdate=!0}get vertices(){return this.geometry.getBuffer("aVertexPosition").data}set vertices(e){this.geometry.getBuffer("aVertexPosition").data=e}_render(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),super._render(e)}}class _v{constructor(e,t,s){this.geometry=new hn,this.indexBuffer=null,this.size=s,this.dynamicProperties=[],this.staticProperties=[];for(let n=0;n<e.length;++n){let r=e[n];r={attributeName:r.attributeName,size:r.size,uploadFunction:r.uploadFunction,type:r.type||$e.FLOAT,offset:r.offset},t[n]?this.dynamicProperties.push(r):this.staticProperties.push(r)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}initBuffers(){const e=this.geometry;let t=0;this.indexBuffer=new Ut(W2(this.size),!0,!0),e.addIndex(this.indexBuffer),this.dynamicStride=0;for(let o=0;o<this.dynamicProperties.length;++o){const a=this.dynamicProperties[o];a.offset=t,t+=a.size,this.dynamicStride+=a.size}const s=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(s),this.dynamicDataUint32=new Uint32Array(s),this.dynamicBuffer=new Ut(this.dynamicData,!1,!1);let n=0;this.staticStride=0;for(let o=0;o<this.staticProperties.length;++o){const a=this.staticProperties[o];a.offset=n,n+=a.size,this.staticStride+=a.size}const r=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(r),this.staticDataUint32=new Uint32Array(r),this.staticBuffer=new Ut(this.staticData,!0,!1);for(let o=0;o<this.dynamicProperties.length;++o){const a=this.dynamicProperties[o];e.addAttribute(a.attributeName,this.dynamicBuffer,0,a.type===$e.UNSIGNED_BYTE,a.type,this.dynamicStride*4,a.offset*4)}for(let o=0;o<this.staticProperties.length;++o){const a=this.staticProperties[o];e.addAttribute(a.attributeName,this.staticBuffer,0,a.type===$e.UNSIGNED_BYTE,a.type,this.staticStride*4,a.offset*4)}}uploadDynamic(e,t,s){for(let n=0;n<this.dynamicProperties.length;n++){const r=this.dynamicProperties[n];r.uploadFunction(e,t,s,r.type===$e.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,r.offset)}this.dynamicBuffer._updateID++}uploadStatic(e,t,s){for(let n=0;n<this.staticProperties.length;n++){const r=this.staticProperties[n];r.uploadFunction(e,t,s,r.type===$e.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,r.offset)}this.staticBuffer._updateID++}destroy(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()}}var CI=`varying vec2 vTextureCoord;
varying vec4 vColor;
uniform sampler2D uSampler;
@@ -962,7 +962,7 @@ uniform sampler2D uSampler;
void main(void){
vec4 color = texture2D(uSampler, vTextureCoord) * vColor;
gl_FragColor = color;
}`,_I=`attribute vec2 aVertexPosition;
}`,AI=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
attribute vec4 aColor;
@@ -987,8 +987,8 @@ void main(void){
vTextureCoord = aTextureCoord;
vColor = aColor * uColor;
}
`;class o1 extends cu{constructor(e){super(e),this.shader=null,this.properties=null,this.tempMatrix=new Ot,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:$e.UNSIGNED_BYTE,uploadFunction:this.uploadTint,offset:0}],this.shader=ki.from(_I,TI,{}),this.state=un.for2d()}render(e){const t=e.children,s=e._maxSize,n=e._batchSize,r=this.renderer;let o=t.length;if(o===0)return;o>s&&!e.autoResize&&(o=s);let a=e._buffers;a||(a=e._buffers=this.generateBuffers(e));const l=t[0]._texture.baseTexture,c=l.alphaMode>0;this.state.blendMode=nb(e.blendMode,c),r.state.set(this.state);const h=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=Et.shared.setValue(e.tintRgb).premultiply(e.worldAlpha,c).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);let d=!1;for(let f=0,p=0;f<o;f+=n,p+=1){let m=o-f;m>n&&(m=n),p>=a.length&&a.push(this._generateOneMoreBuffer(e));const g=a[p];g.uploadDynamic(t,f,m);const y=e._bufferUpdateIDs[p]||0;d=d||g._updateID<y,d&&(g._updateID=e._updateID,g.uploadStatic(t,f,m)),r.geometry.bind(g.geometry),h.drawElements(h.TRIANGLES,m*6,h.UNSIGNED_SHORT,0)}}generateBuffers(e){const t=[],s=e._maxSize,n=e._batchSize,r=e._properties;for(let o=0;o<s;o+=n)t.push(new Tv(this.properties,r,n));return t}_generateOneMoreBuffer(e){const t=e._batchSize,s=e._properties;return new Tv(this.properties,s,t)}uploadVertices(e,t,s,n,r,o){let a=0,l=0,c=0,h=0;for(let u=0;u<s;++u){const d=e[t+u],f=d._texture,p=d.scale.x,m=d.scale.y,g=f.trim,y=f.orig;g?(l=g.x-d.anchor.x*y.width,a=l+g.width,h=g.y-d.anchor.y*y.height,c=h+g.height):(a=y.width*(1-d.anchor.x),l=y.width*-d.anchor.x,c=y.height*(1-d.anchor.y),h=y.height*-d.anchor.y),n[o]=l*p,n[o+1]=h*m,n[o+r]=a*p,n[o+r+1]=h*m,n[o+r*2]=a*p,n[o+r*2+1]=c*m,n[o+r*3]=l*p,n[o+r*3+1]=c*m,o+=r*4}}uploadPosition(e,t,s,n,r,o){for(let a=0;a<s;a++){const l=e[t+a].position;n[o]=l.x,n[o+1]=l.y,n[o+r]=l.x,n[o+r+1]=l.y,n[o+r*2]=l.x,n[o+r*2+1]=l.y,n[o+r*3]=l.x,n[o+r*3+1]=l.y,o+=r*4}}uploadRotation(e,t,s,n,r,o){for(let a=0;a<s;a++){const l=e[t+a].rotation;n[o]=l,n[o+r]=l,n[o+r*2]=l,n[o+r*3]=l,o+=r*4}}uploadUvs(e,t,s,n,r,o){for(let a=0;a<s;++a){const l=e[t+a]._texture._uvs;l?(n[o]=l.x0,n[o+1]=l.y0,n[o+r]=l.x1,n[o+r+1]=l.y1,n[o+r*2]=l.x2,n[o+r*2+1]=l.y2,n[o+r*3]=l.x3,n[o+r*3+1]=l.y3,o+=r*4):(n[o]=0,n[o+1]=0,n[o+r]=0,n[o+r+1]=0,n[o+r*2]=0,n[o+r*2+1]=0,n[o+r*3]=0,n[o+r*3+1]=0,o+=r*4)}}uploadTint(e,t,s,n,r,o){for(let a=0;a<s;++a){const l=e[t+a],c=Et.shared.setValue(l._tintRGB).toPremultiplied(l.alpha,l.texture.baseTexture.alphaMode>0);n[o]=c,n[o+r]=c,n[o+r*2]=c,n[o+r*3]=c,o+=r*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}o1.extension={name:"particle",type:ke.RendererPlugin};Xe.add(o1);var du=(i=>(i[i.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",i[i.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",i))(du||{});const lc={willReadFrequently:!0},Vi=class Ye{static get experimentalLetterSpacingSupported(){let e=Ye._experimentalLetterSpacingSupported;if(e!==void 0){const t=Le.ADAPTER.getCanvasRenderingContext2D().prototype;e=Ye._experimentalLetterSpacingSupported="letterSpacing"in t||"textLetterSpacing"in t}return e}constructor(e,t,s,n,r,o,a,l,c){this.text=e,this.style=t,this.width=s,this.height=n,this.lines=r,this.lineWidths=o,this.lineHeight=a,this.maxLineWidth=l,this.fontProperties=c}static measureText(e,t,s,n=Ye._canvas){s=s??t.wordWrap;const r=t.toFontString(),o=Ye.measureFont(r);o.fontSize===0&&(o.fontSize=t.fontSize,o.ascent=t.fontSize);const a=n.getContext("2d",lc);a.font=r;const l=(s?Ye.wordWrap(e,t,n):e).split(/(?:\r\n|\r|\n)/),c=new Array(l.length);let h=0;for(let p=0;p<l.length;p++){const m=Ye._measureText(l[p],t.letterSpacing,a);c[p]=m,h=Math.max(h,m)}let u=h+t.strokeThickness;t.dropShadow&&(u+=t.dropShadowDistance);const d=t.lineHeight||o.fontSize+t.strokeThickness;let f=Math.max(d,o.fontSize+t.strokeThickness*2)+t.leading+(l.length-1)*(d+t.leading);return t.dropShadow&&(f+=t.dropShadowDistance),new Ye(e,t,u,f,l,c,d+t.leading,h,o)}static _measureText(e,t,s){let n=!1;Ye.experimentalLetterSpacingSupported&&(Ye.experimentalLetterSpacing?(s.letterSpacing=`${t}px`,s.textLetterSpacing=`${t}px`,n=!0):(s.letterSpacing="0px",s.textLetterSpacing="0px"));let r=s.measureText(e).width;return r>0&&(n?r-=t:r+=(Ye.graphemeSegmenter(e).length-1)*t),r}static wordWrap(e,t,s=Ye._canvas){const n=s.getContext("2d",lc);let r=0,o="",a="";const l=Object.create(null),{letterSpacing:c,whiteSpace:h}=t,u=Ye.collapseSpaces(h),d=Ye.collapseNewlines(h);let f=!u;const p=t.wordWrapWidth+c, Line truncated
`:e,e}static getFromCache(e,t,s,n){let r=s[e];return typeof r!="number"&&(r=Ye._measureText(e,t,n)+t,s[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 s=e[t];if(!Ye.isBreakingSpace(s))break;e=e.slice(0,-1)}return e}static isNewline(e){return typeof e!="string"?!1:Ye._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,t){return typeof e!="string"?!1:Ye._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const t=[];let s="";if(typeof e!="string")return t;for(let n=0;n<e.length;n++){const r=e[n],o=e[n+1];if(Ye.isBreakingSpace(r,o)||Ye.isNewline(r)){s!==""&&(t.push(s),s=""),t.push(r);continue}s+=r}return s!==""&&t.push(s),t}static canBreakWords(e,t){return t}static canBreakChars(e,t,s,n,r){return!0}static wordWrapSplit(e){return Ye.graphemeSegmenter(e)}static measureFont(e){if(Ye._fonts[e])return Ye._fonts[e];const t={ascent:0,descent:0,fontSize:0},s=Ye._canvas,n=Ye._context;n.font=e;const r=Ye.METRICS_STRING+Ye.BASELINE_SYMBOL,o=Math.ceil(n.measureText(r).width);let a=Math.ceil(n.measureText(Ye.BASELINE_SYMBOL).width);const l=Math.ceil(Ye.HEIGHT_MULTIPLIER*a);if(a=a*Ye.BASELINE_MULTIPLIER|0,o===0||l===0)return Ye._fonts[e]=t,t;s.width=o,s.height=l,n.fillStyle="#f00",n.fillRect(0,0,o,l),n.font=e,n.textBaseline="alphabetic",n.fillStyle="#000",n.fillText(r,0,a);const c=n.getImageData(0,0,o,l).data,h=c.length,u=o*4;let d=0,f=0,p=!1;for(d=0;d<a;++d){for(let m=0;m<u;m+=4)if(c[f+m]!==255){p=!0;break}if(!p)f+=u;else break}for(t.ascent=a-d,f=h-u,p=!1,d=l;d>a;--d){for(let m=0;m<u;m+=4)if(c[f+m]!==255){p=!0;break}if(!p)f-=u;else break}return t.descent=d-a,t.fontSize=t.ascent+t.descent,Ye._fonts[e]=t,t}static clearMetrics(e=""){e?delete Ye._fonts[e]:Ye._fonts={}}static get _canvas(){var e;if(!Ye.__canvas){let t;try{const s=new OffscreenCanvas(0,0);if((e=s.getContext("2d",lc))!=null&&e.measureText)return Ye.__canvas=s,s;t=Le.ADAPTER.createCanvas()}catch{t=Le.ADAPTER.createCanvas()}t.width=t.height=10,Ye.__canvas=t}return Ye.__canvas}static get _context(){return Ye.__context||(Ye.__context=Ye._canvas.getContext("2d",lc)),Ye.__context}};Vi.METRICS_STRING="|ÉqÅ",Vi.BASELINE_SYMBOL="M",Vi.BASELINE_MULTIPLIER=1.4,Vi.HEIGHT_MULTIPLIER=2,Vi.graphemeSegmenter=(()=>{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const i=new Intl.Segmenter;return e=>[...i.segment(e)].map(t=>t.segment)}return i=>[...i]})(),Vi.experimentalLetterSpacing=!1,Vi._fonts={},Vi._newlines=[10,13],Vi._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];let nr=Vi;const CI=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],a1=class ja{constructor(e){this.styleID=0,this.reset(),Qd(this,e,e)}clone(){const e={};return Qd(e,this,ja.defaultStyle),new ja(e)}reset(){Qd(this,ja.defaultStyle,ja.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=Jd(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=Jd(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){AI(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 l1 extends cu{constructor(e){super(e),this.shader=null,this.properties=null,this.tempMatrix=new Ot,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:$e.UNSIGNED_BYTE,uploadFunction:this.uploadTint,offset:0}],this.shader=ki.from(AI,CI,{}),this.state=un.for2d()}render(e){const t=e.children,s=e._maxSize,n=e._batchSize,r=this.renderer;let o=t.length;if(o===0)return;o>s&&!e.autoResize&&(o=s);let a=e._buffers;a||(a=e._buffers=this.generateBuffers(e));const l=t[0]._texture.baseTexture,c=l.alphaMode>0;this.state.blendMode=ob(e.blendMode,c),r.state.set(this.state);const h=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=Et.shared.setValue(e.tintRgb).premultiply(e.worldAlpha,c).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);let d=!1;for(let f=0,p=0;f<o;f+=n,p+=1){let m=o-f;m>n&&(m=n),p>=a.length&&a.push(this._generateOneMoreBuffer(e));const g=a[p];g.uploadDynamic(t,f,m);const v=e._bufferUpdateIDs[p]||0;d=d||g._updateID<v,d&&(g._updateID=e._updateID,g.uploadStatic(t,f,m)),r.geometry.bind(g.geometry),h.drawElements(h.TRIANGLES,m*6,h.UNSIGNED_SHORT,0)}}generateBuffers(e){const t=[],s=e._maxSize,n=e._batchSize,r=e._properties;for(let o=0;o<s;o+=n)t.push(new _v(this.properties,r,n));return t}_generateOneMoreBuffer(e){const t=e._batchSize,s=e._properties;return new _v(this.properties,s,t)}uploadVertices(e,t,s,n,r,o){let a=0,l=0,c=0,h=0;for(let u=0;u<s;++u){const d=e[t+u],f=d._texture,p=d.scale.x,m=d.scale.y,g=f.trim,v=f.orig;g?(l=g.x-d.anchor.x*v.width,a=l+g.width,h=g.y-d.anchor.y*v.height,c=h+g.height):(a=v.width*(1-d.anchor.x),l=v.width*-d.anchor.x,c=v.height*(1-d.anchor.y),h=v.height*-d.anchor.y),n[o]=l*p,n[o+1]=h*m,n[o+r]=a*p,n[o+r+1]=h*m,n[o+r*2]=a*p,n[o+r*2+1]=c*m,n[o+r*3]=l*p,n[o+r*3+1]=c*m,o+=r*4}}uploadPosition(e,t,s,n,r,o){for(let a=0;a<s;a++){const l=e[t+a].position;n[o]=l.x,n[o+1]=l.y,n[o+r]=l.x,n[o+r+1]=l.y,n[o+r*2]=l.x,n[o+r*2+1]=l.y,n[o+r*3]=l.x,n[o+r*3+1]=l.y,o+=r*4}}uploadRotation(e,t,s,n,r,o){for(let a=0;a<s;a++){const l=e[t+a].rotation;n[o]=l,n[o+r]=l,n[o+r*2]=l,n[o+r*3]=l,o+=r*4}}uploadUvs(e,t,s,n,r,o){for(let a=0;a<s;++a){const l=e[t+a]._texture._uvs;l?(n[o]=l.x0,n[o+1]=l.y0,n[o+r]=l.x1,n[o+r+1]=l.y1,n[o+r*2]=l.x2,n[o+r*2+1]=l.y2,n[o+r*3]=l.x3,n[o+r*3+1]=l.y3,o+=r*4):(n[o]=0,n[o+1]=0,n[o+r]=0,n[o+r+1]=0,n[o+r*2]=0,n[o+r*2+1]=0,n[o+r*3]=0,n[o+r*3+1]=0,o+=r*4)}}uploadTint(e,t,s,n,r,o){for(let a=0;a<s;++a){const l=e[t+a],c=Et.shared.setValue(l._tintRGB).toPremultiplied(l.alpha,l.texture.baseTexture.alphaMode>0);n[o]=c,n[o+r]=c,n[o+r*2]=c,n[o+r*3]=c,o+=r*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}l1.extension={name:"particle",type:ke.RendererPlugin};Xe.add(l1);var du=(i=>(i[i.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",i[i.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",i))(du||{});const lc={willReadFrequently:!0},Vi=class Ye{static get experimentalLetterSpacingSupported(){let e=Ye._experimentalLetterSpacingSupported;if(e!==void 0){const t=Le.ADAPTER.getCanvasRenderingContext2D().prototype;e=Ye._experimentalLetterSpacingSupported="letterSpacing"in t||"textLetterSpacing"in t}return e}constructor(e,t,s,n,r,o,a,l,c){this.text=e,this.style=t,this.width=s,this.height=n,this.lines=r,this.lineWidths=o,this.lineHeight=a,this.maxLineWidth=l,this.fontProperties=c}static measureText(e,t,s,n=Ye._canvas){s=s??t.wordWrap;const r=t.toFontString(),o=Ye.measureFont(r);o.fontSize===0&&(o.fontSize=t.fontSize,o.ascent=t.fontSize);const a=n.getContext("2d",lc);a.font=r;const l=(s?Ye.wordWrap(e,t,n):e).split(/(?:\r\n|\r|\n)/),c=new Array(l.length);let h=0;for(let p=0;p<l.length;p++){const m=Ye._measureText(l[p],t.letterSpacing,a);c[p]=m,h=Math.max(h,m)}let u=h+t.strokeThickness;t.dropShadow&&(u+=t.dropShadowDistance);const d=t.lineHeight||o.fontSize+t.strokeThickness;let f=Math.max(d,o.fontSize+t.strokeThickness*2)+t.leading+(l.length-1)*(d+t.leading);return t.dropShadow&&(f+=t.dropShadowDistance),new Ye(e,t,u,f,l,c,d+t.leading,h,o)}static _measureText(e,t,s){let n=!1;Ye.experimentalLetterSpacingSupported&&(Ye.experimentalLetterSpacing?(s.letterSpacing=`${t}px`,s.textLetterSpacing=`${t}px`,n=!0):(s.letterSpacing="0px",s.textLetterSpacing="0px"));let r=s.measureText(e).width;return r>0&&(n?r-=t:r+=(Ye.graphemeSegmenter(e).length-1)*t),r}static wordWrap(e,t,s=Ye._canvas){const n=s.getContext("2d",lc);let r=0,o="",a="";const l=Object.create(null),{letterSpacing:c,whiteSpace:h}=t,u=Ye.collapseSpaces(h),d=Ye.collapseNewlines(h);let f=!u;const p=t.wordWrapWidth+c, Line truncated
`:e,e}static getFromCache(e,t,s,n){let r=s[e];return typeof r!="number"&&(r=Ye._measureText(e,t,n)+t,s[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 s=e[t];if(!Ye.isBreakingSpace(s))break;e=e.slice(0,-1)}return e}static isNewline(e){return typeof e!="string"?!1:Ye._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,t){return typeof e!="string"?!1:Ye._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const t=[];let s="";if(typeof e!="string")return t;for(let n=0;n<e.length;n++){const r=e[n],o=e[n+1];if(Ye.isBreakingSpace(r,o)||Ye.isNewline(r)){s!==""&&(t.push(s),s=""),t.push(r);continue}s+=r}return s!==""&&t.push(s),t}static canBreakWords(e,t){return t}static canBreakChars(e,t,s,n,r){return!0}static wordWrapSplit(e){return Ye.graphemeSegmenter(e)}static measureFont(e){if(Ye._fonts[e])return Ye._fonts[e];const t={ascent:0,descent:0,fontSize:0},s=Ye._canvas,n=Ye._context;n.font=e;const r=Ye.METRICS_STRING+Ye.BASELINE_SYMBOL,o=Math.ceil(n.measureText(r).width);let a=Math.ceil(n.measureText(Ye.BASELINE_SYMBOL).width);const l=Math.ceil(Ye.HEIGHT_MULTIPLIER*a);if(a=a*Ye.BASELINE_MULTIPLIER|0,o===0||l===0)return Ye._fonts[e]=t,t;s.width=o,s.height=l,n.fillStyle="#f00",n.fillRect(0,0,o,l),n.font=e,n.textBaseline="alphabetic",n.fillStyle="#000",n.fillText(r,0,a);const c=n.getImageData(0,0,o,l).data,h=c.length,u=o*4;let d=0,f=0,p=!1;for(d=0;d<a;++d){for(let m=0;m<u;m+=4)if(c[f+m]!==255){p=!0;break}if(!p)f+=u;else break}for(t.ascent=a-d,f=h-u,p=!1,d=l;d>a;--d){for(let m=0;m<u;m+=4)if(c[f+m]!==255){p=!0;break}if(!p)f-=u;else break}return t.descent=d-a,t.fontSize=t.ascent+t.descent,Ye._fonts[e]=t,t}static clearMetrics(e=""){e?delete Ye._fonts[e]:Ye._fonts={}}static get _canvas(){var e;if(!Ye.__canvas){let t;try{const s=new OffscreenCanvas(0,0);if((e=s.getContext("2d",lc))!=null&&e.measureText)return Ye.__canvas=s,s;t=Le.ADAPTER.createCanvas()}catch{t=Le.ADAPTER.createCanvas()}t.width=t.height=10,Ye.__canvas=t}return Ye.__canvas}static get _context(){return Ye.__context||(Ye.__context=Ye._canvas.getContext("2d",lc)),Ye.__context}};Vi.METRICS_STRING="|ÉqÅ",Vi.BASELINE_SYMBOL="M",Vi.BASELINE_MULTIPLIER=1.4,Vi.HEIGHT_MULTIPLIER=2,Vi.graphemeSegmenter=(()=>{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const i=new Intl.Segmenter;return e=>[...i.segment(e)].map(t=>t.segment)}return i=>[...i]})(),Vi.experimentalLetterSpacing=!1,Vi._fonts={},Vi._newlines=[10,13],Vi._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];let nr=Vi;const EI=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],c1=class ja{constructor(e){this.styleID=0,this.reset(),Qd(this,e,e)}clone(){const e={};return Qd(e,this,ja.defaultStyle),new ja(e)}reset(){Qd(this,ja.defaultStyle,ja.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=Jd(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=Jd(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){II(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;
@@ -1014,7 +1014,7 @@ void main(void)
fragmentColor = texSample * uColor;
}
`,$I=`#version 300 es
`,VI=`#version 300 es
#define SHADER_NAME Tiling-Sprite-300
precision lowp float;
@@ -1034,7 +1034,7 @@ void main(void)
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
}
`,XI=`#version 100
`,YI=`#version 100
#ifdef GL_EXT_shader_texture_lod
#extension GL_EXT_shader_texture_lod : enable
#endif
@@ -1067,7 +1067,7 @@ void main(void)
gl_FragColor = texSample * uColor;
}
`,_v=`#version 100
`,Cv=`#version 100
#define SHADER_NAME Tiling-Sprite-100
precision lowp float;
@@ -1087,7 +1087,7 @@ void main(void)
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
}
`,VI=`#version 100
`,GI=`#version 100
#define SHADER_NAME Tiling-Sprite-Simple-100
precision lowp float;
@@ -1102,7 +1102,7 @@ void main(void)
vec4 texSample = texture2D(uSampler, vTextureCoord);
gl_FragColor = texSample * uColor;
}
`;const cc=new Ot;class f1 extends cu{constructor(e){super(e),e.runners.contextChange.add(this),this.quad=new yb,this.state=un.for2d()}contextChange(){const e=this.renderer,t={globals:e.globalUniforms};this.simpleShader=ki.from(_v,VI,t),this.shader=e.context.webGLVersion>1?ki.from($I,UI,t):ki.from(_v,XI,t)}render(e){const t=this.renderer,s=this.quad;let n=s.vertices;n[0]=n[6]=e._width*-e.anchor.x,n[1]=n[3]=e._height*-e.anchor.y,n[2]=n[4]=e._width*(1-e.anchor.x),n[5]=n[7]=e._height*(1-e.anchor.y);const r=e.uvRespectAnchor?e.anchor.x:0,o=e.uvRespectAnchor?e.anchor.y:0;n=s.uvs,n[0]=n[6]=-r,n[1]=n[3]=-o,n[2]=n[4]=1-r,n[5]=n[7]=1-o,s.invalidate();const a=e._texture,l=a.baseTexture,c=l.alphaMode>0,h=e.tileTransform.localTransform,u=e.uvMatrix;let d=l.isPowerOfTwo&&a.frame.width===l.width&&a.frame.height===l.height;d&&(l._glTextures[t.CONTEXT_UID]?d=l.wrapMode!==Ii.CLAMP:l.wrapMode===Ii.CLAMP&&(l.wrapMode=Ii.REPEAT));const f=d?this.simpleShader:this.shader,p=a.width,m=a.height,g=e._width,y=e._height;cc.set(h.a*p/g,h.b*p/y,h.c*m/g,h.d*m/y,h.tx/g,h.ty/y),cc.invert(),d?cc.prepend(u.mapCoord):(f.uniforms.uMapCoord=u.mapCoord.toArray(!0),f.uniforms.uClampFrame=u.uClampFrame,f.uniforms.uClampOffset=u.uClampOffset),f.uniforms.uTransform=cc.toArray(!0),f.uniforms.uColor=Et.shared.setValue(e.tint).premultiply(e.worldAlpha,c).toArray(f.uniforms.uColor),f.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),f.uniforms.uSampler=a,t.shader.bind(f),t.geometry.bind(s),this.state.blendMode=nb(e.blendMode,c),t.state.set(this.state),t.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}f1.extension={name:"tilingSprite",type:ke.RendererPlugin};Xe.add(f1);const m1=class Ha{constructor(e,t,s){this.linkedSheets=[],(e instanceof Qe||e instanceof ze)&&(e={texture:e,data:t,resolutionFilename:s});const{texture:n,data:r,resolutionFilename:o=null,cachePrefix:a=""}=e;this.cachePrefix=a,this._texture=n instanceof ze?n:null,this.baseTexture=n instanceof Qe?n:this._texture.baseTexture,this.textures={},this.animations={},this.data=r;const l=this.baseTexture.resource;this.resolution=this._updateResolution(o||(l?l.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 s=Yn(e,null);return s===null&&(s=typeof t=="number"?t:parseFloat(t??"1")),s!==1&&this.baseTexture.setResolution(s),s}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=Ha.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let t=e;const s=Ha.BATCH_SIZE;for(;t-e<s&&t<this._frameKeys.length;){const n=this._frameKeys[t],r=this._frames[n],o=r.frame;if(o){let a=null,l=null;const c=r.trimmed!==!1&&r.sourceSize?r.sourceSize:r.frame,h=new ot(0,0,Math.floor(c.w)/this.resolution,Math.floor(c.h)/this.resolution);r.rotated?a=new ot(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 ot(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&&(l=new ot(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[n]=new ze(this.baseTexture,a,h,l,r.rotated?2:0,r.anchor,r.borders),ze.addToCache(this.textures[n],this.cachePrefix+n.toString())}t++}}_processAnimations(){const e=this.data.animations||{};for(const t in e){this.animations[t]=[];for(let s=0;s<e[t].length;s++){const n=e[t][s];this.animations[t].push(this.textures[n])}}}_parseComplete(){const e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*Ha.BATCH_SIZE),this._batchIndex++,setTimeout(()=>{this._batchIndex*Ha.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())},0)}destroy(e=!1){var t;for(const s in this.textures)this.textures[s].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=[]}};m1.BATCH_SIZE=1e3;let Cv=m1;const YI=["jpg","png","jpeg","avif","webp","s3tc","s3tc_sRGB","etc","etc1","pvrtc","atc","astc","bptc"];function p1(i,e,t){const s={};if(i.forEach(n=>{s[n]=e}),Object.keys(e.textures).forEach(n=>{s[`${e.cachePrefix}${n}`]=e.textures[n]}),!t){const n=ts.dirname(i[0]);e.linkedSheets.forEach((r,o)=>{Object.assign(s,p1([`${n}/${e.data.meta.related_multi_packs[o]}`],r,!0))})}return s}const GI={extension:ke.Asset,cache:{test:i=>i instanceof Cv,getCacheableAssets:(i,e)=>p1(i,e,!1)},resolver:{test:i=>{const e=i.split("?")[0].split("."),t=e.pop(),s=e.pop();return t==="json"&&YI.includes(s)},parse:i=>{var t;const Line truncated
`;const cc=new Ot;class p1 extends cu{constructor(e){super(e),e.runners.contextChange.add(this),this.quad=new bb,this.state=un.for2d()}contextChange(){const e=this.renderer,t={globals:e.globalUniforms};this.simpleShader=ki.from(Cv,GI,t),this.shader=e.context.webGLVersion>1?ki.from(VI,XI,t):ki.from(Cv,YI,t)}render(e){const t=this.renderer,s=this.quad;let n=s.vertices;n[0]=n[6]=e._width*-e.anchor.x,n[1]=n[3]=e._height*-e.anchor.y,n[2]=n[4]=e._width*(1-e.anchor.x),n[5]=n[7]=e._height*(1-e.anchor.y);const r=e.uvRespectAnchor?e.anchor.x:0,o=e.uvRespectAnchor?e.anchor.y:0;n=s.uvs,n[0]=n[6]=-r,n[1]=n[3]=-o,n[2]=n[4]=1-r,n[5]=n[7]=1-o,s.invalidate();const a=e._texture,l=a.baseTexture,c=l.alphaMode>0,h=e.tileTransform.localTransform,u=e.uvMatrix;let d=l.isPowerOfTwo&&a.frame.width===l.width&&a.frame.height===l.height;d&&(l._glTextures[t.CONTEXT_UID]?d=l.wrapMode!==Ii.CLAMP:l.wrapMode===Ii.CLAMP&&(l.wrapMode=Ii.REPEAT));const f=d?this.simpleShader:this.shader,p=a.width,m=a.height,g=e._width,v=e._height;cc.set(h.a*p/g,h.b*p/v,h.c*m/g,h.d*m/v,h.tx/g,h.ty/v),cc.invert(),d?cc.prepend(u.mapCoord):(f.uniforms.uMapCoord=u.mapCoord.toArray(!0),f.uniforms.uClampFrame=u.uClampFrame,f.uniforms.uClampOffset=u.uClampOffset),f.uniforms.uTransform=cc.toArray(!0),f.uniforms.uColor=Et.shared.setValue(e.tint).premultiply(e.worldAlpha,c).toArray(f.uniforms.uColor),f.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),f.uniforms.uSampler=a,t.shader.bind(f),t.geometry.bind(s),this.state.blendMode=ob(e.blendMode,c),t.state.set(this.state),t.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}p1.extension={name:"tilingSprite",type:ke.RendererPlugin};Xe.add(p1);const g1=class Ha{constructor(e,t,s){this.linkedSheets=[],(e instanceof Qe||e instanceof ze)&&(e={texture:e,data:t,resolutionFilename:s});const{texture:n,data:r,resolutionFilename:o=null,cachePrefix:a=""}=e;this.cachePrefix=a,this._texture=n instanceof ze?n:null,this.baseTexture=n instanceof Qe?n:this._texture.baseTexture,this.textures={},this.animations={},this.data=r;const l=this.baseTexture.resource;this.resolution=this._updateResolution(o||(l?l.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 s=Yn(e,null);return s===null&&(s=typeof t=="number"?t:parseFloat(t??"1")),s!==1&&this.baseTexture.setResolution(s),s}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=Ha.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let t=e;const s=Ha.BATCH_SIZE;for(;t-e<s&&t<this._frameKeys.length;){const n=this._frameKeys[t],r=this._frames[n],o=r.frame;if(o){let a=null,l=null;const c=r.trimmed!==!1&&r.sourceSize?r.sourceSize:r.frame,h=new ot(0,0,Math.floor(c.w)/this.resolution,Math.floor(c.h)/this.resolution);r.rotated?a=new ot(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 ot(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&&(l=new ot(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[n]=new ze(this.baseTexture,a,h,l,r.rotated?2:0,r.anchor,r.borders),ze.addToCache(this.textures[n],this.cachePrefix+n.toString())}t++}}_processAnimations(){const e=this.data.animations||{};for(const t in e){this.animations[t]=[];for(let s=0;s<e[t].length;s++){const n=e[t][s];this.animations[t].push(this.textures[n])}}}_parseComplete(){const e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*Ha.BATCH_SIZE),this._batchIndex++,setTimeout(()=>{this._batchIndex*Ha.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())},0)}destroy(e=!1){var t;for(const s in this.textures)this.textures[s].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=[]}};g1.BATCH_SIZE=1e3;let Av=g1;const jI=["jpg","png","jpeg","avif","webp","s3tc","s3tc_sRGB","etc","etc1","pvrtc","atc","astc","bptc"];function v1(i,e,t){const s={};if(i.forEach(n=>{s[n]=e}),Object.keys(e.textures).forEach(n=>{s[`${e.cachePrefix}${n}`]=e.textures[n]}),!t){const n=ts.dirname(i[0]);e.linkedSheets.forEach((r,o)=>{Object.assign(s,v1([`${n}/${e.data.meta.related_multi_packs[o]}`],r,!0))})}return s}const HI={extension:ke.Asset,cache:{test:i=>i instanceof Av,getCacheableAssets:(i,e)=>v1(i,e,!1)},resolver:{test:i=>{const e=i.split("?")[0].split("."),t=e.pop(),s=e.pop();return t==="json"&&jI.includes(s)},parse:i=>{var t;const Line truncated
varying vec2 vTextureCoord;\r
uniform sampler2D uSampler;\r
\r
@@ -1140,7 +1140,7 @@ void main(void) {\r
// NPM Textures, NPM outputs\r
gl_FragColor = vec4(uColor.rgb, coverage);\r
}\r
`,KI=`// Mesh material default fragment\r
`,JI=`// Mesh material default fragment\r
attribute vec2 aVertexPosition;\r
attribute vec2 aTextureCoord;\r
\r
@@ -1156,17 +1156,17 @@ void main(void)\r
\r
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r
}\r
`;const Av=[],Ev=[],Iv=[],ZI=class v1 extends ps{constructor(e,t={}){super();const{align:s,tint:n,maxWidth:r,letterSpacing:o,fontName:a,fontSize:l}=Object.assign({},v1.styleDefaults,t);if(!tr.available[a])throw new Error(`Missing BitmapFont "${a}"`);this._activePagesMeshData=[],this._textWidth=0,this._textHeight=0,this._align=s,this._tintColor=new Et(n),this._font=void 0,this._fontName=a,this._fontSize=l,this.text=e,this._maxWidth=r,this._maxLineHeight=0,this._letterSpacing=o,this._anchor=new Rn(()=>{this.dirty=!0},this,0,0),this._roundPixels=Le.ROUND_PIXELS,this.dirty=!0,this._resolution=Le.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var E;const e=tr.available[this._fontName],t=this.fontSize,s=t/e.size,n=new vt,r=[],o=[],a=[],l=this._text.replace(/(?:\r\n|\r)/g,`
`)||" ",c=g1(l),h=this._maxWidth*e.size/t,u=e.distanceFieldType==="none"?Av:Ev;let d=null,f=0,p=0,m=0,g=-1,y=0,x=0,v=0,w=0;for(let k=0;k<c.length;k++){const B=c[k],D=Oc(B);if(/(?:\s)/.test(B)&&(g=k,y=f,w++),B==="\r"||B===`
`){o.push(f),a.push(-1),p=Math.max(p,f),++m,++x,n.x=0,n.y+=e.lineHeight,d=null,w=0;continue}const X=e.chars[D];if(!X)continue;d&&X.kerning[d]&&(n.x+=X.kerning[d]);const N=Iv.pop()||{texture:ze.EMPTY,line:0,charCode:0,prevSpaces:0,position:new vt};N.texture=X.texture,N.line=m,N.charCode=D,N.position.x=Math.round(n.x+X.xOffset+this._letterSpacing/2),N.position.y=Math.round(n.y+X.yOffset),N.prevSpaces=w,r.push(N),f=N.position.x+Math.max(X.xAdvance-X.xOffset,X.texture.orig.width),n.x+=X.xAdvance+this._letterSpacing,v=Math.max(v,X.yOffset+X.texture.height),d=D,g!==-1&&h>0&&n.x>h&&(++x,Ko(r,1+g-x,1+k-g),k=g,g=-1,o.push(y),a.push(r.length>0?r[r.length-1].prevSpaces:0),p=Math.max(p,y),m++,n.x=0,n.y+=e.lineHeight,d=null,w=0)}const _=c[c.length-1];_!=="\r"&&_!==`
`&&(/(?:\s)/.test(_)&&(f=y),o.push(f),p=Math.max(p,f),a.push(-1));const S=[];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]),S.push(B)}const b=r.length,A={},P=[],F=this._activePagesMeshData;u.push(...F);for(let k=0;k<b;k++){const B=r[k].texture,D=B.baseTexture.uid;if(!A[D]){let X=u.pop();if(!X){const U=new yp;let C,R;e.distanceFieldType==="none"?(C=new fh(ze.EMPTY),R=He.NORMAL):(C=new fh(ze.EMPTY,{program:nn.from(KI,qI),uniforms:{uFWidth:0}}),R=He.NORMAL_NPM);const O=new xl(U,C);O.blendMode=R,X={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:O,vertices:null,uvs:null,indices:null}}X.index=0,X.indexCount=0,X.vertexCount=0,X.uvsCount=0,X.total=0;const{_textureCache:N}=this;N[D]=N[D]||new ze(B.baseTexture),X.mesh.texture=N[D],X.mesh.tint=this._tintColor.value,P.push(X),A[D]=X}A[D].total++}for(let k=0;k<F.length;k++)P.includes(F[k])||this.removeChild(F[k].mesh);for(let k=0;k<P.length;k++)P[k].mesh.parent!==this&&this.addChild(P[k].mesh);this._activePagesMeshData=P;for(const k in A){const B=A[k],D=B.total;if(!(((E=B.indices)==null?void 0:E.length)>6*D)||B.vertices.length<xl.BATCHABLE_SIZE*2)B.vertices=new Float32Array(8*D),B.uvs=new Float32Array(8*D),B.indices=new Uint16Array(6*D);else{const X=B.total,N=B.vertices;for(let U=X*4*2;U<N.length;U++)N[U]=0}B.mesh.size=6*D}for(let k=0;k<b;k++){const B=r[k];let D=B.position.x+S[B.line]*(this._align==="justify"?B.prevSpaces:1);this._roundPixels&&(D=Math.round(D));const X=D*s,N=B.position.y*s,U=B.texture,C=A[U.baseTexture.uid],R=U.frame,O=U._uvs,L=C.index++;C.indices[L*6+0]=0+L*4,C.indices[L*6+1]=1+L*4,C.indices[L*6+2]=2+L*4,C.indices[L*6+3]=0+L*4,C.indices[L*6+4]=2+L*4,C.indices[L*6+5]=3+L*4,C.vertices[L*8+0]=X,C.vertices[L*8+1]=N,C.vertices[L*8+2]=X+R.width*s,C.vertices[L*8+3]=N,C.vertices[L*8+4]=X+R.width*s,C.vertices[L*8+5]=N+R.height*s,C.vertices[L*8+6]=X,C.vertices[L*8+7]=N+R.height*s,C.uvs[L*8+0]=O.x0,C.uvs[L*8+1]=O.y0,C.uvs[L*8+2]=O.x1,C.uvs[L*8+3]=O.y1,C.uvs[L*8+4]=O.x2,C.uvs[L*8+5]=O.y2,C.uvs[L*8+6]=O.x3,C.uvs[L*8+7]=O.y3}this._textWidth=p*s,this._textHeight=(n.y+e.lineHeight)*s;for(const k in A){const B=A[k];if(this.anchor.x!==0||this.anchor.y!==0){let U=0;const C=this._textWidth*this.anchor.x,R=this._textHeight*this.anchor.y;for(let O=0;O<B.total;O++)B.vertices[U++]-=C,B.vertices[U++]-=R,B.vertices[U++]-=C,B.vertices[U++]-=R,B.vertices[U++]-=C,B.vertices[U++]-=R,B.vertices[U++]-=C,B.vertices[U++]-=R}this._maxLineHeight=v*s;const D=B.mesh.geometry.getBuffer("aVertexPosition"),X=B.mesh.geometry.getBuffer("aTextureCoord"),N=B.mesh.geometry.getIndex();D.data=B.vertices,X.data=B.uvs,N.data=B.indices,D.update(),X.update(),N.update()}for(let k=0;k<r.length;k++)Iv.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:s,size:n}=tr.available[this._fontName];if(s!=="none"){const{a:r,b:o,c:a,d:l}=this.worldTransform,c=Math.sqrt(r*r+o*o),h=Math.sqrt(a*a+l*l),u=(Math.abs(c)+Math.abs(h))/2,d=this.fontSize/n,f=e._view.resolution;for(const p of this._activePagesMeshData)p.mesh.shader.uniforms.uFWidth=u*t*d*f}super._render(e)}getLocalBounds(){return this.validate(),super.getLocalBounds()}validate(){const e=tr.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(!tr.available[e])throw new Error(`Missing BitmapFont "${e}"`);this._fontName!==e&&(this._fontName=e,this.dirty=!0)}get fontSize(){return this._fontSize??tr.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
`;const Ev=[],Iv=[],Rv=[],QI=class x1 extends gs{constructor(e,t={}){super();const{align:s,tint:n,maxWidth:r,letterSpacing:o,fontName:a,fontSize:l}=Object.assign({},x1.styleDefaults,t);if(!tr.available[a])throw new Error(`Missing BitmapFont "${a}"`);this._activePagesMeshData=[],this._textWidth=0,this._textHeight=0,this._align=s,this._tintColor=new Et(n),this._font=void 0,this._fontName=a,this._fontSize=l,this.text=e,this._maxWidth=r,this._maxLineHeight=0,this._letterSpacing=o,this._anchor=new Rn(()=>{this.dirty=!0},this,0,0),this._roundPixels=Le.ROUND_PIXELS,this.dirty=!0,this._resolution=Le.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var I;const e=tr.available[this._fontName],t=this.fontSize,s=t/e.size,n=new vt,r=[],o=[],a=[],l=this._text.replace(/(?:\r\n|\r)/g,`
`)||" ",c=y1(l),h=this._maxWidth*e.size/t,u=e.distanceFieldType==="none"?Ev:Iv;let d=null,f=0,p=0,m=0,g=-1,v=0,y=0,x=0,M=0;for(let k=0;k<c.length;k++){const B=c[k],D=Oc(B);if(/(?:\s)/.test(B)&&(g=k,v=f,M++),B==="\r"||B===`
`){o.push(f),a.push(-1),p=Math.max(p,f),++m,++y,n.x=0,n.y+=e.lineHeight,d=null,M=0;continue}const X=e.chars[D];if(!X)continue;d&&X.kerning[d]&&(n.x+=X.kerning[d]);const N=Rv.pop()||{texture:ze.EMPTY,line:0,charCode:0,prevSpaces:0,position:new vt};N.texture=X.texture,N.line=m,N.charCode=D,N.position.x=Math.round(n.x+X.xOffset+this._letterSpacing/2),N.position.y=Math.round(n.y+X.yOffset),N.prevSpaces=M,r.push(N),f=N.position.x+Math.max(X.xAdvance-X.xOffset,X.texture.orig.width),n.x+=X.xAdvance+this._letterSpacing,x=Math.max(x,X.yOffset+X.texture.height),d=D,g!==-1&&h>0&&n.x>h&&(++y,Ko(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++,n.x=0,n.y+=e.lineHeight,d=null,M=0)}const C=c[c.length-1];C!=="\r"&&C!==`
`&&(/(?:\s)/.test(C)&&(f=v),o.push(f),p=Math.max(p,f),a.push(-1));const w=[];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]),w.push(B)}const b=r.length,_={},E=[],F=this._activePagesMeshData;u.push(...F);for(let k=0;k<b;k++){const B=r[k].texture,D=B.baseTexture.uid;if(!_[D]){let X=u.pop();if(!X){const U=new xp;let A,P;e.distanceFieldType==="none"?(A=new fh(ze.EMPTY),P=He.NORMAL):(A=new fh(ze.EMPTY,{program:nn.from(JI,ZI),uniforms:{uFWidth:0}}),P=He.NORMAL_NPM);const O=new xl(U,A);O.blendMode=P,X={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:O,vertices:null,uvs:null,indices:null}}X.index=0,X.indexCount=0,X.vertexCount=0,X.uvsCount=0,X.total=0;const{_textureCache:N}=this;N[D]=N[D]||new ze(B.baseTexture),X.mesh.texture=N[D],X.mesh.tint=this._tintColor.value,E.push(X),_[D]=X}_[D].total++}for(let k=0;k<F.length;k++)E.includes(F[k])||this.removeChild(F[k].mesh);for(let k=0;k<E.length;k++)E[k].mesh.parent!==this&&this.addChild(E[k].mesh);this._activePagesMeshData=E;for(const k in _){const B=_[k],D=B.total;if(!(((I=B.indices)==null?void 0:I.length)>6*D)||B.vertices.length<xl.BATCHABLE_SIZE*2)B.vertices=new Float32Array(8*D),B.uvs=new Float32Array(8*D),B.indices=new Uint16Array(6*D);else{const X=B.total,N=B.vertices;for(let U=X*4*2;U<N.length;U++)N[U]=0}B.mesh.size=6*D}for(let k=0;k<b;k++){const B=r[k];let D=B.position.x+w[B.line]*(this._align==="justify"?B.prevSpaces:1);this._roundPixels&&(D=Math.round(D));const X=D*s,N=B.position.y*s,U=B.texture,A=_[U.baseTexture.uid],P=U.frame,O=U._uvs,L=A.index++;A.indices[L*6+0]=0+L*4,A.indices[L*6+1]=1+L*4,A.indices[L*6+2]=2+L*4,A.indices[L*6+3]=0+L*4,A.indices[L*6+4]=2+L*4,A.indices[L*6+5]=3+L*4,A.vertices[L*8+0]=X,A.vertices[L*8+1]=N,A.vertices[L*8+2]=X+P.width*s,A.vertices[L*8+3]=N,A.vertices[L*8+4]=X+P.width*s,A.vertices[L*8+5]=N+P.height*s,A.vertices[L*8+6]=X,A.vertices[L*8+7]=N+P.height*s,A.uvs[L*8+0]=O.x0,A.uvs[L*8+1]=O.y0,A.uvs[L*8+2]=O.x1,A.uvs[L*8+3]=O.y1,A.uvs[L*8+4]=O.x2,A.uvs[L*8+5]=O.y2,A.uvs[L*8+6]=O.x3,A.uvs[L*8+7]=O.y3}this._textWidth=p*s,this._textHeight=(n.y+e.lineHeight)*s;for(const k in _){const B=_[k];if(this.anchor.x!==0||this.anchor.y!==0){let U=0;const A=this._textWidth*this.anchor.x,P=this._textHeight*this.anchor.y;for(let O=0;O<B.total;O++)B.vertices[U++]-=A,B.vertices[U++]-=P,B.vertices[U++]-=A,B.vertices[U++]-=P,B.vertices[U++]-=A,B.vertices[U++]-=P,B.vertices[U++]-=A,B.vertices[U++]-=P}this._maxLineHeight=x*s;const D=B.mesh.geometry.getBuffer("aVertexPosition"),X=B.mesh.geometry.getBuffer("aTextureCoord"),N=B.mesh.geometry.getIndex();D.data=B.vertices,X.data=B.uvs,N.data=B.indices,D.update(),X.update(),N.update()}for(let k=0;k<r.length;k++)Rv.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:s,size:n}=tr.available[this._fontName];if(s!=="none"){const{a:r,b:o,c:a,d:l}=this.worldTransform,c=Math.sqrt(r*r+o*o),h=Math.sqrt(a*a+l*l),u=(Math.abs(c)+Math.abs(h))/2,d=this.fontSize/n,f=e._view.resolution;for(const p of this._activePagesMeshData)p.mesh.shader.uniforms.uFWidth=u*t*d*f}super._render(e)}getLocalBounds(){return this.validate(),super.getLocalBounds()}validate(){const e=tr.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(!tr.available[e])throw new Error(`Missing BitmapFont "${e}"`);this._fontName!==e&&(this._fontName=e,this.dirty=!0)}get fontSize(){return this._fontSize??tr.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}";
src: url('${t.dataSrc}');
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=Y_(e)),typeof e=="number"?V_(e):e}dropShadowToCSS(){let e=this.normalizeColor(this.dropShadowColor);const t=this.dropShadowAlpha,s=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),n=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);e.startsWith("#")&&t<1&&(e+=(t*255|0).toString(16).padStart(2,"0"));const r=`${s}px ${n}px`;return this.dropShadowBlur>0?`text-shadow: ${r} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${r} ${e}`}reset(){Object.assign(this,Do.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}=Le.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}};dm.availableFonts={},dm.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 tf=dm;const hc=class Uo extends _r{constructor(e="",t={}){super(ze.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const s=new Image,n=ze.from(s,{scaleMode:Le.SCALE_MODE,resourceOptions:{autoLoad:!1}});n.orig=new ot,n.trim=new ot,this.texture=n;const r="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",a=document.createElementNS(r,"svg"),l=document.createElementNS(r,"foreignObject"),c=document.createElementNS(o,"div"),h=document.createElementNS(o,"style");l.setAttribute("width","10000"),l.setAttribute("height","10000"),l.style.overflow="hidden",a.appendChild(l),this.maxWidth=Uo.defaultMaxWidth,this.maxHeight=Uo.defaultMaxHeight,this._domElement=c,this._styleElement=h,this._svgRoot=a,this._foreignObject=l,this._foreignObject.appendChild(h),this._foreignObject.appendChild(c),this._image=s,this._loadImage=new Image,this._autoResolution=Uo.defaultAutoResolution,this._resolution=Uo.defaultResolution??Le.RESOLUTION,this.text=e,this.style=t}measureText(e){var h,u;const{text:t,style:s,resolution:n}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:s.toCSS(n)}),this._styleElement.textContent=s.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 l=Math.min(this.maxWidth,Math.ceil(o)),c=Math.min(this.maxHeight,Math.ceil(a));return this._svgRoot.setAttribute("width",l.toString()),this._svgRoot.setAttribute("height",c.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),s!==this._style&&(Object.assign(this._domElement,{style:(h=this._style)==null?void 0:h.toCSS(n)}),this._styleElement.textContent=(u=this._style)==null?void 0:u.toGlobalCSS()),{width:l+s.padding*2,height:c+s.padding*2}}async updateText(e=!0){const{style:t,_image:s,_loadImage:n}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:r,height:o}=this.measureText();s.width=n.width=Math.ceil(Math.max(1,r)),s.height=n.height=Math.ceil(Math.max(1,o)),this._updateID++;const a=this._updateID;await new Promise(l=>{n.onload=async()=>{if(a<this._updateID){l();return}await t.onBeforeDraw(),s.src=n.src,n.onload=null,n.src="",this.updateTexture(),l()};const c=new XMLSerializer().serializeToString(this._svgRoot);n.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(c)}`})}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=j2(e)),typeof e=="number"?G2(e):e}dropShadowToCSS(){let e=this.normalizeColor(this.dropShadowColor);const t=this.dropShadowAlpha,s=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),n=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);e.startsWith("#")&&t<1&&(e+=(t*255|0).toString(16).padStart(2,"0"));const r=`${s}px ${n}px`;return this.dropShadowBlur>0?`text-shadow: ${r} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${r} ${e}`}reset(){Object.assign(this,Do.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}=Le.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}};fm.availableFonts={},fm.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 tf=fm;const hc=class Uo extends _r{constructor(e="",t={}){super(ze.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const s=new Image,n=ze.from(s,{scaleMode:Le.SCALE_MODE,resourceOptions:{autoLoad:!1}});n.orig=new ot,n.trim=new ot,this.texture=n;const r="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",a=document.createElementNS(r,"svg"),l=document.createElementNS(r,"foreignObject"),c=document.createElementNS(o,"div"),h=document.createElementNS(o,"style");l.setAttribute("width","10000"),l.setAttribute("height","10000"),l.style.overflow="hidden",a.appendChild(l),this.maxWidth=Uo.defaultMaxWidth,this.maxHeight=Uo.defaultMaxHeight,this._domElement=c,this._styleElement=h,this._svgRoot=a,this._foreignObject=l,this._foreignObject.appendChild(h),this._foreignObject.appendChild(c),this._image=s,this._loadImage=new Image,this._autoResolution=Uo.defaultAutoResolution,this._resolution=Uo.defaultResolution??Le.RESOLUTION,this.text=e,this.style=t}measureText(e){var h,u;const{text:t,style:s,resolution:n}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:s.toCSS(n)}),this._styleElement.textContent=s.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 l=Math.min(this.maxWidth,Math.ceil(o)),c=Math.min(this.maxHeight,Math.ceil(a));return this._svgRoot.setAttribute("width",l.toString()),this._svgRoot.setAttribute("height",c.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),s!==this._style&&(Object.assign(this._domElement,{style:(h=this._style)==null?void 0:h.toCSS(n)}),this._styleElement.textContent=(u=this._style)==null?void 0:u.toGlobalCSS()),{width:l+s.padding*2,height:c+s.padding*2}}async updateText(e=!0){const{style:t,_image:s,_loadImage:n}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:r,height:o}=this.measureText();s.width=n.width=Math.ceil(Math.max(1,r)),s.height=n.height=Math.ceil(Math.max(1,o)),this._updateID++;const a=this._updateID;await new Promise(l=>{n.onload=async()=>{if(a<this._updateID){l();return}await t.onBeforeDraw(),s.src=n.src,n.onload=null,n.src="",this.updateTexture(),l()};const c=new XMLSerializer().serializeToString(this._svgRoot);n.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(c)}`})}get source(){ret Line truncated
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
@@ -1182,7 +1182,7 @@ void main(void)
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
}
`,WP=`
`,qP=`
varying vec2 vTextureCoord;
uniform vec4 uColor;
uniform vec4 uDarkColor;
@@ -1195,7 +1195,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 zP extends ki{constructor(t){const s={uSampler:t??ze.EMPTY,alpha:1,uTextureMatrix:Ot.IDENTITY,uColor:new Float32Array([1,1,1,1]),uDarkColor:new Float32Array([0,0,0,0])},n={tint:16777215,darkTint:0,alpha:1,pluginName:"darkTintBatch"};super(nn.from(HP,WP),s);M(this,"uvMatrix");M(this,"batchable");M(this,"pluginName");M(this,"_tintRGB");M(this,"_darkTintRGB");M(this,"_colorDirty");M(this,"_alpha");M(this,"_tintColor");M(this,"_darkTintColor");this._colorDirty=!1,this.uvMatrix=new dp(s.uSampler),this.batchable=!0,this.pluginName=n.pluginName,this._tintColor=new Et(n.tint),this._darkTintColor=new Et(n.darkTint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._alpha=n.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,Et.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),Et.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 qP extends xl{constructor(t){super(new jP,new zP(t),void 0,void 0);M(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 s=this.geometry,n=this.shader;n.uvMatrix&&(n.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=s.indexBuffer.data,this._tintRGB=n._tintRGB,this._darkTintRGB=n._darkTintRGB,this._texture=n.texture;const r=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[r]),t.plugins[r].render(this)}}const cs=class cs extends qP{constructor(){super();M(this,"name","")}updateFromSpineData(t,s,n,r,o,a,l,c){var y,x;this.texture=t.texture;const h=o/(c?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((y=u.data)==null?void 0:y.length)!==h&&(u.data=new Float32Array(h));const d=this.geometry.getBuffer("aVertexPosition");((x=d.data)==null?void 0:x.length)!==h&&(d.data=new Float32Array(h));let f=0,p=u.data,m=d.data;for(let v=0;v<o;v+=c?12:8){let w=v;m[f]=r[w++],m[f+1]=r[w++],w+=4,p[f]=r[w++],p[f+1]=r[w++],f+=2}c?(cs.auxColor[0]=r[8],cs.auxColor[1]=r[9],cs.auxColor[2]=r[10],cs.auxColor[3]=r[11],this.darkTint=cs.auxColor,cs.auxColor[0]=r[2],cs.auxColor[1]=r[3],cs.auxColor[2]=r[4],cs.auxColor[3]=r[5],this.tint=cs.auxColor):(cs.auxColor[0]=r[2],cs.auxColor[1]=r[3],cs.auxColor[2]=r[4],cs.auxColor[3]=r[5],this.tint=cs.auxColor),this.blendMode=fo.toPixiBlending(s),this.alpha=cs.auxColor[3];const g=this.geometry.indexBuffer;if(g.data.length!==a.length)g.data=new Uint32Array(a);else{const v=g.data;for(let w=0;w<l;w++)v[w]=a[w]}this.name=n,u.update(),d.update(),g.update()}};M(cs,"auxColor",[0,0,0,0]);let el=cs;const wt=class wt extends ps{constructor(t,s){if(t instanceof bh)t={...s,skeletonData:t};else if(s)throw new Error("You cannot use options and oldOptions together.");super();M(this,"skeleton");M(this,"state");M(this,"darkTint",!1);M(this,"hasNeverUpdated",!0);M(this,"_debug");M(this,"slotMeshFactory",()=>new bm);M(this,"beforeUpdateWorldTransforms",()=>{});M(this,"afterUpdateWorldTransforms",()=>{});M(this,"_autoUpdate",!1);M(this,"_ticker",Gs.shared);M(this,"meshesCache",new Map);M(this,"lightColor",new rt);M(this,"darkColor",new rt);M(this,"_boundsProvider");M(this,"_boundsPoint",new vt);M(this,"_boundsSpineID",-1);M(this,"_boundsSpineDirty",!0);M(this,"slotsObject",new Map);M(this,"verticesCache",Pe.newFloatArray(1024));M(this,"clippingSlotToPixiMasks",{});M(this,"currentClippingSlot");const n=t instanceof bh?t:t.skeletonData;this.skeleton=new _p(n);const r=new tP(n);this.state=new KR(r),(t==null?void 0:t.darkTint)!==void 0||(s==null?void 0:s.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 el)):this.initializeMeshFactory(s==null?void 0:s.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 KP extends ki{constructor(t){const s={uSampler:t??ze.EMPTY,alpha:1,uTextureMatrix:Ot.IDENTITY,uColor:new Float32Array([1,1,1,1]),uDarkColor:new Float32Array([0,0,0,0])},n={tint:16777215,darkTint:0,alpha:1,pluginName:"darkTintBatch"};super(nn.from(zP,qP),s);S(this,"uvMatrix");S(this,"batchable");S(this,"pluginName");S(this,"_tintRGB");S(this,"_darkTintRGB");S(this,"_colorDirty");S(this,"_alpha");S(this,"_tintColor");S(this,"_darkTintColor");this._colorDirty=!1,this.uvMatrix=new fp(s.uSampler),this.batchable=!0,this.pluginName=n.pluginName,this._tintColor=new Et(n.tint),this._darkTintColor=new Et(n.darkTint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._alpha=n.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,Et.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),Et.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 ZP extends xl{constructor(t){super(new WP,new KP(t),void 0,void 0);S(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 s=this.geometry,n=this.shader;n.uvMatrix&&(n.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=s.indexBuffer.data,this._tintRGB=n._tintRGB,this._darkTintRGB=n._darkTintRGB,this._texture=n.texture;const r=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[r]),t.plugins[r].render(this)}}const hs=class hs extends ZP{constructor(){super();S(this,"name","")}updateFromSpineData(t,s,n,r,o,a,l,c){var v,y;this.texture=t.texture;const h=o/(c?12:8)*2,u=this.geometry.getBuffer("aTextureCoord");((v=u.data)==null?void 0:v.length)!==h&&(u.data=new Float32Array(h));const d=this.geometry.getBuffer("aVertexPosition");((y=d.data)==null?void 0:y.length)!==h&&(d.data=new Float32Array(h));let f=0,p=u.data,m=d.data;for(let x=0;x<o;x+=c?12:8){let M=x;m[f]=r[M++],m[f+1]=r[M++],M+=4,p[f]=r[M++],p[f+1]=r[M++],f+=2}c?(hs.auxColor[0]=r[8],hs.auxColor[1]=r[9],hs.auxColor[2]=r[10],hs.auxColor[3]=r[11],this.darkTint=hs.auxColor,hs.auxColor[0]=r[2],hs.auxColor[1]=r[3],hs.auxColor[2]=r[4],hs.auxColor[3]=r[5],this.tint=hs.auxColor):(hs.auxColor[0]=r[2],hs.auxColor[1]=r[3],hs.auxColor[2]=r[4],hs.auxColor[3]=r[5],this.tint=hs.auxColor),this.blendMode=fo.toPixiBlending(s),this.alpha=hs.auxColor[3];const g=this.geometry.indexBuffer;if(g.data.length!==a.length)g.data=new Uint32Array(a);else{const x=g.data;for(let M=0;M<l;M++)x[M]=a[M]}this.name=n,u.update(),d.update(),g.update()}};S(hs,"auxColor",[0,0,0,0]);let el=hs;const wt=class wt extends gs{constructor(t,s){if(t instanceof bh)t={...s,skeletonData:t};else if(s)throw new Error("You cannot use options and oldOptions together.");super();S(this,"skeleton");S(this,"state");S(this,"darkTint",!1);S(this,"hasNeverUpdated",!0);S(this,"_debug");S(this,"slotMeshFactory",()=>new wm);S(this,"beforeUpdateWorldTransforms",()=>{});S(this,"afterUpdateWorldTransforms",()=>{});S(this,"_autoUpdate",!1);S(this,"_ticker",Gs.shared);S(this,"meshesCache",new Map);S(this,"lightColor",new rt);S(this,"darkColor",new rt);S(this,"_boundsProvider");S(this,"_boundsPoint",new vt);S(this,"_boundsSpineID",-1);S(this,"_boundsSpineDirty",!0);S(this,"slotsObject",new Map);S(this,"verticesCache",Pe.newFloatArray(1024));S(this,"clippingSlotToPixiMasks",{});S(this,"currentClippingSlot");const n=t instanceof bh?t:t.skeletonData;this.skeleton=new Cp(n);const r=new iP(n);this.state=new JR(r),(t==null?void 0:t.darkTint)!==void 0||(s==null?void 0:s.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 el)):this.initializeMeshFactory(s==null?void 0:s.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;
@@ -1221,7 +1221,7 @@ void main(void){
vDarkColor = aDarkColor * tint;
}
`,sk=`
`,nk=`
varying vec2 vTextureCoord;
varying vec4 vColor;
varying vec4 vDarkColor;
@@ -1236,4 +1236,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 Mw extends ir{constructor(e){super(e),this.shaderGenerator=new fb(tk,sk),this.geometryClass=ek,this.vertexSize=7}packInterleavedGeometry(e,t,s,n,r){const{uint32View:o,float32View:a}=t,l=n/this.vertexSize,c=e.uvs,h=e.indices,u=e.vertexData,d=e._texture.baseTexture._batchLocation,f=Math.min(e.worldAlpha,1),p=Et.shared.setValue(e._tintRGB).toPremultiplied(f,!0),m=Et.shared.setValue(e._darkTintRGB).premultiply(f,!0).toPremultiplied(1,!1);for(let g=0;g<u.length;g+=2)a[n++]=u[g],a[n++]=u[g+1],a[n++]=c[g],a[n++]=c[g+1],o[n++]=p,o[n++]=m,a[n++]=d;for(let g=0;g<h.length;g++)s[r++]=l+h[g]}}M(Mw,"extension",{name:"darkTintBatch",type:ke.RendererPlugin});Xe.add(Mw);function ik(i){return i.replace(/\\/g,"/").split("/").pop()||i}function Cp(i,e,t){for(const s of i.pages){const n=e.get(ik(s.name).toLowerCase());if(!n)throw new Error(`Atlas 引用的纹理未选择:${s.name}`);n.baseTexture.alphaMode=s.pma?xs.PMA:xs.UNPACK,s.setTexture(t.from(n.baseTexture))}}function Tw(i,e){const t=new hw(i);return Cp(t,e,fo),new vm(t)}function nk(i,e,t){return{skeletonData:new Sh(Tw(e,t)).readSkeletonData(i),SpineClass:Mh}}function rk(i,e,t){return{skeletonData:new xm(Tw(e,t)).readSkeletonData(i),SpineClass:Mh}}const ok="modulepreload",ak=function(i){return"/"+i},zv={},qv=function(e,t,s){let n=Promise.resolve();if(t&&t.length>0){let o=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));n=o(t.map(c=>{if(c=ak(c),c in zv)return;zv[c]=!0;const h=c.endsWith(".css"),u=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const d=document.createElement("link");if(d.rel=h?"stylesheet":ok,h||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),h)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return n.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})};async function _w(){const[i,e]=await Promise.all([qv(()=>import("./index-yF8mmEQU.js"),[]),qv(()=>import("./index-BtGWLkYx.js"),__vite__mapDeps([0,1]))]);return{core:i,pixi:e}}async function lk(i,e,t){const{core:s,pixi:n}=await _w(),r=new s.TextureAtlas(e);return Cp(r,t,n.SpineTexture),{skeletonData:new s.SkeletonJson(new s.AtlasAttachmentLoader(r)).readSkeletonData(i),SpineClass:n.Spine}}async function ck(i,e,t){const{core:s,pixi:n}=await _w(),r=new s.TextureAtlas(e);return Cp(r,t,n.SpineTexture),{skeletonData:new s.SkeletonBinary(new s.AtlasAttachmentLoader(r)).readSkeletonData(i),SpineClass:n.Spine}}function hr(i,e,t){const s=Number(i[e]);return Number.isFinite(s)?s:t}function zs(i,e,t,s){i[e]==null&&(i[e]=hr(i,t,s))}function Ap(i,e,t){if(typeof i.curve!="number")return;const s=hr(i,"time",0),r=hr(e,"time",0)-s,o=i.curve,a=hr(i,"c2",0),l=hr(i,"c3",1),c=hr(i,"c4",1);i.curve=t.flatMap(([h,u])=>[s+r*o,h+(u-h)*a,s+r*l,h+(u-h)*c]),delete i.c2,delete i.c3,delete i.c4}function vr(i,e){if(Array.isArray(i))for(let t=0;t<i.length-1;t++){const s=i[t],n=i[t+1];Ap(s,n,e.map(({key:r,fallback:o})=>[hr(s,r,o),hr(n,r,o)]))}}function hk(i){if(Array.isArray(i))for(let e=0;e<i.length-1;e++)Ap(i[e],i[e+1],[[0,1]])}function Ro(i,e){const t=typeof i=="string"?i.replace(/^#/,""):"",s=t.length===6?`${t}ff`:t.padEnd(8,"f").slice(0,8),n=[0,2,4,6].map(r=>Number.parseInt(s.slice(r,r+2),16)/255);return e?n:n.slice(0,3)}function Kv(i,e){if(Array.isArray(i))for(let t=0;t<i.length-1;t++){const s=i[t],n=i[t+1],r=e?[...Ro(s.light,!0),...Ro(s.dark,!1)]:Ro(s.color,!0),o=e?[...Ro(n.light,!0),...Ro(n.dark,!1)]:Ro(n.color,!0);Ap(s,n,r.map((a,l)=>[a,o[l]]))}}function uk(i){for(const e of i.bones||[])e.inherit==null&&e.transform!=null&&(e.inherit=e.transform);for(const e of i.transform||[])zs(e,"mixRotate","rotateMix",1),zs(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX),zs(e,"mixScaleX","scaleMix",1),e.mixScaleY==null&&(e.mixScaleY=e.mixScaleX),zs(e,"mixShearY","shearMix",1);for(const e of i.path||[])zs(e,"mixRotate","rotateMix",1),zs(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX)}function dk(i){for(const e of i.skins||[])for(const t of Object.values(e.attachments||{}))for(const s of Object.values(t||{}))s.parent!=null&&s.timelines==null&&s.deform!=null&&(s.timelines=s.deform)}function fk(i){for(const e of Object.values(i.slots||{}))e.color&&!e.rgba&&(e.rgba=e.color,delete e.color),e.twoColor&&!e.rgba2&&(e.rgba2=e.twoColor,delete e.twoColor),Kv(e.rgba,!1),Kv(e.rgba2,!0)}function mk(i){for(const e of Object.values(i.bones||{})){for(const t of e.rotate||[])zs(t,"value","angle",0);vr(e.rotate,[{key:"value",fallback:0}]),vr(e.tra Line truncated
`;class _w extends ir{constructor(e){super(e),this.shaderGenerator=new pb(ik,nk),this.geometryClass=sk,this.vertexSize=7}packInterleavedGeometry(e,t,s,n,r){const{uint32View:o,float32View:a}=t,l=n/this.vertexSize,c=e.uvs,h=e.indices,u=e.vertexData,d=e._texture.baseTexture._batchLocation,f=Math.min(e.worldAlpha,1),p=Et.shared.setValue(e._tintRGB).toPremultiplied(f,!0),m=Et.shared.setValue(e._darkTintRGB).premultiply(f,!0).toPremultiplied(1,!1);for(let g=0;g<u.length;g+=2)a[n++]=u[g],a[n++]=u[g+1],a[n++]=c[g],a[n++]=c[g+1],o[n++]=p,o[n++]=m,a[n++]=d;for(let g=0;g<h.length;g++)s[r++]=l+h[g]}}S(_w,"extension",{name:"darkTintBatch",type:ke.RendererPlugin});Xe.add(_w);function rk(i){return i.replace(/\\/g,"/").split("/").pop()||i}function Ap(i,e,t){for(const s of i.pages){const n=e.get(rk(s.name).toLowerCase());if(!n)throw new Error(`Atlas 引用的纹理未选择:${s.name}`);n.baseTexture.alphaMode=s.pma?bs.PMA:bs.UNPACK,s.setTexture(t.from(n.baseTexture))}}function Cw(i,e){const t=new dw(i);return Ap(t,e,fo),new ym(t)}function ok(i,e,t){return{skeletonData:new Sh(Cw(e,t)).readSkeletonData(i),SpineClass:Mh}}function ak(i,e,t){return{skeletonData:new bm(Cw(e,t)).readSkeletonData(i),SpineClass:Mh}}const lk="modulepreload",ck=function(i){return"/"+i},qv={},Kv=function(e,t,s){let n=Promise.resolve();if(t&&t.length>0){let o=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));n=o(t.map(c=>{if(c=ck(c),c in qv)return;qv[c]=!0;const h=c.endsWith(".css"),u=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const d=document.createElement("link");if(d.rel=h?"stylesheet":lk,h||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),h)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return n.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})};async function Aw(){const[i,e]=await Promise.all([Kv(()=>import("./index-BS4GpQRH.js"),[]),Kv(()=>import("./index-CUwqGGwd.js"),__vite__mapDeps([0,1]))]);return{core:i,pixi:e}}async function hk(i,e,t){const{core:s,pixi:n}=await Aw(),r=new s.TextureAtlas(e);return Ap(r,t,n.SpineTexture),{skeletonData:new s.SkeletonJson(new s.AtlasAttachmentLoader(r)).readSkeletonData(i),SpineClass:n.Spine}}async function uk(i,e,t){const{core:s,pixi:n}=await Aw(),r=new s.TextureAtlas(e);return Ap(r,t,n.SpineTexture),{skeletonData:new s.SkeletonBinary(new s.AtlasAttachmentLoader(r)).readSkeletonData(i),SpineClass:n.Spine}}function hr(i,e,t){const s=Number(i[e]);return Number.isFinite(s)?s:t}function zs(i,e,t,s){i[e]==null&&(i[e]=hr(i,t,s))}function Ep(i,e,t){if(typeof i.curve!="number")return;const s=hr(i,"time",0),r=hr(e,"time",0)-s,o=i.curve,a=hr(i,"c2",0),l=hr(i,"c3",1),c=hr(i,"c4",1);i.curve=t.flatMap(([h,u])=>[s+r*o,h+(u-h)*a,s+r*l,h+(u-h)*c]),delete i.c2,delete i.c3,delete i.c4}function vr(i,e){if(Array.isArray(i))for(let t=0;t<i.length-1;t++){const s=i[t],n=i[t+1];Ep(s,n,e.map(({key:r,fallback:o})=>[hr(s,r,o),hr(n,r,o)]))}}function dk(i){if(Array.isArray(i))for(let e=0;e<i.length-1;e++)Ep(i[e],i[e+1],[[0,1]])}function Ro(i,e){const t=typeof i=="string"?i.replace(/^#/,""):"",s=t.length===6?`${t}ff`:t.padEnd(8,"f").slice(0,8),n=[0,2,4,6].map(r=>Number.parseInt(s.slice(r,r+2),16)/255);return e?n:n.slice(0,3)}function Zv(i,e){if(Array.isArray(i))for(let t=0;t<i.length-1;t++){const s=i[t],n=i[t+1],r=e?[...Ro(s.light,!0),...Ro(s.dark,!1)]:Ro(s.color,!0),o=e?[...Ro(n.light,!0),...Ro(n.dark,!1)]:Ro(n.color,!0);Ep(s,n,r.map((a,l)=>[a,o[l]]))}}function fk(i){for(const e of i.bones||[])e.inherit==null&&e.transform!=null&&(e.inherit=e.transform);for(const e of i.transform||[])zs(e,"mixRotate","rotateMix",1),zs(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX),zs(e,"mixScaleX","scaleMix",1),e.mixScaleY==null&&(e.mixScaleY=e.mixScaleX),zs(e,"mixShearY","shearMix",1);for(const e of i.path||[])zs(e,"mixRotate","rotateMix",1),zs(e,"mixX","translateMix",1),e.mixY==null&&(e.mixY=e.mixX)}function mk(i){for(const e of i.skins||[])for(const t of Object.values(e.attachments||{}))for(const s of Object.values(t||{}))s.parent!=null&&s.timelines==null&&s.deform!=null&&(s.timelines=s.deform)}function pk(i){for(const e of Object.values(i.slots||{}))e.color&&!e.rgba&&(e.rgba=e.color,delete e.color),e.twoColor&&!e.rgba2&&(e.rgba2=e.twoColor,delete e.twoColor),Zv(e.rgba,!1),Zv(e.rgba2,!0)}function gk(i){for(const e of Object.values(i.bones||{})){for(const t of e.rotate||[])zs(t,"value","angle",0);vr(e.rotate,[{key:"value",fallback:0}]),vr(e.tra Line truncated
@@ -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-CkcQpCi2.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-CkcQpCi2.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-BDM5NpkZ.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-BDM5NpkZ.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
@@ -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-CkcQpCi2.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-CkcQpCi2.js";import{SkeletonClipping as de,SkeletonPhysicsMovement as Ze,AnimationStateData as Je,AtlasAttachmentLoader as Qe,SkeletonBounds as je}from"./index-yF8mmEQU.js";import{AssetCache as qo,AssetManagerBase as Ko,Downloader as Zo,SkeletonRendererCore as Jo,Triangulator as Qo}from"./index-yF8mmEQU.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-BDM5NpkZ.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-BDM5NpkZ.js";import{SkeletonClipping as de,SkeletonPhysicsMovement as Ze,AnimationStateData as Je,AtlasAttachmentLoader as Qe,SkeletonBounds as je}from"./index-BS4GpQRH.js";import{AssetCache as qo,AssetManagerBase as Ko,Downloader as Zo,SkeletonRendererCore as Jo,Triangulator as Qo}from"./index-BS4GpQRH.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;
@@ -1 +1 @@
.help-overlay[data-v-78204b9d]{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-78204b9d]{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-78204b9d]{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-78204b9d]{margin:0;color:#eef2ff;font-size:19px}.help-head p[data-v-78204b9d]{margin:5px 0 0;color:#7786a3;font-size:11px}.help-close[data-v-78204b9d]{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-78204b9d]:hover{border-color:#7774ff;background:#3b4670;color:#fff}.help-body[data-v-78204b9d]{min-height:0;overflow:auto;padding:18px 20px 21px}.help-section[data-v-78204b9d]{padding:14px 15px;border:1px solid #2c3850;border-radius:10px;background:#181f2e}.help-section h3[data-v-78204b9d]{margin:0 0 11px;color:#9fb2ff;font-size:13px}.help-start ol[data-v-78204b9d]{margin:0;padding-left:21px;color:#aab6cc;font-size:12px;line-height:1.75}.help-start li[data-v-78204b9d]::marker{color:#7774ff;font-weight:700}.help-section b[data-v-78204b9d]{color:#dce4f7}.help-grid[data-v-78204b9d]{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);gap:12px;margin-top:12px}.help-list[data-v-78204b9d]{display:grid;gap:0;margin:0}.help-list>div[data-v-78204b9d]{display:grid;grid-template-columns:78px 1fr;gap:9px;padding:7px 0;border-bottom:1px solid #263146}.help-list>div[data-v-78204b9d]:last-child{border-bottom:0}.help-list dt[data-v-78204b9d]{color:#d3dcf0;font-size:11px;font-weight:700}.help-list dd[data-v-78204b9d]{margin:0;color:#8795ae;font-size:11px;line-height:1.5}.shortcut-list[data-v-78204b9d]{display:grid;gap:7px}.shortcut-list>div[data-v-78204b9d]{display:flex;align-items:center;min-height:25px;gap:5px}.shortcut-list kbd[data-v-78204b9d]{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-78204b9d]{color:#65728b;font-size:10px}.shortcut-list em[data-v-78204b9d]{margin-left:auto;color:#9ca9c1;font-size:11px;font-style:normal}.help-note[data-v-78204b9d]{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-78204b9d]{margin-top:12px}.help-export p[data-v-78204b9d]{margin:0;color:#8997b0;font-size:11px;line-height:1.65}.help-doc-title[data-v-78204b9d]{margin:16px 2px 2px;color:#9fb2ff;font-size:13px;font-weight:700;letter-spacing:.5px}.help-module[data-v-78204b9d]{margin-top:12px}.help-module-head[data-v-78204b9d]{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-78204b9d]:hover{color:#fff}.help-module-head .mtitle[data-v-78204b9d]{flex:1;min-width:0}.help-module-head .caret[data-v-78204b9d]{flex:0 0 auto;color:#7b86a2;font-size:12px}.help-module.open .help-module-head[data-v-78204b9d]{color:#fff}.help-module.open .help-module-head .caret[data-v-78204b9d]{color:#9fb2ff}.help-module .mnum[data-v-78204b9d]{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-78204b9d]{border-color:#4a4f8a;background:linear-gradient(135deg,#1d2442,#181d2f)}.help-module.help-connector .help-module-head[data-v-78204b9d]{color:#b8c2ff}.help-module .connector-intro[data-v-78204b9d]{margin:0 0 10px;color:#9aa8c4;font-size:11px;line-height:1.6}.help-module .connector-intro b[data-v-78204b9d]{color:#dce4f7}.help-module .dl-link[data-v-78204b9d]{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-78204b9d]:hover{border-color:#8982ff;background:#554dc2}.help-module .dl-link small[data-v-78204b9d]{color:#cfe0ff;font-weight:500;font-size:9px}.help-module-body[data-v-78204b9d]{padding-top:10px}@media(max-width:760px){.help-overlay[data-v-78204b9d]{padding:66px 12px 14px}.help-grid[data-v-78204b9d]{grid-template-columns:1fr}}.topbar[data-v-4749834a]{position:absolute;top:10px;left:10px;right:10px;dispLine truncated
.help-overlay[data-v-78204b9d]{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-78204b9d]{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-78204b9d]{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-78204b9d]{margin:0;color:#eef2ff;font-size:19px}.help-head p[data-v-78204b9d]{margin:5px 0 0;color:#7786a3;font-size:11px}.help-close[data-v-78204b9d]{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-78204b9d]:hover{border-color:#7774ff;background:#3b4670;color:#fff}.help-body[data-v-78204b9d]{min-height:0;overflow:auto;padding:18px 20px 21px}.help-section[data-v-78204b9d]{padding:14px 15px;border:1px solid #2c3850;border-radius:10px;background:#181f2e}.help-section h3[data-v-78204b9d]{margin:0 0 11px;color:#9fb2ff;font-size:13px}.help-start ol[data-v-78204b9d]{margin:0;padding-left:21px;color:#aab6cc;font-size:12px;line-height:1.75}.help-start li[data-v-78204b9d]::marker{color:#7774ff;font-weight:700}.help-section b[data-v-78204b9d]{color:#dce4f7}.help-grid[data-v-78204b9d]{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);gap:12px;margin-top:12px}.help-list[data-v-78204b9d]{display:grid;gap:0;margin:0}.help-list>div[data-v-78204b9d]{display:grid;grid-template-columns:78px 1fr;gap:9px;padding:7px 0;border-bottom:1px solid #263146}.help-list>div[data-v-78204b9d]:last-child{border-bottom:0}.help-list dt[data-v-78204b9d]{color:#d3dcf0;font-size:11px;font-weight:700}.help-list dd[data-v-78204b9d]{margin:0;color:#8795ae;font-size:11px;line-height:1.5}.shortcut-list[data-v-78204b9d]{display:grid;gap:7px}.shortcut-list>div[data-v-78204b9d]{display:flex;align-items:center;min-height:25px;gap:5px}.shortcut-list kbd[data-v-78204b9d]{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-78204b9d]{color:#65728b;font-size:10px}.shortcut-list em[data-v-78204b9d]{margin-left:auto;color:#9ca9c1;font-size:11px;font-style:normal}.help-note[data-v-78204b9d]{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-78204b9d]{margin-top:12px}.help-export p[data-v-78204b9d]{margin:0;color:#8997b0;font-size:11px;line-height:1.65}.help-doc-title[data-v-78204b9d]{margin:16px 2px 2px;color:#9fb2ff;font-size:13px;font-weight:700;letter-spacing:.5px}.help-module[data-v-78204b9d]{margin-top:12px}.help-module-head[data-v-78204b9d]{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-78204b9d]:hover{color:#fff}.help-module-head .mtitle[data-v-78204b9d]{flex:1;min-width:0}.help-module-head .caret[data-v-78204b9d]{flex:0 0 auto;color:#7b86a2;font-size:12px}.help-module.open .help-module-head[data-v-78204b9d]{color:#fff}.help-module.open .help-module-head .caret[data-v-78204b9d]{color:#9fb2ff}.help-module .mnum[data-v-78204b9d]{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-78204b9d]{border-color:#4a4f8a;background:linear-gradient(135deg,#1d2442,#181d2f)}.help-module.help-connector .help-module-head[data-v-78204b9d]{color:#b8c2ff}.help-module .connector-intro[data-v-78204b9d]{margin:0 0 10px;color:#9aa8c4;font-size:11px;line-height:1.6}.help-module .connector-intro b[data-v-78204b9d]{color:#dce4f7}.help-module .dl-link[data-v-78204b9d]{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-78204b9d]:hover{border-color:#8982ff;background:#554dc2}.help-module .dl-link small[data-v-78204b9d]{color:#cfe0ff;font-weight:500;font-size:9px}.help-module-body[data-v-78204b9d]{padding-top:10px}@media(max-width:760px){.help-overlay[data-v-78204b9d]{padding:66px 12px 14px}.help-grid[data-v-78204b9d]{grid-template-columns:1fr}}.topbar[data-v-4749834a]{position:absolute;top:10px;left:10px;right:10px;dispLine truncated
+2 -2
View File
@@ -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-CkcQpCi2.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-_52DTWS7.css">
<script type="module" crossorigin src="/assets/index-BDM5NpkZ.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-eyCkSEtn.css">
</head>
<body>
<div id="app"></div>